diff --git a/.vs/DPM2016/v15/.suo b/.vs/DPM2016/v15/.suo index 91e502b..3fa5746 100644 Binary files a/.vs/DPM2016/v15/.suo and b/.vs/DPM2016/v15/.suo differ diff --git a/.vs/DPM2016/v15/Server/sqlite3/storage.ide b/.vs/DPM2016/v15/Server/sqlite3/storage.ide index 1e58789..be7d2ea 100644 Binary files a/.vs/DPM2016/v15/Server/sqlite3/storage.ide and b/.vs/DPM2016/v15/Server/sqlite3/storage.ide differ diff --git a/CryptoEditor/bin/Debug/CryptoEditor.exe b/CryptoEditor/bin/Debug/CryptoEditor.exe index d9cf340..de4e6e4 100644 Binary files a/CryptoEditor/bin/Debug/CryptoEditor.exe and b/CryptoEditor/bin/Debug/CryptoEditor.exe differ diff --git a/CryptoEditor/bin/Debug/CryptoEditor.pdb b/CryptoEditor/bin/Debug/CryptoEditor.pdb index 19792c3..a81a1d8 100644 Binary files a/CryptoEditor/bin/Debug/CryptoEditor.pdb and b/CryptoEditor/bin/Debug/CryptoEditor.pdb differ diff --git a/CryptoEditor/obj/Debug/CryptoEditor.exe b/CryptoEditor/obj/Debug/CryptoEditor.exe index d9cf340..de4e6e4 100644 Binary files a/CryptoEditor/obj/Debug/CryptoEditor.exe and b/CryptoEditor/obj/Debug/CryptoEditor.exe differ diff --git a/CryptoEditor/obj/Debug/CryptoEditor.pdb b/CryptoEditor/obj/Debug/CryptoEditor.pdb index 19792c3..a81a1d8 100644 Binary files a/CryptoEditor/obj/Debug/CryptoEditor.pdb and b/CryptoEditor/obj/Debug/CryptoEditor.pdb differ diff --git a/CryptoEditor/obj/Debug/CryptoEditor.vbproj.CoreCompileInputs.cache b/CryptoEditor/obj/Debug/CryptoEditor.vbproj.CoreCompileInputs.cache index 4e2e280..97ada2f 100644 --- a/CryptoEditor/obj/Debug/CryptoEditor.vbproj.CoreCompileInputs.cache +++ b/CryptoEditor/obj/Debug/CryptoEditor.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -c25b68a472794d78e09340ae6530aa05beafcb9a +01b4dd61334a40eedcfe46ace7c98025c17fecc6 diff --git a/CryptoEditor/obj/Debug/CryptoEditor.vbproj.GenerateResource.cache b/CryptoEditor/obj/Debug/CryptoEditor.vbproj.GenerateResource.cache index 4cb815a..ced3a64 100644 Binary files a/CryptoEditor/obj/Debug/CryptoEditor.vbproj.GenerateResource.cache and b/CryptoEditor/obj/Debug/CryptoEditor.vbproj.GenerateResource.cache differ diff --git a/CryptoEditor/obj/Release/CryptoEditor.vbproj.CoreCompileInputs.cache b/CryptoEditor/obj/Release/CryptoEditor.vbproj.CoreCompileInputs.cache index 4e2e280..97ada2f 100644 --- a/CryptoEditor/obj/Release/CryptoEditor.vbproj.CoreCompileInputs.cache +++ b/CryptoEditor/obj/Release/CryptoEditor.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -c25b68a472794d78e09340ae6530aa05beafcb9a +01b4dd61334a40eedcfe46ace7c98025c17fecc6 diff --git a/DPM2016.sln b/DPM2016.sln index e46843e..f5a1406 100644 --- a/DPM2016.sln +++ b/DPM2016.sln @@ -11,6 +11,8 @@ Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "DPMLizenzmanagement", "DPML EndProject Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SHUKeyGen", "DPMLizenzmanagement\SHUKeyGen\SHUKeyGen.vbproj", "{9C0E2055-23AC-4209-8C03-0364C5AF2BAB}" EndProject +Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "SHU_Imagegal", "..\..\_Demos\PictureViewer\SHU_Imagegal\SHU_Imagegal\SHU_Imagegal.vbproj", "{45F09566-A07D-49BE-B538-311D3B7A3539}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -33,6 +35,10 @@ Global {9C0E2055-23AC-4209-8C03-0364C5AF2BAB}.Debug|Any CPU.Build.0 = Debug|Any CPU {9C0E2055-23AC-4209-8C03-0364C5AF2BAB}.Release|Any CPU.ActiveCfg = Release|Any CPU {9C0E2055-23AC-4209-8C03-0364C5AF2BAB}.Release|Any CPU.Build.0 = Release|Any CPU + {45F09566-A07D-49BE-B538-311D3B7A3539}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {45F09566-A07D-49BE-B538-311D3B7A3539}.Debug|Any CPU.Build.0 = Debug|Any CPU + {45F09566-A07D-49BE-B538-311D3B7A3539}.Release|Any CPU.ActiveCfg = Release|Any CPU + {45F09566-A07D-49BE-B538-311D3B7A3539}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/DPM2016/Auswertungen/FremAuswertung.Designer.vb b/DPM2016/Auswertungen/FremAuswertung.Designer.vb index ad4a71b..3a17460 100644 --- a/DPM2016/Auswertungen/FremAuswertung.Designer.vb +++ b/DPM2016/Auswertungen/FremAuswertung.Designer.vb @@ -42,12 +42,15 @@ Partial Class frmAuswertung Me.TreeReporting = New System.Windows.Forms.TreeView() Me.previewControl1 = New FastReport.Preview.PreviewControl() Me.DataGridView1 = New System.Windows.Forms.DataGridView() + Me.ContextMenuStrip1 = New System.Windows.Forms.ContextMenuStrip(Me.components) + Me.PatientenAuswahlToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.MenuStrip1.SuspendLayout() Me.ToolStrip1.SuspendLayout() Me.GroupBox1.SuspendLayout() Me.GroupBox3.SuspendLayout() Me.GroupBox2.SuspendLayout() CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).BeginInit() + Me.ContextMenuStrip1.SuspendLayout() Me.SuspendLayout() ' 'MenuStrip1 @@ -275,6 +278,7 @@ Partial Class frmAuswertung Me.previewControl1.Name = "previewControl1" Me.previewControl1.PageOffset = New System.Drawing.Point(10, 10) Me.previewControl1.RightToLeft = System.Windows.Forms.RightToLeft.No + Me.previewControl1.SaveInitialDirectory = Nothing Me.previewControl1.Size = New System.Drawing.Size(780, 635) Me.previewControl1.TabIndex = 25 Me.previewControl1.UIStyle = FastReport.Utils.UIStyle.VisualStudio2005 @@ -288,6 +292,18 @@ Partial Class frmAuswertung Me.DataGridView1.Size = New System.Drawing.Size(780, 635) Me.DataGridView1.TabIndex = 26 ' + 'ContextMenuStrip1 + ' + Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.PatientenAuswahlToolStripMenuItem}) + Me.ContextMenuStrip1.Name = "ContextMenuStrip1" + Me.ContextMenuStrip1.Size = New System.Drawing.Size(181, 48) + ' + 'PatientenAuswahlToolStripMenuItem + ' + Me.PatientenAuswahlToolStripMenuItem.Name = "PatientenAuswahlToolStripMenuItem" + Me.PatientenAuswahlToolStripMenuItem.Size = New System.Drawing.Size(180, 22) + Me.PatientenAuswahlToolStripMenuItem.Text = "Patienten-Auswahl" + ' 'frmAuswertung ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) @@ -311,6 +327,7 @@ Partial Class frmAuswertung Me.GroupBox3.ResumeLayout(False) Me.GroupBox2.ResumeLayout(False) CType(Me.DataGridView1, System.ComponentModel.ISupportInitialize).EndInit() + Me.ContextMenuStrip1.ResumeLayout(False) Me.ResumeLayout(False) Me.PerformLayout() @@ -334,4 +351,6 @@ Partial Class frmAuswertung Friend WithEvents Properties As PropertyGridEx.PropertyGridEx Private WithEvents previewControl1 As FastReport.Preview.PreviewControl Friend WithEvents DataGridView1 As DataGridView + Friend WithEvents ContextMenuStrip1 As ContextMenuStrip + Friend WithEvents PatientenAuswahlToolStripMenuItem As ToolStripMenuItem End Class diff --git a/DPM2016/Auswertungen/FremAuswertung.resx b/DPM2016/Auswertungen/FremAuswertung.resx index d8db5e5..88a0035 100644 --- a/DPM2016/Auswertungen/FremAuswertung.resx +++ b/DPM2016/Auswertungen/FremAuswertung.resx @@ -145,24 +145,24 @@ iVBORw0KGgoAAAANSUhEUgAAABgAAAAYCAYAAADgdz34AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8 - YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAP4SURBVEhLnZVtbFN1FMaZGl8hzPjJmKDxE2owxkRdlrrb - dl2cOBMlThdHNCQmyId9MaiJUUdkCESqvATBdTFCV0ZSLNtcplN8iYBAqQ00KbLqattNNubGWtv19uXe - +3jO7f2XSweM7J88OVtz7/M7zzm3t4vEGRgYeFCW5UukmWw2m4yOTyobT/8LafAvVRr6W7UORtSVh4a1 - lYNjaDkU1mKjo6l4PH6ip6fnAUmSbmGRTVXJ7SrH7XY/DDqZTEYrqho+PBrHsj0BLN1+CktIXJe7z6O1 - +xg8hwe0dDqNqakpRCIRxel0Sg6HY2l7e/tNht3c43K5HhWAydkiWntjuHdHCNXbzqD6kyCqnWdh9ybw - 8c69mJ6eRrFY1JVMJhmidnV1vUuQZZTkdrKbk6Sqs7PzMQbwScoK1v+YxArXRTz0xQSW7x3HI19ewmve - OJzbd0BVVV0M4CSpVArDw8MqebzNkKampjsr0+gATdNKNyoaOoMK7N0KLPuKeHp/EdaDwDrfKAF2lbtn - 0b50gIC0tbW9bLfb72tsbLzNDCkDFEUB16//0PCCF7C6gfpuwMGA3gvY8tlu3bhQKCCRSCAcDiMYDCIU - Cul/+/3+sbq6uifq6+vvaW5uvtnwvwwQ+n5Ew+peQNoPSgLYDgBr+mawZadLb0KId8DL5r1Eo1EEAgGF - Eqy12Wz3E+BWw//KBDymwAUV6wYpgQGweoAWXxpb97j17lkiCdd8Pq/DGELm6ynFipqamjsM/xJALI8V - TWn44FcaDxnbOAHVV/o0OF095fmbJaA8NhrPBkrxeENDw12GfwmQySnIZGXIuRzOjc1g0/E8nqXZ8x4Y - 0vItsPsrr27EHbMxV/F/ju4zAB28hzmAlKzCn8jCOfQntv0whneO5PEiLVoyAKv6gM99R5GVc5iVybBA - T1GuBGDzSgB9JxYb/pdHVCgq8E9o2HwKeOsI8OphA0BydGt445scNp9UsSuooT+cxsRMtjwe1nUBvGCO - zfX3fxR8dAx487vSY8oQHtVzlGjtz8D73jM4H7+od33DCdiYLxY1NF5AB+1hlQ+o2wc8Q/t4fQj41HcC - 45NTZWMxf3pRzg8QKYSOn43gvZ/+w0v0nVjTn0WvP1Humo0rdUMJxNMh9Mvpc9h0UsNv0XS5a9E5dy3q - vAmEcSVgdra0yMonRhiLuiCAGEelqdmYP+eXHmteAJtdTQJoloCadV2AMOJqvok/q+za3Lmo8yYwdyxg - lTKDzRLQawI8Hs/zZtNrmYhaKXMC+lXbSi+7J2tra5cY/ouq6D3eGovF9AsWqpGREV1kvtFqtT51BcBi - sdxNkSykDtJBuqB/gTpA928ojUha/D83lThHagRr+gAAAABJRU5ErkJggg== + YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAP3SURBVEhLnZVtbFN1FMaZGl8hzPjJmKDxE2owxkRZlrrb + dl2cOBMlThdnNCQmyId9IaiJUUdkCESqvATBdVGhe8E01m0s0ykqkfdSK3QvTs2atqts4Na1lvX13vt4 + zu39l8sdMLJ/8uRszb3P7zzn3N4uEqevr+/BTCYTJ82k0+nEaCQmbzrzL6T+EUUa+FOR+oeUVZ2D6qr+ + GBo6f1fD4+PJSCRysqur6wFJkm5hkU1Z0e0qx+12Pww68XhcLSgqPjgawbK9fizdcRpLSFyXu0fR2H4M + X37tVVOpFKampjA0NCQ7nU7J4XAsbW5uvkm3m3tcLtejAnBxtoDG7jDu3RlE+fazKP84gHLnOdg9UXy0 + ax+mp6dRKBQ0JRIJhihtbW3vEGQZJbmd7OYkKWttbX2MAXwSGRkbfkpghesCHvp8Esv3TeCRL+J4zROB + c8dOKIqiiQGcJJlMYnBwUCGPtxhSV1d3pzmNBlBVtXijrKI1IMPeLsOyv4CnDhRgPQis844TYHepexbt + SwMISFNT00t2u/2+2tra24yQEkCWZXD95g8Vz3sAqxuobgccDOg+j62f7tGM8/k8otEohoeHEQgEEAwG + tb99Pl+sqqrqierq6nvq6+tv1v0vA4R+GFPxajcgHQAlAWydwJqeGWzd5dKaEOId8LJ5L6FQCH6/X6YE + a2022/0EuFX3vzIBj8l/XsG6fkqgA6wdQIM3hW173Vr3LJGEay6X02AMIfMNlGJFRUXFHbp/ESCWxwol + Vbz/K42HjG2cgOrLPSqcrq7S/I0SUB4bjWcjpXi8pqbmLt2/CLiUlXEpnUEmm8VIbAabj+fwDM2e98CQ + hu+APV95NCPumI25iv+zdJ8OaOE9zAEkMwp80TScA39j+48xvH04hxdo0ZIOWN0DfOY9inQmi9kMGebp + KcoWAWxuBtB3YrHuf3lE+YIM36SKLaeB9YeBV77VASRHu4o3DmWx5ZSC3QEVvcMpTM6kS+NhXRfAC+bY + XH/7R8aHx4A3vy8+pgzhUT1Lidb+ArznOYvRyAWt6xtOwMZ8sajBiTxaaA+rvUDVfuBp2sfrA8An3pOY + uDhVMhbzpxfl/ACRQuj4ub/w7s//4UX6TqzpTaPbFy11zcZm3VAC8XQIHTkzgs2nVJwIpUpdi865a1Hn + TSCMzYDZ2eIizU+MMBZ1QQAxDrOp0Zg/55cea14Am11NAmiUgBp1XYAw4mq8iT8zd23sXNR5Exg7FjCz + jGCjBPSagI6OjueMptcyEdUsYwL6VdtGL7snKysrl+j+i8roPd4YDoe1CxaqsbExTWS+yWq1rrwCYLFY + 7qZIFlIL6SBd0LtAddL9G4sjkhb/DxY6N4wqNTW8AAAAAElFTkSuQmCC @@ -329,8 +329,11 @@ KACiiigAooooAKKKKACiiigAooooAKKKKAP/2Q== + + 231, 17 + - 25 + 91 diff --git a/DPM2016/Auswertungen/FremAuswertung.vb b/DPM2016/Auswertungen/FremAuswertung.vb index 89ac40c..0cd30ea 100644 --- a/DPM2016/Auswertungen/FremAuswertung.vb +++ b/DPM2016/Auswertungen/FremAuswertung.vb @@ -41,7 +41,6 @@ Public Class frmAuswertung ' End If 'Next - Dim s As String Me.TreeReporting.Nodes.Clear() FileOpen(1, intdb.Get_Option(100) + "Reports.txt", Mode:=OpenMode.Input) @@ -109,7 +108,7 @@ Public Class frmAuswertung Properties.ShowCustomProperties = True Properties.Item.Clear() Dim defaultvalue As String - + Me.Properties.ContextMenuStrip = Nothing If ParameterColleation.Count > 0 Then For i As Integer = 1 To ParameterColleation.Count Dim param As Reportparameter = ParameterColleation(i) @@ -162,7 +161,9 @@ Public Class frmAuswertung defaultvalue = param.ParameterDefault If IsNumeric(defaultvalue) Then Properties.Item.Add(param.Parameterbezeichnung, defaultvalue, False, "Parameter", "Ganzzahl", True) - + If param.Parameterbezeichnung = "Nummern (Komma-Getrennt)" Then + Me.Properties.ContextMenuStrip = ContextMenuStrip1 + End If Else Select Case defaultvalue Case "currentyear" @@ -654,6 +655,23 @@ Public Class frmAuswertung ' f.Show() 'End Sub End Sub + + Private Sub Properties_DoubleClick(sender As Object, e As EventArgs) Handles Properties.DoubleClick + + End Sub + + Private Sub Properties_Click(sender As Object, e As EventArgs) Handles Properties.Click + + End Sub + + Private Sub PatientenAuswahlToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles PatientenAuswahlToolStripMenuItem.Click + Dim f As New FrmSearchDialog + f.ShowDialog() + If f.DialogResult = DialogResult.OK Then + Me.Properties.Item(1).Value = f.TextBox1.Text + Me.Properties.Refresh() + End If + End Sub End Class Public Class Report diff --git a/DPM2016/Behandlung/Behandlung.vb b/DPM2016/Behandlung/Behandlung.vb index b0fd413..35349c4 100644 --- a/DPM2016/Behandlung/Behandlung.vb +++ b/DPM2016/Behandlung/Behandlung.vb @@ -453,6 +453,12 @@ Public Class Behandlung r.Item("nrbehandlungsart") = dbgesetz.dsDaten.Tables(0).Rows(0).Item("nrbehandlungsart") End If + Get_Standards(r.Item("nrbehandler"), "Behandler") + Get_Standards(r.Item("nrestyp"), "ESTyp") + Get_Standards(r.Item("nrrgtyp"), "RGTyp") + Get_Standards(r.Item("Nrabrechnungstyp"), "Abrechnungstyp") + Get_Standards(r.Item("nransatz"), "Ansatz") + Get_Standards(r.Item("taxpunktwert"), "Taxpunktwert") db.dsDaten.Tables(0).Rows.Add(r) db.Update_Data() @@ -465,6 +471,71 @@ Public Class Behandlung Me.nodeselected() Catch ex As Exception End Try + End Sub + + Sub Get_Standards(ByRef o As Object, feld As String) + Dim dbs As New clsDB + Try + Select Case UCase(feld) + Case "BEHANDLER" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=1", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + Case "ESTYP" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=2", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + Case "RGTYP" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=3", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + Case "ABRECHNUNGSTYP" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=4", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + Case "ANSATZ" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=5", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + + Case "TAXPUNKTWERT" + Dim s As String = "" + dbs.Get_Tabledata("Standards", "", "Select * from standards where eintragnr=5", "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + s = dbs.dsDaten.Tables(0).Rows(0).Item("Standardwert") + End If + If s <> "" Then + dbs.Get_Tabledata("Ansatz", "", "Select taxpunktwert from ansatz where nransatz=" & s, "", False) + If dbs.dsDaten.Tables(0).Rows.Count > 0 Then + o = dbs.dsDaten.Tables(0).Rows(0).Item(0) + End If + End If + + + + + Case Else + End Select + Catch ex As Exception + Dim i As Integer + i = 0 + Finally + dbs.Dispose() + + + + End Try + + + + + + End Sub Private Sub tsbtndeletebehandlung_Click(sender As Object, e As EventArgs) Handles tsbtndeletebehandlung.Click diff --git a/DPM2016/Behandlung/Benhandungdetail.Designer.vb b/DPM2016/Behandlung/Benhandungdetail.Designer.vb index 626cb16..82be2b0 100644 --- a/DPM2016/Behandlung/Benhandungdetail.Designer.vb +++ b/DPM2016/Behandlung/Benhandungdetail.Designer.vb @@ -24,7 +24,9 @@ Partial Class Benhandungdetail Private Sub InitializeComponent() Dim resources As System.ComponentModel.ComponentResourceManager = New System.ComponentModel.ComponentResourceManager(GetType(Benhandungdetail)) Me.GrpPatient = New System.Windows.Forms.GroupBox() + Me.cbboxNRESTyp = New DPM2016.MyCombobox() Me.Label6 = New System.Windows.Forms.Label() + Me.cbboxnrbehandler = New DPM2016.MyCombobox() Me.Label7 = New System.Windows.Forms.Label() Me.grpZusammenfassugn = New System.Windows.Forms.GroupBox() Me.txtcTotal = New System.Windows.Forms.Label() @@ -40,8 +42,12 @@ Partial Class Benhandungdetail Me.txtcKVTotal = New System.Windows.Forms.Label() Me.Label2 = New System.Windows.Forms.Label() Me.GrpGaramt = New System.Windows.Forms.GroupBox() + Me.lblahvnr = New System.Windows.Forms.Label() + Me.Label10 = New System.Windows.Forms.Label() Me.Button1 = New System.Windows.Forms.Button() Me.lblGesetz = New System.Windows.Forms.Label() + Me.cbboxNrGesetz = New DPM2016.MyCombobox() + Me.cbboxNrZuweiser = New DPM2016.MyCombobox() Me.Label5 = New System.Windows.Forms.Label() Me.btnDeleteKogudatum = New System.Windows.Forms.Button() Me.btnDeleteUnfalldatum = New System.Windows.Forms.Button() @@ -52,8 +58,10 @@ Partial Class Benhandungdetail Me.DDTUnfalldatum = New DevComponents.Editors.DateTimeAdv.DateTimeInput() Me.lblUnfalldatum = New System.Windows.Forms.Label() Me.lblFallNummer = New System.Windows.Forms.Label() + Me.cbboxNrAnsprechpartner = New DPM2016.MyCombobox() Me.lblAnsprechpartner = New System.Windows.Forms.Label() Me.txtFallnummer = New System.Windows.Forms.TextBox() + Me.cbboxNrGarant = New DPM2016.MyCombobox() Me.lblgarant = New System.Windows.Forms.Label() Me.rbPrivatPersonen = New System.Windows.Forms.RadioButton() Me.rbkk = New System.Windows.Forms.RadioButton() @@ -71,6 +79,8 @@ Partial Class Benhandungdetail Me.lblZuschlagRaten = New System.Windows.Forms.Label() Me.lblAnzahlRaten = New System.Windows.Forms.Label() Me.grpBehandlungsdaten = New System.Windows.Forms.GroupBox() + Me.DDTRGDatum = New DevComponents.Editors.DateTimeAdv.DateTimeInput() + Me.lblRGDatum = New System.Windows.Forms.Label() Me.DDTRGStellung = New DevComponents.Editors.DateTimeAdv.DateTimeInput() Me.DDTBehandlungsende = New DevComponents.Editors.DateTimeAdv.DateTimeInput() Me.DDTBehandlungsbeginn = New DevComponents.Editors.DateTimeAdv.DateTimeInput() @@ -88,8 +98,12 @@ Partial Class Benhandungdetail Me.chkMitdatum = New System.Windows.Forms.CheckBox() Me.chkAndrucken_Taxpunkte = New System.Windows.Forms.CheckBox() Me.chkRabattGesamt = New System.Windows.Forms.CheckBox() + Me.cbboxNrtaxpunkt = New DPM2016.MyCombobox() + Me.cbboxNrAnsatz = New DPM2016.MyCombobox() Me.lblAnsatz = New System.Windows.Forms.Label() + Me.cbboxNrAbrechnungstyp = New DPM2016.MyCombobox() Me.lblAbrechnungstyp = New System.Windows.Forms.Label() + Me.cbboxNRRGtyp = New DPM2016.MyCombobox() Me.lblRechnungstyp = New System.Windows.Forms.Label() Me.ToolStrip1 = New System.Windows.Forms.ToolStrip() Me.tsbtnSave = New System.Windows.Forms.ToolStripButton() @@ -98,7 +112,11 @@ Partial Class Benhandungdetail Me.DesignRechnungToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.ToolStripSeparator1 = New System.Windows.Forms.ToolStripSeparator() Me.tsbtnGarantAnzeigen = New System.Windows.Forms.ToolStripButton() + Me.ToolStripSeparator2 = New System.Windows.Forms.ToolStripSeparator() + Me.lblfakturanr = New System.Windows.Forms.ToolStripLabel() + Me.txtrgnummer = New System.Windows.Forms.ToolStripTextBox() Me.GrpRechnungstext = New System.Windows.Forms.GroupBox() + Me.cbboxrgtext = New DPM2016.MyCombobox() Me.txtRechnungsbemerkung = New System.Windows.Forms.TextBox() Me.lblDiagnose = New System.Windows.Forms.Label() Me.txtDiagnose = New System.Windows.Forms.TextBox() @@ -107,6 +125,7 @@ Partial Class Benhandungdetail Me.grpglndiagnose = New System.Windows.Forms.GroupBox() Me.lblBehandlungsart = New System.Windows.Forms.Label() Me.txtBehandlungsgrund = New System.Windows.Forms.TextBox() + Me.cbboxNrBehandlungsart = New DPM2016.MyCombobox() Me.lblBehandlungsgrund = New System.Windows.Forms.Label() Me.grpEmpfaenger = New System.Windows.Forms.GroupBox() Me.btnSucheFirma = New System.Windows.Forms.Button() @@ -116,18 +135,6 @@ Partial Class Benhandungdetail Me.Label8 = New System.Windows.Forms.Label() Me.txtSuchePrivat = New System.Windows.Forms.TextBox() Me.txtEmpfaenger = New System.Windows.Forms.TextBox() - Me.cbboxNrBehandlungsart = New DPM2016.MyCombobox() - Me.cbboxrgtext = New DPM2016.MyCombobox() - Me.cbboxNRESTyp = New DPM2016.MyCombobox() - Me.cbboxnrbehandler = New DPM2016.MyCombobox() - Me.cbboxNrGesetz = New DPM2016.MyCombobox() - Me.cbboxNrZuweiser = New DPM2016.MyCombobox() - Me.cbboxNrAnsprechpartner = New DPM2016.MyCombobox() - Me.cbboxNrGarant = New DPM2016.MyCombobox() - Me.cbboxNrtaxpunkt = New DPM2016.MyCombobox() - Me.cbboxNrAnsatz = New DPM2016.MyCombobox() - Me.cbboxNrAbrechnungstyp = New DPM2016.MyCombobox() - Me.cbboxNRRGtyp = New DPM2016.MyCombobox() Me.GrpPatient.SuspendLayout() Me.grpZusammenfassugn.SuspendLayout() Me.GrpGaramt.SuspendLayout() @@ -138,6 +145,7 @@ Partial Class Benhandungdetail CType(Me.mtxtRatenzuschlag, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.xxtxtAnzahlraten, System.ComponentModel.ISupportInitialize).BeginInit() Me.grpBehandlungsdaten.SuspendLayout() + CType(Me.DDTRGDatum, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.DDTRGStellung, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.DDTBehandlungsende, System.ComponentModel.ISupportInitialize).BeginInit() CType(Me.DDTBehandlungsbeginn, System.ComponentModel.ISupportInitialize).BeginInit() @@ -163,6 +171,18 @@ Partial Class Benhandungdetail Me.GrpPatient.TabStop = False Me.GrpPatient.Text = "Patient / Behandler" ' + 'cbboxNRESTyp + ' + Me.cbboxNRESTyp.Dataselection = Nothing + Me.cbboxNRESTyp.Displaymember = Nothing + Me.cbboxNRESTyp.Location = New System.Drawing.Point(72, 52) + Me.cbboxNRESTyp.Name = "cbboxNRESTyp" + Me.cbboxNRESTyp.Size = New System.Drawing.Size(216, 21) + Me.cbboxNRESTyp.TabIndex = 1 + Me.cbboxNRESTyp.Table = Nothing + Me.cbboxNRESTyp.TableAlias = "" + Me.cbboxNRESTyp.Valuemember = Nothing + ' 'Label6 ' Me.Label6.AutoSize = True @@ -172,6 +192,18 @@ Partial Class Benhandungdetail Me.Label6.TabIndex = 21 Me.Label6.Text = "Formulartyp" ' + 'cbboxnrbehandler + ' + Me.cbboxnrbehandler.Dataselection = Nothing + Me.cbboxnrbehandler.Displaymember = Nothing + Me.cbboxnrbehandler.Location = New System.Drawing.Point(72, 24) + Me.cbboxnrbehandler.Name = "cbboxnrbehandler" + Me.cbboxnrbehandler.Size = New System.Drawing.Size(216, 21) + Me.cbboxnrbehandler.TabIndex = 0 + Me.cbboxnrbehandler.Table = Nothing + Me.cbboxnrbehandler.TableAlias = "" + Me.cbboxnrbehandler.Valuemember = Nothing + ' 'Label7 ' Me.Label7.AutoSize = True @@ -320,6 +352,8 @@ Partial Class Benhandungdetail ' 'GrpGaramt ' + Me.GrpGaramt.Controls.Add(Me.lblahvnr) + Me.GrpGaramt.Controls.Add(Me.Label10) Me.GrpGaramt.Controls.Add(Me.Button1) Me.GrpGaramt.Controls.Add(Me.lblGesetz) Me.GrpGaramt.Controls.Add(Me.cbboxNrGesetz) @@ -352,6 +386,23 @@ Partial Class Benhandungdetail Me.GrpGaramt.TabStop = False Me.GrpGaramt.Text = "Garant" ' + 'lblahvnr + ' + Me.lblahvnr.AutoSize = True + Me.lblahvnr.Location = New System.Drawing.Point(284, 116) + Me.lblahvnr.Name = "lblahvnr" + Me.lblahvnr.Size = New System.Drawing.Size(0, 13) + Me.lblahvnr.TabIndex = 226 + ' + 'Label10 + ' + Me.Label10.AutoSize = True + Me.Label10.Location = New System.Drawing.Point(251, 116) + Me.Label10.Name = "Label10" + Me.Label10.Size = New System.Drawing.Size(32, 13) + Me.Label10.TabIndex = 225 + Me.Label10.Text = "AHV:" + ' 'Button1 ' Me.Button1.Location = New System.Drawing.Point(373, 61) @@ -370,6 +421,32 @@ Partial Class Benhandungdetail Me.lblGesetz.TabIndex = 223 Me.lblGesetz.Text = "Gesetz" ' + 'cbboxNrGesetz + ' + Me.cbboxNrGesetz.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest + Me.cbboxNrGesetz.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems + Me.cbboxNrGesetz.Dataselection = Nothing + Me.cbboxNrGesetz.Displaymember = Nothing + Me.cbboxNrGesetz.Location = New System.Drawing.Point(94, 136) + Me.cbboxNrGesetz.Name = "cbboxNrGesetz" + Me.cbboxNrGesetz.Size = New System.Drawing.Size(151, 21) + Me.cbboxNrGesetz.TabIndex = 9 + Me.cbboxNrGesetz.Table = Nothing + Me.cbboxNrGesetz.TableAlias = "" + Me.cbboxNrGesetz.Valuemember = Nothing + ' + 'cbboxNrZuweiser + ' + Me.cbboxNrZuweiser.Dataselection = Nothing + Me.cbboxNrZuweiser.Displaymember = Nothing + Me.cbboxNrZuweiser.Location = New System.Drawing.Point(94, 239) + Me.cbboxNrZuweiser.Name = "cbboxNrZuweiser" + Me.cbboxNrZuweiser.Size = New System.Drawing.Size(169, 21) + Me.cbboxNrZuweiser.TabIndex = 13 + Me.cbboxNrZuweiser.Table = Nothing + Me.cbboxNrZuweiser.TableAlias = "" + Me.cbboxNrZuweiser.Valuemember = Nothing + ' 'Label5 ' Me.Label5.AutoSize = True @@ -530,6 +607,18 @@ Partial Class Benhandungdetail Me.lblFallNummer.TabIndex = 32 Me.lblFallNummer.Text = "FallNummer" ' + 'cbboxNrAnsprechpartner + ' + Me.cbboxNrAnsprechpartner.Dataselection = Nothing + Me.cbboxNrAnsprechpartner.Displaymember = Nothing + Me.cbboxNrAnsprechpartner.Location = New System.Drawing.Point(94, 84) + Me.cbboxNrAnsprechpartner.Name = "cbboxNrAnsprechpartner" + Me.cbboxNrAnsprechpartner.Size = New System.Drawing.Size(151, 21) + Me.cbboxNrAnsprechpartner.TabIndex = 7 + Me.cbboxNrAnsprechpartner.Table = Nothing + Me.cbboxNrAnsprechpartner.TableAlias = "" + Me.cbboxNrAnsprechpartner.Valuemember = Nothing + ' 'lblAnsprechpartner ' Me.lblAnsprechpartner.AutoSize = True @@ -546,6 +635,18 @@ Partial Class Benhandungdetail Me.txtFallnummer.Size = New System.Drawing.Size(151, 20) Me.txtFallnummer.TabIndex = 8 ' + 'cbboxNrGarant + ' + Me.cbboxNrGarant.Dataselection = Nothing + Me.cbboxNrGarant.Displaymember = Nothing + Me.cbboxNrGarant.Location = New System.Drawing.Point(94, 61) + Me.cbboxNrGarant.Name = "cbboxNrGarant" + Me.cbboxNrGarant.Size = New System.Drawing.Size(277, 21) + Me.cbboxNrGarant.TabIndex = 6 + Me.cbboxNrGarant.Table = Nothing + Me.cbboxNrGarant.TableAlias = "" + Me.cbboxNrGarant.Valuemember = Nothing + ' 'lblgarant ' Me.lblgarant.AutoSize = True @@ -727,6 +828,8 @@ Partial Class Benhandungdetail ' 'grpBehandlungsdaten ' + Me.grpBehandlungsdaten.Controls.Add(Me.DDTRGDatum) + Me.grpBehandlungsdaten.Controls.Add(Me.lblRGDatum) Me.grpBehandlungsdaten.Controls.Add(Me.DDTRGStellung) Me.grpBehandlungsdaten.Controls.Add(Me.DDTBehandlungsende) Me.grpBehandlungsdaten.Controls.Add(Me.DDTBehandlungsbeginn) @@ -742,6 +845,61 @@ Partial Class Benhandungdetail Me.grpBehandlungsdaten.TabStop = False Me.grpBehandlungsdaten.Text = "Behandlung" ' + 'DDTRGDatum + ' + ' + ' + ' + Me.DDTRGDatum.BackgroundStyle.Class = "DateTimeInputBackground" + Me.DDTRGDatum.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square + Me.DDTRGDatum.ButtonDropDown.Shortcut = DevComponents.DotNetBar.eShortcut.AltDown + Me.DDTRGDatum.ButtonDropDown.Visible = True + Me.DDTRGDatum.IsPopupCalendarOpen = False + Me.DDTRGDatum.Location = New System.Drawing.Point(129, 96) + ' + ' + ' + ' + ' + ' + Me.DDTRGDatum.MonthCalendar.BackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square + Me.DDTRGDatum.MonthCalendar.CalendarDimensions = New System.Drawing.Size(1, 1) + Me.DDTRGDatum.MonthCalendar.ClearButtonVisible = True + ' + ' + ' + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground2 + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BackColorGradientAngle = 90 + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarBackground + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BorderTop = DevComponents.DotNetBar.eStyleBorderType.Solid + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BorderTopColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.BarDockedBorder + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.BorderTopWidth = 1 + Me.DDTRGDatum.MonthCalendar.CommandsBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square + Me.DDTRGDatum.MonthCalendar.DisplayMonth = New Date(2015, 5, 1, 0, 0, 0, 0) + Me.DDTRGDatum.MonthCalendar.FirstDayOfWeek = System.DayOfWeek.Monday + ' + ' + ' + Me.DDTRGDatum.MonthCalendar.NavigationBackgroundStyle.BackColor2SchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground2 + Me.DDTRGDatum.MonthCalendar.NavigationBackgroundStyle.BackColorGradientAngle = 90 + Me.DDTRGDatum.MonthCalendar.NavigationBackgroundStyle.BackColorSchemePart = DevComponents.DotNetBar.eColorSchemePart.PanelBackground + Me.DDTRGDatum.MonthCalendar.NavigationBackgroundStyle.CornerType = DevComponents.DotNetBar.eCornerType.Square + Me.DDTRGDatum.MonthCalendar.TodayButtonVisible = True + Me.DDTRGDatum.Name = "DDTRGDatum" + Me.DDTRGDatum.Size = New System.Drawing.Size(162, 20) + Me.DDTRGDatum.Style = DevComponents.DotNetBar.eDotNetBarStyle.StyleManagerControlled + Me.DDTRGDatum.TabIndex = 210 + ' + 'lblRGDatum + ' + Me.lblRGDatum.AutoSize = True + Me.lblRGDatum.BackColor = System.Drawing.Color.Transparent + Me.lblRGDatum.Location = New System.Drawing.Point(9, 102) + Me.lblRGDatum.Name = "lblRGDatum" + Me.lblRGDatum.Size = New System.Drawing.Size(91, 13) + Me.lblRGDatum.TabIndex = 211 + Me.lblRGDatum.Text = "Rechnungsdatum" + ' 'DDTRGStellung ' ' @@ -880,7 +1038,7 @@ Partial Class Benhandungdetail ' 'btnAbschliessen ' - Me.btnAbschliessen.Location = New System.Drawing.Point(8, 100) + Me.btnAbschliessen.Location = New System.Drawing.Point(5, 117) Me.btnAbschliessen.Name = "btnAbschliessen" Me.btnAbschliessen.Size = New System.Drawing.Size(124, 23) Me.btnAbschliessen.TabIndex = 209 @@ -890,7 +1048,7 @@ Partial Class Benhandungdetail ' 'btnZuruecksetzen ' - Me.btnZuruecksetzen.Location = New System.Drawing.Point(173, 100) + Me.btnZuruecksetzen.Location = New System.Drawing.Point(170, 117) Me.btnZuruecksetzen.Name = "btnZuruecksetzen" Me.btnZuruecksetzen.Size = New System.Drawing.Size(124, 23) Me.btnZuruecksetzen.TabIndex = 208 @@ -1041,6 +1199,30 @@ Partial Class Benhandungdetail Me.chkRabattGesamt.Text = "Rabatt auf Gesamtbetrag" Me.chkRabattGesamt.UseVisualStyleBackColor = True ' + 'cbboxNrtaxpunkt + ' + Me.cbboxNrtaxpunkt.Dataselection = Nothing + Me.cbboxNrtaxpunkt.Displaymember = Nothing + Me.cbboxNrtaxpunkt.Location = New System.Drawing.Point(97, 138) + Me.cbboxNrtaxpunkt.Name = "cbboxNrtaxpunkt" + Me.cbboxNrtaxpunkt.Size = New System.Drawing.Size(196, 21) + Me.cbboxNrtaxpunkt.TabIndex = 4 + Me.cbboxNrtaxpunkt.Table = Nothing + Me.cbboxNrtaxpunkt.TableAlias = "" + Me.cbboxNrtaxpunkt.Valuemember = Nothing + ' + 'cbboxNrAnsatz + ' + Me.cbboxNrAnsatz.Dataselection = Nothing + Me.cbboxNrAnsatz.Displaymember = Nothing + Me.cbboxNrAnsatz.Location = New System.Drawing.Point(94, 81) + Me.cbboxNrAnsatz.Name = "cbboxNrAnsatz" + Me.cbboxNrAnsatz.Size = New System.Drawing.Size(196, 21) + Me.cbboxNrAnsatz.TabIndex = 2 + Me.cbboxNrAnsatz.Table = Nothing + Me.cbboxNrAnsatz.TableAlias = "" + Me.cbboxNrAnsatz.Valuemember = Nothing + ' 'lblAnsatz ' Me.lblAnsatz.AutoSize = True @@ -1050,6 +1232,18 @@ Partial Class Benhandungdetail Me.lblAnsatz.TabIndex = 27 Me.lblAnsatz.Text = "Ansatz" ' + 'cbboxNrAbrechnungstyp + ' + Me.cbboxNrAbrechnungstyp.Dataselection = Nothing + Me.cbboxNrAbrechnungstyp.Displaymember = Nothing + Me.cbboxNrAbrechnungstyp.Location = New System.Drawing.Point(94, 53) + Me.cbboxNrAbrechnungstyp.Name = "cbboxNrAbrechnungstyp" + Me.cbboxNrAbrechnungstyp.Size = New System.Drawing.Size(196, 21) + Me.cbboxNrAbrechnungstyp.TabIndex = 1 + Me.cbboxNrAbrechnungstyp.Table = Nothing + Me.cbboxNrAbrechnungstyp.TableAlias = "" + Me.cbboxNrAbrechnungstyp.Valuemember = Nothing + ' 'lblAbrechnungstyp ' Me.lblAbrechnungstyp.AutoSize = True @@ -1059,6 +1253,18 @@ Partial Class Benhandungdetail Me.lblAbrechnungstyp.TabIndex = 25 Me.lblAbrechnungstyp.Text = "Abrechnungstyp" ' + 'cbboxNRRGtyp + ' + Me.cbboxNRRGtyp.Dataselection = Nothing + Me.cbboxNRRGtyp.Displaymember = Nothing + Me.cbboxNRRGtyp.Location = New System.Drawing.Point(94, 25) + Me.cbboxNRRGtyp.Name = "cbboxNRRGtyp" + Me.cbboxNRRGtyp.Size = New System.Drawing.Size(196, 21) + Me.cbboxNRRGtyp.TabIndex = 0 + Me.cbboxNRRGtyp.Table = Nothing + Me.cbboxNRRGtyp.TableAlias = "" + Me.cbboxNRRGtyp.Valuemember = Nothing + ' 'lblRechnungstyp ' Me.lblRechnungstyp.AutoSize = True @@ -1070,12 +1276,12 @@ Partial Class Benhandungdetail ' 'ToolStrip1 ' - Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsbtnSave, Me.ToolStripDropDownButton1, Me.ToolStripSeparator1, Me.tsbtnGarantAnzeigen}) + Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(20, 20) + Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsbtnSave, Me.ToolStripDropDownButton1, Me.ToolStripSeparator1, Me.tsbtnGarantAnzeigen, Me.ToolStripSeparator2, Me.lblfakturanr, Me.txtrgnummer}) Me.ToolStrip1.Location = New System.Drawing.Point(0, 0) Me.ToolStrip1.Name = "ToolStrip1" - Me.ToolStrip1.Size = New System.Drawing.Size(1062, 25) + Me.ToolStrip1.Size = New System.Drawing.Size(1062, 27) Me.ToolStrip1.TabIndex = 15 - Me.ToolStrip1.Text = "ToolStrip1" ' 'tsbtnSave ' @@ -1083,7 +1289,7 @@ Partial Class Benhandungdetail Me.tsbtnSave.Image = CType(resources.GetObject("tsbtnSave.Image"), System.Drawing.Image) Me.tsbtnSave.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsbtnSave.Name = "tsbtnSave" - Me.tsbtnSave.Size = New System.Drawing.Size(23, 22) + Me.tsbtnSave.Size = New System.Drawing.Size(24, 24) Me.tsbtnSave.Text = "Speichern" ' 'ToolStripDropDownButton1 @@ -1093,7 +1299,7 @@ Partial Class Benhandungdetail Me.ToolStripDropDownButton1.Image = CType(resources.GetObject("ToolStripDropDownButton1.Image"), System.Drawing.Image) Me.ToolStripDropDownButton1.ImageTransparentColor = System.Drawing.Color.Magenta Me.ToolStripDropDownButton1.Name = "ToolStripDropDownButton1" - Me.ToolStripDropDownButton1.Size = New System.Drawing.Size(29, 22) + Me.ToolStripDropDownButton1.Size = New System.Drawing.Size(33, 24) Me.ToolStripDropDownButton1.Text = "Drucken / Vorschau / Design" Me.ToolStripDropDownButton1.Visible = False ' @@ -1112,7 +1318,7 @@ Partial Class Benhandungdetail 'ToolStripSeparator1 ' Me.ToolStripSeparator1.Name = "ToolStripSeparator1" - Me.ToolStripSeparator1.Size = New System.Drawing.Size(6, 25) + Me.ToolStripSeparator1.Size = New System.Drawing.Size(6, 27) ' 'tsbtnGarantAnzeigen ' @@ -1120,11 +1326,29 @@ Partial Class Benhandungdetail Me.tsbtnGarantAnzeigen.Image = CType(resources.GetObject("tsbtnGarantAnzeigen.Image"), System.Drawing.Image) Me.tsbtnGarantAnzeigen.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsbtnGarantAnzeigen.Name = "tsbtnGarantAnzeigen" - Me.tsbtnGarantAnzeigen.Size = New System.Drawing.Size(96, 22) + Me.tsbtnGarantAnzeigen.Size = New System.Drawing.Size(96, 24) Me.tsbtnGarantAnzeigen.Text = "Garant anzeigen" Me.tsbtnGarantAnzeigen.TextImageRelation = System.Windows.Forms.TextImageRelation.TextBeforeImage Me.tsbtnGarantAnzeigen.ToolTipText = "Garant anzeigen" ' + 'ToolStripSeparator2 + ' + Me.ToolStripSeparator2.Name = "ToolStripSeparator2" + Me.ToolStripSeparator2.Size = New System.Drawing.Size(6, 27) + ' + 'lblfakturanr + ' + Me.lblfakturanr.Name = "lblfakturanr" + Me.lblfakturanr.Size = New System.Drawing.Size(25, 24) + Me.lblfakturanr.Text = "RG:" + ' + 'txtrgnummer + ' + Me.txtrgnummer.Font = New System.Drawing.Font("Segoe UI", 9.0!) + Me.txtrgnummer.Name = "txtrgnummer" + Me.txtrgnummer.ReadOnly = True + Me.txtrgnummer.Size = New System.Drawing.Size(150, 27) + ' 'GrpRechnungstext ' Me.GrpRechnungstext.Controls.Add(Me.cbboxrgtext) @@ -1136,6 +1360,18 @@ Partial Class Benhandungdetail Me.GrpRechnungstext.TabStop = False Me.GrpRechnungstext.Text = "Rechnungstext / Bemerkung" ' + 'cbboxrgtext + ' + Me.cbboxrgtext.Dataselection = Nothing + Me.cbboxrgtext.Displaymember = Nothing + Me.cbboxrgtext.Location = New System.Drawing.Point(3, 20) + Me.cbboxrgtext.Name = "cbboxrgtext" + Me.cbboxrgtext.Size = New System.Drawing.Size(424, 21) + Me.cbboxrgtext.TabIndex = 0 + Me.cbboxrgtext.Table = Nothing + Me.cbboxrgtext.TableAlias = "" + Me.cbboxrgtext.Valuemember = Nothing + ' 'txtRechnungsbemerkung ' Me.txtRechnungsbemerkung.Dock = System.Windows.Forms.DockStyle.Bottom @@ -1210,6 +1446,20 @@ Partial Class Benhandungdetail Me.txtBehandlungsgrund.Size = New System.Drawing.Size(329, 20) Me.txtBehandlungsgrund.TabIndex = 222 ' + 'cbboxNrBehandlungsart + ' + Me.cbboxNrBehandlungsart.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend + Me.cbboxNrBehandlungsart.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems + Me.cbboxNrBehandlungsart.Dataselection = Nothing + Me.cbboxNrBehandlungsart.Displaymember = Nothing + Me.cbboxNrBehandlungsart.Location = New System.Drawing.Point(95, 77) + Me.cbboxNrBehandlungsart.Name = "cbboxNrBehandlungsart" + Me.cbboxNrBehandlungsart.Size = New System.Drawing.Size(151, 21) + Me.cbboxNrBehandlungsart.TabIndex = 225 + Me.cbboxNrBehandlungsart.Table = Nothing + Me.cbboxNrBehandlungsart.TableAlias = "" + Me.cbboxNrBehandlungsart.Valuemember = Nothing + ' 'lblBehandlungsgrund ' Me.lblBehandlungsgrund.AutoSize = True @@ -1294,154 +1544,6 @@ Partial Class Benhandungdetail Me.txtEmpfaenger.Size = New System.Drawing.Size(326, 95) Me.txtEmpfaenger.TabIndex = 2 ' - 'cbboxNrBehandlungsart - ' - Me.cbboxNrBehandlungsart.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.SuggestAppend - Me.cbboxNrBehandlungsart.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems - Me.cbboxNrBehandlungsart.Dataselection = Nothing - Me.cbboxNrBehandlungsart.Displaymember = Nothing - Me.cbboxNrBehandlungsart.Location = New System.Drawing.Point(95, 77) - Me.cbboxNrBehandlungsart.Name = "cbboxNrBehandlungsart" - Me.cbboxNrBehandlungsart.Size = New System.Drawing.Size(151, 21) - Me.cbboxNrBehandlungsart.TabIndex = 225 - Me.cbboxNrBehandlungsart.Table = Nothing - Me.cbboxNrBehandlungsart.TableAlias = "" - Me.cbboxNrBehandlungsart.Valuemember = Nothing - ' - 'cbboxrgtext - ' - Me.cbboxrgtext.Dataselection = Nothing - Me.cbboxrgtext.Displaymember = Nothing - Me.cbboxrgtext.Location = New System.Drawing.Point(3, 20) - Me.cbboxrgtext.Name = "cbboxrgtext" - Me.cbboxrgtext.Size = New System.Drawing.Size(424, 21) - Me.cbboxrgtext.TabIndex = 0 - Me.cbboxrgtext.Table = Nothing - Me.cbboxrgtext.TableAlias = "" - Me.cbboxrgtext.Valuemember = Nothing - ' - 'cbboxNRESTyp - ' - Me.cbboxNRESTyp.Dataselection = Nothing - Me.cbboxNRESTyp.Displaymember = Nothing - Me.cbboxNRESTyp.Location = New System.Drawing.Point(72, 52) - Me.cbboxNRESTyp.Name = "cbboxNRESTyp" - Me.cbboxNRESTyp.Size = New System.Drawing.Size(216, 21) - Me.cbboxNRESTyp.TabIndex = 1 - Me.cbboxNRESTyp.Table = Nothing - Me.cbboxNRESTyp.TableAlias = "" - Me.cbboxNRESTyp.Valuemember = Nothing - ' - 'cbboxnrbehandler - ' - Me.cbboxnrbehandler.Dataselection = Nothing - Me.cbboxnrbehandler.Displaymember = Nothing - Me.cbboxnrbehandler.Location = New System.Drawing.Point(72, 24) - Me.cbboxnrbehandler.Name = "cbboxnrbehandler" - Me.cbboxnrbehandler.Size = New System.Drawing.Size(216, 21) - Me.cbboxnrbehandler.TabIndex = 0 - Me.cbboxnrbehandler.Table = Nothing - Me.cbboxnrbehandler.TableAlias = "" - Me.cbboxnrbehandler.Valuemember = Nothing - ' - 'cbboxNrGesetz - ' - Me.cbboxNrGesetz.AutoCompleteMode = System.Windows.Forms.AutoCompleteMode.Suggest - Me.cbboxNrGesetz.AutoCompleteSource = System.Windows.Forms.AutoCompleteSource.ListItems - Me.cbboxNrGesetz.Dataselection = Nothing - Me.cbboxNrGesetz.Displaymember = Nothing - Me.cbboxNrGesetz.Location = New System.Drawing.Point(94, 136) - Me.cbboxNrGesetz.Name = "cbboxNrGesetz" - Me.cbboxNrGesetz.Size = New System.Drawing.Size(151, 21) - Me.cbboxNrGesetz.TabIndex = 9 - Me.cbboxNrGesetz.Table = Nothing - Me.cbboxNrGesetz.TableAlias = "" - Me.cbboxNrGesetz.Valuemember = Nothing - ' - 'cbboxNrZuweiser - ' - Me.cbboxNrZuweiser.Dataselection = Nothing - Me.cbboxNrZuweiser.Displaymember = Nothing - Me.cbboxNrZuweiser.Location = New System.Drawing.Point(94, 239) - Me.cbboxNrZuweiser.Name = "cbboxNrZuweiser" - Me.cbboxNrZuweiser.Size = New System.Drawing.Size(169, 21) - Me.cbboxNrZuweiser.TabIndex = 13 - Me.cbboxNrZuweiser.Table = Nothing - Me.cbboxNrZuweiser.TableAlias = "" - Me.cbboxNrZuweiser.Valuemember = Nothing - ' - 'cbboxNrAnsprechpartner - ' - Me.cbboxNrAnsprechpartner.Dataselection = Nothing - Me.cbboxNrAnsprechpartner.Displaymember = Nothing - Me.cbboxNrAnsprechpartner.Location = New System.Drawing.Point(94, 84) - Me.cbboxNrAnsprechpartner.Name = "cbboxNrAnsprechpartner" - Me.cbboxNrAnsprechpartner.Size = New System.Drawing.Size(151, 21) - Me.cbboxNrAnsprechpartner.TabIndex = 7 - Me.cbboxNrAnsprechpartner.Table = Nothing - Me.cbboxNrAnsprechpartner.TableAlias = "" - Me.cbboxNrAnsprechpartner.Valuemember = Nothing - ' - 'cbboxNrGarant - ' - Me.cbboxNrGarant.Dataselection = Nothing - Me.cbboxNrGarant.Displaymember = Nothing - Me.cbboxNrGarant.Location = New System.Drawing.Point(94, 61) - Me.cbboxNrGarant.Name = "cbboxNrGarant" - Me.cbboxNrGarant.Size = New System.Drawing.Size(277, 21) - Me.cbboxNrGarant.TabIndex = 6 - Me.cbboxNrGarant.Table = Nothing - Me.cbboxNrGarant.TableAlias = "" - Me.cbboxNrGarant.Valuemember = Nothing - ' - 'cbboxNrtaxpunkt - ' - Me.cbboxNrtaxpunkt.Dataselection = Nothing - Me.cbboxNrtaxpunkt.Displaymember = Nothing - Me.cbboxNrtaxpunkt.Location = New System.Drawing.Point(97, 138) - Me.cbboxNrtaxpunkt.Name = "cbboxNrtaxpunkt" - Me.cbboxNrtaxpunkt.Size = New System.Drawing.Size(196, 21) - Me.cbboxNrtaxpunkt.TabIndex = 4 - Me.cbboxNrtaxpunkt.Table = Nothing - Me.cbboxNrtaxpunkt.TableAlias = "" - Me.cbboxNrtaxpunkt.Valuemember = Nothing - ' - 'cbboxNrAnsatz - ' - Me.cbboxNrAnsatz.Dataselection = Nothing - Me.cbboxNrAnsatz.Displaymember = Nothing - Me.cbboxNrAnsatz.Location = New System.Drawing.Point(94, 81) - Me.cbboxNrAnsatz.Name = "cbboxNrAnsatz" - Me.cbboxNrAnsatz.Size = New System.Drawing.Size(196, 21) - Me.cbboxNrAnsatz.TabIndex = 2 - Me.cbboxNrAnsatz.Table = Nothing - Me.cbboxNrAnsatz.TableAlias = "" - Me.cbboxNrAnsatz.Valuemember = Nothing - ' - 'cbboxNrAbrechnungstyp - ' - Me.cbboxNrAbrechnungstyp.Dataselection = Nothing - Me.cbboxNrAbrechnungstyp.Displaymember = Nothing - Me.cbboxNrAbrechnungstyp.Location = New System.Drawing.Point(94, 53) - Me.cbboxNrAbrechnungstyp.Name = "cbboxNrAbrechnungstyp" - Me.cbboxNrAbrechnungstyp.Size = New System.Drawing.Size(196, 21) - Me.cbboxNrAbrechnungstyp.TabIndex = 1 - Me.cbboxNrAbrechnungstyp.Table = Nothing - Me.cbboxNrAbrechnungstyp.TableAlias = "" - Me.cbboxNrAbrechnungstyp.Valuemember = Nothing - ' - 'cbboxNRRGtyp - ' - Me.cbboxNRRGtyp.Dataselection = Nothing - Me.cbboxNRRGtyp.Displaymember = Nothing - Me.cbboxNRRGtyp.Location = New System.Drawing.Point(94, 25) - Me.cbboxNRRGtyp.Name = "cbboxNRRGtyp" - Me.cbboxNRRGtyp.Size = New System.Drawing.Size(196, 21) - Me.cbboxNRRGtyp.TabIndex = 0 - Me.cbboxNRRGtyp.Table = Nothing - Me.cbboxNRRGtyp.TableAlias = "" - Me.cbboxNRRGtyp.Valuemember = Nothing - ' 'Benhandungdetail ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) @@ -1473,6 +1575,7 @@ Partial Class Benhandungdetail CType(Me.xxtxtAnzahlraten, System.ComponentModel.ISupportInitialize).EndInit() Me.grpBehandlungsdaten.ResumeLayout(False) Me.grpBehandlungsdaten.PerformLayout() + CType(Me.DDTRGDatum, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.DDTRGStellung, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.DDTBehandlungsende, System.ComponentModel.ISupportInitialize).EndInit() CType(Me.DDTBehandlungsbeginn, System.ComponentModel.ISupportInitialize).EndInit() @@ -1597,4 +1700,11 @@ Partial Class Benhandungdetail Friend WithEvents Label8 As Label Friend WithEvents txtSuchePrivat As TextBox Friend WithEvents txtEmpfaenger As TextBox + Friend WithEvents lblfakturanr As ToolStripLabel + Friend WithEvents txtrgnummer As ToolStripTextBox + Friend WithEvents ToolStripSeparator2 As ToolStripSeparator + Friend WithEvents DDTRGDatum As DevComponents.Editors.DateTimeAdv.DateTimeInput + Friend WithEvents lblRGDatum As Label + Friend WithEvents lblahvnr As Label + Friend WithEvents Label10 As Label End Class diff --git a/DPM2016/Behandlung/Benhandungdetail.vb b/DPM2016/Behandlung/Benhandungdetail.vb index c93a537..bcbb7df 100644 --- a/DPM2016/Behandlung/Benhandungdetail.vb +++ b/DPM2016/Behandlung/Benhandungdetail.vb @@ -241,6 +241,30 @@ Catch ex As Exception End Try + + Try + If db.dsDaten.Tables(0).Rows(0).Item("Status") = 3 Then + Me.lblfakturanr.Visible = True + Me.txtrgnummer.Visible = True + Dim dbf As New clsDB + dbf.Get_Tabledata("Faktua", "", "Select nrfaktura, datum From faktura where nrbehandlung=" + db.dsDaten.Tables(0).Rows(0).Item("nrbehandlung").ToString + " and status<>9 and nrfaktura=nrhauptfaktura") + Me.txtrgnummer.Text = "" + Dim d As Date + d = dbf.dsDaten.Tables(0).Rows(0).Item(1) + Me.txtrgnummer.Text = dbf.dsDaten.Tables(0).Rows(0).Item(0).ToString + " / " + d.ToString("dd.MM.yyyy") + dbf.Dispose() + + Else + Me.lblfakturanr.Visible = False + Me.txtrgnummer.Visible = False + End If + Catch + Me.lblfakturanr.Visible = False + Me.txtrgnummer.Visible = False + + End Try + + AddChanges(Me) Me.HasChanges = False End Sub @@ -345,7 +369,7 @@ Dim db1 As New clsDB Dim garantdatan As New DataTable If Key > 49999 Then - db1.Get_Tabledata("Firma", "", "Select nrfirma,name1+', '+ort +' ('+ltrim(rtrim(str(nrfirma)))+')' as Name1 from firma where aktiv=1 and nrfirma=" + Key.ToString + " order by name1") + db1.Get_Tabledata("Firma", "", "Select nrfirma, name1 +', '+ort +' ('+ltrim(rtrim(str(nrfirma)))+')' as Name1 from firma where aktiv=1 and nrfirma=" + Key.ToString + " order by name1") 'Me.lblGarantText.Text = db.dsDaten.Tables(0).Rows(0).Item("nrfirma").ToString + " - " + db.dsDaten.Tables(0).Rows(0).Item("name1") @@ -522,6 +546,17 @@ Me.cbboxrgtext.Valuemember = "Nrrechnungstext" ' Me.OnLoad = False + Dim dbx As New clsDB + Try + + Me.lblahvnr.Text = dbx.Get_Datavalue("Select ahvnr from privat where nrprivat=" + Me.Patientnr.ToString) + Catch + Me.lblahvnr.Text = "" + End Try + dbx.Dispose() + + + End Sub Public Sub Recalc_Totale() @@ -556,7 +591,6 @@ If r("aktiv") = True Then If r("SSO_Nummer").ToString.Substring(0, 1) = "4" Then ssototal = ssototal + r("total") If r("SSO_Nummer").ToString.Substring(0, 1) = "9" Then ssototal = ssototal + r("total") - 'If r("sso_Nummer") > 3999 And r("sso_nummer") < 5000 Then ssototal = ssototal + r("total") total = total + r("Total") End If @@ -580,10 +614,27 @@ If chkRabattGesamt.Checked Then total = (100 - mtxtRabatt.Text) * total / 100 Else - total = stotal - (ssototal / 100 * Me.mtxtRabatt.Text) + Dim xxtotal As Double + Dim xabs As String = db.Get_Option(10000) + If UCase(xabs) <> "TRUE" Then + total = stotal - (ssototal / 100 * Me.mtxtRabatt.Text) + Else + Dim xldb As New clsDB + xldb.Get_Tabledata("Leistung", "where absolut=0 and nrbehandlung=" + Me.Behandlungsnr.ToString + " And aktiv=1") + + For Each r As DataRow In xldb.dsDaten.Tables(0).Rows + If r("aktiv") = True Then + If r("SSO_Nummer").ToString.Substring(0, 1) = "4" Then xxtotal = xxtotal + r("total") + If r("SSO_Nummer").ToString.Substring(0, 1) = "9" Then xxtotal = xxtotal + r("total") + 'If r("sso_Nummer") > 3999 And r("sso_nummer") < 5000 Then ssototal = ssototal + r("total") + End If + Next + xldb.Dispose() + End If + total = stotal - (xxtotal / 100 * Me.mtxtRabatt.Text) End If - Me.txtcRabatt.Text = ((stotal - total) * -1).ToString + Me.txtcRabatt.Text = ((stotal - total) * -1).ToString Me.txtcRabatt.Text = Globals.Round5(Me.txtcRabatt.Text) Catch ex As Exception total = 0 @@ -824,7 +875,7 @@ Private Sub rbPrivatPersonen_CheckedChanged(sender As Object, e As EventArgs) Handles rbPrivatPersonen.CheckedChanged If rbPrivatPersonen.Checked Then Dim garantdatan As New DataTable - db.Get_Tabledata("Privat", "", "Select nrprivat,name+' '+vorname+', '+plz+' '+ort +' ('+ltrim(rtrim(str(nrprivat)))+')' as Name1 from privat where aktiv=1 and (garant=1 or gesvertreter=1) order by name, vorname") + db.Get_Tabledata("Privat", "", "Select nrprivat,name+' '+vorname+', '+plz+' '+ort +' ('+ltrim(rtrim(str(nrprivat)))+')' as Name1 from privat where ltrim(name)<>'' and aktiv=1 and (garant=1 or gesvertreter=1) order by name, vorname") Me.cbboxNrGarant.DataSource = Nothing garantdatan = db.dsDaten.Tables(0).Copy Me.cbboxNrGarant.DataSource = garantdatan diff --git a/DPM2016/Behandlung/Leistungen.Designer.vb b/DPM2016/Behandlung/Leistungen.Designer.vb index f215dcf..fac71d9 100644 --- a/DPM2016/Behandlung/Leistungen.Designer.vb +++ b/DPM2016/Behandlung/Leistungen.Designer.vb @@ -101,6 +101,7 @@ Partial Class Leistungen ' 'ToolStrip1 ' + Me.ToolStrip1.ImageScalingSize = New System.Drawing.Size(20, 20) Me.ToolStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tslabelbhtotal}) Me.ToolStrip1.Location = New System.Drawing.Point(0, 0) Me.ToolStrip1.Name = "ToolStrip1" @@ -111,7 +112,7 @@ Partial Class Leistungen 'tslabelbhtotal ' Me.tslabelbhtotal.Name = "tslabelbhtotal" - Me.tslabelbhtotal.Size = New System.Drawing.Size(88, 22) + Me.tslabelbhtotal.Size = New System.Drawing.Size(87, 22) Me.tslabelbhtotal.Text = "ToolStripLabel1" ' 'GrpTarif @@ -172,18 +173,20 @@ Partial Class Leistungen ' 'ContextMenuStrip1 ' + Me.ContextMenuStrip1.ImageScalingSize = New System.Drawing.Size(20, 20) Me.ContextMenuStrip1.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.TarifdetailsToolStripMenuItem}) Me.ContextMenuStrip1.Name = "ContextMenuStrip1" - Me.ContextMenuStrip1.Size = New System.Drawing.Size(132, 26) + Me.ContextMenuStrip1.Size = New System.Drawing.Size(131, 26) ' 'TarifdetailsToolStripMenuItem ' Me.TarifdetailsToolStripMenuItem.Name = "TarifdetailsToolStripMenuItem" - Me.TarifdetailsToolStripMenuItem.Size = New System.Drawing.Size(131, 22) + Me.TarifdetailsToolStripMenuItem.Size = New System.Drawing.Size(130, 22) Me.TarifdetailsToolStripMenuItem.Text = "Tarifdetails" ' 'ToolStrip2 ' + Me.ToolStrip2.ImageScalingSize = New System.Drawing.Size(20, 20) Me.ToolStrip2.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.tsDown, Me.tsUp, Me.ToolStripLabel1, Me.txtfilter}) Me.ToolStrip2.Location = New System.Drawing.Point(196, 3) Me.ToolStrip2.Name = "ToolStrip2" @@ -197,7 +200,7 @@ Partial Class Leistungen Me.tsDown.Image = CType(resources.GetObject("tsDown.Image"), System.Drawing.Image) Me.tsDown.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsDown.Name = "tsDown" - Me.tsDown.Size = New System.Drawing.Size(23, 22) + Me.tsDown.Size = New System.Drawing.Size(24, 24) Me.tsDown.Text = "ToolStripButton2" Me.tsDown.Visible = False ' @@ -207,7 +210,7 @@ Partial Class Leistungen Me.tsUp.Image = CType(resources.GetObject("tsUp.Image"), System.Drawing.Image) Me.tsUp.ImageTransparentColor = System.Drawing.Color.Magenta Me.tsUp.Name = "tsUp" - Me.tsUp.Size = New System.Drawing.Size(23, 22) + Me.tsUp.Size = New System.Drawing.Size(24, 24) Me.tsUp.Text = "ToolStripButton1" Me.tsUp.Visible = False ' @@ -219,6 +222,7 @@ Partial Class Leistungen ' 'txtfilter ' + Me.txtfilter.Font = New System.Drawing.Font("Segoe UI", 9.0!) Me.txtfilter.Name = "txtfilter" Me.txtfilter.Size = New System.Drawing.Size(100, 25) ' @@ -630,6 +634,7 @@ Partial Class Leistungen ' 'ctxMenuLeistung ' + Me.ctxMenuLeistung.ImageScalingSize = New System.Drawing.Size(20, 20) Me.ctxMenuLeistung.Items.AddRange(New System.Windows.Forms.ToolStripItem() {Me.BearbeitenToolStripMenuItem, Me.LöschenToolStripMenuItem, Me.AnzeigenToolStripMenuItem, Me.LeistungsdatumÄndernToolStripMenuItem}) Me.ctxMenuLeistung.Name = "ctxMenuLeistung" Me.ctxMenuLeistung.Size = New System.Drawing.Size(200, 92) diff --git a/DPM2016/Behandlung/Leistungen.resx b/DPM2016/Behandlung/Leistungen.resx index 0703ec3..44b73b7 100644 --- a/DPM2016/Behandlung/Leistungen.resx +++ b/DPM2016/Behandlung/Leistungen.resx @@ -120,9 +120,6 @@ 17, 17 - - 124, 17 - 524, 17 @@ -200,6 +197,6 @@ - <?xml version="1.0"?><Blob><Styles type="C1.Win.C1TrueDBGrid.Design.ContextWrapper"><Data>HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style8{}Style7{}Style2{}EvenRow{BackColor:White;}Normal{}RecordSelector{AlignImage:Center;}Inactive{ForeColor:InactiveCaptionText;BackColor:InactiveCaption;}OddRow{BackColor:ControlLight;}Style3{}Footer{}Style14{}Heading{Wrap:True;Border:Flat,ControlDark,0, 1, 0, 1;AlignVert:Center;BackColor:Control;ForeColor:ControlText;}Style5{}Editor{}Style10{}FilterWatermark{ForeColor:InfoText;BackColor:Info;}Style16{}Selected{ForeColor:HighlightText;BackColor:Highlight;}Style15{}Style13{}Style12{}Style11{}Style4{}Style9{}Group{Border:None,,0, 0, 0, 0;AlignVert:Center;BackColor:ControlDark;}Style1{}Caption{AlignHorz:Center;}Style6{}FilterBar{BackColor:Info;}</Data></Styles><Splits><C1.Win.C1TrueDBGrid.MergeView Name="" AlternatingRowStyle="True" CaptionHeight="17" ColumnCaptionHeight="17" ColumnFooterHeight="17" FilterBar="True" MarqueeStyle="DottedCellBorder" RecordSelectorWidth="17" DefRecSelWidth="17" VerticalScrollGroup="1" HorizontalScrollGroup="1"><CaptionStyle parent="Style2" me="Style10" /><EditorStyle parent="Editor" me="Style5" /><EvenRowStyle parent="EvenRow" me="Style8" /><FilterBarStyle parent="FilterBar" me="Style13" /><FilterWatermarkStyle parent="FilterWatermark" me="Style14" /><FooterStyle parent="Footer" me="Style3" /><GroupStyle parent="Group" me="Style12" /><HeadingStyle parent="Heading" me="Style2" /><HighLightRowStyle parent="HighlightRow" me="Style7" /><InactiveStyle parent="Inactive" me="Style4" /><OddRowStyle parent="OddRow" me="Style9" /><RecordSelectorStyle parent="RecordSelector" me="Style11" /><SelectedStyle parent="Selected" me="Style6" /><Style parent="Normal" me="Style1" /><ClientRect>0, 0, 1071, 137</ClientRect><BorderSide>0</BorderSide></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style parent="" me="Normal" /><Style parent="Normal" me="Heading" /><Style parent="Heading" me="Footer" /><Style parent="Heading" me="Caption" /><Style parent="Heading" me="Inactive" /><Style parent="Normal" me="Selected" /><Style parent="Normal" me="Editor" /><Style parent="Normal" me="HighlightRow" /><Style parent="Normal" me="EvenRow" /><Style parent="Normal" me="OddRow" /><Style parent="Heading" me="RecordSelector" /><Style parent="Normal" me="FilterBar" /><Style parent="FilterBar" me="FilterWatermark" /><Style parent="Caption" me="Group" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><Layout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 1071, 137</ClientArea><PrintPageHeaderStyle parent="" me="Style15" /><PrintPageFooterStyle parent="" me="Style16" /></Blob> + <?xml version="1.0"?><Blob><Styles type="C1.Win.C1TrueDBGrid.Design.ContextWrapper"><Data>HighlightRow{ForeColor:HighlightText;BackColor:Highlight;}Style8{}Style7{}Style2{}EvenRow{BackColor:White;}Normal{}RecordSelector{AlignImage:Center;}Inactive{ForeColor:InactiveCaptionText;BackColor:InactiveCaption;}OddRow{BackColor:ControlLight;}Style3{}Footer{}Style14{}Heading{ForeColor:ControlText;Border:Flat,ControlDark,0, 1, 0, 1;AlignVert:Center;BackColor:Control;Wrap:True;}Style5{}Editor{}Style10{}FilterWatermark{ForeColor:InfoText;BackColor:Info;}Style16{}Selected{ForeColor:HighlightText;BackColor:Highlight;}Style15{}Style13{}Style12{}Style11{}Style4{}Style9{}Group{Border:None,,0, 0, 0, 0;AlignVert:Center;BackColor:ControlDark;}Style1{}Caption{AlignHorz:Center;}Style6{}FilterBar{BackColor:Info;}</Data></Styles><Splits><C1.Win.C1TrueDBGrid.MergeView Name="" AlternatingRowStyle="True" CaptionHeight="17" ColumnCaptionHeight="17" ColumnFooterHeight="17" FilterBar="True" MarqueeStyle="DottedCellBorder" RecordSelectorWidth="17" DefRecSelWidth="17" VerticalScrollGroup="1" HorizontalScrollGroup="1"><CaptionStyle parent="Style2" me="Style10" /><EditorStyle parent="Editor" me="Style5" /><EvenRowStyle parent="EvenRow" me="Style8" /><FilterBarStyle parent="FilterBar" me="Style13" /><FilterWatermarkStyle parent="FilterWatermark" me="Style14" /><FooterStyle parent="Footer" me="Style3" /><GroupStyle parent="Group" me="Style12" /><HeadingStyle parent="Heading" me="Style2" /><HighLightRowStyle parent="HighlightRow" me="Style7" /><InactiveStyle parent="Inactive" me="Style4" /><OddRowStyle parent="OddRow" me="Style9" /><RecordSelectorStyle parent="RecordSelector" me="Style11" /><SelectedStyle parent="Selected" me="Style6" /><Style parent="Normal" me="Style1" /><ClientRect>0, 0, 1071, 137</ClientRect><BorderSide>0</BorderSide></C1.Win.C1TrueDBGrid.MergeView></Splits><NamedStyles><Style parent="" me="Normal" /><Style parent="Normal" me="Heading" /><Style parent="Heading" me="Footer" /><Style parent="Heading" me="Caption" /><Style parent="Heading" me="Inactive" /><Style parent="Normal" me="Selected" /><Style parent="Normal" me="Editor" /><Style parent="Normal" me="HighlightRow" /><Style parent="Normal" me="EvenRow" /><Style parent="Normal" me="OddRow" /><Style parent="Heading" me="RecordSelector" /><Style parent="Normal" me="FilterBar" /><Style parent="FilterBar" me="FilterWatermark" /><Style parent="Caption" me="Group" /></NamedStyles><vertSplits>1</vertSplits><horzSplits>1</horzSplits><Layout>None</Layout><DefaultRecSelWidth>17</DefaultRecSelWidth><ClientArea>0, 0, 1071, 137</ClientArea><PrintPageHeaderStyle parent="" me="Style15" /><PrintPageFooterStyle parent="" me="Style16" /></Blob> \ No newline at end of file diff --git a/DPM2016/Behandlung/Leistungen.vb b/DPM2016/Behandlung/Leistungen.vb index e3f1e64..fb12576 100644 --- a/DPM2016/Behandlung/Leistungen.vb +++ b/DPM2016/Behandlung/Leistungen.vb @@ -103,6 +103,7 @@ Public Class Leistungen Select Case True Case Trim(r("Bezeichnung")).Contains("UV_MV_IV") Or Trim(r("Bezeichnung")).Contains("Dentotar") Dim tn As New DevComponents.AdvTree.Node + tn.DataKey = 222 tn.Text = r("Bezeichnung") Me.TreeTarifGruppen.Nodes.Add(tn) Dim sortstring As String = "KapitelNrNeu" @@ -115,7 +116,21 @@ Public Class Leistungen tn1.Tag = r2("KapitelLeistung") tn.Nodes.Add(tn1) Next - + Case Trim(r("Bezeichnung")).Contains("Zahntechnik (VZLS)") + Dim tn As New DevComponents.AdvTree.Node + tn.Text = r("Bezeichnung") + tn.DataKey = 223 + Me.TreeTarifGruppen.Nodes.Add(tn) + Dim sortstring As String = "KapitelNrNeu" + Dim dv As New DataView(IntTables.Inttables.Tables("dentotar_223"), "Level=1 and KapitelNrNeu<>'00' and KapitelNrNeu<>'000' ", sortstring, DataViewRowState.CurrentRows) + For Each rowView As DataRowView In dv + Dim r2 As DataRow = rowView.Row + Dim tn1 As New DevComponents.AdvTree.Node + tn1.Text = r2("Leistungd") + tn1.DataKey = r2("KapitelnrNeu") + tn1.Tag = r2("KapitelLeistung") + tn.Nodes.Add(tn1) + Next Case Trim(r("Bezeichnung")).Contains("SSO") Case Else If UCase(r("bezeichnung")).ToString.IndexOf("DH") < 0 And UCase(r("bezeichnung")).ToString.IndexOf("9000") < 0 Then @@ -190,21 +205,40 @@ Public Class Leistungen Me.cbboxnrbehandler.Valuemember = "nrprivat" Load_Tarif() Catch ex As Exception - 'MsgBox(ex.Message) + MsgBox(ex.Message) End Try End Sub Sub Load_Tarif() + Dim isdentotar As Boolean = False + Dim isZahntechnik As Boolean = False Dim dv As DataView Dim dv1 As DataView - If Dentotar = True And Len(Me.TreeTarifGruppen.SelectedNode.DataKeyString) < 3 Then + If Dentotar = True And Me.TreeTarifGruppen.SelectedNode.DataKey = 222 Then + isdentotar = True + End If + If Dentotar = True And Len(TreeTarifGruppen.SelectedNode.DataKeyString < 3) Then + Try + If TreeTarifGruppen.SelectedNode.Parent.DataKey = 222 Then + isdentotar = True + End If + Catch + End Try + End If + If isdentotar Then Try + Dim Wherestring As String Dim db As New DataView(IntTables.Inttables.Tables("Dentotar")) Dim sortstring As String = "leistungnrneu, leistungd" - Dim Wherestring As String = "Kapitelleistung='Lei' and KapitelNrNeu like '" + Me.TreeTarifGruppen.SelectedNode.DataKeyString + "%'" + If Me.TreeTarifGruppen.SelectedNode.DataKeyString = "222" Then + Wherestring = "Kapitelleistung='Lei' and KapitelNrNeu like '" + "" + "%'" + Else + wherestring = "Kapitelleistung='Lei' and KapitelNrNeu like '" + Me.TreeTarifGruppen.SelectedNode.DataKeyString + "%'" + + End If dv = New DataView(IntTables.Inttables.Tables("dentotar"), Wherestring, sortstring, DataViewRowState.CurrentRows) Me.lbtarif1.DataSource = Nothing Me.lbtarif1.DataSource = dv @@ -215,8 +249,44 @@ Public Class Leistungen Catch ex As Exception MsgBox(ex.Message) End Try + End If + If Dentotar = True And Me.TreeTarifGruppen.SelectedNode.DataKey = 223 Then + isZahntechnik = True + End If + If Dentotar = True And Len(TreeTarifGruppen.SelectedNode.DataKeyString < 3) Then + Try + If TreeTarifGruppen.SelectedNode.Parent.DataKey = 223 Then + isZahntechnik = True + End If + Catch + End Try End If + + If isZahntechnik Then + Try + Dim wherestring As String + Dim db As New DataView(IntTables.Inttables.Tables("Dentotar_223")) + Dim sortstring As String = "leistungnrneu, leistungd" + If Me.TreeTarifGruppen.SelectedNode.DataKeyString = "223" Then + wherestring = "Kapitelleistung='Lei' and KapitelNrNeu like '" + "" + "%'" + Else + wherestring = "Kapitelleistung='Lei' and KapitelNrNeu like '" + Me.TreeTarifGruppen.SelectedNode.DataKeyString + "%'" + + End If + + dv = New DataView(IntTables.Inttables.Tables("dentotar_223"), Wherestring, sortstring, DataViewRowState.CurrentRows) + Me.lbtarif1.DataSource = Nothing + Me.lbtarif1.DataSource = dv + Me.lbtarif1.DisplayMember = "nr_bez" + Me.lbtarif1.ValueMember = "LeistungNrNeu" + Exit Sub + + Catch ex As Exception + MsgBox(ex.Message) + End Try + End If + db.Get_Tarif() Try Dim SortString As String = "" @@ -394,16 +464,35 @@ Public Class Leistungen End Sub Private Function Get_Tarifposition(ByVal value As String) As String + + Dim wherestring As String = "" Dim sortstring As String = "" - Dim wherestring As String = "Leistungnrneu='" + value + "'" - Dim db As New DataView(IntTables.Inttables.Tables("Dentotar"), wherestring, sortstring, DataViewRowState.CurrentRows) - If db.Count > 0 Then - For Each drv As DataRowView In db - Return drv.Item("Leistungnrneu").ToString - Next - Exit Function - End If + Try + wherestring = "Leistungnrneu='" + value + "'" + Dim db As New DataView(IntTables.Inttables.Tables("Dentotar"), wherestring, sortstring, DataViewRowState.CurrentRows) + If db.Count > 0 Then + For Each drv As DataRowView In db + Return drv.Item("Leistungnrneu").ToString + Next + + Exit Function + End If + Catch + End Try + + Try + Dim db223 As New DataView(IntTables.Inttables.Tables("Dentotar_223"), wherestring, sortstring, DataViewRowState.CurrentRows) + If db223.Count > 0 Then + For Each drv As DataRowView In db223 + Return drv.Item("Leistungnrneu").ToString + Next + + Exit Function + End If + Catch + End Try + Dim dv As New DataView(IntTables.Inttables.Tables("Tarif"), "nrtarif=" + value, "", DataViewRowState.CurrentRows) For Each drv As DataRowView In dv Return drv.Item("sso_nummer").ToString @@ -434,18 +523,31 @@ Public Class Leistungen End Sub Private Sub lbtarif1_ItemDoubleClick(sender As Object, e As EventArgs) Handles lbtarif1.ItemDoubleClick - If Dentotar = True And Me.txtPosition.Text.Substring(0, 1) = 4 Then - Dim dv1 As New DataView(IntTables.Inttables.Tables("Dentotar"), "Leistungnrneu='" + Me.lbtarif1.SelectedValue.ToString + "'", "", DataViewRowState.CurrentRows) - For Each drv As DataRowView In dv1 - Me.txtPosition.Text = drv.Item("Leistungnrneu").ToString - txtPosition_TextChanged(sender, e) - Me.BtnInsertLeistung_Click(sender, e) + If Dentotar = True Then + If Me.txtPosition.Text.Substring(0, 1) = 4 Then + Dim dv1 As New DataView(IntTables.Inttables.Tables("Dentotar"), "Leistungnrneu='" + Me.lbtarif1.SelectedValue.ToString + "'", "", DataViewRowState.CurrentRows) + For Each drv As DataRowView In dv1 + Me.txtPosition.Text = drv.Item("Leistungnrneu").ToString + txtPosition_TextChanged(sender, e) + Me.BtnInsertLeistung_Click(sender, e) + Exit Sub + Next + Exit Sub - Next + Else + Dim dv1 As New DataView(IntTables.Inttables.Tables("Dentotar_223"), "Leistungnrneu='" + Me.lbtarif1.SelectedValue.ToString + "'", "", DataViewRowState.CurrentRows) + For Each drv As DataRowView In dv1 + Me.txtPosition.Text = drv.Item("Leistungnrneu").ToString + txtPosition_TextChanged(sender, e) + Me.BtnInsertLeistung_Click(sender, e) + Exit Sub + Next - Exit Sub + Exit Sub + End If End If + Dim dv As New DataView(IntTables.Inttables.Tables("Tarif"), "nrtarif=" + Me.lbtarif1.SelectedValue.ToString, "", DataViewRowState.CurrentRows) For Each drv As DataRowView In dv Me.txtPosition.Text = drv.Item("sso_nummer").ToString @@ -499,10 +601,14 @@ Public Class Leistungen Case Else End Select + Me.diwert.Text = Me.Frankenwert + Me.DIPunkte.Enabled = True + + Else + Me.diwert.Text = dr.Item("betraginchf") + Me.DIPunkte.Enabled = False End If Me.DIMenge.Text = 1 - Me.diwert.Text = Me.Frankenwert - Me.DIPunkte.Enabled = True Me.txtBezD.Text = dr.Item("LeistungD") Exit Sub Catch @@ -518,38 +624,89 @@ Public Class Leistungen End If Dim dv As New DataView(IntTables.Inttables.Tables("Tarif"), "sso_nummer='" + Me.txtPosition.Text.ToString + "'", "", DataViewRowState.CurrentRows) - For Each drv As DataRowView In dv - If drv.Item("Frankenbetrag") < 0.1 Then - Select Case Me.TaxPunkte - Case Taxpunkttyp.Maximal - Me.DIPunkte.Value = drv.Item("maximaltarif") - Case Taxpunkttyp.Minmal - Me.DIPunkte.Value = drv.Item("minimaltarif") - Case Taxpunkttyp.Privat - Me.DIPunkte.Value = drv.Item("privattarif") - Case Taxpunkttyp.Suva - Me.DIPunkte.Value = drv.Item("suvatarif") - Case Taxpunkttyp.Dentotar - Me.DIPunkte.Value = drv.Item("Taxpunkte_UV_MV_IV") - Case Else + If dv.Count > 0 Then + For Each drv As DataRowView In dv + If drv.Item("Frankenbetrag") < 0.1 Then + Select Case Me.TaxPunkte + Case Taxpunkttyp.Maximal + Me.DIPunkte.Value = drv.Item("maximaltarif") + Case Taxpunkttyp.Minmal + Me.DIPunkte.Value = drv.Item("minimaltarif") + Case Taxpunkttyp.Privat + Me.DIPunkte.Value = drv.Item("privattarif") + Case Taxpunkttyp.Suva + Me.DIPunkte.Value = drv.Item("suvatarif") + Case Taxpunkttyp.Dentotar + Me.DIPunkte.Value = drv.Item("Taxpunkte_UV_MV_IV") + Case Else - End Select + End Select + Me.DIMenge.Text = 1 + Me.diwert.Text = Me.Frankenwert + Me.DIPunkte.Enabled = True + Me.txtBezD.Text = drv.Item("BezD") + Else + Me.DIPunkte.Value = 0 + Me.DIPunkte.Enabled = False + Me.DIMenge.Value = 1 + Dim b As Double + + b = drv.Item("Frankenbetrag") + Me.diwert.Value = b + Me.txtBezD.Text = drv.Item("BezD") + End If + Try + If drv.Item("Frankenbetrag") = 0 And drv.Item("maximaltarif") = 0 And +drv.Item("minimaltarif") = 0 And drv.Item("privattarif") = 0 And drv.Item("suvatarif") = 0 Then + diwert.Text = 0 + + End If + Catch + End Try + + + Exit Sub + Next + End If + + sortstring = "" + wherestring = "LeistungnrNeu='" + Me.txtPosition.Text + "'" + Dim dvx As New DataView(IntTables.Inttables.Tables("Dentotar_223"), wherestring, sortstring, DataViewRowState.CurrentRows) + If dvx.Count > 0 Then + Dim dr As DataRowView + Try + dr = dvx(0) + If dr.Item("Abrechnungseinheit") = "TP" Then + Select Case Me.TaxPunkte + Case Taxpunkttyp.Maximal + Me.DIPunkte.Value = dr.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Minmal + Me.DIPunkte.Value = dr.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Privat + Me.DIPunkte.Value = dr.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Suva + Me.DIPunkte.Value = dr.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Dentotar + Me.DIPunkte.Value = dr.Item("TP_Vertrag_mit_MwSt") + Case Else + End Select + End If Me.DIMenge.Text = 1 Me.diwert.Text = Me.Frankenwert Me.DIPunkte.Enabled = True - Me.txtBezD.Text = drv.Item("BezD") - Else - Me.DIPunkte.Value = 0 - Me.DIPunkte.Enabled = False - Me.DIMenge.Value = 1 - Dim b As Double - - b = drv.Item("Frankenbetrag") - Me.diwert.Value = b - Me.txtBezD.Text = drv.Item("BezD") - End If + Me.txtBezD.Text = dr.Item("LeistungD") + Exit Sub + Catch + interror = 1 + MsgBox("Eingegebene Position ist nicht vorhanden.", vbExclamation) + Me.txtPosition.Focus() + Me.txtPosition.SelectAll() + Exit Sub + End Try + Exit Sub - Next + + End If + End Sub Private Sub DIPunkte_ValueChanged(sender As Object, e As EventArgs) Handles DIPunkte.ValueChanged, DIMenge.ValueChanged, diwert.ValueChanged @@ -582,7 +739,12 @@ Public Class Leistungen End Sub Sub Leistung_Einfuegen_Dentotar(ByVal SSONummer As String, ByVal anzahl As Integer, Optional DentotarNr As String = "") + Dim LeistungOverwrite As Boolean = False Dim dv As DataView + Dim isdentotar As Boolean = False + Dim iszahntechik As Boolean = False + Dim nrtarifgruppe As Integer + Dim sortstring As String = "" Dim wherestring As String = "LeistungNrNeu='" + Me.txtPosition.Text.ToString + "'" If DentotarNr <> "" Then @@ -590,17 +752,43 @@ Public Class Leistungen End If If SSONummer = "" Then dv = New DataView(IntTables.Inttables.Tables("Dentotar"), wherestring, sortstring, DataViewRowState.CurrentRows) + If dv.Count < 1 Then + dv = New DataView(IntTables.Inttables.Tables("Dentotar_223"), wherestring, sortstring, DataViewRowState.CurrentRows) + iszahntechik = True + Else + isdentotar = True + End If Else wherestring = SSONummer dv = New DataView(IntTables.Inttables.Tables("Dentotar"), wherestring, sortstring, DataViewRowState.CurrentRows) - + If dv.Count < 1 Then + dv = New DataView(IntTables.Inttables.Tables("Dentotar_223"), wherestring, sortstring, DataViewRowState.CurrentRows) + iszahntechik = True + Else + isdentotar = True + End If End If Dim drv As DataRowView Try drv = dv(0) Catch - MsgBox("Leistungsposition nicht vorhanden.") - Exit Sub + Dim f As New frmPosition + f.TextBox1.Text = Me.txtPosition.Text.ToString + f.textbox2.text = Me.txtBezD.Text.ToString + f.textbox3.text = Me.txtErgänzung.Text.ToString + f.ShowDialog() + + If f.DialogResult <> DialogResult.OK Then Exit Sub + If f.DialogResult = DialogResult.OK Then + Me.txtPosition.Text = f.TextBox1.Text + Me.txtBezD.Text = f.textbox2.text + Me.txtErgänzung.Text = f.textbox3.Text + LeistungOverwrite = True + isdentotar = True + Else + MsgBox("Leistungsposition nicht vorhanden.") + Exit Sub + End If End Try Dim db As New clsDB @@ -621,8 +809,17 @@ Public Class Leistungen r.Item("nrbehandlung") = Me.Behandlungnr r.Item("mandant") = 1 r.Item("nrtarifgruppe") = 0 - r.Item("nrtarif") = 0 - r.Item("sso_nummer") = drv("LeistungNrNeu") + If isdentotar Then + r.Item("nrtarif") = 5 + Else + If iszahntechik Then r.Item("nrtarif") = 7 + End If + If LeistungOverwrite Then + r.Item("sso_nummer") = Me.txtPosition.Text.ToString + Else + r.Item("sso_nummer") = drv("LeistungNrNeu") + + End If If SSONummer = "" Then r.Item("bezd") = Me.txtBezD.Text + " " + Me.txtErgänzung.Text Else @@ -646,21 +843,40 @@ Public Class Leistungen Else Try If betraginchf = 0 Then - Select Case Me.TaxPunkte - Case Taxpunkttyp.Maximal - r.Item("taxpunkte") = drv.Item("pp_amx") - Case Taxpunkttyp.Minmal - r.Item("taxpunkte") = drv.Item("pp_min") - Case Taxpunkttyp.Privat - r.Item("taxpunkte") = drv.Item("pp_privat") - Case Taxpunkttyp.Suva - r.Item("taxpunkte") = drv.Item("Taxpunkte_UV_MV_IV") - Case Taxpunkttyp.Dentotar - Me.DIPunkte.Value = drv.Item("Taxpunkte_UV_MV_IV") - Case Else - - End Select + If isdentotar Then + Select Case Me.TaxPunkte + Case Taxpunkttyp.Maximal + r.Item("taxpunkte") = drv.Item("pp_amx") + Case Taxpunkttyp.Minmal + r.Item("taxpunkte") = drv.Item("pp_min") + Case Taxpunkttyp.Privat + r.Item("taxpunkte") = drv.Item("pp_privat") + Case Taxpunkttyp.Suva + r.Item("taxpunkte") = drv.Item("Taxpunkte_UV_MV_IV") + Case Taxpunkttyp.Dentotar + Me.DIPunkte.Value = drv.Item("Taxpunkte_UV_MV_IV") + Case Else + + End Select + Else + Select Case Me.TaxPunkte + Case Taxpunkttyp.Maximal + r.Item("taxpunkte") = drv.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Minmal + r.Item("taxpunkte") = drv.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Privat + r.Item("taxpunkte") = drv.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Suva + r.Item("taxpunkte") = drv.Item("TP_Vertrag_mit_MwSt") + Case Taxpunkttyp.Dentotar + Me.DIPunkte.Value = drv.Item("TP_Vertrag_mit_MwSt") + Case Else + + End Select + + End If End If + Catch End Try @@ -702,15 +918,15 @@ Public Class Leistungen Sub Leistung_Einfuegen(Optional ssonummer As String = "", Optional anzahl As Integer = 1) ' If ssonummer = "" Then Exit Sub - If ssonummer = "7006" Then - MsgBox("Hallo") - End If + 'If ssonummer = "7006" Then + ' MsgBox("Hallo") + 'End If If interror > 0 Then interror = 0 Exit Sub End If If Dentotar = True Then - If Me.txtPosition.Text.Substring(0, 1) = "4" Then + If Me.txtPosition.Text.Substring(0, 1) = "4" Or Me.txtPosition.Text.Substring(0, 1) = "0" Or Me.txtPosition.Text.Substring(0, 1) = "1" Or Me.txtPosition.Text.Substring(0, 1) = "2" Or Me.txtPosition.Text.Substring(0, 1) = "3" Then Leistung_Einfuegen_Dentotar(ssonummer, anzahl) Exit Sub End If @@ -720,6 +936,8 @@ Public Class Leistungen Dim dv As DataView If ssonummer = "" Then + 'IntTables.Inttables.Tables("tarif").WriteXml("o:\tarif.xml") + dv = New DataView(IntTables.Inttables.Tables("Tarif"), "sso_nummer='" + Me.txtPosition.Text.ToString + "'", "", DataViewRowState.CurrentRows) Else dv = New DataView(IntTables.Inttables.Tables("Tarif"), "sso_nummer='" + ssonummer.ToString + "'", "", DataViewRowState.CurrentRows) @@ -816,7 +1034,7 @@ Public Class Leistungen Sub refresh_leistungen() Me.C1Leistungen.DataSource = Nothing ldb.dsDaten.Tables.Clear() - ldb.Get_Tabledata("Leistung", " where aktiv=1 and nrbehandlung=" + Me.Behandlungnr.ToString + " and aktiv=1 order by datum desc, sso_nummer asc") + ldb.Get_Tabledata("Leistung", " where aktiv=1 and nrbehandlung=" + Me.Behandlungnr.ToString + " and aktiv=1 order by datum desc, nrtarif asc, sso_nummer asc") Me.C1Leistungen.DataSource = ldb.dsDaten.Tables(0) Me.C1Leistungen.DataMember = ldb.dsDaten.Tables(0).TableName spalten.Spaltentitel_aktualisieren(Me.C1Leistungen, ldb.dsDaten.Tables(0).TableName, ldb.dsDaten.Tables(0)) @@ -1014,9 +1232,7 @@ Public Class Leistungen End Sub - Private Sub TreeTarifGruppen_Click(sender As Object, e As EventArgs) Handles TreeTarifGruppen.Click - End Sub Private Sub LeistungsdatumÄndernToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles LeistungsdatumÄndernToolStripMenuItem.Click Dim f As New frmKalender diff --git a/DPM2016/DPM2016.vbproj b/DPM2016/DPM2016.vbproj index cc26ee8..694a2c1 100644 --- a/DPM2016/DPM2016.vbproj +++ b/DPM2016/DPM2016.vbproj @@ -80,16 +80,29 @@ true - true + false ..\..\..\Klassen\TreeViewAdv\Aga.Controls\bin\Debug\Aga.Controls.dll - - - - + + + False + bin\Debug\C1.Data.2.dll + + + False + bin\Debug\C1.Win.C1Command.4.dll + + + False + bin\Debug\C1.Win.C1Input.4.dll + + + False + bin\Debug\C1.Win.C1TrueDBGrid.2.dll + False @@ -137,6 +150,12 @@ C:\Program Files (x86)\Gnostice\XtremeDevSystem .NET 2018 R1\XtremeDocumentStudio Free\Bin\Ionic.Zlib.dll + + ..\..\..\_Demos\PictureViewer\SHU_Imagegal\SHU_Imagegal\bin\Debug\KP-ImageViewerV2.dll + + + ..\..\ThirtPartyKlassen\MsgViewer\bin\Debug\MsgReader.dll + False ..\..\Archiv\DPM_Reporting\DPM_Reporting\bin\Debug\MySql.Data.dll @@ -145,18 +164,28 @@ False ..\..\Archiv\DPM_Reporting\DPM_Reporting\bin\Debug\MySql.Data.Entity.dll + + ..\..\ThirtPartyKlassen\MsgViewer\bin\Debug\OpenMcdf.dll + ..\..\DPM_Reporting\_PropertyGrid\Source\PropertyGridEx\bin\Debug\PropertyGridEx.dll + + ..\..\ThirtPartyKlassen\MsgViewer\bin\Debug\RtfPipe.dll + False ..\DPMLizenzmanagement\SHUKeyGen\bin\Debug\SHUKeyGen.dll + + + True + @@ -167,6 +196,7 @@ + @@ -209,6 +239,12 @@ Form + + FrmSearchDialog.vb + + + Form + Behandlung.vb @@ -234,6 +270,12 @@ Form + + frmPosition.vb + + + Form + Leistungen.vb @@ -293,6 +335,12 @@ Form + + ThumbViewer.vb + + + UserControl + @@ -408,6 +456,12 @@ Form + + frmDentotarDetail.vb + + + Form + frmPrinterselect.vb @@ -507,6 +561,12 @@ Form + + frmSQLCript.vb + + + Form + frmSuche.vb @@ -536,6 +596,11 @@ frmreport.vb + Designer + + + FrmSearchDialog.vb + Designer Behandlung.vb @@ -549,6 +614,9 @@ frmLeistungDetail.vb + + frmPosition.vb + Leistungen.vb @@ -576,6 +644,9 @@ frmImportVorlage.vb + + ThumbViewer.vb + frmFakturierung.vb @@ -627,6 +698,9 @@ frmAuswertungen.vb + + frmDentotarDetail.vb + frmPrinterselect.vb @@ -674,6 +748,9 @@ frmSplash.vb + + frmSQLCript.vb + frmSuche.vb @@ -724,7 +801,9 @@ true - + + + - - + - Padding over ridh object + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - This prperty keep RTF to DOC translation result, i.e. DOCX XML fragment + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - MS Word 2007 export class + Form for . + For internal use only. - + + + + + + + + + + - Types of table rows height + Initializes a new instance of the class. - + - Exactly height + Required designer variable. - + - Minimum height + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable matrix view of document + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable Paragraph view of document + Form for . + For internal use only. - + + + + + + + + + + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Initializes a new instance of the class. - - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets the type of height calculation. + Required designer variable. - + - Gets or sets the type of height calculation. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable a resolution optimization. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable DoNotExpandShiftReturn. + Form for . + For internal use only. - - - - - - - - - - - - - - - - - - - + - + - Initializes a new instance of the Word2007Export class. + Initializes a new instance of the class. - - + + + Required designer variable. + - + - Power point shape + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Power Point Layout Descriptor + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Power Point base class for style element + Form for . + For internal use only. - + + + + - Base class for styles group + Initializes a new instance of the class. - + - Base class for slides, masters, and layouts + Required designer variable. - + - Slide masters object + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Ordinaty slide + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Slide layout object + Form for . + For internal use only. - + + + + + + + + + + - Presentation class + Initializes a new instance of the class. - + - PPt Application Properties class + Required designer variable. - + - Ppt Table styles class + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Ppt Presentation properties class + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Ppt View Properties class + Form for . + For internal use only. - + + + + + + + + + + - Specifies the image format in PowerPoint export. + Initializes a new instance of the class. - + - Specifies the .png format. + Required designer variable. - + - Specifies the .jpg format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Represents the PowerPoint 2007 export. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the image format used when exporting. + Form for . + For internal use only. - + - + - + - - + + + Initializes a new instance of the class. + - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Creates a new instance of the class with the default settings. + Form for . + For internal use only. - + - - - Excel 2007 export class - + + - + - + - Defines Print Scaling Mode. + Initializes a new instance of the class. - + - Print sheets at thier actual size. + Required designer variable. - + - Shrink the printout so that it fits on one page. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Shrink the printout so that it is one page wide. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Shrink the printout so that it is one page high. + Form for . + For internal use only. - - - Gets or sets the Print Fit Mode. - + + - - - Gets or sets the font scale value. - Default value is 1 - + + - + + + + - Enable or disable a resolution optimization. + Initializes a new instance of the class. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Required designer variable. - - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets a value that determines whether to insert page breaks in the output file or not. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets a value that determines whether to export the databand rows only. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable export of page footers and next page headers without table breaks. + Form for . + For internal use only. - - - - - - - - - - - - - + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Picture container + Required designer variable. - + - List of all document fonts + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Single page export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Document structure descriptor + Form for . + For internal use only. - + + + + + + + + + + - Main class of XML export + Initializes a new instance of the class. - + - PicturesCount + Required designer variable. - + - HumanReadable + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - - + + + Form for . + For internal use only. + - + - + - + - + - Constructor of XPSExport + Initializes a new instance of the class. - + - Destructor of XPSExport + Required designer variable. - - - - + - Font container + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Font obfuscation procedure + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Drawing class + Form for . + For internal use only. - - - Share all strings in document - + + - + + + + + + + - Share all URL in document + Initializes a new instance of the class. - + - Document styles + Required designer variable. - + - Workbook + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - OoXMLSheet class + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Base class for Microsoft Office 2007 export objects + Form for . + For internal use only. - + + + + + + + + + + - Default XML header + Initializes a new instance of the class. - + - Base class for export Office Open objects + Required designer variable. - + - Core document properties + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Core document properties + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF export (Adobe Acrobat) + Form for . + For internal use only. - + - - - - - The pdf export - size of place for svg + + - - - The interpolation of curves (svg) - + + - + - The interpolation of curves (text) + Initializes a new instance of the class. - + - Export svg object as image, not vector + Required designer variable. - + - Gradient interpolation, high value will lead beautiful the gradient, - but the file size will increase and the speed of work will decrease. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The quality of gradient, export as image or export as gradient grid + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Added graphics path to pdf, + Form for . + For internal use only. - size of rect for gradient filling - path, with positions in pdf scaling - Any brush - Interpolation value - - matrix for transform to pdf scale - + + + + + + + - returns true if this gradient is fillable by gradient grid + Initializes a new instance of the class. - - + - The enum of curves interpolation + Required designer variable. - + - Export as curves, without interpolation + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Two points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Four points + Form for . + For internal use only. - + + + + + + + + + + - Eight points + Initializes a new instance of the class. - + - Sixteen points + Required designer variable. - + - The enum of gradient interpolation points + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Two points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Four points + Form for . + For internal use only. - + + + + + + + + + + - Eight points + Initializes a new instance of the class. - + - Sixteen points + Required designer variable. - + - Thirty two points + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Sixty four points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - One hundred and twenty eight points + Base form for all export options dialog forms. - + - Two hundred and fifty six points + Represents the "Open after export" button visibility. - + - The quality of gradient export + Gets a reference to the currently editing export filter. - + + + + + + + + + + - Export as image + Called when editing is done. + + Override this method to pass edited values from the dialog controls to the export filter. + + See the example of this method implementation that is used in the ImageExport. + + protected override void Done() + { + base.Done(); + ImageExport imageExport = Export as ImageExport; + imageExport.ImageFormat = (ImageExportFormat)cbxImageFormat.SelectedIndex; + imageExport.Resolution = (int)udResolution.Value; + imageExport.JpegQuality = (int)udQuality.Value; + imageExport.SeparateFiles = cbSeparateFiles.Checked; + } + + - + + + + - Export as low quality gradient grid, max size of interpolation points is 32 + Initializes controls with initial values. + The export filter to edit. + + Override this method to pass values from the export filter to the dialog controls. + + See the example of this method implementation that is used in the ImageExport. + + public override void Init(ExportBase export) + { + base.Init(export); + ImageExport imageExport = Export as ImageExport; + cbxImageFormat.SelectedIndex = (int)imageExport.ImageFormat; + udResolution.Value = imageExport.Resolution; + udQuality.Value = imageExport.JpegQuality; + cbSeparateFiles.Checked = imageExport.SeparateFiles; + } + + - + + + + - Export as medium quality gradient grid, max size of interpolation points is 128 + Initializes a new instance of the class with default settings. - + - Export as high quality gradient grid, max size of interpolation points is 256 + Required designer variable. - + - Embedded File + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Name of embedded file. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Description of embedded file. + "Page Range" groupbox. - + - Modify Date of embedded file. + "Page Numbers" label. - + - Relationship between the embedded document and the PDF part. + "Page Numbers" textbox. - + - Valid MIME type. + "Page Numbers" radiobutton. - + - Stream of embedded file. + "Current Page" radiobutton. - + - File reference. + "All Pages" radiobutton. - + - ZUGFeRD Conformance Level. + PageControl. - - Initializes a new instance of the class. - - + - Default preview size. + Pages panel. - + - Actual size + "Open after export" checkbox. - + - Fit Page + Required designer variable. - + - Fit Width + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Default + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 10% + Required designer variable. - + - 25% + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 50% + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 75% + Required designer variable. - + - 100% + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 125% + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 150% + Represents a Windows Form used to show a table when View Data clicked on a DataSource. - + - 200% + Gets or sets the data grid. - + - 400% + Initializes a new instance of the class. - + - 800% + Required designer variable. - + - Standard of PDF format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - PDF 1.5 + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF/A-2a + Required designer variable. - + - PDF/A-2b + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - PDF/A-3a + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF/A-3b + Represents the Splash Screen showing during loading designer - + - Pdf/X-3 + Initializes a new instance of the class. - + - Pdf/X-4 + Filters mouse events. + For internal use only. - + - Color Space. + Required designer variable. - + - RGB color space + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - CMYK color space + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Types of pdf export. + Represents the Welcome window displayed on the designer startup - + - Simple export + Initializes a new instance of the class. + - + - Web print mode + Required designer variable. - + - Relationship between the embedded document and the PDF part. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The embedded file contains data which is used for the visual representation. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The embedded file contains the source data for the visual representation derived therefrom in the PDF part. + Required designer variable. - + - This data relationship should be used if the embedded data are an alternative representation of the PDF contents. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - This data relationship is used if the embedded file serves neither as the source nor as the alternative representation, but the file contains additional information. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - If none of the data relationships above apply or there is an unknown data relationship, this data relationship is used. + Required designer variable. - + - ZUGFeRD Conformance Level. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Basic level. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Comfort level. + Required designer variable. - + - Extended level. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets PDF Compliance standard. - After set, do not change other settings, it may lead to fail compliance test. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of embedding the TrueType fonts. + The "Advanced Connection Properties" form. - + - Enable or disable of exporting the background. + Gets or sets the connection string builder which contains the connection properties. - + - Enable or disable export text in curves + Initializes a new instance of the class. - + - Gets or sets PDF color space + Required designer variable. - + - Enables or disables saving images in their original resolution + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enables or disables optimization of images for printing + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable image jpeg compression + Required designer variable. - + - Sets the quality of images in the PDF + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Title of the document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Author of the document. + Required designer variable. - + - Subject of the document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Keywords of the document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Creator of the document. + Required designer variable. - + - Producer of the document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Sets the owner password. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Sets the user password. + Required designer variable. - + - Enable or disable printing in protected document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable modifying in protected document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable copying in protected document. + Represents the FastReport exception form. - + + + + - Enable or disable annotating in protected document. + Creates a new instance ofthe form. + The exception object which data to display in the form. - + - Enable or disable the print dialog window after opening + Required designer variable. - + - Enable or disable hide the toolbar. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable hide the menu's bar. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable hide the Windows UI. + Required designer variable. - + - Enable or disable of fitting the window + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable of centering the window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of scaling the page for shrink to printable area. + Required designer variable. - + - Enable or disable of document's Outline. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Set default zoom on open document + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Sets the quality of RichText objects in the PDF + Required designer variable. - + - Enable or disable the compression in PDF document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable of images transparency. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of displaying document's title. + Required designer variable. - + - Set default page on open document + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Color Profile (ICC file). - If "null" then default profile will be used + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets pdf export mode + Required designer variable. - + - Gets pdf AcroForms compatibility, if set then EmbeddingFonts = false and PdfCompliance = PdfStandard.None + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - - - - + - Begin exporting of page + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + - End exporting + - - + - Export of Band + Gets Aborted state - - - + + + + - - + + + + - + - Add an embedded XML file (only for PDF/A-3 standard). + Required designer variable. - File name - Description - Modification date - File stream - + - Add an embedded XML file (only for PDF/A-3 standard). + Clean up any resources being used. - File name - Description - Modification date - File stream - ZUGFeRD Conformance Level + true if managed resources should be disposed; otherwise, false. - + - Add an embedded file (only for PDF/A-3 standard). + Required method for Designer support - do not modify + the contents of this method with the code editor. - File name - Description - Modification date - Relation type - MIME type - File stream - + - Initializes a new instance of the class. + Required designer variable. - + - Calculates mask for image. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Calculates image bounds according to . + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Writes pixels' colors without alpha to stream according to CMYK or RGB color space. - Pixels should be in the format. + Required designer variable. - - - File name without extentions, for example "MetaDataX" - - + - Represents the PPML export filter. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Enable or disable the pictures in PPML export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets list of generated streams + Required designer variable. - + - Gets or sets the image format used when exporting. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable export text in curves + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add TextObject. + Required designer variable. - + - Add BandObject. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add Line. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add Shape. + Form for barcode editor - - - - + - Begin exporting of page + Generated text for barcode object - - + - Export of Band + Initializes a new instance of the class. - + Text data for parsing + Report object for nodes + Brackets symbols + Editor for rich barcode? - + - End exporting + Required designer variable. - - - - - - - - - - - + - Initializes a new instance of the class. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Contains Dashes enum + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Dash. + Required designer variable. - + - Specifies the Dot. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the DashDot. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the DashDotDot. + Required designer variable. - + - Specifies the Double line. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Create Window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add image as PPMLObject + Required designer variable. - - - - - - + - Save svg file. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Save svg stream. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - + - Specifies the image format in PPML export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Represents the ps export filter. + Required designer variable. - - - - + - Enable or disable the pictures in PS export + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets list of generated streams + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the image format used when exporting. + Required designer variable. - + - Enable or disable export text in curves + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add TextObject. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add BandObject. + Required designer variable. - + - Add Line. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add Shape. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - + - Begin exporting of page + Required designer variable. - - + - Export of Band + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - End exporting + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - - - - - - + - Initializes a new instance of the class. + Required designer variable. - + - Contains Dashes enum + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the Dash. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Dot. + Required designer variable. - + - Specifies the DashDot. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the DashDotDot. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Double line. + Required designer variable. - + - Create Window. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - Add TextLine in curves - - + - Method for add TextObject. - + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Method to add rectangle. + Required designer variable. - + - Method for add ellips. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Method for add triangle. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add Diamond. + Required designer variable. - + - Method for add line. - + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - + - Method for add line with dash. - + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Add image + Required designer variable. - - - - - - - - + - Save file. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Save stream. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - + - Specifies the image format in ps export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Represents the RTF export filter. + Required designer variable. - - - - + - Gets or sets the quality of Jpeg images in RTF file. + Clean up any resources being used. - - Default value is 90. This property will be used if you select Jpeg - in the property. - + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the image format that will be used to save pictures in RTF file. - - - Default value is Metafile. This format is better for exporting such objects as - MSChartObject and ShapeObject. - + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Gets or sets a value indicating that pictures are enabled. + Required designer variable. - + - Gets or sets a value indicating that page breaks are enabled. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - Default value is true. In wysiwyg mode, the resulting rtf file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets the creator of the document. + Required designer variable. - + - Gets or sets a value that determines whether the rows in the resulting table - should calculate its height automatically. + Clean up any resources being used. - - Default value for this property is false. In this mode, each row in the - resulting table has fixed height to get maximum wysiwyg. If you set it to true, - the height of resulting table will be calculated automatically by the Word processor. - The document will be more editable, but less wysiwyg. - - - - - - - - - - - - - - - - - - - - - - + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the image format in RTF export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the .emf format. + Required designer variable. - + - Represents the SVG export filter. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Method to add rectangle. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add ellips. + Required designer variable. - + - Method for add triangle. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Method for add Diamond. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add line. - + Required designer variable. + - + - Method for add line with dash. - + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - + - Add image in Base64 + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - - - + - Add image + Required designer variable. - - - - - - - + - Appends attribute to element + Clean up any resources being used. - - - + true if managed resources should be disposed; otherwise, false. - + - Enable or disable the pictures in SVG export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets list of generated streams + Base class for all dialog forms with two buttons, OK and Cancel. - + - Gets or sets the image format used when exporting. + Localizes the dialog controls. + + Use this method to set control's captions specific to the current locale. + - + - Embed images into svg + Initializes a new instance of the class. - + - Returns svg root element + Required designer variable. - + - Returns XmlDocument + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Returns svg G element + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets value indicating whether or not should to force uniform scaling of SVG document + The OK button. - + - Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag + The Cancel button. - + - Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the svg tag + Required designer variable. - + - Add TextObject. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add BandObject. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add Line. + Required designer variable. - + - Add Shape. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Create Window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add page + Required designer variable. - - + - Add SVGObject + Clean up any resources being used. - SVG object + true if managed resources should be disposed; otherwise, false. - + - Save svg file. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Save svg stream. + Required designer variable. - - - - + - Begin exporting of page + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - Export of Band + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + - End exporting + Required designer variable. - - - - - - - - - - - + - Export all report objects + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the alignment methods + Required designer variable. - + - Do not force uniform scaling. Scale the graphic content of the given element non-uniformly - if necessary such that the element's bounding box exactly matches the viewport rectangle. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value - of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint - X value of the viewport. Align the min-y of the element's viewBox with the smallest Y value - of the viewport. + The base class for designer plugin's options page. + + Use this class if you develop a designer plugin that may be configured in the + "View|Options..." menu. You need to implement an options page for your + plugin and return it in the IDesignerPlugin.GetOptionsPage method. + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value - of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. + The TabControl control. - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of - the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value - of the viewport. + The TabPage control. - + - The default. Force uniform scaling. Align the midpoint X value of the element's viewBox - with the midpoint X value of the viewport. Align the midpoint Y value of the element's - viewBox with the midpoint Y value of the viewport. + Initializes controls on this options page. + + Override this method to fill options page's controls with initial values. + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X - value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint - Y value of the viewport. + Finalizes the options page. + The dialog result. + + Override this method to pass controls' values to the plugin. Do this if result is + DialogResult.OK. + - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of - the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. + Initializes a new instance of the DesignerOptionsPage class with default settings. + + Usually you need to define another contructor which takes one parameter - the plugin. + + This example shows how to define own constructor which takes a plugin: + + public DialogPageOptions(DialogPageDesigner pd) : base() + { + FPageDesigner = pd; + InitializeComponent(); + } + + - + - Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X - value of the viewport. Align the min-y+height of the element's viewBox with the maximum Y value - of the viewport. + read current token, returns next + + + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value of - the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. + read current token, returns next + + + - + - Specifies the svg scale types + ignore current token, read from next, returns current i.e not next + + + - + - (the default) - Scale the graphic such that: - - aspect ratio is preserved - - the entire viewBox is visible within the viewport - - the viewBox is scaled up as much as possible, while still meeting the other criteria + For internal use only. - + - Scale the graphic such that: - - aspect ratio is preserved - - the entire viewport is covered by the viewBox - - the viewBox is scaled down as much as possible, while still meeting the other criteria + For internal use only. - + - Describes scaling of a svg documents + For internal use only. - + - Gets the align value + For internal use only. - + - Gets the meetOrSlice value + For internal use only. - + - Initializes a new instance of the class. + For internal use only. - - + - Initializes a new instance of the class. + For internal use only. - Align value - meetOrSlice value - + + + + - Specifies the image format in SVG export. + For internal use only. - + - Specifies the .png format. + For internal use only. - + - Specifies the .jpg format. + For internal use only. - + - Represents the text export. + For internal use only. - - - - + - Enable or disable the Data loss avoiding. - Auto calculation of ScaleX and ScaleY will be launched when dialogue window will be off. + Required designer variable. - + - Gets or sets the count of copies for printing of results. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the printer name for printing of results. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable the printing results after export. + Required designer variable. - + - Gets or sets the active index of registered printer type. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the list of printer types. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the scale by X axis for correct text objects placement. + Required designer variable. - + - Gets or sets the scale by Y axis for correct text objects placement. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the encoding of resulting document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - Windows ANSI encoding - TextExport.Encoding = Encoding.Default; - Unicode UTF-8 encoding - TextExport.Encoding = Encoding.UTF8; - OEM encoding for current system locale sessings - TextExport.Encoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage); - - - - Enable or disable the data only output without any headers. Default value is false. + + + Required designer variable. - - - Enable or disable the breaks of pages in resulting document. Default value is true. + + + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - Enable or disable frames in resulting document. Default value is true. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable the text (non graphic) frames in resulting document. Default value is false. + Represents the report engine. - + - Enable or disable the output of empty lines in resulting document. Default value is false. + Shows band at the current position. + Band to show. + + After the band is shown, the current position is advanced by the band's height. + - + - + Gets or sets the current X offset. + + This property specifies the X offset where the current band will be printed. + - + - + Gets or sets the current Y offset. + + This property specifies the Y offset where the current band will be printed. + After the band is printed, this value is incremented by the band's height. + - + - + Gets the index of currently printing column in the multi-column report. + + This value is 0-based. + - + - + Gets or sets index of current prepared page the current band will print on. + + Note: the page with specified index must exists. This property is used to print side-by-side + subreports and Table object. Usually you don't need to use it. + - + - + Gets the current page width, in pixels. + + This property returns a paper width minus left and right margins. + - - - - - - - - + + + Gets the current page height, in pixels. + + + This property returns a paper height minus top and bottom margins. + - - + + + Gets the value indicating whether the page has unlimited height. + - - + + + Gets the value indicating whether the page has unlimited width. + - - + + + Gets or sets the current height of unlimited page. + - + - Exports the page. + Gets or sets the current width of unlimited page. - - - + - Calculates scale. + Gets the height of page footer (including all its child bands), in pixels. - - + - Initializes a new instance of the class. - + Gets the height of column footer (including all its child bands), in pixels. + - - + + + Gets the free space on the current page, in pixels. + + + This property returns the page height minus footers height minus CurY value. + - + - Required designer variable. + Gets the current prepared page number. + + This value is 1-based. The initial value (usually 1) is set in the Report.InitialPageNumber property. + - + - Clean up any resources being used. + Gets the number of total pages in a prepared report. - true if managed resources should be disposed; otherwise, false. + + To use this property, your report must be two-pass. Set the + property to true. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the string that represents the current page number. + + This property returns a locale-based value, for example: "Page 1". + - + - Represents supplement class for print of any stream directly in printer. + Gets the string that represents the "Page N of M" number. + + This property returns a locale-based value, for example: "Page 1 of 10". + - + - Prints a stream. + Gets the current row number of currently printing band. - Printer name on which should be print. - Document title for printer spooler. - Count of copies. - Stream that will be printed. - This example demonstrates the printing of Stream. - - TextExportPrint.PrintStream("EPSON FX-1000", "My Report", 1, txtStream) - + + This value is 1-based. It resets to 1 on each new group. + - + - Represents the printer command class + Gets the running current row number of currently printing band. + + This value is 1-based. + - + - Gets or sets the active state of command. Default value is false. + Gets the date of report start. - + - Gets or sets the command name. + Gets a value indicating whether the report is executing the final pass. + + This property is true if report is one-pass, or if report is two-pass and + the second pass is executing. + - + - Gets or sets the list of "on sequence". + Gets a value indicating whether the report is executing the first pass. + + This property is true if report is one-pass, or if report is two-pass and + the first pass is executing. + - + - Gets or sets the list of "off sequence". + Gets a level of hierarchy when printing hierarchical bands. + + The first level of hierarchy has 0 index. + - + - Initializes a new instance of the class. + Gets the row number like "1.2.1" when printing hierarchical bands. - + - Represents of the printer type class. + Returns true of keeping is enabled - + - Gets or sets the printer name. + Returns keeping position - + - Gets or sets the list of printer commands. + Starts the keep mechanism. + + Use this method along with the method if you want to keep + several bands together. Call StartKeep method before printing the first band + you want to keep, then call the EndKeep method after printing the last band you want to keep. + - + - Initializes a new instance of the class. + Ends the keep mechanism. + + Use this method along with the method if you want to keep + several bands together. Call StartKeep method before printing the first band + you want to keep, then call the EndKeep method after printing the last band you want to keep. + - + - Represents the XAML export filter. + Gets xml containing outline nodes. - - + + + Creates a new outline element with specified text. + + Text of element. + + After you call this method, the element will be added to the current position in the outline. + The next call to AddOutline will add new element as a child of this element. + To shift the position, use the or + OutlineUp methods. + - + - Gets or sets the class name of XAML document + Sets the current outline position to root. - + - Enable or disable the pictures in XAML export + Shifts the current outline position one level up. - + - Gets list of generated streams + Creates a new bookmark with specified name at current position. + - + - Gets or sets the image format used when exporting. + Gets a page number for the specified bookmark name. + Name of bookmark. + Page number if bookmark with such name found; 0 otherwise. + + Use this method to print the table of contents in your report. Normally it can be done + using bookmarks. + + You must set your report to double pass to use this method. + + - + - Get or set scrollbar settings + Resets the logical page numbers. - + - Get dictionary of saved images + Called when the number of pages increased during DoublePass - + - Add TextObject. + Starts a new page. - + - Add BandObject. + Starts a new column. - + - Add Line. + Processes the specified text object which ProcessAt property is set to Custom. + The text object to process. - + - Add Shape. + Excel 2003 export class - + - + - Begin exporting of page + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. - - + - Export of Band + Gets or sets a value that determines whether to insert page breaks in the output file or not. - - + - End exporting + Read and parse Excel document - - + - + - - - Gem MemoryStream what contain image - - - + + - + - + + + + + + + + + + + + + - Initializes a new instance of the class. + Related to DRAWING group. Used once - + - Contains Dashes enum + Provides API to binary stream - + - Specifies the Dash. + - + - Specifies the Dot. + Represents the CSV export filter. - + + + + - Specifies the DashDot. + Gets or set the resulting file encoding. - + - Specifies the DashDotDot. + Gets or set the separator character used in csv format. - + - Specifies the Double line. + Gets or sets a value that determines whether to export the databand rows only. - + - XAML generator + Gets or sets a value that disable quotation marks for text. - + - Create Window. + Gets or sets a value that disable escaping quotation marks for text. - - - Create Grid. - + + - - - Create Canvas. - + + - - - Create StackPanel - + + - - - Create StackPanel - + + - - - Create Resources tag - + + - + + + + - Add resource for TextObject - + Initializes a new instance of the class. + - + - Add resource for TextObject with angle + Represents the export to DBF. - + + + + - Add resource for Line + Gets or sets the encoding. - + - Add resource for Rectangle + Gets or sets a value that determines whether to export the databand rows only. - + - Add resource for Ellipse + Gets or sets the list of field names. + + The field names must be separated by ";" symbol, for example: Column1;Column2;Column3 + - + - Add resource for Polygon + Initializes a new instance of the class. - - - Add TextObject. - + + - - - Method for add TextObject with angle - + + - - - Add line. - + + - - - Add line with dash. - + + - - - Add rectangle. - + + - - - Add ellips. - + + - + + + + - Add triangle. + Represents the record. - + - Add Diamond. + Gets or sets the field with a specified index. - + - Add image + Gets the count of a fields. - - - - - - - - + - Add image without name + Gets the size of a fields. - - - - - - - + - Add page to StackPanel + Initializes a new instance of the class. - - + - Save xaml file. + Adds the new item into a list of fields. - + - Save xaml stream. + Clears the list of fields. - - - - - - - - - + - Specifies the image format in XAML export. + Represents the email export. + + In order to use this class, you need to set up at least the following properties: + , , . Use the + property to choose the format of an attachment. If you leave it empty, the attachment will be + in the .FRP format (FastReport prepared report). When you done with settings, call the + method to send an email. + + + This example demonstrates the bare minimum required to send an email. + + EmailExport export = new EmailExport(); + export.Account.Address = "my@address.net"; + export.Account.Host = "myhost"; + export.Address = "recipient@address.net"; + export.Subject = "Re: analysis report"; + // the report1 report must be prepared at this moment + export.SendEmail(report1); + + - + - Specifies the .png format. + Displays the dialog box in which you can set up all parameters. + true if user pressed OK button in the dialog. - + - Specifies the .jpg format. + Gets or sets the recipient's address. + + This property must contain value in form "john@url.com". + - + - Represents the Excel 2003 XML export filter. + Gets or sets the carbon copy adresses. + + This property must contain an array of values in form "john@url.com". + - - + + + Gets or sets the subject of the message. + - + - Gets or sets a value that determines whether to insert page breaks in the output file or not. + Gets or sets the message body. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Gets or sets the export filter which will be used to export a report. - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. + Set this property to instance of any export filter. When you send the email, the report + will be exported using that export filter. + By default, this property is set to null. In this case the report will be send + in .FRP format. - + - Gets or sets the name of document creator. + Gets the email account settings such as host, user name, password. - + - Gets or sets a value that determines whether to export the databand rows only. + Gets the parent Report object - - - - - - - - + + + Sends an email. + + Reports that will be sent as attachments. + + Before using this method, set up the following properties (it's a bare minimum): + , , . + The report that you pass in this method must be prepared using the Prepare method. + - + - + - - + + + Initializes a new instance of the class with default settings. + - - + + + Initializes a new instance of the class with default settings. + - + - Initializes a new instance of the class. - + Form for . + For internal use only. + - + - Represents the Zpl export filter. + Hides attachment settings. + For internal use only. - + - + - Enum of densty types of Zebra printers. + Initializes a new instance of the class. - + - 6 dpmm(152 dpi) + Required designer variable. - + - 8 dpmm(203 dpi) + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 12 dpmm(300 dpi) + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 24 dpmm(600 dpi) + Allows to send message using MAPI interface. - + - Sets the density of printer. + Sends a message. + Parent window handle. + Files to attach. + Email subject. + Email body. + Recipient names. + Recipient addresses. + Error code. 0 if operation was completed succesfully. - + - Sets the init string for sending before printing the document. + Returns a text describing an error. + The error code. + The text describing an error. - + - Sets the code page of document. Default is UTF-8 (^CI28). + Contains the email account settings such as host, email address, name. + + You have to set up at least the and properties. If your + host requires authentication, provide the and + properties as well. + Set property to true if you want to use default email client + such as Outlook to send an email. In this case, all other properties will be ignored. + - + - Sets the string for sending after printing the document. + Gets or sets the sender's email address. + + This property contains your email address (for example, "john@site.com"). + - + - Sets the string for sending before printing each page. + Gets or sets the sender's name. + + This property contains your name (for example, "John Smith"). + - + - Sets the scale font size. + Gets or sets the template that will be used to create a new message. - + - Sets the Printer Font, default value is "A". + Gets or sets the SMTP host name or IP address. - + - Enable or disable export as bitmap. + Gets or sets the SMTP port. + + The default value for this property is 25. + - + - Writes the string value in stream. + Gets or sets the user name. - - + + Specify the and properties if your host requires + authentication. + - + - Writes the string value in stream with CRLF. + Gets or sets the password. - - + + Specify the and properties if your host requires + authentication. + - + - Gets the left position in zpl units. + Gets or sets a value that determines whether to enable the SSL protocol. - - - + - Gets the top position in zpl units. + Gets or sets a value that determines whether the account setting page + in the "Send Email" window is enabled. - - - + - Exports the TableObject. + Gets or sets a value that determines whether to use MAPI instead of SMTP when sending an email. - - + - Exports the LineObject. + Copies email settings from another source. - + Source to copy settings from. - + - Exports the ShapeObject. + Initializes a new instance of the class with default settings. - - + - Exports the TextObject. + The base class for all export filters. - - + - Gets the position of object in ZPL code. + Exports the report to a file. - - - + Report to export. + true if report was succesfully exported. + + This method displays an export options dialog, then prompts a file name using standard "Open file" + dialog. If both dialogs were closed by OK button, exports the report and returns true. + - + - Gets the text attributes in ZPL code. + Displays a dialog with export options. - - - - - - + true if dialog was closed with OK button. - + - Gets the text with font width and height in ZPL code. + Gets a report page with OverlayBand if it is a Demo or Academic. - - - - + The prepared report page + The prepared report page with OverlayBand. - + - Gets the horiz align in ZPL code. + Zoom factor for output file - - - + - Gets the rectangle in ZPL code. + File filter that can be used in the "Save file" dialog. - - - - - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the class. - + Range of pages to export. + - + - This property for internal use only. + Page numbers to export. + + Use page numbers separated by comma and/or page ranges, for example: "1,3-5,12". Empty string means + that all pages need to be exported. + - + - Binary tree class + Current page number. + + Page number need to be exported if user selects "Current page" radiobutton in the export options dialog. + This property is typically set to current page number in the preview window. + - + - Maximal value between child and parent + Open the document after export. - + - Nodes count + Allows or disables the OpenAfterExport feature. - + - Root node + Gets or sets a value that determines whether to show progress window during export or not. - + - Nodes array. Accending sorting by node value. Available after close of tree. + Gets a list of files generated by this export. - + - Accecptable inaccuracy of new values. + Gets a value indicating that the export may produce multiple output files. - + - Recursive add value to a node. + Gets or sets a value indicating that the report bands should be shifted, if page + has any non-exportable bands - - - - + - Poll right child node for correct balance. + Gets or sets the initial directory that is displayed by a save file dialog. - - + - Poll left child for correct balance. + Stream to export to. - - + - Recursive indexation of node and childs. + File name to export to. - - + - Add new value in tree. All equals are skipped. + Array of page numbers to export. - - + - Close the tree and make index array. + Returns a file filter for a save dialog. + String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - Seek of value index in the tree. + This method is called when the export starts. - - - + - Find of value index in sub-tree of node. + This method is called at the start of exports of each page. - - - + Page for export may be empty in this method. - + - Borrow values form List in the tree + This method is called at the end of exports of each page. - + Page for export may be empty in this method. - + - Borrow values form array in the tree + This method is called for each band on exported page. - + Band, dispose after method compite. - + - Clear tree + This method is called when the export is finished. - + - Tree constructor + Gets a report page with specified index. + Zero-based index of page. + The prepared report page. - + + + + + + + - Tree node class + Exports the report to a stream. + Report to export. + Stream to export to. + + This method does not show an export options dialog. If you want to show it, call + method prior to calling this method, or use the "Export(Report report)" method instead. + - + - Link to left child + Exports the report to a file. + Report to export. + File name to export to. + + This method does not show an export options dialog. If you want to show it, call + method prior to calling this method, or use the "Export(Report report)" method instead. + - + - Link to right child + Initializes a new instance of the class. - + - Node value + Represents the HTML export filter. - - - Count of nodes in left sub-tree + Represents the HTML export filter. - - - Count of nodes in right sub-tree + Represents the HTML export filter. - - - Node index + Represents the HTML export filter. - - - Node constructor + Represents the HTML export filter. - - + + + + - Specifies the export font class. + Draw any custom controls - + - These fonts not support Bold or Itailc styles + Draw any custom controls. + - + - Description of SCRIPT_STATE structure + Types of html export - + - data + Simple export - + - uBidiLevel + Web preview mode - + - SetRtl + Web print mode - + - Description of SCRIPT_ANALYSIS structure + hash:base64Image - + - data + Gets or sets images, embedded in html (hash:base64Image) - + - state + Sets a ID of report - + - Description of SCRIPT_CONTROL structure + Sets an onclick template - + - data + Enable or disable layers export mode - + - Description of SCRIPT_DIGITSUBSTITUTE structure + For internal use only. - + - NationalDigitLanguage + For internal use only. - + - TraditionalDigitLanguage + For internal use only. - + - DigitSubstitute + For internal use only. - + - dwReserved + For internal use only. - + - Description of SCRIPT_ITEM structure + Enable or disable showing of print dialog in browser when html document is opened - + - iCharPos + Enable or disable preview in Web settings - + - analysis + Enable or disable the breaks between pages in print preview when single page mode is enabled - + - Description of SCRIPT_VISATTR structure + Specifies the output format - + - data + Specifies the width units in HTML export - + - Description of GOFFSET structure + Specifies the height units in HTML export - + - du + Enable or disable the pictures in HTML export - + - dv + Enable or disable embedding pictures in HTML export - + - Description of ABC structure + Enable or disable the WEB mode in HTML export - + - abcA + Gets or sets html export mode - + - abcB + Enable or disable the single HTML page creation - + - abcC + Enable or disable the page navigator in html export - + - Description of FontPanose structure + Enable or disable the sub-folder for files of export - + - Description of FontRect structure + Gets or sets the Wysiwyg quality of export - + - Description of FontPoint structure + Gets or sets the image format. - + - Description of FontTextMetric structure + Gets print page data - + - Description of OutlineTextMetric structure + Gets list of generated streams. - + - Return widths array + Enable or disable saving streams in GeneratedStreams collection. - + - Return array with used glyph indexes - glyphs alphabet + Enable or disable margins for pages. Works only for Layers-mode. - + - Return used unicode alphabet + Enable or disable export of vector objects such as Barcodes in SVG format. - + + + + + + + + + + + + + - Return text metric structure, need to use after FillOutlineTextMetrix() + Process Page with number p and real page ReportPage + + + - + - Gets or sets internal font name + Process Page with number p and real page ReportPage + + - + + + + + + + - Return source font used in constructor + For internal use only. - + - Gets or sets internal reference + Initializes a new instance of the class. - + + + + - Gets or sets internal property - save flag + Event arguments for custom drawing of report objects. - + - True if bold style is not supported by font + Report object - + - True if italic style is not supported by font + ReportObject. - + - Run fill outline text metric structure + Resulting successfull drawing flag. - + - Return glyph width + Resulting HTML string. - - - + - Return font file + Resulting CSS string. - - + - Remap str in glyph indexes. Return string with glyph indexes. + Layers mode when true or Table mode when false. - - - - + - Return english name of source font + Zoom value for scale position and sizes. - - + - Return PANOSE string + Left position. - - + - Create object of ExportTTFFont. + Top position. - - + - Destructor + Width of object. - + - For internal use only. + Height of object. - + - Gets current page width. + Represents the HTML export templates. - - - + - Gets current page height. + Page Template Title - - - + - + Page Template Footer - - - + - Font descriptor + Navigator Template - + - Indicates that the point is the start of a figure. + OutlineTemplate - + - Indicates that the point is one of the two endpoints of a line. + Index Template - + - Indicates that the point is an endpoint or control point of a cubic Bézier spline. + Initializes a new instance of the class. - + - Masks all bits except for the three low-order bits, which indicate the point type. + Represents the HTML export format enum - + - Specifies that the point is a marker. + Represents the message-HTML type - + - Specifies that the point is the last point in a closed subpath (figure). + Represents the HTML type - + - FontHeader table + Specifies the image format in HTML export. - + - Define type of font file + Specifies the .bmp format. - + - Classic TrueType font + Specifies the .png format. - + - Collection of TrueType fonts + Specifies the .jpg format. - + - OpenType font format + Specifies the .gif format. - + - GlyphSubstitution table + Specifies the units of HTML sizes. - + - Return true if was applied + Specifies the pixel units. - - - - - + - Return coverageIndex for ApplyForce or if fail then return -1 + Specifies the percent units. - - - - + - Apply this Substitution with specified coverageIndex, cant be called only after IsApply + For internal use only. - - - - - + - Table with encoded glyphs' outline + For internal use only. - + - HorizontalMetrix table + For internal use only. - + - IndexToLocation table + For internal use only. - + - Kerning table + For internal use only. - + - MaximumProfile table + For internal use only. - + - Name table keep human friendly description about font properties, including font names, author and copyright notes + For internal use only. - + - OS/2 and Windows Metrics table + For internal use only. - + - Description of FontTextMetric structure + For internal use only. - + - Description of FontPanose structure + For internal use only. - + - True Type Font Collectiom + Represents the MHT export filter. - + + + + - Will be removed soon + Enable or disable the pictures in MHT export - + - Different caching strategies + Gets or sets the Wysiwyg quality of export - + - Reference counter + Gets or sets the image format. - + + + + + + + + + + - Progress callback type definition + Initializes a new instance of the class. - Progress information - + - Progress callback event + Represents the image export filter. - + + + + - Open and parse TrueType file + Gets or sets the image format. - - - - + - Find all fonts files in directory and it's subdirectories + Gets or sets a value that determines whether to generate separate image file + for each exported page. - Directory where find fond files - Defines file which collect found fonts + + If this property is set to false, the export filter will produce one big image + containing all exported pages. Be careful using this property with a big report + because it may produce out of memory error. + - + - Get TrueType font from static collection + Gets or sets image resolution, in dpi. - String which identifies font - family name + "-B" for bold and "-I" for italic - + + By default this property is set to 96 dpi. Use bigger values (300-600 dpi) + if you going to print the exported images. + - + - Get font by its name and bold/italic attributes + Gets or sets horizontal image resolution, in dpi. - - TrueType font object + + Separate horizontal and vertical resolution is used when exporting to TIFF. In other + cases, use the property instead. + - + - Workaround function for avoid font duplicates + Gets or sets vertical image resolution, in dpi. - if true then font append to collection, if false then font append to hash - Internal font structure - This parameter defines path to font file if file append to hash. Not used otherwise + + Separate horizontal and vertical resolution is used when exporting to TIFF. In other + cases, use the property instead. + - + - Parse raw image of font data and create TrueTypeFont objects from this image + Gets or sets the jpg image quality. - Defines font or collections - Pointer to memory of raw font data - + + This property is used if is set to Jpeg. By default + it is set to 100. Use lesser value to decrease the jpg file size. + - + - Build list of fonts + Gets or sets the value determines whether to produce multi-frame tiff file. - Optional path to configuration folder. - + - Interface for TrueTypeFont object + Gets or sets a value that determines whether the Tiff export must produce monochrome image. + + Monochrome tiff image is compressed using the compression method specified in the + property. + - + - TrueTypeFont object + Gets or sets the compression method for a monochrome TIFF image. + + This property is used only when exporting to TIFF image, and the property + is set to true. + The valid values for this property are: EncoderValue.CompressionNone, + EncoderValue.CompressionLZW, EncoderValue.CompressionRle, + EncoderValue.CompressionCCITT3, EncoderValue.CompressionCCITT4. + The default compression method is CCITT4. + - + - Get or set current script + Sets padding in non separate pages - + + + + + + + + + + + + + + + + + + + + + + - Get or set current Language + Initializes a new instance of the class. - + - Get available scripts + Specifies the image export format. - + - Get available languages for script + Specifies the .bmp format. - - - + - Get available features for language and script + Specifies the .png format. - - - - + - Prepare tables for drawing, subsetting and so on + Specifies the .jpg format. - always true - + - Return raw image of the font + Specifies the .gif format. - Array of font bytes - + - Cut some information from TTF file to reduce its size + Specifies the .tif format. - List of character codes to preserve them in font - If true then ignore CMAP table - - + - Parse font supplement tables which store properties of the font + Specifies the .emf format. - + - Get unique font identifier + Represents the JSON export filter. - - + + + + + + + + + + + + + + + + + + + + + + - Create glyph outline assigned to specific position - - unicode character which will be drawn - size of the character - position of outline - outline of character + Initializes a new instance of the class. + - + - Get glyph's outline + Represents the LaTeX export filter. - unicode charter - outline image size - - + + + + + + + + + + + + + + + + + + + + + + - Create outline for group of characters - - text as array of glyph's indexes - position of text - font size - text in form of outline vectors + Initializes a new instance of the class. + - + - Create outline for text string + Base class for any ODF exports - text which will be transformed to outline - position of text - font size - text in form of outline vectors - + - + - Constructor of TrueTypeFont object + Switch of page breaks - The start of RAW image of font or font collection - Actual address of font within RAW image - Reference count emulation - + - Destructor of TrueTypeFont object + Wysiwyg mode, set for better results - + - Description of SCRIPT_STATE structure + Creator of the document - + + + + + + + + + + + + + + + + + + + - data + Initializes a new instance of the class. - + - uBidiLevel + Open Document Spreadsheet export (Open Office Calc) - + + + + - SetRtl + Initializes a new instance of the class. - + - Description of SCRIPT_ANALYSIS structure + Open Document Text export (Open Office Writer) - + + + + - data + Initializes a new instance of the class. - + - state + MS Word 2007 export class - + + + + - Description of SCRIPT_CONTROL structure + Types of table rows height - + - data + Exactly height - + - Description of SCRIPT_DIGITSUBSTITUTE structure + Minimum height - + - NationalDigitLanguage + Enable or disable matrix view of document - + - TraditionalDigitLanguage + Enable or disable Paragraph view of document - + - DigitSubstitute + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - dwReserved + Gets or sets the type of height calculation. - + - Description of SCRIPT_ITEM structure + Gets or sets the type of height calculation. - + - iCharPos + Enable or disable a resolution optimization. - + - analysis + Enable or disable DoNotExpandShiftReturn. - + + + + + + + + + + + + + + + + + + + + + + - Description of SCRIPT_VISATTR structure + Initializes a new instance of the Word2007Export class. - + - data + Represents the PowerPoint 2007 export. - + + + + - Description of GOFFSET structure + Gets or sets the image format used when exporting. - + + + + + + + + + + + + + + + + + + + + + + - du + Creates a new instance of the class with the default settings. - + - dv + Excel 2007 export class - + + + + - Description of ABC structure + Defines Print Scaling Mode. - + - abcA + Print sheets at thier actual size. - + - abcB + Shrink the printout so that it fits on one page. - + - abcC + Shrink the printout so that it is one page wide. - + - Description of FontRect structure + Shrink the printout so that it is one page high. - + - Description of FontPoint structure + Gets or sets the Print Fit Mode. - + - Description of OutlineTextMetric structure + Gets or sets the font scale value. + Default value is 1 - + - Emulation of Uniscribe GetOutlineTextMetrics + Enable or disable a resolution optimization. - Reference to metric structure - + - Translate text to positions of glyphs in glyph tables and glyphs width + Each report page is placed on a new Excel page. - - - - - - - + - Base class which is parent of any table in TrueType font or collection + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - + Gets or sets a value that determines whether to insert page breaks in the output file or not. - + - + Gets or sets a value that determines whether to export the databand rows only. - - - + - + Enable or disable export of page footers and next page headers without table breaks. - - - + + + + + + + + + + + + + + + + + + + + + + - + Initializes a new instance of the class. - - - + - + Main class of XML export - - - + + + + - + PicturesCount - - - + - + HumanReadable - - - - + + + + + + + + + + + + + + + + + + + - + Constructor of XPSExport - - - - + - Represents a label of a gauge. + Destructor of XPSExport - + - Gets or sets the label text + Save - + + + - Gets or sets the label font + Padding over ridh object - + - Gets or sets the label color + This prperty keep RTF to DOC translation result, i.e. DOCX XML fragment - + - Gets or sets the label parent + Base class for Microsoft Office 2007 export objects - + - Initializes a new instance of the class. + Default XML header - + - Initializes a new instance of the class. + Base class for export Office Open objects - Label text - Label font - Label color - Label parent - + - Copies the contents of another GaugeLabel. + Core document properties - The GaugeLabel instance to copy the contents from. - + - Draws the gauge label. + Core document properties - Draw event arguments. - + - Serializes the gauge label. + Power point shape - Writer object. - Gauge label property name. - Another GaugeLabel to compare with. - - This method is for internal use only. - - - - - - - - - - - - - - - + + + Power Point Layout Descriptor + - - + + + Power Point base class for style element + - + - Required designer variable. + Base class for styles group - + - Clean up any resources being used. + Base class for slides, masters, and layouts - true if managed resources should be disposed. Otherwise, false. - + - Represents a linear gauge. + Slide masters object - - - - - - - + - Gets or sets the value that specifies inverted gauge or not. + Ordinaty slide - + - Gets or sets gauge label. + Slide layout object - + - Initializes a new instance of the class. + Presentation class - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Required designer variable. + PPt Application Properties class - + - Clean up any resources being used. + Ppt Table styles class - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Ppt Presentation properties class - + - Represents a linear pointer. + Ppt View Properties class - + - Gets o sets the height of gauge pointer. + Specifies the image format in PowerPoint export. - + - Gets or sets the width of a pointer. + Specifies the .png format. - + - Initializes a new instance of the + Specifies the .jpg format. - The parent gauge object. - - - - - - - - - - + - Represents a linear scale. + Drawing class - + - Initializes a new instance of the class. + Share all strings in document - The parent gauge object. - - - - - - - - - - + - Represents a linear gauge. + Share all URL in document - - - - - - - - + + + Document styles + - - + + + Workbook + - + - Returns centr of the gauge + OoXMLSheet class - + - The number of radians in one degree + Picture container - + - Gets or sets the Radial Gauge type + List of all document fonts - + - Gats or sets the Radial Gauge position. Doesn't work for Full Radial Gauge. + Single page export - + - Gets or sets the semicircles offset + Document structure descriptor - + - Initializes a new instance of the class. + Font container - - + + + Font obfuscation procedure + - - + + + PDF export (Adobe Acrobat) + - + - + - Radial Gauge types + Embedded File - + - Full sized gauge + Name of embedded file. - + - Half of the radial gauge + Description of embedded file. - + - Quarter of the radial gauge + Modify Date of embedded file. - + - Radial Gauge position types + Relationship between the embedded document and the PDF part. - + - None + Valid MIME type. - + - Top + Stream of embedded file. - + - Bottom + File reference. - + - Left + ZUGFeRD Conformance Level. - + + Initializes a new instance of the class. + + - Right + Default preview size. - - - - - - - - - - - - - - - - - - - + - Required designer variable. + Actual size - + - Clean up any resources being used. + Fit Page - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Fit Width - + - Represents a linear pointer. + Default - + - Gets or sets the value, indicating that gradient should be rotated automatically + 10% - + - Initializes a new instance of the + 25% - The parent gauge object. - The scale object. - - - - - - - - - - + - Represents a linear scale. + 50% - + - Initializes a new instance of the class. + 75% - The parent gauge object. - - - - - - - - - - + - Represents a simple progress gauge. + 100% - - - - - - - + - Gets or sets gauge label. + 125% - + - Gets scale. Should be disabled for SimpleProgressGauge + 150% - + - Initializes a new instance of the class. + 200% - - - - + - + 400% - - - - - - - - - - - - - - - - + - Required designer variable. + 800% - + - Clean up any resources being used. + Standard of PDF format. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + PDF 1.5 - - - - + - Gets or sets the number of fractional digits + PDF/A-2a - - - - - - - - - - + - SimpleProgressGauge pointer types + PDF/A-2b - + - Full sized pointer + PDF/A-3a - + - Small pointer + PDF/A-3b - - - - + - Gets or sets the pointer type + Pdf/X-3 - + - Gets or sets the small pointer width ratio + Pdf/X-4 - - - - - - - - - - + - Represents a simple gauge. + Color Space. - - - - - - - + - Gets or sets gauge label. + RGB color space - + - Initializes a new instance of the class. + CMYK color space - - - - - - - - - - - - - - - - - - - - + + + Types of pdf export. + - + - Required designer variable. + Simple export - + - Clean up any resources being used. + Web print mode - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Relationship between the embedded document and the PDF part. - + - Represents a simple pointer. + The embedded file contains data which is used for the visual representation. - + - Gets o sets the Left offset of gauge pointer. + The embedded file contains the source data for the visual representation derived therefrom in the PDF part. - + - Gets o sets the Top offset of gauge pointer. + This data relationship should be used if the embedded data are an alternative representation of the PDF contents. - + - Gets o sets the height of gauge pointer. + This data relationship is used if the embedded file serves neither as the source nor as the alternative representation, but the file contains additional information. - + - Gets or sets the width of a pointer. + If none of the data relationships above apply or there is an unknown data relationship, this data relationship is used. - + - Gets or sets the pointer ratio. + ZUGFeRD Conformance Level. - + - Gets or sets the pointer horizontal offset (cm). + Basic level. - + - Initializes a new instance of the class. + Comfort level. - The parent gauge object. - - + + + Extended level. + - - + + + Gets or sets PDF Compliance standard. + After set, do not change other settings, it may lead to fail compliance test. + - - + + + Enable or disable of embedding the TrueType fonts. + - + - Represents a simple scale. + Enable or disable of exporting the background. - + - Gets or sets the first subscale (top or left). + Enable or disable export text in curves - + - Gets or sets the second subscale (right or bottom). + Gets or sets PDF color space - + - Initializes a new instance of the class. + Enables or disables saving images in their original resolution - The parent gauge object. - - - - - - - - - - + - Represent the subscale of simple scale. + Enables or disables optimization of images for printing - + - Gets or sets a value that specifies enabled subscale or not. + Enable or disable image jpeg compression - + - Gets or sets a value that specifies show caption or not. + Sets the quality of images in the PDF - + - Initializes a new instance of the class. + Title of the document. - + - Copies the contents of another SimpleSubScale. + Author of the document. - The SimpleSubScale instance to copy the contents from. - + - Serializes the SimpleSubScale. + Subject of the document. - Writer object. - SimpleSubScale property name. - Another SimpleSubScale to compare with. - - This method is for internal use only. - - + - Represents a gauge object. + Keywords of the document. - + - Gets or sets the minimal value of gauge. + Creator of the document. - + - Gets or sets the maximal value of gauge. + Producer of the document. - + - Gets or sets the currenta value of gauge. + Sets the owner password. - + - Gets or sets scale of gauge. + Sets the user password. - + - Gets or sets pointer of gauge. + Enable or disable printing in protected document. - + - Gets or sets gauge label. + Enable or disable modifying in protected document. - + - Gets or sets an expression that determines the value of gauge object. + Enable or disable copying in protected document. - + - Gets a value that specifies is gauge vertical or not. + Enable or disable annotating in protected document. - + - Initializes a new instance of the class. + Enable or disable the print dialog window after opening - + - Initializes a new instance of the class. + Enable or disable hide the toolbar. - Minimum value of gauge. - Maximum value of gauge. - Current value of gauge. - + - Initializes a new instance of the class. + Enable or disable hide the menu's bar. - Minimum value of gauge. - Maximum value of gauge. - Current value of gauge. - Scale of gauge. - Pointer of gauge. - - - - - + + + Enable or disable hide the Windows UI. + - - + + + Enable or disable of fitting the window + - + - Draws the gauge. + Enable or disable of centering the window. - Draw event arguments. - - + + + Enable or disable of scaling the page for shrink to printable area. + - + - Clone Gauge Object + Enable or disable of document's Outline. - clone of this object - - + + + Set default zoom on open document + - - + + + Sets the quality of RichText objects in the PDF + - - + + + Enable or disable the compression in PDF document. + - + - Represents a pointer of gauge. + Enable or disable of images transparency. - + - Gets or sets the parent gauge object. + Enable or disable of displaying document's title. - + - Gets or sets the color of a pointer. + Set default page on open document - + - Gets or sets the border width of a pointer. + Color Profile (ICC file). + If "null" then default profile will be used - + - Gets or sets the border color of a pointer. + Gets or sets pdf export mode - + - Initializes a new instance of the class. + Gets pdf AcroForms compatibility, if set then EmbeddingFonts = false and PdfCompliance = PdfStandard.None - The parent gauge object. - + - Copies the contents of another GaugePointer. + Enable or disable digital sign for pdf document - The GaugePointer instance to copy the contents from. + + Be sure to specify a valid certificate for signing using the DigitalSignCertificate property. + Or using the DigitalSignCertificatePath and DigitalSignCertificatePassword properties. + - + - Draws the gauge pointer. + Should save and serialize password for digital sign certificate. + Do not save password unless absolutely necessary!!! - Draw event arguments. - + - Serializes the gauge pointer. + Manualy sets digital sign certificate for exported documents. - Writer object. - Gauge pointer property name. - Another GaugePointer to compare with. - This method is for internal use only. + This property is in priority, i.e. if a certificate is specified, + the DigitalSignCertificatePath and DigitalSignCertificatePassword properties will not be used. - + - Represents a scale of a gauge. + The path for load digital sign certificate. - + - Gets or sets major ticks of scale. + Sets digital sign certificate password. - + - Gets or sets minor ticks of scale. + Gets or sets the cpu host name or physical location of the signing - + - Gets or sets the parent gauge object. + The reason for the signing, such as (I agree ...) - + - Gets or sets the font of scale. + The information to enable the recipient to contact the signer to verify the signature - + + + + + + + - Gets or sets the scale font color + Begin exporting of page + - + - Initializes a new instance of the class. + End exporting - The parent gauge object. + - + - Copies the contents of another GaugeScale. + Export of Band - The GaugeScale instance to copy the contents from. + - + + + + + + + - Draws the scale of gauge. + Add an embedded XML file (only for PDF/A-3 standard). - Draw event arguments. + File name + Description + Modification date + File stream - + - Serializes the gauge scale. + Add an embedded XML file (only for PDF/A-3 standard). - Writer object. - Scale property name. - Another GaugeScale to compare with. - - This method is for internal use only. - + File name + Description + Modification date + File stream + ZUGFeRD Conformance Level - + - Represents a scale ticks. + Add an embedded file (only for PDF/A-3 standard). + File name + Description + Modification date + Relation type + MIME type + File stream - + - Gets or sets the length of ticks. + Initializes a new instance of the class. - + - Gets or sets the width of ticks. + Calculates mask for image. - + - Gets or sets the color of ticks. + Calculates image bounds according to . - + - Gets or sets the count of ticks + Writes pixels' colors without alpha to stream according to CMYK or RGB color space. + Pixels should be in the format. - + - Initializes a new instance of the class. + Update stream position for object number, only for int value + int value - + + + + + The pdf export + size of place for svg + + - Initializes a new instance of the class. + The interpolation of curves (svg) - Ticks length. - Ticks width. - Ticks color. - + - Initializes a new instance of the class. + The interpolation of curves (text) - Ticks length. - Ticks width. - Ticks color. - Ticks count. - + - Copies the contents of another ScaleTicks. + Export svg object as image, not vector - The ScaleTicks instance to copy the contents from. - + - Serializes the scale ticks. + Gradient interpolation, high value will lead beautiful the gradient, + but the file size will increase and the speed of work will decrease. - Writer object. - Scale ticks property name. - Another ScaleTicks to compare with. - - This method is for internal use only. - - + - Provides a user interface for editing an expression. + The quality of gradient, export as image or export as gradient grid - + - + Added graphics path to pdf, + size of rect for gradient filling + path, with positions in pdf scaling + Any brush + Interpolation value + + matrix for transform to pdf scale - + - + returns true if this gradient is fillable by gradient grid + - - + + + The enum of curves interpolation + - - + + + Export as curves, without interpolation + - + - Provides a user interface for editing an expression. + Two points - + - + Four points - + - + Eight points - - + + + Sixteen points + - - + + + The enum of gradient interpolation points + - + - Provides a user interface for editing an expression. + Two points - + - + Four points - + - + Eight points - - + + + Sixteen points + - - + + + Thirty two points + - + - Provides a user interface for choosing a data source. + Sixty four points - - + + + One hundred and twenty eight points + - - + + + Two hundred and fifty six points + - + - Provides a user interface for editing a text outline. + The quality of gradient export - - + + + Export as image + - - + + + Export as low quality gradient grid, max size of interpolation points is 32 + - + - Provides a user interface for choosing a relation. + Export as medium quality gradient grid, max size of interpolation points is 128 - + - Provides a user interface for selecting a component inside the report. + Export as high quality gradient grid, max size of interpolation points is 256 - - + + + File name without extentions, for example "MetaDataX" - - + + + Represents the PPML export filter. + - + - + - Provides a user interface for selecting a component inside the same band. + Enable or disable the pictures in PPML export - - + + + Gets list of generated streams + - - + + + Gets or sets the image format used when exporting. + - - + + + Enable or disable export text in curves + - + - Provides a user interface for editing a flags enumeration. + Add TextObject. - - + + + Add BandObject. + - - + + + Add Line. + - + - Provides a user interface for choosing a data type. + Add Shape. - + - - + + + Begin exporting of page + + - + - Provides a user interface for choosing a data column. + Export of Band + - - + + + End exporting + + - + - + - + + + + - Provides a user interface for choosing a data source. + Initializes a new instance of the class. - + - Provides a user interface for editing an expression. + Contains Dashes enum - - - - - - - + - Provides a user interface for editing an angle in degrees. + Specifies the Dash. - - - - - - - + - Provides a user interface for editing a component's border. + Specifies the Dot. - - - - - - - + - Provides a user interface for selecting a component inside the same page. + Specifies the DashDot. - - - - - + + + Specifies the DashDotDot. + - - + + + Specifies the Double line. + - + - Provides a user interface for choosing a color. + Create Window. - - + + + Add image as PPMLObject + + + + + + - - + + + Save svg file. + - - + + + Save svg stream. + - - + + + + - + - Provides a user interface for editing a fill. + Specifies the image format in PPML export. - - - - - + + + Specifies the .png format. + - + - Provides a user interface for editing a string collection. + Specifies the .jpg format. - - + + + Represents the ps export filter. + - + - + - Represents a map object. + Enable or disable the pictures in PS export - + - This property is not relevant to this class. + Gets list of generated streams - + - This property is not relevant to this class. + Gets or sets the image format used when exporting. - + - This property is not relevant to this class. + Enable or disable export text in curves - + - This property is not relevant to this class. + Add TextObject. - + - This property is not relevant to this class. + Add BandObject. - + - This property is not relevant to this class. + Add Line. - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Add Shape. + - + - - + + + Begin exporting of page + + - - + + + Export of Band + + - - + + + End exporting + + - + - + - + - + - Gets or sets the path to folder containing shapefiles. + Initializes a new instance of the class. - - This property is used by the map editor when selecting a shapefile. - - + - Gets or sets the map zoom. + Contains Dashes enum - + - Gets or sets minimum zoom value. + Specifies the Dash. - + - Gets or sets maximum zoom value. + Specifies the Dot. - + - Gets or sets the X offset of the map. + Specifies the DashDot. - + - Gets or sets the Y offset of the map. + Specifies the DashDotDot. - + - Gets or sets the value indicating that mercator projection must be used to view the map. + Specifies the Double line. - + - Gets the color scale settings. + Create Window. - + + Add TextLine in curves + + - Gets or sets a collection of map layers. - + Method for add TextObject. + - + - Gets or sets padding within the map. + Method to add rectangle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Method for add ellips. + - - + + + Method for add triangle. + - - + + + Method for add Diamond. + - - + + + Method for add line. + - - + + + Method for add line with dash. + - + - Loads a map from file. + Add image - Name of file that contains a map. + + + + + + + - + - Creates unique names for all contained objects such as layers, shapes, etc. + Save file. - + - Initializes a new instance of the class. + Save stream. - + + + + + + - Represents a map point. + Specifies the image format in ps export. - + - Gets or sets the X-coordinate of the point. + Specifies the .png format. - + - Gets or sets the Y-coordinate of the point. + Specifies the .jpg format. - - - - - - - - - - - + + + Represents the RTF export filter. + - + - + - Initializes a new instance of the class. + Gets or sets the quality of Jpeg images in RTF file. + + Default value is 90. This property will be used if you select Jpeg + in the property. + - + - Represents a polygon shape. + Gets or sets the image format that will be used to save pictures in RTF file. + + Default value is Metafile. This format is better for exporting such objects as + MSChartObject and ShapeObject. + - + - Holds the largest bounding rectangle of this shape. + Gets or sets a value indicating that pictures are enabled. - + - Gets or sets a bounding box of this shape. + Gets or sets a value indicating that page breaks are enabled. - + - Gets or sets a list of polygons in this shape. + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting rtf file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - Gets or sets the shape data in binary format. + Gets or sets the creator of the document. - - + + + Gets or sets a value that determines whether the rows in the resulting table + should calculate its height automatically. + + + Default value for this property is false. In this mode, each row in the + resulting table has fixed height to get maximum wysiwyg. If you set it to true, + the height of resulting table will be calculated automatically by the Word processor. + The document will be more editable, but less wysiwyg. + - - + + + Gets or sets a value that determines whether the repot's RichObject will be + translated as picture or joined to generated RTF. + + + Default value for this property is false. In this mode, each RichObject + will be embedded as a picture. This is default behavior. If you set it to true, + the RichObject will be incorporated as a navive part of document. This is experimetal + feature. + - + - + - + - + - + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Represents four coordinates that define a bounding box. + Specifies the image format in RTF export. - + - Gets or sets the minimum X-coordinate of a bounding box. + Specifies the .png format. - + - Gets or sets the minimum Y-coordinate of a bounding box. + Specifies the .jpg format. - + - Gets or sets the maximum X-coordinate of a bounding box. + Specifies the .emf format. - + - Gets or sets the maximum Y-coordinate of a bounding box. + Represents the SVG export filter. - - - Copies the contents of another instance. - - Source box to copy the contents from. + + - + - Defines the palette used to display map shapes. + Enable or disable the pictures in SVG export - + - No palette used. + Gets list of generated streams - + - Light palette. + Gets or sets the image format used when exporting. - + - Pastel palette. + Embed images into svg - + - Grayscale palette. + Returns svg root element - + - Earth tones palette. + Returns XmlDocument - + - Sea green palette. + Returns svg G element - + - Bright pastel palette. + Gets or sets value indicating whether or not should to force uniform scaling of SVG document - + - Represents the color scale. + Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag - + - Gets or sets that must be displayed in this color scale. + Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the svg tag - + - Gets or sets the format string used to format data values. + Add TextObject. - + - Gets or sets a value indicating whether the color scale must be hidden if there is no data in it. + Add BandObject. - + - Gets or sets the text displayed in the color scale if there is no data in it. + Add Line. - - - - - - - - - - - - - + - Initializes a new instance of the class. + Add Shape. - + - Required designer variable. + Create Window. - + - Clean up any resources being used. + Add page - true if managed resources should be disposed; otherwise, false. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Add SVGObject + SVG object - - - Required designer variable. + + + Save svg file. - - - Clean up any resources being used. + + + Save svg stream. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Required designer variable. + + + Begin exporting of page + - - - Clean up any resources being used. + + + Export of Band - true if managed resources should be disposed; otherwise, false. + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + End exporting + - + + + + + + + + + + - Required designer variable. + Export all report objects + - + - Clean up any resources being used. + Initializes a new instance of the class. - true if managed resources should be disposed. Otherwise, false. - + - Represents a set of color ranges used to highlight polygons based on analytical value. + Method to add rectangle. - + - Gets the list of ranges. + Method for add ellips. - + - Gets or sets the number of ranges. + Method for add triangle. - + - Gets or sets the start color. + Method for add Diamond. - + - Gets or sets the middle color. - + Method for add line. + - + - Gets or sets the end color. - + Method for add line with dash. + - + - Gets or sets a value indicating that the map's color scale must display data from this color ranges. + Add image in Base64 + + + + + + + - + - Gets or sets ranges as a string. + Add image + + + + + + - + - Copies the contents of another ColorRanges. + Appends attribute to element - The ColorRanges instance to copy the contents from. + + + - + - Gets a color associated with given analytical value. + Specifies the alignment methods - The analytical value. - The color associated with this value, or Color.Transparent if no association found. - + - Initializes a new instance of the class. + Do not force uniform scaling. Scale the graphic content of the given element non-uniformly + if necessary such that the element's bounding box exactly matches the viewport rectangle. - + - Represents a single color range. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value + of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. - + - Gets or sets color of the range. + Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint + X value of the viewport. Align the min-y of the element's viewBox with the smallest Y value + of the viewport. - + - Gets or sets start value of the range. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value + of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. - + - Gets or sets end value of the range. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of + the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value + of the viewport. - + - Copies the contents of another ColorRange. + The default. Force uniform scaling. Align the midpoint X value of the element's viewBox + with the midpoint X value of the viewport. Align the midpoint Y value of the element's + viewBox with the midpoint Y value of the viewport. - The ColorRange instance to copy the contents from. - + - Initializes a new instance of the class. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X + value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint + Y value of the viewport. - + - Initializes a new instance of the class with a specified parameters. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of + the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. - The color of the range. - The start value of the range. - The end value of the range. - + - Represents a distance scale. + Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X + value of the viewport. Align the min-y+height of the element's viewBox with the maximum Y value + of the viewport. - + - Initializes a new instance of the class. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value of + the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. - + - Represents loading map data from dbf-file. + Specifies the svg scale types - + - Gets or sets the filter string used in an open file dialog. + (the default) - Scale the graphic such that: + - aspect ratio is preserved + - the entire viewBox is visible within the viewport + - the viewBox is scaled up as much as possible, while still meeting the other criteria - + - Initializes a new instance of the class. + Scale the graphic such that: + - aspect ratio is preserved + - the entire viewport is covered by the viewBox + - the viewBox is scaled down as much as possible, while still meeting the other criteria - + - Returns a file filter for an open file dialog. + Describes scaling of a svg documents - String that contains a file filter. - + - Imports the map data from a specified file into a specfied layer. + Gets the align value - The MapObject for an importing map. - The name of a file that contains map. - + - Represents the description of dBase field. + Gets the meetOrSlice value - + - Gets the field name. + Initializes a new instance of the class. + - + - Gets the field type. + Initializes a new instance of the class. + Align value + meetOrSlice value - + - Gets the field length. + Specifies the image format in SVG export. - + - Initializes a new instance of the class. + Specifies the .png format. - + - Initializes a new instance of the class with a specified parameters. + Specifies the .jpg format. - The field name. - The field type. - The field length. - + - Initializes a new instance of the class with a specified parameters. + Represents the text export. - The field name. - The field type. - The field length. - + + + + - The type of dBase field. + Enable or disable the Data loss avoiding. + Auto calculation of ScaleX and ScaleY will be launched when dialogue window will be off. - + - Character field. + Gets or sets the count of copies for printing of results. - + - Date field. + Gets or sets the printer name for printing of results. - + - Numeric field. + Enable or disable the printing results after export. - + - Logical field. + Gets or sets the active index of registered printer type. - + - Memo field. + Gets or sets the list of printer types. - + - Represents a pair of double coordinates that defines a constituent point. + Gets or sets the scale by X axis for correct text objects placement. - + - Gets or sets the X-coordinate of a point. + Gets or sets the scale by Y axis for correct text objects placement. - + - Gets or sets the Y-coordinate of a point. + Gets or sets the encoding of resulting document. + + Windows ANSI encoding + TextExport.Encoding = Encoding.Default; + Unicode UTF-8 encoding + TextExport.Encoding = Encoding.UTF8; + OEM encoding for current system locale sessings + TextExport.Encoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage); + - + - Creates a new instance of the class with specified coordinates. + Enable or disable the data only output without any headers. Default value is false. - X coordinate. - Y coordinate. - + - Holds the list of objects of type. + Enable or disable the breaks of pages in resulting document. Default value is true. - + - Gets or sets the element at the specified index. + Enable or disable frames in resulting document. Default value is true. - Index of an element. - The element at the specified index. - + - Initializes a new instance of the class with default settings. + Enable or disable the text (non graphic) frames in resulting document. Default value is false. - + - Initializes a new instance of the class with specified owner. + Enable or disable the output of empty lines in resulting document. Default value is false. - + - Specifies the type of objects that layer contains. + - + - The layer contains points. + - + - The layer contains lines. + - + - The layer contains polygons. + - + - Specifies the spatial source for the layer. + - + + + + + + + + + + + + + + + + + + + - Source is ESRI shapefile. + Exports the page. + + - + - Source is a latitude/longitude/name provided by an application. + Calculates scale. + - + - Determines how map labels are displayed. - + Initializes a new instance of the class. + - + + + + - No label displayed. + Required designer variable. - + - The shape name is displayed. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The value is displayed. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Both name and value displayed. + Represents the printer command class - + - Represents a map layer. + Gets or sets the active state of command. Default value is false. - + - Gets or sets a type of layer. + Gets or sets the command name. - + - Gets or sets the spatial source for the layer. + Gets or sets the list of "on sequence". - + - Gets or sets the name of ESRI shapefile. + Gets or sets the list of "off sequence". - + - Gets or sets the data source. + Initializes a new instance of the class. - + - Gets or sets the datasource filter expression. + Represents of the printer type class. - + - Gets or sets spatial column name. + Gets or sets the printer name. - - This property is used if the is set to ShpFile. - - + - Gets or sets an expression that returns spatial value. + Gets or sets the list of printer commands. - - This property is used if the is set to ShpFile. - - + - Gets or sets an expression that returns latitude value. + Initializes a new instance of the class. - - This property is used if the is set to ApplicationData. - - + - Gets or sets an expression that returns longitude value. + Represents supplement class for print of any stream directly in printer. - - This property is used if the is set to ApplicationData. - - + - Gets or sets an expression that returns label value. + Prints a stream. - - This property is used if the is set to ApplicationData. - + Printer name on which should be print. + Document title for printer spooler. + Count of copies. + Stream that will be printed. + This example demonstrates the printing of Stream. + + TextExportPrint.PrintStream("EPSON FX-1000", "My Report", 1, txtStream) + - + - Gets or sets an expression that returns analytical value. + Represents the XAML export filter. - + + + + - Gets or sets label's column name. + Gets or sets the class name of XAML document - + - Gets or sets a value that determines how map labels are displayed. + Enable or disable the pictures in XAML export - + - Gets or sets the format of label's value. + Gets list of generated streams - + - Gets or sets the map accuracy. Lower value is better, but slower. + Gets or sets the image format used when exporting. - + - Gets or sets the value that determines the labels visiblity at a certain zoom value. + Get or set scrollbar settings - + - Gets or sets the aggregate function. + Get dictionary of saved images - + - Gets or sets a value indicating that the layer is visible. + Add TextObject. - + - Gets or sets a bounding box of layer. + Add BandObject. - + - Gets a collection of map objects. + Add Line. - + - Gets the default style of shapes in this layer. + Add Shape. - - - Gets or sets the palette used to highlight shapes. - + + - + - Gets the color ranges used to highlight shapes based on analytical value. + Begin exporting of page + - + - Gets the size ranges used to draw points based on analytical value. + Export of Band + - + - Gets or sets the expression that returns the name of polygon to zoom. + End exporting + - - - Gets or sets the bounding box as a string. - + + - + + + + - Gets a reference to the Map object. + Gem MemoryStream what contain image + + - + - + - Draws the layer. + Initializes a new instance of the class. - The drawing parameters. - + - Finds the shape under cursor. + Contains Dashes enum - The cursor coordinates. - The ShapeBase object if found. - - - - + - Creates unique names for all contained objects such as points, lines, polygons, etc. + Specifies the Dash. - + - Reduces the number of points in the shapes in this layer. + Specifies the Dot. - The accuracy value. - + - Loads the layer contents from ESRI shapefile (*.shp/*.dbf). + Specifies the DashDot. - The file name. - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Adds application provided data. + Specifies the DashDotDot. - Latitude value. - Longitude value. - The name displayed as a label. - Analytical value. - - Use this method if the is set to ApplicationData. - - + - Adds a spatial/analytical value pair to the list. + Specifies the Double line. - The spatial value. - The analytical value. - - Use this method if the is set to ShpFile. - - - - - - - - - - - - - - - + + + XAML generator + - - + + + Create Window. + - - + + + Create Grid. + - - + + + Create Canvas. + - - + + + Create StackPanel + - - + + + Create StackPanel + - - + + + Create Resources tag + - - + + + Add resource for TextObject + - + - Initializes a new instance of the class. + Add resource for TextObject with angle - + - The base class for shape objects such as , and . + Add resource for Line - + - Gets or sets the shape visibility. + Add resource for Rectangle - + - Gets or sets a value indicating that custom shape style is used. + Add resource for Ellipse - - If this property is false, the layer's DefaultShapeStyle is used. - - + - Gets a custom shape style. + Add resource for Polygon - - To use this property, first set the property to true. - - + - Gets or sets the center point X offset. + Add TextObject. + + + + + Method for add TextObject with angle + + + + + Add line. + + + + + Add line with dash. + + + + + Add rectangle. - - Use this property to adjust the label's position. - - + - Gets or sets the center point Y offset. + Add ellips. - - Use this property to adjust the label's position. - - + - Gets or sets the shape X offset. + Add triangle. - - Use this property to adjust the shape position. - - + - Gets or sets the shape Y offset. + Add Diamond. - - Use this property to adjust the shape position. - - + - Gets or sets the scale factor for this shape. + Add image - - Use this property to adjust the shape size. - + + + + + + + - + - Gets or sets the spatial data associated with this shape. + Add image without name + + + + + + - + - Gets or sets the value. + Add page to StackPanel + - + - Gets a reference to the parent Map object. + Save xaml file. - + - Gets a reference to the parent Layer object. + Save xaml stream. - - + + + + + + + - + - Draws the shape. + Specifies the image format in XAML export. - Object that provides a data for paint event. - + - Draws the label. + Specifies the .png format. - Object that provides a data for paint event. - + - Checks if the shape is under cursor. + Specifies the .jpg format. - The cursor coordinates. - true if the cursor is over the shape. - + - Reduces the number of points in the shape. + Represents the Excel 2003 XML export filter. - The accuracy value. - + - + - Initializes a component before running a report. + Gets or sets a value that determines whether to insert page breaks in the output file or not. - + - Finalizes a component before running a report. + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - Saves the state of this component. + Gets or sets the name of document creator. - + - Restores the state of this component. + Gets or sets a value that determines whether to export the databand rows only. - - - - - - - + - + - + - + - + - + - + - - + + + Initializes a new instance of the class. + - - + + + Represents the Zpl export filter. + - + - + - Initializes a new instance of the class. + Enum of densty types of Zebra printers. - + - Represents a collection of objects. + 6 dpmm(152 dpi) - + - Gets a layer with specified index. + 8 dpmm(203 dpi) - Index of a layer. - The layer with specified index. - + - Represents the spatial data of a shape. + 12 dpmm(300 dpi) - + - Copies contents from another spatial data object. + 24 dpmm(600 dpi) - The object to copy contents from. - + - Compares two spatial data objects. + Sets the density of printer. - The spatial object to compare with. - true if spatial objects are identical. - + - Gets a value by its key. + Sets the init string for sending before printing the document. - The key of value. - The value. - + - Sets a value by its key. + Sets the code page of document. Default is UTF-8 (^CI28). - The key of value. - The value. - + - Gets a list of keys. + Sets the string for sending after printing the document. - The list of keys. - + - Creates a new instance of the class. + Sets the string for sending before printing each page. - + - Represents a line shape. + Sets the scale font size. - - - - - - - - - - + - Initializes a new instance of the class. + Sets the Printer Font, default value is "A". - + - Specifies the position of a scale control inside the map. + Enable or disable export as bitmap. - + - The scale is displayed at top left corner. + Writes the string value in stream. + + - + - The scale is displayed at top center side. + Writes the string value in stream with CRLF. + + - + - The scale is displayed at top right corner. + Gets the left position in zpl units. + + - + - The scale is displayed at middle left side. + Gets the top position in zpl units. + + - + - The scale is displayed at middle right side. + Exports the TableObject. + - + - The scale is displayed at bottom left corner. + Exports the LineObject. + - + - The scale is displayed at bottom center side. + Exports the ShapeObject. + - + - The scale is displayed at bottom right corner. + Exports the TextObject. + - + - The base class for scale-type controls such as and . + Gets the position of object in ZPL code. + + + - + - Gets or sets the border. + Gets the text attributes in ZPL code. + + + + + + - + - Gets or sets the fill. + Gets the text with font width and height in ZPL code. + + + + - + - Gets or sets the title font. + Gets the horiz align in ZPL code. + + - + - Gets or sets the title text color. + Gets the rectangle in ZPL code. + + + + - + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the title text. + Initializes a new instance of the class. - + - Gets or sets the font. + Specifies the export font class. - + - Gets or sets the text color. + These fonts not support Bold or Itailc styles - + - Gets or sets the border color. + Description of SCRIPT_STATE structure - + - Gets or sets the location of the scale. + data - + - Gets or sets the visibility of a scale. + uBidiLevel - + - Copies the contents of another ScaleBase. + SetRtl - The ScaleBase instance to copy the contents from. - + - Serializes the scale. + Description of SCRIPT_ANALYSIS structure - Writer object. - Scale property name. - Another ScaleBase to compare with. - - This method is for internal use only. - - + - Gets the size of the scale, in pixels. + data - The SizeF structure containing the size of the object. - + - Draws the object. + state - Draw parameters. - Parent map object. - + - Initializes a new instance of the class. + Description of SCRIPT_CONTROL structure - + - Represents the style of a shape. + data - + - Gets or sets the border color. + Description of SCRIPT_DIGITSUBSTITUTE structure - + - Gets or sets the border style. + NationalDigitLanguage - + - Gets or sets the border width. + TraditionalDigitLanguage - + - Gets or sets the fill color. + DigitSubstitute - + - Gets or sets the font. + dwReserved - + - Gets or sets the text color. + Description of SCRIPT_ITEM structure - + - Gets or sets the point size, in pixels. + iCharPos - + - Copies contents from another similar object. + analysis - The object to copy the contents from. - + - Initializes a new instance of the class. + Description of SCRIPT_VISATTR structure - + - Represents a set of size ranges used to draw points based on analytical value. + data - + - Gets the list of ranges. + Description of GOFFSET structure - + - Gets or sets the number of ranges. + du - + - Gets or sets the start size. + dv - + - Gets or sets the end size. + Description of ABC structure - + - Gets or sets ranges as a string. + abcA - + - Copies the contents of another SizeRanges. + abcB - The SizeRanges instance to copy the contents from. - + - Gets a size associated with given analytical value. + abcC - The analytical value. - The size associated with this value, or 0 if no association found. - + - Initializes a new instance of the class. + Description of FontPanose structure - + - Represents a single size range. + Description of FontRect structure - + - Gets or sets size of the range. + Description of FontPoint structure - + - Gets or sets start value of the range. + Description of FontTextMetric structure - + - Gets or sets end value of the range. + Return text metric structure, need to use after FillOutlineTextMetrix() - + - Copies the contents of another SizeRange. + Gets or sets internal font name - The SizeRange instance to copy the contents from. - + - Initializes a new instance of the class. + Return source font used in constructor - + - Initializes a new instance of the class with a specified parameters. + Returns multiplier for stroke bold emulation - The size of the range. - The start value of the range. - The end value of the range. - + - Represents the matrix object that is used to print pivot table (also known as cross-tab). + Gets or sets internal reference - - The matrix consists of the following elements: columns, rows and data cells. Each element is - represented by the descriptor. The class is used - for columns and rows; the is used for data cells. - The property holds three collections of descriptors - Columns, - Rows and Cells. - To create the matrix in a code, you should perform the following actions: - - - create an instance of the MatrixObject and add it to the report; - - - create descriptors for columns, rows and cells and add it to the - collections inside the property; - - - call the method to create the matrix template - that will be used to create a result; - - - modify the matrix template (change captions, set the visual appearance). - - - To connect the matrix to a datasource, use the property. If - this property is not set, the result matrix will be empty. In this case you may use - the event handler to fill the matrix. - - This example demonstrates how to create a matrix in a code. - - // create an instance of MatrixObject - MatrixObject matrix = new MatrixObject(); - matrix.Name = "Matrix1"; - // add it to the report title band of the first report page - matrix.Parent = (report.Pages[0] as ReportPage).ReportTitle; - - // create two column descriptors - MatrixHeaderDescriptor column = new MatrixHeaderDescriptor("[MatrixDemo.Year]"); - matrix.Data.Columns.Add(column); - column = new MatrixHeaderDescriptor("[MatrixDemo.Month]"); - matrix.Data.Columns.Add(column); - - // create one row descriptor - MatrixHeaderDescriptor row = new MatrixHeaderDescriptor("[MatrixDemo.Name]"); - matrix.Data.Rows.Add(row); - - // create one data cell - MatrixCellDescriptor cell = new MatrixCellDescriptor("[MatrixDemo.Revenue]", MatrixAggregateFunction.Sum); - matrix.Data.Cells.Add(cell); - - // connect matrix to a datasource - matrix.DataSource = Report.GetDataSource("MatrixDemo"); - - // create the matrix template - matrix.BuildTemplate(); - - // change the style - matrix.Style = "Green"; - - // change the column and row total's text to "Grand Total" - matrix.Data.Columns[0].TemplateTotalCell.Text = "Grand Total"; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - - - + - This property is not relevant to this class. + Gets or sets internal property - save flag - + - This property is not relevant to this class. + True if bold style is not supported by font - + - This property is not relevant to this class. + True if italic style is not supported by font - + - This property is not relevant to this class. + Run fill outline text metric structure - + - This property is not relevant to this class. + Return glyph width + + - + - This property is not relevant to this class. + Return font file + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Get font data and set NeedSimulateBold and NeedSimulateItalic properties. Call this method after FillOutlineTextMetrix + - - + + + Remap str in glyph indexes. Return string with glyph indexes. + + + + - - + + + Return english name of source font + + - + - Allows to fill the matrix in code. + Return PANOSE string - - In most cases the matrix is connected to a datasource via the - property. When you run a report, the matrix is filled with datasource values automatically. - Using this event, you can put additional values to the matrix or even completely fill it - with own values (if is set to null. To do this, call the - Data.AddValue method. See the - method for more details. - - This example shows how to fill a matrix with own values. - - // suppose we have a matrix with one column, row and data cell. - // provide 3 one-dimensional arrays with one element in each to the AddValue method - Matrix1.Data.AddValue( - new object[] { 1996 }, - new object[] { "Andrew Fuller" }, - new object[] { 123.45f }); - Matrix1.Data.AddValue( - new object[] { 1997 }, - new object[] { "Andrew Fuller" }, - new object[] { 21.35f }); - Matrix1.Data.AddValue( - new object[] { 1997 }, - new object[] { "Nancy Davolio" }, - new object[] { 421.5f }); - - // this code will produce the following matrix: - // | 1996 | 1997 | - // --------------+--------+--------+ - // Andrew Fuller | 123.45| 21.35| - // --------------+--------+--------+ - // Nancy Davolio | | 421.50| - // --------------+--------+--------+ - - + - + - Allows to modify the prepared matrix elements such as cells, rows, columns. + Create object of ExportTTFFont. + - + - Allows to modify the prepared matrix elements such as cells, rows, columns. + Destructor - + - Gets or sets a value that determines whether the matrix must calculate column/row sizes automatically. + This property for internal use only. - + - Gets or sets a value that determines how to print multiple data cells. + Binary tree class - - This property can be used if matrix has two or more data cells. Default property value - is false - that means the data cells will be stacked. - - + - Gets or sets a value indicating that the side-by-side cells must be kept together on the same page. + Maximal value between child and parent - + - Gets or sets a data source. + Nodes count - - When you create the matrix in the designer by drag-drop data columns into it, - this property will be set automatically. However you need to set it if you create - the matrix in code. - - + - Gets the row filter expression. + Root node - - This property can contain any valid boolean expression. If the expression returns false, - the corresponding data row will be skipped. - - + - Gets or sets a value indicating whether to show a title row. + Nodes array. Accending sorting by node value. Available after close of tree. - + - Gets or sets a matrix style. + Accecptable inaccuracy of new values. - + - Gets or sets even style priority for matrix cells. + Recursive add value to a node. + + + - + - Gets or sets a script method name that will be used to handle the - event. + Poll right child node for correct balance. - - See the event for more details. - + - + - Gets or sets a script method name that will be used to handle the - event. + Poll left child for correct balance. - - See the event for more details. - + - + - Gets or sets a script method name that will be used to handle the - event. + Recursive indexation of node and childs. - - See the event for more details. - + - + - Gets the object that holds the collection of descriptors used - to build a matrix. + Add new value in tree. All equals are skipped. - - See the class for more details. - + - + - Gets or sets array of values that describes the currently printing column. + Close the tree and make index array. - - Use this property when report is running. It can be used to highlight matrix elements - depending on values of the currently printing column. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition. Use the Matrix.ColumnValues to - refer to the value you need to analyze. Note: these values are arrays of System.Object, - so you need to cast it to actual type before making any comparisons. Example of highlight - condition: (int)Matrix1.ColumnValues[0] == 2000. - - - - - + - Gets or sets array of values that describes the currently printing row. + Seek of value index in the tree. - - Use this property when report is running. It can be used to highlight matrix elements - depending on values of the currently printing row. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition. Use the Matrix.RowValues to - refer to the value you need to analyze. Note: these values are arrays of System.Object, - so you need to cast it to actual type before making any comparisons. Example of highlight - condition: (string)Matrix1.RowValues[0] == "Andrew Fuller". - - - - + + - + - Gets or sets the index of currently printing column. + Find of value index in sub-tree of node. - - This property may be used to print even columns with alternate color. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition that uses the Matrix.ColumnIndex, - for example: Matrix1.ColumnIndex % 2 == 1. - - - - + + + - + - Gets or sets the index of currently printing row. + Borrow values form List in the tree - - This property may be used to print even rows with alternate color. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition that uses the Matrix.RowIndex, - for example: Matrix1.RowIndex % 2 == 1. - - - - - - - - - - - - - + - + - Creates or updates the matrix template. + Borrow values form array in the tree - - Call this method after you modify the matrix descriptors using the - object's properties. - - - - - - - - - - - - - - - - - - - - - - + - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Clear tree - Event data. - + - This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Tree constructor - Event data. - + - This method fires the AfterTotals event and the script code connected to the AfterTotalsEvent. + Tree node class - Event data. - + - Adds a value in the matrix. + Link to left child - Array of column values. - Array of row values. - Array of data values. - - This is a shortcut method to call the matrix Data.AddValue. - See the method for more details. - - + - Gets the value of the data cell with the specified index. + Link to right child - Zero-based index of the data cell. - The cell's value. - - Use this method in the cell's expression if the cell has custom totals - (the total function is set to "Custom"). The example: - Matrix1.Value(0) / Matrix1.Value(1) - will return the result of dividing the first data cell's value by the second one. - - + - Initializes a new instance of the class. + Node value - + - Specifies the aggregate function used in the . + Count of nodes in left sub-tree - + - No aggregates are used. + Count of nodes in right sub-tree - + - Specifies the sum of values. + Node index - + - Specifies the minimum of values. + Node constructor + - + - Specifies the maximum of values. + For internal use only. - + - Specifies the average of values. + Gets current page width. + + - + - Specifies the count of values. + Gets current page height. + + - + - Specifies the custom function. + + + - - - Determines how matrix percents are calculated. - + + - - - Do not calculate percent value. - + + - + + + + + + + + + + + + + - Calculate percent of the column total value. + Required designer variable. - + - Calculate percent of the row total value. + Clean up any resources being used. + true if managed resources should be disposed. Otherwise, false. - + - Calculate percent of the grand total value. + Represents a linear gauge. - + + + + + + + - The descriptor that is used to describe one matrix data cell. + Gets or sets the value that specifies inverted gauge or not. - - The class is used to define one data cell of the matrix. - The key properties are and . - To set visual appearance of the data cell, use the - property. - The collection of descriptors used to represent the matrix data cells is stored - in the MatrixObject.Data.Cells property. - - + - Gets or sets an aggregate function used to calculate totals for this cell. + Gets or sets gauge label. - + - Gets or sets a value that determines how to calculate the percent value for this cell. + Initializes a new instance of the class. - + - + - - - Initializes a new instance of the class - with default settings. - + + - - - Initializes a new instance of the class - with specified expression. - - The descriptor's expression. + + - - - Initializes a new instance of the class - with specified expression and aggregate function. - - The descriptor's expression. - The aggregate function. + + - + + + + + + + + + + + + + - Initializes a new instance of the class - with specified expression, aggregate function, and a percent. + Required designer variable. - The descriptor's expression. - The aggregate function. - The percent setting. - + - Represents a collection of matrix data descriptors used in the . + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the element at the specified index. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Index of an element. - The element at the specified index. - + - Adds the specified descriptors to the end of this collection. + Represents a linear pointer. - Array of descriptors to add. - + - Adds a descriptor to the end of this collection. + Gets o sets the height of gauge pointer. - Descriptor to add. - Index of the added descriptor. - + - Inserts a descriptor into this collection at the specified index. + Gets or sets the width of a pointer. - The zero-based index at which value should be inserted. - The descriptor to insert. - + - Removes the specified descriptor from the collection. + Initializes a new instance of the - Descriptor to remove. + The parent gauge object. - + + + + + + + + + + - Returns the zero-based index of the first occurrence of a descriptor. + Represents a linear scale. - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. - + - Determines whether a descriptor is in the collection. + Initializes a new instance of the class. - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. + The parent gauge object. - + + + + + + + + + + - Copies the elements of this collection to a new array. + Represents a linear gauge. - An array containing copies of this collection elements. - + - + + + + - + + + + - The base class for matrix element descriptors such as and - . + Returns centr of the gauge - + - Gets or sets an expression which value will be used to fill the matrix. + The number of radians in one degree - - Expression may be any valid expression. Usually it's a data column: - [DataSource.Column]. - - + - Gets or sets the template column bound to this descriptor. + Gets or sets the Radial Gauge type - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template row bound to this descriptor. + Gats or sets the Radial Gauge position. Doesn't work for Full Radial Gauge. - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template cell bound to this descriptor. + Gets or sets the semicircles offset - - Using this property, you may access the matrix cell which is bound to - this descriptor. It may be useful to change the cell's appearance. - - Before using this property, you must initialize the matrix descriptors by - calling the method. - - - - - MatrixObject matrix; - // change the fill color of the first matrix cell - matrix.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); - - - + - Assigns values from another descriptor. + Initializes a new instance of the class. - Descriptor to assign values from. - + - + - + + + + + + + + + + + + + + + + + + + + + + - Represents a collection of matrix header descriptors used in the . + Required designer variable. - + - Gets or sets the element at the specified index. + Clean up any resources being used. - Index of an element. - The element at the specified index. + true if managed resources should be disposed; otherwise, false. - + - Adds the specified descriptors to the end of this collection. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Array of descriptors to add. - + - Adds a descriptor to the end of this collection. + Radial Gauge types - Descriptor to add. - Index of the added descriptor. - + - Inserts a descriptor into this collection at the specified index. + Full sized gauge - The zero-based index at which value should be inserted. - The descriptor to insert. - + - Removes the specified descriptor from the collection. + Half of the radial gauge - Descriptor to remove. - + - Returns the zero-based index of the first occurrence of a descriptor. + Quarter of the radial gauge - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. - + - Determines whether a descriptor is in the collection. + Radial Gauge position types - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. - + - Copies the elements of this collection to a new array. + None - An array containing copies of this collection elements. - + - Gets the list of indices of terminal items of this header. + Top - The list of indices. - + - Gets the list of indices of terminal items of the header with specified address. + Bottom - The address of a header. - The list of indices. - + - Removes a header item with the address specified. + Left - The address of a header. - + - Gets an index of header with the address specified. + Right - The address of a header. - The index of header. - + - Gets an index of header with the address specified. If there is no such header item, it will be created. + Represents a linear pointer. - The address of a header. - The index of header. - + + + Gets or sets the value, indicating that gradient should be rotated automatically + + + + + Initializes a new instance of the + + The parent gauge object. + The scale object. + + - + - - - Contains a set of properties and methods to hold and manipulate the matrix descriptors. - - - This class contains three collections of descriptors such as , - and . Use collections' methods to add/remove - descriptors. When you are done, call the - method to refresh the matrix. - To fill a matrix in code, use the AddValue method. - + + - + - Gets a collection of column descriptors. + Represents a linear scale. - - Note: after you change something in this collection, call the - method to refresh the matrix. - - + - Gets a collection of row descriptors. + Initializes a new instance of the class. - - Note: after you change something in this collection, call the - method to refresh the matrix. - + The parent gauge object. - + + + + + + + + + + - Gets a collection of data cell descriptors. + Represents a simple progress gauge. - - Note: after you change something in this collection, call the - method to refresh the matrix. - - + + + + + + + - Clears all descriptors. + Gets or sets gauge label. - + - Adds a value in the matrix. + Gets scale. Should be disabled for SimpleProgressGauge - Array of column values. - Array of row values. - Array of data values. - - The number of elements in an array passed to this method must be the same as - a number of descriptors in the appropriate collection. That is, if your matrix - has one column, two row and one cell descriptors (in Columns, Rows and - Cells collections respectively), you have to pass one-element array for the - columnValues param, two-element array for the rowValues and one-element - array for the cellValues. - - This example demonstrates how to fill a simple matrix that contains one column, - row and cell. - - MatrixObject matrix; - matrix.Data.AddValue( - new object[] { 1996 }, - new object[] { "Andrew Fuller" }, - new object[] { 123.45f }); - - // this will produce the following result: - // | 1996 | - // --------------+----------+ - // Andrew Fuller | 123.45| - // --------------+----------+ - - - + - Adds a value in the matrix. + Initializes a new instance of the class. - Array of column values. - Array of row values. - Array of data values. - Datasource row index. - - See the method for more details. - - + + + + - Gets a value with specified column, row and cell indicies. + - Index of a column. - Index of a row. - Index of a cell. - The value of a cell. - + + + + + + + + + + + + + + + + - Sets the cell's value. + Required designer variable. - Index of a column. - Index of a row. - The new value. - + - The descriptor that is used to describe one element of the matrix header. + Clean up any resources being used. - - The class is used to define one header element of the matrix - (either the column element or row element). The key properties are - , and . - To set visual appearance of the element, use the - property. To set visual appearance of the "total" element, use the - property. - The collection of descriptors used to represent the matrix header is stored - in the MatrixObject.Data.Columns and MatrixObject.Data.Rows properties. - + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the sort order of header values. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - This property determines how the values displayed in this element are sorted. The default sort - is ascending. - - + + + + - Gets or sets a value indicating that this element has associated "total" element. + Gets or sets the number of fractional digits - - To access the matrix cell that is bound to the "Total" element, use the - property. It may be useful to change the - "Total" text by something else. - - This example shows how to change the "Total" text of the total element. - - MatrixObject matrix; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - - - + + + + + + + + + + - Gets or sets the value indicating whether the total values must be printed before the data. + SimpleProgressGauge pointer types - + - Gets or sets a value indicating that the page break must be printed before this element. + Full sized pointer - - Page break is not printed before the very first element. - - + - Gets or sets a value that determines whether it is necessary to suppress totals - if there is only one value in a group. + Small pointer - + + + + - Gets or sets the template column bound to the "total" element of this descriptor. + Gets or sets the pointer type - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template row bound to the "total" element of this descriptor. + Gets or sets the small pointer width ratio - - This property is for internal use; usually you don't need to use it. - - + + + + + + + + + + - Gets or sets the template cell bound to the "total" element of this descriptor. + Represents a simple gauge. - - This property may be useful to change the "Total" text by something else. - - Before using this property, you must initialize the matrix descriptors by - calling the method. - - - This example shows how to change the "Total" element. - - MatrixObject matrix; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - matrix.Data.Rows[0].TemplateTotalCell.Fill = new SolidFill(Color.Green); - - - + - - + + - + - Initializes a new instance of the class with - default settings. + Gets or sets gauge label. - + - Initializes a new instance of the class with - specified expression. + Initializes a new instance of the class. - The descriptor's expression. - - - Initializes a new instance of the class with - specified expression and totals. - - The descriptor's expression. - Indicates whether to show the "total" element. + + - + + + + + + + + + + + + + + + + + + + - Initializes a new instance of the class with - specified expression, sort order and totals. + Required designer variable. - The descriptor's expression. - Sort order used to sort header values. - Indicates whether to show the "total" element. - + - Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Describes how the even style is applied to a matrix. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The even style is applied to matrix rows. + Represents a simple pointer. - + - The even style is applied to matrix columns. + Gets o sets the Left offset of gauge pointer. - + - Represents the chart object based on Microsoft Chart control. + Gets o sets the Top offset of gauge pointer. - - FastReport uses Microsoft Chart library to display charts. This library is included - in .Net Framework 4.0. For .Net 3.5 it is available as a separate download here: - http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c - This library requires .Net Framework 3.5 SP1. - To access Microsoft Chart object, use the property. It allows you - to set up chart appearance. For more information on available properties, refer to the - MS Chart documentation. - Chart object may contain one or several series. Each series is represented by two objects: - - - the Series that is handled by MS Chart. It is stored in the - Chart.Series collection; - - - the object that provides data for MS Chart series. - It is stored in the collection. - - - Do not operate series objects directly. To add or remove series, use - the and methods. These methods - handle Series and MSChartSeries in sync. - If you have a chart object on your Form and want to print it in FastReport, use - the method. - - + - This property is not relevant to this class. + Gets o sets the height of gauge pointer. - + - This property is not relevant to this class. + Gets or sets the width of a pointer. - + - This property is not relevant to this class. + Gets or sets the pointer ratio. - + - This property is not relevant to this class. + Gets or sets the pointer horizontal offset (cm). - + - This property is not relevant to this class. + Initializes a new instance of the class. + The parent gauge object. - + - + - + - - + + + Represents a simple scale. + - + - Gets the collection of objects. + Gets or sets the first subscale (top or left). - + - Gets a reference to the MS Chart object. + Gets or sets the second subscale (right or bottom). - + - Gets or set Force automatically created series. + Initializes a new instance of the class. + + The parent gauge object. + + + + + + + + + + + + + Represent the subscale of simple scale. - + - Gets or sets the data source. + Gets or sets a value that specifies enabled subscale or not. - + - Gets or sets the filter expression. + Gets or sets a value that specifies show caption or not. - - This filter will be applied to all series in chart. You may also use the series' - property to filter each series individually. - - + - Gets or sets a value indicating that all series' data point should be aligned by its X value. + Initializes a new instance of the class. - - Using this property is necessary to print stacked type series. These series must have - equal number of data points, and the order of data points must be the same for all series. - - + - Gets or set the data column or expression for automatically created series. + Copies the contents of another SimpleSubScale. - - In order to create auto-series, you need to define one series that will be used as a - template for new series, and set up the property. - The value of this property will be a name of new series. If there is no series - with such name yet, the new series will be added. - + The SimpleSubScale instance to copy the contents from. - + - Gets or set the color for auto-series. + Serializes the SimpleSubScale. + Writer object. + SimpleSubScale property name. + Another SimpleSubScale to compare with. - If no color is specified, the new series will use the palette defined in the chart. + This method is for internal use only. - + - Gets or sets sort order for auto-series. + Represents a gauge object. - + - - - Adds a new series. - - The type of series. - The new MSChartSeries object. + + - - - Deletes a series at a specified index. - - Index of series. + + - + - Assigns chart appearance, series and data from the - System.Windows.Forms.DataVisualization.Charting.Chart object. + Gets or sets the minimal value of gauge. - Chart object to assign data from. - - Use this method if you have a chart in your application and want to print it in FastReport. - To do this, put an empty MSChartObject in your report and execute the following code: - - report.Load("..."); - MSChartObject reportChart = report.FindObject("MSChart1") as MSChartObject; - reportChart.AssignChart(applicationChart); - report.Show(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the with default settings. + Gets or sets the maximal value of gauge. - + - Represents the small chart object (called sparkline) fully based on MSChartObject. + Gets or sets the currenta value of gauge. - - - - - - - + - Initializes a new instance of the with default settings. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets scale of gauge. - + - Required designer variable. + Gets or sets pointer of gauge. - + - Clean up any resources being used. + Gets or sets gauge label. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets an expression that determines the value of gauge object. - + - Required designer variable. + Gets a value that specifies is gauge vertical or not. - + - Clean up any resources being used. + Initializes a new instance of the class. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the class. + Minimum value of gauge. + Maximum value of gauge. + Current value of gauge. - + - Specifies how the series points are sorted. + Initializes a new instance of the class. + Minimum value of gauge. + Maximum value of gauge. + Current value of gauge. + Scale of gauge. + Pointer of gauge. - - - Points are not sorted. - + + - - - Points are sorted by X value. - + + - - - Points are sorted by Y value. - + + - + - Specifies the direction in which the series points are sorted. + Draws the gauge. + Draw event arguments. - + + + + - Points are sorted in ascending order. + Clone Gauge Object + clone of this object - + - Points are sorted in descending order. + Represents a label of a gauge. - + - Specifies how the series points are grouped. + Gets or sets the label text - + - Points are not grouped. + Gets or sets the label font - + - Points are grouped by X value. + Gets or sets the label color - + - Points are grouped by number specified in the . + Gets or sets the label parent - + - Points are grouped by Years. + Initializes a new instance of the class. - + - Points are grouped by Months. + Initializes a new instance of the class. + Label text + Label font + Label color + Label parent - + - Points are grouped by Weeks. + Copies the contents of another GaugeLabel. + The GaugeLabel instance to copy the contents from. - + - Points are grouped by Days. + Draws the gauge label. + Draw event arguments. - + - Points are grouped by Hours. + Serializes the gauge label. + Writer object. + Gauge label property name. + Another GaugeLabel to compare with. + + This method is for internal use only. + - + - Points are grouped by Minutes. + Represents a pointer of gauge. - + - Points are grouped by Seconds. + Gets or sets the parent gauge object. - + - Points are grouped by Milliseconds. + Gets or sets the color of a pointer. - + - Specifies which pie value to explode. + Gets or sets the border width of a pointer. - + - Do not explode pie values. + Gets or sets the border color of a pointer. - + - Explode the biggest value. + Initializes a new instance of the class. + The parent gauge object. - + - Explode the lowest value. + Copies the contents of another GaugePointer. + The GaugePointer instance to copy the contents from. - + - Explode the value specified in the property. + Draws the gauge pointer. + Draw event arguments. - + - Specifies which data points to collect into one point. + Serializes the gauge pointer. + Writer object. + Gauge pointer property name. + Another GaugePointer to compare with. + + This method is for internal use only. + - + - Do not collect points. + Represents a scale of a gauge. - + - Show top N points (N value is specified in the - property), collect other points into one. + Gets or sets major ticks of scale. - + - Show bottom N points (N value is specified in the - property), collect other points into one. + Gets or sets minor ticks of scale. - + - Collect points which have Y value less than specified - in the property. + Gets or sets the parent gauge object. - + - Collect points which have Y value less than percent specified - in the property. + Gets or sets the font of scale. - + - Collect points which have Y value greater than specified - in the property. + Gets or sets the scale font color - + - Collect points which have Y value greater than percent specified - in the property. + Initializes a new instance of the class. + The parent gauge object. - + - Represents a MS Chart series wrapper. + Copies the contents of another GaugeScale. - - This class provides a data for MS Chart series. The series itself is stored inside the - MS Chart and is accessible via the property. - You don't need to create an instance of this class directly. Instead, use the - method. - + The GaugeScale instance to copy the contents from. - + - Gets os sets the data filter expression. + Draws the scale of gauge. - - The filter is applied for this series only. You can also use the - property to set a filter that will be applied to all - series in a chart. - + Draw event arguments. - + - Gets or set the data column or expression for automatically created series. + Serializes the gauge scale. + Writer object. + Scale property name. + Another GaugeScale to compare with. - In order to create auto-series, you need to define one series that will be used as a - template for new series, and set up the property. - The value of this property will be a name of new series. If there is no series - with such name yet, the new series will be added. + This method is for internal use only. - + - Gets or sets the sort method used to sort data points. + Represents a scale ticks. - - You have to specify the property as well. Data points in this series - will be sorted according selected sort criteria and order. - - + - Gets or set Force automatically created series. + Gets or sets the length of ticks. - + - Gets or sets the sort order used to sort data points. + Gets or sets the width of ticks. - - You have to specify the property as well. Data points in this series - will be sorted according selected sort criteria and order. - - + - Gets or sets the group method used to group data points. + Gets or sets the color of ticks. - - This property is mainly used when series is filled with data with several identical X values. - In this case, you need to set the property to XValue. All identical data points will be - grouped into one point, their Y values will be summarized. You can choose the summary function - using the property. - - + - Gets or sets the group interval. + Gets or sets the count of ticks - - This value is used if property is set to Number. - - + - Gets or sets the function used to group data points. + Initializes a new instance of the class. - + - Gets or sets the collect method used to collect several data points into one. + Initializes a new instance of the class. - - This instrument for data processing allows to collect several series points into one point. - The collected point will be displaed using the text specified in the - property and color specified in the property. - For example, to display top 5 values, set this property to TopN and specify - N value (5) in the property. - + Ticks length. + Ticks width. + Ticks color. - + - Gets or sets the collect value used to collect several data points into one. + Initializes a new instance of the class. - - This property is used if the property is set to any value other than None. - + Ticks length. + Ticks width. + Ticks color. + Ticks count. - + - Gets or sets the text for the collected value. + Copies the contents of another ScaleTicks. + The ScaleTicks instance to copy the contents from. - + - Gets or sets the color for the collected value. + Serializes the scale ticks. + Writer object. + Scale ticks property name. + Another ScaleTicks to compare with. - If this property is set to Transparent (by default), the default palette color - will be used to display a collected point. + This method is for internal use only. - + - Gets or sets the method used to explode values in pie-type series. + Provides a user interface for editing an expression. - + - Gets or sets the value that must be exploded. + - - This property is used if property is set - to SpecificValue. - - + - Gets or sets the data column or expression that returns the X value of data point. + - - - Gets or sets the data column or expression that returns the first Y value of data point. - + + - - - Gets or sets the data column or expression returns the second Y value of data point. - + + - + - Gets or sets the data column or expression returns the third Y value of data point. + Provides a user interface for editing an expression. - + - Gets or sets the data column or expression returns the fourth Y value of data point. + - + - Gets or sets the data column or expression that returns the color of data point. + - - - Gets or sets the data column or expression returns the label value of data point. - + + - + + + + - Gets a reference to MS Chart Series object. + Provides a user interface for editing an expression. - - Use this property to set many options available for the Series object. These options - include: visual appearance, labels, marks, value types. Refer to the Microsoft Chart control - documentation to learn more. - - + - Gets a number of Y value per data point. + - - Number of Y values depends on series type. Most of series have only one Y value. Financial - series such as Stock and Candlestick, use four Y values. - - + - This property is not relevant to this class. + - + - + - - - - + - Clears all data points in this series. + Provides a user interface for choosing a data source. - + + + + + + + - Adds a data point with specified X and Y values. + Provides a user interface for editing a text outline. - X value. - Array of Y values. - - Note: number of values in the yValues parameter must be the same as value returned - by the property. - - + - + + + + - Creates a new instance of the class with default settings. + Provides a user interface for choosing a relation. - + - Represents a collection of objects. + Provides a user interface for selecting a component inside the report. - + + + + + + + + + + - Gets the element at the specified index. + Provides a user interface for selecting a component inside the same band. - Index of an element. - The element at the specified index. - + + + + + + + + + + - Resets series data. + Provides a user interface for editing a flags enumeration. - + + + + + + + - Processes the current data row. + Provides a user interface for choosing a data type. - + + + + + + + - Finishes the series data. + Provides a user interface for choosing a data column. - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + + + + Provides a user interface for choosing a data source. - + - Base class for report pages and dialog forms. + Provides a user interface for editing an expression. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for editing an angle in degrees. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for editing a component's border. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for selecting a component inside the same page. - + + + + + + + + + + - Gets the snap size for this page. + Provides a user interface for choosing a color. - + + + + + + + + + + + + + - Gets a page designer for this page type. + Provides a user interface for editing a fill. - The page designer. - + + + + + + + - This method is called by the designer when you create a new page. + Provides a user interface for editing a string collection. - - You may create the default page layout (add default bands, set default page size, etc). - - + + + + + + + - Causes the page to refresh in the preview window. + Represents a map object. - - Call this method when you handle object's MouseMove, MouseDown, MouseUp, MouseEnter, MouseLeave events - and want to refresh the preview window. - - If you have changed some objects on a page, the Refresh method will not save the changes. - This means when you print or export the page, you will see original (unmodified) page content. - If you want to save the changes, you have to use the method instead. - - - + - Modifies the page content and refresh it in the preview window. + This property is not relevant to this class. - - Call this method when you handle object's Click, MouseDown or MouseUp events - and want to modify an object and refresh the preview window. - - + - Initializes a new instance of the class with default settings. + This property is not relevant to this class. - + - Represents the pages of a prepared report. + This property is not relevant to this class. - - Prepared page is a page that you can see in the preview window. Prepared pages can be - accessed via property. - The common scenarios of using this object are: - - - Working with prepared pages after the report is finished: load - () or save () pages - from/to a .fpx file, get a page with specified index to work with its objects - (); modify specified page (). - - - - Using the , , - methods while report is generating to produce an output. - - - - - - + - Gets the number of pages in the prepared report. + This property is not relevant to this class. - + - Specifies an action that will be performed on method call. + This property is not relevant to this class. - + - Gets or sets a value indicating whether the prepared pages can be uploaded to the file cache. + This property is not relevant to this class. - - This property is used while report is generating. - Default value for this property is true. That means the prepared pages may be uploaded to - the file cache if needed. To prevent this (for example, if you need to access some objects - on previously generated pages), set the property value to false. - - + - - - Adds a source page to the prepared pages dictionary. - - The template page to add. - - Call this method before using AddPage and AddBand methods. This method adds - a page to the dictionary that will be used to decrease size of the prepared report. - + + - - - Adds a new page. - - The original (template) page to add. - - Call the method before adding a page. This method creates - a new output page with settings based on page parameter. - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Prints a band with all its child objects. + Gets or sets the path to folder containing shapefiles. - The band to print. - true if band was printed; false if it can't be printed - on current page due to its PrintOn property value. - Call the method before adding a band. + This property is used by the map editor when selecting a shapefile. - + - Gets a page with specified index. + Gets or sets the map zoom. - Zero-based index of page. - The page with specified index. - + - Gets the size of specified page, in pixels. + Gets or sets minimum zoom value. - Index of page. - the size of specified page, in pixels. - + - Replaces the prepared page with specified one. + Gets or sets maximum zoom value. - The index of prepared page to replace. - The new page to replace with. - + - Modify the prepared page with new sizes. + Gets or sets the X offset of the map. - The name of prepared page to reSize. - + - Removes a page with the specified index. + Gets or sets the Y offset of the map. - The zero-based index of page to remove. - + - Saves prepared pages to a stream. + Gets or sets the value indicating that mercator projection must be used to view the map. - The stream to save to. - + - Saves prepared pages to a .fpx file. + Gets the color scale settings. - The name of the file to save to. - + - Loads prepared pages from a stream. + Gets or sets a collection of map layers. - The stream to load from. - + - Loads prepared pages from a .fpx file. + Gets or sets padding within the map. - The name of the file to load from. - - - Clears the prepared report's pages. - + + - - - Creates the pages of a prepared report - - + + - - - Initializes a new instance of the OutlineControl class with default settings. - + + - - - Represents a Windows Forms control used to preview a report. - - - To use this control, place it on a form and link it to a report using the report's - property. To show a report, call - the Report.Show method: - - report1.Preview = previewControl1; - report1.Show(); - - Use this control's methods such as , etc. to - handle the preview. Call method to clear the preview. - You can specify whether the standard toolbar is visible in the - property. The property allows you to hide/show the statusbar. - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Occurs when current page number is changed. + Loads a map from file. + Name of file that contains a map. - + - Gets a reference to the report. + Creates unique names for all contained objects such as layers, shapes, etc. - + - Obsolete. Gets or sets the color of page border. + Initializes a new instance of the class. - + - Gets or sets the color of active page border. + Represents a map point. - + - Gets or sets the first page offset from the top left corner of the control. + Gets or sets the X-coordinate of the point. - + - Gets or sets a value indicating whether the toolbar is visible. + Gets or sets the Y-coordinate of the point. - + + + + + + + + + + + + + + + + - Gets or sets a value indicating whether the statusbar is visible. + Initializes a new instance of the class. - + - Gets or sets a value indicating whether the outline control is visible. + Represents a polygon shape. - + - Specifies the set of buttons available in the toolbar. + Holds the largest bounding rectangle of this shape. - + - Specifies the set of exports that will be available in the preview's "save" menu. + Gets or sets a bounding box of this shape. - + - Specifies the set of exports in clouds that will be available in the preview's "save" menu. + Gets or sets a list of polygons in this shape. - + - Gets or sets a value indicating whether the fast scrolling method should be used. + Gets or sets the shape data in binary format. - - If you enable this property, the gradient background will be disabled. - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the visual style. + Initializes a new instance of the class. - + - Gets or sets a value indicating that the BackColor property must be used to draw the background area. + Required designer variable. - - By default, the background area is drawn using the color defined in the current UIStyle. - - + - Gets the preview window's toolbar. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets the preview window's statusbar. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - Gets or sets the initial directory that is displayed by a save file dialog. + + + Required designer variable. - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - - Adds a new report tab to the preview control. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - The Report object that contains the prepared report. - The title for the new tab. - - Prepare the report using its Prepare method before you pass it to the report parameter. - - - - Adds a new report tab to the preview control. + + + Required designer variable. - The Report object that contains the prepared report. - The title for the new tab. - If true, makes the new tab active. - - Prepare the report using its Prepare method before you pass it to the report parameter. - - - - Switches to the tab with specified text. + + + Clean up any resources being used. - Text of the tab. - true if the tab with specified text exists, or false if there is no such tab. + true if managed resources should be disposed; otherwise, false. - - - Deletes the report tab with specified text. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - The text of the tab. - + - Checks if the tab with specified text exists. + Required designer variable. - The text of the tab. - true if the tab exists. - + - Displays the text in the status bar. + Clean up any resources being used. - Text to display. + true if managed resources should be disposed. Otherwise, false. - + - Sets the focus to the preview control. + Represents four coordinates that define a bounding box. - + - Prints the current report. + Gets or sets the minimum X-coordinate of a bounding box. - true if report was printed; false if user cancels the "Print" dialog. - + - Saves the current report to a .fpx file using the "Save FIle" dialog. + Gets or sets the minimum Y-coordinate of a bounding box. - + - Saves the current report to a specified .fpx file. + Gets or sets the maximum X-coordinate of a bounding box. - + - Saves the current report to a stream. + Gets or sets the maximum Y-coordinate of a bounding box. - + - Loads the report from a .fpx file using the "Open File" dialog. + Copies the contents of another instance. + Source box to copy the contents from. - + - Loads the report from a specified .fpx file. + Defines the palette used to display map shapes. - + - Load the report from a stream. + No palette used. - The stream to load from. - + - Sends an email. + Light palette. - + - Finds the text in the current report using the "Find Text" dialog. + Pastel palette. - + - Finds the specified text in the current report. + Grayscale palette. - Text to find. - A value indicating whether the search is case-sensitive. - A value indicating whether the search matches whole words only. - true if text found. - + - Finds the next occurence of text specified in the Find method. + Earth tones palette. - true if text found. - + - Navigates to the first page. + Sea green palette. - + - Navigates to the previuos page. + Bright pastel palette. - + - Navigates to the next page. + Represents a set of color ranges used to highlight polygons based on analytical value. - + - Navigates to the last page. + Gets the list of ranges. - + - Gets or sets the current page number. + Gets or sets the number of ranges. - - This value is 1-based. - - + - Gets the pages count in the current report. + Gets or sets the start color. - + - Gets or sets the zoom factor. + Gets or sets the middle color. - - 1 corresponds to 100% zoom. - - + - Zooms in. + Gets or sets the end color. - + - Zooms out. + Gets or sets a value indicating that the map's color scale must display data from this color ranges. - + - Zooms to fit the page width. + Gets or sets ranges as a string. - + - Zooms to fit the whole page. + Copies the contents of another ColorRanges. + The ColorRanges instance to copy the contents from. - + - Edits the current page in the designer. + Gets a color associated with given analytical value. + The analytical value. + The color associated with this value, or Color.Transparent if no association found. - + - Copies the current page in preview. + Initializes a new instance of the class. - + - Removes the current page in preview. + Represents a single color range. - + - Edits the current report in the designer. + Gets or sets color of the range. - + - Edits the watermark. + Gets or sets start value of the range. - + - Edits the page settings. + Gets or sets end value of the range. - + - Navigates to the specified position inside a specified page. + Copies the contents of another ColorRange. - The page number (1-based). - The position inside a page, in pixels. + The ColorRange instance to copy the contents from. - + - Clears the preview. + Initializes a new instance of the class. - + - Refresh the report. + Initializes a new instance of the class with a specified parameters. + The color of the range. + The start value of the range. + The end value of the range. - + - Initializes a new instance of the class. + Represents the color scale. - - - Required designer variable. + + + Gets or sets that must be displayed in this color scale. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Gets or sets the format string used to format data values. - + - Specifies an action that will be performed on PreparedPages.AddPage method call. + Gets or sets a value indicating whether the color scale must be hidden if there is no data in it. - + - Do not add the new prepared page if possible, increment the CurPage instead. + Gets or sets the text displayed in the color scale if there is no data in it. - + + + + + + + + + + + + + - Add the new prepared page. + Initializes a new instance of the class. - + - Gets or sets the initial directory that is displayed by a save file dialog. + Represents a distance scale. - + - Represents a report object. + Initializes a new instance of the class. - - The instance of this class contains a report. Here are some common - actions that can be performed with this object: - - - To load a report, use the - method or call static method. - - - To save a report, call the method. - - - To register application dataset for use it in a report, call one of the - RegisterData methods. - - - To pass some parameter to a report, use the - method. - - - To design a report, call the method. - - - To run a report and preview it, call the method. - Another way is to call the method, then call the - method. - - - To run a report and print it, call the method. - Another way is to call the method, then call the - method. - - - To load/save prepared report, use one of the LoadPrepared and - SavePrepared methods. - - - To set up some global properties, use the static class - or component that you can use in the Visual Studio IDE. - - - - The report consists of one or several report pages (pages of the - type) and/or dialog forms (pages of the type). - They are stored in the collection. In turn, each page may contain report - objects. See the example below how to create a simple report in code. - - This example shows how to create a report instance, load it from a file, - register the application data, run and preview. - - Report report = new Report(); - report.Load("reportfile.frx"); - report.RegisterData(application_dataset); - report.Show(); - - This example shows how to create simple report in code. - - Report report = new Report(); - // create the report page - ReportPage page = new ReportPage(); - page.Name = "ReportPage1"; - // set paper width and height. Note: these properties are measured in millimeters. - page.PaperWidth = 210; - page.PaperHeight = 297; - // add a page to the report - report.Pages.Add(page); - // create report title - page.ReportTitle = new ReportTitleBand(); - page.ReportTitle.Name = "ReportTitle1"; - page.ReportTitle.Height = Units.Millimeters * 10; - // create Text object and put it to the title - TextObject text = new TextObject(); - text.Name = "Text1"; - text.Bounds = new RectangleF(0, 0, Units.Millimeters * 100, Units.Millimeters * 5); - page.ReportTitle.Objects.Add(text); - // create data band - DataBand data = new DataBand(); - data.Name = "Data1"; - data.Height = Units.Millimeters * 10; - // add data band to a page - page.Bands.Add(data); - - - + - Gets a reference to the report designer. + Represents loading map data from dbf-file. - - This property can be used when report is designing. In other cases it returns null. - - + - Runs the report designer. + Gets or sets the filter string used in an open file dialog. - true if report was modified, otherwise false. - + - Runs the report designer. + Initializes a new instance of the class. - A value indicates whether the designer should run modally. - true if report was modified, otherwise false. - + - Runs the report designer. + Returns a file filter for an open file dialog. - The main MDI form which will be a parent for the designer. - true if report was modified, otherwise false. + String that contains a file filter. - + - Gets the email settings such as recipients, subject, message body. + Imports the map data from a specified file into a specfied layer. + The MapObject for an importing map. + The name of a file that contains map. - + - Gets or sets the report preview control. + Represents the description of dBase field. - - Use this property to attach a custom preview to your report. To do this, place the PreviewControl - control to your form and set the report's Preview property to this control. - - + - Gets the print settings such as printer name, copies, pages to print etc. + Gets the field name. - + - Prepares the report and prints it. + Gets the field type. - + - Prints the report with the "Print" dialog. - Report should be prepared using the method. + Gets the field length. - + - Prints the report without the "Print" dialog. - Report should be prepared using the method. + Initializes a new instance of the class. - Printer-specific settings. - - Use the following code if you want to show the "Print" dialog, then print: - - if (report.Prepare()) - { - PrinterSettings printerSettings = null; - if (report.ShowPrintDialog(out printerSettings)) - { - report.PrintPrepared(printerSettings); - } - } - - - + - Prepares the report and shows it in the preview window. + Initializes a new instance of the class with a specified parameters. + The field name. + The field type. + The field length. - + - Prepares the report and shows it in the preview window. + Initializes a new instance of the class with a specified parameters. - A value that specifies whether the preview window should be modal. + The field name. + The field type. + The field length. - + - Prepares the report and shows it in the preview window. + The type of dBase field. - A value that specifies whether the preview window should be modal. - The owner of the preview window. - + - Prepares the report and shows it in the preview window. + Character field. - The main MDI form which will be a parent for the preview window. - + - Previews the report. The report should be prepared using the method. + Date field. - + - Previews the prepared report. + Numeric field. - A value that specifies whether the preview window should be modal. - + - Previews the prepared report. + Logical field. - A value that specifies whether the preview window should be modal. - The owner of the preview window. - + - Previews the prepared report. + Memo field. - The main MDI form which will be a parent for the preview window. - + - Shows the "Print" dialog. + Represents a collection of objects. - Printer-specific settings. - true if the dialog was closed by "Print" button. - - Use the following code if you want to show the "Print" dialog, then print: - - if (report.Prepare()) - { - PrinterSettings printerSettings = null; - if (report.ShowPrintDialog(out printerSettings)) - { - report.PrintPrepared(printerSettings); - } - } - - - + - Occurs when calc execution is started. + Gets a layer with specified index. + Index of a layer. + The layer with specified index. - + - Occurs when report is inherited and trying to load a base report. + Specifies the type of objects that layer contains. - - Typical use of this event is to load the base report from a database instead of a file. - - + - Occurs when report execution is started. + The layer contains points. - + - Occurs when report execution is finished. + The layer contains lines. - + - Gets the pages contained in this report. + The layer contains polygons. - - This property contains pages of all types (report and dialog). Use the is/as operators - if you want to work with pages of ReportPage type. - - The following code demonstrates how to access the first report page: - - ReportPage page1 = report1.Pages[0] as ReportPage; - - - + - Gets the report's data. + Specifies the spatial source for the layer. - - The dictionary contains all data items such as connections, data sources, parameters, - system variables. - - + - Gets the collection of report parameters. + Source is ESRI shapefile. - - Parameters are displayed in the "Data" window under the "Parameters" node. - Typical use of parameters is to pass some static data from the application to the report. - You can print such data, use it in the data row filter, script etc. - Another way to use parameters is to define some reusable piece of code, for example, - to define an expression that will return the concatenation of first and second employee name. - In this case, you set the parameter's Expression property to something like this: - [Employees.FirstName] + " " + [Employees.LastName]. Now this parameter may be used in the report - to print full employee name. Each time you access such parameter, it will calculate the expression - and return its value. - You can create nested parameters. To do this, add the new Parameter to the - Parameters collection of the root parameter. To access the nested parameter, you may use the - method. - To get or set the parameter's value, use the and - methods. To set the parameter's expression, use the - method that returns a Parameter object and set its - Expression property. - - + - Gets or sets the report information such as report name, author, description etc. + Source is a latitude/longitude/name provided by an application. - + - Gets or sets the base report file name. + Determines how map labels are displayed. - - This property contains the name of a report file this report is inherited from. - Note: setting this property to non-empty value will clear the report and - load the base file into it. - - + - Gets or sets the name of a file the report was loaded from. + No label displayed. - - This property is used to support the FastReport.Net infrastructure; - typically you don't need to use it. - - + - Gets or sets the report script. + The shape name is displayed. - - The script contains the ReportScript class that contains all report objects' - event handlers and own items such as private fields, properties, methods etc. The script - contains only items written by you. Unlike other report generators, the script does not - contain report objects declarations, initialization code. It is added automatically when - you run the report. - By default this property contains an empty script text. You may see it in the designer - when you switch to the Code window. - If you set this property programmatically, you have to declare the FastReport - namespace and the ReportScript class in it. Do not declare report items (such as bands, - objects, etc) in the ReportScript class: the report engine does this automatically when - you run the report. - Security note: since the report script is compiled into .NET assembly, it allows - you to do ANYTHING. For example, you may create a script that will read/write files from/to a disk. - To restrict such operations, use the property. - - + - Gets or sets the script language of this report. + The value is displayed. - - Note: changing this property will reset the report script to default empty script. - - + - Gets or sets a value indicating whether the null DB value must be converted to zero, false or - empty string depending on the data column type. + Both name and value displayed. - - This property is true by default. If you set it to false, you should check - the DB value before you do something with it (for example, typecast it to any type, use it - in a expression etc.) - - + - Gets or sets a value that specifies whether the report engine should perform the second pass. + Represents a map layer. - - Typically the second pass is necessary to print the number of total pages. It also - may be used to perform some calculations on the first pass and print its results on the - second pass. - Use the Engine.FirstPass, Engine.FinalPass properties to determine which - pass the engine is performing now. - - + - Gets or sets a value that specifies whether to compress the report file. + Gets or sets a type of layer. - - The report file is compressed using the Gzip algorithm. So you can open the - compressed report in any zip-compatible archiver. - - + - Gets or sets a value that specifies whether to use the file cache rather than memory - to store the prepared report pages. + Gets or sets the spatial source for the layer. - + - Gets or sets a value that specifies the quality of text rendering. + Gets or sets the name of ESRI shapefile. - - Note: the default property value is TextQuality.Default. That means the report - may look different depending on OS settings. This property does not affect the printout. - - + - Gets or sets a value that specifies if the graphic objects such as bitmaps - and shapes should be displayed smoothly. + Gets or sets the data source. - + - Gets or sets the report password. + Gets or sets the datasource filter expression. + + + + + Gets or sets spatial column name. - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in this property before loading - the report. In this case the report will load silently. - Password-protected report file is crypted using Rijndael algorithm. - Do not forget your password! It will be hard or even impossible to open - the protected file in this case. + This property is used if the is set to ShpFile. - + - Gets or sets a value indicating whether it is necessary to automatically fill - DataSet registered with RegisterData call. + Gets or sets an expression that returns spatial value. - If this property is true (by default), FastReport will automatically fill - the DataSet with data when you trying to run a report. Set it to false if - you want to fill the DataSet by yourself. + This property is used if the is set to ShpFile. - + - Gets or sets the maximum number of generated pages in a prepared report. + Gets or sets an expression that returns latitude value. - Use this property to limit the number of pages in a prepared report. + This property is used if the is set to ApplicationData. - + - Gets or sets the collection of styles used in this report. + Gets or sets an expression that returns longitude value. + + This property is used if the is set to ApplicationData. + - + - Gets or sets an array of assembly names that will be used to compile the report script. + Gets or sets an expression that returns label value. - By default this property contains the following assemblies: "System.dll", "System.Drawing.dll", - "System.Windows.Forms.dll", "System.Data.dll", "System.Xml.dll". If your script uses some types - from another assemblies, you have to add them to this property. + This property is used if the is set to ApplicationData. - + - Gets or sets a script event name that will be fired when the report starts. + Gets or sets an expression that returns analytical value. - + - Gets or sets a script event name that will be fired when the report is finished. + Gets or sets label's column name. - + - Gets a value indicating that report execution was aborted. + Gets or sets a value that determines how map labels are displayed. - + - Gets or sets a value that determines whether to store the report in the application resources. - Use this property in the MS Visual Studio IDE only. + Gets or sets the format of label's value. - - By default this property is true. When set to false, you should store your report - in a file. - - + - Gets or sets the resource string that contains the report. + Gets or sets the map accuracy. Lower value is better, but slower. - - This property is used by the MS Visual Studio to store the report. Do not use it directly. - - + - Gets a value indicating that this report contains dialog forms. + Gets or sets the value that determines the labels visiblity at a certain zoom value. - + - Gets or sets a set of permissions that will be restricted for the script code. + Gets or sets the aggregate function. - - Since the report script is compiled into .NET assembly, it allows you to do ANYTHING. - For example, you may create a script that will read/write files from/to a disk. This property - is used to restrict such operations. - This example shows how to restrict the file IO operations in a script: - - using System.Security; - using System.Security.Permissions; - ... - PermissionSet ps = new PermissionSet(PermissionState.None); - ps.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); - report1.ScriptRestrictions = ps; - report1.Prepare(); - - - - + - Gets a reference to the graphics cache for this report. + Gets or sets a value indicating that the layer is visible. - - This property is used to support the FastReport.Net infrastructure. Do not use it directly. - - + - Gets a pages of the prepared report. + Gets or sets a bounding box of layer. - + - Gets a reference to the report engine. + Gets a collection of map objects. - - This property can be used when report is running. In other cases it returns null. - - + - Gets or sets the initial page number for PageN/PageNofM system variables. + Gets the default style of shapes in this layer. - + - This property is not relevant to this class. + Gets or sets the palette used to highlight shapes. - + - This property is not relevant to this class. + Gets the color ranges used to highlight shapes based on analytical value. - + - Gets the report operation that is currently performed. + Gets the size ranges used to draw points based on analytical value. - + - Gets or sets the flag for refresh. + Gets or sets the expression that returns the name of polygon to zoom. - + + + Gets or sets the bounding box as a string. + + + + + Gets a reference to the Map object. + + + - + + + Draws the layer. + + The drawing parameters. + + + + Finds the shape under cursor. + + The cursor coordinates. + The ShapeBase object if found. + + - + + + Creates unique names for all contained objects such as points, lines, polygons, etc. + + + + + Reduces the number of points in the shapes in this layer. + + The accuracy value. + + + + Loads the layer contents from ESRI shapefile (*.shp/*.dbf). + + The file name. + + - + - + - + - + - + - + - + - + - + - Initializes the report's fields. + Adds application provided data. + Latitude value. + Longitude value. + The name displayed as a label. + Analytical value. - This method is for internal use only. + Use this method if the is set to ApplicationData. - + - Generates the file (.cs or .vb) that contains the report source code. + Adds a spatial/analytical value pair to the list. - Name of the file. + The spatial value. + The analytical value. - Use this method to generate the report source code. This code can be attached to your project. - In this case, you will need to call the following code to run a report: - - SimpleListReport report = new SimpleListReport(); - report.RegisterData(your_dataset); - report.Show(); - + Use this method if the is set to ShpFile. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Calculates an expression and returns the result. + Initializes a new instance of the class. - The expression to calculate. - If report is running, returns the result of calculation. - Otherwise returns null. - - The expression may be any valid expression such as "1 + 2". The expression - is calculated in the report script's ReportScript class instance context, - so you may refer to any objects available in this context: private fields, - methods, report objects. - - + - Calculates an expression and returns the result. + Represents a pair of double coordinates that defines a constituent point. - The expression to calculate. - The value of currently printing object. - If report is running, returns the result of calculation. - Otherwise returns null. - - Do not call this method directly. Use the Calc(string expression) method instead. - - + - Returns an expression value. + Gets or sets the X-coordinate of a point. - The expression. - The value of currently printing object. - Returns the result of calculation. - - This method is for internal use only, do not call it directly. - - + - Invokes the script event handler with given name. + Gets or sets the Y-coordinate of a point. - The name of the script method. - The method parameters. - + - Gets the data column's value. Automatically converts null value to 0, false or "" - depending on the column type. + Creates a new instance of the class with specified coordinates. - The name of the data column including the datasource name. - If report is running, returns the column value. Otherwise returns null. - - The return value of this method does not depend on the property. - - - - string employeeName = (string)report.GetColumnValue("Employees.FirstName"); - - + X coordinate. + Y coordinate. - + - Gets the data column's value. This method does not convert null values. + Specifies the position of a scale control inside the map. - The name of the data column including the datasource name. - If report is running, returns the column value. - Otherwise returns null. - + - Gets the report parameter with given name. + The scale is displayed at top left corner. - The name of the parameter. - The object if found, otherwise null. - - To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - - + - Gets a value of the parameter with given name. + The scale is displayed at top center side. - The name of the parameter. - The parameter's value if found, otherwise null. - - To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - - + - Sets the parameter's value. + The scale is displayed at top right corner. - The name of the parameter. - Value to set. - - Use this method to pass a value to the parameter that you've created in the "Data" window. - Such parameter may be used everythere in a report; for example, you can print its value - or use it in expressions. - You should call this method after the report was loaded and before you run it. - To access a nested parameter, use the "." separator: "MainParameter.NestedParameter" - - This method will create the parameter if it does not exist. - - - This example shows how to pass a value to the parameter with "MyParam" name: - - // load the report - report1.Load("report.frx"); - // setup the parameter - report1.SetParameterValue("MyParam", 10); - // show the report - report1.Show(); - - - + - Gets a value of the system variable with specified name. + The scale is displayed at middle left side. - Name of a variable. - The variable's value if found, otherwise null. - + - Gets a value of the total with specified name. + The scale is displayed at middle right side. - Name of total. - The total's value if found, otherwise 0. - This method converts null values to 0 if the property is set to true. - Use the method if you don't want the null conversion. - - + - Gets a value of the total with specified name. + The scale is displayed at bottom left corner. - Name of total. - The total's value if found, otherwise null. - + - Gets the datasource with specified name. + The scale is displayed at bottom center side. - Alias name of a datasource. - The datasource object if found, otherwise null. - - - - + - Aborts the report execution. + The scale is displayed at bottom right corner. - - + + + The base class for scale-type controls such as and . + - - + + + Gets or sets the border. + - + - Updates the report component's styles. + Gets or sets the fill. - - Call this method if you change the collection. - - + - Sets prepared pages. + Gets or sets the title font. - - + - This method fires the StartReport event and the script code connected - to the StartReportEvent. + Gets or sets the title text color. - + - This method fires the FinishReport event and the script code connected - to the FinishReportEvent. + Gets or sets the title text. - - + + + Gets or sets the font. + - - + + + Gets or sets the text color. + - + - Saves the report to a stream. + Gets or sets the border color. - The stream to save to. - + - Saves the report to a file. + Gets or sets the location of the scale. - The name of the file to save to. - + - Loads report from a stream. + Gets or sets the visibility of a scale. - The stream to load from. - - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in the - property before loading the report. In this case the report will load silently. - - + - Loads the report from a file. + Copies the contents of another ScaleBase. - The name of the file to load from. - - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in the - property before loading the report. In this case the report will load silently. - + The ScaleBase instance to copy the contents from. - + - Loads the report from a string. + Serializes the scale. - The string that contains a stream in UTF8 or Base64 encoding. + Writer object. + Scale property name. + Another ScaleBase to compare with. + + This method is for internal use only. + - + - Saves the report to a string. + Gets the size of the scale, in pixels. - The string that contains a stream. + The SizeF structure containing the size of the object. - + - Saves the report to a string using the Base64 encoding. + Draws the object. - The string that contains a stream. + Draw parameters. + Parent map object. - + - Creates the report instance and loads the report from a stream. + Initializes a new instance of the class. - The stream to load from. - The new report instance. - + - Creates the report instance and loads the report from a file. + The base class for shape objects such as , and . - The name of the file to load from. - The new report instance. - + - Creates the report instance and loads the report from a string. + Gets or sets the shape visibility. - The string that contains a stream in UTF8 encoding. - The new report instance. - + - Registers the application dataset with all its tables and relations to use it in the report. + Gets or sets a value indicating that custom shape style is used. - The application data. - If you register more than one dataset, use the method. + If this property is false, the layer's DefaultShapeStyle is used. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1); - - - + - Registers the application dataset with all its tables and relations to use it in the report and enables all its tables. + Gets a custom shape style. - The application data. - The boolean value indicating whether all tables should be enabled. - If you register more than one dataset, use the method. + To use this property, first set the property to true. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, true); - - - + - Registers the application dataset with specified name. + Gets or sets the center point X offset. - The application data. - The name of the data. - Use this method if you register more than one dataset. You may specify any value - for the name parameter: it is not displayed anywhere in the designer and used only - to load/save a report. The name must be persistent and unique for each registered dataset. + Use this property to adjust the label's position. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, "NorthWind"); - - - + - Registers the application dataset with specified name and enables all its tables. + Gets or sets the center point Y offset. - The application data. - The name of the data. - The boolean value indicating whether all tables should be enabled. - Use this method if you register more than one dataset. You may specify any value - for the name parameter: it is not displayed anywhere in the designer and used only - to load/save a report. The name must be persistent and unique for each registered dataset. + Use this property to adjust the label's position. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, "NorthWind", true); - - - + - Registers the application data table to use it in the report. + Gets or sets the shape X offset. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1.Tables["Orders"], "Orders"); - - + + Use this property to adjust the shape position. + - + - Registers the application data view to use it in the report. + Gets or sets the shape Y offset. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myDataView, "OrdersView"); - - + + Use this property to adjust the shape position. + - + - Registers the application data relation to use it in the report. + Gets or sets the scale factor for this shape. - The application data. - The name of the data. - You may specify any value for the name parameter: it is not displayed anywhere - in the designer and used only to load/save a report. The name must be persistent - and unique for each registered relation. + Use this property to adjust the shape size. - - - report1.Load("report.frx"); - report1.RegisterData(myDataRelation, "myRelation"); - - - + - Obsolete. Registers the application business object to use it in the report. + Gets or sets the spatial data associated with this shape. - Application data. - Name of the data. - Not used. - Maximum nesting level of business objects. - - This method is obsolete. Use the method instead. - - + - Registers the application business object to use it in the report. + Gets or sets the value. - Application data. - Name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myBusinessObject, "Customers"); - - - + - Registers the application business object to use it in the report. + Gets a reference to the parent Map object. - Application data. - Name of the data. - Maximum nesting level of business objects. - - This method creates initial datasource with specified nesting level. It is useful if - you create a report in code. In most cases, you don't need to specify the nesting level - because it may be selected in the designer's "Choose Report Data" dialog. - - + - Registers the application cube link to use it in the report. + Gets a reference to the parent Layer object. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myCubeLink, "Orders"); - - - + + + + - Prepares the report. + Draws the shape. - true if report was prepared succesfully. + Object that provides a data for paint event. - + - Prepares the report. + Draws the label. - Specifies whether the new report should be added to a - report that was prepared before. - true if report was prepared succesfully. - - Use this method to merge prepared reports. - - This example shows how to merge two reports and preview the result: - - Report report = new Report(); - report.Load("report1.frx"); - report.Prepare(); - report.Load("report2.frx"); - report.Prepare(true); - report.ShowPrepared(); - - + Object that provides a data for paint event. - + - For internal use only. + Checks if the shape is under cursor. + The cursor coordinates. + true if the cursor is over the shape. - + - For internal use only. + Reduces the number of points in the shape. + The accuracy value. - + + + + - Refresh the current report. + Initializes a component before running a report. - - Call this method in the Click or MouseUp event handler of a report object to refresh - the currently previewed report. Report will be generated again, but without dialog forms. - - + - Refresh prepared report after intercative actions. + Finalizes a component before running a report. - + - Prepare page + Saves the state of this component. - - + - Exports a report. Report should be prepared using the method. + Restores the state of this component. - The export filter. - Stream to save export result to. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Exports a report. Report should be prepared using the method. + Initializes a new instance of the class. - The export filter. - File name to save export result to. - + - Saves the prepared report. Report should be prepared using the method. + Holds the list of objects of type. - File name to save to. - + - Saves the prepared report. Report should be prepared using the method. + Gets or sets the element at the specified index. - Stream to save to. + Index of an element. + The element at the specified index. - + - Loads the prepared report from a .fpx file. + Initializes a new instance of the class with default settings. - File name to load form. - + - Loads the prepared report from a .fpx file. + Initializes a new instance of the class with specified owner. - Stream to load from. - + - Initializes a new instance of the class with default settings. + Represents a line shape. - + + + + + + + + + + - Ensure that static constructor is called. + Initializes a new instance of the class. - + - Create name for all unnamed elements with prefix and start with number + Represents the spatial data of a shape. - Prefix for name - Number from which to start - + - Base class for all report objects. + Copies contents from another spatial data object. + The object to copy contents from. - + - This event occurs when the user moves the mouse over the object in the preview window. + Compares two spatial data objects. + The spatial object to compare with. + true if spatial objects are identical. - + - This event occurs when the user releases the mouse button in the preview window. + Gets a value by its key. + The key of value. + The value. - + - This event occurs when the user clicks the mouse button in the preview window. + Sets a value by its key. + The key of value. + The value. - + - This event occurs when the mouse enters the object's bounds in the preview window. + Gets a list of keys. + The list of keys. - + - This event occurs when the mouse leaves the object's bounds in the preview window. + Creates a new instance of the class. - + - Copies event handlers from another similar object. + Represents the style of a shape. - The object to copy handlers from. - + - This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Gets or sets the border color. - Event data. - + - This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Gets or sets the border style. - Event data. - + - This method fires the MouseDown event and the script code connected to the MouseDownEvent. + Gets or sets the border width. - Event data. - + - This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. + Gets or sets the fill color. - Event data. - + - This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. + Gets or sets the font. - Event data. - + - This method is fired when the user scrolls the mouse in the preview window. + Gets or sets the text color. - Event data. - - - - - - - - - - - - - + - Assigns a format from another, similar object. + Gets or sets the point size, in pixels. - Source object to assign a format from. - - - - - - - + - Draws the object's markers. + Copies contents from another similar object. - Draw event arguments. + The object to copy the contents from. - + - Draws the object's markers. + Initializes a new instance of the class. - Draw event arguments. - Marker style - - - - - - - - - - + - This event occurs before the object is added to the preview pages. + Represents a set of size ranges used to draw points based on analytical value. - + - This event occurs after the object was added to the preview pages. + Gets the list of ranges. - + - This event occurs after the object was filled with data. + Gets or sets the number of ranges. - + - This event occurs when the user clicks the object in the preview window. + Gets or sets the start size. - + - Gets or sets a value that determines if the object can be printed on the printer. + Gets or sets the end size. - - Object with Printable = false is still visible in the preview window, but not on the prinout. - If you want to hide an object in the preview, set the property to false. - - + - Gets or sets a value that determines if the object can be exported. + Gets or sets ranges as a string. - + - Gets or sets an object's border. + Copies the contents of another SizeRanges. + The SizeRanges instance to copy the contents from. - + - Gets or sets an object's fill. + Gets a size associated with given analytical value. - - The fill can be one of the following types: , , - , . - To set the solid fill color, use the simpler property. - - This example shows how to set the new fill and change its properties: - - textObject1.Fill = new SolidFill(Color.Green); - (textObject1.Fill as SolidFill).Color = Color.Red; - - + The analytical value. + The size associated with this value, or 0 if no association found. - + - Gets or sets the fill color in a simple manner. + Initializes a new instance of the class. - - This property can be used in a report script to change the fill color of the object. It is - equivalent to: reportComponent1.Fill = new SolidFill(color); - - + - Gets or sets a bookmark expression. + Represents a single size range. - - This property can contain any valid expression that returns a bookmark name. This can be, for example, - a data column. To navigate to a bookmark, you have to use the property. - - + - Gets or sets a hyperlink. + Gets or sets size of the range. - - The hyperlink is used to define clickable objects in the preview. - When you click such object, you may navigate to the external url, the page number, - the bookmark defined by other report object, or display the external report. - Set the Kind property of the hyperlink to select appropriate behavior. - Usually you should set the Expression property of the hyperlink to - any valid expression that will be calculated when this object is about to print. - The value of an expression will be used for navigation. - If you want to navigate to - something fixed (URL or page number, for example) you also may set the Value - property instead of Expression. - - + - Determines if the object can grow. + Gets or sets start value of the range. - - This property is applicable to the bands or text objects that can contain several text lines. - If the property is set to true, object will grow to display all the information that it contains. - - + - Determines if the object can shrink. + Gets or sets end value of the range. - - This property is applicable to the bands or text objects that can contain several text lines. - If the property is set to true, object can shrink to remove the unused space. - - + - Determines if the object must grow to the band's bottom side. + Copies the contents of another SizeRange. - - If the property is set to true, object grows to the bottom side of its parent. This is useful if - you have several objects on a band, and some of them can grow or shrink. - + The SizeRange instance to copy the contents from. - + - Gets or sets a shift mode of the object. + Initializes a new instance of the class. - - See enumeration for details. - - + - Gets or sets the style name. + Initializes a new instance of the class with a specified parameters. - - Style is a set of common properties such as border, fill, font, text color. The Report - has a set of styles in the property. - + The size of the range. + The start value of the range. + The end value of the range. - + - Gets or sets a style name that will be applied to even band rows. + Represents the matrix object that is used to print pivot table (also known as cross-tab). - Style with this name must exist in the collection. + The matrix consists of the following elements: columns, rows and data cells. Each element is + represented by the descriptor. The class is used + for columns and rows; the is used for data cells. + The property holds three collections of descriptors - Columns, + Rows and Cells. + To create the matrix in a code, you should perform the following actions: + + + create an instance of the MatrixObject and add it to the report; + + + create descriptors for columns, rows and cells and add it to the + collections inside the property; + + + call the method to create the matrix template + that will be used to create a result; + + + modify the matrix template (change captions, set the visual appearance). + + + To connect the matrix to a datasource, use the property. If + this property is not set, the result matrix will be empty. In this case you may use + the event handler to fill the matrix. + This example demonstrates how to create a matrix in a code. + + // create an instance of MatrixObject + MatrixObject matrix = new MatrixObject(); + matrix.Name = "Matrix1"; + // add it to the report title band of the first report page + matrix.Parent = (report.Pages[0] as ReportPage).ReportTitle; + + // create two column descriptors + MatrixHeaderDescriptor column = new MatrixHeaderDescriptor("[MatrixDemo.Year]"); + matrix.Data.Columns.Add(column); + column = new MatrixHeaderDescriptor("[MatrixDemo.Month]"); + matrix.Data.Columns.Add(column); + + // create one row descriptor + MatrixHeaderDescriptor row = new MatrixHeaderDescriptor("[MatrixDemo.Name]"); + matrix.Data.Rows.Add(row); + + // create one data cell + MatrixCellDescriptor cell = new MatrixCellDescriptor("[MatrixDemo.Revenue]", MatrixAggregateFunction.Sum); + matrix.Data.Cells.Add(cell); + + // connect matrix to a datasource + matrix.DataSource = Report.GetDataSource("MatrixDemo"); + + // create the matrix template + matrix.BuildTemplate(); + + // change the style + matrix.Style = "Green"; + + // change the column and row total's text to "Grand Total" + matrix.Data.Columns[0].TemplateTotalCell.Text = "Grand Total"; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + + - + - Gets or sets a style name that will be applied to this object when the mouse pointer is over it. + This property is not relevant to this class. - - Style with this name must exist in the collection. - - + - Gets or sets a value that determines which properties of the even style to use. + This property is not relevant to this class. - - Usually you will need only the Fill property of the even style to be applied. If you want to - apply all style settings, set this property to StylePriority.UseAll. - - + - Gets or sets a value that determines where to print the object. + This property is not relevant to this class. - - See the enumeration for details. - - + - Gets or sets a script event name that will be fired before the object will be printed in the preview page. + This property is not relevant to this class. - + - Gets or sets a script event name that will be fired after the object was printed in the preview page. + This property is not relevant to this class. - + - Gets or sets a script event name that will be fired after the object was filled with data. + This property is not relevant to this class. - - - Gets or sets a script event name that will be fired when the user click the object in the preview window. - + + - - - Determines if the object has custom border and use only Border.Width, Border.Style and - Border.Color properties. - - - This flag is used to disable some toolbar buttons when such object is selected. Applicable to the - ShapeObject and LineObject. - + + - - - Determines if the object uses the Border. - - - This flag is used to disable some toolbar buttons when such object is selected. - + + - - - Determines if the object uses the fill. - - - This flag is used to disable some toolbar buttons when such object is selected. - + + - - - Gets or sets a value indicates that object should not be added to the preview. - + + - - - Determines if serializing the Style property is needed. - - - The Style property must be serialized last. Some ancestor classes may turn off the standard Style - serialization and serialize it by themselves. - + + - - - Determines if an object can provide the hyperlink value automatically. - - - This flag is used in complex objects such as Matrix or Chart. These objects can provide - a hyperlink value automatically, depending on where you click. - + + - - - Gets an object's parent band. - + + - - - Gets an object's parent data band. - + + - - - Gets or sets an object's cursor shape. - - - This property is used in the preview mode. - + + - - - Gets or sets a script event name that will be fired when the user - moves the mouse over the object in the preview window. - + + - + - Gets or sets a script event name that will be fired when the user - releases the mouse button in the preview window. + Allows to fill the matrix in code. + + In most cases the matrix is connected to a datasource via the + property. When you run a report, the matrix is filled with datasource values automatically. + Using this event, you can put additional values to the matrix or even completely fill it + with own values (if is set to null. To do this, call the + Data.AddValue method. See the + method for more details. + + This example shows how to fill a matrix with own values. + + // suppose we have a matrix with one column, row and data cell. + // provide 3 one-dimensional arrays with one element in each to the AddValue method + Matrix1.Data.AddValue( + new object[] { 1996 }, + new object[] { "Andrew Fuller" }, + new object[] { 123.45f }); + Matrix1.Data.AddValue( + new object[] { 1997 }, + new object[] { "Andrew Fuller" }, + new object[] { 21.35f }); + Matrix1.Data.AddValue( + new object[] { 1997 }, + new object[] { "Nancy Davolio" }, + new object[] { 421.5f }); + + // this code will produce the following matrix: + // | 1996 | 1997 | + // --------------+--------+--------+ + // Andrew Fuller | 123.45| 21.35| + // --------------+--------+--------+ + // Nancy Davolio | | 421.50| + // --------------+--------+--------+ + + - + - Gets or sets a script event name that will be fired when the user - clicks the mouse button in the preview window. + Allows to modify the prepared matrix elements such as cells, rows, columns. - + - Gets or sets a script event name that will be fired when the - mouse enters the object's bounds in the preview window. + Allows to modify the prepared matrix elements such as cells, rows, columns. - + - Gets or sets a script event name that will be fired when the - mouse leaves the object's bounds in the preview window. + Gets or sets a value that determines whether the matrix must calculate column/row sizes automatically. - - - - + - Applies the style settings. + Gets or sets a value that determines how to print multiple data cells. - Style to apply. + + This property can be used if matrix has two or more data cells. Default property value + is false - that means the data cells will be stacked. + - + - Saves the current style. + Gets or sets a value indicating that the side-by-side cells must be kept together on the same page. - + - Restores the current style. + Gets or sets a data source. + + When you create the matrix in the designer by drag-drop data columns into it, + this property will be set automatically. However you need to set it if you create + the matrix in code. + - + - Draws the object's background. + Gets the row filter expression. - Draw event arguments. - - - + + This property can contain any valid boolean expression. If the expression returns false, + the corresponding data row will be skipped. + - + - Determines if the object is visible on current drawing surface. + Gets or sets a value indicating whether to show a title row. - Draw event arguments. - - - - + - This method fires the Click event and the script code connected to the ClickEvent. + Gets or sets a matrix style. - Event data. - - - - + - Checks if there are any listeners to the Click event. + Gets or sets even style priority for matrix cells. - + - Initializes the object before running a report. + Gets or sets a script method name that will be used to handle the + event. - This method is used by the report engine, do not call it directly. + See the event for more details. - + - Performs a finalization after the report is finished. + Gets or sets a script method name that will be used to handle the + event. - This method is used by the report engine, do not call it directly. + See the event for more details. - + - Saves the object's state before printing it. + Gets or sets a script method name that will be used to handle the + event. - This method is called by the report engine before processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should save any object properties that may be changed during the object printing. - The standard implementation saves the object's bounds, visibility, bookmark and hyperlink. + See the event for more details. - + - Restores the object's state after printing it. + Gets the object that holds the collection of descriptors used + to build a matrix. - This method is called by the report engine after processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should restore the object properties that were saved by the method. + See the class for more details. - + - Calculates the object's height. + Gets or sets array of values that describes the currently printing column. - Actual object's height, in pixels. - Applicable to objects that contain several text lines, such as TextObject. Returns the height needed - to display all the text lines. - - - - - Gets the data from a datasource that the object is connected to. - - - This method is called by the report engine before processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should get the data from a datasource that the object is connected to. + Use this property when report is running. It can be used to highlight matrix elements + depending on values of the currently printing column. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition. Use the Matrix.ColumnValues to + refer to the value you need to analyze. Note: these values are arrays of System.Object, + so you need to cast it to actual type before making any comparisons. Example of highlight + condition: (int)Matrix1.ColumnValues[0] == 2000. + + + - - - - - - This method fires the BeforePrint event and the script code connected to the BeforePrintEvent. - - Event data. - - - - This method fires the AfterPrint event and the script code connected to the AfterPrintEvent. - - Event data. - - - - This method fires the AfterData event and the script code connected to the AfterDataEvent. - - Event data. - - - - Initializes a new instance of the class with default settings. - - - + - Represents a report page. + Gets or sets array of values that describes the currently printing row. - To get/set a paper size and orientation, use the , - and properties. Note that paper size is measured in millimeters. - Report page can contain one or several bands with report objects. Use the , - , , , - , , properties - to get/set the page bands. The property holds the list of data bands or groups. - Thus you may add several databands to this property to create master-master reports, for example. - - Report page can contain bands only. You cannot place report objects such as TextObject on a page. - + Use this property when report is running. It can be used to highlight matrix elements + depending on values of the currently printing row. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition. Use the Matrix.RowValues to + refer to the value you need to analyze. Note: these values are arrays of System.Object, + so you need to cast it to actual type before making any comparisons. Example of highlight + condition: (string)Matrix1.RowValues[0] == "Andrew Fuller". + + + - - This example shows how to create a page with one ReportTitleBand and DataBand bands and add - it to the report. - - ReportPage page = new ReportPage(); - // set the paper in millimeters - page.PaperWidth = 210; - page.PaperHeight = 297; - // create report title - page.ReportTitle = new ReportTitleBand(); - page.ReportTitle.Name = "ReportTitle1"; - page.ReportTitle.Height = Units.Millimeters * 10; - // create data band - DataBand data = new DataBand(); - data.Name = "Data1"; - data.Height = Units.Millimeters * 10; - // add data band to the page - page.Bands.Add(data); - // add page to the report - report.Pages.Add(page); - - - + - Gets or sets the paper source for the first printed page. + Gets or sets the index of currently printing column. - - This property represents the paper source (printer tray) that will be used when printing - the first page. To set the source for other pages, use the property. - - - Note: This property uses the raw number of the paper source. - + This property may be used to print even columns with alternate color. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition that uses the Matrix.ColumnIndex, + for example: Matrix1.ColumnIndex % 2 == 1. + + + - + - Gets or sets the paper source for all printed pages except the first one. + Gets or sets the index of currently printing row. - - This property represents the paper source (printer tray) that will be used when printing - all pages except the first one. To set source for the first page, use - the property. - - - Note: This property uses the raw number of the paper source. - + This property may be used to print even rows with alternate color. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition that uses the Matrix.RowIndex, + for example: Matrix1.RowIndex % 2 == 1. + + + - - - Gets or sets the printer duplex mode that will be used when printing this page. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - + + - - - This property is not relevant to this class. - + + - + - + - Gets a value indicating that imperial units (inches, hundreths of inches) are used. + Creates or updates the matrix template. + + Call this method after you modify the matrix descriptors using the + object's properties. + - - - - + - + - + - + - + - + - + - - - Invokes the object's editor. - - - - - This event occurs when the report engine starts this page. - - - + - This event occurs when the report engine finished this page. + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Event data. - + - This event occurs when the report engine is about to print databands in this page. + This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Event data. - + - Gets or sets a width of the paper, in millimeters. + This method fires the AfterTotals event and the script code connected to the AfterTotalsEvent. + Event data. - + - Gets or sets a height of the paper, in millimeters. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + + This is a shortcut method to call the matrix Data.AddValue. + See the method for more details. + - + - Gets or sets the raw index of a paper size. + Gets the value of the data cell with the specified index. + Zero-based index of the data cell. + The cell's value. - This property stores the RawKind value of a selected papersize. It is used to distiguish - between several papers with the same size (for ex. "A3" and "A3 with no margins") used in some - printer drivers. - It is not obligatory to set this property. FastReport will select the - necessary paper using the PaperWidth and PaperHeight values. + Use this method in the cell's expression if the cell has custom totals + (the total function is set to "Custom"). The example: + Matrix1.Value(0) / Matrix1.Value(1) + will return the result of dividing the first data cell's value by the second one. - + - Gets or sets a value indicating whether the page has unlimited height. + Initializes a new instance of the class. - + - Gets or sets the value indicating whether the unlimited page should be printed on roll paper. + Specifies the aggregate function used in the . - + - Gets or sets a value indicating whether the page has unlimited width. + No aggregates are used. - + - Get or set the current height of unlimited page. + Specifies the sum of values. - + - Get or set the current width of unlimited page. + Specifies the minimum of values. - + - Gets the current page height in pixels. + Specifies the maximum of values. - + - Gets the current page width in pixels. + Specifies the average of values. - + - Gets or sets a value indicating that page should be in landscape orientation. + Specifies the count of values. - - When you change this property, it will automatically swap paper width and height, as well as paper margins. - - + - Gets or sets the left page margin, in millimeters. + Specifies the custom function. - + - Gets or sets the top page margin, in millimeters. + Determines how matrix percents are calculated. - + - Gets or sets the right page margin, in millimeters. + Do not calculate percent value. - + - Gets or sets the bottom page margin, in millimeters. + Calculate percent of the column total value. - + - Gets or sets a value indicating that even pages should swap its left and right margins when - previewed or printed. + Calculate percent of the row total value. - + - Gets the page columns settings. + Calculate percent of the grand total value. - + - Gets or sets the page border that will be printed inside the page printing area. + The descriptor that is used to describe one matrix data cell. + + The class is used to define one data cell of the matrix. + The key properties are and . + To set visual appearance of the data cell, use the + property. + The collection of descriptors used to represent the matrix data cells is stored + in the MatrixObject.Data.Cells property. + - + - Gets or sets the page background fill. + Gets or sets an aggregate function used to calculate totals for this cell. - + - Gets or sets the page watermark. + Gets or sets a value that determines how to calculate the percent value for this cell. - - To enabled watermark, set its Enabled property to true. - - - - Gets or sets a value indicating that ReportTitle band should be printed before the - PageHeader band. - + + - + + + + - Gets or sets an outline expression. + Initializes a new instance of the class + with default settings. - - For more information, see property. - - + - Gets or sets a value indicating whether to start to print this page on a free space of the previous page. + Initializes a new instance of the class + with specified expression. - - This property can be used if you have two or more pages in the report template. - + The descriptor's expression. - + - Gets or sets a value indicating that FastReport engine must reset page numbers before printing this page. + Initializes a new instance of the class + with specified expression and aggregate function. - - This property can be used if you have two or more pages in the report template. - + The descriptor's expression. + The aggregate function. - + - Gets or sets a value indicating whether the page has extra width in the report designer. + Initializes a new instance of the class + with specified expression, aggregate function, and a percent. - - This property may be useful if you work with such objects as Matrix and Table. - + The descriptor's expression. + The aggregate function. + The percent setting. - + - Gets or sets a value indicating whether this page will start on an odd page only. + Represents a collection of matrix data descriptors used in the . - - This property is useful to print booklet-type reports. Setting this property to true - means that this page will start to print on an odd page only. If necessary, an empty page - will be added to the prepared report before this page will be printed. - - + - Uses this page as a back page for previously printed pages. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Gets or sets a report title band. + Adds the specified descriptors to the end of this collection. + Array of descriptors to add. - + - Gets or sets a report summary band. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Gets or sets a page header band. + Inserts a descriptor into this collection at the specified index. + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Gets or sets a page footer band. + Removes the specified descriptor from the collection. + Descriptor to remove. - + - Gets or sets a column header band. + Returns the zero-based index of the first occurrence of a descriptor. + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - + - Gets or sets a column footer band. + Determines whether a descriptor is in the collection. + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - + - Gets or sets an overlay band. + Copies the elements of this collection to a new array. + An array containing copies of this collection elements. - + + + + + + + - Gets the collection of data bands or group header bands. + Contains a set of properties and methods to hold and manipulate the matrix descriptors. - The Bands property holds the list of data bands or group headers. - Thus you may add several databands to this property to create master-master reports, for example. + This class contains three collections of descriptors such as , + and . Use collections' methods to add/remove + descriptors. When you are done, call the + method to refresh the matrix. + To fill a matrix in code, use the AddValue method. - + - Gets or sets the page guidelines. + Gets a collection of column descriptors. - This property hold all vertical guidelines. The horizontal guidelines are owned by the bands (see - property). + Note: after you change something in this collection, call the + method to refresh the matrix. - + - Gets or sets the reference to a parent SubreportObject that owns this page. + Gets a collection of row descriptors. - This property is null for regular report pages. See the for details. + Note: after you change something in this collection, call the + method to refresh the matrix. - + - Gets or sets a script event name that will be fired when the report engine starts this page. + Gets a collection of data cell descriptors. + + Note: after you change something in this collection, call the + method to refresh the matrix. + - + - Gets or sets a script event name that will be fired when the report engine finished this page. + Clears all descriptors. - + - Gets or sets a script event name that will be fired when the report engine is about - to print databands in this page. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + + The number of elements in an array passed to this method must be the same as + a number of descriptors in the appropriate collection. That is, if your matrix + has one column, two row and one cell descriptors (in Columns, Rows and + Cells collections respectively), you have to pass one-element array for the + columnValues param, two-element array for the rowValues and one-element + array for the cellValues. + + This example demonstrates how to fill a simple matrix that contains one column, + row and cell. + + MatrixObject matrix; + matrix.Data.AddValue( + new object[] { 1996 }, + new object[] { "Andrew Fuller" }, + new object[] { 123.45f }); + + // this will produce the following result: + // | 1996 | + // --------------+----------+ + // Andrew Fuller | 123.45| + // --------------+----------+ + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - This method fires the StartPage event and the script code connected to the StartPageEvent. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + Datasource row index. + + See the method for more details. + - + - This method fires the FinishPage event and the script code connected to the FinishPageEvent. + Gets a value with specified column, row and cell indicies. + Index of a column. + Index of a row. + Index of a cell. + The value of a cell. - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Sets the cell's value. + Index of a column. + Index of a row. + The new value. - + - Initializes a new instance of the class with default settings. + The base class for matrix element descriptors such as and + . - + - This class contains settings that will be applied to the Report component. + Gets or sets an expression which value will be used to fill the matrix. + + Expression may be any valid expression. Usually it's a data column: + [DataSource.Column]. + - + - Occurs before displaying a progress window. + Gets or sets the template column bound to this descriptor. + + This property is for internal use; usually you don't need to use it. + - + - Occurs after closing a progress window. + Gets or sets the template row bound to this descriptor. + + This property is for internal use; usually you don't need to use it. + - + - Occurs after printing a report. + Gets or sets the template cell bound to this descriptor. + + Using this property, you may access the matrix cell which is bound to + this descriptor. It may be useful to change the cell's appearance. + + Before using this property, you must initialize the matrix descriptors by + calling the method. + + + + + MatrixObject matrix; + // change the fill color of the first matrix cell + matrix.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); + + - + - Occurs when progress state is changed. + Assigns values from another descriptor. + Descriptor to assign values from. - + + + + + + + - Gets or sets a value that determines whether to show the progress window - when perform time-consuming operations such as run, print, export. + Represents a collection of matrix header descriptors used in the . - + - Gets or sets a value that determines whether to show the information about - the report performance (report generation time, memory consumed) in the - lower right corner of the preview window. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Occurs when database connection is about to open. - - Use this event to provide own connection string or user name/password to the connection - object that is about to open. - To provide own connection string, set the e.ConnectionString property. - In this case the new connection string will be used. - To provide own user name/password, set the e.UserName and e.Password properties. - You may ask these values in own login dialog. - This example shows how to provide username/password using own login dialog. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - using (MyLoginDialog dialog = new MyLoginDialog()) - { - if (dialog.ShowDialog() == DialogResult.OK) - { - e.UserName = dialog.UserName; - e.Password = dialog.Password; - } - } - } - - This example shows how to provide own connection string. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - e.ConnectionString = my_connection_string; - } - - + Adds the specified descriptors to the end of this collection. + + Array of descriptors to add. - + - Occurs after the database connection is established. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Occurs when discovering the business object's structure. + Inserts a descriptor into this collection at the specified index. + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Occurs when determining the kind of business object's property. + Removes the specified descriptor from the collection. + Descriptor to remove. - + - Occurs when discovering the structure of business object of ICustomTypeDescriptor type - with no instance specified. + Returns the zero-based index of the first occurrence of a descriptor. - - The event handler must return an instance of that type. - + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - + - Gets or sets the default script language. + Determines whether a descriptor is in the collection. + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - + - Gets or sets the default paper size used when creating a new report. + Copies the elements of this collection to a new array. + An array containing copies of this collection elements. - + - Gets or sets a value indicating that the business object engine will use property values - when possible to discover the BO structure. + Gets the list of indices of terminal items of this header. + The list of indices. - + - Gets or sets the default path for root of PictureObject.ImageLocation path. + Gets the list of indices of terminal items of the header with specified address. + The address of a header. + The list of indices. - + - Initializes a new instance of the class. + Removes a header item with the address specified. + The address of a header. - + - Represents a RichText object that can display formatted text. + Gets an index of header with the address specified. - - Use the property to set the object's text. The text may include - the RTF formatting tags. - + The address of a header. + The index of header. - - + + + Gets an index of header with the address specified. If there is no such header item, it will be created. + + The address of a header. + The index of header. - + - + - + - Gets or sets the object's text. + The descriptor that is used to describe one element of the matrix header. - This property returns the formatted text with rtf tags. + The class is used to define one header element of the matrix + (either the column element or row element). The key properties are + , and . + To set visual appearance of the element, use the + property. To set visual appearance of the "total" element, use the + property. + The collection of descriptors used to represent the matrix header is stored + in the MatrixObject.Data.Columns and MatrixObject.Data.Rows properties. - + - Gets or sets a name of the data column bound to this control. + Gets or sets the sort order of header values. - Value must contain the datasource name, for example: "Datasource.Column". + This property determines how the values displayed in this element are sorted. The default sort + is ascending. - + - Gets the actual text start. + Gets or sets a value indicating that this element has associated "total" element. - This property is for internal use only; you should not use it in your code. + To access the matrix cell that is bound to the "Total" element, use the + property. It may be useful to change the + "Total" text by something else. + This example shows how to change the "Total" text of the total element. + + MatrixObject matrix; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + + - + - Gets the actual text length. + Gets or sets the value indicating whether the total values must be printed before the data. + + + + + Gets or sets a value indicating that the page break must be printed before this element. - This property is for internal use only; you should not use it in your code. + Page break is not printed before the very first element. - + - Gets or sets the break style. + Gets or sets a value that determines whether it is necessary to suppress totals + if there is only one value in a group. - - Set this property to true if you want editable rich text when you edit the prepared report page. + + + + Gets or sets the template column bound to the "total" element of this descriptor. + + + This property is for internal use; usually you don't need to use it. - + - Experimental feature for translation of RichText into report objects + Gets or sets the template row bound to the "total" element of this descriptor. + + This property is for internal use; usually you don't need to use it. + - - + + + Gets or sets the template cell bound to the "total" element of this descriptor. + + + This property may be useful to change the "Total" text by something else. + + Before using this property, you must initialize the matrix descriptors by + calling the method. + + + This example shows how to change the "Total" element. + + MatrixObject matrix; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + matrix.Data.Rows[0].TemplateTotalCell.Fill = new SolidFill(Color.Green); + + - + - + - - + + + Initializes a new instance of the class with + default settings. + - - + + + Initializes a new instance of the class with + specified expression. + + The descriptor's expression. - - + + + Initializes a new instance of the class with + specified expression and totals. + + The descriptor's expression. + Indicates whether to show the "total" element. - - + + + Initializes a new instance of the class with + specified expression, sort order and totals. + + The descriptor's expression. + Sort order used to sort header values. + Indicates whether to show the "total" element. - - + + + Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. + - - + + + Describes how the even style is applied to a matrix. + - - + + + The even style is applied to matrix rows. + - + - Initializes a new instance of the class with default settings. + The even style is applied to matrix columns. - + - Save RTF document to plain text stream + Represents the chart object based on Microsoft Chart control. + + FastReport uses Microsoft Chart library to display charts. This library is included + in .Net Framework 4.0. For .Net 3.5 it is available as a separate download here: + http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c + This library requires .Net Framework 3.5 SP1. + To access Microsoft Chart object, use the property. It allows you + to set up chart appearance. For more information on available properties, refer to the + MS Chart documentation. + Chart object may contain one or several series. Each series is represented by two objects: + + + the Series that is handled by MS Chart. It is stored in the + Chart.Series collection; + + + the object that provides data for MS Chart series. + It is stored in the collection. + + + Do not operate series objects directly. To add or remove series, use + the and methods. These methods + handle Series and MSChartSeries in sync. + If you have a chart object on your Form and want to print it in FastReport, use + the method. + - + - This class represents a RTF run. + This property is not relevant to this class. - + - Insert paragraph into list of paragraphs + This property is not relevant to this class. - + - Insert row into list of paragraphs + This property is not relevant to this class. - + - This class represents a RTF properies. + This property is not relevant to this class. - + - This class parses an entiry RTF document. + This property is not relevant to this class. - + - + - + - - - RichText document object - + + - + - This class represents a RTF text paragraph. + Gets the collection of objects. - + - This class detect a RTF control sequences and text. + Gets a reference to the MS Chart object. - + - This class represents a RTF column description. + Gets or set Force automatically created series. - - + - Create RTF row + Gets or sets the data source. - - - + - Internal representation of RichText document + Gets or sets the filter expression. + + This filter will be applied to all series in chart. You may also use the series' + property to filter each series individually. + - + - Save RTF document to text stream + Gets or sets a value indicating that all series' data point should be aligned by its X value. + + Using this property is necessary to print stacked type series. These series must have + equal number of data points, and the order of data points must be the same for all series. + - + - This class represents a RTF document header. + Gets or set the data column or expression for automatically created series. - Refer to RTF-1.7 spec for detail description + In order to create auto-series, you need to define one series that will be used as a + template for new series, and set up the property. + The value of this property will be a name of new series. If there is no series + with such name yet, the new series will be added. - + - Parser of RTF header. + Gets or set the color for auto-series. - Return false on finish of header + If no color is specified, the new series will use the palette defined in the chart. - + - Represents the base class for the report style or the highlight condition. + Gets or sets sort order for auto-series. - + + + + - Gets or sets a value determines that the border must be applied. + Adds a new series. + The type of series. + The new MSChartSeries object. - + - Gets or sets a value determines that the fill must be applied. + Deletes a series at a specified index. + Index of series. - + - Gets or sets a value determines that the font must be applied. + Assigns chart appearance, series and data from the + System.Windows.Forms.DataVisualization.Charting.Chart object. + Chart object to assign data from. + + Use this method if you have a chart in your application and want to print it in FastReport. + To do this, put an empty MSChartObject in your report and execute the following code: + + report.Load("..."); + MSChartObject reportChart = report.FindObject("MSChart1") as MSChartObject; + reportChart.AssignChart(applicationChart); + report.Show(); + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets a value determines that the text fill must be applied. + Initializes a new instance of the with default settings. - + - Gets or sets a border. + Represents the small chart object (called sparkline) fully based on MSChartObject. - + + + + + + + - Gets or sets a fill. + Initializes a new instance of the with default settings. - + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + - Gets or sets a font. + Required designer variable. - + - Gets or sets a text fill. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class with default settings. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Assigns values from another source. + Required designer variable. - Source to assign from. - + - Deserializes the style. + Clean up any resources being used. - Reader object. - - This method is for internal use only. - + true if managed resources should be disposed; otherwise, false. - + - Serializes the style. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Writer object. - - This method is for internal use only. - - + - SVG object + Specifies how the series points are sorted. - + - Gets or sets svg document + Points are not sorted. - + - Gets or sets ViewBox value + Points are sorted by X value. - + - Gets or sets AspectRatio value + Points are sorted by Y value. - - + + + Specifies the direction in which the series points are sorted. + - + - Gets or sets grayscale svg document + Points are sorted in ascending order. - + - Gets or sets a value indicating that the image should be displayed in grayscale mode. + Points are sorted in descending order. - - + + + Specifies how the series points are grouped. + - + - Returns SVG string + Points are not grouped. - - + + + Points are grouped by X value. + - - + + + Points are grouped by number specified in the . + - - + + + Points are grouped by Years. + - - + + + Points are grouped by Months. + - - + + + Points are grouped by Weeks. + - - + + + Points are grouped by Days. + - - + + + Points are grouped by Hours. + - + - Returns clone of this object + Points are grouped by Minutes. - - + - Sets svg object by SvgDocument + Points are grouped by Seconds. - SVG document - + - Sets svg object from specified path + Points are grouped by Milliseconds. - path to SVG file - + - Sets svg object from svg string + Specifies which pie value to explode. - SVG string - + - Initializes a new instance of the class with default settings. + Do not explode pie values. - + - Invokes the object's editor. + Explode the biggest value. - true if object was edited succesfully. - + - Represents a table row. + Explode the lowest value. - - Use the property to set the height of a row. If - property is true, the row will calculate its height automatically. - You can also set the and properties - to restrict the row's height. - - + - This property is not relevant to this class. + Explode the value specified in the property. - + - This property is not relevant to this class. + Specifies which data points to collect into one point. - + - This property is not relevant to this class. + Do not collect points. - + - This property is not relevant to this class. + Show top N points (N value is specified in the + property), collect other points into one. - - + + + Show bottom N points (N value is specified in the + property), collect other points into one. + - - + + + Collect points which have Y value less than specified + in the property. + - - + + + Collect points which have Y value less than percent specified + in the property. + - + - Gets or sets a height of the row, in pixels. + Collect points which have Y value greater than specified + in the property. + + + + + Collect points which have Y value greater than percent specified + in the property. + + + + + Represents a MS Chart series wrapper. - The row height cannot exceed the range defined by the - and properties. - To convert between pixels and report units, use the constants defined - in the class. + This class provides a data for MS Chart series. The series itself is stored inside the + MS Chart and is accessible via the property. + You don't need to create an instance of this class directly. Instead, use the + method. - + - Gets or sets the minimal height for this row, in pixels. + Gets os sets the data filter expression. + + The filter is applied for this series only. You can also use the + property to set a filter that will be applied to all + series in a chart. + - + - Gets or sets the maximal height for this row, in pixels. + Gets or set the data column or expression for automatically created series. + + In order to create auto-series, you need to define one series that will be used as a + template for new series, and set up the property. + The value of this property will be a name of new series. If there is no series + with such name yet, the new series will be added. + - + - Gets or sets a value determines if the row should calculate its height automatically. + Gets or sets the sort method used to sort data points. - The row height cannot exceed the range defined by the - and properties. + You have to specify the property as well. Data points in this series + will be sorted according selected sort criteria and order. - + - Gets the index of this row. + Gets or set Force automatically created series. - - + + + Gets or sets the sort order used to sort data points. + + + You have to specify the property as well. Data points in this series + will be sorted according selected sort criteria and order. + - + - Gets or sets the cell with specified index. + Gets or sets the group method used to group data points. - Column index. - The TableCell object. + + This property is mainly used when series is filled with data with several identical X values. + In this case, you need to set the property to XValue. All identical data points will be + grouped into one point, their Y values will be summarized. You can choose the summary function + using the property. + - + - Gets or sets the page break flag for this row. + Gets or sets the group interval. + + This value is used if property is set to Number. + - + - Gets or sets the number of rows to keep on the same page. + Gets or sets the function used to group data points. - - + + + Gets or sets the collect method used to collect several data points into one. + + + This instrument for data processing allows to collect several series points into one point. + The collected point will be displaed using the text specified in the + property and color specified in the property. + For example, to display top 5 values, set this property to TopN and specify + N value (5) in the property. + - - + + + Gets or sets the collect value used to collect several data points into one. + + + This property is used if the property is set to any value other than None. + - - + + + Gets or sets the text for the collected value. + - - + + + Gets or sets the color for the collected value. + + + If this property is set to Transparent (by default), the default palette color + will be used to display a collected point. + - - + + + Gets or sets the method used to explode values in pie-type series. + - - + + + Gets or sets the value that must be exploded. + + + This property is used if property is set + to SpecificValue. + - - + + + Gets or sets the data column or expression that returns the X value of data point. + - - + + + Gets or sets the data column or expression that returns the first Y value of data point. + - - + + + Gets or sets the data column or expression returns the second Y value of data point. + - - + + + Gets or sets the data column or expression returns the third Y value of data point. + - + - Initializes a new instance of the class. + Gets or sets the data column or expression returns the fourth Y value of data point. - + - Represents a table object that consists of several rows and columns. + Gets or sets the data column or expression that returns the color of data point. + + + + + Gets or sets the data column or expression returns the label value of data point. + + + + + Gets a reference to MS Chart Series object. - To add/remove columns, use the collection. To add/remove - rows, use the collection. To initialize a table with specified number of - columns and rows, use and properties. - To print a table in code, use the event. In the manual build - mode, you can use aggregate functions. The following functions available: - - - Aggregate function - Description - - - Sum(cell) - Calculates the sum of values in specified table cell. - - - Min(cell) - Calculates the minimum of values in specified table cell. - - - Max(cell) - Calculates the maximum of values in specified table cell. - - - Avg(cell) - Calculates the average of values in specified table cell. - - - Count(cell) - Calculates the number of repeats of a specified table cell. - - - To print aggregate value, place the aggregate function call in the table cell: - [Count(Cell2)]. + Use this property to set many options available for the Series object. These options + include: visual appearance, labels, marks, value types. Refer to the Microsoft Chart control + documentation to learn more. - + + + Gets a number of Y value per data point. + + + Number of Y values depends on series type. Most of series have only one Y value. Financial + series such as Stock and Candlestick, use four Y values. + + + + + This property is not relevant to this class. + + + - + - + - + - Allows to print table rows/columns dynamically. + Clears all data points in this series. - - This event is used to handle the table print process in a code. Using special methods - like , you can print specified rows/columns. - - First way is to repeat specified row(s) to get a table that will grow downwards. - To do this, you have to call the PrintRow method followed by the PrintColumns method. - - Another way is to repeat the specified column(s) to get a table that grows sidewards. - To do this, call the PrintColumn method followed by the PrintRows method. - - Finally, the third way is to repeat rows and columns. The table will grow downwards and - sidewards. To do this, call the PrintRow method followed by the PrintColumn - method (or vice versa). - - - - When you print a table row-by-row, you must call one of the PrintColumn, - PrintColumns methods right after the PrintRow method. - In the same manner, when you print a table column-by-column, call one of the - PrintRow, PrintRows methods right after the PrintColumn method. - If you ignore this rule you will get an exception. - - - - In this example, we will consider all three ways to print a table which has 3 rows and 3 columns. - Case 1: print a table downwards. - - // print table header (the first row) - Table1.PrintRow(0); - Table1.PrintColumns(); - // print table body (the second row) - for (int i = 0; i < 10; i++) - { - Table1.PrintRow(1); - Table1.PrintColumns(); - } - // print table footer (the third row) - Table1.PrintRow(2); - Table1.PrintColumns(); - - - Case 2: print a table sidewards. - - // print table header (the first column) - Table1.PrintColumn(0); - Table1.PrintRows(); - // print table body (the second column) - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - Table1.PrintRows(); - } - // print table footer (the third column) - Table1.PrintColumn(2); - Table1.PrintRows(); - - - Case 3: print a table downwards and sidewards. - - // print the first row with all its columns - Table1.PrintRow(0); - // print header column - Table1.PrintColumn(0); - // print 10 data columns - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - } - // print footer column - Table1.PrintColumn(2); - - // print table body (the second row) - for (int i = 0; i < 10; i++) - { - // print data row with all its columns - Table1.PrintRow(1); - Table1.PrintColumn(0); - for (int j = 0; j < 10; j++) - { - Table1.PrintColumn(1); - } - Table1.PrintColumn(2); - } - - // print table footer (the third row) - Table1.PrintRow(2); - // again print all columns in the table footer - Table1.PrintColumn(0); - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - } - Table1.PrintColumn(2); - - - + - Gets or sets a script method name that will be used to handle the - event. + Adds a data point with specified X and Y values. + X value. + Array of Y values. - If you use this event, you must handle the table print process manually. - See the event for details. + Note: number of values in the yValues parameter must be the same as value returned + by the property. - + + + + - Determines whether to manage cell spans automatically during manual build. + Creates a new instance of the class with default settings. - - The default value for this property is true. If you set it to false, you need to manage - spans in your ManualBuild event handler. - - - + + + Represents a collection of objects. + - - + + + Gets the element at the specified index. + + Index of an element. + The element at the specified index. - - + + + Resets series data. + - - + + + Processes the current data row. + - - + + + Finishes the series data. + - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Base class for report pages and dialog forms. - Event data. - + - Prints a row with specified index. + This property is not relevant to this class. - Index of a row to print. - - See the event for more details. - - + - Prints rows with specified indices. + This property is not relevant to this class. - Indices of rows to print. - - See the event for more details. - - + - Prints all rows. + This property is not relevant to this class. - - See the event for more details. - - + - Prints a column with specified index. + Gets the snap size for this page. - Index of a column to print. - - See the event for more details. - - + - Prints columns with specified indices. + Gets a page designer for this page type. + + The page designer. + + + + This method is called by the designer when you create a new page. - Indices of columns to print. - See the event for more details. + You may create the default page layout (add default bands, set default page size, etc). - + - Prints all columns. + Causes the page to refresh in the preview window. - See the event for more details. + Call this method when you handle object's MouseMove, MouseDown, MouseUp, MouseEnter, MouseLeave events + and want to refresh the preview window. + + If you have changed some objects on a page, the Refresh method will not save the changes. + This means when you print or export the page, you will see original (unmodified) page content. + If you want to save the changes, you have to use the method instead. + - + - Adds a page before rows or columns. + Modifies the page content and refresh it in the preview window. - Call this method to insert a page break before the next row or column that you intend to print - using PrintRow(s) or PrintColumn(s) methods. - See the event for more details. + Call this method when you handle object's Click, MouseDown or MouseUp events + and want to modify an object and refresh the preview window. - + - Initializes a new instance of the class. + Initializes a new instance of the class with default settings. - + - Represents a table column. + Represents the pages of a prepared report. - Use the property to set the width of a column. If - property is true, the column will calculate its width automatically. - You can also set the and properties - to restrict the column's width. + Prepared page is a page that you can see in the preview window. Prepared pages can be + accessed via property. + The common scenarios of using this object are: + + + Working with prepared pages after the report is finished: load + () or save () pages + from/to a .fpx file, get a page with specified index to work with its objects + (); modify specified page (). + + + + Using the , , + methods while report is generating to produce an output. + + + + - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Gets the number of pages in the prepared report. - + - This property is not relevant to this class. + Specifies an action that will be performed on method call. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the prepared pages can be uploaded to the file cache. + + This property is used while report is generating. + Default value for this property is true. That means the prepared pages may be uploaded to + the file cache if needed. To prevent this (for example, if you need to access some objects + on previously generated pages), set the property value to false. + - + - - + + + Adds a source page to the prepared pages dictionary. + + The template page to add. + + Call this method before using AddPage and AddBand methods. This method adds + a page to the dictionary that will be used to decrease size of the prepared report. + - - + + + Adds a new page. + + The original (template) page to add. + + Call the method before adding a page. This method creates + a new output page with settings based on page parameter. + - + - Gets or sets a width of the column, in pixels. + Prints a band with all its child objects. + The band to print. + true if band was printed; false if it can't be printed + on current page due to its PrintOn property value. - The column width cannot exceed the range defined by the - and properties. - To convert between pixels and report units, use the constants defined - in the class. + Call the method before adding a band. - + - Gets or sets the minimal width for this column, in pixels. + Gets a page with specified index. + + Zero-based index of page. + The page with specified index. + + + + Gets the size of specified page, in pixels. + Index of page. + the size of specified page, in pixels. - + - Gets or sets the maximal width for this column, in pixels. + Replaces the prepared page with specified one. + The index of prepared page to replace. + The new page to replace with. - + - Gets or sets a value determines if the column should calculate its width automatically. + Modify the prepared page with new sizes. - - The column width cannot exceed the range defined by the - and properties. - + The name of prepared page to reSize. - + - Gets the index of this column. + Removes a page with the specified index. + The zero-based index of page to remove. - - + + + Saves prepared pages to a stream. + + The stream to save to. - + - Gets or sets the page break flag for this column. + Saves prepared pages to a .fpx file. + The name of the file to save to. - + - Gets or sets the number of columns to keep on the same page. + Loads prepared pages from a stream. + The stream to load from. - - + + + Loads prepared pages from a .fpx file. + + The name of the file to load from. - - + + + Clears the prepared report's pages. + - - + + + Creates the pages of a prepared report + + - + - Initializes a new instance of the class. + Initializes a new instance of the OutlineControl class with default settings. - + - Represents a table cell. + Represents a Windows Forms control used to preview a report. - Use , properties to set the cell's - column and row spans. To put an object inside the cell, use its property: + To use this control, place it on a form and link it to a report using the report's + property. To show a report, call + the Report.Show method: - TableCell cell1; - PictureObject picture1 = new PictureObject(); - picture1.Bounds = new RectangleF(0, 0, 32, 32); - picture1.Name = "Picture1"; - cell1.Objects.Add(picture1); + report1.Preview = previewControl1; + report1.Show(); + Use this control's methods such as , etc. to + handle the preview. Call method to clear the preview. + You can specify whether the standard toolbar is visible in the + property. The property allows you to hide/show the statusbar. + - + - This property is not relevant to this class. + Occurs when current page number is changed. - + - This property is not relevant to this class. + Occurs when Print button clicked. - + - This property is not relevant to this class. + Occurs when Export button clicked. - + - This property is not relevant to this class. + Gets a reference to the report. - + - This property is not relevant to this class. + Obsolete. Gets or sets the color of page border. - + - This property is not relevant to this class. + Gets or sets the color of active page border. - + - This property is not relevant to this class. + Gets or sets the first page offset from the top left corner of the control. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the toolbar is visible. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the statusbar is visible. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the outline control is visible. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Gets a collection of objects contained in this cell. + Specifies the set of buttons available in the toolbar. - + - Gets or sets the column span for this cell. + Specifies the set of exports that will be available in the preview's "save" menu. - + - Gets or sets the row span for this cell. + Specifies the set of exports in clouds that will be available in the preview's "save" menu. - - - - + - Gets the address of this cell. + Gets or sets a value indicating whether the fast scrolling method should be used. + + If you enable this property, the gradient background will be disabled. + - + - This property is not relevant to this class. + Gets or sets the visual style. - + - This property is not relevant to this class. + Gets or sets a value indicating that the BackColor property must be used to draw the background area. + + By default, the background area is drawn using the color defined in the current UIStyle. + - - - - - - - + - Gets the TableBase object which this cell belongs to. + Gets the preview window's toolbar. - - - - + - Creates the exact copy of this cell. + Gets the preview window's statusbar. - The copy of this cell. - + - Determines if two cells have identical settings. + Gets or sets the initial directory that is displayed by a save file dialog. - Cell to compare with. - true if cells are equal. - + - + - Changes the cell's style. + Adds a new report tab to the preview control. - The new style. + The Report object that contains the prepared report. + The title for the new tab. - Each cell in a dynamic table object (or in a matrix) has associated style. - Several cells may share one style. If you try to change the cell's appearance directly - (like setting cell.TextColor), it may affect other cells in the table. - To change the single cell, use this method. + Prepare the report using its Prepare method before you pass it to the report parameter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initializes a new instance of the class. - - - - - The base class for table-type controls such as and - . - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Adds a new report tab to the preview control. + The Report object that contains the prepared report. + The title for the new tab. + If true, makes the new tab active. + + Prepare the report using its Prepare method before you pass it to the report parameter. + - - - - + - This property is not relevant to this class. + Switches to the tab with specified text. + Text of the tab. + true if the tab with specified text exists, or false if there is no such tab. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Gets a collection of table rows. + Deletes the report tab with specified text. + The text of the tab. - + - Gets a collection of table columns. + Checks if the tab with specified text exists. + The text of the tab. + true if the tab exists. - + - Gets or sets the number of fixed rows that will be repeated on each page. + Displays the text in the status bar. + Text to display. - + - Gets or sets the number of fixed columns that will be repeated on each page. + Sets the focus to the preview control. - + - Gets or sets a value that determines whether is necessary to repeat table header on each page. + Prints the current report. - - To define a table header, set the and - properties. - + true if report was printed; false if user cancels the "Print" dialog. - + - Gets or sets a value that determines whether is necessary to repeat table Row header on each page. + Saves the current report to a .fpx file using the "Save FIle" dialog. - - To define a table Row header, set the - properties. - - + - Gets or sets a value that determines whether is necessary to repeat table Column header on each page. + Saves the current report to a specified .fpx file. - - To define a table Column header, set the - properties. - - + - Gets or sets the table layout. + Saves the current report to a stream. - - This property affects printing the big table that breaks across pages. - - + - Gets or sets gap between parts of the table in wrapped layout mode. + Loads the report from a .fpx file using the "Open File" dialog. - - This property is used if you set the property to Wrapped. - - + - Gets or sets a value that determines whether to adjust the spanned cell's width when breaking the table across pages. + Loads the report from a specified .fpx file. - - If set to true, the spanned cell's width will be adjusted to accomodate all contained text. - - + - Gets or sets the table cell. + Load the report from a stream. - Column index. - Row index. - The TableCell object that represents a cell. + The stream to load from. - + - Gets or sets a number of columns in the table. + Sends an email. - + - Gets or sets a number of rows in the table. + Finds the text in the current report using the "Find Text" dialog. - + - Gets a table which contains the result of rendering dynamic table. + Finds the specified text in the current report. - - Use this property to access the result of rendering your table in dynamic mode. - It may be useful if you want to center or right-align the result table on a page. - In this case, you need to add the following code at the end of your ManualBuild event handler: - - // right-align the table - Table1.ResultTable.Left = Engine.PageWidth - Table1.ResultTable.CalcWidth() - 1; - - - - - - - - - - - + Text to find. + A value indicating whether the search is case-sensitive. + A value indicating whether the search matches whole words only. + true if text found. - + - Gets data of the table cell with specified column and row numbers. + Finds the next occurence of text specified in the Find method. - The column number. - The row number. - TableCellData instance containing data of the table cell. + true if text found. - + - Creates unique names for all table elements such as rows, columns, cells. + Navigates to the first page. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Calculates and returns the table width, in pixels. + Navigates to the previuos page. - - - - - - - + - Calculates a sum of values in a specified cell. + Navigates to the next page. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates a minimum of values in a specified cell. + Navigates to the last page. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates a maximum of values in a specified cell. + Gets or sets the current page number. - The cell. - The object that contains calculated value. - This method can be called from the ManualBuild event handler only. + This value is 1-based. - + - Calculates an average of values in a specified cell. + Gets the pages count in the current report. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates number of repeats of a specified cell. + Gets or sets the zoom factor. - The cell. - The object that contains calculated value. - This method can be called from the ManualBuild event handler only. + 1 corresponds to 100% zoom. - - - Initializes a new instance of the class. - - - - - Specifies the layout that will be used when printing a big table. - - - + - The table is printed across a pages then down. + Zooms in. - + - The table is printed down then across a pages. + Zooms out. - + - The table is wrapped. + Zooms to fit the page width. - + - Represents data of the table cell. + Zooms to fit the whole page. - + - Gets or sets parent table of the cell. + Edits the current page in the designer. - + - Gets or sets objects collection of the cell. + Copies the current page in preview. - + - Gets or sets text of the table cell. + Removes the current page in preview. - + - Gets or sets value of the table cell. + Edits the current report in the designer. - + - Gets or sets hyperlink value of the table cell. + Edits the watermark. - + - Gets or sets column span of the table cell. + Edits the page settings. - + - Gets or sets row span of the table cell. + Navigates to the specified position inside a specified page. + The page number (1-based). + The position inside a page, in pixels. - + - Gets or sets the address of the table cell. + Clears the preview. - + - Gets the table cell. + Refresh the report. - + - Gets style of table cell. + Initializes a new instance of the class. - - - Gets original the table cell. + + + Required designer variable. - - - Gets width of the table cell. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets height of the table cell. + Gets or sets the initial directory that is displayed by a save file dialog. - + - Initializes a new instance of the class. + Specifies an action that will be performed on PreparedPages.AddPage method call. - + - Attaches the specified table cell. + Do not add the new prepared page if possible, increment the CurPage instead. - The table cell instance. - This method is called when we load the table. - + - Assigns another instance. + Add the new prepared page. - The table cell data that used as a source. - This method is called when we copy cells or clone columns/rows in a designer. - + - Assigns another instance at run time. + Represents a report object. - The table cell data that used as a source. - This flag shows should children be copied or not. - This method is called when we print a table. We should create a copy of the cell and set the style. + + The instance of this class contains a report. Here are some common + actions that can be performed with this object: + + + To load a report, use the + method or call static method. + + + To save a report, call the method. + + + To register application dataset for use it in a report, call one of the + RegisterData methods. + + + To pass some parameter to a report, use the + method. + + + To design a report, call the method. + + + To run a report and preview it, call the method. + Another way is to call the method, then call the + method. + + + To run a report and print it, call the method. + Another way is to call the method, then call the + method. + + + To load/save prepared report, use one of the LoadPrepared and + SavePrepared methods. + + + To set up some global properties, use the static class + or component that you can use in the Visual Studio IDE. + + + + The report consists of one or several report pages (pages of the + type) and/or dialog forms (pages of the type). + They are stored in the collection. In turn, each page may contain report + objects. See the example below how to create a simple report in code. + + This example shows how to create a report instance, load it from a file, + register the application data, run and preview. + + Report report = new Report(); + report.Load("reportfile.frx"); + report.RegisterData(application_dataset); + report.Show(); + + This example shows how to create simple report in code. + + Report report = new Report(); + // create the report page + ReportPage page = new ReportPage(); + page.Name = "ReportPage1"; + // set paper width and height. Note: these properties are measured in millimeters. + page.PaperWidth = 210; + page.PaperHeight = 297; + // add a page to the report + report.Pages.Add(page); + // create report title + page.ReportTitle = new ReportTitleBand(); + page.ReportTitle.Name = "ReportTitle1"; + page.ReportTitle.Height = Units.Millimeters * 10; + // create Text object and put it to the title + TextObject text = new TextObject(); + text.Name = "Text1"; + text.Bounds = new RectangleF(0, 0, Units.Millimeters * 100, Units.Millimeters * 5); + page.ReportTitle.Objects.Add(text); + // create data band + DataBand data = new DataBand(); + data.Name = "Data1"; + data.Height = Units.Millimeters * 10; + // add data band to a page + page.Bands.Add(data); + + - + - Sets style of the table cell. + Gets a reference to the report designer. - The new style of the table cell. + + This property can be used when report is designing. In other cases it returns null. + - + - Disposes the instance. + Runs the report designer. + true if report was modified, otherwise false. - + - Calculates width of the table cell. + Runs the report designer. - The value of the table cell width. + A value indicates whether the designer should run modally. + true if report was modified, otherwise false. - + - Calculates height of the table cell. + Runs the report designer. - The width of the table cell. - The value of the table cell height. + The main MDI form which will be a parent for the designer. + true if report was modified, otherwise false. - + - Updates layout of the table cell. + Gets the email settings such as recipients, subject, message body. - The width of the table cell. - The height of the table cell. - The new value of x coordinate. - The new value of y coordinate. - + - Represents a result table. + Gets or sets the report preview control. - Do not use this class directly. It is used by the and - objects to render a result. + Use this property to attach a custom preview to your report. To do this, place the PreviewControl + control to your form and set the report's Preview property to this control. - + - Occurs after calculation of table bounds. + Gets the print settings such as printer name, copies, pages to print etc. - - You may use this event to change automatically calculated rows/column sizes. It may be useful - if you need to fit dynamically printed table on a page. - - - - - - - - + - Creates a new instance of the class. + Prepares the report and prints it. - + - Represents a collection of objects. + Prints the report with the "Print" dialog. + Report should be prepared using the method. - + - Gets a column with specified index. + Prints the report without the "Print" dialog. + Report should be prepared using the method. - Index of a column. - The column with specified index. - - - - - - + Printer-specific settings. + + Use the following code if you want to show the "Print" dialog, then print: + + if (report.Prepare()) + { + PrinterSettings printerSettings = null; + if (report.ShowPrintDialog(out printerSettings)) + { + report.PrintPrepared(printerSettings); + } + } + + - + - Represents a collection of objects. + Prepares the report and shows it in the preview window. - + - Gets a row with specified index. + Prepares the report and shows it in the preview window. - Index of a row. - The row with specified index. - - - - - - + A value that specifies whether the preview window should be modal. - + - Represents the Text object that may display one or several text lines. + Prepares the report and shows it in the preview window. - - Specify the object's text in the Text property. - Text may contain expressions and data items, for example: "Today is [Date]". When report - is running, all expressions are calculated and replaced with actual values, so the text - would be "Today is 01.01.2008". - The symbols used to find expressions in a text are set in the - Brackets property. You also may disable expressions - using the AllowExpressions property. - To format an expression value, use the property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - + A value that specifies whether the preview window should be modal. + The owner of the preview window. - - + + + Prepares the report and shows it in the preview window. + + The main MDI form which will be a parent for the preview window. - - + + + Previews the report. The report should be prepared using the method. + - - + + + Previews the prepared report. + + A value that specifies whether the preview window should be modal. - - + + + Previews the prepared report. + + A value that specifies whether the preview window should be modal. + The owner of the preview window. - - + + + Previews the prepared report. + + The main MDI form which will be a parent for the preview window. - + - Gets or sets a paragraph format for a new html rendering type, not for others rendering + Shows the "Print" dialog. + Printer-specific settings. + true if the dialog was closed by "Print" button. + + Use the following code if you want to show the "Print" dialog, then print: + + if (report.Prepare()) + { + PrinterSettings printerSettings = null; + if (report.ShowPrintDialog(out printerSettings)) + { + report.PrintPrepared(printerSettings); + } + } + + - + - Gets or sets a value that determines if the text object should handle its width automatically. + Occurs when calc execution is started. - + - Gets or sets a value that indicates whether the font size should shrink to - display the longest text line without word wrap. + Occurs when report is inherited and trying to load a base report. - To limit the minimum size, use the property. + Typical use of this event is to load the base report from a database instead of a file. - + - Gets or sets the minimum size of font (or minimum width ratio) if the - mode is on. + Occurs when report execution is started. - - This property determines the minimum font size (in case the property is set to - FontSize), or the minimum font width ratio (if AutoShrink is set to FontWidth). - The default value is 0, that means no limits. - - + - Gets or sets the horizontal alignment of a text in the TextObject object. + Occurs when report execution is finished. - + - Gets or sets the vertical alignment of a text in the TextObject object. + Gets the pages contained in this report. + + This property contains pages of all types (report and dialog). Use the is/as operators + if you want to work with pages of ReportPage type. + + The following code demonstrates how to access the first report page: + + ReportPage page1 = report1.Pages[0] as ReportPage; + + - + - Gets or sets the text angle, in degrees. + Gets the report's data. + + The dictionary contains all data items such as connections, data sources, parameters, + system variables. + - + - Gets or sets a value that indicates whether the component should draw right-to-left for RTL languages. + Gets the collection of report parameters. + + Parameters are displayed in the "Data" window under the "Parameters" node. + Typical use of parameters is to pass some static data from the application to the report. + You can print such data, use it in the data row filter, script etc. + Another way to use parameters is to define some reusable piece of code, for example, + to define an expression that will return the concatenation of first and second employee name. + In this case, you set the parameter's Expression property to something like this: + [Employees.FirstName] + " " + [Employees.LastName]. Now this parameter may be used in the report + to print full employee name. Each time you access such parameter, it will calculate the expression + and return its value. + You can create nested parameters. To do this, add the new Parameter to the + Parameters collection of the root parameter. To access the nested parameter, you may use the + method. + To get or set the parameter's value, use the and + methods. To set the parameter's expression, use the + method that returns a Parameter object and set its + Expression property. + - + - Gets or sets a value that indicates if lines are automatically word-wrapped. + Gets or sets the report information such as report name, author, description etc. - + - Gets or sets a value that determines if the text object will underline each text line. + Gets or sets the base report file name. + + This property contains the name of a report file this report is inherited from. + Note: setting this property to non-empty value will clear the report and + load the base file into it. + - + - Gets or sets the font settings for this object. + Gets or sets the name of a file the report was loaded from. + + This property is used to support the FastReport.Net infrastructure; + typically you don't need to use it. + - + - Gets or sets the fill color used to draw a text. + Gets or sets the report script. - Default fill is . You may specify other fill types, for example: - - text1.TextFill = new HatchFill(Color.Black, Color.White, HatchStyle.Cross); - - Use the property to set the solid text color. + The script contains the ReportScript class that contains all report objects' + event handlers and own items such as private fields, properties, methods etc. The script + contains only items written by you. Unlike other report generators, the script does not + contain report objects declarations, initialization code. It is added automatically when + you run the report. + By default this property contains an empty script text. You may see it in the designer + when you switch to the Code window. + If you set this property programmatically, you have to declare the FastReport + namespace and the ReportScript class in it. Do not declare report items (such as bands, + objects, etc) in the ReportScript class: the report engine does this automatically when + you run the report. + Security note: since the report script is compiled into .NET assembly, it allows + you to do ANYTHING. For example, you may create a script that will read/write files from/to a disk. + To restrict such operations, use the property. - + - Gets or sets the text outline. + Gets or sets the script language of this report. + + Note: changing this property will reset the report script to default empty script. + - + - Gets or sets the text color in a simple manner. + Gets or sets a value indicating whether the null DB value must be converted to zero, false or + empty string depending on the data column type. - This property can be used in a report script to change the text color of the object. It is - equivalent to: textObject1.TextFill = new SolidFill(color); + This property is true by default. If you set it to false, you should check + the DB value before you do something with it (for example, typecast it to any type, use it + in a expression etc.) - + - Gets or sets the string trimming options. + Gets or sets a value that specifies whether the report engine should perform the second pass. + + Typically the second pass is necessary to print the number of total pages. It also + may be used to perform some calculations on the first pass and print its results on the + second pass. + Use the Engine.FirstPass, Engine.FinalPass properties to determine which + pass the engine is performing now. + - + - Gets or sets the width ratio of the font. + Gets or sets a value that specifies whether to compress the report file. - Default value is 1. To make a font wider, set a value grether than 1; to make a font narrower, - set a value less than 1. + The report file is compressed using the Gzip algorithm. So you can open the + compressed report in any zip-compatible archiver. - + - Gets or sets the height of single text line, in pixels. + Gets or sets a value that specifies whether to use the file cache rather than memory + to store the prepared report pages. - + - Gets or sets the offset of the first TAB symbol. + Gets or sets a value that specifies the quality of text rendering. + + Note: the default property value is TextQuality.Default. That means the report + may look different depending on OS settings. This property does not affect the printout. + - + - Gets or sets the width of TAB symbol, in pixels. + Gets or sets a value that specifies if the graphic objects such as bitmaps + and shapes should be displayed smoothly. - + - Gets or sets a value that indicates if text should be clipped inside the object's bounds. + Gets or sets the report password. + + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in this property before loading + the report. In this case the report will load silently. + Password-protected report file is crypted using Rijndael algorithm. + Do not forget your password! It will be hard or even impossible to open + the protected file in this case. + - + - Gets the collection of conditional highlight attributes. + Gets or sets a value indicating whether it is necessary to automatically fill + DataSet registered with RegisterData call. - Conditional highlight is used to change the visual appearance of the Text object - depending on some condition(s). For example, you may highlight negative values displayed by - the Text object with red color. To do this, add the highlight condition: - - TextObject text1; - HighlightCondition highlight = new HighlightCondition(); - highlight.Expression = "Value < 0"; - highlight.Fill = new SolidFill(Color.Red); - highlight.ApplyFill = true; - text1.Highlight.Add(highlight); - + If this property is true (by default), FastReport will automatically fill + the DataSet with data when you trying to run a report. Set it to false if + you want to fill the DataSet by yourself. - + - Gets or sets a value that indicates if the text object should display its contents similar to the printout. + Gets or sets the maximum number of generated pages in a prepared report. + + Use this property to limit the number of pages in a prepared report. + - + - Forces justify for the last text line. + Gets or sets the collection of styles used in this report. - + - Allows handling html tags in the text. + Gets or sets an array of assembly names that will be used to compile the report script. - The following html tags can be used in the object's text: <b>, <i>, <u>, - <strike>, <sub>, <sup>, </b>, </i>, </u>, - </strike>, </sub>, </sup>, - <font color=&...&>, </font>. Font size cannot - be changed due to limitations in the rendering engine. + By default this property contains the following assemblies: "System.dll", "System.Drawing.dll", + "System.Windows.Forms.dll", "System.Data.dll", "System.Xml.dll". If your script uses some types + from another assemblies, you have to add them to this property. - + - Indicates handling html tags in the text. + Gets or sets a script event name that will be fired when the report starts. - To set the value use the TextRenderer property. - + - The type of text render + Gets or sets a script event name that will be fired when the report is finished. - /// - The following html tags can be used in the object's text: <b>, <i>, <u>, - <strike>, <sub>, <sup>, </b>, </i>, </u>, - </strike>, </sub>, </sup>, - <font color=&...&>, </font>. Font size cannot - be changed due to limitations in the rendering engine. - - + - Gets or sets the paragraph offset, in pixels. + Gets a value indicating that report execution was aborted. - + - Cache for inline images + Gets or sets a value that determines whether to store the report in the application resources. + Use this property in the MS Visual Studio IDE only. + + By default this property is true. When set to false, you should store your report + in a file. + - - - - - - - + - Draws a text. + Gets or sets the resource string that contains the report. - Paint event data. + + This property is used by the MS Visual Studio to store the report. Do not use it directly. + - - + + + Gets a value indicating that this report contains dialog forms. + - - + + + Gets or sets a set of permissions that will be restricted for the script code. + + + Since the report script is compiled into .NET assembly, it allows you to do ANYTHING. + For example, you may create a script that will read/write files from/to a disk. This property + is used to restrict such operations. + This example shows how to restrict the file IO operations in a script: + + using System.Security; + using System.Security.Permissions; + ... + PermissionSet ps = new PermissionSet(PermissionState.None); + ps.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); + report1.ScriptRestrictions = ps; + report1.Prepare(); + + + - - + + + Gets a reference to the graphics cache for this report. + + + This property is used to support the FastReport.Net infrastructure. Do not use it directly. + - - + + + Gets a pages of the prepared report. + - - + + + Gets a reference to the report engine. + + + This property can be used when report is running. In other cases it returns null. + - - + + + Gets or sets the initial page number for PageN/PageNofM system variables. + - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - - + + + Gets the report operation that is currently performed. + - - + + + Gets or sets the flag for refresh. + - + - - - Calculates the object's width. - - The width, in pixels. + + - + - + - + - - - Initializes a new instance of the class with default settings. - + + - - - Base class for text objects such as and . - - - This class implements common functionality of the text objects. - + + - + - + - + - - - Gets or sets a value indicating that the object's text may contain expressions. - + + - + - Gets or sets the symbols that will be used to find expressions in the object's text. + Initializes the report's fields. - The default property value is "[,]". As you can see, the open and close symbols are - separated by the comma. You may use another symbols, for example: "<,>" or "<%,%>". - You should use different open and close symbols. + This method is for internal use only. - + - Gets or sets the object's text. + Generates the file (.cs or .vb) that contains the report source code. + Name of the file. - Text may contain expressions and data items, for example: "Today is [Date]". - When report is running, all expressions are calculated and replaced with actual - values, so the text would be "Today is 01.01.2008". + Use this method to generate the report source code. This code can be attached to your project. + In this case, you will need to call the following code to run a report: + + SimpleListReport report = new SimpleListReport(); + report.RegisterData(your_dataset); + report.Show(); + - + - Gets or sets padding within the text object. + Calculates an expression and returns the result. + The expression to calculate. + If report is running, returns the result of calculation. + Otherwise returns null. + + The expression may be any valid expression such as "1 + 2". The expression + is calculated in the report script's ReportScript class instance context, + so you may refer to any objects available in this context: private fields, + methods, report objects. + - + - Gets or sets a value indicating that zero values must be hidden. + Calculates an expression and returns the result. + The expression to calculate. + The value of currently printing object. + If report is running, returns the result of calculation. + Otherwise returns null. + + Do not call this method directly. Use the Calc(string expression) method instead. + - + - Gets or sets a value that will be hidden. + Returns an expression value. + The expression. + The value of currently printing object. + Returns the result of calculation. - Use this property to specify a value that you would like to hide. For example, specify "0" - if you want to hide zero values, or use property to do this. - You also may use this property to hide default DateTime values (such as 1/1/1900). - In this case you need to specify a string containing both date and time, for example: - "1/1/1900 0:00:00". - - FastReport uses the ToString conversion to compare the expression value with this property. - This conversion depends on regional settings selected in the Control Panel, so be aware of this - if you going to distribute your report worldwide. - + This method is for internal use only, do not call it directly. - + - Gets or sets a string that will be displayed instead of a null value. + Invokes the script event handler with given name. + The name of the script method. + The method parameters. - + - Gets or sets the formatter that will be used to format data in the Text object. + Gets the data column's value. Automatically converts null value to 0, false or "" + depending on the column type. + The name of the data column including the datasource name. + If report is running, returns the column value. Otherwise returns null. - The default formatter does nothing, i.e. it shows expression values with no formatting. - To set another formatting, create a new formatter and assign it to this property. - If there are several expressions in the text, use the property - to format each expression value. + The return value of this method does not depend on the property. - This example shows how to set currency formatter. + - TextObject text1; - text1.Format = new CurrencyFormat(); + string employeeName = (string)report.GetColumnValue("Employees.FirstName"); - + - Gets or sets a value that specifies how the report engine processes this text object. + Gets the data column's value. This method does not convert null values. - - Use this property to perform such task as "print a total value in the group header". Normally, - all total values are calculated in the footers (for example, in a group footer). If you try to print - a total value in the group header, you will get 0. If you set this property to - ProcessAt.DataFinished, FastReport will do the following: - - - print the object (with wrong value); - - - print all related data rows; - - - calculate the correct object's value and replace old (wrong) value with the new one. - - - - This option will not work if you set the to true. - - + The name of the data column including the datasource name. + If report is running, returns the column value. + Otherwise returns null. - + - Gets the collection of formatters. + Gets the report parameter with given name. + The name of the parameter. + The object if found, otherwise null. - This property is used to set format for each expression contained in the text. - For example, if the TextObject contains two expressions: - Today is [Date]; Page [PageN] - you can use the following code to format these expressions separately: - - text1.Formats.Clear(); - text1.Formats.Add(new DateFormat()); - text1.Formats.Add(new NumberFormat()); - + To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - + - Gets or sets a value that determines how to display duplicate values. + Gets a value of the parameter with given name. + The name of the parameter. + The parameter's value if found, otherwise null. + + To find nested parameter, use the "." separator: "MainParameter.NestedParameter" + - + - Gets a value of expression contained in the object's text. + Sets the parameter's value. + The name of the parameter. + Value to set. + + Use this method to pass a value to the parameter that you've created in the "Data" window. + Such parameter may be used everythere in a report; for example, you can print its value + or use it in expressions. + You should call this method after the report was loaded and before you run it. + To access a nested parameter, use the "." separator: "MainParameter.NestedParameter" + + This method will create the parameter if it does not exist. + + + This example shows how to pass a value to the parameter with "MyParam" name: + + // load the report + report1.Load("report.frx"); + // setup the parameter + report1.SetParameterValue("MyParam", 10); + // show the report + report1.Show(); + + - + - Gets or sets editable for pdf export + Gets a value of the system variable with specified name. + Name of a variable. + The variable's value if found, otherwise null. - - - - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Gets a value of the total with specified name. + Name of total. + The total's value if found, otherwise 0. + This method converts null values to 0 if the property is set to true. + Use the method if you don't want the null conversion. + - + - Provides a type converter for a property representing a data type. + Gets a value of the total with specified name. + Name of total. + The total's value if found, otherwise null. - - - - - - - - - - - - - + - Provides a type converter for a property representing a reference to another component in a report. + Gets the datasource with specified name. + Alias name of a datasource. + The datasource object if found, otherwise null. - - - - - - - - - - + - + - Provides a type converter for a property representing a value measured in the current report units. + Aborts the report execution. - - - - - - - + - + - + - Provides a type converter for a property representing an expandable object. + Updates the report component's styles. + + Call this method if you change the collection. + - - - - - - - - - - - - - + - Contains some configuration properties and settings that will be applied to the FastReport.Net - environment, including Report, Designer and Preview components. + Sets prepared pages. + - + - Gets the autosaved report + This method fires the StartReport event and the script code connected + to the StartReportEvent. - + - Gets the atuosaved report path + This method fires the FinishReport event and the script code connected + to the FinishReportEvent. - - - Gets the folder to store auto save files - + + - - - Gets or sets the settings for the report designer window. - + + - + - Gets a value indicating that the ASP.NET hosting permission level is set to full trust. + Saves the report to a stream. + The stream to save to. - + - Gets or sets a value indicating whether SplashScreen should be displayed while loading designer + Saves the report to a file. + The name of the file to save to. - + - Gets or sets the UI style. + Loads report from a stream. + The stream to load from. - This property affects both designer and preview windows. + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in the + property before loading the report. In this case the report will load silently. - - - Gets or sets a value indicating whether the Ribbon UI should be used - - - + - Gets or sets a value that determines whether to disable some functionality to run in web mode. + Loads the report from a file. + The name of the file to load from. - Use this property if you use FastReport in ASP.Net. Set this property to true before - you access any FastReport.Net objects. + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in the + property before loading the report. In this case the report will load silently. - + - Gets or sets a value indicating whether Welcome window feature enabled. - If false, interface elements associated with the Welcome window will not be visible. + Loads the report from a string. + The string that contains a stream in UTF8 or Base64 encoding. - + - Gets or sets a value indicating whether Welcome window shoud be displayed on startup + Saves the report to a string. + The string that contains a stream. - + - Restores the form state from the configuration file. + Saves the report to a string using the Base64 encoding. - The form to restore. + The string that contains a stream. - + - Saves the form state to the configuration file. + Creates the report instance and loads the report from a stream. - The form to save. + The stream to load from. + The new report instance. - + - Gets or sets the settings for the preview window. + Creates the report instance and loads the report from a file. + The name of the file to load from. + The new report instance. - + - Gets or sets the optimization of strings. Is experimental feature. + Creates the report instance and loads the report from a string. + The string that contains a stream in UTF8 encoding. + The new report instance. - + - Gets the application folder. + Registers the application dataset with all its tables and relations to use it in the report. + The application data. + + If you register more than one dataset, use the method. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1); + + - + - Gets or sets the settings for the "Send Email" window. + Registers the application dataset with all its tables and relations to use it in the report and enables all its tables. + The application data. + The boolean value indicating whether all tables should be enabled. + + If you register more than one dataset, use the method. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, true); + + - + - Gets an english culture information for localization purposes + Registers the application dataset with specified name. - - + The application data. + The name of the data. + + Use this method if you register more than one dataset. You may specify any value + for the name parameter: it is not displayed anywhere in the designer and used only + to load/save a report. The name must be persistent and unique for each registered dataset. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, "NorthWind"); + + + + - Gets or sets the path used to load/save the configuration file. + Registers the application dataset with specified name and enables all its tables. + The application data. + The name of the data. + The boolean value indicating whether all tables should be enabled. - By default, the configuration file is saved to the application local data folder - (C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\). - Set this property to "" if you want to store the configuration file in the application folder. + Use this method if you register more than one dataset. You may specify any value + for the name parameter: it is not displayed anywhere in the designer and used only + to load/save a report. The name must be persistent and unique for each registered dataset. + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, "NorthWind", true); + + - + - Gets or sets the settings for the Report component. + Registers the application data table to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1.Tables["Orders"], "Orders"); + + - + - Gets or sets a value indicating whether RTL layout should be used. + Registers the application data view to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myDataView, "OrdersView"); + + - + - Gets the root item of config xml. + Registers the application data relation to use it in the report. + The application data. + The name of the data. + + You may specify any value for the name parameter: it is not displayed anywhere + in the designer and used only to load/save a report. The name must be persistent + and unique for each registered relation. + + + + report1.Load("report.frx"); + report1.RegisterData(myDataRelation, "myRelation"); + + - + - Gets or sets the path to the temporary folder used to store temporary files. + Obsolete. Registers the application business object to use it in the report. + Application data. + Name of the data. + Not used. + Maximum nesting level of business objects. - The default value is null, so the system temp folder will be used. + This method is obsolete. Use the method instead. - + - Gets FastReport version. + Registers the application business object to use it in the report. + Application data. + Name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myBusinessObject, "Customers"); + + - + - The interface for unifying methods for drawing objects into different graphics + Registers the application business object to use it in the report. + Application data. + Name of the data. + Maximum nesting level of business objects. + + This method creates initial datasource with specified nesting level. It is useful if + you create a report in code. In most cases, you don't need to specify the nesting level + because it may be selected in the designer's "Choose Report Data" dialog. + - + - in this case if a baseline is needed, it will not be calculated + Registers the application cube link to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myCubeLink, "Orders"); + + - + - Works with polygons only + Prepares the report. - - + true if report was prepared succesfully. - + - the interface for saving and restoring state + Prepares the report. + Specifies whether the new report should be added to a + report that was prepared before. + true if report was prepared succesfully. + + Use this method to merge prepared reports. + + This example shows how to merge two reports and preview the result: + + Report report = new Report(); + report.Load("report1.frx"); + report.Prepare(); + report.Load("report2.frx"); + report.Prepare(true); + report.ShowPrepared(); + + - + - Drawing objects to a standard image in Bitmap + For internal use only. - + - baseLine is ignored + For internal use only. - + - Drawing objects to a svg string + Refresh the current report. + + Call this method in the Click or MouseUp event handler of a report object to refresh + the currently previewed report. Report will be generated again, but without dialog forms. + - + - For setting namespace, clear all attributes on setting, therefore use this property before setting other svg options + Refresh prepared report after intercative actions. - + - Initialize a new Graphics for SVG, it's rendered to xml, layer by layer, not one image, - set the Size of this graphics in Size property + Prepare page + - + - Returns splited string + Exports a report. Report should be prepared using the method. - text for splitting - index of first character of second string - second part of string - returns true if ends on enter - first part of string + The export filter. + Stream to save export result to. - + - Check the line, and if last word is able to move next line, move it. - e.g. white space won't move to next line. - If word is not moved return current line. - else return new line + Exports a report. Report should be prepared using the method. - the paragraph for lines - the line with extra words - the index of start last word in this line - width to place words - ref to current line width - + The export filter. + File name to save export result to. - + - Represents character placement. + Saves the prepared report. Report should be prepared using the method. + File name to save to. - + - Be care generates dictionary only one time + Saves the prepared report. Report should be prepared using the method. + Stream to save to. - + - Return true if read char + Loads the prepared report from a .fpx file. - + File name to load form. - + - Represents a style used in HtmlTags mode. Color does not affect the equals function. + Loads the prepared report from a .fpx file. + Stream to load from. - + - returns true if objects realy equals + Initializes a new instance of the class with default settings. - - - + - Holds the information about the registered object. + Ensure that static constructor is called. - + - Image. + Create name for all unnamed elements with prefix and start with number + Prefix for name + Number from which to start - + - Image index. + Base class for all report objects. - + - Name of object or category. + This event occurs when the user moves the mouse over the object in the preview window. - + - The registered object. + This event occurs when the user releases the mouse button in the preview window. - + - The registered function. + This event occurs when the user clicks the mouse button in the preview window. - + - Tooltip text. + This event occurs when the mouse enters the object's bounds in the preview window. - + - Flags that will be used to create an object instance in the designer. + This event occurs when the mouse leaves the object's bounds in the preview window. - + - Indicates whether this object can be inserted several times simultaneously. + Copies event handlers from another similar object. - - This is applied to Line object only. - + The object to copy handlers from. - + - Gets or sets the enabled flag for the object. + This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Event data. - + - List of subitems. + This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Event data. - + - Enumerates all objects. + This method fires the MouseDown event and the script code connected to the MouseDownEvent. - List that will contain enumerated items. + Event data. - + - Contains all registered report items such as objects, export filters, wizards. + This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. - - Use this class to register own components, wizards, export filters or another items that - need to be serialized to/from a report file. - - - - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - // register own report object - RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); - - + Event data. - + - Registers a new cloud storage client. + This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. - Type of cloud storage client. - Text for cloud storage client's menu item. - - The obj must be of type. - - - - // register own cloud storage client - RegisteredObjects.AddCloud(typeof(MyCloud), "My Cloud"); - - + Event data. - + - Registers a new messenger. + This method is fired when the user scrolls the mouse in the preview window. - Type of messenger. - Text messenger's menu item. - - The obj must be of type. - - - - // register own messenger - RegisteredObjects.AddMessenger(typeof(MyMessenger), "My Messenger"); - - + Event data. - + + + + + + + + + + + + + - Registers a new wizard. + Assigns a format from another, similar object. - Type of wizard. - Image for wizard item. - Text for wizard item. - true if this wizard creates some items in existing report. - - The obj must be of type. - - This example shows how to register own wizard that is used to create some items in the - current report. If you want to register a wizard that will be used to create a new report, - set the isReportItemWizard to false. - - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - - + Source object to assign a format from. - - - - - - - + + - + + + + - Root object for all registered objects. + Draws the object's markers. + Draw event arguments. - + - Checks whether the specified type is registered already. + Draws the object's markers. - Type to check. - true if such type is registered. + Draw event arguments. + Marker style - + + + + + + + + + + - Registers a category that may contain several report objects. + This event occurs before the object is added to the preview pages. - Category name. - Image for category button. - Text for category button. - - Category is a button on the "Objects" toolbar that shows context menu with nested items - when you click it. Consider using categories if you register several report objects. It can - save space on the "Objects" toolbar. For example, FastReport registers one category called "Shapes" - that contains the LineObject and different types of ShapeObject. - The name of category must starts either with "ReportPage," or "DialogPage," depending on - what kind of controls do you need to regiter in this category: report objects or dialog controls. - After the comma, specify the category name. So the full category name that you need to specify - in the name parameter, must be something like this: "ReportPage,Shapes". - - When register an object inside a category, you must specify the full category name in the - category parameter of the Add method. - - + - Register Export category. + This event occurs after the object was added to the preview pages. - Category name. - Category text. - + - Registers a new export filter. + This event occurs after the object was filled with data. - Type of export filter. - Text for export filter's menu item. - - The obj must be of type. - - - - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - - - + - + This event occurs when the user clicks the object in the preview window. - + - Registers data connection. + Gets or sets a value that determines if the object can be exported. + + + + + Gets or sets an object's border. + + + + + Gets or sets an object's fill. - Type of connection. - The obj must be of type. + The fill can be one of the following types: , , + , . + To set the solid fill color, use the simpler property. - + This example shows how to set the new fill and change its properties: - // register data connection - RegisteredObjects.AddConnection(typeof(MsSqlDataConnection)); + textObject1.Fill = new SolidFill(Color.Green); + (textObject1.Fill as SolidFill).Color = Color.Red; - + - + - Registers custom data connection. + Gets or sets the fill color in a simple manner. - Type of connection. - Name of connection. - The obj must be of type. + This property can be used in a report script to change the fill color of the object. It is + equivalent to: reportComponent1.Fill = new SolidFill(color); - - - // register data connection - RegisteredObjects.AddConnection(typeof(MyDataConnection), "My Data Connection"); - - - + - Registers an object in the specified category. + Gets or sets a bookmark expression. - Type of object to register. - Name of category to register in. - Index of image for object's button. + + This property can contain any valid expression that returns a bookmark name. This can be, for example, + a data column. To navigate to a bookmark, you have to use the property. + - + - Registers an object in the specified category with button's image and text. + Gets or sets a hyperlink. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - You must specify either the page type name or existing category name in the category parameter. - The report objects must be registered in the "ReportPage" category or custom category that is - registered in the "ReportPage" as well. The dialog controls must be registered in the "DialogPage" - category or custom category that is registered in the "DialogPage" as well. - If you want to register an object that needs to be serialized, but you don't want - to show it on the toolbar, pass empty string in the category parameter. - - - - - // register the report object - RegisteredObjects.Add(typeof(MyReportObject), "ReportPage", myReportObjectBmp, "My Report Object"); - // register the dialog control - RegisteredObjects.Add(typeof(MyDialogControl), "DialogPage", myDialogControlBmp, "My Dialog Control"); - // add a category and register an object inside it - RegisteredObjects.AddCategory("ReportPage,MyCategory", myCategoryBmp, "My Category"); - // register another report object in MyCategory - RegisteredObjects.Add(typeof(MyReportObject), "ReportPage,MyCategory", - anotherReportObjectBmp, "Another Report Object"); - - + The hyperlink is used to define clickable objects in the preview. + When you click such object, you may navigate to the external url, the page number, + the bookmark defined by other report object, or display the external report. + Set the Kind property of the hyperlink to select appropriate behavior. + Usually you should set the Expression property of the hyperlink to + any valid expression that will be calculated when this object is about to print. + The value of an expression will be used for navigation. + If you want to navigate to + something fixed (URL or page number, for example) you also may set the Value + property instead of Expression. + - + - Registers an object in the specified category with button's image, text and object's flags. + Determines if the object can grow. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - Integer value that will be passed to object's OnBeforeInsert method. - See the method for more details. - To learn about flags, see the method. + This property is applicable to the bands or text objects that can contain several text lines. + If the property is set to true, object will grow to display all the information that it contains. - + - Registers an object in the specified category with button's image, text, object's flags and multi-insert flag. + Determines if the object can shrink. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - Integer value that will be passed to object's OnBeforeInsert method. - Specifies whether the object may be inserted several times until you - select the "arrow" button or insert another object. - See the method for more details. - To learn about flags, see the method. + This property is applicable to the bands or text objects that can contain several text lines. + If the property is set to true, object can shrink to remove the unused space. - + - Adds a new function category. + Determines if the object must grow to the band's bottom side. - Short name of category. - Display name of category. - Short name is used to reference the category in the subsequent - method call. It may be any value, for example, "MyFuncs". Display name of category is displayed - in the "Data" window. In may be, for example, "My Functions". - The following standard categories are registered by default: - - - "Math" - - - "Text" - - - "DateTime" - - - "Formatting" - - - "Conversion" - - - "ProgramFlow" - - + If the property is set to true, object grows to the bottom side of its parent. This is useful if + you have several objects on a band, and some of them can grow or shrink. - - This example shows how to register a new category: - - RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); - - - - - - Adds a new function into the specified category. - - MethodInfo containing all necessary information about the function. - The name of category to register the function in. - - Your function must be a static, public method of a public class. - The following standard categories are registered by default: - - - "Math" - - - "Text" - - - "DateTime" - - - "Formatting" - - - "Conversion" - - - "ProgramFlow" - - - You may use one of the standard categories, or create a new category by the - method call. - FastReport uses XML comments to display your function's description. - To generate XML comments, enable it in your project's properties - ("Project|Properties..." menu, "Build" tab, enable the "XML documentation file" checkbox). - - - The following example shows how to register own functions: - - public static class MyFunctions - { - /// <summary> - /// Converts a specified string to uppercase. - /// </summary> - /// <param name="s">The string to convert.</param> - /// <returns>A string in uppercase.</returns> - public static string MyUpperCase(string s) - { - return s == null ? "" : s.ToUpper(); - } - - /// <summary> - /// Returns the larger of two 32-bit signed integers. - /// </summary> - /// <param name="val1">The first of two values to compare.</param> - /// <param name="val2">The second of two values to compare.</param> - /// <returns>Parameter val1 or val2, whichever is larger.</returns> - public static int MyMaximum(int val1, int val2) - { - return Math.Max(val1, val2); - } - - /// <summary> - /// Returns the larger of two 64-bit signed integers. - /// </summary> - /// <param name="val1">The first of two values to compare.</param> - /// <param name="val2">The second of two values to compare.</param> - /// <returns>Parameter val1 or val2, whichever is larger.</returns> - public static long MyMaximum(long val1, long val2) - { - return Math.Max(val1, val2); - } - } - - // register a category - RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); - - // obtain MethodInfo for our functions - Type myType = typeof(MyFunctions); - MethodInfo myUpperCaseFunc = myType.GetMethod("MyUpperCase"); - MethodInfo myMaximumIntFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(int), typeof(int) }); - MethodInfo myMaximumLongFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(long), typeof(long) }); - - // register simple function - RegisteredObjects.AddFunction(myUpperCaseFunc, "MyFuncs"); - - // register overridden functions - RegisteredObjects.AddFunction(myMaximumIntFunc, "MyFuncs,MyMaximum"); - RegisteredObjects.AddFunction(myMaximumLongFunc, "MyFuncs,MyMaximum"); - - - + - Finds the registered object's info. + Gets or sets a shift mode of the object. - The type of object to find. - The object's info. - This method can be used to disable some objects, for example: - RegisteredObjects.FindObject(typeof(PDFExport)).Enabled = false; + + See enumeration for details. - + - Register and override the method with method name in the type. - For property use the property name and _Get or _Set suffix. + Gets or sets the style name. - Type for registering method - Name of method fir registering - Method for registering + + Style is a set of common properties such as border, fill, font, text color. The Report + has a set of styles in the property. + - + - Gets the method or null if method is not found + Gets or sets a style name that will be applied to even band rows. - Type for method finding - Name for method finfing - Use True value for inheritance the method from base type, use false for get the method only from the this type - + + Style with this name must exist in the collection. + - + - Used to get localized values from the language resource file. + Gets or sets a style name that will be applied to this object when the mouse pointer is over it. - The resource file used by default is english. To load another locale, call - the method. It should be done at application start - before you use any FastReport classes. + Style with this name must exist in the collection. - + - Gets the standard images used in FastReport as an ImageList. + Gets or sets a value that determines which properties of the even style to use. - ImageList object that contains standard images. - FastReport contains about 240 truecolor images of 16x16 size that are stored in one - big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + Usually you will need only the Fill property of the even style to be applied. If you want to + apply all style settings, set this property to StylePriority.UseAll. - + - Gets an image with specified index. + Gets or sets a value that determines where to print the object. - Image index (zero-based). - The image with specified index. - FastReport contains about 240 truecolor images of 16x16 size that are stored in one - big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + See the enumeration for details. - + - Gets an image with specified index and converts it to Icon. + Gets or sets a script event name that will be fired before the object will be printed in the preview page. - Image index (zero-based). - The Icon object. - + - Gets or set the folder that contains localization files (*.frl). + Gets or sets a script event name that will be fired after the object was printed in the preview page. - + - Returns the current UI locale name, for example "en". + Gets or sets a script event name that will be fired after the object was filled with data. - + - Loads the locale from a file. + Gets or sets a script event name that will be fired when the user click the object in the preview window. - The name of the file that contains localized strings. - + - Loads the locale from a stream. + Determines if the object has custom border and use only Border.Width, Border.Style and + Border.Color properties. - The stream that contains localized strings. + + This flag is used to disable some toolbar buttons when such object is selected. Applicable to the + ShapeObject and LineObject. + - + - Loads the english locale. + Determines if the object uses the Border. + + This flag is used to disable some toolbar buttons when such object is selected. + - + - Gets a string with specified ID. + Determines if the object uses the fill. - The resource ID. - The localized string. - Since the locale file is xml-based, it may contain several xml node levels. For example, - the file contains the following items: - - <Objects> - <Report Text="Report"/> - <Bands Text="Bands"> - <ReportTitle Text="Report Title"/> - </Bands> - </Objects> - - To get the localized "ReportTitle" value, you should pass the following ID - to this method: "Objects,Bands,ReportTitle". + This flag is used to disable some toolbar buttons when such object is selected. - + - Get builtin string. + Gets or sets a value indicates that object should not be added to the preview. - - - + - Replaces the specified locale string with the new value. + Determines if serializing the Style property is needed. - Comma-separated path to the existing locale string. - The new string. - Use this method if you want to replace some existing locale value with the new one. + The Style property must be serialized last. Some ancestor classes may turn off the standard Style + serialization and serialize it by themselves. - - - Res.Set("Messages,SaveChanges", "My text that will appear when you close the designer"); - - - + - Tries to get a string with specified ID. + Determines if an object can provide the hyperlink value automatically. - The resource ID. - The localized value, if specified ID exists; otherwise, the ID itself. + + This flag is used in complex objects such as Matrix or Chart. These objects can provide + a hyperlink value automatically, depending on where you click. + - + - Tries to get builtin string with specified ID. + Gets an object's parent band. - - - + - Checks if specified ID exists. + Gets an object's parent data band. - The resource ID. - true if specified ID exists. - + - Resource loader class. + Gets or sets an object's cursor shape. + + This property is used in the preview mode. + - + - Gets a bitmap from specified assembly resource. + Gets or sets a script event name that will be fired when the user + moves the mouse over the object in the preview window. - Assembly name. - Resource name. - Bitmap object. - + - Gets a bitmap from specified FastReport assembly resource. + Gets or sets a script event name that will be fired when the user + releases the mouse button in the preview window. - Resource name. - Bitmap object. - + - Gets a cursor from specified assembly resource. + Gets or sets a script event name that will be fired when the user + clicks the mouse button in the preview window. - Assembly name. - Resource name. - Cursor object. - + - Gets a cursor from specified FastReport assembly resource. + Gets or sets a script event name that will be fired when the + mouse enters the object's bounds in the preview window. - Resource name. - Cursor object. - + - Gets an icon from specified assembly resource. + Gets or sets a script event name that will be fired when the + mouse leaves the object's bounds in the preview window. - Assembly name. - Resource name. - Icon object. - - - Gets an icon from specified FastReport assembly resource. - - Resource name. - Icon object. + + - + - Gets a stream from specified assembly resource. + Applies the style settings. - Assembly name. - Resource name. - Stream object. + Style to apply. - + - Gets a stream from FastReport assembly resource. + Saves the current style. - Resource name. - Stream object. - + - Gets a stream from specified assembly resource and unpacks it. + Restores the current style. - Assembly name. - Resource name. - Stream object. - + - Gets a stream from specified FastReport assembly resource and unpacks it. + Draws the object's background. - Resource name. - Stream object. + Draw event arguments. - - - Base class for plugin's assembly initializer. - - - FastReport has an open architecture. That means you can extend it with own classes - such as report objects, wizards, export filters. Usually such classes are - placed in separate dlls (plugins). FastReport has mechanism to load plugin dlls. You can specify - which plugins to load at first start, in the FastReport configuration file (by default it is located in the - C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\FastReport.config file). - To do this, add an xml item with your plugin name inside the <Plugins> item: - - <?xml version="1.0" encoding="utf-8"?> - <Config> - <Plugins> - <Plugin Name="c:\Program Files\MyProgram\MyPlugin.dll"/> - </Plugins> - </Config> - - When you run your application and use the Report object first time, all plugins will be loaded. - To register objects contained in a plugin, FastReport searches for classes of type - AssemblyInitializerBase and instantiates them. - Use this class to register custom report objects, controls, wizards, exports that - are contained in the assembly. To do this, make your own class of the AssemblyInitializerBase - type and override its default constructor. In the constructor, call RegisteredObjects.Add - methods to register all necessary items. - + + - + - Registers plugins contained in this assembly. + Determines if the object is visible on current drawing surface. - - This constructor is called automatically when the assembly is loaded. - - This example show how to create own assembly initializer to register own items. - - public class MyAssemblyInitializer : AssemblyInitializerBase - { - public MyAssemblyInitializer() - { - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - // register own report object - RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); - } - } - - + Draw event arguments. - + + + + - Calc the Crc32 checksum + + - + - Caclulate Streams checksum. + This method fires the Click event and the script code connected to the ClickEvent. - - + Event data. - + + + + - Calculate byte array checksum. + Checks if there are any listeners to the Click event. - - - + - Calculate string checksum. + Initializes the object before running a report. - - + + This method is used by the report engine, do not call it directly. + - + - Begin the checksum + Performs a finalization after the report is finished. - + + This method is used by the report engine, do not call it directly. + - + - Update the checksum + Saves the object's state before printing it. - - - - - + + This method is called by the report engine before processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should save any object properties that may be changed during the object printing. + The standard implementation saves the object's bounds, visibility, bookmark and hyperlink. + - + - End the checksum. + Restores the object's state after printing it. - - + + This method is called by the report engine after processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should restore the object properties that were saved by the method. + - + - Fast alternative of StringBuilder. + Calculates the object's height. + Actual object's height, in pixels. + + Applicable to objects that contain several text lines, such as TextObject. Returns the height needed + to display all the text lines. + - + - Gets the Length of string. + Gets the data from a datasource that the object is connected to. + + This method is called by the report engine before processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should get the data from a datasource that the object is connected to. + - - - Gets or sets the chars of string. - - - Char value + + - + - Gets StringBuilder + This method fires the BeforePrint event and the script code connected to the BeforePrintEvent. + Event data. - + - Initialize the new array for chars. + This method fires the AfterPrint event and the script code connected to the AfterPrintEvent. - Length of initial array. + Event data. - + - Checks the empty array. + This method fires the AfterData event and the script code connected to the AfterDataEvent. - True if string is empty. + Event data. - + - Converts the array in string. + Initializes a new instance of the class with default settings. - String value. - + - Clears the string. + Represents a report page. - FastString object. + + To get/set a paper size and orientation, use the , + and properties. Note that paper size is measured in millimeters. + Report page can contain one or several bands with report objects. Use the , + , , , + , , properties + to get/set the page bands. The property holds the list of data bands or groups. + Thus you may add several databands to this property to create master-master reports, for example. + + Report page can contain bands only. You cannot place report objects such as TextObject on a page. + + + + This example shows how to create a page with one ReportTitleBand and DataBand bands and add + it to the report. + + ReportPage page = new ReportPage(); + // set the paper in millimeters + page.PaperWidth = 210; + page.PaperHeight = 297; + // create report title + page.ReportTitle = new ReportTitleBand(); + page.ReportTitle.Name = "ReportTitle1"; + page.ReportTitle.Height = Units.Millimeters * 10; + // create data band + DataBand data = new DataBand(); + data.Name = "Data1"; + data.Height = Units.Millimeters * 10; + // add data band to the page + page.Bands.Add(data); + // add page to the report + report.Pages.Add(page); + + - + - Appends the string by string value. + Gets or sets the paper source for the first printed page. - String value. - FastString object. + + + This property represents the paper source (printer tray) that will be used when printing + the first page. To set the source for other pages, use the property. + + + Note: This property uses the raw number of the paper source. + + - + - Appends the string by string value. + Gets or sets the paper source for all printed pages except the first one. - String value. - FastString object. + + + This property represents the paper source (printer tray) that will be used when printing + all pages except the first one. To set source for the first page, use + the property. + + + Note: This property uses the raw number of the paper source. + + - + - Append formatted string. + Gets or sets the printer duplex mode that will be used when printing this page. - - - - + - Appends new line. + This property is not relevant to this class. - FastString object. - + - Appends the string by char value. + This property is not relevant to this class. - Char value. - FastString object. - + - Appends the another FastString object. + This property is not relevant to this class. - FastString object. - FastString object. - + - Appends the string by object data. + This property is not relevant to this class. - Object value. - FastString object. - - - Copies the substring in char array. - - Start index in source. - Destination array. - Destination index. - Count of chars + + - + - Removes substring. + Gets a value indicating that imperial units (inches, hundreths of inches) are used. - Start index of removed string. - Length of removed string. - FastString object. - - - Inserts string. - - Start index in existing string. - Value of inserting string. - FastString object. + + - + + + + + + + + + + + + + + + + + + + + + + - Replacing the substring on other. + Invokes the object's editor. - Old string value. - New string value. - FastString object. - + - Index of substring. + This event occurs when the report engine starts this page. - Substring for search. - Sarting position for search. - Position of substring. - + - Compare of substring in position. + This event occurs when the report engine finished this page. - Starting index for comparsion. - Value for compare. - True if substring is identical in position. - + - Returns the substring. + This event occurs when the report engine is about to print databands in this page. - Starting index. - Length of substring. - Substring. - + - Creates the new FastString object with initial capacity. + Gets or sets a width of the paper, in millimeters. - Initial capacity. - + - Creates the new FastString object with default capacity. + Gets or sets a height of the paper, in millimeters. - + - Creates the new FastString object from initial string. + Gets or sets the raw index of a paper size. - + + This property stores the RawKind value of a selected papersize. It is used to distiguish + between several papers with the same size (for ex. "A3" and "A3 with no margins") used in some + printer drivers. + It is not obligatory to set this property. FastReport will select the + necessary paper using the PaperWidth and PaperHeight values. + - + - The style of FastReport user interface. + Gets or sets a value indicating whether the page has unlimited height. - + - Specifies the Microsoft Office 2003 style (blue). + Gets or sets the value indicating whether the unlimited page should be printed on roll paper. - + - Specifies the Microsoft Office 2007 style (blue). + Gets or sets a value indicating whether the page has unlimited width. - + - Specifies the Microsoft Office 2007 style (silver). + Get or set the current height of unlimited page. - + - Specifies the Microsoft Office 2007 style (black). + Get or set the current width of unlimited page. - + - Specifies the Office 2010 (Blue) style. + Gets the current page height in pixels. - + - Specifies the Office 2010 (Silver) style. + Gets the current page width in pixels. - + - Specifies the Office 2010 (Black) style. + Gets or sets a value indicating that page should be in landscape orientation. + + When you change this property, it will automatically swap paper width and height, as well as paper margins. + - + - Specifies the Office 2013 style. + Gets or sets the left page margin, in millimeters. - + - Specifies the Microsoft Visual Studio 2005 style. + Gets or sets the top page margin, in millimeters. - + - Specifies the Visual Studio 2010 style. + Gets or sets the right page margin, in millimeters. - + - Specifies the Visual Studio 2012 (Light) style. + Gets or sets the bottom page margin, in millimeters. - + - Specifies the Microsoft Vista style (black). + Gets or sets a value indicating that even pages should swap its left and right margins when + previewed or printed. - + - Contains conversion methods between FastReport's UIStyle to various enums. + Gets the page columns settings. - + - Contains visual style names. + Gets or sets the page border that will be printed inside the page printing area. - + - Converts FastReport's UIStyle to eDotNetBarStyle. + Gets or sets the page background fill. - Style to convert. - Value of eDotNetBarStyle type. - + - Converts FastReport's UIStyle to eTabStripStyle. + Gets or sets the page watermark. - Style to convert. - Value of eTabStripStyle type. + + To enabled watermark, set its Enabled property to true. + - + - Converts FastReport's UIStyle to eTabStripStyle. + Gets or sets a value indicating that ReportTitle band should be printed before the + PageHeader band. - Style to convert. - Value of eTabStripStyle type. - + - Converts FastReport's UIStyle to eOffice2007ColorScheme. + Gets or sets an outline expression. - Style to convert. - Value of eOffice2007ColorScheme type. + + For more information, see property. + - + - Converts FastReport's UIStyle to eColorSchemeStyle. + Gets or sets a value indicating whether to start to print this page on a free space of the previous page. - Style to convert. - Value of eColorSchemeStyle type. + + This property can be used if you have two or more pages in the report template. + - + - Returns app workspace color for the given style. + Gets or sets a value indicating that FastReport engine must reset page numbers before printing this page. - UI style. - The color. + + This property can be used if you have two or more pages in the report template. + - + - Returns control color for the given style. + Gets or sets a value indicating whether the page has extra width in the report designer. - UI style. - The color. + + This property may be useful if you work with such objects as Matrix and Table. + - + - Contains methods to call common editors. + Gets or sets a value indicating whether this page will start on an odd page only. - Use this class if you are writing a new component for FastReport. + This property is useful to print booklet-type reports. Setting this property to true + means that this page will start to print on an odd page only. If necessary, an empty page + will be added to the prepared report before this page will be printed. - + - Invokes the expression editor. + Uses this page as a back page for previously printed pages. - A reference to the report. - The expression to edit. - The new expression. - + - Invokes the border editor. + Gets or sets a report title band. - The Border to edit. - The new border. - + - Invokes the data band columns editor. + Gets or sets a report summary band. - The data band columns to edit. - - + - Invokes the fill editor. + Gets or sets a page header band. - The fill to edit. - The new fill. - + - Invokes the outline editor. + Gets or sets a page footer band. - The outline to edit. - The new outline. - + - Advanced text renderer is used to perform the following tasks: - - draw justified text, text with custom line height, text containing html tags; - - calculate text height, get part of text that does not fit in the display rectangle; - - get paragraphs, lines, words and char sequence to perform accurate export to such - formats as PDF, TXT, RTF + Gets or sets a column header band. - Here is how one may operate the renderer items: - - foreach (AdvancedTextRenderer.Paragraph paragraph in renderer.Paragraphs) - { - foreach (AdvancedTextRenderer.Line line in paragraph.Lines) - { - foreach (AdvancedTextRenderer.Word word in line.Words) - { - if (renderer.HtmlTags) - { - foreach (AdvancedTextRenderer.Run run in word.Runs) - { - using (Font f = run.GetFont()) - using (Brush b = run.GetBrush()) - { - g.DrawString(run.Text, f, b, run.Left, run.Top, renderer.Format); - } - } - } - else - { - g.DrawString(word.Text, renderer.Font, renderer.Brush, word.Left, word.Top, renderer.Format); - } - } - } - } - - - + - The scale for font tag + Gets or sets a column footer band. - + - Paragraph represents single paragraph. It consists of one or several . + Gets or sets an overlay band. - + - Line represents single text line. It consists of one or several . - Simple line (that does not contain tabs, html tags, and is not justified) has - single which contains all the text. + Gets the collection of data bands or group header bands. + + The Bands property holds the list of data bands or group headers. + Thus you may add several databands to this property to create master-master reports, for example. + - + - Word represents single word. It may consist of one or several , in case - when HtmlTags are enabled in the main class. + Gets or sets the page guidelines. + + This property hold all vertical guidelines. The horizontal guidelines are owned by the bands (see + property). + - + - Represents character placement. + Gets or sets the reference to a parent SubreportObject that owns this page. + + This property is null for regular report pages. See the for details. + - + - Represents a style used in HtmlTags mode. + Gets or sets a script event name that will be fired when the report engine starts this page. - + - Represents sequence of characters that have the same . + Gets or sets a script event name that will be fired when the report engine finished this page. - + - Represents inline Image. + Gets or sets a script event name that will be fired when the report engine is about + to print databands in this page. - - - Standard text renderer uses standard DrawString method to draw text. It also supports: - - text rotation; - - fonts with non-standard width ratio. - In case your text is justified, or contains html tags, use the - class instead. - + + - - - Cache for rendering img tags in textobject. - You can use only HTTP[s] protocol with absolute urls. - + + - - - Is serialized - + + - - - Get or set WebClient for downloading imgs by url - + + - - - Occurs before image load - + + - - - Occurs after image load - + + - - - Enumerates all values - - + + - - - Return CacheItem by src - - Src attribute from img tag - + + - - - - - - + + - - - Set CacheItem by src - - Src attribute from img tag - CacheItem - + + - - - Validate src attribute from image - - Src attribute from img tag - return true if src is valid + + - + - + + + + - + This method fires the StartPage event and the script code connected to the StartPageEvent. - + - Item of image cache Dictionary + This method fires the FinishPage event and the script code connected to the FinishPageEvent. - + - Get Base64 string + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. - + - Return true if has some error with Image + Initializes a new instance of the class with default settings. - + - Get Image + This class contains settings that will be applied to the Report component. - + - Get byte array + Occurs before displaying a progress window. - + - Return error image and set true to error property + Occurs after closing a progress window. - - + - Set value for cache item + Occurs after printing a report. - Image encoded base64 string - + - Set value for cache item + Occurs when progress state is changed. - Image - + - Set value for cache item + Gets or sets a value that determines whether to show the progress window + when perform time-consuming operations such as run, print, export. - Image - + - + Gets or sets a value that determines whether to show the information about + the report performance (report generation time, memory consumed) in the + lower right corner of the preview window. - - + - WebClientEventArgs + Occurs when database connection is about to open. + + Use this event to provide own connection string or user name/password to the connection + object that is about to open. + To provide own connection string, set the e.ConnectionString property. + In this case the new connection string will be used. + To provide own user name/password, set the e.UserName and e.Password properties. + You may ask these values in own login dialog. + This example shows how to provide username/password using own login dialog. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + using (MyLoginDialog dialog = new MyLoginDialog()) + { + if (dialog.ShowDialog() == DialogResult.OK) + { + e.UserName = dialog.UserName; + e.Password = dialog.Password; + } + } + } + + This example shows how to provide own connection string. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + e.ConnectionString = my_connection_string; + } + + + + + + Occurs after the database connection is established. - + - Gets a cache + Occurs when discovering the business object's structure. - + - Gets or sets a value indicating whether the event was handled. + Occurs when determining the kind of business object's property. - + - Gets or sets a url from src attribue of img tag + Occurs when discovering the structure of business object of ICustomTypeDescriptor type + with no instance specified. + + The event handler must return an instance of that type. + - + - + Gets or sets the default script language. - - + - + Gets or sets the default paper size used when creating a new report. - + - Clear all files in archive. + Gets or sets a value indicating that the business object engine will use property values + when possible to discover the BO structure. - + - Check for exisiting file in archive. + Gets or sets the default path for root of PictureObject.ImageLocation path. - - - + - Adds the file form disk to the archive. + Initializes a new instance of the class. - - + - Adds all files from directory (recursive) on the disk to the archive. + Represents the base class for the report style or the highlight condition. - - + - Adds the stream to the archive. + Gets or sets a value determines that the border must be applied. - - - + - Creates the zip and writes it to rhe Stream + Gets or sets a value determines that the fill must be applied. - - + - Creates the ZIP archive and writes it to the file. + Gets or sets a value determines that the font must be applied. - - + - Gets or sets the Root Folder. + Gets or sets a value determines that the text fill must be applied. - + - Gets or sets the errors. + Gets or sets a border. - + - Gets or sets the commentary to the archive. + Gets or sets a fill. - + - Gets count of files in archive. + Gets or sets a font. - + - Creates the new zip archive. + Gets or sets a text fill. - + - Class for ACMYK color conversions + Initializes a new instance of the class with default settings. - + - Alpha transparency 0..255 + Assigns values from another source. + Source to assign from. - + - Cyan 0..100 + Deserializes the style. + Reader object. + + This method is for internal use only. + - + - Magenta 0..100 + Serializes the style. + Writer object. + + This method is for internal use only. + - + - Yellow 0..100 + SVG object - + + + + + + + - Black 0..100 + Invokes the object's editor. + true if object was edited succesfully. - + - Returns ACMYK as string. + Gets or sets svg document - - + - Gets CMYKA from string. + Gets or sets ViewBox value - - + - Converts Color value to ACMYK + Gets or sets AspectRatio value - - + + + + - Converts separate ARGB values in ACMYK + Gets or sets grayscale svg document - - - - - + - Returns ARGB color value + Gets or sets a value indicating that the image should be displayed in grayscale mode. - - + - Creates CMYKColor from ARGB values + Returns SVG string - - - - - + + + + + + + + + + + + + + + + + + + - Creates CMYKColor from ACMYK values + Returns clone of this object - - - - - + - + - Creates CMYKColor from string (comma separated values) + Sets svg object by SvgDocument - + SVG document - + - Creates CMYKColor from Color value + Sets svg object from specified path - + path to SVG file - + - Color Utilities + Sets svg object from svg string + SVG string - + - Return true for CMYK Jpeg image + Initializes a new instance of the class with default settings. - - - + - The helper class used to create unique component names using the fastest method. + Represents a table row. - Note: you can create unique component's name using its CreateUniqueName method. - However, it is very slow and can't be used in some situations (when you create a report - layout in a code and have a lot of objects on a page). + Use the property to set the height of a row. If + property is true, the row will calculate its height automatically. + You can also set the and properties + to restrict the row's height. - This example demonstrates how to use this class. - - FastNameCreator nameCreator = new FastNameCreator(Report.AllObjects); - foreach (Base c in Report.AllObjects) - { - if (c.Name == "") - nameCreator.CreateUniqueName(c); - } - - - + - Creates the unique name for the given object. + This property is not relevant to this class. - The object to create name for. - + - Initializes a new instance of the FastNameCreator class with collection of - existing report objects. + This property is not relevant to this class. - The collection of existing report objects. - + - Represents a collection of FastReport base objects. + This property is not relevant to this class. - + - Gets an owner of this collection. + This property is not relevant to this class. - - - Adds the specified elements to the end of this collection. - - Range of elements. + + - - - Adds the specified elements to the end of this collection. - - Collection of elements. + + - + + + + - Adds an object to the end of this collection. + Gets or sets a height of the row, in pixels. - Object to add. - Index of the added object. + + The row height cannot exceed the range defined by the + and properties. + To convert between pixels and report units, use the constants defined + in the class. + - + - Inserts an object into this collection at the specified index. + Gets or sets the minimal height for this row, in pixels. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Gets or sets the maximal height for this row, in pixels. - Object to remove. - + - Returns the zero-based index of the first occurrence of an object. + Gets or sets a value determines if the row should calculate its height automatically. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + + The row height cannot exceed the range defined by the + and properties. + - + - Determines whether an element is in the collection. + Gets the index of this row. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - + + + + - Returns an array of collection items. + Gets or sets the cell with specified index. - + Column index. + The TableCell object. - + - Determines whether two collections are equal. + Gets or sets the page break flag for this row. - The collection to compare with. - true if collections are equal; false otherwise. - + - Copies the content to another collection. + Gets or sets the number of rows to keep on the same page. - The collection to copy to. - + - + - + - - - Initializes a new instance of the FRCollectionBase class with default settings. - + + - - - Initializes a new instance of the FRCollectionBase class with specified owner. - - The owner of this collection. + + - - - The exception that is thrown when the user tried to set object's name that is already exists. - + + - - - The exception that is thrown when the user tried to rename an object that is introduced in the ancestor report. - + + - - - The exception that is thrown when loading bad formed xml report file. - + + - - - The exception that is thrown when loading an encrypted report with wrong password. - + + - - - The exception that is thrown if there is an error in the report's script code. - + + - + - The exception that is thrown when trying to set an object's Parent property to - an object that not accepts children of this type. + Initializes a new instance of the class. - + - The exception that is thrown when trying to load a report file that contains reference to an - unknown object type. + Represents a table object that consists of several rows and columns. + + To add/remove columns, use the collection. To add/remove + rows, use the collection. To initialize a table with specified number of + columns and rows, use and properties. + To print a table in code, use the event. In the manual build + mode, you can use aggregate functions. The following functions available: + + + Aggregate function + Description + + + Sum(cell) + Calculates the sum of values in specified table cell. + + + Min(cell) + Calculates the minimum of values in specified table cell. + + + Max(cell) + Calculates the maximum of values in specified table cell. + + + Avg(cell) + Calculates the average of values in specified table cell. + + + Count(cell) + Calculates the number of repeats of a specified table cell. + + + To print aggregate value, place the aggregate function call in the table cell: + [Count(Cell2)]. + - - - The exception that is thrown when initializing a table datasource which - TableName or Alias is not set properly. - + + - - - The exception that is thrown when trying to access a row of a datasource that is not initialized yet. - + + - + + + + - The exception that is thrown if an error occurs in the TableObject.ManualBuild event. + Allows to print table rows/columns dynamically. + + This event is used to handle the table print process in a code. Using special methods + like , you can print specified rows/columns. + + First way is to repeat specified row(s) to get a table that will grow downwards. + To do this, you have to call the PrintRow method followed by the PrintColumns method. + + Another way is to repeat the specified column(s) to get a table that grows sidewards. + To do this, call the PrintColumn method followed by the PrintRows method. + + Finally, the third way is to repeat rows and columns. The table will grow downwards and + sidewards. To do this, call the PrintRow method followed by the PrintColumn + method (or vice versa). + + + + When you print a table row-by-row, you must call one of the PrintColumn, + PrintColumns methods right after the PrintRow method. + In the same manner, when you print a table column-by-column, call one of the + PrintRow, PrintRows methods right after the PrintColumn method. + If you ignore this rule you will get an exception. + + + + In this example, we will consider all three ways to print a table which has 3 rows and 3 columns. + Case 1: print a table downwards. + + // print table header (the first row) + Table1.PrintRow(0); + Table1.PrintColumns(); + // print table body (the second row) + for (int i = 0; i < 10; i++) + { + Table1.PrintRow(1); + Table1.PrintColumns(); + } + // print table footer (the third row) + Table1.PrintRow(2); + Table1.PrintColumns(); + + + Case 2: print a table sidewards. + + // print table header (the first column) + Table1.PrintColumn(0); + Table1.PrintRows(); + // print table body (the second column) + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + Table1.PrintRows(); + } + // print table footer (the third column) + Table1.PrintColumn(2); + Table1.PrintRows(); + + + Case 3: print a table downwards and sidewards. + + // print the first row with all its columns + Table1.PrintRow(0); + // print header column + Table1.PrintColumn(0); + // print 10 data columns + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + } + // print footer column + Table1.PrintColumn(2); + + // print table body (the second row) + for (int i = 0; i < 10; i++) + { + // print data row with all its columns + Table1.PrintRow(1); + Table1.PrintColumn(0); + for (int j = 0; j < 10; j++) + { + Table1.PrintColumn(1); + } + Table1.PrintColumn(2); + } + + // print table footer (the third row) + Table1.PrintRow(2); + // again print all columns in the table footer + Table1.PrintColumn(0); + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + } + Table1.PrintColumn(2); + + - + - The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. + Gets or sets a script method name that will be used to handle the + event. + + If you use this event, you must handle the table print process manually. + See the event for details. + - + - The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. + Determines whether to manage cell spans automatically during manual build. + + The default value for this property is true. If you set it to false, you need to manage + spans in your ManualBuild event handler. + - + + + + + + + + + + + + + + + + + + + + + + + + + - throws this exception if an error occurs in the SaveReport method. - See inner exception for detailed information. + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Event data. - + - Source of image, only for inline img tag + Prints a row with specified index. + Index of a row to print. + + See the event for more details. + - + - Contains methods used to crypt/decrypt a data. + Prints rows with specified indices. + Indices of rows to print. + + See the event for more details. + - + - Sets the password that is used to crypt connection strings stored in a report. + Prints all rows. - See the property for more details. + See the event for more details. - + - Crypts a stream using specified password. + Prints a column with specified index. - The destination stream that will receive the crypted data. - The password. - The stream that you need to write to. + Index of a column to print. - Pass the stream you need to write to, to the dest parameter. Write your data to the - stream that this method returns. When you close this stream, the dest stream will be - closed too and contains the crypted data. + See the event for more details. - + - Decrypts a stream using specified password. + Prints columns with specified indices. - Stream that contains crypted data. - The password. - The stream that contains decrypted data. + Indices of columns to print. - You should read from the stream that this method returns. + See the event for more details. - + - Checks if the stream contains a crypt signature. + Prints all columns. - Stream to check. - true if stream is crypted. + + See the event for more details. + - + - Encrypts the string using the default password. + Adds a page before rows or columns. - String to encrypt. - The encrypted string. - The password used to encrypt a string can be set via property. - You also may use the method if you want to - specify another password. + Call this method to insert a page break before the next row or column that you intend to print + using PrintRow(s) or PrintColumn(s) methods. + See the event for more details. - + - Encrypts the string using specified password. + Initializes a new instance of the class. - String to encrypt. - The password. - The encrypted string. - + - Decrypts the string using the default password. + Represents a table column. - String to decrypt. - The decrypted string. - The password used to decrypt a string can be set via property. - You also may use the method if you want to - specify another password. + Use the property to set the width of a column. If + property is true, the column will calculate its width automatically. + You can also set the and properties + to restrict the column's width. - + - Decrypts the string using specified password. + This property is not relevant to this class. - String to decrypt. - The password. - The decrypted string. - + - Computes hash of specified stream. Initial position in stream will be saved. + This property is not relevant to this class. - Initial stream - - + - Computes hash of specified array. + This property is not relevant to this class. - Initial array - - + - Computes hash of specified array. + This property is not relevant to this class. - Initial array - - + + + + + + + + + + - MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. - It was created by Austin Appleby in 2008 and is currently hosted on Github along with its test suite named 'SMHasher'. - It also exists in a number of variants, all of which have been released into the public domain. - The name comes from two basic operations, multiply (MU) and rotate (R), used in its inner loop. - https://en.wikipedia.org/wiki/MurmurHash - Implementation of Murmur3 Hash by Adam Horvath - http://blog.teamleadnet.com/2012/08/murmurhash3-ultra-fast-hash-algorithm.html + Gets or sets a width of the column, in pixels. + + The column width cannot exceed the range defined by the + and properties. + To convert between pixels and report units, use the constants defined + in the class. + - + - READ_SIZE + Gets or sets the minimal width for this column, in pixels. - + - ComputeHash function + Gets or sets the maximal width for this column, in pixels. - - - + - Gets the Hash + Gets or sets a value determines if the column should calculate its width automatically. + + The column width cannot exceed the range defined by the + and properties. + - + - Used to draw a text with non-standard angle or justification. + Gets the index of this column. - + + + + - Draws a string. + Gets or sets the page break flag for this column. - String to draw. - Graphics object to draw on. - Font that used to draw text. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the location of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - Horizontal alignment of the text. - Width ratio of the font used to draw a string. - Line height, in pixels. - Angle of the text, in degrees. - Indicates whther to draw string close to the printout. - Force justify for the last line. - + - Initializes a new instance of the DrawText class with default settings. + Gets or sets the number of columns to keep on the same page. - + + + + + + + + + + - Provides a data for paint event. + Initializes a new instance of the class. - + - Gets a Graphics object to draw on. + Represents a table cell. + + Use , properties to set the cell's + column and row spans. To put an object inside the cell, use its property: + + TableCell cell1; + PictureObject picture1 = new PictureObject(); + picture1.Bounds = new RectangleF(0, 0, 32, 32); + picture1.Name = "Picture1"; + cell1.Objects.Add(picture1); + + - + - Gets the X scale factor. + This property is not relevant to this class. - + - Gets the Y scale factor. + This property is not relevant to this class. - + - Gets the cache that contains graphics objects. + This property is not relevant to this class. - + - Initializes a new instance of the FRPaintEventArgs class with specified settings. + This property is not relevant to this class. - Graphics object to draw on. - X scale factor. - Y scale factor. - Cache that contains graphics objects. - + - Contains methods that peform string to object and vice versa conversions. + This property is not relevant to this class. - + - Converts an object to a string. + This property is not relevant to this class. - The object to convert. - The string that contains the converted value. - + - Converts a value to a string using the specified converter. + This property is not relevant to this class. - The object to convert. - The type of converter. - The string that contains the converted value. - + - Converts a string value to the specified data type. + This property is not relevant to this class. - The data type to convert to. - The string to convert from. - The object of type specified in the type parameter that contains - a converted value. - + - Converts a string to an object using the specified converter. + This property is not relevant to this class. - The string to convert. - The type of converter. - The object that contains the converted value. - + - Converts a string containing special symbols to the xml-compatible string. + This property is not relevant to this class. - The string to convert. - The result string. - - This method replaces some special symbols like <, > into xml-compatible - form: &lt;, &gt;. To convert such string back to original form, use the - method. - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Converts a string containing special symbols to the xml-compatible string. + Gets a collection of objects contained in this cell. - The string to convert. - Determines whether it is necessary to convert cr-lf symbols to xml form. - The result string. - + - Converts a value to xml-compatible string. + Gets or sets the column span for this cell. - The value to convert. - The result string. - + - Convert the xml-compatible string to the regular one. + Gets or sets the row span for this cell. - The string to convert. - The result string. - - This is counterpart to the method. - - + + + + - Decreases the precision of floating-point value. + Gets the address of this cell. - The initial value. - The number of decimal digits in the fraction. - The value with lesser precision. - + - Converts a string value to the float. + This property is not relevant to this class. - The string value to convert. - The float value. - - Both "." or "," decimal separators are allowed. - - + - Converts a string value to the float. + This property is not relevant to this class. - The string value to convert. - Indicates whether to ignore non-digit symbols. - The float value. - + + + + + + + - Converts a string value to the float. + Gets the TableBase object which this cell belongs to. - The string value to convert. - Decimal separator. - The float value. - + + + + - Converts a string value to the float. + Creates the exact copy of this cell. - The string value to convert. - Decimal separator. - Indicates whether to ignore non-digit symbols. - The float value. + The copy of this cell. - + - Converts the string containing several text lines to a collection of strings. + Determines if two cells have identical settings. - The string to convert. - The collection instance. + Cell to compare with. + true if cells are equal. - + + + + - Converts a collection of strings to a string. + Changes the cell's style. - The collection to convert. - The string that contains all lines from the collection. + The new style. + + Each cell in a dynamic table object (or in a matrix) has associated style. + Several cells may share one style. If you try to change the cell's appearance directly + (like setting cell.TextColor), it may affect other cells in the table. + To change the single cell, use this method. + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Converts null value to 0, false, empty string, depending on type. + Initializes a new instance of the class. - The data type. - The value of the type data type. - + - Converts string value to byte[]. + The base class for table-type controls such as and + . - The string to convert - The value of the byte[] data type. - + - Converts a string to NameValueCollection. + This property is not relevant to this class. - The string to convert. - The NameValueCollection that contains the name/value pairs. - + - Convert &amp;&Tab;&quot; etc to symbol and return result as string + This property is not relevant to this class. - String for processing - Position for processing - Result of processing - True if successful - + - Convert &amp;&Tab;&quot; etc to symbol and return result as string + This property is not relevant to this class. - String for processing - Position for processing - Append result of processing to FastString - True if successful - + + + + - Represents a collection of float values. + This property is not relevant to this class. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the value at the specified index. + Gets a collection of table rows. - Index of a value. - The value at the specified index. - + - Adds the specified values to the end of this collection. + Gets a collection of table columns. - - + - Adds a value to the end of this collection. + Gets or sets the number of fixed rows that will be repeated on each page. - Value to add. - Index of the added value. - + - Inserts a value into this collection at the specified index. + Gets or sets the number of fixed columns that will be repeated on each page. - The zero-based index at which value should be inserted. - The value to insert. - + - Removes the specified value from the collection. + Gets or sets a value that determines whether is necessary to repeat table header on each page. - Value to remove. + + To define a table header, set the and + properties. + - + - Returns the zero-based index of the first occurrence of a value. + Gets or sets a value that determines whether is necessary to repeat table Row header on each page. - The value to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + + To define a table Row header, set the + properties. + - + - Determines whether a value is in the collection. + Gets or sets a value that determines whether is necessary to repeat table Column header on each page. - The value to locate in the collection. - true if value is found in the collection; otherwise, false. + + To define a table Column header, set the + properties. + - + - Copies values from another collection. + Gets or sets the table layout. - Collection to copy from. + + This property affects printing the big table that breaks across pages. + - + - Provides the message functions. + Gets or sets gap between parts of the table in wrapped layout mode. + + This property is used if you set the property to Wrapped. + - + - Shows the Message Box with error message. + Gets or sets a value that determines whether to adjust the spanned cell's width when breaking the table across pages. - + + If set to true, the spanned cell's width will be adjusted to accomodate all contained text. + - + - Shows Message Box with confirmation. + Gets or sets the table cell. - - - + Column index. + Row index. + The TableCell object that represents a cell. - + - Shows information Message Box. + Gets or sets a number of columns in the table. - - + - Specifies the main mode of the designer's workspace. + Gets or sets a number of rows in the table. - + - Specifies selection mode. + Gets a table which contains the result of rendering dynamic table. + + Use this property to access the result of rendering your table in dynamic mode. + It may be useful if you want to center or right-align the result table on a page. + In this case, you need to add the following code at the end of your ManualBuild event handler: + + // right-align the table + Table1.ResultTable.Left = Engine.PageWidth - Table1.ResultTable.CalcWidth() - 1; + + - + + + + + + + + + + - Specifies insertion mode. + Gets data of the table cell with specified column and row numbers. + The column number. + The row number. + TableCellData instance containing data of the table cell. - + - Specifies drag-drop mode. + Creates unique names for all table elements such as rows, columns, cells. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Specifies the additional mode of the designer's workspace. + Calculates and returns the table width, in pixels. - + + + + + + + - Specifies default mode. + Calculates a sum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user moves the selected objects. + Calculates a minimum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user resizes the selected objects. + Calculates a maximum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user draw the selection rectangle. + Calculates an average of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Specifies a custom mode handled by the object. + Calculates number of repeats of a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Provides a data for mouse events. + Initializes a new instance of the class. - + - The X mouse coordinate. + Specifies the layout that will be used when printing a big table. - + - The Y mouse coordinate. + The table is printed across a pages then down. - + - Current state of mouse buttons. + The table is printed down then across a pages. - + - Current keyboard state. + The table is wrapped. - + - Indicates that current object was handled the mouse message. + Represents data of the table cell. - + - The delta of the mouse movement. + Gets or sets parent table of the cell. - + - The mouse wheel delta. + Gets or sets objects collection of the cell. - + - Current cursor shape. + Gets or sets text of the table cell. - + - Additional mode of the designer's workspace. + Gets or sets value of the table cell. - + - Current sizing point if Mode is set to Size. + Gets or sets hyperlink value of the table cell. - + - Current selection rectangle if mode is set to SelectionRect. + Gets or sets column span of the table cell. - + - Active object that handles the mouse event. + Gets or sets row span of the table cell. - + - The source object of drag-drop operation. + Gets or sets the address of the table cell. - + - Multiple sources objects of drag-drop operation. + Gets the table cell. - + - The target object of drag-drop operation. + Gets style of table cell. - + - The message to show when drag source is over the object. + Gets original the table cell. - + - Additional data supplied and handled by report objects. + Gets width of the table cell. - + - Specifies the sizing point used to resize an object by mouse. + Gets height of the table cell. - + - No sizing point. + Initializes a new instance of the class. - + - Specifies left-top sizing point. + Attaches the specified table cell. + The table cell instance. + This method is called when we load the table. - + - Specifies left-bottom sizing point. + Assigns another instance. + The table cell data that used as a source. + This method is called when we copy cells or clone columns/rows in a designer. - + - Specifies right-top sizing point. + Assigns another instance at run time. + The table cell data that used as a source. + This flag shows should children be copied or not. + This method is called when we print a table. We should create a copy of the cell and set the style. - + - Specifies right-bottom sizing point. + Sets style of the table cell. + The new style of the table cell. - + - Specifies top-center sizing point. + Disposes the instance. - + - Specifies bottom-center sizing point. + Calculates width of the table cell. + The value of the table cell width. - + - Specifies left-center sizing point. + Calculates height of the table cell. + The width of the table cell. + The value of the table cell height. - + - Specifies right-center sizing point. + Updates layout of the table cell. + The width of the table cell. + The height of the table cell. + The new value of x coordinate. + The new value of y coordinate. - + - Specifies a selection point used to resize an object. + Represents a collection of objects. - + - The X coordinate of the point. + Gets a column with specified index. + Index of a column. + The column with specified index. - - - The Y coordinate of the point. - + + - - - The size mode. - + + - + - Initializes a new instance of the SelectionPoint class with specified location and size mode. + Represents a result table. - The X coordinate. - The Y coordinate. - Size mode. + + Do not use this class directly. It is used by the and + objects to render a result. + - + - The reader used to deserialize object's properties from a report file. + Occurs after calculation of table bounds. + + You may use this event to change automatically calculated rows/column sizes. It may be useful + if you need to fit dynamically printed table on a page. + - + + + + + + + - Gets a string that contains errors occured during the load. + Creates a new instance of the class. - + - Gets the current item name. + Represents a collection of objects. - + - Gets or sets a value indicating whther is necessary to read the object's children. + Gets a row with specified index. + Index of a row. + The row with specified index. - + + + + + + + - Reads the specified object. + Represents the Text object that may display one or several text lines. - The object to read. - The object must implement the interface. This method - invokes the Deserialize method of the object. + Specify the object's text in the Text property. + Text may contain expressions and data items, for example: "Today is [Date]". When report + is running, all expressions are calculated and replaced with actual values, so the text + would be "Today is 01.01.2008". + The symbols used to find expressions in a text are set in the + Brackets property. You also may disable expressions + using the AllowExpressions property. + To format an expression value, use the property. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Reads an object from current xml node. + Gets or sets a paragraph format for a new html rendering type, not for others rendering - The object. - - This method creates an instance of object described by the current xml node, then invokes - its Deserialize method. - - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Reads properties of specified object. + Gets or sets a value that determines if the text object should handle its width automatically. + + + + + Gets or sets a value that indicates whether the font size should shrink to + display the longest text line without word wrap. - The object to read. - This method reads simple properties like "Text", "Border.Lines" etc. for specified object. - To read nested properties like collections, you should override the - method of an object. + To limit the minimum size, use the property. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Moves the current xml item. + Gets or sets the minimum size of font (or minimum width ratio) if the + mode is on. - false if there is no more items to move on; true otherwise. - This method is used to read child objects. + This property determines the minimum font size (in case the property is set to + FontSize), or the minimum font width ratio (if AutoShrink is set to FontWidth). + The default value is 0, that means no limits. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Checks if current item has specified property. + Gets or sets the horizontal alignment of a text in the TextObject object. - The property name to check. - true if current item has specified property. - + - Reads the string property. + Gets or sets the vertical alignment of a text in the TextObject object. - Name of property. - Property value. - + - Reads the boolean property. + Gets or sets the text angle, in degrees. - Name of property. - Property value. - + - Reads the integer property. + Gets or sets a value that indicates whether the component should draw right-to-left for RTL languages. - Name of property. - Property value. - + - Reads the float property. + Gets or sets a value that indicates if lines are automatically word-wrapped. - Name of property. - Property value. - + - Reads the double property. + Gets or sets a value that determines if the text object will underline each text line. - Name of property. - Property value. - + - Reads the enum property. + Gets or sets the font settings for this object. - Name of property. - Type of property. - Property value. - + - Reads the standalone property value. + Gets or sets the fill color used to draw a text. - Property value. + + Default fill is . You may specify other fill types, for example: + + text1.TextFill = new HatchFill(Color.Black, Color.White, HatchStyle.Cross); + + Use the property to set the solid text color. + - + - Disposes the reader, fixups the property references. + Gets or sets the text outline. - + - Loads the xml items from a stream. + Gets or sets the text color in a simple manner. - The stream to load from. + + This property can be used in a report script to change the text color of the object. It is + equivalent to: textObject1.TextFill = new SolidFill(color); + - + - Initializes a new instance of the FRReader class with specified report. + Gets or sets the string trimming options. - Reference to a report. - + - Initializes a new instance of the FRReader class with specified report and xml item with - contents to read. + Gets or sets the width ratio of the font. - Reference to a report. - Xml item with contents to read. + + Default value is 1. To make a font wider, set a value grether than 1; to make a font narrower, + set a value less than 1. + - + - Specifies the target for the serialize operation. + Gets or sets the height of single text line, in pixels. - + - Serialize to the report file. + Gets or sets the offset of the first TAB symbol. - + - Serialize to the preview pages. + Gets or sets the width of TAB symbol, in pixels. - + - Serialize to the source pages of a preview. + Gets or sets a value that indicates if text should be clipped inside the object's bounds. - + - Serialize to the designer's clipboard. + Gets the collection of conditional highlight attributes. + + Conditional highlight is used to change the visual appearance of the Text object + depending on some condition(s). For example, you may highlight negative values displayed by + the Text object with red color. To do this, add the highlight condition: + + TextObject text1; + HighlightCondition highlight = new HighlightCondition(); + highlight.Expression = "Value < 0"; + highlight.Fill = new SolidFill(Color.Red); + highlight.ApplyFill = true; + text1.Highlight.Add(highlight); + + - + - Serialize to the designer's undo/redo buffer. + Gets or sets a value that indicates if the text object should display its contents similar to the printout. - + - The writer used to serialize object's properties to a report file. + Forces justify for the last text line. - + - Gets or sets current xml item name. + Allows handling html tags in the text. + + The following html tags can be used in the object's text: <b>, <i>, <u>, + <strike>, <sub>, <sup>, </b>, </i>, </u>, + </strike>, </sub>, </sup>, + <font color=&...&>, </font>. Font size cannot + be changed due to limitations in the rendering engine. + - + - Gets or sets target of serialization. + Indicates handling html tags in the text. + To set the value use the TextRenderer property. - + - Gets the ethalon object to compare with. + The type of text render + /// + The following html tags can be used in the object's text: <b>, <i>, <u>, + <strike>, <sub>, <sup>, </b>, </i>, </u>, + </strike>, </sub>, </sup>, + <font color=&...&>, </font>. Font size cannot + be changed due to limitations in the rendering engine. + - + - Gets or sets a value that determines whether is necessary to serialize child objects. + Gets or sets the paragraph offset, in pixels. For HtmlParagraph use ParagraphFormat.FirstLineIndent. - + - Gets or sets a value that determines whether is necessary to add xml header. + Cache for inline images - + + + + + + + - Serializes the specified object. + Draws a text. - The object to serialize. - - The object must implement the interface. This method - invokes the Serialize method of the object. - - This example demonstrates the use of writer. - - public void Serialize(FRWriter writer) - { - // get the etalon object. It will be used to write changed properties only. - Base c = writer.DiffObject as Base; - - // write the type name - writer.ItemName = ClassName; - - // write properties - if (Name != "") - writer.WriteStr("Name", Name); - if (Restrictions != c.Restrictions) - writer.WriteValue("Restrictions", Restrictions); - - // write child objects if allowed - if (writer.SaveChildren) - { - foreach (Base child in ChildObjects) - { - writer.Write(child); - } - } - } - - + Paint event data. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Serializes the object using specified etalon. + Calculates the object's width. - The object to serialize. - The etalon object. + The width, in pixels. - + + + + + + + + + + - Writes a string property. + Initializes a new instance of the class with default settings. - Property name. - Property value. - + + + + + + + - Writes a boolean property. + Base class for text objects such as and . - Property name. - Property value. + + This class implements common functionality of the text objects. + - + + + + + + + + + + - Writes an integer property. + Gets or sets a value indicating that the object's text may contain expressions. - Property name. - Property value. - + - Writes a float property. + Gets or sets the symbols that will be used to find expressions in the object's text. - Property name. - Property value. + + The default property value is "[,]". As you can see, the open and close symbols are + separated by the comma. You may use another symbols, for example: "<,>" or "<%,%>". + You should use different open and close symbols. + - + - Writes a double property. + Gets or sets the object's text. - Property name. - Property value. + + Text may contain expressions and data items, for example: "Today is [Date]". + When report is running, all expressions are calculated and replaced with actual + values, so the text would be "Today is 01.01.2008". + - + - Writes an enumeration property. + Gets or sets padding within the text object. - Property name. - Property value. - + - Writes an object reference property. + Gets or sets a value indicating that zero values must be hidden. - Property name. - Property value. - + - Writes a standalone property value. + Gets or sets a value that will be hidden. - Name of property. - Property value. - This method produces the following output: - <PropertyName>PropertyValue</PropertyName> + Use this property to specify a value that you would like to hide. For example, specify "0" + if you want to hide zero values, or use property to do this. + You also may use this property to hide default DateTime values (such as 1/1/1900). + In this case you need to specify a string containing both date and time, for example: + "1/1/1900 0:00:00". + + FastReport uses the ToString conversion to compare the expression value with this property. + This conversion depends on regional settings selected in the Control Panel, so be aware of this + if you going to distribute your report worldwide. + - + - Determines if two objects are equal. + Gets or sets a string that will be displayed instead of a null value. - The first object. - The second object. - true if objects will be serialized to the same value. - + - Disposes the writer. + Gets or sets the formatter that will be used to format data in the Text object. + + The default formatter does nothing, i.e. it shows expression values with no formatting. + To set another formatting, create a new formatter and assign it to this property. + If there are several expressions in the text, use the property + to format each expression value. + + This example shows how to set currency formatter. + + TextObject text1; + text1.Format = new CurrencyFormat(); + + - + - Saves the writer output to a stream. + Gets or sets a value that specifies how the report engine processes this text object. - Stream to save to. + + Use this property to perform such task as "print a total value in the group header". Normally, + all total values are calculated in the footers (for example, in a group footer). If you try to print + a total value in the group header, you will get 0. If you set this property to + ProcessAt.DataFinished, FastReport will do the following: + + + print the object (with wrong value); + + + print all related data rows; + + + calculate the correct object's value and replace old (wrong) value with the new one. + + + + This option will not work if you set the to true. + + - + - Initializes a new instance of the FRWriter class with default settings. + Gets the collection of formatters. + + This property is used to set format for each expression contained in the text. + For example, if the TextObject contains two expressions: + Today is [Date]; Page [PageN] + you can use the following code to format these expressions separately: + + text1.Formats.Clear(); + text1.Formats.Add(new DateFormat()); + text1.Formats.Add(new NumberFormat()); + + - + - Initializes a new instance of the FRWriter class with specified xml item that will - receive writer's output. + Gets or sets a value that determines how to display duplicate values. - The xml item that will receive writer's output. - + - The profiler. + Gets a value of expression contained in the object's text. - + - Starts the profiler. + Gets or sets editable for pdf export - + + + + + + + + + + + + + - Finishes the profiler and displays results. + Initializes a new instance of the class with default settings. - + - Used to access to resource IDs inside the specified branch. + Represents the "Blank Report" wizard. - - Using the method, you have to specify the full path to your resource. - Using this class, you can shorten the path: - - // using the Res.Get method - miKeepTogether = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,KeepTogether")); - miResetPageNumber = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,ResetPageNumber")); - miRepeatOnEveryPage = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,RepeatOnEveryPage")); - - // using MyRes.Get method - MyRes res = new MyRes("ComponentMenu,HeaderBand"); - miKeepTogether = new ToolStripMenuItem(res.Get("KeepTogether")); - miResetPageNumber = new ToolStripMenuItem(res.Get("ResetPageNumber")); - miRepeatOnEveryPage = new ToolStripMenuItem(res.Get("RepeatOnEveryPage")); - - - - + + + + - Gets a string with specified ID inside the main branch. + Represents the "Inherited Report" wizard. - The resource ID. - The localized value. - + + + + - Initializes a new instance of the class with spevified branch. + Represents the "Label" wizard. - The main resource branch. - + - Localized CategoryAttribute class. + Gets a selected label manufacturer. - - - - + - Initializes a new instance of the SRCategory class. + Gets a selected label name. - The category name. - + - The report page units. + Gets the XML item containing a selected label parameters. - + + + + - Specifies the units measured in millimeters. + Initializes a new instance of the class with the default settings. - + - Specifies the units measured in centimeters. + Represents the "New Data Source" wizard. - + + + + - Specifies the units measured in inches. + Represents the "Standard Report" wizard. - + + + + - Specifies the units measured in hundreths of inch. + The base class for all report wizards. + + To create own wizard, use this class as a base. All you need is to override + the method. To register a wizard, use the + method. + - + - Defines the constants used to convert between report units and screen pixels. + Runs the wizard. + Report designer. + true if wizard was executed succesfully. - To convert pixels to millimeters, use the following code: - valueInMillimeters = valueInPixels / Units.Millimeters; - To convert millimeters to pixels, use the following code: - valueInPixels = valueInMillimeters * Units.Millimeters; + This method is called when you select a wizard in the "Add New Item" window and + click "Add" button. You should do the work in this method. - + - The number of pixels in one millimeter. + Represents the "New Dialog" wizard. - + + + + - The number of pixels in one centimeter. + Represents the "New Page" wizard. - + + + + - The number of pixels in one inch. + Represents a zip code object. + + This object is mainly used in Russia to print postal index on envelopes. It complies with the + GOST R 51506-99. + - + + + + + + + + + + + + + + + + - The number of pixels in 1/10 of ich. + Gets or sets the width of a single zipcode segment, in pixels. - + - The number of pixels in 1/100 of inch. + Gets or sets the height of a single zipcode segment, in pixels. - + - Represents a xml property. + Gets or sets the spacing between origins of segments, in pixels. - + - Represents a property key. + Gets or sets the number of segments in zipcode. - + - Represents a property value. + Gets or sets a value indicating whether the reference markers should be drawn. + + Reference markers are used by postal service to automatically read the zipcode. + - + - Creates new property and assigns value + Gets or sets a value indicating whether the segment grid should be drawn. - Property key - Property value - + - Represents a xml node. + Gets or sets a data column name bound to this control. + + Value must be in the form "Datasource.Column". + - + - Gets a number of children in this node. + Gets or sets an expression that contains the zip code. - + - Gets a list of children in this node. + Gets or sets the zip code. - + + + + + + + + + + + + + + + + - Gets a child node with specified index. + Initializes a new instance of the with the default settings. - Index of node. - The node with specified index. - + - Gets or sets the node name. + Represents a subreport object. - This property will return "Node" for a node like <Node Text="" Left="0"/> + To create a subreport in code, you should create the report page first and + connect it to the subreport using the property. + The following example shows how to create a subreport object in code. + + // create the main report page + ReportPage reportPage = new ReportPage(); + reportPage.Name = "Page1"; + report.Pages.Add(reportPage); + // create report title band + reportPage.ReportTitle = new ReportTitleBand(); + reportPage.ReportTitle.Name = "ReportTitle1"; + reportPage.ReportTitle.Height = Units.Millimeters * 10; + // add subreport on it + SubreportObject subreport = new SubreportObject(); + subreport.Name = "Subreport1"; + subreport.Bounds = new RectangleF(0, 0, Units.Millimeters * 25, Units.Millimeters * 5); + reportPage.ReportTitle.Objects.Add(subreport); + // create subreport page + ReportPage subreportPage = new ReportPage(); + subreportPage.Name = "SubreportPage1"; + report.Pages.Add(subreportPage); + // connect the subreport to the subreport page + subreport.ReportPage = subreportPage; + + - + - Gets or sets a list of properties in this node. + This property is not relevant to this class. - + - Gets or sets the parent for this node. + This property is not relevant to this class. - + - Gets or sets the node value. + This property is not relevant to this class. - - This property will return "ABC" for a node like <Node>ABC</Node> - - + - Gets the root node which owns this node. + This property is not relevant to this class. - + - Clears the child nodes of this node. + This property is not relevant to this class. - + - Adds a new child node to this node. + This property is not relevant to this class. - The new child node. - + - Adds a specified node to this node. + This property is not relevant to this class. - The node to add. - + - Inserts a specified node to this node. + This property is not relevant to this class. - Position to insert. - Node to insert. - + - Finds the node with specified name. + This property is not relevant to this class. - The name of node to find. - The node with specified name, if found; null otherwise. - + - Finds the node with specified name. + This property is not relevant to this class. - The name of node to find. - The node with specified name, if found; the new node otherwise. - - This method adds the node with specified name to the child nodes if it cannot find the node. - - + - Gets the index of specified node in the child nodes list. + This property is not relevant to this class. - The node to find. - Zero-based index of node, if found; -1 otherwise. - + - Gets a property with specified name. + This property is not relevant to this class. - The property name. - The value of property, if found; empty string otherwise. - - This property will return "0" when you request the "Left" property for a node - like <Node Text="" Left="0"/> - - - - Removes all properties. - + + - - - Sets the value for a specified property. - - The property name. - Value to set. - - For example, you have a node like <Node Text="" Left="0"/>. When you set the - "Text" property to "test", the node will be <Node Text="test" Left="0"/>. - If property with specified name is not exist, it will be added. - + + - - - Removes a property with specified name. - - The property name. - Returns true if property is removed, false otherwise. + + - - - Disposes the node and all its children. - + + - + + + + - Initializes a new instance of the XmlItem class with default settings. + Gets or sets a report page that contains the subreport bands and objects. - + - Represents a xml document that contains the root xml node. + Gets or sets a value indicating that subreport must print its objects on a parent band to which it belongs. - Use Load and Save methods to load/save the document. To access the root node - of the document, use the property. + Default behavior of the subreport is to print subreport objects they own separate bands. - - - Gets or sets a value indicating whether is necessary to indent the document - when saving it to a file/stream. - - - - - Gets or sets a value indicating whether is necessary to add xml header. - - - - - Gets the root node of the document. - - - - - Clears the document. - - - - - Saves the document to a stream. - - Stream to save to. + + - - - Saves the document to a string. - - Writer to save to. + + - + - Loads the document from a stream. + Initializes a new instance of the class with default settings. - Stream to load from. - + - Saves the document to a file. + Represents a shape object. - The name of file to save to. + + Use the property to specify a shape. To set the width, style and color of the + shape's border, use the Border.Width, Border.Style and Border.Color properties. + - - - Loads the document from a file. - - The name of file to load from. + + - - - Disposes resources used by the document. - + + - + - Initializes a new instance of the XmlDocument class with default settings. + Gets or sets a shape kind. - - - - + - Represents a zip code object. + Gets or sets a shape curvature if is RoundRectangle. - This object is mainly used in Russia to print postal index on envelopes. It complies with the - GOST R 51506-99. + 0 value means automatic curvature. - - - - - - - + - + - + - - - Gets or sets the width of a single zipcode segment, in pixels. - - - - - Gets or sets the height of a single zipcode segment, in pixels. - - - - - Gets or sets the spacing between origins of segments, in pixels. - - - - - Gets or sets the number of segments in zipcode. - - - - - Gets or sets a value indicating whether the reference markers should be drawn. - - - Reference markers are used by postal service to automatically read the zipcode. - - - + - Gets or sets a value indicating whether the segment grid should be drawn. + Initializes a new instance of the class with default settings. - + - Gets or sets a data column name bound to this control. + Represents a RichText object that can display formatted text. - Value must be in the form "Datasource.Column". + Use the property to set the object's text. The text may include + the RTF formatting tags. - - - Gets or sets an expression that contains the zip code. - - - - - Gets or sets the zip code. - - - - - - - - - + - + - + - - - Initializes a new instance of the with the default settings. - - - + - Represents a subreport object. + Gets or sets the object's text. - To create a subreport in code, you should create the report page first and - connect it to the subreport using the property. + This property returns the formatted text with rtf tags. - The following example shows how to create a subreport object in code. - - // create the main report page - ReportPage reportPage = new ReportPage(); - reportPage.Name = "Page1"; - report.Pages.Add(reportPage); - // create report title band - reportPage.ReportTitle = new ReportTitleBand(); - reportPage.ReportTitle.Name = "ReportTitle1"; - reportPage.ReportTitle.Height = Units.Millimeters * 10; - // add subreport on it - SubreportObject subreport = new SubreportObject(); - subreport.Name = "Subreport1"; - subreport.Bounds = new RectangleF(0, 0, Units.Millimeters * 25, Units.Millimeters * 5); - reportPage.ReportTitle.Objects.Add(subreport); - // create subreport page - ReportPage subreportPage = new ReportPage(); - subreportPage.Name = "SubreportPage1"; - report.Pages.Add(subreportPage); - // connect the subreport to the subreport page - subreport.ReportPage = subreportPage; - - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Gets or sets a name of the data column bound to this control. + + Value must contain the datasource name, for example: "Datasource.Column". + - + - This property is not relevant to this class. + Gets the actual text start. + + This property is for internal use only; you should not use it in your code. + - + - This property is not relevant to this class. + Gets the actual text length. + + This property is for internal use only; you should not use it in your code. + - + - This property is not relevant to this class. + Gets or sets the break style. + + Set this property to true if you want editable rich text when you edit the prepared report page. + - + - This property is not relevant to this class. + Experimental feature for translation of RichText into report objects - - - - - - - + - + - + - - - Gets or sets a report page that contains the subreport bands and objects. - - - - - Gets or sets a value indicating that subreport must print its objects on a parent band to which it belongs. - - - Default behavior of the subreport is to print subreport objects they own separate bands. - - - + - + - - - Initializes a new instance of the class with default settings. - - - - - Represents a shape object. - - - Use the property to specify a shape. To set the width, style and color of the - shape's border, use the Border.Width, Border.Style and Border.Color properties. - - - + - + - - - Gets or sets a shape kind. - - - - - Gets or sets a shape curvature if is RoundRectangle. - - - 0 value means automatic curvature. - - - + - + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. @@ -37296,8 +37500,9 @@ - Add point to end of polyline and recalculate bounds after add - Can be first point + Add point to end of polyline and recalculate bounds after add. + Can be first point. + Deprecated, use insert point local x - relative to left-top point local y - relative to left-top point @@ -37306,6 +37511,7 @@ Add point to start of polyline and recalculate bounds after add Can be first point + Deprecated, use insert point local x - relative to left-top point local y - relative to left-top point @@ -37313,6 +37519,9 @@ + + + Replace points with star @@ -37322,6 +37531,9 @@ + + + @@ -37347,7 +37559,7 @@ local x - relative to left-top point local y - relative to left-top point - radius for find near point to polyline + depricated Index of inserted point @@ -37372,9 +37584,36 @@ + + + Delete point from polyline by index. + Recalculate bounds. + + Index of point in polyline + + + + + + + Returns best new point position based on mouse + + + + + + do not set this value, internal use only + + + + + Return points collection. + You can modify the collection for change this object. + + Returns origin of coordinates relative to the top left corner @@ -37388,34 +37627,28 @@ Return points array of line + deprecated Return point types array. 0 - Start of line, 1 - Keep on line + deprecated - + - Add point to end of polyline, need to recalculate bounds after add - First point must have zero coordinate and zero type + Initializes a new instance of the class with default settings. - local x - relative to left-top point - local y - relative to left-top point - 0-start,1-line - - - Delete point from polyline by index - Recalculate bounds - - Index of point in polyline + + - - - Draw polyline path to graphics - - Event arguments + + + + + @@ -37430,35 +37663,53 @@ scale by height Always returns a non-empty path - + - Insert point to desired place of polyline + Recalculate position and size of element + + + + + + + + Add point to end of polyline, need to recalculate bounds after add + First point must have zero coordinate and zero type. + Recalculate bounds. + Method is slow do not use this. - Index of place from zero to count local x - relative to left-top point local y - relative to left-top point - 0-start,1-line + depreceted - + - Recalculate position and size of element + Delete point from polyline by index. + Recalculate bounds. + Method is slow do not use this. + Index of point in polyline - - - - - - - - + + + Draw polyline path to graphics + + Event arguments - - + + + Insert point to desired place of polyline + recalculateBounds(); + Method is slow do not use this + + Index of place from zero to count + local x - relative to left-top point + local y - relative to left-top point + deprecated - + - Initializes a new instance of the class with default settings. + Represent a point for polygon object @@ -37509,42 +37760,30 @@ property to do this; - picture that is stored in the database BLOb field. Use the + picture that is stored in the database BLOb field. Use the property to specify the name of data column you want to show; - picture that is stored in the local disk file. Use the + picture that is stored in the local disk file. Use the property to specify the name of the file; - picture that is stored in the Web. Use the + picture that is stored in the Web. Use the property to specify the picture's URL. - Use the property to specify a size mode. The - and properties can be used to restrict the image size if SizeMode + Use the property to specify a size mode. The + and properties can be used to restrict the image size if SizeMode is set to AutoSize. The property can be used to display an image with transparent background. Use the property if you want to display semi-transparent image. - - - - - - - - - - - - - + @@ -37553,13 +37792,6 @@ true if object was edited succesfully. - - - Draw an error image to Graphics g, when the image is designing - - - - Gets or sets the image. @@ -37574,85 +37806,38 @@ - + - Gets or sets a value that specifies how an image is positioned within a PictureObject. + Gets or sets a value indicating that the image should be displayed in grayscale mode. - + - Gets or sets the maximum width of a Picture object, in pixels. + Gets or sets a hash of grayscale svg image + + + + + Gets or sets the color of the image that will be treated as transparent. - - Use this property to restrict the object size if the property - is set to AutoSize. - - + - Gets or sets the maximum height of a Picture object, in pixels. + Gets or sets the transparency of the PictureObject. - Use this property to restrict the object size if the property - is set to AutoSize. + Valid range of values is 0..1. Default value is 0. - + - Gets or sets padding within the PictureObject. + Gets or sets a value indicating that the image should be tiled. - + - Gets or sets the path for the image to display in the PictureObject. - - - This property may contain the path to the image file as well as external URL. - - - - - Gets or sets the data column name to get the image from. - - - - - Gets or sets the color of the image that will be treated as transparent. - - - - - Gets or sets the transparency of the PictureObject. - - - Valid range of values is 0..1. Default value is 0. - - - - - Gets or sets a value indicating whether the PictureObject should display - the error indicator if there is no image in it. - - - - - Gets or sets a value indicating that the image should be tiled. - - - - - Gets or sets the image rotation angle, in degrees. Possible values are 0, 90, 180, 270. - - - - - Gets or sets a value indicating that the image should be displayed in grayscale mode. - - - - - Gets or sets a value indicating that the image stored in the - property should be disposed when this object is disposed. + Gets or sets a value indicating that the image stored in the + property should be disposed when this object is disposed. By default, image assigned to the property is never disposed - you should @@ -37660,36 +37845,16 @@ set this property to true right after you assign an image to the property. - - - - - - - - - Gets a value indicating that the image stored in the separate file - - - - - Gets a value indicating that the image stored in the Web - - - - - Gets a value indicating that the image stored in the databases column - - Gets or sets a bitmap transparent image - - - Gets or sets a hash of grayscale svg image - + + + + + @@ -37709,60 +37874,12 @@ - - - - - - Calculates URI from ImageLocation - - - - - - Draws not tiled image - - - - - - - gets points for transform this image - - the box where to draw image - image width - image height - scale horizontal - scale vertical - offset of left - offset of top - out start of vectors - out end of frist vector - out end of second vector - - - - Moves the point on specified angle - - - - - - - - - Rotates vector on specified angle - - - - - Loads image @@ -37773,21 +37890,12 @@ Disposes image - - - - - - - - - @@ -38490,5587 +38598,6193 @@ Initializes a new instance of the class with default settings. - + - Represents a collection of formats used by the and - objects. + The DIGEST-MD5 SASL authentication mechanism. - + - Gets or sets the element at the specified index. + The mechanism name. - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Initializes a new instance of the class. - Array of elements to add. + The username. + The user's password. - + + + + - Adds an object to the end of this collection. + The PLAIN SASL authentication mechanism. - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + The mechanism name. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Initializes a new instance of the class. - Object to remove. + The username. + The user's password. - + - Returns the zero-based index of the first occurrence of an object. + Computes the client response for server challenge. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + The challenge from server. Usually empty for PLAIN mechanism. + The response from client. - + - Determines whether an element is in the collection. + The base abstarct class for all SASL mechanisms. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - - + + + Gets or sets the name of mechanism. + - - + + + Gets or sets the username. + - + - Copies formats from another collection. + Gets or sets the user's password. - Collection to copy from. - - + + + Initializes a new instance of the class. + - - + + + Initializes a new instance of the class with specified parameters. + + The username. + The user's password. - + - Defines how boolean values are formatted and displayed. + Computes client response for server challenge. + The server challenge. + The client response. - + - Gets or sets a string that will be displayed if value is false. + Gets the base64-encoded client response fo the server challenge. + The base64-string containing server challenge. + The base64-string containing client response. - + - Gets or sets a string that will be displayed if value is true. + Gets the client response for the server challenge. + Byte array containing server challenge. + Byte array containing client response. - - + + + The base class for all messengers. + - - + + + Gets the filename. + - - + + + Gets or sets the proxy settings. + - - + + + Initializes a new instance of the class. + - + - Initializes a new instance of the BooleanFormat class with default settings. + Authorizes the user. + True if user has been successfully authorized. - + - Defines how currency values are formatted and displayed. + Prepares the report before it will be send. + The report template. + The export filter. + Memory stream that contains prepared report. - + - Gets or sets a value that determines whether to use system locale settings to format a value. + Sends the report. + The report template that should be sent. + The export filter that should export template before. + True if report has been successfully sent. - + - Gets or sets the number of decimal places to use in currency values. + Represents form of messenger. - + - Gets or sets the string to use as the decimal separator in currency values. + Gets or sets the report template. - + - Gets or sets the string that separates groups of digits to the left of the decimal in currency values. + Gets or sets the list of exports. - + - Gets or sets the string to use as the currency symbol. + Initializes a new instance of the class. - + - Gets or sets the format pattern for positive currency values. + Initializes a new instance of the class. - This property can have one of the values in the following table. - The symbol "$" is the CurrencySymbol and n is a number. - - ValueAssociated Pattern - 0$n - 1n$ - 2$ n - 3n $ - - + The report template. - + - Gets or sets the format pattern for negative currency values. + Initializes the list of exports. - This property can have one of the values in the following table. - The symbol "$" is the CurrencySymbol and n is a number. - - ValueAssociated Pattern - 0 ($n) - 1 -$n - 2 $-n - 3 $n- - 4 (n$) - 5 -n$ - 6 n-$ - 7 n$- - 8 -n $ - 9 -$ n - 10n $- - 11$ n- - 12$ -n - 13n- $ - 14($ n) - 15(n $) - - - - + + + Gets the proxy settings. + + The proxy settings. - - + + + Initializes the component. + - - + + + Checks is the string numeric. + + The checking string. + True if string is numeric, otherwise false. - + + + Finishes the form work. + + Returns true if work has been successfully finished, otherwise false. + + - + - Initializes a new instance of the CurrencyFormat class with default settings. + SelectedIndexChanged event handler for ComboBox File Type. + Event sender. + Event args. - + - Represents a format that uses the Format string to display values. + Click event handler for Button Settings. + Event sender. + Event args. - + - Gets or sets a format string. + FormClosing event handler for CloudStorageClientForm. - - Default format is "G". For example, if you want to format a date, use the following - format string: "MM/dd/yyyy". See the System.String.Format method for list - of possible format strings. - + Event sender. + Event args. - - + + + Click event handler for button OK. + + Event sender. + Event args. - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Initializes a new instance of the CustomFormat class with default settings. + Page File. - + - Defines how date values are formatted and displayed. + Page Proxy. - - + + + ComboBox File Type. + - + - Initializes a new instance of the DateFormat class with default settings. + Label File Type. - + - Base class for all formats. + Buttons Settings. - - The format is used to format expression value in a object. - - + - Gets the short format name (e.g. without a "Format" suffix). + Label Colon. - + - Creates exact copy of this format. + Label Password. - The copy of this format. - + - Formats the specified value. + Label Username. - The value to format. - The string that represents the formatted value. - - + + + Label Server. + - - + + + TextBox Username. + - + - Defines how numeric values are formatted and displayed. + TextBox Port. - + - Gets or sets a value that determines whether to use system locale settings to format a value. + TextBox Server. - + - Gets or sets the number of decimal places to use in numeric values. + TextBox Password. - + - Gets or sets the string to use as the decimal separator in numeric values. + PageControl pageControl1. - + - Gets or sets the string that separates groups of digits to the left of the decimal in numeric values. + Represents proxy settings of the messenger. + + + + + Gets or sets the proxy server. + + + + + Gets or sets the port number of proxy server. - + + + Gets or sets the username. + + + + + Gets or sets the user's password. + + + + + Gets or sets the type of proxy. + + + + + Initializes a new instance of the class. + + The proxy server. + The port number of server. + The username. + The user's password. + The type of proxy. + + + + Represents the type of rpoxy. + + + + + The HTTP proxy type. + + + + + The SOCKS4 proxy type. + + + + + The SOCKS5 proxy type. + + + + + Represents the IQ stanza. + + + + + Gets or sets the type of iq. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the iq. + The type of iq. + The JID of the sender. + The JID of the recipient. + The ID of the iq. + The language of the iq. + The data of the iq. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the XMPP message. + + + + + Gets or sets the type of message. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the message. + The type of message. + The JID of the sender. + The JID of the recipient. + The ID of the message. + The language of the message. + The data of the message. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the XMPP Presence. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the presence. + The JID of the sender. + The JID of the recipient. + The ID of the presence. + The language of the presence. + The data of the presence. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the base class for XML stanzas used in XMPP. + + + + + Gets the data of the stanza. + + + + + Gets or sets the JID of the sender. + + + + + Gets or sets the JID of the recipient. + + + + + Gets or sets the ID of the stanza. + + + + + Gets or sets the language of the stanza. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the stanza. + The JID of the sender. + The JID of the recipient. + The ID of the stanza. + The language of the stanza. + The data of the stanza. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Converts stanza to string. + + String containing stanza value. + + + + The parser for XMPP XML-streams. + + + + + Initializes a new instance of the class. + + The stream for parsing. + True to leave the stream opened after closing the StreamReader instance. + + + + Read the XML stream up to opening "stream:stream" tag. + + + + + Reads the next XML element from the stream. + + The list of XML elements that are expected. + The XML element. + + + + Closes the stream parser. + + + + + Releases all resources used by the current instance of the class. + + + + + Represents a static class to simplify the work with XmlElement instance. + + + + + Creates a new XmlElement instance. + + The name of the element. + The namespace of the element. + A new instance of the class. + + + + Adds the specified child to the end of child nodes of element. + + The element for add the child to. + The child node to add. + A XmlElement instance. + + + + Adds the attribute to XmlElement with spefied name and value. + + The element for add the attribute to. + The name of attribute. + The value of attribute. + A XmlElement instance. + + + + Adds the specified text to the end of child nodes of element. + + The element for add the text to. + The text for add. + A XmlElement instance. + + + + Converts the XmlElement instance to a string. + + The element to convert to. + True if needed to include XML declaration. + True if needed to leave the tag of an empty element open. + The XmlElement instance as string. + + + + Represents the XMPP messenger. + + + + + Gets or sets the username. + + + + + Gets or sets the user's password. + + + + + Gets or sets the hostname of XMPP server. + + + + + Gets or sets the port number of the XMPP service of the server. + + + + + Gets or sets the username to send file to. + + + + + Gets or sets the JID to send from. + + + + + Gets or set the JID to send to. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with specified parameters. + + Username. + Password. + Hostname. + Port. + Username to send file to. + Send to user's resource. + + + + Initializes a new instance of the class with specified parameters. + + User's JID without resource. + User's password. + JID to send to with resource. + + + + Sends the specified string to the server. + + The string to send. + + + + Initiates the stream to the server. + + The hostname. + The features response of the server. + + + + Validates the server certificate. + + The sender object. + X509 certificate. + The X509 chain. + The SSL policy errors. + True if successfull. + + + + Secures the stream by TLS. + + The hostname. + The features response of the server. + + + + Selects the SASL authentication mechanism. + + List of mechanisms. + The string containing mechanism name. + + + + Authenticates the user on the server using Plain mechanism. + + + + + Authenticates the user on the server using Digest-MD5 mechanism. + + + + + Authenticates the user on the server. + + The SASL mechanisms list. + + + + Setups the connection with the server. + + + + + Binds resource and gets the full JID that will be associated with current session. + + The full session JID. + + + + Opens session between client and server. + + The id of the opened session. + + + + Connects to the server. + + + + + Sends the message. + + The text of the message. + True if message has been successfully sent. + + + + Sends the presence. + + The text of the presence. + True if presence has been successfully sent. + + + + Initiates the In Band Bytestream for sending the file (XEP-0047). + + True if bytestream has been successfully initiated. + + + + Sends the chunk to the XMPP server. + + The data of the chunk. + The number of the chunk. + + + + Sends the file using In Band Bytestream. + + The memory stream containing data of the file. + True if file has been successfully sent. + + + + Sends the file using FastReport Cloud as a proxy server. + + The report template. + The export filter to export report before sending. + True if file has been successfully sent. + + + + Disconnects from the server. + + + + + + + + + + + Closes the connection. + + + + + Releases all the resources used by the XMPP messenger. + + + + + Represents the form of the XMPP messenger. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with specified parameters. + + User's JID without resource. + User's password. + Send to user's JID. + Report template. + + + + + + + + + + + + + + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + This class contains some global settings that used in the FastReport.Net. + + + This component is intended for use in the Visual Studio IDE to quickly configure + FastReport global settings. To use it, drop the component on your Form and set up + its properties and events. + Here are some common actions that can be performed with this object: + + + To define own open/save dialogs that will be used in the report designer, + use the , , + , events; + + + + To pass connection string to the connection object defined in a report, + or to define own database login dialog, use the event; + + + + To adjust the connection object after it is opened, + use the event; + + + + To define own progress window, use the , + and events; + + + + To setup some common properties of the report, designer and preview, + use properties defined in this class; + + + + To set UI style of the designer and preview window, + use property. + + + + This component actually uses the static class which + contains , and + properties. You can use Config class as well. + + + + + Gets or sets the UI style of the designer and preview windows. + + + This property affects both designer and preview windows. + + + + + Indicates whether the Ribbon-style window should be used. + + + + + Occurs before displaying a progress window. + + + + + Occurs after closing a progress window. + + + + + Occurs when progress state is changed. + + + + + Occurs when database connection is about to open. + + Use this event to provide own connection string or user name/password to the connection + object that is about to open. + To provide own connection string, set the e.ConnectionString property. + In this case the new connection string will be used. + To provide own user name/password, set the e.UserName and e.Password properties. + You may ask these values in own login dialog. + This example shows how to provide username/password using own login dialog. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + using (MyLoginDialog dialog = new MyLoginDialog()) + { + if (dialog.ShowDialog() == DialogResult.OK) + { + e.UserName = dialog.UserName; + e.Password = dialog.Password; + } + } + } + + This example shows how to provide own connection string. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + e.ConnectionString = my_connection_string; + } + + + + + + Occurs after the database connection is established. + + + + + Occurs when discovering the business object's structure. + + + + + Occurs when determining the kind of business object's property. + + + + + Gets or sets the report settings. + + + + + Occurs when the designer is loaded. + + + Use this event if you want to customize some aspects of the designer, for example, + to hide some menu items. + + + This example demonstrates how to hide the "File|Select Language..." menu item. + + environmentSettings1.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); + + void DesignerSettings_DesignerLoaded(object sender, EventArgs e) + { + (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; + } + + + + + + Occurs when report is loaded in the designer. + + + Use this event handler to register application data in a report. + + + + + Occurs when object is inserted in the designer. + + + Use this event handler to set some object's properties when it is inserted. + + + + + Occurs when the report designer is about to show the "Open" dialog. + + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will open the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to show the "Save" dialog. + + Use this event to attach own "Save" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will save the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to load the report. + + This event is used together with the event. + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + load the e.Report from the location specified in the e.FileName property. + For example, if you work with files: e.Report.Load(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to save the report. + + This event is used together with the event. + Use this event to attach own "Save" dialog to the designer. In the event handler, you must + save the e.Report to the location specified in the e.FileName property. + For example, if you work with files: e.Report.Save(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + - Gets or sets the format pattern for negative numeric values. + Occurs when previewing a report from the designer. - This property can have one of the values in the following table. - The symbol n is a number. - - ValueAssociated Pattern - 0(n) - 1-n - 2- n - 3n- - 4n - - + + Use this event to show own preview window. + + + environmentSettings1.CustomPreviewReport += new EventHandler(MyPreviewHandler); + + private void MyPreviewHandler(object sender, EventArgs e) + { + Report report = sender as Report; + using (MyPreviewForm form = new MyPreviewForm()) + { + report.Preview = form.previewControl1; + report.ShowPreparedReport(); + form.ShowDialog(); + } + } + + - - - - - - - - - - - - - - - Initializes a new instance of the NumberFormat class with default settings. - - - - - Defines how percent values are formatted and displayed. - - - + - Gets or sets a value that determines whether to use system locale settings to format a value. + Occurs when getting available table names from the connection. + + Use this handler to filter the list of tables returned by the connection object. + + + This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. + + environmentSettings1.FilterConnectionTables += DesignerSettings_FilterConnectionTables; + + private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) + { + if (e.TableName == "Table 1") + e.Skip = true; + } + + - + - Gets or sets the number of decimal places to use in percent values. + Gets or sets the designer settings. - + - Gets or sets the string to use as the decimal separator in percent values. + Gets or sets the preview settings. - + - Gets or sets the string that separates groups of digits to the left of the decimal in percent values. + Gets or sets the email settings. - + - Gets or sets the string to use as the percent symbol. + Specifies the set of buttons available in the preview. - + - Gets or sets the format pattern for positive percent values. + No buttons visible. - This property can have one of the values in the following table. - The symbol "%" is the PercentSymbol and n is a number. - - ValueAssociated Pattern - 0n % - 1n% - 2%n - 3% n - - - + - Gets or sets the format pattern for negative percent values. + The "Print" button is visible. - This property can have one of the values in the following table. - The symbol "%" is the PercentSymbol and n is a number. - - ValueAssociated Pattern - 0 -n % - 1 -n% - 2 -%n - 3 %-n - 4 %n- - 5 n-% - 6 n%- - 7 -%n - 8 n %- - 9 % n- - 10% -n - 11n- % - - - - - - - - - - - - - - - + - Initializes a new instance of the PercentFormat class with default settings. + The "Open" button is visible. - + - Represents a format used to display values with no formatting. + The "Save" button is visible. - - - - - - - - - - - - - + - Defines how time values are formatted and displayed. + The "Email" button is visible. - - - - + - Initializes a new instance of the TimeFormat class with default settings. + The "Find" button is visible. - + - Based on code of Stefan Bцther, xprocs@hotmail.de + The zoom buttons are visible. - + - Contains standard functions registered in the "Data" window. + The "Outline" button is visible. - + - Returns the larger of two 32-bit signed integers. + The "Page setup" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two 64-bit signed integers. + The "Edit" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two single-precision floating-point numbers. + The "Watermark" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two double-precision floating-point numbers. + The page navigator buttons are visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two decimal numbers. + The "Close" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the smaller of two 32-bit signed integers. + The "Design" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two 64-bit signed integers. + The "Copy Page" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two single-precision floating-point numbers. + The "Delete Page" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two double-precision floating-point numbers. + All buttons are visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two decimal numbers. + Specifies the set of export buttons available in the preview. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns an integer value representing the character code corresponding to a character. + No exports visible. - Character to convert. - The character code. - + - Returns the character associated with the specified character code. + The "Prepared" button is visible. - Character code to convert. - The character. - + - Inserts a specified string at a specified index position in the original string. + The "PDFExport" button is visible. - The original string. - The index position of the insertion. - The string to insert. - A new string. - + - Gets the number of characters in a string. + The "RTFExport" button is visible. - The original string. - The number of characters. - + - Converts a specified string to lowercase. + The "HTMLExport" button is visible. - The string to convert. - A string in lowercase. - + - Right-aligns the characters in a string, padding with spaces on the left for a specified total length. + The "MHTExport" button is visible. - The original string. - The number of characters in the resulting string. - Right-aligned string, padded on the left with spaces. - + - Right-aligns the characters in a string, padding on the left with a specified character - for a specified total length. + The "XMLExport" export button is visible. - The original string. - The number of characters in the resulting string. - A padding character. - Right-aligned string, padded on the left with padding characters. - + - Left-aligns the characters in a string, padding with spaces on the right, for a specified total length. + The "Excel2007Export" button is visible. - The original string. - The number of characters in the resulting string. - Left-aligned string, padded on the right with spaces. - + - Left-aligns the characters in a string, padding on the right with a specified character, - for a specified total length. + The "Excel2003Document" button is visible. - The original string. - The number of characters in the resulting string. - A padding character. - Left-aligned string, padded on the right with padding characters. - + - Converts the specified string to titlecase. + The "Word2007Export" button is visible. - The string to convert. - A new string. - + - Deletes all the characters from a string beginning at a specified position. + The "PowerPoint2007Export" button is visible. - The original string. - The position to begin deleting characters. - A new string. - + - Deletes a specified number of characters from a string beginning at a specified position. + The "ODSExport" button is visible. - The original string. - The position to begin deleting characters. - The number of characters to delete. - A new string. - + - Replaces all occurrences of a specified string in the original string, with another specified string. + The "ODTExport" button is visible. - The original string. - A string to be replaced. - A string to replace all occurrences of oldValue. - A new string. - + - Retrieves a substring from the original string, starting at a specified character position. + The "XPSExport" export button is visible. - The original string. - The starting character position of a substring. - A new string. - + - Retrieves a substring from the original string, starting at a specified character position, - with a specified length. + The "CSVExport" button is visible. - The original string. - The starting character position of a substring. - The number of characters in the substring. - A new string. - + - Removes all occurrences of white space characters from the beginning and end of the original string. + The "DBFExport" button is visible. - The original string. - A new string. - + - Converts a specified string to uppercase. + The "TextExport" button is visible. - The string to convert. - A string in uppercase. - + - Adds the specified number of days to the original date. + The "ZplExport" button is visible. - The original date. - A number of whole and fractional days. - A new DateTime value. - + - Adds the specified number of hours to the original date. + The "ImageExport" button is visible. - The original date. - A number of whole and fractional hours. - A new DateTime value. - + - Adds the specified number of minutes to the original date. + The "XAMLExport" button is visible. - The original date. - A number of whole and fractional minutes. - A new DateTime value. - + - Adds the specified number of months to the original date. + The "SVGExport" button is visible. - The original date. - A number of months. - A new DateTime value. - + - Adds the specified number of seconds to the original date. + The "PPMLExport" button is visible. - The original date. - A number of whole and fractional seconds. - A new DateTime value. - + - Adds the specified number of years to the original date. + The "PSExport" button is visible. - The original date. - A number of years. - A new DateTime value. - + - Subtracts the specified date and time from the original date. + The "JsonExport" button is visible. - The original date. - The date and time to subtract. - A TimeSpan interval between two dates. - + - Initializes a new instance of the DateTime. + The "LaTeXExport" button is visible. - The year. - The month. - The day. - A new DateTime value. - + - Gets the day of the month. + The All export buttons is visible. - The date value. - The day component. - + - Gets the localized name of the day of the week. + Specifies the set of export in clouds buttons available in the preview. - The date value. - The name of the day of the week. - + - Gets the day of the year. + No exports in clouds visible. - The date value. - The day of the year. - + - Returns the number of days in the specified month and year. + The "Box" button is visible. - The year. - The month. - The number of days in month for the specified year. - + - Gets the hour component of the date. + The "Dropbox" button is visible. - The date. - The hour component. - + - Gets the minute component of the date. + The "FastCloud" button is visible. - The date. - The minute component. - + - Gets the month component of the date. + The "Ftp" button is visible. - The date. - The month component. - + - Gets the localized month name. + The "GoogleDrive" button is visible. - The month number. - The month name. - + - Gets the seconds component of the date. + The "SkyDrive" button is visible. - The date. - The seconds component. - + - Gets the week of the year. + The "Xmpp" button is visible. - The date value. - The week of the year. - + - Gets the year component of the date. + The All export in clouds buttons is visible. - The date. - The year component. - + - Replaces the format item in a specified String with the text equivalent of the value of a - corresponding Object instance in a specified array. + Contains some settings of the preview window. - A String containing zero or more format items. - An Object array containing zero or more objects to format. - A copy of format in which the format items have been replaced by the String equivalent of the corresponding instances of Object in args. - + - Returns a string formatted as a currency value. + Occurs when the standard preview window opened. - The value to format. - The formatted string. + + You may use this event to change the standard preview window, for example, add an own button to it. + The sender parameter in this event is the PreviewControl. + - + - Returns a string formatted as a currency value with specified number of decimal digits. + Gets or sets a set of buttons that will be visible in the preview's toolbar. - The value to format. - Number of decimal digits. - The formatted string. + + Here is an example how you can disable the "Print" and "EMail" buttons: + Config.PreviewSettings.Buttons = PreviewButtons.Open | + PreviewButtons.Save | + PreviewButtons.Find | + PreviewButtons.Zoom | + PreviewButtons.Outline | + PreviewButtons.PageSetup | + PreviewButtons.Edit | + PreviewButtons.Watermark | + PreviewButtons.Navigator | + PreviewButtons.Close; + - + - Returns a string formatted as a date/time value. + Specifies the set of exports that will be available in the preview's "save" menu. - The value to format. - The formatted string. - + - Returns a string formatted as a date/time value. + Specifies the set of exports in clouds that will be available in the preview's "save" menu. - The value to format. - The format specifier, one of the - "Long Date", "Short Date", "Long Time", "Short Time" values. - The formatted string. - + - Returns a string formatted as a numeric value. + Gets or sets the number of prepared pages that can be stored in the memory cache during preview. - The value to format. - The formatted string. + + Decrease this value if your prepared report contains a lot of pictures. This will + save the RAM memory. + - + - Returns a string formatted as a numeric value with specified number of decimal digits. + Gets or sets a value indicating whether the preview window is displayed in the Windows taskbar. - The value to format. - Number of decimal digits. - The formatted string. - + - Returns a string formatted as a percent value. + Gets or sets a value indicating whether the preview window should be displayed as a topmost form. - The value to format. - The formatted string. - + - Returns a string formatted as a percent value with specified number of decimal digits. + Gets or sets the icon for the preview window. - The value to format. - Number of decimal digits. - The formatted string. - + - Converts a numeric value to Roman string representation. + Gets or sets the text for the preview window. - Integer value in range 0-3998. - The string in Roman form. + + If no text is set, the default text "Preview" will be used. + - + - Converts a currency value to an english (US) string representation of that value. + Gets or sets a value indicating whether the fast scrolling method should be used. - The currency value to convert. - The string representation of the specified value. + + If you enable this property, the gradient background will be disabled. + - + - Converts a currency value to an english (US) string representation of that value, - using the specified currency. + Enables or disables the "Print to file" feature in the print dialog. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to an english (US) string representation of that value. + Gets or sets the initial directory that is displayed by a save file dialog. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to an english (GB) string representation of that value. + Initializes a new instance of the PreviewSettings class with default settings. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to an english (GB) string representation of that value, - using the specified currency. + A strongly-typed resource class, for looking up localized strings, etc. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to an english (GB) string representation of that value. + Returns the cached ResourceManager instance used by this class. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to a spanish string representation of that value. + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to a spanish string representation of that value, - using the specified currency. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to a spanish string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to a russian string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to a russian string representation of that value, - using the specified currency. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to a russian string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The numeric value to convert. - True if the name is of male gender. - The name in singular form, for example "страница". - The name in plural form, for example "страницы". - The name in plural form, for example "страниц". - The string representation of the specified value. - + - Selects and returns a value from a list of arguments. + Looks up a localized resource of type System.Drawing.Bitmap. - A value between 1 and the number of elements passed in the "choice" argument. - Object parameter array. - One of the values in the "choice" argument. - + - Returns one of two objects, depending on the evaluation of an expression. + Looks up a localized resource of type System.Drawing.Bitmap. - The expression you want to evaluate. - Returned if Expression evaluates to True. - Returned if Expression evaluates to False. - Either truePart os falsePart. - + - Evaluates a list of expressions and returns a value corresponding to the first - expression in the list that is True. + Looks up a localized resource of type System.Drawing.Bitmap. - Parameter array consists of paired expressions and values. - The value corresponding to an expression which returns true. - + - Checks if the specified object is null. + Looks up a localized resource of type System.Drawing.Bitmap. - The report instance. - Either a name of DB column, or a parameter name, or a total name to check. - true if the object's value is null. - + - The DIGEST-MD5 SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The mechanism name. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - - - - + - The PLAIN SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The mechanism name. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - + - Computes the client response for server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The challenge from server. Usually empty for PLAIN mechanism. - The response from client. - + - The base abstarct class for all SASL mechanisms. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the name of mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - + - Computes client response for server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The server challenge. - The client response. - + - Gets the base64-encoded client response fo the server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The base64-string containing server challenge. - The base64-string containing client response. - + - Gets the client response for the server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - Byte array containing server challenge. - Byte array containing client response. - + - The base class for all messengers. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the filename. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the proxy settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authorizes the user. + Looks up a localized resource of type System.Drawing.Bitmap. - True if user has been successfully authorized. - + - Prepares the report before it will be send. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - The export filter. - Memory stream that contains prepared report. - + - Sends the report. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template that should be sent. - The export filter that should export template before. - True if report has been successfully sent. - + - Represents form of messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the report template. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the list of exports. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - + - Initializes the list of exports. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the proxy settings. + Looks up a localized resource of type System.Drawing.Bitmap. - The proxy settings. - + - Initializes the component. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Checks is the string numeric. + Looks up a localized resource of type System.Drawing.Bitmap. - The checking string. - True if string is numeric, otherwise false. - + - Finishes the form work. + Looks up a localized resource of type System.Drawing.Bitmap. - Returns true if work has been successfully finished, otherwise false. - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - + - SelectedIndexChanged event handler for ComboBox File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Click event handler for Button Settings. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - FormClosing event handler for CloudStorageClientForm. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Click event handler for button OK. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Required designer variable. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Clean up any resources being used. + Looks up a localized resource of type System.Drawing.Bitmap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Page File. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Page Proxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - ComboBox File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Buttons Settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Colon. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Port. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - PageControl pageControl1. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents proxy settings of the messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the port number of proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of proxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The proxy server. - The port number of server. - The username. - The user's password. - The type of proxy. - + - Represents the type of rpoxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The HTTP proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The SOCKS4 proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The SOCKS5 proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents the IQ stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of iq. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the iq. - The type of iq. - The JID of the sender. - The JID of the recipient. - The ID of the iq. - The language of the iq. - The data of the iq. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the XMPP message. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of message. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the message. - The type of message. - The JID of the sender. - The JID of the recipient. - The ID of the message. - The language of the message. - The data of the message. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the XMPP Presence. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the presence. - The JID of the sender. - The JID of the recipient. - The ID of the presence. - The language of the presence. - The data of the presence. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the base class for XML stanzas used in XMPP. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the data of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID of the sender. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID of the recipient. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the ID of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the language of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the stanza. - The JID of the sender. - The JID of the recipient. - The ID of the stanza. - The language of the stanza. - The data of the stanza. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Converts stanza to string. + Looks up a localized resource of type System.Drawing.Bitmap. - String containing stanza value. - + - The parser for XMPP XML-streams. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The stream for parsing. - True to leave the stream opened after closing the StreamReader instance. - + - Read the XML stream up to opening "stream:stream" tag. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Reads the next XML element from the stream. + Looks up a localized resource of type System.Drawing.Bitmap. - The list of XML elements that are expected. - The XML element. - + - Closes the stream parser. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Releases all resources used by the current instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents a static class to simplify the work with XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Creates a new XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The name of the element. - The namespace of the element. - A new instance of the class. - + - Adds the specified child to the end of child nodes of element. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the child to. - The child node to add. - A XmlElement instance. - + - Adds the attribute to XmlElement with spefied name and value. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the attribute to. - The name of attribute. - The value of attribute. - A XmlElement instance. - + - Adds the specified text to the end of child nodes of element. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the text to. - The text for add. - A XmlElement instance. - + - Converts the XmlElement instance to a string. + Looks up a localized resource of type System.Drawing.Bitmap. - The element to convert to. - True if needed to include XML declaration. - True if needed to leave the tag of an empty element open. - The XmlElement instance as string. - + - Represents the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the hostname of XMPP server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the port number of the XMPP service of the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username to send file to. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID to send from. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or set the JID to send to. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - Username. - Password. - Hostname. - Port. - Username to send file to. - Send to user's resource. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - User's JID without resource. - User's password. - JID to send to with resource. - + - Sends the specified string to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The string to send. - + - Initiates the stream to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The hostname. - The features response of the server. - + - Validates the server certificate. + Looks up a localized resource of type System.Drawing.Bitmap. - The sender object. - X509 certificate. - The X509 chain. - The SSL policy errors. - True if successfull. - + - Secures the stream by TLS. + Looks up a localized resource of type System.Drawing.Bitmap. - The hostname. - The features response of the server. - + - Selects the SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - List of mechanisms. - The string containing mechanism name. - + - Authenticates the user on the server using Plain mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authenticates the user on the server using Digest-MD5 mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authenticates the user on the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The SASL mechanisms list. - + - Setups the connection with the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Binds resource and gets the full JID that will be associated with current session. + Looks up a localized resource of type System.Drawing.Bitmap. - The full session JID. - + - Opens session between client and server. + Looks up a localized resource of type System.Drawing.Bitmap. - The id of the opened session. - + - Connects to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Sends the message. + Looks up a localized resource of type System.Drawing.Bitmap. - The text of the message. - True if message has been successfully sent. - + - Sends the presence. + Looks up a localized resource of type System.Drawing.Bitmap. - The text of the presence. - True if presence has been successfully sent. - + - Initiates the In Band Bytestream for sending the file (XEP-0047). + Looks up a localized resource of type System.Drawing.Bitmap. - True if bytestream has been successfully initiated. - + - Sends the chunk to the XMPP server. + Looks up a localized resource of type System.Drawing.Bitmap. - The data of the chunk. - The number of the chunk. - + - Sends the file using In Band Bytestream. + Looks up a localized resource of type System.Drawing.Bitmap. - The memory stream containing data of the file. - True if file has been successfully sent. - + - Sends the file using FastReport Cloud as a proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - The export filter to export report before sending. - True if file has been successfully sent. - + - Disconnects from the server. + Looks up a localized resource of type System.Drawing.Bitmap. - - - - - - - + - Closes the connection. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Releases all the resources used by the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents the form of the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - User's JID without resource. - User's password. - Send to user's JID. - Report template. - - - - - - - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Required designer variable. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Clean up any resources being used. + Looks up a localized resource of type System.Drawing.Bitmap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Looks up a localized resource of type System.Drawing.Bitmap. - + - This class contains some global settings that used in the FastReport.Net. + Looks up a localized resource of type System.Drawing.Bitmap. - - This component is intended for use in the Visual Studio IDE to quickly configure - FastReport global settings. To use it, drop the component on your Form and set up - its properties and events. - Here are some common actions that can be performed with this object: - - - To define own open/save dialogs that will be used in the report designer, - use the , , - , events; - - - - To pass connection string to the connection object defined in a report, - or to define own database login dialog, use the event; - - - - To adjust the connection object after it is opened, - use the event; - - - - To define own progress window, use the , - and events; - - - - To setup some common properties of the report, designer and preview, - use properties defined in this class; - - - - To set UI style of the designer and preview window, - use property. - - - - This component actually uses the static class which - contains , and - properties. You can use Config class as well. - - + - Gets or sets the UI style of the designer and preview windows. + Looks up a localized resource of type System.Drawing.Bitmap. - - This property affects both designer and preview windows. - - + - Indicates whether the Ribbon-style window should be used. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs before displaying a progress window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs after closing a progress window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when progress state is changed. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when database connection is about to open. - - Use this event to provide own connection string or user name/password to the connection - object that is about to open. - To provide own connection string, set the e.ConnectionString property. - In this case the new connection string will be used. - To provide own user name/password, set the e.UserName and e.Password properties. - You may ask these values in own login dialog. - This example shows how to provide username/password using own login dialog. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - using (MyLoginDialog dialog = new MyLoginDialog()) - { - if (dialog.ShowDialog() == DialogResult.OK) - { - e.UserName = dialog.UserName; - e.Password = dialog.Password; - } - } - } - - This example shows how to provide own connection string. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - e.ConnectionString = my_connection_string; - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs after the database connection is established. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when discovering the business object's structure. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when determining the kind of business object's property. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the report settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when the designer is loaded. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event if you want to customize some aspects of the designer, for example, - to hide some menu items. - - - This example demonstrates how to hide the "File|Select Language..." menu item. - - environmentSettings1.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); - - void DesignerSettings_DesignerLoaded(object sender, EventArgs e) - { - (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; - } - - - + - Occurs when report is loaded in the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event handler to register application data in a report. - - + - Occurs when object is inserted in the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event handler to set some object's properties when it is inserted. - - + - Occurs when the report designer is about to show the "Open" dialog. - - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will open the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to show the "Save" dialog. - - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will save the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to load the report. - - This event is used together with the event. - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - load the e.Report from the location specified in the e.FileName property. - For example, if you work with files: e.Report.Load(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to save the report. - - This event is used together with the event. - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - save the e.Report to the location specified in the e.FileName property. - For example, if you work with files: e.Report.Save(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when previewing a report from the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event to show own preview window. - - - - environmentSettings1.CustomPreviewReport += new EventHandler(MyPreviewHandler); - - private void MyPreviewHandler(object sender, EventArgs e) - { - Report report = sender as Report; - using (MyPreviewForm form = new MyPreviewForm()) - { - report.Preview = form.previewControl1; - report.ShowPreparedReport(); - form.ShowDialog(); - } - } - - - + - Occurs when getting available table names from the connection. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this handler to filter the list of tables returned by the connection object. - - - This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. - - environmentSettings1.FilterConnectionTables += DesignerSettings_FilterConnectionTables; - - private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) - { - if (e.TableName == "Table 1") - e.Skip = true; - } - - - + - Gets or sets the designer settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the preview settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the email settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the hyperlink type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the hyperlink to external URL such as "http://www.fast-report.com", "mailto:" - or any other system command. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to a given page number. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to a bookmark. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to external report. This report will be run when you follow the hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to this report's page. The page will be run when you follow the hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies a custom hyperlink. No actions performed when you click it, you should handle it - in the object's Click event handler. + Looks up a localized resource of type System.Drawing.Bitmap. - + - This class contains a hyperlink settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the kind of hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use the Kind property to define hyperlink's behavior. - The hyperlink may be used to navigate to the external url, the page number, - the bookmark defined by other report object, the external report, the other page of this report, - and custom hyperlink. - - + - Gets or sets the expression which value will be used for navigation. + Looks up a localized resource of type System.Drawing.Bitmap. - - Normally you should set the Expression property to - any valid expression that will be calculated when this object is about to print. - The value of an expression will be used for navigation. - If you want to navigate to some fixed data (URL or page number, for example), - use the property instead. - - + - Gets or sets a value that will be used for navigation. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property to specify the fixed data (such as URL, page number etc). If you want to - navigate to some dynamically calculated value, use the property instead. - - + - Gets or sets a value that indicate should be links open in new tab or not. + Looks up a localized resource of type System.Drawing.Bitmap. - - It works for HTML-export only! - - + - Gets or sets an external report file name. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailReport. - When you follow the hyperlink, this report will be loaded and run. - You also may specify the report's parameter in the property. - - + - Gets or sets the name of this report's page. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailPage. - When you follow the hyperlink, the specified page will be executed. It may contain the - detailed report. You also may specify the report's parameter in the - property. - - + - Gets or sets a parameter's name that will be set to hyperlink's value. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailReport or DetailPage. - If you want to pass the hyperlink's value to the report's parameter, specify the - parameter name in this property. This parameter will be set to the hyperlink's value - before running a report. It may be used to display detailed information about clicked item. - It is also possible to pass multiple values to several parameters. If hyperlink's value - contains separators (the separator string can be set in the - property), it will be splitted to several values. That values will be passed to nested parameters - of the ReportParameter (you should create nested parameters by youself). For example, you have - the ReportParameter called "SelectedValue" which has two nested parameters: the first one is - "Employee" and the second is "Category". The hyperlink's value is "Andrew Fuller;Beverages". - It will be splitted to two values: "Andrew Fuller" and "Beverages". The first nested parameter - of the ReportParameter that is "Employee" in our case will be set to "Andrew Fuller"; - the second nested parameter ("Category") will be set to "Beverages". - Note: when you create a parameter in the detailed report, don't forget to set - its DataType property. It is used to convert string values to actual data type. - - - + - Gets or sets a string that will be used as a separator to pass several values - to the external report parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Assigns values from another source. + Looks up a localized resource of type System.Drawing.Bitmap. - Source to assign from. - + - Specifies the set of buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No buttons visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Print" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Open" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Save" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Email" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + - The "Find" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The zoom buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Outline" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Page setup" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Edit" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Watermark" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The page navigator buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Close" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Design" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Copy Page" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Delete Page" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - All buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of export buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No exports visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Prepared" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PDFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "RTFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "HTMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "MHTExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XMLExport" export button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Excel2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Excel2003Document" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Word2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PowerPoint2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ODSExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ODTExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XPSExport" export button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "CSVExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "DBFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "TextExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ZplExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ImageExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XAMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "SVGExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PPMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PSExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "JsonExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "LaTeXExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The All export buttons is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of export in clouds buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No exports in clouds visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Box" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Dropbox" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "FastCloud" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Ftp" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "GoogleDrive" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "SkyDrive" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Xmpp" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The All export in clouds buttons is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Contains some settings of the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when the standard preview window opened. + Looks up a localized resource of type System.Drawing.Bitmap. - - You may use this event to change the standard preview window, for example, add an own button to it. - The sender parameter in this event is the PreviewControl. - - + - Gets or sets a set of buttons that will be visible in the preview's toolbar. + Looks up a localized resource of type System.Drawing.Bitmap. - - Here is an example how you can disable the "Print" and "EMail" buttons: - Config.PreviewSettings.Buttons = PreviewButtons.Open | - PreviewButtons.Save | - PreviewButtons.Find | - PreviewButtons.Zoom | - PreviewButtons.Outline | - PreviewButtons.PageSetup | - PreviewButtons.Edit | - PreviewButtons.Watermark | - PreviewButtons.Navigator | - PreviewButtons.Close; - - + - Specifies the set of exports that will be available in the preview's "save" menu. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of exports in clouds that will be available in the preview's "save" menu. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the number of prepared pages that can be stored in the memory cache during preview. + Looks up a localized resource of type System.Drawing.Bitmap. - - Decrease this value if your prepared report contains a lot of pictures. This will - save the RAM memory. - - + - Gets or sets a value indicating whether the preview window is displayed in the Windows taskbar. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets a value indicating whether the preview window should be displayed as a topmost form. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the icon for the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the text for the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - - If no text is set, the default text "Preview" will be used. - - + - Gets or sets a value indicating whether the fast scrolling method should be used. + The class introduces some menu items specific to the TextObjectBase. - - If you enable this property, the gradient background will be disabled. - - + - Enables or disables the "Print to file" feature in the print dialog. + The "Format" menu item. - + - Gets or sets the initial directory that is displayed by a save file dialog. + The "Allow Expressions" menu item. - + - Initializes a new instance of the PreviewSettings class with default settings. + The "Hide Zeros" menu item. - + - A strongly-typed resource class, for looking up localized strings, etc. + Initializes a new instance of the TextObjectBaseMenu + class with default settings. + The reference to a report designer. - + - Returns the cached ResourceManager instance used by this class. + This class represents the context menu of the . + + This class adds the "Can Break" menu item to the component context menu. + - + - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. + The "Can Break" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the BreakableComponentMenu class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Class represent a smart tag that is used to choose a data column. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the data column name. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a root datasource for the object currently edited. + The DataSourceBase object if found; null otherwise. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a smart tag that is used to choose a data source. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a data source. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Implements the object's editor. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the object's editor. + true if object was succesfully edited. + + This method is called by FastReport when the object is doubleclicked in the designer. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides the "search" functionality in the preview and designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Finds the specified text inside the object. + Text to find. + true to perform case-sensitive search. + true to find whole words only. + Array of character ranges that describes the occurences of text found; + null if text not found. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Draws the highlight to show the text found. + Draw event arguments. + Range of characters to highlight. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The base class for smart tags. + + + "Smart tag" is a little button that appears near the object's top-right corner when we are in the + designer and move the mouse over the object. When you click that button you will see a popup window + where you can set up some properties of the object. FastReport uses smart tags to quickly choose + the datasource (for a band) or data column (for objects). + + + Smart tag is internally a ContextMenuStrip. + + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the underlying context menu. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the report object that invokes this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Called when the menu item is clicked. + + Override this method to define a reaction on the menu item click. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates the smart tag menu items. + + Override this method to create the smart tag menu. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Displays a smart tag at the specified screen location. + + Do not call this method directly. It is called automatically when click on smart tag button. + + Screen location. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a reference to another component in a report. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a value measured in the current report units. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing an expandable object. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a data type. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + The base class for the context menu of the report component. + + This class represents a context menu of the report component that is displayed when the object + is right-clicked in the designer. This class implements the following actions: Edit, Cut, Copy, + Paste, Delete, Bring to Front, Send to Back. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Name" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Edit" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Cut" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Copy" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Paste" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Delete" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "BringToFront" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "SendToBack" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The reference to the report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a collection of menu items. + + You should add new items to this collection. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + This method is called to reflect changes in the designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's text. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's text. + Click handler. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's image. + Item's text. + Click handler. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the ComponentBaseMenu class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the report printing mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the default printing mode. One report page produces + one printed paper sheet of the same size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the split mode. Big report page produces several smaller paper sheets. + Use this mode to print A3 report on A4 printer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the scale mode. One or several report pages produce one bigger paper sheet. + Use this mode to print A5 report on A4 printer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the number of report pages printed on one paper sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies one report page per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies two report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies four report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies eight report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the pages to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print all report pages. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print odd pages only. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print even pages only. - + - Looks up a localized resource of type System.Drawing.Bitmap. + This class contains the printer settings. + It is used in the property. + + Typical use of this class is to setup a printer properties without using the "Print" + dialog. In this case, setup necessary properties and turn off the dialog via the + property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the printer name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the printer name should be saved in a report file. + + If this property is set to true, the printer name will be saved in a report file. + Next time when you open the report, the printer will be automatically selected. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the printing output should be send + to a file instead of a printer. + + Also set the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The name of a file to print the report to. + + This property is used if property is true. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value specifies the page range to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the page number(s) to print. + + This property is used if property is set to PageNumbers. + You can specify the page numbers, separated by commas, or the page ranges. + For example: "1,3,5-12". + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of copies to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating whether the printed document should be collated. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value specifies the pages to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines whether to print pages in reverse order. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the duplex mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the paper source. + + This property corresponds to the RAW source number. Default value is 7 which + corresponds to DMBIN_AUTO. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the print mode. + + See the enumeration for details. If you use + the mode other than Default, you must specify the sheet size in the + , properties. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the width of the paper sheet to print on. + + This property is used if the property is not Default. + Specify the paper width in millimeters. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the height of the paper sheet to print on. + + This property is used if the property is not Default. + Specify the paper height in millimeters. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the raw index of a paper size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of pages per printed sheet. + + This property is used if the property is set to Scale. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets an array of printed copy names, such as "Original", "Copy", etc. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies whether to display the "Print" dialog. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Assigns values from another source. + Source to assign from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Resets all settings to its default values. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific + to the ReportComponentBase. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Can Grow" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Can Shrink" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Grow to Bottom" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Hyperlink" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Style" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the ReportComponentBaseMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Alignment" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. If you want to access all + selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns left edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns right edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns centers of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns top edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns bottom edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns middles of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same width as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same height as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same size as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Centers the selected objects horizontally. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Centers the selected objects vertically. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns the selected objects to the grid. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Adjusts the size of selected objects to the grid. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Spaces the selected objects horizontally. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Increases horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Decreases horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Removes horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Spaces the selected objects vertically. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Increases vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Decreases vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Removes vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Border and Fill" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. + If you want to access all selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the object with simple border is selected. + + When the object has a simple border, you cannot change individual border lines. + Example of such an object is the "Shape" and "Line" objects. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the border operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the fill operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the solid fill color for the selected objects. + Fill color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the fill for the selected objects. + Fill. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the style for the selected objects. + Style name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the hyperlink for the selected objects. + Hyperlink. + Indicates whether to modify the object's appearance. + Indicates whether it is necessary to change designer's modified state. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the CanGrow flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the CanShrink flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the GrowToBottom flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Toggles the specified border line for the selected objects. + Border line. + Toggle value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border color for the selected objects. + Border color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border width for the selected objects. + Border width. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border style for the selected objects. + Border style. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border for the selected objects. + Border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the fill editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the border editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the hyperlink editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Text" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. If you want to access all + selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the font name for the selected objects. + Font name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the font size for the selected objects. + Font size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Toggles the specified font style for the selected objects. + Font style. + Toggle value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the horizontal text alignment for tthe selected objects. + Alignment to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the vertical text alignment for tthe selected objects. + Alignment to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the text color for the selected objects. + Text color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the angle for the selected objects. + Angle to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the AutoWidth property value for the selected objects. + Value to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the WordWrap property value for the selected objects. + Value to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the highlight conditions for the selected objects. + Highlight conditions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Clears the text of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the highlight editor for the selected objects. + true if editor was closed with the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific to the TextObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Clear" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Auto Width" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Word Wrap" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the TextObjectMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific to the TextObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the TextObjectMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of selected objects of type. Used by the + . - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that report page is selected. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that report is selected. - + - Looks up a localized resource of type System.Drawing.Bitmap. + the base class for all picture objects - + - Looks up a localized resource of type System.Drawing.Bitmap. + Draw an error image to Graphics g, when the image is designing + + - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the object's editor. + true if object was edited succesfully. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the image rotation angle, in degrees. Possible values are 0, 90, 180, 270. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the data column name to get the image from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the image should be displayed in grayscale mode. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the path for the image to display in the PictureObject. + + This property may contain the path to the image file as well as external URL. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the databases column - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the separate file - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the Web - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the maximum height of a Picture object, in pixels. + + Use this property to restrict the object size if the property + is set to AutoSize. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the maximum width of a Picture object, in pixels. + + Use this property to restrict the object size if the property + is set to AutoSize. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets padding within the PictureObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating whether the PictureObject should display + the error indicator if there is no image in it. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value that specifies how an image is positioned within a PictureObject. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the alignment of a image in the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Return base size of image, internal use only - + - Looks up a localized resource of type System.Drawing.Bitmap. + Return base size of image, internal use only - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Calculates URI from ImageLocation + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + gets points for transform this image + the box where to draw image + image width + image height + scale horizontal + scale vertical + offset of left + offset of top + out start of vectors + out end of frist vector + out end of second vector - + - Looks up a localized resource of type System.Drawing.Bitmap. + Loads image - + - Looks up a localized resource of type System.Drawing.Bitmap. + Moves the point on specified angle + + + + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Rotates vector on specified angle + + + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Draws not tiled image + + + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Reset index of image - + - Looks up a localized resource of type System.Drawing.Bitmap. + When auto size was updated, internal use only - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + The FastReport.dll assembly initializer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Registers all core objects, wizards, export filters. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The FastReport.dll assembly initializer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Registers all core objects, wizards, export filters. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a collection of bands. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with specified owner. + Owner that owns this collection. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The layout of the data band columns. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print columns across then down. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print columns down then across. - + - Looks up a localized resource of type System.Drawing.Bitmap. + This class holds the band columns settings. It is used in the property. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of columns. + + Set this property to 0 or 1 if you don't want to use columns. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The column width, in pixels. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the layout of the columns. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the minimum row count that must be printed. + + This property is used if the Layout property is set to DownThenAcross. 0 means that + FastReport should calculate the optimal number of rows. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Assigns values from another source. + Source to assign from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the BandColumns class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a set of actions that cannot be performed on the object in the design mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no restrictions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts moving the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts resizing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts modifying the object's properties. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts editing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts deleting the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Hides all properties of the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a set of actions that can be performed on the object in the design mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no actions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows moving the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows resizing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows deleting the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows editing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows changing the Z-order of an object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows moving the object to another parent. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows copying the object to the clipboard. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows drawing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows grouping the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows write children in the preview mode by itself. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows write object's bounds into the report stream. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows the "smart tag" functionality. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object's name is global (this is true for all report objects + such as Text, Picture and so on). - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object can display children in the designer's Report Tree window. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object supports mouse wheel in the preview window. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the style of a border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a solid line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of dashes. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of dots. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of a repeating pattern of dash-dot. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of a repeating pattern of dash-dot-dot. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a double line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the sides of a border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no border lines. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the left border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the right border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the top border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the bottom border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies all border lines. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a single border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a color of the line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a style of the line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a width of the line, in pixels. - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a border around the report object. + + Border consists of four lines. Each line has own color, style and width. Lines are accessible through + , , , properties. + + To turn on and off the lines, use the property. To set the same color, style or width + for each line, use , , properties of the Border. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a color of the border. + + This property actually returns a color of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines whether to draw a shadow. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a shadow width, in pixels. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a shadow color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a style of the border. + + This property actually returns a style of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a visible lines of a border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a width of the border, in pixels. + + This property actually returns a width of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the left line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the top line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the right line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the bottom line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines that Border must serialize only one line. + + This property is for internal use only. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates the exact copy of this Border. + A copy of this border. - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Serializes the border. + Writer object. + Border property name. + Another Border to compare with. + + This method is for internal use only. + - + - For internal use only. + Draw the border using draw event arguments and specified bounding rectangle. + Draw event arguments. + Bounding rectangle. + + This method is for internal use only. + - + - For internal use only. + Initializes a new instance of the class with default settings. - + - For internal use only. + Base class for report components that can break across pages. - + - For internal use only. + Gets or sets a value that determines if the component can break its contents across pages. - + - For internal use only. + Gets or sets a reference to another similar object that will be used for displaying the + text that not fit in this object. - + + + + + + + - For internal use only. + Breaks the contents of the object. + Object to put the part of content to that does not fit in this object. These two + objects must have the same type. + true if there is enough space in this object to display at least one text line. + + + Do not call this method directly, it is used by the report engine. You should override it if + you are writing a new FastReport object. + + + This method must break the contents of the object. The part of content that fit in current object's + bounds should remain in this object, the part that does not fit should be transferred to breakTo + object. + + - + - For internal use only. + Initializes a new instance of the BreakableComponent class with default settings. - - - - + - For internal use only. + Specifies a line cap style. - + - For internal use only. + Specifies a line without a cap. - + - For internal use only. + Specifies a line with a circle cap. - + - For internal use only. + Specifies a line with a square cap. - + - Required designer variable. + Specifies a line with a diamond cap. - + - Clean up any resources being used. + Specifies a line with an arrow cap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Specifies a start and end line caps. - + - Required designer variable. + Gets or sets a width of the cap. - + - Clean up any resources being used. + Gets or sets a height of the cap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a cap style. - + - Required designer variable. + Assigns values from another source. + Source to assign from. - + - Clean up any resources being used. + Creates exact copy of this object. - true if managed resources should be disposed; otherwise, false. + Copy of this object. - + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Serializes the cap settings. + Name of the cap property. + Writer object. + Another cap to compare with. + + This method is for internal use only. + - - - Required designer variable. + + + Initializes a new instance of the CapSettings class with default settings. - - - Clean up any resources being used. + + + Specifies a symbol that will be displayed when a is in the checked state. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Specifies a check symbol. - + - Provides data for the event. + Specifies a diagonal cross symbol. - + - Gets a name of the file to load the report from. + Specifies a plus symbol. - + - The reference to a report. + Specifies a filled rectangle. - + - Initializes a new instance of the class using the specified - file name and the report. + Specifies a symbol that will be displayed when a is in the unchecked state. - The name of the file to load the report from. - The report. - + - Provides data for the event. + Specifies no symbol. - + - Gets an expression. + Specifies a diagonal cross symbol. - + - Gets or sets a object. + Specifies a minus symbol. - + - The reference to a report. + This class represents a column footer band. - + - Initializes a new instance of the class using the specified - file name and the report. + This property is not relevant to this class. - The text of expression. - The name of the file to load the report from. - The report. - + - Represents the method that will handle the event. + This property is not relevant to this class. - The source of the event. - The event data. - + - Represents the method that will handle the event. + Initializes a new instance of the class with default settings. - The source of the event. - The event data. - + - Provides data for the Progress event. + This class represents a column header band. - + - Gets a progress message. + This property is not relevant to this class. - + - Gets the current page number. + This property is not relevant to this class. - + - Gets the number of total pages. + Initializes a new instance of the class with default settings. - + - Initializes a new instance of the class using the specified - message, page number and total number of pages. + Represents a collection of highlight conditions used in the property + of the . - The progress message. - Current page number. - Number of total pages. - + - Represents the method that will handle the Progress event. + Gets or sets the element at the specified index. - The source of the event. - The event data. + Index of an element. + The element at the specified index. - + - Provides data for the DatabaseLogin event. + Adds the specified elements to the end of this collection. + Array of elements to add. - + - Gets or sets the connection string. + Adds an object to the end of this collection. + Object to add. + Index of the added object. - + - Gets or sets an user name. + Inserts an object into this collection at the specified index. + The zero-based index at which value should be inserted. + The object to insert. - + - Gets or sets a password. + Removes the specified object from the collection. + Object to remove. - + - Initializes a new instance of the class using the specified - connection string. + Returns the zero-based index of the first occurrence of an object. - The connection string. + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - Represents the method that will handle the DatabaseLogin event. + Determines whether an element is in the collection. - The source of the event. - The event data. + The object to locate in the collection. + true if object is found in the collection; otherwise, false. - + + + + + + + - Provides data for the AfterDatabaseLogin event. + Copies conditions from another collection. + Collection to copy from. - + + + + + + + - Gets the DbConnection object. + This class represents a data band footer. - + - Initializes a new instance of the class using - the specified connection. + This class represents a header of the data band. - The connection object. - + - Represents the method that will handle the AfterDatabaseLogin event. + Base class for all fills. - The source of the event. - The event data. - + - Provides data for the FilterProperties event. + Creates exact copy of this fill. + Copy of this object. - + - Gets the property descriptor. + Creates the GDI+ Brush object. + Drawing rectangle. + Brush object. - + - Gets or sets a value that indicates whether this property should be skipped. + Creates the GDI+ Brush object with scaling. + Drawing rectangle. + X scaling coefficient. + Y scaling coefficient. + Brush object. - + - Represents the method that will handle the FilterProperties event. + Serializes the fill. - The source of the event. - The event data. + Writer object. + Name of the fill property. + Fill object to compare with. + + This method is for internal use only. + - + - Provides data for the GetPropertyKind event. + Fills the specified rectangle. + Draw event arguments. + Drawing rectangle. - + - Gets the property name. + Class represents the solid fill. - + - Gets the property type. + Gets or sets the fill color. - + + + + + + + + + + + + + + + + + + + - Gets or sets the kind of property. + Initializes the class with Transparent color. - + - Represents the method that will handle the GetPropertyKind event. + Initializes the class with specified color. - The source of the event. - The event data. + - + - Provides data for the GetTypeInstance event. + Class represents the linear gradient fill. - + - Gets the type. + Gets or sets the start color of the gradient. - + - Gets or sets the instance of type. + Gets or sets the end color of the gradient. - + - Represents the method that will handle the GetPropertyKind event. + Gets or sets the angle of the gradient. - The source of the event. - The event data. - + - Specifies the default paper size used when creating a new report. + Gets or sets the focus point of the gradient. + + Value is a floating point value from 0 to 1. + - + - A4 paper (210 x 297 mm). + Gets or sets the gradient contrast. + + Value is a floating point value from 0 to 1. + - + + + + + + + + + + + + + + + + - Letter paper (8.5 x 11 inches, 216 x 279 mm). + Initializes the class with default settings. - + - The class introduces some menu items specific to the TextObjectBase. + Initializes the class with start and end colors. + Start color. + End color. - + - The "Format" menu item. + Initializes the class with start, end colors and angle. + Start color. + End color. + Angle. - + - The "Allow Expressions" menu item. + Initializes the class with start and end colors, angle, focus and contrast. + Start color. + End color. + Angle. + Focus. + Contrast. - + - Initializes a new instance of the TextObjectBaseMenu - class with default settings. + The style of the path gradient. - The reference to a report designer. - + - Represents a collection of the objects. + Elliptic gradient. - + - Gets or sets the element at the specified index. + Rectangular gradient. - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Class represents the path gradient fill. - - + - Adds an object to the end of this collection. + Gets or sets the center color of the gradient. - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + Gets or sets the edge color of the gradient. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Gets or sets the style of the gradient. - Object to remove. - + + + + + + + + + + + + + + + + - Returns the zero-based index of the first occurrence of an object. + Initializes the class with default settings. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. - + - Returns the zero-based index of the first occurrence of a style collection with specified name. + Initializes the class with center, edge colors and style. - The style collection name to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + Center color. + Edge color. + Gradient style. - + - Determines whether an element is in the collection. + Class represents the hatch fill. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - + - Determines whether a style collection with specified name is in the collection. + Gets or sets the foreground color. - The style collection name to locate in the collection. - true if object is found in the collection; otherwise, false. - + - Gets an array containing all collection items. + Gets or sets the background color. - An array containing all collection items. - + - Serializes the collection. + Gets or sets the hatch style. - Writer object. - - This method is for internal use only. - - + + + + + + + + + + + + + + + + - Deserializes the collection. + Initializes the class with default settings. - Reader object. - - This method is for internal use only. - - + - Saves the collection to a stream. + Initializes the class with foreground, background colors and hatch style. - Stream to save to. + Foreground color. + Background color. + Hatch style. - + - Saves the collection to a file with specified name. + Class represents the glass fill. - File name to save to. - + - Loads the collection from a stream. + Gets or sets the fill color. - Stream to load from. - + - Loads the collection from a file with specified name. + Gets or sets the blend value. - Name of a file. + Value must be between 0 and 1. + - + - Specifies how to display the duplicate values. + Gets or sets a value determines whether to draw a hatch or not. - + + + + + + + + + + + + + + + + + + + - The TextObject can show duplicate values. + Initializes the class with default settings. - + - The TextObject with duplicate value will be hidden. + Initializes the class with given color, blend ratio and hatch style. + Color. + Blend ratio (0..1). + Display the hatch. - + - The TextObject with duplicate value will be shown but with no text. + Class represents the Texture fill. - + - Several TextObject objects with the same value will be merged into one TextObject object. + Gets or sets value, indicating that image should preserve aspect ratio - + - Specifies how the report engine processes the text objects. + Gets or sets the image width - + - Specifies the default process mode. The text object is processed just-in-time. + Gets or sets the image height - + - Specifies that the text object must be processed when the entire report is finished. This mode - can be used to print grand total value (which is normally calculated at the end of report) in the - report title band. + Gets or sets the texture wrap mode - + - Specifies that the text object must be processed when the entire report page is finished. This mode - can be used if the report template consists of several report pages. + Gets or sets the image index - + - Specifies that the text object must be processed when any report page is finished. This mode - can be used to print the page total (which is normally calculated at the page footer) in the - page header band. + Gets or sets the image data - + - Specifies that the text object must be processed when the column is finished. This mode - can be used to print the column total (which is normally calculated at the column footer) in the - column header band. + Image left offset - + - Specifies that the text object must be processed when the data block is finished. This mode can be - used to print a total value in the data header (which is normally available - in the data footer only). + Image top offset - + - Specifies that the text object must be processed when the group is finished. This mode can be - used to print a total value in the group header (which is normally available - in the group footer only). + Sets image data to imageData + input image data - + - Specifies that the text object is processed manually when you call the Engine.ProcessObject - method in the report script. + Set image + input image - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Represents text outline. + Initializes the class with default texture. - + - Gets or sets a value indicating that outline is enabled. + Initializes the class with specified image. + - + - Enable or disable draw the outline behind of text. + Initializes the class with specified image. + - + - Gets or sets the outline color. + Font descriptor - + - Gets or sets the outline width. + Indicates that the point is the start of a figure. - + - Specifies the style of an outline. + Indicates that the point is one of the two endpoints of a line. - + - Initializes a new instance of the class. + Indicates that the point is an endpoint or control point of a cubic Bézier spline. - + - Initializes a new instance of the class with specified parameters. + Masks all bits except for the three low-order bits, which indicate the point type. - True if outline enabled. - Outline color. - Outline width. - Outline style. - True if outline should be drawn behind text. - + - Copies the content of another TextOutline. + Specifies that the point is a marker. - The TextOutline instance to copy the contents from. - + - Creates the exact copy of this outline. + Specifies that the point is the last point in a closed subpath (figure). - Copy of this outline. - + - Serializes the TextOutline. + FontHeader table - Writer object. - TextOutline property name. - Another TextOutline to compare with. - + - Represents the "Blank Report" wizard. + Define type of font file - - - - + - Represents the "Inherited Report" wizard. + Classic TrueType font - - - - + - Represents the "Label" wizard. + Collection of TrueType fonts - + - Gets a selected label manufacturer. + OpenType font format - + - Gets a selected label name. + GlyphSubstitution table - + - Gets the XML item containing a selected label parameters. + Return true if was applied + + + + - - - - + - Initializes a new instance of the class with the default settings. + Return coverageIndex for ApplyForce or if fail then return -1 + + + - + - Represents the "New Data Source" wizard. + Apply this Substitution with specified coverageIndex, cant be called only after IsApply + + + + - - - - + - Represents the "Standard Report" wizard. + Table with encoded glyphs' outline - - - - + - The base class for all report wizards. + HorizontalMetrix table - - To create own wizard, use this class as a base. All you need is to override - the method. To register a wizard, use the - method. - - + - Runs the wizard. + IndexToLocation table - Report designer. - true if wizard was executed succesfully. - - This method is called when you select a wizard in the "Add New Item" window and - click "Add" button. You should do the work in this method. - - + - Represents the "New Dialog" wizard. + Kerning table - - - - + - Represents the "New Page" wizard. + MaximumProfile table - - - - + - This class represents the context menu of the . + Name table keep human friendly description about font properties, including font names, author and copyright notes - - This class adds the "Can Break" menu item to the component context menu. - - + - The "Can Break" menu item. + OS/2 and Windows Metrics table - + - Initializes a new instance of the BreakableComponentMenu class with default settings. + Description of FontTextMetric structure - + - Specifies a symbol that will be displayed when a is in the checked state. + Description of FontPanose structure - + - Specifies a check symbol. + True Type Font Collectiom - + - Specifies a diagonal cross symbol. + Will be removed soon - + - Specifies a plus symbol. + Different caching strategies - + - Specifies a filled rectangle. + Reference counter - + - Specifies a symbol that will be displayed when a is in the unchecked state. + Progress callback type definition + Progress information - + - Specifies no symbol. + Progress callback event - + - Specifies a diagonal cross symbol. + Open and parse TrueType file + + + - + - Specifies a minus symbol. + Find all fonts files in directory and it's subdirectories + Directory where find fond files + Defines file which collect found fonts - + - The layout of the data band columns. + Get TrueType font from static collection + String which identifies font - family name + "-B" for bold and "-I" for italic + - + - Print columns across then down. + Get font by its name and bold/italic attributes + + TrueType font object - + - Print columns down then across. + Workaround function for avoid font duplicates + if true then font append to collection, if false then font append to hash + Internal font structure + This parameter defines path to font file if file append to hash. Not used otherwise - + - This class holds the band columns settings. It is used in the property. + Parse raw image of font data and create TrueTypeFont objects from this image + Defines font or collections + Pointer to memory of raw font data + - + - Gets or sets the number of columns. + Build list of fonts - - Set this property to 0 or 1 if you don't want to use columns. - + Optional path to font.list folder. - + - The column width, in pixels. + Interface for TrueTypeFont object - + - Gets or sets the layout of the columns. + TrueTypeFont object - + - Gets or sets the minimum row count that must be printed. + Get or set current script - - This property is used if the Layout property is set to DownThenAcross. 0 means that - FastReport should calculate the optimal number of rows. - - + - Assigns values from another source. + Get or set current Language - Source to assign from. - + - Initializes a new instance of the BandColumns class with default settings. + Get available scripts - + - Represents a collection of bands. + Get available languages for script + + - + - Gets or sets the element at the specified index. + Get available features for language and script - Index of an element. - The element at the specified index. + + + - + - Initializes a new instance of the class with default settings. + Prepare tables for drawing, subsetting and so on + always true - + - Initializes a new instance of the class with specified owner. + Return raw image of the font - Owner that owns this collection. + Array of font bytes - + - Specifies a set of actions that cannot be performed on the object in the design mode. + Cut some information from TTF file to reduce its size + List of character codes to preserve them in font + If true then ignore CMAP table + - + - Specifies no restrictions. + Parse font supplement tables which store properties of the font - + - Restricts moving the object. + Get unique font identifier + - + - Restricts resizing the object. + Create glyph outline assigned to specific position + unicode character which will be drawn + size of the character + position of outline + outline of character - + - Restricts modifying the object's properties. + Get glyph's outline + unicode charter + outline image size + - + - Restricts editing the object. + Create outline for group of characters + text as array of glyph's indexes + position of text + font size + text in form of outline vectors - + - Restricts deleting the object. + Create outline for text string + text which will be transformed to outline + position of text + font size in px + text in form of outline vectors - + + + + - Hides all properties of the object. + Constructor of TrueTypeFont object + The start of RAW image of font or font collection + Actual address of font within RAW image + Reference count emulation - + - Specifies a set of actions that can be performed on the object in the design mode. + Description of SCRIPT_STATE structure - + - Specifies no actions. + data - + - Allows moving the object. + uBidiLevel - + - Allows resizing the object. + SetRtl - + - Allows deleting the object. + Description of SCRIPT_ANALYSIS structure - + - Allows editing the object. + data - + - Allows changing the Z-order of an object. + state - + - Allows moving the object to another parent. + Description of SCRIPT_CONTROL structure - + - Allows copying the object to the clipboard. + data - + - Allows drawing the object. + Description of SCRIPT_DIGITSUBSTITUTE structure - + - Allows grouping the object. + NationalDigitLanguage - + - Allows write children in the preview mode by itself. + TraditionalDigitLanguage - + - Allows write object's bounds into the report stream. + DigitSubstitute - + - Allows the "smart tag" functionality. + dwReserved - + - Specifies that the object's name is global (this is true for all report objects - such as Text, Picture and so on). + Description of SCRIPT_ITEM structure - + - Specifies that the object can display children in the designer's Report Tree window. + iCharPos - + - Specifies that the object supports mouse wheel in the preview window. + analysis - + - Represents a collection of highlight conditions used in the property - of the . + Description of SCRIPT_VISATTR structure - + - Gets or sets the element at the specified index. + data - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Description of GOFFSET structure - Array of elements to add. - + - Adds an object to the end of this collection. + du - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + dv - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Description of ABC structure - Object to remove. - + - Returns the zero-based index of the first occurrence of an object. + abcA - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. - + - Determines whether an element is in the collection. + abcB - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - - - - - - - + - Copies conditions from another collection. + abcC - Collection to copy from. - - - - - - - + - Class represent a smart tag that is used to choose a data column. + Description of FontRect structure - + - Gets or sets the data column name. + Description of FontPoint structure - - - - + - Gets a root datasource for the object currently edited. + Description of OutlineTextMetric structure - The DataSourceBase object if found; null otherwise. - + - Initializes a new instance of the class with default settings. + Emulation of Uniscribe GetOutlineTextMetrics - Report object that owns this smart tag. + Reference to metric structure - + - Represents a smart tag that is used to choose a data source. + Translate text to positions of glyphs in glyph tables and glyphs width + + size in px + + + + - + - Gets or sets a data source. + Destructor of TrueTypeFont object - - - - + - Initializes a new instance of the class with default settings. + Base class which is parent of any table in TrueType font or collection - Report object that owns this smart tag. - + - Base class for report components that can break across pages. + - + - Gets or sets a value that determines if the component can break its contents across pages. + + + - + - Gets or sets a reference to another similar object that will be used for displaying the - text that not fit in this object. + + + - - - - - + + + + + + - + - Breaks the contents of the object. + - Object to put the part of content to that does not fit in this object. These two - objects must have the same type. - true if there is enough space in this object to display at least one text line. - - - Do not call this method directly, it is used by the report engine. You should override it if - you are writing a new FastReport object. - - - This method must break the contents of the object. The part of content that fit in current object's - bounds should remain in this object, the part that does not fit should be transferred to breakTo - object. - - + + - + - Initializes a new instance of the BreakableComponent class with default settings. + + + - + - Implements the object's editor. + + + + - + - Invokes the object's editor. + - true if object was succesfully edited. - - This method is called by FastReport when the object is doubleclicked in the designer. - + + + - + - Represents a single highlight condition used by the property - of the . + Defines how boolean values are formatted and displayed. - + - Gets or sets a highlight expression. + Gets or sets a string that will be displayed if value is false. - - This property can contain any valid boolean expression. If value of this expression is true, - the fill and font settings will be applied to the TextObject. - - + - Gets or sets the visibility flag. + Gets or sets a string that will be displayed if value is true. - - If this property is set to false, the Text object will be hidden if the - condition is met. - - + - + - - - Creates exact copy of this condition. - - A copy of this condition. - - + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the BooleanFormat class with default settings. - + - Provides the "search" functionality in the preview and designer. + Defines how currency values are formatted and displayed. - + - Finds the specified text inside the object. + Gets or sets a value that determines whether to use system locale settings to format a value. - Text to find. - true to perform case-sensitive search. - true to find whole words only. - Array of character ranges that describes the occurences of text found; - null if text not found. - + - Draws the highlight to show the text found. + Gets or sets the number of decimal places to use in currency values. - Draw event arguments. - Range of characters to highlight. - + - This class contains the page columns settings. - It is used in the property. + Gets or sets the string to use as the decimal separator in currency values. - + - Gets or sets the number of columns. + Gets or sets the string that separates groups of digits to the left of the decimal in currency values. - - Set this property to 0 or 1 if you don't want to use columns. - - + - Gets or sets the column width. + Gets or sets the string to use as the currency symbol. - + - Gets or sets a list of column starting positions. + Gets or sets the format pattern for positive currency values. - - Each value represents a column starting position measured in the millimeters. + This property can have one of the values in the following table. + The symbol "$" is the CurrencySymbol and n is a number. + + ValueAssociated Pattern + 0$n + 1n$ + 2$ n + 3n $ + - - - Assigns values from another source. - - Source to assign from. - - + - The base class for smart tags. + Gets or sets the format pattern for negative currency values. - - - "Smart tag" is a little button that appears near the object's top-right corner when we are in the - designer and move the mouse over the object. When you click that button you will see a popup window - where you can set up some properties of the object. FastReport uses smart tags to quickly choose - the datasource (for a band) or data column (for objects). - - - Smart tag is internally a ContextMenuStrip. - + This property can have one of the values in the following table. + The symbol "$" is the CurrencySymbol and n is a number. + + ValueAssociated Pattern + 0 ($n) + 1 -$n + 2 $-n + 3 $n- + 4 (n$) + 5 -n$ + 6 n-$ + 7 n$- + 8 -n $ + 9 -$ n + 10n $- + 11$ n- + 12$ -n + 13n- $ + 14($ n) + 15(n $) + - - - Gets the underlying context menu. - + + - - - Gets the report object that invokes this smart tag. - + + - - - Gets the report designer. - + + - + + + + - Called when the menu item is clicked. + Initializes a new instance of the CurrencyFormat class with default settings. - - Override this method to define a reaction on the menu item click. - - + - Creates the smart tag menu items. + Represents a format that uses the Format string to display values. - - Override this method to create the smart tag menu. - - + - Displays a smart tag at the specified screen location. + Gets or sets a format string. - Do not call this method directly. It is called automatically when click on smart tag button. + Default format is "G". For example, if you want to format a date, use the following + format string: "MM/dd/yyyy". See the System.String.Format method for list + of possible format strings. - Screen location. - - - Initializes a new instance of the class with default settings. - - Report object that owns this smart tag. + + + + + + + + + + + - + - Represents a sort condition used in the . + Initializes a new instance of the CustomFormat class with default settings. - + - Gets or sets an expression used to sort data band rows. + Defines how date values are formatted and displayed. - - This property can contain any valid expression. - - - - Gets or sets a value indicating that sort must be performed in descending order. - + + - + - Serializes the class. + Initializes a new instance of the DateFormat class with default settings. - Writer object. - - This method is for internal use only. - - + - Deserializes the class. + Base class for all formats. - Reader object. - This method is for internal use only. + The format is used to format expression value in a object. - + - Initializes a new instance of the class with default settings. + Gets the short format name (e.g. without a "Format" suffix). - + - Initializes a new instance of the class with specified expression. + Creates exact copy of this format. + The copy of this format. - + - Initializes a new instance of the class with specified expression and sort order. + Formats the specified value. + The value to format. + The string that represents the formatted value. - + + + + + + + - Represents a collection of sort conditions used in the . + Represents a collection of formats used by the and + objects. - + Gets or sets the element at the specified index. Index of an element. The element at the specified index. - + Adds the specified elements to the end of this collection. - + Array of elements to add. - + Adds an object to the end of this collection. Object to add. Index of the added object. - + Inserts an object into this collection at the specified index. The zero-based index at which value should be inserted. The object to insert. - + Removes the specified object from the collection. Object to remove. - + Returns the zero-based index of the first occurrence of an object. @@ -44078,901 +44792,1098 @@ The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1. - + Determines whether an element is in the collection. The object to locate in the collection. true if object is found in the collection; otherwise, false. - + - + - + - Assigns values from another collection. + Copies formats from another collection. - Collection to assign from. + Collection to copy from. - - - Specifies the style of a border line. - + + - - - Specifies a solid line. - + + - + - Specifies a line consisting of dashes. + Represents a format used to display values with no formatting. - + + + + + + + + + + + + + - Specifies a line consisting of dots. + Defines how numeric values are formatted and displayed. - + - Specifies a line consisting of a repeating pattern of dash-dot. + Gets or sets a value that determines whether to use system locale settings to format a value. - + - Specifies a line consisting of a repeating pattern of dash-dot-dot. + Gets or sets the number of decimal places to use in numeric values. - + - Specifies a double line. + Gets or sets the string to use as the decimal separator in numeric values. - + - Specifies the sides of a border. + Gets or sets the string that separates groups of digits to the left of the decimal in numeric values. - + - Specifies no border lines. + Gets or sets the format pattern for negative numeric values. + This property can have one of the values in the following table. + The symbol n is a number. + + ValueAssociated Pattern + 0(n) + 1-n + 2- n + 3n- + 4n - + + - + + + + + + + + + + + + + - Specifies the left border line. + Initializes a new instance of the NumberFormat class with default settings. - + - Specifies the right border line. + Defines how percent values are formatted and displayed. - + - Specifies the top border line. + Gets or sets a value that determines whether to use system locale settings to format a value. - + - Specifies the bottom border line. + Gets or sets the number of decimal places to use in percent values. - + - Specifies all border lines. + Gets or sets the string to use as the decimal separator in percent values. - + - Represents a single border line. + Gets or sets the string that separates groups of digits to the left of the decimal in percent values. - + - Gets or sets a color of the line. + Gets or sets the string to use as the percent symbol. - + - Gets or sets a style of the line. + Gets or sets the format pattern for positive percent values. + This property can have one of the values in the following table. + The symbol "%" is the PercentSymbol and n is a number. + + ValueAssociated Pattern + 0n % + 1n% + 2%n + 3% n + + - + - Gets or sets a width of the line, in pixels. + Gets or sets the format pattern for negative percent values. + This property can have one of the values in the following table. + The symbol "%" is the PercentSymbol and n is a number. + + ValueAssociated Pattern + 0 -n % + 1 -n% + 2 -%n + 3 %-n + 4 %n- + 5 n-% + 6 n%- + 7 -%n + 8 n %- + 9 % n- + 10% -n + 11n- % + + - + - + - + + + + + + + - Represents a border around the report object. + Initializes a new instance of the PercentFormat class with default settings. - - Border consists of four lines. Each line has own color, style and width. Lines are accessible through - , , , properties. - - To turn on and off the lines, use the property. To set the same color, style or width - for each line, use , , properties of the Border. - - + - Gets or sets a color of the border. + Defines how time values are formatted and displayed. - - This property actually returns a color of the . When you assign a value - to this property, the value will be set to each border line. - - + + + + - Gets or sets a value determines whether to draw a shadow. + Initializes a new instance of the TimeFormat class with default settings. - + - Gets or sets a shadow width, in pixels. + Based on code of Stefan Bцther, xprocs@hotmail.de - + - Gets or sets a shadow color. + Contains standard functions registered in the "Data" window. - + - Gets or sets a style of the border. + Returns the larger of two 32-bit signed integers. - - This property actually returns a style of the . When you assign a value - to this property, the value will be set to each border line. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets a visible lines of a border. + Returns the larger of two 64-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets a width of the border, in pixels. + Returns the larger of two single-precision floating-point numbers. - - This property actually returns a width of the . When you assign a value - to this property, the value will be set to each border line. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the left line of the border. + Returns the larger of two double-precision floating-point numbers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the top line of the border. + Returns the larger of two decimal numbers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the right line of the border. + Returns the smaller of two 32-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Gets or sets the bottom line of the border. + Returns the smaller of two 64-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Gets or sets a value determines that Border must serialize only one line. + Returns the smaller of two single-precision floating-point numbers. - - This property is for internal use only. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Creates the exact copy of this Border. + Returns the smaller of two double-precision floating-point numbers. - A copy of this border. - - - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - - + + + Returns the smaller of two decimal numbers. + + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Serializes the border. + Returns an integer value representing the character code corresponding to a character. - Writer object. - Border property name. - Another Border to compare with. - - This method is for internal use only. - + Character to convert. + The character code. - + - Draw the border using draw event arguments and specified bounding rectangle. + Returns the character associated with the specified character code. - Draw event arguments. - Bounding rectangle. - - This method is for internal use only. - + Character code to convert. + The character. - + - Initializes a new instance of the class with default settings. + Inserts a specified string at a specified index position in the original string. + The original string. + The index position of the insertion. + The string to insert. + A new string. - + - Specifies a line cap style. + Gets the number of characters in a string. + The original string. + The number of characters. - + - Specifies a line without a cap. + Converts a specified string to lowercase. + The string to convert. + A string in lowercase. - + - Specifies a line with a circle cap. + Right-aligns the characters in a string, padding with spaces on the left for a specified total length. + The original string. + The number of characters in the resulting string. + Right-aligned string, padded on the left with spaces. - + - Specifies a line with a square cap. + Right-aligns the characters in a string, padding on the left with a specified character + for a specified total length. + The original string. + The number of characters in the resulting string. + A padding character. + Right-aligned string, padded on the left with padding characters. - + - Specifies a line with a diamond cap. + Left-aligns the characters in a string, padding with spaces on the right, for a specified total length. + The original string. + The number of characters in the resulting string. + Left-aligned string, padded on the right with spaces. - + - Specifies a line with an arrow cap. + Left-aligns the characters in a string, padding on the right with a specified character, + for a specified total length. + The original string. + The number of characters in the resulting string. + A padding character. + Left-aligned string, padded on the right with padding characters. - + - Specifies a start and end line caps. + Converts the specified string to titlecase. + The string to convert. + A new string. - + - Gets or sets a width of the cap. + Deletes all the characters from a string beginning at a specified position. + The original string. + The position to begin deleting characters. + A new string. - + - Gets or sets a height of the cap. + Deletes a specified number of characters from a string beginning at a specified position. + The original string. + The position to begin deleting characters. + The number of characters to delete. + A new string. - + - Gets or sets a cap style. + Replaces all occurrences of a specified string in the original string, with another specified string. + The original string. + A string to be replaced. + A string to replace all occurrences of oldValue. + A new string. - + - Assigns values from another source. + Retrieves a substring from the original string, starting at a specified character position. - Source to assign from. + The original string. + The starting character position of a substring. + A new string. - + - Creates exact copy of this object. + Retrieves a substring from the original string, starting at a specified character position, + with a specified length. - Copy of this object. + The original string. + The starting character position of a substring. + The number of characters in the substring. + A new string. - - + + + Removes all occurrences of white space characters from the beginning and end of the original string. + + The original string. + A new string. - - + + + Converts a specified string to uppercase. + + The string to convert. + A string in uppercase. - + - Serializes the cap settings. + Adds the specified number of days to the original date. - Name of the cap property. - Writer object. - Another cap to compare with. - - This method is for internal use only. - + The original date. + A number of whole and fractional days. + A new DateTime value. - + - Initializes a new instance of the CapSettings class with default settings. + Adds the specified number of hours to the original date. + The original date. + A number of whole and fractional hours. + A new DateTime value. - + - This class represents a column footer band. + Adds the specified number of minutes to the original date. + The original date. + A number of whole and fractional minutes. + A new DateTime value. - + - This property is not relevant to this class. + Adds the specified number of months to the original date. + The original date. + A number of months. + A new DateTime value. - + - This property is not relevant to this class. + Adds the specified number of seconds to the original date. + The original date. + A number of whole and fractional seconds. + A new DateTime value. - + - Initializes a new instance of the class with default settings. + Adds the specified number of years to the original date. + The original date. + A number of years. + A new DateTime value. - + - This class represents a column header band. + Subtracts the specified date and time from the original date. + The original date. + The date and time to subtract. + A TimeSpan interval between two dates. - + - This property is not relevant to this class. + Initializes a new instance of the DateTime. + The year. + The month. + The day. + A new DateTime value. - + - This property is not relevant to this class. + Gets the day of the month. + The date value. + The day component. - + - Initializes a new instance of the class with default settings. + Gets the localized name of the day of the week. + The date value. + The name of the day of the week. - + - This class represents a data band footer. + Gets the day of the year. + The date value. + The day of the year. - + - This class represents a header of the data band. + Returns the number of days in the specified month and year. + The year. + The month. + The number of days in month for the specified year. - + - Base class for all fills. + Gets the hour component of the date. + The date. + The hour component. - + - Creates exact copy of this fill. + Gets the minute component of the date. - Copy of this object. + The date. + The minute component. - + - Creates the GDI+ Brush object. + Gets the month component of the date. - Drawing rectangle. - Brush object. + The date. + The month component. - + - Serializes the fill. + Gets the localized month name. - Writer object. - Name of the fill property. - Fill object to compare with. - - This method is for internal use only. - + The month number. + The month name. - + - Fills the specified rectangle. + Gets the seconds component of the date. - Draw event arguments. - Drawing rectangle. + The date. + The seconds component. - + - Class represents the solid fill. + Gets the week of the year. + The date value. + The week of the year. - + - Gets or sets the fill color. + Gets the year component of the date. + The date. + The year component. - - - - - - - - - - - - - - - - - - - + - Initializes the class with Transparent color. + Replaces the format item in a specified String with the text equivalent of the value of a + corresponding Object instance in a specified array. + A String containing zero or more format items. + An Object array containing zero or more objects to format. + A copy of format in which the format items have been replaced by the String equivalent of the corresponding instances of Object in args. - + - Initializes the class with specified color. + Returns a string formatted as a currency value. - + The value to format. + The formatted string. - + - Class represents the linear gradient fill. + Returns a string formatted as a currency value with specified number of decimal digits. + The value to format. + Number of decimal digits. + The formatted string. - + - Gets or sets the start color of the gradient. + Returns a string formatted as a date/time value. + The value to format. + The formatted string. - + - Gets or sets the end color of the gradient. + Returns a string formatted as a date/time value. + The value to format. + The format specifier, one of the + "Long Date", "Short Date", "Long Time", "Short Time" values. + The formatted string. - + - Gets or sets the angle of the gradient. + Returns a string formatted as a numeric value. + The value to format. + The formatted string. - + - Gets or sets the focus point of the gradient. + Returns a string formatted as a numeric value with specified number of decimal digits. - - Value is a floating point value from 0 to 1. - + The value to format. + Number of decimal digits. + The formatted string. - + - Gets or sets the gradient contrast. + Returns a string formatted as a percent value. - - Value is a floating point value from 0 to 1. - - - - - - - - - - - - - - - - + The value to format. + The formatted string. - + - Initializes the class with default settings. + Returns a string formatted as a percent value with specified number of decimal digits. + The value to format. + Number of decimal digits. + The formatted string. - + - Initializes the class with start and end colors. + Converts a numeric value to Roman string representation. - Start color. - End color. + Integer value in range 0-3998. + The string in Roman form. - + - Initializes the class with start, end colors and angle. + Converts a currency value to an english (US) string representation of that value. - Start color. - End color. - Angle. + The currency value to convert. + The string representation of the specified value. - + - Initializes the class with start and end colors, angle, focus and contrast. + Converts a currency value to an english (US) string representation of that value, + using the specified currency. - Start color. - End color. - Angle. - Focus. - Contrast. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - The style of the path gradient. + Converts a numeric value to an english (US) string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - + - Elliptic gradient. + Converts a currency value to an english (GB) string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Rectangular gradient. + Converts a currency value to an english (GB) string representation of that value, + using the specified currency. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Class represents the path gradient fill. + Converts a numeric value to an english (GB) string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - + - Gets or sets the center color of the gradient. + Converts a currency value to a spanish string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Gets or sets the edge color of the gradient. + Converts a currency value to a spanish string representation of that value, + using the specified currency. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Gets or sets the style of the gradient. + Converts a numeric value to a spanish string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - - - - - - - - - - - - - - - - + - Initializes the class with default settings. + Converts a currency value to a russian string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Initializes the class with center, edge colors and style. + Converts a currency value to a russian string representation of that value, + using the specified currency. - Center color. - Edge color. - Gradient style. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Class represents the hatch fill. + Converts a numeric value to a russian string representation of that value. + The numeric value to convert. + True if the name is of male gender. + The name in singular form, for example "страница". + The name in plural form, for example "страницы". + The name in plural form, for example "страниц". + The string representation of the specified value. - + - Gets or sets the foreground color. + Selects and returns a value from a list of arguments. + A value between 1 and the number of elements passed in the "choice" argument. + Object parameter array. + One of the values in the "choice" argument. - + - Gets or sets the background color. + Returns one of two objects, depending on the evaluation of an expression. + The expression you want to evaluate. + Returned if Expression evaluates to True. + Returned if Expression evaluates to False. + Either truePart os falsePart. - + - Gets or sets the hatch style. + Evaluates a list of expressions and returns a value corresponding to the first + expression in the list that is True. + Parameter array consists of paired expressions and values. + The value corresponding to an expression which returns true. - - - - - - - - + + + Checks if the specified object is null. + + The report instance. + Either a name of DB column, or a parameter name, or a total name to check. + true if the object's value is null. - - + + + Represents a group footer band. + - - + + + Specifies a sort order. + + + This enumeration is used in the group header and in the "Matrix" object. + - + - Initializes the class with default settings. + Specifies no sort (natural order). - + - Initializes the class with foreground, background colors and hatch style. + Specifies an ascending sort order. - Foreground color. - Background color. - Hatch style. - + - Class represents the glass fill. + Specifies a descending sort order. - + - Gets or sets the fill color. + Represents a single highlight condition used by the property + of the . - + - Gets or sets the blend value. + Gets or sets a highlight expression. - Value must be between 0 and 1. + + This property can contain any valid boolean expression. If value of this expression is true, + the fill and font settings will be applied to the TextObject. - + - Gets or sets a value determines whether to draw a hatch or not. + Gets or sets the visibility flag. + + If this property is set to false, the Text object will be hidden if the + condition is met. + - + - + - - + + + Creates exact copy of this condition. + + A copy of this condition. - + - + - - + + + Initializes a new instance of the class with default settings. + - + - Initializes the class with default settings. + Specifies the hyperlink type. - + - Initializes the class with given color, blend ratio and hatch style. + Specifies the hyperlink to external URL such as "http://www.fast-report.com", "mailto:" + or any other system command. - Color. - Blend ratio (0..1). - Display the hatch. - + - The base class for the context menu of the report component. + Specifies hyperlink to a given page number. - - This class represents a context menu of the report component that is displayed when the object - is right-clicked in the designer. This class implements the following actions: Edit, Cut, Copy, - Paste, Delete, Bring to Front, Send to Back. - - + - The "Name" menu item. + Specifies hyperlink to a bookmark. - + - The "Edit" menu item. + Specifies hyperlink to external report. This report will be run when you follow the hyperlink. - + - The "Cut" menu item. + Specifies hyperlink to this report's page. The page will be run when you follow the hyperlink. - + - The "Copy" menu item. + Specifies a custom hyperlink. No actions performed when you click it, you should handle it + in the object's Click event handler. - + - The "Paste" menu item. + This class contains a hyperlink settings. - + - The "Delete" menu item. + Gets or sets the kind of hyperlink. + + Use the Kind property to define hyperlink's behavior. + The hyperlink may be used to navigate to the external url, the page number, + the bookmark defined by other report object, the external report, the other page of this report, + and custom hyperlink. + - + - The "BringToFront" menu item. + Gets or sets the expression which value will be used for navigation. + + Normally you should set the Expression property to + any valid expression that will be calculated when this object is about to print. + The value of an expression will be used for navigation. + If you want to navigate to some fixed data (URL or page number, for example), + use the property instead. + - + - The "SendToBack" menu item. + Gets or sets a value that will be used for navigation. + + Use this property to specify the fixed data (such as URL, page number etc). If you want to + navigate to some dynamically calculated value, use the property instead. + - + - The reference to the report designer. + Gets or sets a value that indicate should be links open in new tab or not. + + It works for HTML-export only! + - + - Gets a collection of menu items. + Gets or sets an external report file name. - You should add new items to this collection. + Use this property if is set to DetailReport. + When you follow the hyperlink, this report will be loaded and run. + You also may specify the report's parameter in the property. - + - This method is called to reflect changes in the designer. + Gets or sets the name of this report's page. + + Use this property if is set to DetailPage. + When you follow the hyperlink, the specified page will be executed. It may contain the + detailed report. You also may specify the report's parameter in the + property. + - + - Creates a new menu item. + Gets or sets a parameter's name that will be set to hyperlink's value. - Item's text. - New item. + + Use this property if is set to DetailReport or DetailPage. + If you want to pass the hyperlink's value to the report's parameter, specify the + parameter name in this property. This parameter will be set to the hyperlink's value + before running a report. It may be used to display detailed information about clicked item. + It is also possible to pass multiple values to several parameters. If hyperlink's value + contains separators (the separator string can be set in the + property), it will be splitted to several values. That values will be passed to nested parameters + of the ReportParameter (you should create nested parameters by youself). For example, you have + the ReportParameter called "SelectedValue" which has two nested parameters: the first one is + "Employee" and the second is "Category". The hyperlink's value is "Andrew Fuller;Beverages". + It will be splitted to two values: "Andrew Fuller" and "Beverages". The first nested parameter + of the ReportParameter that is "Employee" in our case will be set to "Andrew Fuller"; + the second nested parameter ("Category") will be set to "Beverages". + Note: when you create a parameter in the detailed report, don't forget to set + its DataType property. It is used to convert string values to actual data type. + + - + - Creates a new menu item. + Gets or sets a string that will be used as a separator to pass several values + to the external report parameters. - Item's text. - Click handler. - New item. - + - Creates a new menu item. + Assigns values from another source. - Item's image. - Item's text. - Click handler. - New item. + Source to assign from. - + - Initializes a new instance of the ComponentBaseMenu class with default settings. + Provides the serialize/deserialize functionality. - The reference to a report designer. - + - Represents a cache of graphics objects such as pens, brushes, fonts and text formats. + Serializes the object. - - Cache holds all used graphics objects. There is no need to dispose objects returned - by GetXXX calls. - - This example demonstrates how to use graphic cache. - - public void Draw(FRPaintEventArgs e) - { - Brush brush = e.Cache.GetBrush(BackColor); - Pen pen = e.Cache.GetPen(BorderColor, 1, BorderStyle); - e.Graphics.FillRectangle(brush, Bounds); - e.Graphics.DrawRectangle(pen, Bounds); - } - - + Writer object. - + - Gets a pen with specified settings. + Deserializes the object. - Color of a pen. - Width of a pen. - Dash style of a pen. - The Pen object. + Reader object. - + - Gets a pen with specified settings. + Implement this interface if your object can contain list of child objects. - Color of a pen. - Width of a pen. - Dash style of a pen. - Line join of a pen. - The Pen object. - + - Gets a brush with specified color. + Gets a value indicating that this object can contain the specified child object. - Color of a brush. - The SolidBrush object. + Child object. + true if this object can contain the specified child object; otherwise, false. - + - Gets a font with specified settings. + Gets a list of child objects. - Name of a font. - Size of a font. - Style of a font. - The Font object. + List to fill with values. - + - Gets a string format with specified settings. + Adds a child object to this object's childs. - Text alignment information on the vertical plane. - Line alignment on the horizontal plane. - StringTrimming enumeration. - StringFormatFlags enumeration that contains formatting information. - The number of spaces between the beginning of a line of text and the first tab stop. - Distance between tab stops. - The StringFormat object. + Object to add. - + - Disposes resources used by this object. + Removes a specified object from this object's childs. + - + - Initializes a new instance of the GraphicCache class with default settings. + Returns z-order of the specified child object. + Child object. + Z-order of the specified object. + + This method must return the index of a specified child object in the internal child list. + - + - Represents a group footer band. + Sets the z-order of the specified object. + Child object. + New Z-order. + + This method must place the specified child object at the specified position in the internal child list. + - + - Specifies a sort order. + Updates the children layout when the size of this object is changed by dx, dy values. + X delta. + Y delta. - This enumeration is used in the group header and in the "Matrix" object. + This method must update positions/sizes of child objects whose Dock or Anchor properties + are set to non-default values. - + - Specifies no sort (natural order). + Holds the list of objects of type. - + - Specifies an ascending sort order. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Specifies a descending sort order. + Initializes a new instance of the class with default settings. + + + + + Initializes a new instance of the class with specified owner. @@ -44995,273 +45906,239 @@ Initializes a new instance of the class with default settings. - + - Represents a page footer band. + Holds the list of objects of type. - + - This property is not relevant to this class. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - This property is not relevant to this class. + Initializes a new instance of the class with default settings. - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with specified owner. - + - Represents a page header band. + This class contains the page columns settings. + It is used in the property. - + - This property is not relevant to this class. + Gets or sets the number of columns. + + Set this property to 0 or 1 if you don't want to use columns. + - + - This property is not relevant to this class. + Gets or sets the column width. - + - Initializes a new instance of the class with default settings. + Gets or sets a list of column starting positions. + + Each value represents a column starting position measured in the millimeters. + - + - Specifies the report printing mode. + Assigns values from another source. + Source to assign from. - + - Specifies the default printing mode. One report page produces - one printed paper sheet of the same size. + Represents a page footer band. - + - Specifies the split mode. Big report page produces several smaller paper sheets. - Use this mode to print A3 report on A4 printer. + This property is not relevant to this class. - + - Specifies the scale mode. One or several report pages produce one bigger paper sheet. - Use this mode to print A5 report on A4 printer. + This property is not relevant to this class. - + - Specifies the number of report pages printed on one paper sheet. + Initializes a new instance of the class with default settings. - + - Specifies one report page per sheet. + Represents a page header band. - + - Specifies two report pages per sheet. + This property is not relevant to this class. - + - Specifies four report pages per sheet. + This property is not relevant to this class. - + - Specifies eight report pages per sheet. + Initializes a new instance of the class with default settings. - + - Specifies the pages to print. + Specifies the alignment of a image in the border. - + - Print all report pages. + Specifies that image is not aligned in the layout rectangle. - + - Print odd pages only. + Specifies that image is aligned in the top-left of the layout rectangle. - + - Print even pages only. + Specifies that image is aligned in the top-center of the layout rectangle. - + - This class contains the printer settings. - It is used in the property. + Specifies that image is aligned in the top-right of the layout rectangle. - - Typical use of this class is to setup a printer properties without using the "Print" - dialog. In this case, setup necessary properties and turn off the dialog via the - property. - - + - Gets or sets the printer name. + Specifies that image is aligned in the center-left of the layout rectangle. - + - Gets or sets a value indicating that the printer name should be saved in a report file. + Specifies that image is aligned in the center-center of the layout rectangle. - - If this property is set to true, the printer name will be saved in a report file. - Next time when you open the report, the printer will be automatically selected. - - + - Gets or sets a value indicating that the printing output should be send - to a file instead of a printer. + Specifies that image is aligned in the center-right of the layout rectangle. - - Also set the property. - - + - The name of a file to print the report to. + Specifies that image is aligned in the center-left of the layout rectangle. - - This property is used if property is true. - - + - Gets or sets a value specifies the page range to print. + Specifies that image is aligned in the center-center of the layout rectangle. - + - Gets or sets the page number(s) to print. + Specifies that image is aligned in the center-right of the layout rectangle. - - This property is used if property is set to PageNumbers. - You can specify the page numbers, separated by commas, or the page ranges. - For example: "1,3,5-12". - - + - Gets or sets the number of copies to print. + Specifies the language of the report's script. - + - Gets or sets a value indicating whether the printed document should be collated. + The C# language. - + - Gets or sets a value specifies the pages to print. + The VisualBasic.Net language. - + - Gets or sets a value determines whether to print pages in reverse order. + Specifies the quality of text rendering. - + - Gets or sets the duplex mode. + The default text quality, depends on system settings. - + - Gets or sets the paper source. + The regular quality. - - This property corresponds to the RAW source number. Default value is 7 which - corresponds to DMBIN_AUTO. - - + - Gets or sets the print mode. + The "ClearType" quality. - - See the enumeration for details. If you use - the mode other than Default, you must specify the sheet size in the - , properties. - - + - Gets or sets the width of the paper sheet to print on. + The AntiAlias quality. This mode may be used to produce the WYSIWYG text. - - This property is used if the property is not Default. - Specify the paper width in millimeters. - - + - Gets or sets the height of the paper sheet to print on. + Specifies the report operation. - - This property is used if the property is not Default. - Specify the paper height in millimeters. - - + - Gets or sets the raw index of a paper size. + Specifies no operation. - + - Gets or sets the number of pages per printed sheet. + The report is running. - - This property is used if the property is set to Scale. - - + - Gets or sets an array of printed copy names, such as "Original", "Copy", etc. + The report is printing. - + - Specifies whether to display the "Print" dialog. + The report is exporting. - - + + + Specifies the page range to print/export. + - + - Assigns values from another source. + Print all pages. - Source to assign from. - + - Resets all settings to its default values. + Print current page. - + - Initializes a new instance of the class with default settings. + Print pages specified in the PageNumbers property of the PrintSettings. @@ -45365,171 +46242,236 @@ Initializes a new instance of the class with specified owner. - + - The class introduces some menu items specific - to the ReportComponentBase. + Provides data for the event. - + - The "Can Grow" menu item. + Gets a name of the file to load the report from. - + - The "Can Shrink" menu item. + The reference to a report. - + - The "Grow to Bottom" menu item. + Initializes a new instance of the class using the specified + file name and the report. + The name of the file to load the report from. + The report. - + - The "Hyperlink" menu item. + Provides data for the event. - + - Initializes a new instance of the ReportComponentBaseMenu - class with default settings. + Gets an expression. - The reference to a report designer. - + - Represents a report title band. + Gets or sets a object. + + + + + The reference to a report. + + + + + Initializes a new instance of the class using the specified + file name and the report. + + The text of expression. + The name of the file to load the report from. + The report. + + + + Represents the method that will handle the event. + + The source of the event. + The event data. + + + + Represents the method that will handle the event. + + The source of the event. + The event data. + + + + Provides data for the Progress event. + + + + + Gets a progress message. + + + + + Gets the current page number. + + + + + Gets the number of total pages. + + + + + Initializes a new instance of the class using the specified + message, page number and total number of pages. + The progress message. + Current page number. + Number of total pages. - + - Holds the list of objects currently selected in the designer. + Represents the method that will handle the Progress event. - - This class is used by the "Alignment" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. If you want to access all - selected objects, use the property. - + The source of the event. + The event data. - + - Gets the first selected object. + Provides data for the DatabaseLogin event. - + - Gets the number of selected objects. + Gets or sets the connection string. - + - Aligns left edges of the selected objects. + Gets or sets an user name. - + - Aligns right edges of the selected objects. + Gets or sets a password. - + - Aligns centers of the selected objects. + Initializes a new instance of the class using the specified + connection string. + The connection string. - + - Aligns top edges of the selected objects. + Represents the method that will handle the DatabaseLogin event. + The source of the event. + The event data. - + - Aligns bottom edges of the selected objects. + Provides data for the AfterDatabaseLogin event. - + - Aligns middles of the selected objects. + Gets the DbConnection object. - + - Makes the selected objects the same width as the first object. + Initializes a new instance of the class using + the specified connection. + The connection object. - + - Makes the selected objects the same height as the first object. + Represents the method that will handle the AfterDatabaseLogin event. + The source of the event. + The event data. - + - Makes the selected objects the same size as the first object. + Provides data for the FilterProperties event. - + - Centers the selected objects horizontally. + Gets the property descriptor. - + - Centers the selected objects vertically. + Gets or sets a value that indicates whether this property should be skipped. - + - Aligns the selected objects to the grid. + Represents the method that will handle the FilterProperties event. + The source of the event. + The event data. - + - Adjusts the size of selected objects to the grid. + Provides data for the GetPropertyKind event. - + - Spaces the selected objects horizontally. + Gets the property name. - + - Increases horizontal spacing between the selected objects. + Gets the property type. - + - Decreases horizontal spacing between the selected objects. + Gets or sets the kind of property. - + - Removes horizontal spacing between the selected objects. + Represents the method that will handle the GetPropertyKind event. + The source of the event. + The event data. - + - Spaces the selected objects vertically. + Provides data for the GetTypeInstance event. - + - Increases vertical spacing between the selected objects. + Gets the type. - + - Decreases vertical spacing between the selected objects. + Gets or sets the instance of type. - + - Removes vertical spacing between the selected objects. + Represents the method that will handle the GetPropertyKind event. + The source of the event. + The event data. @@ -45647,275 +46589,265 @@ Initializes a new instance of the class with default settings. - + - Holds the list of objects currently selected in the designer. + Specifies the default paper size used when creating a new report. - - This class is used by the "Border and Fill" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. - If you want to access all selected objects, use the property. - - + - Gets the first selected object. + A4 paper (210 x 297 mm). - + - Gets the number of selected objects. + Letter paper (8.5 x 11 inches, 216 x 279 mm). - + - Gets a value indicating whether the operations are enabled. + Represents a report title band. - + - Gets a value indicating whether the object with simple border is selected. + Internal representation of RichText document - - When the object has a simple border, you cannot change individual border lines. - Example of such an object is the "Shape" and "Line" objects. - - + - Gets a value indicating whether the border operations are enabled. + This class represents a RTF run. - + - Gets a value indicating whether the fill operations are enabled. + Insert paragraph into list of paragraphs - + - Sets the solid fill color for the selected objects. + Insert row into list of paragraphs - Fill color. - + - Sets the fill for the selected objects. + This class represents a RTF properies. - Fill. - + - Sets the style for the selected objects. + This class parses an entiry RTF document. - Style name. - - - Sets the hyperlink for the selected objects. - - Hyperlink. - Indicates whether to modify the object's appearance. - Indicates whether it is necessary to change designer's modified state. + + - - - Sets the CanGrow flag for the selected objects. - - Flag value. + + - + + + + - Sets the CanShrink flag for the selected objects. + Get RTF structure based on range of elements - Flag value. - + + - Sets the GrowToBottom flag for the selected objects. + Save RTF document to text stream - Flag value. - + - Toggles the specified border line for the selected objects. + This class represents a RTF document header. - Border line. - Toggle value. + + Refer to RTF-1.7 spec for detail description + - + - Sets the border color for the selected objects. + Parser of RTF header. - Border color. + + Return false on finish of header + - + - Sets the border width for the selected objects. + This class represents a RTF text paragraph. - Border width. - + - Sets the border style for the selected objects. + This class detect a RTF control sequences and text. - Border style. - + - Sets the border for the selected objects. + This class represents a RTF column description. - Border. + - + - Invokes the fill editor for the selected objects. + Create RTF row - true if editor was closed by the OK button. + + - + - Invokes the border editor for the selected objects. + Save RTF document to plain text stream - true if editor was closed by the OK button. - + - Invokes the hyperlink editor for the selected objects. + Specifies a kind of the shape. - true if editor was closed by the OK button. - + - Holds the list of objects currently selected in the designer. + Specifies a rectangle shape. - - This class is used by the "Text" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. If you want to access all - selected objects, use the property. - - + - Gets the first selected object. + Specifies a round rectangle shape. - + - Gets the number of selected objects. + Specifies an ellipse shape. - + - Gets a value indicating whether the operations are enabled. + Specifies a triangle shape. - + - Sets the font name for the selected objects. + Specifies a diamond shape. - Font name. - + - Sets the font size for the selected objects. + Represents a sort condition used in the . - Font size. - + - Toggles the specified font style for the selected objects. + Gets or sets an expression used to sort data band rows. - Font style. - Toggle value. + + This property can contain any valid expression. + - + - Sets the horizontal text alignment for tthe selected objects. + Gets or sets a value indicating that sort must be performed in descending order. - Alignment to set. - + - Sets the vertical text alignment for tthe selected objects. + Serializes the class. - Alignment to set. + Writer object. + + This method is for internal use only. + - + - Sets the text color for the selected objects. + Deserializes the class. - Text color. + Reader object. + + This method is for internal use only. + - + - Sets the angle for the selected objects. + Initializes a new instance of the class with default settings. - Angle to set. - + - Sets the AutoWidth property value for the selected objects. + Initializes a new instance of the class with specified expression. - Value to set. - + - Sets the WordWrap property value for the selected objects. + Initializes a new instance of the class with specified expression and sort order. - Value to set. - + - Sets the highlight conditions for the selected objects. + Represents a collection of sort conditions used in the . - Highlight conditions. - + - Clears the text of the selected objects. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Invokes the highlight editor for the selected objects. + Adds the specified elements to the end of this collection. - true if editor was closed with the OK button. + - + - Specifies a kind of the shape. + Adds an object to the end of this collection. + Object to add. + Index of the added object. - + - Specifies a rectangle shape. + Inserts an object into this collection at the specified index. + The zero-based index at which value should be inserted. + The object to insert. - + - Specifies a round rectangle shape. + Removes the specified object from the collection. + Object to remove. - + - Specifies an ellipse shape. + Returns the zero-based index of the first occurrence of an object. + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - Specifies a triangle shape. + Determines whether an element is in the collection. + The object to locate in the collection. + true if object is found in the collection; otherwise, false. - + + + + + + + - Specifies a diamond shape. + Assigns values from another collection. + Collection to assign from. @@ -46072,6 +47004,122 @@ Initializes a new instance of the class with default settings. + + + Represents a collection of the objects. + + + + + Gets or sets the element at the specified index. + + Index of an element. + The element at the specified index. + + + + Adds the specified elements to the end of this collection. + + + + + + Adds an object to the end of this collection. + + Object to add. + Index of the added object. + + + + Inserts an object into this collection at the specified index. + + The zero-based index at which value should be inserted. + The object to insert. + + + + Removes the specified object from the collection. + + Object to remove. + + + + Returns the zero-based index of the first occurrence of an object. + + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. + + + + Returns the zero-based index of the first occurrence of a style collection with specified name. + + The style collection name to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. + + + + Determines whether an element is in the collection. + + The object to locate in the collection. + true if object is found in the collection; otherwise, false. + + + + Determines whether a style collection with specified name is in the collection. + + The style collection name to locate in the collection. + true if object is found in the collection; otherwise, false. + + + + Gets an array containing all collection items. + + An array containing all collection items. + + + + Serializes the collection. + + Writer object. + + This method is for internal use only. + + + + + Deserializes the collection. + + Reader object. + + This method is for internal use only. + + + + + Saves the collection to a stream. + + Stream to save to. + + + + Saves the collection to a file with specified name. + + File name to save to. + + + + Loads the collection from a stream. + + Stream to load from. + + + + Loads the collection from a file with specified name. + + Name of a file. + Specifies the horizontal alignment of a text in the TextObject object. @@ -46219,266 +47267,228 @@ AutoShrink decreases the FontWidthRatio property of the TextObject. - - - The class introduces some menu items specific to the TextObject. - - - - - The "Clear" menu item. - - - - - The "Auto Width" menu item. - - - - - The "Word Wrap" menu item. - - - - - Initializes a new instance of the TextObjectMenu - class with default settings. - - The reference to a report designer. - - - - The class introduces some menu items specific to the TextObject. - - - - - Initializes a new instance of the TextObjectMenu - class with default settings. - - The reference to a report designer. - - - - Provides the serialize/deserialize functionality. - - - - - Serializes the object. - - Writer object. - - - - Deserializes the object. - - Reader object. - - - - Implement this interface if your object can contain list of child objects. - - - - - Gets a value indicating that this object can contain the specified child object. - - Child object. - true if this object can contain the specified child object; otherwise, false. - - - - Gets a list of child objects. - - List to fill with values. - - + - Adds a child object to this object's childs. + Specifies how to display the duplicate values. - Object to add. - + - Removes a specified object from this object's childs. + The TextObject can show duplicate values. - - + - Returns z-order of the specified child object. + The TextObject with duplicate value will be hidden. - Child object. - Z-order of the specified object. - - This method must return the index of a specified child object in the internal child list. - - + - Sets the z-order of the specified object. + The TextObject with duplicate value will be shown but with no text. - Child object. - New Z-order. - - This method must place the specified child object at the specified position in the internal child list. - - + - Updates the children layout when the size of this object is changed by dx, dy values. + Several TextObject objects with the same value will be merged into one TextObject object. - X delta. - Y delta. - - This method must update positions/sizes of child objects whose Dock or Anchor properties - are set to non-default values. - - + - Holds the list of objects of type. + Specifies how the report engine processes the text objects. - + - Gets or sets the element at the specified index. + Specifies the default process mode. The text object is processed just-in-time. - Index of an element. - The element at the specified index. - + - Initializes a new instance of the class with default settings. + Specifies that the text object must be processed when the entire report is finished. This mode + can be used to print grand total value (which is normally calculated at the end of report) in the + report title band. - + - Initializes a new instance of the class with specified owner. + Specifies that the text object must be processed when the entire report page is finished. This mode + can be used if the report template consists of several report pages. - + - Specifies the language of the report's script. + Specifies that the text object must be processed when any report page is finished. This mode + can be used to print the page total (which is normally calculated at the page footer) in the + page header band. - + - The C# language. + Specifies that the text object must be processed when the column is finished. This mode + can be used to print the column total (which is normally calculated at the column footer) in the + column header band. - + - The VisualBasic.Net language. + Specifies that the text object must be processed when the data block is finished. This mode can be + used to print a total value in the data header (which is normally available + in the data footer only). - + - Specifies the quality of text rendering. + Specifies that the text object must be processed when the group is finished. This mode can be + used to print a total value in the group header (which is normally available + in the group footer only). - + - The default text quality, depends on system settings. + Specifies that the text object is processed manually when you call the Engine.ProcessObject + method in the report script. - + - The regular quality. + Represents text outline. - + - The "ClearType" quality. + Gets or sets a value indicating that outline is enabled. - + - The AntiAlias quality. This mode may be used to produce the WYSIWYG text. + Enable or disable draw the outline behind of text. - + - Specifies the report operation. + Gets or sets the outline color. - + - Specifies no operation. + Gets or sets the outline width. - + - The report is running. + Specifies the style of an outline. - + - The report is printing. + Initializes a new instance of the class. - + - The report is exporting. + Initializes a new instance of the class with specified parameters. + True if outline enabled. + Outline color. + Outline width. + Outline style. + True if outline should be drawn behind text. - + - Specifies the page range to print/export. + Copies the content of another TextOutline. + The TextOutline instance to copy the contents from. - + - Print all pages. + Creates the exact copy of this outline. + Copy of this outline. - + - Print current page. + Serializes the TextOutline. + Writer object. + TextOutline property name. + Another TextOutline to compare with. - + - Print pages specified in the PageNumbers property of the PrintSettings. + Represents a cache of graphics objects such as pens, brushes, fonts and text formats. + + Cache holds all used graphics objects. There is no need to dispose objects returned + by GetXXX calls. + + This example demonstrates how to use graphic cache. + + public void Draw(FRPaintEventArgs e) + { + Brush brush = e.Cache.GetBrush(BackColor); + Pen pen = e.Cache.GetPen(BorderColor, 1, BorderStyle); + e.Graphics.FillRectangle(brush, Bounds); + e.Graphics.DrawRectangle(pen, Bounds); + } + + - + - Holds the list of selected objects of type. Used by the - . + Gets a pen with specified settings. + Color of a pen. + Width of a pen. + Dash style of a pen. + The Pen object. - + - Gets a value indicating that report page is selected. + Gets a pen with specified settings. + Color of a pen. + Width of a pen. + Dash style of a pen. + Line join of a pen. + The Pen object. - + - Gets a value indicating that report is selected. + Gets a brush with specified color. + Color of a brush. + The SolidBrush object. - + - Holds the list of objects of type. + Gets a font with specified settings. + Name of a font. + Size of a font. + Style of a font. + The Font object. - + - Gets or sets the element at the specified index. + Gets a string format with specified settings. - Index of an element. - The element at the specified index. + Text alignment information on the vertical plane. + Line alignment on the horizontal plane. + StringTrimming enumeration. + StringFormatFlags enumeration that contains formatting information. + The number of spaces between the beginning of a line of text and the first tab stop. + Distance between tab stops. + The StringFormat object. - + - Initializes a new instance of the class with default settings. + Disposes resources used by this object. - + - Initializes a new instance of the class with specified owner. + Initializes a new instance of the GraphicCache class with default settings. @@ -47335,6 +48345,15 @@ + + + Draws watermark text. + + + + + + Serializes the watermark. diff --git a/DPM2016/bin/Debug/Roellin/Reporting/Report/Abgeschlossene_Behandlungen.frx b/DPM2016/bin/Debug/Roellin/Reporting/Report/Abgeschlossene_Behandlungen.frx index 11c6386..b2710f5 100644 --- a/DPM2016/bin/Debug/Roellin/Reporting/Report/Abgeschlossene_Behandlungen.frx +++ b/DPM2016/bin/Debug/Roellin/Reporting/Report/Abgeschlossene_Behandlungen.frx @@ -1,5 +1,5 @@  - + Imports System Imports System.Collections Imports System.Collections.Generic @@ -45,27 +45,32 @@ End Namespace + - + - - + + - - - - + + + + - + + + + + diff --git a/DPM2016/bin/Debug/Roellin/Reporting/Report/Monatsumsaetze.frx b/DPM2016/bin/Debug/Roellin/Reporting/Report/Monatsumsaetze.frx index fa11bb1..13b4cc1 100644 --- a/DPM2016/bin/Debug/Roellin/Reporting/Report/Monatsumsaetze.frx +++ b/DPM2016/bin/Debug/Roellin/Reporting/Report/Monatsumsaetze.frx @@ -1,5 +1,5 @@  - + Imports System Imports System.Collections Imports System.Collections.Generic @@ -45,6 +45,7 @@ End Namespace + @@ -60,18 +61,27 @@ End Namespace - - - - - - - - + + + + + + + + + + + + + + + + - + + - + diff --git a/DPM2016/bin/Debug/Roellin/Reporting/Report/esrjournal.frx b/DPM2016/bin/Debug/Roellin/Reporting/Report/esrjournal.frx index dec1fdd..592fbf4 100644 --- a/DPM2016/bin/Debug/Roellin/Reporting/Report/esrjournal.frx +++ b/DPM2016/bin/Debug/Roellin/Reporting/Report/esrjournal.frx @@ -1,5 +1,5 @@  - + Imports System Imports System.Collections Imports System.Collections.Generic @@ -33,6 +33,14 @@ Namespace FastReport ReportLogo=pfad+"Logo\reportlogo.png" picture1.ImageLocation=Reportlogo End Sub + + Private Sub Text9_BeforePrint(ByVal sender As object, ByVal e As EventArgs) + if CType(Report.GetColumnValue("Daten.Patient"), String) = CType(Report.GetColumnValue("Daten.Debitor"), String) then + text11.visible=false + else + text11.Visible=true + end if + End Sub End Class End Namespace @@ -62,7 +70,6 @@ End Namespace - @@ -73,22 +80,26 @@ End Namespace + + - + - + - - + + + + - + - + diff --git a/DPM2016/bin/Debug/Roellin/Reporting/Report/mahnliste.frx b/DPM2016/bin/Debug/Roellin/Reporting/Report/mahnliste.frx index 5fc8e45..9617ff8 100644 --- a/DPM2016/bin/Debug/Roellin/Reporting/Report/mahnliste.frx +++ b/DPM2016/bin/Debug/Roellin/Reporting/Report/mahnliste.frx @@ -1,5 +1,5 @@  - + Imports System Imports System.Collections Imports System.Collections.Generic @@ -31,6 +31,14 @@ Namespace FastReport ReportLogo=pfad+"Logo\reportlogo.png" picture1.ImageLocation=Reportlogo End Sub + + Private Sub Text4_BeforePrint(ByVal sender As object, ByVal e As EventArgs) + if CType(Report.GetColumnValue("Daten.Patient"), String) = CType(Report.GetColumnValue("Daten.Debitor"), String) then + text16.Visible=false + else + text16.Visible=true + end if + End Sub End Class End Namespace @@ -64,11 +72,12 @@ End Namespace + - + @@ -76,19 +85,23 @@ End Namespace + - + - + - + + - - + + + + diff --git a/DPM2016/bin/Debug/Roellin/Reporting/SQL/Monatsumsaetze.sql b/DPM2016/bin/Debug/Roellin/Reporting/SQL/Monatsumsaetze.sql index def883c..b37eb14 100644 --- a/DPM2016/bin/Debug/Roellin/Reporting/SQL/Monatsumsaetze.sql +++ b/DPM2016/bin/Debug/Roellin/Reporting/SQL/Monatsumsaetze.sql @@ -1,9 +1,9 @@ -#Parameter1:Anzahl Monate:Table:24;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23 +#Parameter1:Anzahl Monate:Table:10000;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15;16;17;18;19;20;21;22;23 -SQL- -SELECT TOP (100) PERCENT SUM(Total) AS Total, DATEDIFF(MM, Datum, GETDATE()) AS Anz_Monate, YEAR(Datum) AS Jahr, MONTH(Datum) AS Monat, LTRIM(STR(YEAR(Datum))) + '.' + LTRIM(STR(MONTH(Datum))) AS Expr1 +SELECT TOP (100) PERCENT SUM(Total) AS Total, DATEDIFF(MM, datum, GETDATE()) AS Anz_Monate, YEAR(datum) AS Jahr, MONTH(datum) AS Monat, LTRIM(STR(YEAR(datum))) + '.' + LTRIM(STR(MONTH(datum))) AS Expr1 FROM dbo.Faktura WHERE (Status <> 9) -GROUP BY DATEDIFF(MM, Datum, GETDATE()), YEAR(Datum), MONTH(Datum), LTRIM(STR(YEAR(Datum))) + '.' + LTRIM(STR(MONTH(Datum))) -HAVING (DATEDIFF(MM, Datum, GETDATE()) <= #Parameter1 - 1) +GROUP BY DATEDIFF(MM, datum, GETDATE()), YEAR(datum), MONTH(datum), LTRIM(STR(YEAR(datum))) + '.' + LTRIM(STR(MONTH(datum))) +HAVING (DATEDIFF(MM, datum, GETDATE()) <= #Parameter1 - 1) ORDER BY Jahr, Monat diff --git a/DPM2016/bin/Debug/SHUKeyGen.dll b/DPM2016/bin/Debug/SHUKeyGen.dll index a4ca4ef..e830979 100644 Binary files a/DPM2016/bin/Debug/SHUKeyGen.dll and b/DPM2016/bin/Debug/SHUKeyGen.dll differ diff --git a/DPM2016/bin/Debug/SHUKeyGen.pdb b/DPM2016/bin/Debug/SHUKeyGen.pdb index dff16e9..d08fa99 100644 Binary files a/DPM2016/bin/Debug/SHUKeyGen.pdb and b/DPM2016/bin/Debug/SHUKeyGen.pdb differ diff --git a/DPM2016/bin/Debug/Syncfusion.Compression.Base.dll b/DPM2016/bin/Debug/Syncfusion.Compression.Base.dll deleted file mode 100644 index 6f2a2ef..0000000 Binary files a/DPM2016/bin/Debug/Syncfusion.Compression.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Debug/Syncfusion.Compression.Base.xml b/DPM2016/bin/Debug/Syncfusion.Compression.Base.xml deleted file mode 100644 index dd666cc..0000000 --- a/DPM2016/bin/Debug/Syncfusion.Compression.Base.xml +++ /dev/null @@ -1,2984 +0,0 @@ - - - - Syncfusion.Compression.Base - - - - - Checksum calculator, based on Adler32 algorithm. - - - - - Bits offset, used in adler checksum calculation. - - - - - Lagrest prime, less than 65535 - - - - - Count of iteration used in calculated of the adler checksumm. - - - - - Updates checksum by calculating checksum of the - given buffer and adding it to current value. - - Current checksum. - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Generates checksum by calculating checksum of the - given buffer. - - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Reader, that reads stream with compressed data - - - - - Mask for compression method to be decoded from 16-bit header. - - - - - Mask for compression info to be decoded from 16-bit header. - - - - - Mask for check bits to be decoded from 16-bit header. - - - - - Mask for dictionary presence to be decoded from 16-bit header. - - - - - Mask for compression level to be decoded from 16-bit header. - - - - - Maximum size of the data window. - - - - - Maximum length of the repeatable block. - - - - - End of the block sign. - - - - - Minimal length code. - - - - - Maximal length code. - - - - - Maximal distance code. - - - - - Minimum count of repetions. - - - - - Bits, that responds for different repetion modes. - - - - - Length bases. - - - - - Length extended bits count. - - - - - Distance bases. - - - - - Distance extanded bits count. - - - - - Input stream. - - - - - Currently calculated checksum, - based on Adler32 algorithm. - - - - - Currently read 4 bytes. - - - - - Count of bits that are in buffer. - - - - - Temporary buffer. - - - - - 32k buffer for unpacked data. - - - - - No wrap mode. - - - - - Window size, can not be larger than 32k. - - - - - Current position in output stream. - Current in-block position can be extracted by applying Int16.MaxValue mask. - - - - - Data length. - Current in-block position can be extracted by applying Int16.MaxValue mask. - - - - - Sign of uncompressed data reading. - - - - - Size of the block with uncompressed data. - - - - - Specifies wheather next block can to be read. - Reading can be denied because the header of the last block have been read. - - - - - Specifies wheather user can read more data from stream. - - - - - Current lengths huffman tree. - - - - - Current distances huffman tree. - - - - - Specifies wheather checksum has been read. - - - - - TODO: place correct comment here - - - - - - Creates new reader for streams with compressed data. - - - - - - - Resets current checksum to 1. - - - - - Updates checksum by calculating checksum of the - given buffer and adding it to current value. - - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Discards left-most partially used byte. - - - - - Reads array of bytes. - - Output buffer. - Offset in output buffer. - Length of the data to be read. - Count of bytes actually read to the buffer. - - - - Fill`s empty parts of the buffer. - - - - - Reads specified count of bits without adjusting position. - - Count of bits to be read. - Read value. - - - - Skips specified count of bits. - - Count of bits to be skipped. - - - - Reads specified count of bits from stream. - - Count of bits to be read. - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - Reads ZLib header with compression method and flags. - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - - - Reades dynamic huffman codes from block header. - - Literals/Lengths tree. - Distances tree. - - - - Reads and decodes block of data. - - True if buffer was empty and new data was read, otherwise - False. - - - - Decodes huffman codes. - - True if some data was read. - - - - Reads data to buffer. - - Output buffer for data. - Offset in output data. - Length of the data to be read. - Count of bytes actually read. - - - - GET count of bits available - - - - - Get count of full bytes available. - - - - - Compression level. - - - - - Pack without compression - - - - - Use high speed compression, reduce of data size is low - - - - - Something middle between normal and BestSpeed compressions - - - - - Use normal compression, middle between speed and size - - - - - Pack better but require a little more time - - - - - Use best compression, slow enough - - - - - Represents the compressed stream writer - - - - - Start template of the zlib header. - - - - - Memory usage level. - - - - - Size of the pending buffer. - - - - - Size of the buffer for the huffman encoding. - - - - - Length of the literal alphabet(literal+lengths). - - - - - Distances alphabet length. - - - - - Length of the code-lengths tree. - - - - - Code of the symbol, than means the end of the block. - - - - - Maximum window size. - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Output stream. - - - - - Pending buffer for writing. - - - - - Length of the unflushed data. - - - - - Bits cache for pending buffer. - - - - - Count of bits in pending buffer cache. - - - - - If true, no zlib header will be written to the stream. - - - - - Current checksum. - - - - - Current compression level. - - - - - Current tree for literals. - - - - - Current tree for distances. - - - - - Current tree for code lengths. - - - - - Current position in literals and distances buffer. - - - - - Recorded literals buffer. - - - - - Recorded distances buffer. - - - - - Count of the extra bits. - - - - - Static array of the literal codes. - - - - - Static array of the lengths of the literal codes. - - - - - Static array of the distance codes. - - - - - Static array of the lengths of the distance codes. - - - - - If true, no futher writings can be performed. - - - - - Current hash. - - - - - Hash m_HashHead. - - - - - Previous hashes. - - - - - Start of the matched part. - - - - - Length of the matched part. - - - - - Previous match available. - - - - - Start of the data window. - - - - - String start in data window. - - - - - Lookahead. - - - - - Data window. - - - - - Maximum chain length. - - - - - Maximum distance of the search with "lazy" algotithm. - - - - - Nice length of the block. - - - - - Good length of the block. - - - - - Current compression function. - - - - - Current block of the data to be compressed. - - - - - Total count of bytes, that were compressed. - - - - - Offset in the input buffer, where input starts. - - - - - Offset in the input buffer, where input ends. - - - - - If true, stream will be closed after the last block. - - - - - Initializes statical data for huffman compression. - - - - - Initializes compressor and writes ZLib header if needed. - - Output stream. - If true, ZLib header and checksum will not be written. - Compression level. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header if needed. - Compression level is set to normal. - - Output stream. - If true, ZLib header and checksum will not be written. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header. - - Output stream. - Compression level. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header. - - Output stream. - If true, output stream will be closed after the last block has been written. - - - - Compresses data and writes it to the stream. - - Data to compress - offset in data array - length of data to compress - True - write last compress block in stream, - otherwise False - - - - Writes ZLib header to stream. - - - - - Fill the window - - - - - Slides current window, and data, associated with it. - - - - - Updates hash. - - - - - Inserts string to the hash. - - - - - - Searches for the longest match. - - - - - - - Store data without compression. - - - - - - - - Compress with a maximum speed. - - - - - - - - Compress, using maximum compression level. - - - - - - - - CompressData drives actual compression of data - - - - - Reset internal state - - - - - Calculates length code from length. - - Length. - Length code. - - - - Calculates distance code from distance. - - Distance. - Distance code. - - - - Write all trees to pending buffer - - - - - Compress current buffer writing data to pending buffer - - - - - Flush block to output with no compression - - Data to write - Index of first byte to write - Count of bytes to write - True if this is the last block - - - - Flush block to output with compression - - Data to flush - Index of first byte to flush - Count of bytes to flush - True if this is the last block - - - - Add literal to buffer. - - - Value indicating internal buffer is full - - - - Add distance code and length to literal and distance trees - - Distance code - Length - Value indicating if internal buffer is full - - - - write a byte to buffer - - - value to write - - - - - Write a short value to buffer LSB first - - - value to write - - - - - write an integer LSB first - - value to write - - - - Write a block of data to buffer - - data to write - offset of first byte to write - number of bytes to write - - - - Align internal buffer on a byte boundary - - - - - Write bits to internal buffer - - source of bits - number of bits to write - - - - Write a short value to internal buffer most significant byte first - - value to write - - - - Flushes the pending buffer into the given output array. If the - output array is to small, only a partial flush is done. - - - - - Flushes fully recorded bytes to buffer array. - - Count of bytes, added to buffer. - - - - Convert internal buffer to byte array. - Buffer is empty on completion - - - converted buffer contents contents - - - - - Total data processed. - - - - - Return true if input is needed - - - - - Checks, wheather huffman compression buffer is full. - - True if buffer is full. - - - - The number of bits written to the buffer - - - - - Indicates if buffer has been flushed - - - - - Type of the block. - - - - - Data simply stored as is - - - - - An option to use Fixed Huffman tree codes - - - - - An option to use Dynamically built Huffman codes - - - - - Represents the Huffman Tree. - - - - - Frequences of the codes. - - - - - Codes itself. - - - - - Bit counts, needed to encode different codes. - - - - - Count of codes with some lengths. - Index - length, value - count. - - - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - - - Data compressor. - - - - - Create a new Huffman tree - - - - - - - - - Resets all code data in tree. - - - - - Writes code to the compressor output stream. - - Code to be written. - - - - Checks wheather tree is empty. - If tree is not empty, then exception will be raised. - - - - - Specifies new arrays of codes and their lengths. - - Array of codes. - Array of code lengths. - - - - Calculates codes from their frequences. - - - - - Build tree with lengths. - - - - - - Builds tree. - - - - - Calculates length of the compressed data. - - Count of bits, the data will occupy. - - - - Calculates code frequences. - - Tree. - - - - Writes tree to output stream. - - Tree to be written. - - - - Length of the tree. - - - - - Lengths of codes in tree. - - - - - Code frequences. - - - - - Huffman tree, used for decompression. - - - - - Maximum count of bits. - - - - - Build huffman tree. - - - - - Huffman tree for encoding and decoding lengths. - - - - - huffman tree for encoding and decoding distances. - - - - - Generates fixed huffman trees. - - - - - Creates huffman tree. - - - - - - Prepares data for generating huffman tree. - - Array of counts of each code length. - Numerical values of the smallest code for each code length. - Array of code lengths. - Calculated tree size. - Code. - - - - Generates huffman tree. - - Array of counts of each code length. - Numerical values of the smallest code for each code length. - Precalculated code. - Array of code lengths. - Calculated size of the tree. - Generated tree. - - - - Builds huffman tree from array of code lengths. - - Array of code lengths. - - - - Reads and decompresses one symbol. - - - - - - - GET huffman tree for encoding and decoding lengths. - - - - - GET huffman tree for encoding and decoding distances. - - - - - Utility Class - - - - - Bit-indexes for reversing. - - - - - Code lengths for the code length alphabet. - - - - - Reverses bit. - - - - - - - Implemenation of IFileNamePreprocessor interface that simply removes - some string from the name start and converts all \ characters into /. - - - - - Preprocesses file name before ZipArchiveItem saving. Used to convert full item path into local one. - - - - - Somehow converts full path into name that will be stored in the zip archive. - - Name to process. - Converted name. - - - - String to remove from the name start. - - - - - Initializes new instance of the name preprocessor. - - String to remove from the name start. - - - - Somehow converts full path into name that will be stored in the zip archive. - - Name to process. - Converted name. - - - - Class contains all constants that are required by ZipArchive. - - - - - Zip header signature. - - - - - Number of bytes in HeaderSignature constant. - - - - - Buffer size. - - - - - Version needed to extract. - - - - - Version made by. - - - - - Size of the short value in bytes. - - - - - Size of the int value in bytes. - - - - - Central header signature. - - - - - End of central directory signature. - - - - - Initial value for CRC-32 evaluation. - - - - - Offset to the size field in the End of central directory record. - - - - - Start byte of the Header signature. - - - - - Default constructor to prevent users from creating instances of this class. - - - - - The kind of compression used for an entry in an archive - - - - - The file is stored (no compression). - - - - - The file is Shrunk. - - - - - The file is Reduced with compression factor 1. - - - - - The file is Reduced with compression factor 2. - - - - - The file is Reduced with compression factor 3. - - - - - The file is Reduced with compression factor 4. - - - - - The file is Imploded. - - - - - Reserved for Tokenizing compression algorithm. - - - - - The file is Deflated. - - - - - Enhanced Deflating using Deflate64(tm). - - - - - PKWARE Data Compression Library Imploding (old IBM TERSE). - - - - - File is compressed using BZIP2 algorithm. - - - - - LZMA (EFS). - - - - - File is compressed using IBM TERSE (new). - - - - - IBM LZ77 z Architecture (PFS). - - - - - PPMd version I, Rev 1. - - - - - General purpose bit flag. - - - - - If this bit is set, the fields crc-32, compressed size and uncompressed - size are set to zero in the local header. The correct values are put - in the data descriptor immediately following the compressed data. - (Note: PKZIP version 2.04g for DOS only recognizes this bit for method 8 - compression, newer versions of PKZIP recognize this bit for any compression method.) - - - - - Language encoding flag (EFS). If this bit is set, the filename and - comment fields for this file must be encoded using UTF-8. - - - - - Class used for implementing Advanced Encryption Standard algorithm. - - - - - block size in 32-bit words. Always 4 for AES. (128 bits). - - - - - key size in 32-bit words. 4, 6, 8. (128, 192, 256 bits). - - - - - number of rounds. 10, 12, 14. - - - - - the seed key. size will be 4 * keySize . - - - - - Substitution box - - - - - inverse Substitution box - - - - - key schedule array. - - - - - Round constants - - - - - State matrix - - - - - AES key size - - - - - Salt value - - - - - Message Authentication Code Key - - - - - Stored Message Authentication Code - - - - - Computed Message Authentication Code - - - - - Encryption Key - - - - - Password verifier - - - - - Password - - - - - No of keyBytes - - - - - No of saltBytes - - - - - Initiates Aes - - - - - Initializes a new instance of the Aes class. - - Key size. - Key bytes - - - - Encipher 16 bit input - - 16 bit Input - Output value - - - - Decipher 16-bit input - - - - - - - SetNbNkNr() - - Keysize - - - - Building S-box - - - - - Building Inverse S-box - - - - - Builds Rotation array - - - - - Adds rounf Key - - No of Rounds - - - - SubBytes - - - - - InvSubBytes - - - - - ShiftRows() - - - - - InvShiftRows() - - - - - MixColumns - - - - - InvMixColumns - - - - - Key Expansion - - - - - Subword - - Word - resulted word - - - - Rotates word - - Input - Result - - - - Dump - - - - - Dump key. - - - - - - Dump two by two. - - - - - - - Generates a key for Encryption and Decryption - - - - - Generates Message Authentication Code - - data used for MAC - - - - Compares two bytes arrays - - First byte array - Second byte array - true if two arrays are same - - - - Set key and salt lengths for AES key - - - - - Decrypt the cipherData - - Encrypted data - Decrypted - - - - Encrypt the plain data - - Data needs to be encrypted - Encrypted data - - - - Counter Mode Encryption - - Encrypted data - Decrypted data to get - AES encryption Key - - - - - Possible key sizes. - - - - - 128-bit. - - - - - 192-bit. - - - - - 256-bit. - - - - - Implementation Rfc2898Key generation - - - - - Block Number - - - - - Rfc Buffer - - - - - End Offset - - - - - No of Iterations - - - - - Salt Value - - - - - Start Offset - - - - - Password - - - - - BlockSize for SHA1 buffer - - - - - Inner buffer - - - - - Outer buffer - - - - - Indicates whether needs hash - - - - - Key Value - - - - - Buffer - - - - - No of hash - - - - - State of SHA1 - - - - - Expanded array - - - - - HMAC hash value - - - - - SHA1 hash value - - - - - Constructor - - Password - salt value to get key - No of iteration used - - - - Constructor - - Password - salt value to get key - No of iteration used - - - - Creates a byte array for input - - Input - Converted byte array for input - - - - Derives key - - key - - - - Generates the byte array based on the given length - - Length of the array - Byte array - - - - Initializes the RFC to initial state - - - - - Updates the m_inner and m_outer arrays - - - - - Initializes the key value - - - - - - Computes hash code for the given data - - input data - return hash in bytes - - - - Computes hash for the specified region from input for the given offset and copies the data to the output from the given offset - - Input array - input Offset - Length - Output array - output Offset - - - - - Computes hash for the specified region from input for the given offset. - - Input array - input Offset - Length - - - - Clears all value rom arrays - - - - - Initializes State values - - - - - Computes hash for the given input data from the specified offset and Length - - Input - start from the input array - length needs to be hashed - - - - - Computes the final hash code - - hash data - - - - Modifies the buffer using SHA - - input - State array - Blocks - - - - Expand the input array using SHA - - Input array - - - - Convert the BigEndian to DWORD - - Dword array - No of digits - Input block - - - - Convert Dword to BigEndian - - BigEndian array - Output array - no of digits - - - - Hash value - - - - - Contains security Constants - - - - - Password Verifier Length of AES Encryption - - - - - Message Authentication Code Length of AES Encryption - - - - - Password Length of ZipCrypto Encryption - - - - - Password verifier value position of ZipCrypto 0 based index - - - - - PKZip strong encryption header length - - - - - AES compression method - - - - - Block size for Rfc2898Key - - - - - Password iteration Count for AES - - - - - Aes Block Size - - - - - AES encryption header constants - - - - - ZipCrypto Encryption and Decryption - - - - - Data stream - - - - - Password - - - - - Crc value - - - - - Initial keys - - - - - ZipCrc32 - - - - - Constructor initializes Data stream and password - - Data - Password - - - - Initializes Password and Crc value - - Password - Crc value - - - - Initializes key and crc - - - - - Update password - - Password - - - - Update key values - - byte needed for key update - - - - Initializes the keys using Password - - Password of the zip file - - - - Key Update using password - - Password of the zip file - - - - Data Encryption - - Plain data - Cipher data - - - - Data Decryption - - Cipher data - Plain data - - - - Decrypt the data using ZipCrypto - - Cipher data - Plain data - - - - Encrypt the data using ZipCrypto - - Plain data - Cipher data - - - - Generates the Encryption and Decryption Byte - - byte value - - - - Encryption types. - - - - - No Encryption - - - - - AES-128 bit encryption - - - - - AES-192 bit encryption - - - - - AES-256 bit encryption - - - - - ZipCrypto Encryption - - - - - Represents zip archive. - - - - - Collection of archive items. - - - - - Dictionary that allows quick search operations by item name. - Key - item name, - Value - corresponding ZipArchiveItem. - - - - - File name preprocessor - object that converts full file/folder - name into value that will be written into zip archive. - - - - - Indicates whether we should check Crc value when reading item's data. Check - is performed when user gets access to decompressed data for the first time. - - - - - Default compression level. - - - - - Compresses files using custom NetCompressor. - - - - - Password for the zip File - - - - - Type of the Encryption - - - - - Creates compressor. - - - - - Searches for integer value from the end of the stream. - - Stream to search value in. - Value to locate. - Maximum number of bytes to scan. - Offset to the value, or -1 if it wasn't found. - - - - Extracts Int32 value from the stream. - - Stream to read data from. - Extracted value. - - - - Extracts Int16 value from the stream. - - Stream to read data from. - Extracted value. - - - - Extracts unsigned Int16 value from the stream. - - Stream to read data from. - Extracted value. - - - - Adds empty directory to the archive. - - Directory path. - Item that has been added. - - - - Adds specified file to the archive. - - File to add. - Item that has been added. - - - - Adds new item to the archive - - Item name to add. - Items data stream (can be null for empty files or folders). - Indicates whether ZipArchive is responsible for stream closing. - File attributes. - Item that has been added. - - - - Adds existing item to the archive. - - Item to add. - Added item. - - - - Removes item from the archive. - - Item name to remove. - - - - Removes item at the specified position. - - Item index to remove. - - - - Removes items that matches specified regular expression from the collection. - - Regular expression used to decide whether to remove item or not. - - - - Updates item inside existing archive. - - Item name to update. - New data for the item. - Indicates whether item should control its stream after update. - - - - Updates existing item or creates new one. - - Item to update or create. - New data for the item. - Indicates whether item should control its stream after update. - File attributes for the item. This argument is only used if item is created. - - - - Updates item inside existing archive. - - Item name to update. - New data for the item. - - - - Saves archive into specified file. - - Output file name. - - - - Saves archive into specified file. - - Output file name. - Indicates whether we should create full path to the file if it doesn't exist. - - - - Saves archive into specified stream. - - Output stream. - Indicates whether method should close stream after saving. - - - - Reads archive data from the file. - - Filename to read. - - - - Reads archive data from the stream. In the current implementation - stream must be seekable and readable to extract data. - - Stream to read data from. - Indicates whether method should close stream after reading. - - - - Clears all internal data. - - - - - Searches for the item with specified name. - - Item to find. - Zero-based item index if found; -1 otherwise. - - - - Searches for the item with specified name. - - Regular expression that defines item to find. - Zero-based item index if found; -1 otherwise. - - - - Writes central directory to the stream. - - Stream to write data into. - - - - Writes End of central directory record into stream. - - Stream to write data into. - Offset to the central directory start. - - - - Read central directory record from the stream. - - Stream to read from. - - - - Extracts items' data from the stream. - - Stream to read data from. - - - - Creates a copy of the current instance. - - A copy of the current instance. - - - - Protects the archived file with password using specified algorithm. - - Password to protect. - Type of encryption algorithm to be used. - - - - Removes password from the compressed file. - - - - - Opens an encrypted zip file with password. - - File Name. - Password of the file to open. - - - - Reads archive data from the stream. In the current implementation - stream must be seekable and readable to extract data. - - Stream to read data from. - Indicates whether method should close stream after reading. - Password for the file to open. - - - - A method to release allocated unmanaged resources. - - - - - Class finilizer. - - - - - Returns single archive item from the collection. Read-only. - - Zero-based index of the item to return. - Single archive item from the collection. - - - - Returns item by its name. Null if item wasn't found. Read-only. - - - - - Returns number of items inside archive. Read-only. - - - - - Returns the items inside archive. Read-only. - - - - - Gets / sets file name preprocessor - object that converts full file/folder - name into value that will be written into zip archive. - - - - - Gets / sets default compression level - compression level for new items. - By default is equal to CompressionLevel.Best. - - - - - Indicates whether we should check Crc value when reading item's data. Check - is performed when user gets access to item's decompressed data for the first time. - - - - - Uses custom compressed stream reader and writer. - - - - - Returns the encryption algorithm used. Default value is NONE. - - - - - Password for ZipFile - - - - - Represents single item inside zip archive. It can be either folder or file. - - - - - Name of the archive item. - - - - - Compression method. - - - - - Compression level. - - - - - Crc. - - - - - Stream with item's data. - - - - - Compressed data size. - - - - - Original (not compressed) data size. - - - - - Indicates whether this item controls it's data stream. - - - - - Indicates whether internal stream contains compressed data. - - - - - Position of the size block inside local file header. - - - - - Offset to the local header. - - - - - General purpose bit flag. - - - - - Item's external attributes. - - - - - Indicates whether we should check crc value after decompressing item's data. - - - - - - - - - - Actual compression when Aes Encryption - - - - - Default constructor. - - - - - Creates new instance of the zip item. - - Name of the item (can be relative or absolute path). - Stream data. - - Indicates whether item controls stream and must close it when item finish its work. - - - - - - - - - - - - Updates internal data stream. - - New stream to set. - Indicates whether item should conrol new stream. - - - - - - - - - This method saves item inside stream. - - Stream to save item into. - - - - Frees all internal resources and closes internal stream if necessary. - - - - - This method writes file header into Central directory record. - - Stream to write data into. - - - - Converts current datetime to Windows format. - - Current Date and time. - Value in Windows format. - - - - Read data from the stream based on the central directory. - - Stream to read data from, stream.Position must point at just after correct file header. - - - - Reads zipped data from the stream. - - Stream to read data from. - Indicates whether we should check crc value after data decompression. - - - - Extracts compressed data from the stream. - - Stream to read data from. - - - - Extracts local header from the stream. - - Stream to read data from. - - - - Decompressed internal data if necessary. - - - - - Writes local file header. - - Stream to write into. - - - - Writes zipped content inside stream. - - Stream to write into. - - - - Writes local file footer into stream. - - Stream to write into. - - - - Checks whether Crc field and stream data corresponds each other. - - - - - Creates copy of the stream. - - Stream to copy. - Created stream. - - - - Checks for Latin characters in the Unicode string. - - Input Unicode string. - True if the Unicode string contain Latin characters. False otherwise. - - - - A method to release allocated unmanaged resources. - - - - - Finilizer. - - - - - Writes the header to Indicate the zip the file is encrypted. - - The data to write - - - - Data Encryption - - Data to be Encrypted - Encrypted data - - - - Data Decryption - - Data needs to be decrypted - Decrypted data - - - - Checks whether the file has unicode characters. - - Name of the file. - - - - - Create a Random byte Array - - Length of the salt value - salt value - - - - Name of the archive item. - - - - - Compression method. - - - - - Gets/sets item's compression level. - - - - - Crc. - - - - - Stream with item's data. - - - - - Compressed data size. - - - - - Original (not compressed) data size. - - - - - Indicates whether this item controls it's data stream. - - - - - Indicates whether internal stream contains compressed data. - - - - - Gets / sets item's external attributes. - - - - - Gets current OEM code page. - - - - - Crc32 implementation used in zip archive to verify data correctness. - - - - - Special pre-evaluated table used for faster crc evaluation. - Evaluated when crcNumber was 0xEDB88320. EvaluateTable method - can be used to evaluated table with different constant. - - - - Computes crc-32 value for the buffer. - Buffer to compute crc-32 for. - Offset to the data start. - Data length in bytes. - Initial crc-32 value. - Updated crc-32 value. - - - Computes crc-32 value for the stream. - Stream to compute crc-32 for. - Data length in bytes. - Crc-32 value. - - - - Evaluates crc table. - - "Magic" number. - Create table. - - - - Computes crc value for given number - - Number to calculate Crc value - Initial crc-32 value - Crc value - - - - This class represents exception type that is mostly raised when some - problems with zip extraction/creation occurs. - - - - - Initializes new instance of the exception class. - - Exception message. - - - - - - - - - - - - - - - - - - - - - - - - Initializes new instance of the stream. - - - - - Initializes new instance of the stream. - - - - - Clears all buffers for this stream and causes any buffered data to be written to the underlying device. - - - - - Reads a sequence of bytes from the current stream and advances the position - within the stream by the number of bytes read. - - An array of bytes. When this method returns, the buffer - contains the specified byte array with the values between offset and - (offset + count - 1) replaced by the bytes read from the current source. - The zero-based byte offset in buffer at which to begin - storing the data read from the current stream. - The maximum number of bytes to be read from the current stream. - The total number of bytes read into the buffer. This can be less - than the number of bytes requested if that many bytes are not currently - available, or zero (0) if the end of the stream has been reached. - - - - Sets the position within the current stream. - - A byte offset relative to the origin parameter. - A value of type SeekOrigin indicating the reference - point used to obtain the new position. - The new position within the current stream. - - - - Sets the length of the current stream. - - The desired length of the current stream in bytes. - - - - Writes a sequence of bytes to the current stream and advances the current - position within this stream by the number of bytes written. - - An array of bytes. This method copies count bytes - from buffer to the current stream. - The zero-based byte offset in buffer at which to begin - copying bytes to the current stream. - The number of bytes to be written to the current stream. - - - - Gets a value indicating whether the current stream supports reading. Read-only. - - - - - Gets a value indicating whether the current stream supports seeking. Read-only. - - - - - Gets a value indicating whether the current stream supports writing. Read-only. - - - - - Gets the length in bytes of the stream. Read-only. - - - - - Gets or sets the position within the current stream. Read-only. - - - - - This property returns stream with zipped content. It closes internal deflate - stream, so you won't be able to write anything in int. Read-only. - - - - - Returns computed crc32 value. Read-only. - - - - - Returns size of the unzipped data. Read-only. - - - - diff --git a/DPM2016/bin/Debug/Syncfusion.Pdf.Base.dll b/DPM2016/bin/Debug/Syncfusion.Pdf.Base.dll deleted file mode 100644 index 374194b..0000000 Binary files a/DPM2016/bin/Debug/Syncfusion.Pdf.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Debug/Syncfusion.Pdf.Base.xml b/DPM2016/bin/Debug/Syncfusion.Pdf.Base.xml deleted file mode 100644 index b7e8a3a..0000000 --- a/DPM2016/bin/Debug/Syncfusion.Pdf.Base.xml +++ /dev/null @@ -1,207816 +0,0 @@ - - - - Syncfusion.Pdf.Base - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Indicates the region of the barcode. - - - - - Indicates the backColor of the barcode. - - - - - Indicates the barcolor of the barcode. - - - - - Indicates the textcolor of the barcode. - - - - - Indicates the narrow bar width. - - - - - Indicates the wide bar width. - - - - - Indicates the location on where to draw the barcode in the PDF Document. - - - - - Indicates the size of the the barcode to draw in the PDF Document. - - - - - Indicates the data string which is to be encoded. - - - - - Indicates the free area around the barcode label. - - - - - Indicates the actual width of the barcode. - - - - - Indicates the actual height of the barcode. - - - - - Indicates the bar height of the barcode. - - - - - Indicates the extended text; - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Initializes a new instance of the class. - - Set the barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode("0123"); - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode("0123") - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Internal method which validates whether the given text is acceptable by the current barcode - specification or not. - - The Text. - True if Valid, Otherwise False - - - - Internal method which calculates the size of the barcode which is going to rendered. - - - - - - Initializes this instance. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode back color. - code93.BackColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode back color. - code93.BackColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode color. - code93.BarColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode color. - code93.BarColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode text color. - code93.TextColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode text color. - code93.TextColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode narrow width. - code93.NarrowBarWidth =1f; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode narrow width. - code93.NarrowBarWidth = 1f - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Sets the barcode text. - code93.Text ="CODE93"; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Sets the barcode back color. - code93.Text ="CODE93" - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Gets or sets the location to render barcode in the PDF Document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode location. - code93.Location = new PointF(50, 50); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode location. - code93.Location = new PointF(50, 50) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Sets the barcode quiet zone. - code93QuietZone = quietZones; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f - 'Sets the barcode quiet zone. - code93QuietZone = quietZones - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode height. - code93.BarHeight = 50f; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode height. - code93.BarHeight = 50f - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode size - SizeF size=code93.Size; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Get the barcode size. - SizeF size=code93.Size - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode bounds. - RectangleF bounds=code39.Bounds; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Get the barcode bounds. - RectangleF bounds=code39.Bounds - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Gets or sets the barcode text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification."); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.") - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException(); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException() - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - User defined error message. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification."); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.") - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - User defined error message. - The inner exception. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.", new InvalidDataException("Invalid input text")); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.", New InvalidDataException("Invalid input text")) - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The object that holds the serialized object data. - The contextual information about the source or destination. - - - - Represets the Utility class for storing barcode symbols. - - - - - Indicates the symbol. - - - - - Indicates the check character. - - - - - Indicates the Data. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The symbol. - The check digit. - The bars. - - - - Gets or sets the Symbol. - - - - - Gets or sets the check digit. - - - - - Gets or sets the bar information. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - Internal variable to store margin. - - - - - Internal variable to store right margin. - - - - - Internal variable to store top margin. - - - - - Internal variable to store left margin. - - - - - Internal variable to store bottom margin. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Right = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Right = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Top = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Top = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Left = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Left = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Bottom = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Bottom = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - bool isAll=code93.QuietZone.IsAll; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f - code39.QuietZone=quietZones - Dim isAll As bool = code39.QuietZone.IsAll - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Holds data of barcode. - - - - - Indicates the backColor of the barcode. - - - - - Stores the location of the barcode - - - - - Holds the quietzone. - - - - - Holds the dimension of the barcode. - - - - - Holds the Size of the barcode. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "www.syncfusion.com"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "www.syncfusion.com" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the data as byte array. - - - - - - Draw the barcode to PDF. - - The PdfPageBase to be drawn the barcode. - The location of the barcode to be drawn in the page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw the barcode to PDF page. - - The PDF page to be drawn the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Export the barcode as image. - - The exported image of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage() - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the size of the barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the barcode text. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets Quietzone for the barcode. - - - - - Gets or sets the dimension for the barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the loaction of the barcode to be rendered in the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Set the barcode text. - codaBarcode.Text = "0123"; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Set the font.. - codaBarcode.Font = font - 'Set the barcode text. - codaBarcode.Text = "0123" - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - This symbology allows the encoding of strings of up to 16 digits, 10 numeric digits (0 through 9) and - 6 special non alpha characters ("+", "-", "$", "/", ":", "."). - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Indicates whether the Checkdigit is already added to the barcode text or not. - Used with the barcodes which involves multiple checksum calculations. - - - - - To check whether Barcode is Continuous Barcode or discrete - - - - - Automatically adds the check digit to the barcode when true. - - - - - Indicates barcode pattern. - - - - - Indicates the barcode text display location. - - - - - Indicates the font used to draw the text. - - - - - Indicates the start symbol. - - - - - Indicates the stop symbol. - - - - - Indicates the validation expression which is used to validate the input text. - - - - - Indicates the validation expression. - - - - - Indicates whether to show check digit or not. - - - - - Indicates whether to enable / disable the check digits. - - - - - Indicates the intercharcter gap between bars. - - - - - Indicates the gap between barcode and the text. - - - - - Indicates the text alignment. - - - - - Indicates whether to encode start and stop symbols or not. - - - - - returns true when the Font property is set. - - - - - Initializes the new instance of - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - The barcode location. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on location and size value. - - The PDF page. - The barcode location. - The size of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500), new SizeF(200,200)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New PointF(25, 500), New SizeF(200, 200)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on rectangle input values. - - The PDF page. - The bounds of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new RectangleF(new PointF(25, 500), new SizeF(200,200))); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New RectangleF(New PointF(25, 500), New SizeF(200, 200))) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on float input values. - - The PDF page. - The x coordinate of the upper-left corner of the bounding rectangle. - The y coordinate of the upper-top corner of the bounding rectangle. - The width of the bouding rectangle. - The height of the bounding rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, 25, 500, 200, 200); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, 25, 500,200, 200) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - /// - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - code11.Location = new PointF(100,100); - //Draw a barcode in the new Page. - code11.Draw(page); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - code11.Location = New PointF(100,100); - 'Draw a barcode in the new Page. - code11.Draw(page) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Exports the barcode as image. - The barcode image. - - - - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the barcode text. - code11.Text = "012345678"; - //Get the image for Code32 Barcode. - Image image= code32.ToImage(); - //Save the image into Disk - image.Save("Code32.png", ImageFormat.Png); - - - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the barcode text. - code11.Text = "012345678" - 'Get the image for Code32 Barcode. - Image image= code32.ToImage() - 'Save the image into Disk - image.Save("Code32.png", ImageFormat.Png) - - - - - - Export the barcode as image. - - The size of the barcode. - - - - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the barcode text. - code11.Text = "012345678"; - //Get the image for Code32 Barcode. - Image image= code32.ToImage(new SizeF(200,200)); - //Save the image into Disk - image.Save("Code32.png", ImageFormat.Png); - - - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the barcode text. - code11.Text = "012345678" - 'Get the image for Code32 Barcode. - Image image= code32.ToImage(New SizeF(200,200)) - 'Save the image into Disk - image.Save("Code32.png", ImageFormat.Png) - - - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Returns the size of the barcode. - - The Size. - - - - Returns the Width of the barcode. - - - - - - To get the Extended Text - - - - - Calculates the check digit based on the barcode specification. - - Char array containing Check digits - - - - Returns the Character width. - - - The width. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Internal method used to paint bars on the page. - - The Page. - The Rectangle. - Returns the right margin. - - - - Returns the width of the barcode. - - The Width. - - - - Returns the height of the barcode. - - The Height. - - - - Internal method used to paint bars on the image. - - The graphics to draw. - The Rectangle. - Returns the right margin. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Set the barcode font. - code93.Font = font; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Set the barcode font. - code93.Font = font - 'Draw a barcode in the new Page. - code93.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Set the barcode text display location. - code93.TextDisplayLocation = TextLocation.Bottom; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Set the barcode text display location. - code93.TextDisplayLocation = TextLocation.Bottom - 'Draw a barcode in the new Page. - code93.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - The Default value is false. - - - The Default value is True. - - - - - - Default value is Center. - - - - - true if [encode start stop symbols]; otherwise, false. - - - - - Gets or sets the barcode symbols. - - - - - Gets or sets the barcode symbols. - - - - - Gets or sets the start symbol for the current barcode specification. - - - - - Gets or sets the stop symbol for the current barcode specification. - - - - - Gets or sets the validation expression to validate the given text. - - - - - Gets or sets the IntercharacterGap. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Set the barcode text. - codaBarcode.Text = "0123"; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Set the font.. - codaBarcode.Font = font - 'Set the barcode text. - codaBarcode.Text = "0123" - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode("0123"); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode("0123") - 'Set the font.. - codaBarcode.Font = font - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont; - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - Only the following symbols are allowed in a Code 11 barcode: 0 1 2 3 4 5 6 7 8 9 - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont; - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode("012345678"); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode("012345678") - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - The Barcode Text. - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - Symbol - - - - Gets the symbol row. - - The check value. - barcode symbol table - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode(); - //Set the font to code128A. - code128A.Font = font; - //Set the barcode text. - code128A.Text = "CODE128A"; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode() - 'Set the font to code128A. - code128A.Font = font - 'Set the barcode text. - code128A.Text = "Code128A" - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - Only the following symbols are allowed in a Code 128 A barcode: NUL (\x00) SOH (\x01) STX (\x02) ETX (\x03) EOT (\x04) ENQ (\x05) ACK (\x06) BEL (\x07) BS (\x08) HT (\x09) LF (\x0A) VT (\x0B) FF (\x0C) CR (\x0D) SO (\x0E) SI (\x0F) DLE (\x10) DC1 (\x11) DC2 (\x12) DC3 (\x13) DC4 (\x14) NAK (\x15) SYN (\x16) ETB (\x17) CAN (\x18) EM (\x19) SUB (\x1A) ESC (\x1B) FS (\x1C) GS (\x1D) RS (\x1E) US (\x1F) SPACE ! # $ % ' * + , - . 0 1 2 3 4 5 6 7 8 9 : ; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ]^ _ FNC1 (\xF0) FNC2 (\xF1) FNC3 (\xF2) FNC4 - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode(); - //Set the font to code128A. - code128A.Font = font; - //Set the barcode text. - code128A.Text = "CODE128A"; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode() - 'Set the font to code128A. - code128A.Font = font - 'Set the barcode text. - code128A.Text = "Code128A" - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode("Code128A"); - //Set the font to code128A. - code128A.Font = font; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode("Code128A") - 'Set the font to code128A. - code128A.Font = font - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode(); - //Set the font to code128B. - code128B.Font = font; - //Set the barcode text. - code128B.Text = "CODE128B"; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode() - 'Set the font to code128B. - code128B.Font = font; - 'Set the barcode text. - code128B.Text = "Code128B" - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - Only the following symbols are allowed in a Code 128 B barcode:SPACE ! " # $ % ' ( ) * + , - . / 0 12 3 4 5 6 7 8 9 : ; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ]^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL (\x7F) FNC1 (\xF0) FNC2 (\xF1) FNC3 (\xF2) FNC4 (\xF3) SHIFT (\xF4). - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode(); - //Set the font to code128B. - code128B.Font = font; - //Set the barcode text. - code128B.Text = "CODE128B"; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode() - 'Set the font to code128B. - code128B.Font = font; - 'Set the barcode text. - code128B.Text = "Code128B" - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode("Code128B"); - //Set the font to code128B. - code128B.Font = font; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode("Code128B") - 'Set the font to code128B. - code128B.Font = font; - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode(); - //Set the font to code32. - code32.Font = font; - //Set the barcode text. - code32.Text = "01234567"; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode() - 'Set the font to code32. - code32.Font = font - 'Set the barcode text. - code32.Text = "01234567" - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - Only the following symbols are allowed in a Code 32 barcode: 1 2 3 4 5 6 7 8 9 0. The barcode length is 9 digits (8 user defined digits + 1 check digit). - Code 32 barcodes are also known as Italian Pharmacode barcodes. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode(); - //Set the font to code39. - code32.Font = font; - //Set the barcode text. - code39.Text = "CODE39"; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode() - 'Set the font to code39. - code39.Font = font - 'Set the barcode text. - code39.Text = "CODE39" - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - Only the following symbols are allowed in a Code 39 barcode:Only the following symbols are allowed in a Code 39 barcode: 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - . $ / + % SPACE - All alphabetic characters are uppercase. If lowercase characters are required, then a Code 39 Extended barcode must be used. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode(); - //Set the font to code39. - code32.Font = font; - //Set the barcode text. - code39.Text = "CODE39"; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode() - 'Set the font to code39. - code39.Font = font - 'Set the barcode text. - code39.Text = "CODE39" - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode("CODE39"); - //Set the font to code39. - code32.Font = font; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode("CODE39") - 'Set the font to code39. - code39.Font = font - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - - - - Initializes this instance. - - - - - Internal method to calculate the check-digit - - - - - - Internal method which retrieves the specified symbol from the symbol table. - - - - - Local variable to store the Checksum character value. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode(); - //Set the font to code32. - code32.Font = font; - //Set the barcode text. - code32.Text = "01234567"; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode() - 'Set the font to code32. - code32.Font = font - 'Set the barcode text. - code32.Text = "01234567" - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode("01234567"); - //Set the font to code32. - code32.Font = font; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode("01234567") - 'Set the font to code32. - code32.Font = font - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - The Barcode Text. - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Gets the barcode symbols. - - Encoded data - - - - To get the Actual Encoded Text from from original Text.. - - The original data. - original Data - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Initializes the internal barcode symbol table - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode(); - //Set the font to code39Ext. - code39Ext.Font = font; - //Set the barcode text. - code39Ext.Text = "Code39Ext"; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode() - 'Set the font to code39Ext. - code39Ext.Font = font - 'Set the barcode text. - code39Ext.Text = "Code39Ext" - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - All 128 ASCII characters can be encoded in an extended Code 39 barcode - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode(); - //Set the font to code39Ext. - code39Ext.Font = font; - //Set the barcode text. - code39Ext.Text = "Code39Ext"; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode() - 'Set the font to code39Ext. - code39Ext.Font = font - 'Set the barcode text. - code39Ext.Text = "Code39Ext" - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode("Code39Ext"); - //Set the font to code39Ext. - code39Ext.Font = font; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode("Code39Ext") - 'Set the font to code39Ext. - code39Ext.Font = font - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - - - - Internal method to calculate the check-digit - - check digit - - - - Initializes this instance. - - - - - Internal method which retrieves the specified symbol from the symbol table. - - - symbol - - - - Internal method to get the extended text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the font to code93. - code93.Font = font; - //Set the barcode text. - code93.Text = "CODE93"; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the font to code93. - code93.Font = font - 'Set the barcode text. - code93.Text = "CODE93" - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - Only the following symbols are allowed in a Code 93 barcode: 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - . $ / + % SPACE - All alphabetic characters are uppercase. If lowercase characters are required, then a Code 93 Extended barcode must be used. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the font to code93. - code93.Font = font; - //Set the barcode text. - code93.Text = "CODE93"; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the font to code93. - code93.Font = font - 'Set the barcode text. - code93.Text = "CODE93" - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Set the font to code93. - code93.Font = font; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Set the font to code93. - code93.Font = font - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - Initializes the internal barcode symbol table - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method to calculate the check-digit - - symbols - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode(); - //Set the font to code93Ext. - code93Ext.Font = font; - //Set the barcode text. - code93Ext.Text = "CODE39Ext"; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode() - 'Set the font to code93Ext. - code93Ext.Font = font - 'Set the barcode text. - code93Ext.Text = "CODE39Ext" - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - All 128 ASCII characters can be encoded in an extended Code 93 barcode. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode(); - //Set the font to code93Ext. - code93Ext.Font = font; - //Set the barcode text. - code93Ext.Text = "CODE39Ext"; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode() - 'Set the font to code93Ext. - code93Ext.Font = font - 'Set the barcode text. - code93Ext.Text = "CODE39Ext" - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode("Code93Ext"); - //Set the font to code93Ext. - code93Ext.Font = font; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode("Code93Ext") - 'Set the font to code93Ext. - code93Ext.Font = font - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - To get the Checksum value - - checksum symbols - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - To get the Extended Text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUpcBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode(); - //Set the font to upc. - upcbarcode.Font = font; - //Set the barcode text. - upcbarcode.Text = "UPC"; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUpcBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode() - 'Set the font to upc. - upcbarcode.Font = font; - 'Set the barcode text. - upcbarcode.Text = "UPC" - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - Only the following symbols are allowed in a UPC-A barcode: 0 1 2 3 4 5 6 7 8 9 B. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUPCBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode(); - //Set the font to upc. - upcbarcode.Font = font; - //Set the barcode text. - upcbarcode.Text = "UPC"; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUPCBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode() - 'Set the font to upc. - upcbarcode.Font = font; - 'Set the barcode text. - upcbarcode.Text = "UPC" - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUPCBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode("UPC"); - //Set the font to upc. - upcbarcode.Font = font; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUPCBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode("UPC") - 'Set the font to upc. - upcbarcode.Font = font; - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Represents the PDF datamatrix barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Holds the encoding. - - - - - Holds the data matrix size. - - - - - Holds the final array. - - - - - Array containing all possible datamatrix symbol attributes. - - - - - Holds the suitable symbol attribute based on input text. - - - - - Holds log array. - - - - - Holds ALog array. - - - - - Internal variable for RS polynomial. - - - - - Internal variable for block length. - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - Data to be converted as barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode("Test"); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode("Test") - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes properties and calculation array for DataMatrix barcode. - - - - - Create log and alog arrays. - - - - - Creates factors for polynomial based on the data. - - Number of correction codewords required. - - - - Create matrix. - - Input data matrix. - - - - Builds data matrix. - - - - - Prepares data codeword by encoding and appending error correction codes. - - Data in bytes. - Final codeword ready for generating matrix. - - - - Encodes the data using Base256 encoder. - - Data to be encoded. - Encoded data. - - - - Compute codeword using 255 state algorithm. - - Codeword to compute. - Index of the codeword. - Encoded codeword. - - - - Encodes the data using Numeric encoder. - - Data to be encoded. - Encoded data. - - - - Encodes the data using ASCII encoder. - - Data to be encoded. - Encoded data. - - - - Compute error correction codewords. - - Data codewords. - Correction codeword array. - - - - Data codeword is padded to match the chosen symbol attribute. - - Length of data codeword. - Codeword without padding. - Codeword with padding. - - - - Special field multiplication. - - - - - - - - Choose suitable encoding. - - Data codeword. - Encoded codeword. - - - - Adds quietzone on all sides of the data matrix. - - Input data matrix. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage() - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Convert the data matrix barcode to image - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(new SizeF(200,200)); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage(New SizeF(200,200)) - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - Draw DataMatrix barcode on Pdf Document. - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100), new SizeF(200,200)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100), New SizeF(200,200)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw DataMatrix Barcode in pdf document. - - The PDF page to be drawn the barcode. - The rectangle bounds of the rendering area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new RectangleF(100, 100, 200, 200)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New RectangleF(100, 100, 200, 200)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw DataMatrix barcode in pdf document. - - The PDF page to be draw the barcode. - The x coordinate of the upper-left corner of the bounding rectangle. - The Y coordinate of the upper-top corner bounding rectangle. - The width of the barcode bounding rectangle. - The height of the barcode bounding rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, 100, 100, 200, 200); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, 100, 100, 200, 200) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws datamatrix in the PdfPage. - - The PDF page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII; - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the actual number of rows (including quietzones). - - - - - Returns the actual number of columns (including quietzones). - - - - - Symbol attribute structure for the DataMatrix. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - Represents the PDF QR barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Holds the Version Information. - - - - - Holds the Number of Modules. - - - - - Holds the data of Function Pattern. - - - - - Holds the Data in the Encoding Region. - - - - - Holds the Input Mode. - - - - - Holds the Error correction level. - - - - - Holds the Data Bit value. - - - - - Holds the Number of Blocks. - - - - - Holds the Image. - - - - - Check if User Mentioned Mode. - - - - - Check if User Mentioned Version. - - - - - Check if User Mentioned Error Correction Level. - - - - - Check if ECI. - - - - - Holds the ECI Assignment Number. - - - - - Variable to hold the QR Barcode Values. - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Exports the barcode as image. - The barcode image. - - - - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - //Get the image for QR Barcode. - Image image= qrCode.ToImage(); - //Save the image into Disk - image.Save("QRCode.png", ImageFormat.Png); - - - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - 'Get the image for Code32 Barcode. - Dim image As Image = qrCode.ToImage() - 'Save the image into Disk - image.Save("QRCode.png", ImageFormat.Png) - - - - - - - Draws the barcode on the at the specified location. - - The pdf page. - The barcode location. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - //Draw a barcode in the new Page. - qrCode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("QRBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - 'Draw a barcode in the new Page. - qrCode.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("QRBarcode.pdf") - - - - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - qrCode.Location = new PointF(100,100); - //Draw a barcode in the new Page. - qrCode.Draw(page); - //Save the document to disk. - document.Save("QRBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - qrCode.Location = new PointF(100,100); - 'Draw a barcode in the new Page. - qrCode.Draw(page) - 'Save the document to disk. - document.Save("QRBarcode.pdf") - - - - - - Generates the values of the QR Barcode - - - - - Adds quietzone to the QR Barcode. - - - - - Draw the PDP in the given location - - The x co-ordinate. - The y co-ordinate. - - - - Draw the Timing Pattern - - - - - Draw the Alignment Pattern in the given location - - The x co-ordinate. - The y co-ordinate. - - - - Encode the Input Data - - - - - Allocates the Encoded Data and then Mask - - Encoded Data. - - - - Draw the Format Information - - - - - Initializes the Version, Error correction level, Input Mode. - - - - - Splits the Code words - - The Encoded value Blocks. - Index of Block Number. - Length of the Block. - - - - Creates the Blocks - - The Encoded value. - Number of Blocks. - - - - Converts Integer value to Boolean - - The Integer value. - Number of Bits. - - - - Converts string value to Boolean - - The String value. - Number of Bits. - - - - Gets the Allignment pattern coordinates of the current version. - - - - - Allocates Format and Version Information - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05 - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Struct to hold the value of each dots in Barcode. - - - - - Specifies if the Dot is black. - - - - - Specifies if the Dot is already filled. - - - - - Specifies if the Dot is PDP. - - - - - Holds the Version Information. - - - - - Holds the Error Correction Level. - - - - - Holds the Number of Data code word. - - - - - Holds the Number of Error correcting code words. - - - - - Holds the Number of Error correction Blocks. - - - - - Holds the End value of the version. - - - - - Holds the Data copacity of the version. - - - - - Holds the Format Information. - - - - - Holds the Version Information. - - - - - Holds all the values of Error correcting code words. - - - - - Holds all the end values. - - - - - Holds all the Data capacity values. - - - - - Holds all the Numeric Data capacity of the Error correction level Low. - - - - - Holds all the Numeric Data capacity of the Error correction level Medium. - - - - - Holds all the Numeric Data capacity of the Error correction level Quartile. - - - - - Holds all the Numeric Data capacity of the Error correction level High. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Low. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Medium. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Quartile. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level High. - - - - - Holds all the Binary Data capacity of the Error correction level Low. - - - - - Holds all the Binary Data capacity of the Error correction level Medium. - - - - - Holds all the Binary Data capacity of the Error correction level Quartile. - - - - - Holds all the Binary Data capacity of the Error correction level High. - - - - - Initializes the Values. - - - - - Gets the Alphanumeric values. - - - - - Gets number of Data code words. - - - - - Get number of Error correction code words. - - - - - Gets number of Error correction Blocks. - - - - - Gets the End of the version. - - - - - Gets Data capacity. - - - - - Gets Format Information. - - - - - Gets Version Information. - - - - - Gets equivalent Number of the Character. - - - - - Gets Numeric Data capacity. - - - - - Gets Alphanumeric data capacity. - - - - - Get or Private set the Number of Data code words. - - - - - Get or Private set the Number of Error correction code words. - - - - - Get or Private set the Number of Error correction Blocks. - - - - - Get or Private set the End value of the Current Version. - - - - - Get or Private set the Data capacity. - - - - - Get or Private set the Format Information. - - - - - Get or Private set the Version Information. - - - - - Holds the Length - - - - - Holds the Error Correction Code Word - - - - - Holds the DataBits - - - - - Holds the Data Code word - - - - - Holds G(x) - - - - - Holds all the values of Alpha - - - - - Holds the Decimal value - - - - - Holds the values of QR Barcode - - - - - Initializes Error correction code word - - Version. - Error correction level. - - - - Gets the Error correction code word - Error correction code word. - - - - - Convert to Decimal - - Binary values. - - - - Convert decimal to Binary value - Binary Representation. - - Decimal Representation. - - - - Polynomial division - Polynomial coefficient. - - - - - Find the element in the alpha - Index of the element. - - Element. - Alpha. - - - - Gets g(x) of the element - g(x) - - Element. - Alpha. - - - - Sets and Gets the Data code word - - - - - Sets and Gets the DataBits - - - - - Sets and Gets the Error Correction Code Words - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the barcode text location. - code93.TextDisplayLocation = TextLocation.Bottom; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("Barcode.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the barcode text location. - code93.TextDisplayLocation = TextLocation.Bottom - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("Barcode.pdf") - - - - - - Displays, no text. - - - - - Displays text, above the barcode. - - - - - Displays text, at the bottom of the barcode. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the barcode text alignment - code93.TextAlignment = PdfBarcodeTextAlignment.Center; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("Barcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the barcode text alignment - code93.TextAlignment = PdfBarcodeTextAlignment.Center - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("Barcode.pdf") - - - - - - Displays the readable text on the left side of the barcode. - - - - - Displays the readable text at the center of the barcode. - - - - - Displays the readable text on the right side of the barcode. - - - - - Specifies the data matrix barcode encoding. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII; - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Encoding is choosen based on the data. - - - - - Encoding is done by ASCII encoder. - - - - - Encoding is done by Numeric encoder. - - - - - Encoding is done by Base256 encode. - - - - - Specifies the data matrix barcode size. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Size is choosen based on the data. - - - - - Square matrix with 10 rows and 10 columns. - - - - - Square matrix with 12 rows and 12 columns. - - - - - Square matrix with 14 rows and 14 columns. - - - - - Square matrix with 16 rows and 16 columns. - - - - - Square matrix with 18 rows and 18 columns. - - - - - Square matrix with 20 rows and 20 columns. - - - - - Square matrix with 22 rows and 22 columns. - - - - - Square matrix with 24 rows and 24 columns. - - - - - Square matrix with 26 rows and 26 columns. - - - - - Square matrix with 32 rows and 32 columns. - - - - - Square matrix with 36 rows and 36 columns. - - - - - Square matrix with 40 rows and 40 columns. - - - - - Square matrix with 44 rows and 44 columns. - - - - - Square matrix with 48 rows and 48 columns. - - - - - Square matrix with 52 rows and 52 columns. - - - - - Square matrix with 64 rows and 64 columns. - - - - - Square matrix with 72 rows and 72 columns. - - - - - Square matrix with 80 rows and 80 columns. - - - - - Square matrix with 88 rows and 88 columns. - - - - - Square matrix with 96 rows and 96 columns. - - - - - Square matrix with 104 rows and 104 columns. - - - - - Square matrix with 120 rows and 120 columns. - - - - - Square matrix with 132 rows and 132 columns. - - - - - Square matrix with 144 rows and 144 columns. - - - - - Rectangular matrix with 8 rows and 18 columns. - - - - - Rectangular matrix with 8 rows and 32 columns. - - - - - Rectangular matrix with 12 rows and 26 columns. - - - - - Rectangular matrix with 12 rows and 36 columns. - - - - - Rectangular matrix with 16 rows and 36 columns. - - - - - Rectangular matrix with 16 rows and 48 columns. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05 - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the default version. - - - - - Specifies version 1 (21x21 modules). - - - - - Specifies version 2 (25x25 modules). - - - - - Specifies version 3 (29x29 modules). - - - - - Specifies version 4 (33x33 modules). - - - - - Specifies version 5 (37x37 modules). - - - - - Specifies version 6 (41x41 modules). - - - - - Specifies version 7 (45x45 modules). - - - - - Specifies version 8 (49x49 modules). - - - - - Specifies version 9 (53x53 modules). - - - - - Specifies version 10 (57x57 modules). - - - - - Specifies version 11 (61x61 modules). - - - - - Specifies version 12 (65x65 modules). - - - - - Specifies version 13 (69x69 modules). - - - - - Specifies version 14 (73x73 modules). - - - - - Specifies version 15 (77x77 modules). - - - - - Specifies version 16 (81x81 modules). - - - - - Specifies version 17 (85x85 modules). - - - - - Specifies version 18 (89x89 modules). - - - - - Specifies version 19 (93x93 modules). - - - - - Specifies version 20 (97x97 modules). - - - - - Specifies version 21 (101x101 modules). - - - - - Specifies version 22 (105x105 modules). - - - - - Specifies version 23 (109x109 modules). - - - - - Specifies version 24 (113x113 modules). - - - - - Specifies version 25 (117x117 modules). - - - - - Specifies version 26 (121x121 modules). - - - - - Specifies version 27 (125x125 modules). - - - - - Specifies version 28 (129x129 modules). - - - - - Specifies version 29 (133x133 modules). - - - - - Specifies version 30 (137x137 modules). - - - - - Specifies version 31 (141x141 modules). - - - - - Specifies version 32 (145x145 modules). - - - - - Specifies version 33 (149x149 modules). - - - - - Specifies version 34 (153x153 modules). - - - - - Specifies version 35 (157x157 modules). - - - - - Specifies version 36 (161x161 modules). - - - - - Specifies version 37 (165x165 modules). - - - - - Specifies version 38 (169x169 modules). - - - - - Specifies version 39 (173x173 modules). - - - - - Specifies version 40 (177x177 modules). - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - The Recovery capacity is 7%(approx.) - - - - - The Recovery capacity is 15%(approx.) - - - - - The Recovery capacity is 25%(approx.) - - - - - The Recovery capacity is 30%(approx.) - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - The Input only contains the Numeric Values(0,1,2,3,4,5,6,7,8,9). - - - - - The Input may contain Numeric Values, Alphabets(Upper case only), SPACE, $, %, *, +, -, ., /, : - - - - - The Input may contain all the ASCII values - - - - - - This class holds the name of the Syncfusion.Pdf.Base assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - - - The root namespace of this assembly. Used internally for - locating resources within the assembly. - - - - - - - The full name of this assembly without version information: "Syncfusion.Pdf.Base". - - - - - - - A reference to the - for the grid assembly. - - - - - - - This delegate helps with resolving types and can be used as - an event handler for a - event. - - The source of the event. - The event data with information about - the type. - - A reference to the assembly where the type is located. - - - Use this handler when reading back types from a serialization - stream saved with an earlier version of this assembly. - - - - public static GridModel LoadSoap(Stream s) - { - try - { - AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(GridAssembly.AssemblyResolver); - SoapFormatter b = new SoapFormatter(); - b.AssemblyFormat = FormatterAssemblyStyle.Simple; - GridModel t = b.Deserialize(s) as GridModel; - t.Modified = false; - return t; - } - finally - { - AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(GridAssembly.AssemblyResolver); - } - } - - - - - - - - - - Configuration class for the PDF library. In the current - version, there are no explicit settings. Adding this - component from the toolbar allows you to configure your - project for PDF support easily. - - - - - Initializes a new instance of the class. - - - - - - - Copyright notice for the library. - - - - - Exception of this type is raised when the document contains object which are not - supported by current document standard.Inherited from - - - - - The class represents general PDF document level exceptions. - The inherited from the class - - - - - The class represents general PDF exceptions. - The inherited from the class - - - - PdfLoadedDocument document; - try - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf"); - } - catch (Syncfusion.Pdf.PdfException) - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf", true); - } - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument - Try - document = New PdfLoadedDocument("input.pdf") - Catch exception As Syncfusion.Pdf.PdfException - document = New PdfLoadedDocument("input.pdf", True) - End Try - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Initializes object by default error message. - - - - PdfLoadedDocument document; - try - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf"); - } - catch (Syncfusion.Pdf.PdfException) - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf", true); - } - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument - Try - document = New PdfLoadedDocument("input.pdf") - Catch exception As Syncfusion.Pdf.PdfException - document = New PdfLoadedDocument("input.pdf", True) - End Try - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object by specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - - Default exception message. - - - - - - Initializes object by default error message. - - - - - Initializes object by default error message and inner - exception object. - - The inner exception. - - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object by specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Default exception message. - - - - - Initializes object with default error message. - - - - - Initializes object with default error message and inner - exception object. - - The inner exception. - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object with specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Exception of this type is raised when annotation object is used incorrectly. - - - - - Default exception message. - - - - - Initializes object with default error message. - - - - - Initializes object with default error message and inner - exception object. - - The inner exception. - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object with specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Represents base class for all action types. - - Interface - - - - Defines the basic interace of the various Wrapper.. - - - - - Gets the element. - - - - - Next action to perform. - - - - - Internal variable to store dictionary; - - - - - Initializes a new instance of the class. - - - - - Initializes an instance. - - - - - Gets or sets the next action to be performed after the action represented by this instance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create a new sound action. - PdfSoundAction soundAction = new PdfSoundAction(@"startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Mix = true; - //Create a new PdfUriAction. - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Set the next action to the soundAction. - soundAction.Next = uriAction; - //Set the action. - document.Actions.AfterOpen = soundAction; - //Save document to disk. - document.Save("output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create a new sound action. - Dim soundAction As New PdfSoundAction("startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Mix = True - 'Create a new PdfUriAction. - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Set the next action to the soundAction. - soundAction.[Next] = uriAction - 'Set the action. - document.Actions.AfterOpen = soundAction - 'Save document to disk. - document.Save("output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - The Syncfusion.Pdf.Interactive namespace contains classes used to create interactive elements. - - - - - Represents collection of actions. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document. - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction. - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction. - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document. - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction. - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction. - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - The class used to handle the collection of PDF objects. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Get layer collection from page. - PdfCollection collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Get layer collection from page. - Dim collection As PdfCollection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - List of the collection. - - - - - Initializes a new instance of the class. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Initialize new instance of PDF collection. - PdfCollection collection = new PdfCollection(); - //Get layer collection from the page. - collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Initialize new instance of PDF collection. - Dim collection As PdfCollection = New PdfCollection() - 'Get layer collection from the page. - collection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing. - The zero-based index in array at which copying begins. - - - - Returns an enumerator that iterates through a collection. - - Returns an enumerator that iterates through a collection. - - - - Clearing the Collection. - - - - - Gets number of the elements in the collection. - - The total number of elements in the collection. - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Get layer collection from page. - PdfCollection collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Get layer collection from page. - Dim collection As PdfCollection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets internal list of the collection. - - - - - Array of actions. - - - - - Adds the specified action to the collection - - The - The index of the action in the collection - - - - Inserts the action at the specified position. - - The index in the collection where the action to be inserted - The - - - - Gets the index of the action. - - The . - Index of the action - - - - Determines whether the action is contained within collection. - - The . - - Value, indicating the presents of the action in collection. - - - - - Clears the action collection. - - - - - Removes the specified action from the collection - - The . - - - - Removes the action at the specified index from the collection - - The index. - - - - Initializes a new instance of the class. - - - - - Adds the action. - - The action. - Index of the inserted action. - - - - Inserts the action. - - The index. - The action. - - - - Clear the collection. - - - - - Removes the action. - - The action. - - - - Removes the action at the specified position. - - The index. - - - - Gets the at the specified index. - - the - - - - Represents the action on form fields. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - - Internal variable to store value indicating whether to include - or exclude fields for resetting process. - - - - - Internal variable to store fields affected by the action. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - Gets or sets a value indicating whether fields contained in - collection will be included for resetting or submitting. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - If Include property is true, only the fields in this collection will be reset or submitted. - If Include property is false, the fields in this collection are not reset or submitted - and only the remaining form fields are reset or submitted. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - - true if include; otherwise, false. - - - - Gets the fields. - - The fields. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the submitButton Bounds. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - //Gets the FieldCollection from formAction - PdfFieldCollection fields = formAction.Fields; - //Set actions to submit button - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the submitButton Bounds. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - 'Gets the FieldCollection from formAction - Dim fields As PdfFieldCollection = formAction.Fields - 'Set actions to submit button - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - Represents an action which goes to a destination in the current document. - - This class is used to display the specified page in the current document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store action's destination. - - - - - Initializes a new instance of the class with specified destination page. - - The destination to jump to. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfDestination - PdfDestination destination = new PdfDestination(pdfPages); - //Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage; - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(destination); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfDestination - Dim destination As New PdfDestination(pdfPages) - 'Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(destination) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified page. - - The page to navigate. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the destination to be navigated. - - The to navigate. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfDestination - PdfDestination destination = new PdfDestination(pdfPages); - //Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage; - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Set the destination - gotoAction.Destination = destination; - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfDestination - Dim destination As New PdfDestination(pdfPages) - 'Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Set the destination - gotoAction.Destination = destination - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Represents an java script action in PDF document. - - This class is used to perform the java script action in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Internal variable to store java script code. - - - - - Initializes a new instance of the class with java script code - - The java script code. - A string value representing valid javascript code to be executed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes instance. - - - - - Gets or sets the javascript code to be executed when this action is executed. - - A string value representing valid javascript code to be executed. - /// - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Get the javascript code. - string javascriptcode = javaScriptAction.JavaScript; - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Get the javascript code. - Dim javascriptcode As String = javaScriptAction.JavaScript - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents an action which launches an application or opens or prints a document. - - This class is used to allow the external file to execute. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - Internal variable to store file specification. - - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute) - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - Creates a Launch Action from loaded page - - - - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - //Get file name - string fileName = action.FileName; - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - 'Get file name - Dim fileName As String = action.FileName - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - The class represents an named action which execute an action predefined by the viewer application. - - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Internal variable to store destination. - - - - - Initializes a new instance of the class. - - The object representing destination of an action. - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Set the destination - namedAction.Destination = PdfActionDestination.NextPage; - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Set the destination - namedAction.Destination = PdfActionDestination.NextPage - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes instance. - - - - - Gets or sets the destination. - - The object representing destination of an action. - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Set the destination - namedAction.Destination = PdfActionDestination.NextPage; - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Set the destination - namedAction.Destination = PdfActionDestination.NextPage - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents additional actions of the annotations. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"Input.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("Input.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Internal variable to store enter action. - - - - - Internal variable to store leave action. - - - - - Internal variable to store mouse down action. - - - - - Internal variable to store mouse up action. - - - - - Internal variable to store get focus action. - - - - - Internal variable to store lost focus action. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - PdfAnnotationActions annotationActions = new PdfAnnotationActions(); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - annotationActions.MouseEnter = javaAction; - - - Dim annotationActions As PdfAnnotationActions = New PdfAnnotationActions() - 'Create a new PdfJavaScriptAction. - Dim javaAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")") - annotationActions.MouseEnter = javaAction - - - Class. - Class. - - - - Gets or sets the action to be performed when the cursor enters the annotation�s - active area. - - The mouse enter action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the cursor exits the annotation�s - active area. - - The mouse leave action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - annotation�s active area. - - The mouse down action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the mouse button is released - inside the annotation�s active area.. - - The mouse up action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the annotation receives the - input focus. - - The got focus action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the annotation loses the - input focus. - - The lost focus action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creata a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the element. - - - - - - Represents an actions for the PDF document. - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store dictionary wrapper. - - - - - Internal variable to store action to be performed after the document is opened. - - - - - Internal variable to store action to be perforemed before document closes. - - - - - Internal variable to store action to be performed before the document saves. - - - - - Internal variable to store action to be performed after the document saves. - - - - - Internal variable to store action to be performed before the document prints. - - - - - Internal variable to store action to be performed after the document prints. - - - - - Internal variable to store catalog. - - - - - Initializes a new instance of the class. - - The catalog. - - - - Gets or sets the to execute when the document is opened. - - A specifying the action to be executed when documents opens in the viewer. - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the java script action to be performed before the document is closed. - - A object specifying the action to be executed before the document is closed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforeClose = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforeClose = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the java script action to be performed before the document is saved. - - A object specifying the action to be executed before the document is saved. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforeSave = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforeSave = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the jave script action to be performed after the document is saved. - - A object specifying the action to be executed after the document is saved. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterSave = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterSave = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed before the document is printed. - - A object specifying the action to be executed before the document is printed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforePrint = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforePrint = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed after the document is printed. - - A object specifying the action to be executed after the document is printed. . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterPrint = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterPrint = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents actions to be performed as response to field events. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Internal variable to store annotation's actions. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store key pressed action. - - - - - Internal variable to store format action. - - - - - Internal variable to store validate action. - - - - - Internal variable to store calculate action. - - - - - Initializes a new instance of the class with - - The . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed when the user types a keystroke - into a text field or combo box or modifies the selection in a scrollable list box. - This action can check the keystroke for validity and reject or modify it. - - A object specifying the action to be executed when the user types a keystroke. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.KeyPressed = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.KeyPressed = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed before the field is formatted - to display its current value. This action can modify the field�s value before formatting. - - A object specifying the action to be executed for formatting the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Format = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Format = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed when the field�s value is changed. - This action can check the new value for validity. - - A object specifying the action to be executed for validating the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Validate = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Validate = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed to recalculate the value - of this field when that of another field changes. - - A object specifying the action to be executed for calculating the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Calculate = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Calculate = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse cursor enters the fields�s - area. - - A specifying the action to be executed when the mouse enters the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the cursor exits the fields�s - area. - - A descendant specifying the action to be executed when the mouse leaves the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse button is released - inside the field�s area. - - A specifying the action to be executed when the mouse button is released inside the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - field�s area. - - A specifying the action to be executed when the mouse button is pressed inside the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the field receives the - input focus. - - A specifying the action to be executed when the field receives the input focus. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the field loses the - input focus. - - A specifying the action to be executed when the field losts the input focus. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents PDF form's reset action,this action allows a user to reset the form fields to their default values. - - This class is used to reset all the form fields in the PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes an instance. - - - - - Gets or sets a value indicating whether fields contained in Fields - collection will be included for resetting. - - true if include; otherwise, false. - - If Include property is true, only the fields in this collection will be reset. - If Include property is false, the fields in this collection are not reset - and only the remaining form fields are reset. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - resetAction.Include=true; - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - resetAction.Include=True - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the sound action,sound action plays a specified music file in the PDF document - - This class is used to plays a music file in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store the volume at which to play the sound. - - - - - Internal variable to store sound. - - - - - Internal variable to store value whether to play sound synchronously or asynchronously. - - - - - Internal variable to store value whether to repeat playing. - - - - - Internal variable to store value whether to mix this sound with any other sound already playing. - - - - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the volume at which to play the sound, in the range -1.0 to 1.0. - - The volume of the sound. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - The name of the sound file. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Get the fileName form soundAction - string fileName=soundAction.FileName; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Get the fileName form soundAction - Dim fileName as string =soundAction.FileName; - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the sound. - - represents the . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value whether to play the sound synchronously or asynchronously. - If this flag is true, the viewer application retains control, allowing no further - user interaction other than canceling the sound, until the sound has been - completely played. Default value: false. - - true if synchronous; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Synchronous = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Synchronous = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether to repeat the sound indefinitely. - If this entry is present, the property is ignored. Default value: false. - - true if repeat; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Repeat = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Repeat = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether to mix this sound with any other - sound already playing. If this flag is false, any previously playing sound is - stopped before starting this sound; this can be used to stop a repeating - sound. Default value: false. - - true if mix; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Mix = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Mix = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Represents PDF form's submit action.submit action allows submission of data that is entered in the PDF form - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store file name. - - - - - Internal variable to store submit flags. - - - - - Internal variable to store Http method. - - - - - Internal variable to store value whether to submit dates in canonical format. - - - - - Internal variable to store value whether to submit mouse pointer coordinates. - - - - - Internal variable to store value whether to submit fields without values. - - - - - Internal variable to store value whether to submit incremental updates. - - - - - Internal variable to store value indicating whether to submit annotations. - - - - - Internal variable to store value indicating whether to exclude non-user annotations. - - - - - Internal variable to store value indicating whether to embed form. - - - - - Internal variable to store submit data format. - - - - - Initializes a new instance of the class with URL to submit the form data - - The URL. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets an Url address where the data should be transferred. - - An string value specifying the full URI for the internet resource. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - string url=submitAction.Url; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Gets the url form the submit action - Dim url As String=submitAction.Url - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the HTTP method. - - The HTTP method. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - //Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - //Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the HttpMethod to submit action - submitAction.HttpMethod=HttpMethod.Post; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - 'Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - 'Set the HttpMethod to submit action - submitAction.HttpMethod=HttpMethod.Post - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - If set, any submitted field values representing dates are converted to the - standard format. The interpretation of a form field as a date is not specified - explicitly in the field itself but only in the JavaScript code that processes it. - - - true if use canonical date time format when submit data; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the CanonicalDateTimeFormat to submit action - submitAction.CanonicalDateTimeFormat=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the CanonicalDateTimeFormat to submit action - submitAction.CanonicalDateTimeFormat=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit mouse pointer coordinates. If set, - the coordinates of the mouse click that caused the submit-form action are transmitted - as part of the form data. The coordinate values are relative to the upper-left corner - of the field�s widget annotation rectangle. - - true if submit coordinates; otherwise, false. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - 'Sets the SubmitCoordinates to submit action - submitAction.SubmitCoordinates=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the SubmitCoordinates to submit action - submitAction.SubmitCoordinates=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit fields without value. - If set, all fields designated by the Fields collection and the - flag are submitted, regardless of whether they have a value. For fields without a - value, only the field name is transmitted. - - - true if submit fields without value or the empty ones; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the IncludeNoValueFields to submit action - submitAction.IncludeNoValueFields=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeNoValueFields to submit action - submitAction.IncludeNoValueFields=true - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit form's incremental updates. - Meaningful only when the form is being submitted in Forms Data Format. - If set, the submitted FDF file includes the contents of all incremental - updates to the underlying PDF document. If clear, the incremental updates are - not included. - - - true if incremental updates should be submitted; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the IncludeIncrementalUpdates to submit action - submitAction.IncludeIncrementalUpdates=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeIncrementalUpdates to submit action - submitAction.IncludeIncrementalUpdates=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit annotations. - Meaningful only when the form is being submitted in Forms Data Format. - If set, the submitted FDF file includes all markup annotations in the - underlying PDF document. If clear, markup annotations are not included. - - true if annotations should be submitted; otherwise, false. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the IncludeAnnotations to submit action - submitAction.IncludeAnnotations=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeAnnotations to submit action - submitAction.IncludeAnnotations=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to exclude non user annotations form submit - data stream. Meaningful only when the form is being submitted in Forms Data Format - and the property is set to true. - - - true if non user annotations should be excluded; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the ExcludeNonUserAnnotations to submit action - submitAction.ExcludeNonUserAnnotations=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Set the ExcludeNonUserAnnotations to submit action - submitAction.ExcludeNonUserAnnotations=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - - Gets or sets the - - The - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether fields contained in Fields - collection will be included for submitting. - - true if include; otherwise, false. - - If Include property is true, only the fields in this collection will be submitted. - If Include property is false, the fields in this collection are not submitted - and only the remaining form fields are submitted. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - If the field has Export property set to false it will be not included for - submitting in any case. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the Include option to submit action - submitAction.Include=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the Include option to submit action - submitAction.Include=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Represents an action which resolves unique resource identifier. - - This class is used to create the hyper link in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store unique resource identifier. - - - - - Initializes a new instance of the class. - - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction(); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction() - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The unique resource identifier. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes instance. - - - - - Gets or sets the unique resource identifier. - - The unique resource identifier. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction(); - uriAction.Uri="http://www.google.com"; - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction() - uriAction.Uri="http://www.google.com"; - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Specifies the file path type. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds to submitButton. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submit button text. - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction and set the PdfFilePathType. - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute); - //Set the actions to submit button. - submitButton.Actions.GotFocus = launchAction; - //Save document to disk. - document.Save("ActionDestination.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField. - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - 'Set the bounds to submit button. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submit button text. - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction and set the PdfFilePathType. - Dim launchAction As PdfLaunchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute) - 'Set the actions to submit button. - submitButton.Actions.GotFocus = launchAction - 'Save document to disk. - document.Save("ActionDestination.pdf") - document.Close(True) - - - - - - Specifies the file location with out including the domain name. - - - - - Specifies the location, including the domain name. - - - - - Specifies the available named actions supported by the viewer. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds to submitButton. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the font to submitButton. - submitButton.Font = font; - //Sets the submit button text. - submitButton.Text = "First Page"; - //Set the back color to submit button. - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfNamedAction. - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.FirstPage); - //Set the named action destination. - namedAction.Destination=PdfActionDestination.PrevPage; - //Set the Actions to namedAction. - submitButton.Actions.GotFocus = namedAction; - //Add the submitButton to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ActionDestination.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - 'Set the bounds to submit button. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the font to submitButton. - submitButton.Font = font - 'Sets the submit button text. - submitButton.Text = "First Page" - 'Set the back color to submit button. - submitButton.BackColor = new PdfColor(181, 191, 203) - 'Create a new PdfNamedAction - Dim namedAction As PdfNamedAction = new PdfNamedAction(PdfActionDestination.FirstPage) - 'Set the named action. - namedAction.Destination=PdfActionDestination.PrevPage - 'Set the Actions to namedAction. - submitButton.Actions.GotFocus = namedAction - 'Add the submitButton to the new document. - document.Form.Fields.Add(gotoAction) - 'Save document to disk. - document.Save("ActionDestination.pdf") - document.Close(True) - - - - - - Navigate to first page. - - - - - Navigate to last page. - - - - - Navigate to next page. - - - - - Navigate to previous page. - - - - - Specifies the available data formats for submitting the form data. - - - - - If clear, the Fields array specifies which fields to - include in the submission. (All descendants of the specified fields in - the field hierarchy are submitted as well.) - If set, the Fields array tells which fields to exclude. All fields in the - document�s interactive form are submitted except those listed in the - Fields array and those whose NoExport flag. - - - - - If set, all fields designated by the Fields array and the Include/ - Exclude flag are submitted, regardless of whether they have a value. - For fields without a value, only the - field name is transmitted. - - - - - Meaningful only if the SubmitPDF and XFDF flags are clear. If set, - field names and values are submitted in HTML Form format. If - clear, they are submitted in Forms Data Format - - - - - If set, field names and values are submitted using an HTTP GET - request. If clear, they are submitted using a POST request. This flag - is meaningful only when the ExportFormat flag is set; if ExportFormat - is clear, this flag must also be clear. - - - - - If set, the coordinates of the mouse click that caused the submitform - action are transmitted as part of the form data. The coordinate - values are relative to the upper-left corner of the field�s widget annotation - rectangle. - - - - - Meaningful only if the SubmitPDF flags are clear. If set, - field names and values are submitted as XML Forms Data Format . - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF file includes the contents - of all incremental updates to the underlying PDF document, - as contained in the Differences entry in the FDF dictionary. - If clear, the incremental updates are not included. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF file includes all markup - annotations in the underlying PDF document. - If clear, markup annotations are not included. - - - - - If set, the document is submitted as PDF, using the - MIME content type application/pdf (described in Internet RFC - 2045, Multipurpose Internet Mail Extensions (MIME), Part One: - Format of Internet Message Bodies; see the Bibliography). If set, all - other flags are ignored except GetMethod. - - - - - If set, any submitted field values representing dates are - converted to the standard format described. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and - ExportFormat flags are clear) and the IncludeAnnotations flag is - set. If set, it includes only those markup annotations whose T entry - matches the name of the current user, as determined - by the remote server to which the form is being submitted. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF excludes the F entry. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the F entry of the submitted FDF is a file - specification containing an embedded file stream representing the - PDF file from which the FDF is being submitted. - - - - - Represents the activation states for the 3D annotation. - - This class is used to set the activation states for the 3D annotation. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Internal variable to store the activation mode. - - - - - Internal variable to store the activation state. - - - - - Internal variable to store the deactivation mode. - - - - - Internal variable to store the deactivation state. - - - - - Internal variable reprsents whether to show toolbar or not. - - - - - Internal variable reprsents whether to show UI or not. - - - - - Internal variable to store dictionary. - - - - - Initializes the new instance of class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowUI = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowUI = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Initializes the instance. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the activation mode for the annotation. - - specifies the available modes for activating a 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the deactivation mode for the annotation. - - specifies the available modes for deactivating a 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose; - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Gets or sets the activation state for the annotation. - - specifies an activation state of the 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @”Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationState = Pdf3DActivationState.Live; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150),”Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationState = Pdf3DActivationState.Live - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - - Gets or sets a value indicating whether the toolbar should be displayed when the annotation is activated or not. - - If true, a toolbar should be displayed by default when the annotation is activated and given focus. If false, a toolbar should not be displayed by default. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the UI for managing the 3D artwork should be displayed when the annotation is activated. - - If true, the user interface should be made visible when the annotation is activated. If false, the user interface should not be made visible by default. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowUI = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowUI = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the lighting to apply for the 3D artwork. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear; - - - - - - Initializes a new instance of the class. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation() - animation.Type = PDF3DAnimationType.Linear - - - - - - Initializes a new instance of the class with specified 3D animation type. - - PDF 3D Animation Type. - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the animation. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Gets or sets the play count. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.PlayCount =10; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.PlayCount =10 - - - - - - Gets or sets the rendering opacity. - - A positive number specifying the time multiplier to be used when running the animation. A value greater than one shortens the time it takes to play the animation, or effectively speeds up the animation. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = 10f; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = 10f - - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the background appearance for 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Max value of color channel. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified color. - - The object specifying the background color for the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(color); - background.ApplyToEntireAnnotation = true; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground(color) - background.ApplyToEntireAnnotation = True - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the background color of the 3D artwork. - - The object specifying the background color for the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating how the background is applied. - - True if the background is applied to entire annotation, false if the background is applied to annotation's 3D view box only. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the base class for 3D annotation. - - - - - Internal variable to store stream. - - - - Name of the file. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Gets or sets the stream. - - The stream. - - - The name of the file. - - - - Gets the element. - - - - - - Represents the clipping portion of the 3D artwork for the purpose of showing artwork cross sections. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the center of the cutting plane. - - The list of float value specifies the cutting plane of the section. - A three element array specifying the center of rotation on the cutting plane in world space coordinates. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Center = new float[] { 40, 40, 40 }; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Center = New Single() { 40, 40, 40 } - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane color. - - specifies the cutting plane color of the 3D cross section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the intersection color. - - specifies the intersection color of the 3D cross section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the intersection of cutting plane with 3D artwork is visible. - - True if the intersection is visible , otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane opacity. - - A float value specifies the opacity of the annotation. - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the orientation of the cutting plane. - - A three-element array specifying the orientation of the cutting plane in world space, where each value represents the orientation in relation to the X, Y, and Z axes, respectively. - If the array has more than 3 elements, only the first 3 will be considered. Exactly one of the values must be null, indicating an initial state of the cutting plane that is perpendicular to the corresponding axis and clipping all geometry on the positive side of that axis. The other two values must be numbers indicating the rotation of the plane, in degrees, around their corresponding axes. The order in which these rotations are applied should match the order in which the values appear in the array. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - object[] orientation = crossSection.Orientation; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - object[] orientation = crossSection.Orientation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the collection of objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DCrossSectionCollection. - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Create a new Pdf3DCrossSectionCollection. - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Adds the specified value. - - The 3D cross section to be added. - The index value of the section to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Determines whether the specified cross section is in collection. - - The - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - bool isExist = view.CrossSections.Contains(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - Dim isExist As Boolean = view.CrossSections.Contains(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Searches and finds the index of the specified cross section from the collection. - - The . - - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Add the cross section - view.CrossSections.Add(crossSection); - //Get the index of specified crossSection - int index = view.CrossSections.IndexOf(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Add the cross section - view.CrossSections.Add(crossSection) - 'Get the index of specified crossSection - Dim index As Integer = view.CrossSections.IndexOf(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Inserts the cross section at specified index. - - The index. - The value. - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Insert the cross section at specified index - view.CrossSections.Insert(0,crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Insert the cross section at specified index - view.CrossSections.Insert(0,crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Removes the specified cross section form the collection. - - The cross section to be removed. - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CrossSections.Add(crossSection); - //Remove the cross section - view.CrossSections.Remove(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CrossSections.Add(crossSection) - 'Remove the cross section - view.CrossSections.Remove(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Gets or sets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Create a new Pdf3DCrossSectionCollection. - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - Pdf3DCrossSection crosssection =view.CrossSections[0]; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Create a new Pdf3DCrossSectionCollection. - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - Dim crosssection As Pdf3DCrossSection=view.CrossSections[0] - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Represents the lighting scheme for the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new Single[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified lighting style. - - The object specifies the style of the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.CAD); - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annot As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.CAD) - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annot) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the lighting style of the 3D artwork. - - The specifies the available styles for applying light to 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the particular areas of 3D artwork and the opacity and visibility with which individual nodes are displayed. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets a value indicating whether the node is visible or not. - - True if the node is visible , otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the node name. - - The name of the 3D node. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane opacity. - - A number indicating the opacity of the cutting plane using a standard additive blend mode. - - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the 3D transformation matrix. - - A 12-element 3D transformation matrix that specifies the position and orientation of this node, relative to its parent, in world coordinates. - If the array has more than 12 elements, only the first 12 will be considered. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents a collection of objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Adds the specified node into the collection. - - The - The index of the node to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Determines whether the node is in the collection. - - The node to search for. - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - bool exist = nodecollection.Contains(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - Dim exist As Boolean = nodecollection.Contains(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Searches and finds the index of the specified node from the collection. - - The node to be searched. - The index value of the node to be searched from the collection. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //Search the index of the node - int index = nodecollection.IndexOf(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'Search the index of the node - Dim index As Integer = nodecollection.IndexOf(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Inserts the specified index. - - The index. - The value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //insert the node - nodecollection.Insert(0, node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'insert the node - nodecollection.Insert(0, node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Removes the specified value. - - The value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //Remove the node - nodecollection.Remove(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'Remove the node - nodecollection.Remove(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Represents the mapping of 3D camera co-ordinates onto the target coordinate system of the annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store type. - - - - - Internal variable to store Clip Style. - - - - - Internal variable to store Ortho Scale mode. - - - - - Internal variable to store far Clip Distance. - - - - - Internal variable to store field Of View. - - - - - Internal variable to store near Clip Distance. - - - - - Internal variable to store scaling. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with specified projection type. - - The Pdf3D Projection Type. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the projection. - - It specifies the projection type of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection ClipStyle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the scale mode for orthographic projections. - - It specifies the scale mode of the . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the far clipping distance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the field of view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the near clipping distance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection scaling. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the rendering mode of the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store style. - - - - - Internal variable to store face Color. - - - - - Internal variable to store auxilary Color. - - - - - Internal variable to store opacity. - - - - - Internal variable to store crease Value. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified rendering style. - - The object specifies the rendering style of the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.Opacity = 100f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.Opacity = 100.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the projection. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the auxiliary color. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the face color. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the crease value. - - The crease value is specified in degrees, from 0 to 360. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the rendering opacity. - - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.Opacity = 100f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.Opacity = 100.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents a attributes to be applied to the virtual camera associated with a 3D annotation. - - This class is used to represents the 3D view for . Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Internal variable to store 3d Background. - - - - - Internal variable to store 3d Cross Section Collection. - - - - - Internal variable to store centre to World Matrix. - - - - - Internal variable to store 3d Lighting. - - - - - Internal variable to store 3d Node Collection. - - - - - Internal variable to store 3d Projection. - - - - - Internal variable to store 3d Render mode. - - - - - Internal variable to store reset Nodes State. - - - - - Internal variable to store centre of orbit. - - - - - Internal variable to store external name. - - - - - Internal variable to store internal name. - - - - - Internal variable to store view node name. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the background for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the 3D transformation matrix. - - A 12-element 3D transformation matrix that specifies a position and orientation of the camera in world coordinates. - If the array has more than 12 elements, only the first 12 will be considered. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color =new PdfColor(Color.Blue); - float[] matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -300.669f, -112.432f, 45.6829f }; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = matrix; - view.Background = background; - view.CenterOfOrbit = 10f; - view.ExternalName = "Near View"; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = New PdfColor(Color.Blue) - Dim matrix() As Single = { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -300.669f, -112.432f, 45.6829f } - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = matrix - view.Background = background - view.CenterOfOrbit = 10f - view.ExternalName = "Near View" - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the center of orbit for 3D artwork. - - A non-negative number indicating a distance in the camera coordinate system along the z axis to the center of orbit for this view. - If this value is negative, the viewer application must determine the center of orbit. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CenterOfOrbit = 10f; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As Pdf3DAnnotation = New Pdf3DAnnotation(New RectangleF(10, 300, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As Pdf3DView = New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CenterOfOrbit = 10f - 'Adds a pdf3d view - annotation.Views.Add(view) - 'Draw a annotation into the new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets the list of cross sections for this view. - - A list of PDF3DCrossSection objects available for this view. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the view's external name. - - The external name of the view, suitable for presentation in a user interface. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.ExternalName = "Near View"; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ExternalName = "Near View" - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the view's internal name. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.InternalName = Guid.NewGuid().ToString("N"); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.InternalName = Guid.NewGuid().ToString("N") - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the lighting scheme for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets the list of 3D nodes for this view. - - A list of PDF3DNode objects available for this view. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.ResetNodesState = true; - Pdf3DNodeCollection nodes = view.Nodes; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ResetNodesState = True - Dim nodes As Pdf3DNodeCollection = view.Nodes - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Perspective); - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Add the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Perspective) - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Add the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the rendering mode for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10f - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether nodes specified in the Nodes collection are returned to their original states (as specified in the 3D artwork) before applying transformation matrices and opacity settings specified in the node dictionaries. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.ResetNodesState = true; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ResetNodesState = True - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the name of the view node. - - The view node in the content stream defines all the properties for viewing the 3D artwork. If both ViewNodeName and CameraToWorldMatrix are specified, then ViewNodeName takes precedence. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - string name = view.ViewNodeName; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - Dim name As String = view.ViewNodeName - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets the dictionary. - - The pdf3d view dictionary. - - - - Gets the element. - - - - - - Represents a collection of Pdf3DView objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Adds the specified 3d view into collection. - - The index of the added to the collection. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Determines whether the specified view is in collection. - - The . - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - //check the specified view exists in the list or not - bool exist=annotation.Views.Contains(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - 'check the specified view exists in the list or not - Dim exist As Boolean=annotation.Views.Contains(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - search and find the Pdf3DView object. - - - Pdf3DView - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - //Get the index of specified view - int index = annotation.Views.IndexOf(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - 'Get the index of specified view - Dim index As Integer = annotation.Views.IndexOf(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Inserts the view at specified index. - - The index where to insert the element. - The view to be inserted in the collection.. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Insert the view at specified index - annotation.Views.Insert(1,defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Insert the view at specified index - annotation.Views.Insert(1,defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Removes the specified value from the collection. - - The Pdf3DView object. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - //Remove the specified view - annotation.Views.Remove(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - 'Remove the specified view - annotation.Views.Remove(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the at the specified index. - - Pdf3DView - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix= new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - Pdf3DView view=annotation.Views[0] as Pdf3DView; - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix= New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - Dim view As Pdf3DView=TryCast(annotation.Views(0), Pdf3DView) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Specifies an activation state of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @”Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Set the activation to the annotation. - annotation.Activation = activation; - annotation.Activation.ActivationState = Pdf3DActivationState.Live; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150),"Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Set the activation to the annotation. - annotation.Activation = activation - annotation.Activation.ActivationState = Pdf3DActivationState.Live - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the state in which the artwork has been read and a run-time instance of - the artwork has been created. In this state, it can be rendered but script-driven - real-time modifications (that is, animations) are disabled. - - - - - Represents that the artwork is instantiated, and it is being modified in real time to - achieve some animation effect. In the case of key frame animation, the artwork is - live while it is playing and then reverts to an instantiated state when playing - completes or is stopped. - - - - - Specifies the available modes for activating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Set the activation to the annotation. - annotation.Activation = activation; - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Set the activation to the annotation. - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the annotation should be activated as soon as the page containing - the annotation is opened. - - - - - Represents that the annotation should be activated as soon as any part of the page - containing the annotation becomes visible. - - - - - Represents that the annotation should remain inactive until explicitly activated - by a script or user action. - - - - - Specifies the available modes for deactivating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose; - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the annotation should be deactivated as soon as the page is closed. - - - - - Represents that the annotation should be deactivated as soon as the page containing - the annotation becomes invisible. - - - - - Represents that the annotation should remain active until explicitly deactivated by a - script or user action. - - - - - Specifies the available states upon deactivating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.DeactivationState = Pdf3DDeactivationState.Uninstantiated; - //Set the activation to the annotation. - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.DeactivationState = Pdf3DDeactivationState.Uninstantiated - //Set the activation to the annotation. - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents the initial state of the artwork before it has been used in any way. - - - - - Represents that the state in which the artwork has been read and a run-time instance of - the artwork has been created. In this state, it can be rendered but script-driven - real-time modifications (that is, animations) are disabled. - - - - - Represents that the artwork is instantiated, and it is being modified in real time to - achieve some animation effect. In the case of key frame animation, the artwork is - live while it is playing and then reverts to an instantiated state when playing - completes or is stopped. - - - - - Specifies the available styles for applying light to 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create pdfFont, pdfFont style and brush. - Font font = new Font("Calibri", 11, FontStyle.Regular); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - PdfBrush brush = new PdfSolidBrush(Color.DarkBlue); - //Create 3D activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.PageVisible; - activation.ShowToolbar = true; - pdf3dAnnotation.Activation = activation; - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Set the 3D background. - Pdf3DBackground background=new Pdf3DBackground(); - background.Color=new PdfColor(Color.Blue); - defaultView.Background = background; - //Set the projection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Orthographic); - defaultView.Projection = projection; - //Set the render mode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - defaultView.RenderMode = renderMode; - //Set the lighting scheme. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.Night); - defaultView.LightingScheme = lighting; - //Add the view. - pdf3dAnnotation.Views.Add(defaultView); - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, new PointF(40, 40)); - //Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, new PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)); - //Adds annotation to page. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create pdfFont, pdfFont style and brush. - Dim font As New Font("Calibri", 11, FontStyle.Regular) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - Dim brush As PdfBrush = New PdfSolidBrush(Color.DarkBlue) - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.PageVisible - activation.ShowToolbar = True - pdf3dAnnotation.Activation = activation - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Set the 3D background. - Dim background As New Pdf3DBackground() - background.Color = New PdfColor(Color.Blue) - defaultView.Background = background - 'Set the projection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Orthographic) - defaultView.Projection = projection - 'Set the render mode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - defaultView.RenderMode = renderMode - 'Set the lighting scheme. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.Night) - defaultView.LightingScheme = lighting - 'Add the view. - pdf3dAnnotation.Views.Add(defaultView) - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, New PointF(40, 40)) - 'Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, New PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - - - - The Lights as specified in the 3D artwork. - - - - - The lighting specified in the 3D artwork is ignored. - - - - - Three blue-grey infinite lights. - - - - - Three light-grey infinite lights. - - - - - One yellow, one aqua, and one blue infinite light. - - - - - Three grey infinite lights. - - - - - One red, one green, and one blue infinite light. - - - - - Three blue infinite lights. - - - - - Three red infinite lights. - - - - - Six grey infinite lights aligned with the major axes. - - - - - Three grey infinite lights and one light attached to the camera. - - - - - Single infinite light attached to the camera. - - - - - Specifies the available clipping style of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() {-0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the explicit Clipping style. - - - - - Represents the automatic Clipping style. - - - - - Specifies the available Ortho projection scaling mode of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Scale to fit the width of the annotation. - - - - - Scale to fit the height of the annotation. - - - - - Scale to fit the lesser of width or height of the annotation. - - - - - Scale to fit the greater of width or height of the annotation. - - - - - No scaling should occur due to binding. - - - - - Specifies the available projection type of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents Orthographic projection - - - - - Represents Perspective projection. - - - - - Specifies the available rendering style of the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10f - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Displays textured and lit geometric shapes. In the case of artwork - that conforms to the Universal 3D File Format specification, these - shapes are triangles. - - - - - Displays textured and lit geometric shapes (triangles) with single - color edges on top of them. - - - - - Displays textured and lit geometric shapes (triangles) with an added - level of transparency. - - - - - Displays textured and lit geometric shapes (triangles) with an added - level of transparency, with single color opaque edges on top of it. - - - - - Displays the bounding box edges of each node, aligned with the axes - of the local coordinate space for that node. - - - - - Displays bounding boxes faces of each node, aligned with the axes of - the local coordinate space for that node, with an added level of transparency. - - - - - Displays bounding boxes edges and faces of each node, aligned with the axes of - the local coordinate space for that node, with an added level of transparency. - - - - - Displays only edges in a single color. - - - - - Displays only edges, though interpolates their color between their two vertices - and applies lighting. - - - - - Displays edges in a single color, though removes back-facing and obscured edges. - - - - - Displays only vertices in a single color. - - - - - Displays only vertices, though uses their vertex color and applies lighting. - - - - - Displays silhouette edges with surfaces, removes obscured lines. - - - - - Displays silhouette edges with lit and textured surfaces, removes obscured lines. - - - - - Displays silhouette edges with lit and textured surfaces and an additional emissive - term to remove poorly lit areas of the artwork. - - - - - Specifies the available animation style for rendering the 3D artwork. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Represents that the Key frame animations should not be driven directly by - the viewer application. This value is used by documents that are intended - to drive animations through an alternate means, such as JavaScript. - - - - - Represents that the Key frame animations are driven linearly from beginning to end. - This animation style results in a repetitive play through of the animation, - such as in a walking motion. - - - - - Represents that the Key frame animations should oscillate along their time range. - This animation style results in a back-and-forth playing of the animation, - such as exploding or collapsing parts. - - - - - Represents the annotation with associated action. - - Class - - - - Represents base class for link annotations with associated action. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Represents the base class for the link annotations. - - Class - - - - Represents the base class for annotation objects. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Color of the annotation. - - - - - Border of the annotation. - - - - - Bounds of the annotation. - - - - - Parent page of the annotation. - - - - - Text of the annotation. - - - - - Author of the annotation. - - - - - Subject of the annotation. - - - - - ModifiedDate of the annotation. - - - - - NAnootation's style flags. - - - - - Internal variable to store dictionary. - - - - - To specifying the Inner color with which to fill the annotation - - - - - Opacity of the annotation. - - - - - Indicates annotation is flatten or not. - - - - - Indicate popups annotation is flatten or not. - - - - - Annotation's appearance. - - - - - Internal field to check whether any annotation is modified. - - - - - Internal field used to indicate to set popup annotation. - - - - - Internal field for annotation document layer - - - - - Specifies whether to set the default appearance for the annotation or not. - - - - - - Creates the Constructors. - - - - - Creates new annotation object with the specified PDF page and text. - - The page where annotation to be added. - The text. - - - - Creates new annotation object with the specified bounds. - - Bounds of the annotation. - - - - Initializes a new instance of the class. - - The annotation's dictionary. - The document cross table. - The annotation's bounds. - - - - Sets related page of the annotation. - - The page. - - - - Removes annotation from page. - - Annotation to be removed. - - - - Sets the location. - - The location. - - - - Sets the proper name to the field. - - The annotation's text. - - - - Sets the size. - - The size. - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Flatten annotation author field - - the annotation's author text - the annotation's subject text - the annotation's bounds - the annotation's background color brush - annotation's brush - annotation's page - height - appearance of an annotation's border - - - - Flatten annotation subject field - - the annotation's subject text - the annotation's bounds - annotation's page - - - - Flatten the Popup annotation - - - - - Flatten the Popup window - - annotation's page - the annotation's color - the annotation's bounds - appearance of an annotation's border - the annotation's author text - the annotation's subject text - the annotation's text - - - - Save graphics state - - - annotation's blendmode - - - - Obtain Document layer from annotation - - - - - - Gets or sets the annotation color. - - The which draws the outline of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the color. - soundAnnotation.Color = new PdfColor(Color.Red); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30); - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the color. - soundAnnotation.Color = New PdfColor(Color.Red) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or Sets the Opacity of the annotation. - - - - - Get or set the inner color of the annotation. Default color is transparent - - - - - Gets or sets annotation's border properties like width, horizontal radius etc. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the border to sound annotation. - soundAnnotation.Border = new PdfAnnotationBorder(5); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the border to sound annotation. - soundAnnotation.Border = New PdfAnnotationBorder(5) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets annotation's bounds in the PDF page. - - The bounds of the annotation. - If this property is not set, the bounds are calculated automatically - based on Location property and content of annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the bounds to sound annotation. - soundAnnotation.Bounds=new RectangleF(50, 100, 30, 30); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the bounds to sound annotation. - soundAnnotation.Bounds=New RectangleF(50, 100, 30, 30) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the location of the annotation. - - The position of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the location to sound annotation. - soundAnnotation.Location=new PointF(50, 100); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the location to sound annotation. - soundAnnotation.Location=New PointF(50, 100) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the size of the annotation. - - The size of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the size to sound annotation. - soundAnnotation.Size=new SizeF(50, 50); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the size to sound annotation. - soundAnnotation.Size=New SizeF(50, 50) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets a page of the annotation. Read-Only. - - The where the annotation is to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Gets the page. - PdfPage pdfPage=soundAnnotation.Page; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Gets the page. - Dim pdfPage As PdfPage =soundAnnotation.Page - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets a loaded page of the annotation. - - - - - Gets or sets content of the annotation. - - The string value specifies the text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the text to sound annotation. - soundAnnotation.Text="Sound Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the text to sound annotation. - soundAnnotation.Text="Sound Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or Sets the Author of the annotation. - - - - - Gets or Sets the Subject of the annotation. - - - - - Gets or Sets the ModifiedDate of the annotation. - - - - - Gets or sets the annotation flags. - - The Specifies the enumeration of the annotation flags. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the annotation flags to sound annotation. - soundAnnotation.AnnotationFlags = PdfAnnotationFlags.Print; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the annotation flags to sound annotation. - soundAnnotation.AnnotationFlags = PdfAnnotationFlags.Print - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the dictionary. - - The dictionary. - - - - Gets or sets the boolean flag to flatten the annotations. - - - - - Get or set flatten the Popups annotations - - - - - Gets or sets the tag for annotation - - - - - Gets or sets appearance of the annotation. - - - - - Specifies if any annotation is changed since loading that would affect the appearance. - - - - - Get or set Popup annotations - - - - - Get or set the PdfLayer to the annotation - - - - - Gets the element. - - - - - - Highlight Mode of the annotation. - - - - - Initializes new instance of class. - - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - - Initializes annotation object. - - - - - Gets Hightlight Mode of the annotation. - - - - - Gets or sets the highlight mode of the link annotation. - - The enumeration value which sets the highlight mode. - - - - Internal variable to store annotation's action. - - - - - Initializes a new instance of the class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, "input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified bounds and action to be performed. - - The bounds specifies the location of the drawn text. - The specifies an action to be executed when the link is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF bounds = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(bounds, "Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets the action for the link annotation. - - The action to be executed when the link is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified bounds and action. - - The bounds of the annotation. - The PDF action that can be triggered with different actions. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF actionAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Set the go to action - PdfGoToAction gotoAction = new PdfGoToAction(page); - //Set destination location. - gotoAction.Destination = new PdfDestination(page, new PointF(0, 100)); - //Create Action annotation. - PdfActionAnnotation actionAnnotation = new PdfActionAnnotation(actionAnnotationBounds, gotoAction); - //Set the text and font. - actionAnnotation.Color = new PdfColor(Color.Red); - //Add this annotation to a new page. - page.Annotations.Add(actionAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim actionAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Set the go to action. - Dim gotoAction As New PdfGoToAction(page) - 'Set destination location - gotoAction.Destination = New PdfDestination(page, New PointF(0, 100)) - 'Create Action annotation. - Dim actionAnnotation As New PdfActionAnnotation(actionAnnotationBounds, gotoAction) - 'Set the text and font. - actionAnnotation.Color = New PdfColor(Color.Red) - 'Add this annotation to a new page. - page.Annotations.Add(actionAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - Class. - - - - Saves annotation object. - - - - - Represents the states of an annotation's appearance. - - - - - Internal variable to store template for active (On) state. - - - - - Internal variable to store template for inactive (Off) state. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store dictionary name of checked state. - - - - - Internal variable to store dictionary name of unchecked state. - - - - - Initializes a new instance of the class. - - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the active state template. - - The object specifies an active state template. - - - - Gets or sets the inactive state. - - The object specifies an inactive state template. - - - - Gets or sets the mapping name of the active state. - - String specifies the mapping name of the active state. - - - - Gets or sets the mapping name of the inactive state. - - String specifies the mapping name of the inactive state. - - - - Gets the element. - - - - - - Represents the appearance of an annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Normal appearance. - - - - - Mouse hover appearance. - - - - - Mouse pressed appearance. - - - - - Internal variable to store annotation. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The object specifies the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the normal template. - - Normal appearance template. - - - - Gets the pressed template. - - PDF Template - - - - Gets or sets PdfTmplate object which applied to annotation in normal state. - - The specifies the PDF template object. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets object which applied to the annotation on hovering the mouse. - - The specifies the PDF template object when mouse hover. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.MouseHover.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.MouseHover.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annot.Appearance = New PdfAppearance(annotation) - annot.Appearance.MouseHover.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annot.Appearance.MouseHover.Draw(page, New PointF(annot.Location.X, annot.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets object which applied to an annotation when mouse button is pressed. - - The specifies the PDF template object when Pressed. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Pressed.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Pressed.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Pressed.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Pressed.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the element. - - - - - - Represents extended appearance of the annotation. It has two states such as On state and Off state. - - - - - Internal variable to store normal appearance. - - - - - Internal variable to store appearance for pressed state. - - - - - Internal variable to store appearance for state when mouse is hovered. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets the normal appearance of the annotation. - - The object specifies the normal appearance of the annotation. - - - - Gets the appearance when mouse is hovered. - - The object specifies the annotation appearance when the mouse is hovered on it. - - - - Gets the pressed state annotation. - - The appearance in pressed state. - - - - Gets the element. - - - - - - Represents a PDF circle annotation - - - - - Used to represent the border style of the circle annotation. - - - - - Initialise the new instance of the circle annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - - Initialise the new instance of the circle annotation with bounds. - - Used to represent the bounds of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or set the border style of the circle annotaion. - - - - - Represents a PDF ellipse annotation - - - - - Initialise the new instance of the ellipse annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Represents a Polygon annotation. - - - - - Used to represent the border style of the circle annotation. - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - To specifying the Leader Line Extension size - - - - - Initialise the new instance of the polygon annotation with bounds and text. - - Used to represent the poloygon points - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - - - Get or sets the border style of the square annotaion. - - - - - Gets or sets Leading Line Extension, Default value is 0 - - - - - Represents a PolyLine annotation. - - - - - To Specify the Border - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - To specifying the Leader Line Extension size - - - - - An array of two names specifying the line ending styles - - - - - Indicates PdfLine Begin style - - - - - Indicates PdfLine End style - - - - - Initialise the new instance of the poly line annotation with bounds and text. - - Used to represent the poloygon points - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or sets the border style of the square annotaion. - - - - - Gets or sets Leading Line Extension, Defacult value is 0 - - - - - Gets or sets the style used for the beginning of the line, Default value is None - - - - - Gets or sets the style used for the ending of the line, Default value is None - - - - - Represents a PDF rectangle annotation - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Rectangle annotation. - RectangleF rectannot = new RectangleF(0, 30, 100, 50); - PdfRectangleAnnotation rectangleannotation = new PdfRectangleAnnotation(rectannot, "RectangleAnnotation"); - rectangleannotation.InnerColor = new PdfColor(Color.Red); - rectangleannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Rectangle Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page - page.Annotations.Add(rectangleannotation); - //Save the documnet. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Rectangle annotation. - Dim rectannot As RectangleF = New RectangleF(0, 30, 100, 50) - Dim rectangleannotation As PdfRectangleAnnotation = New PdfRectangleAnnotation(rectannot, "RectangleAnnotation") - rectangleannotation.InnerColor = New PdfColor(Color.Red) - rectangleannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Rectangle Annotation", font, brush, New PointF(0, 0)) - 'Add the annotation to the page - page.Annotations.Add(rectangleannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Represents a PDF square annotation - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80)); - squareannotation.Text = "SquareAnnotation"; - squareannotation.InnerColor = new PdfColor(Color.Red); - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80)) - squareannotation.Text = "SquareAnnotation" - squareannotation.InnerColor = New PdfColor(Color.Red) - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Used to represent the border style of the square annotation. - - - - - Initialise the new instance of the square annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80),"SquareAnnotation"); - squareannotation.InnerColor = new PdfColor(Color.Red); - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80),"SquareAnnotation") - squareannotation.InnerColor = New PdfColor(Color.Red) - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or set the border style of the square annotaion. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80)); - squareannotation.Text = "SquareAnnotation"; - squareannotation.InnerColor = new PdfColor(Color.Red); - LineBorder border = new LineBorder(); - border.BorderStyle = PdfBorderStyle.Solid; - border.BorderWidth = 2; - squareannotation.Border = border; - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80)) - squareannotation.Text = "SquareAnnotation" - squareannotation.InnerColor = New PdfColor(Color.Red) - Dim border As LineBorder = New LineBorder() - border.BorderStyle = PdfBorderStyle.Solid - border.BorderWidth = 2 - squareannotation.Border = border - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initialise the new instance of the rectangle annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Rectangle annotation. - RectangleF rectannot = new RectangleF(0, 30, 100, 50); - PdfRectangleAnnotation rectangleannotation = new PdfRectangleAnnotation(rectannot, "RectangleAnnotation"); - rectangleannotation.InnerColor = new PdfColor(Color.Red); - rectangleannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Rectangle Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page - page.Annotations.Add(rectangleannotation); - //Save the documnet. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Rectangle annotation. - Dim rectannot As RectangleF = New RectangleF(0, 30, 100, 50) - Dim rectangleannotation As PdfRectangleAnnotation = New PdfRectangleAnnotation(rectannot, "RectangleAnnotation") - rectangleannotation.InnerColor = New PdfColor(Color.Red) - rectangleannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Rectangle Annotation", font, brush, New PointF(0, 0)) - 'Add the annotation to the page - page.Annotations.Add(rectangleannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Represents the XFA Button Field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the abstract calss of the XFA form field's style parameters. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents abstract class of the field in the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Convet XFA text alignment to PdfTextAlignment. - - - - - - - Gets or sets the name. - - The name of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set field name. - field.Name = "firstName"; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set field name. - field.Name = "firstName" - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the margins of the field. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set margin. - field.Margins.All = 2; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set margin. - field.Margins.All = 2 - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the visibility of the field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Set Margins, font, tooltip and alignments. - - - - - - Get the size of the field. - - - - - - Get the fields rotation angle. - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the Border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the tool tip - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the readonly - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set readonly. - textBoxField.ReadOnly = true; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set readonly. - textBoxField.ReadOnly = True - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the fore color of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the horizontal alignment of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the class. - - Name of the field - Width and height of the field - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the class. - - Name of the field - Field width - Field height - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", 70, 20); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", 70, 20) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save button field - - - - - - - Save the acroform button field - - - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", 70, 20); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Clone the button field. - PdfXfaButtonField clonedButton = buttonField.Clone() as PdfXfaButtonField; - clonedButton.Content = "Submit"; - mainForm.Fields.Add(clonedButton); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", 70, 20) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Clone the button field. - Dim clonedButton As PdfXfaButtonField = TryCast(buttonField.Clone(), PdfXfaButtonField) - clonedButton.Content = "Submit" - mainForm.Fields.Add(clonedButton) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the hightlight mode of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the mouse rollover text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the mouse down text of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the content of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the Caption of XFA fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - save the fields caption text - - - - - - - - - Measure the caption string - - - - - - Measure the caption string - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - PdfXfaTextBoxField field1 = new PdfXfaTextBoxField("TextBox1", new SizeF(200, 20)); - //Clone the caption. - field1.Caption = caption.Clone() as PdfXfaCaption; - mainForm.Fields.Add(field1); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - Dim field1 As New PdfXfaTextBoxField("TextBox1", New SizeF(200, 20)) - 'Clone the caption. - field1.Caption = TryCast(caption.Clone(), PdfXfaCaption) - mainForm.Fields.Add(field1) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Read the existing node - - - - - - save the existing node - - - - - - set the new attribute for existing node - - - - - - - - convert string to point value - - - - - - - read the font informations - - - - - - Gets or sets the caption text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the horizontal alignment of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the position of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the forecolor of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the width of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the border of the XFA fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of class. - - Border color. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Get the border brush - - - - - - - Get the border pen - - - - - - read the node - - - - - - save the existing node - - - - - - create a new edge node - - - - - - - Set the new attribute for existing node - - - - - - - - Gets or sets the fill color of the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets handedness of a line or edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the visibility of the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the left edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.LeftEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.LeftEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the right edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.RightEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.RightEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the top edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the bottom edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.BottomEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.BottomEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border width - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the Edge of the XFA border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - read the existing node - - - - - - - Save the existing node - - - - - - Set new attribute - - - - - - - - clone the object - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the visibility - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the thickness of the edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the shape of the corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Specifies whether the corner appears convex or is inverted and appears concave. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the visibility - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the thickness - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the radius of the corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA solid brush. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaSolidBrush(Color.Red); - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize the instaces of the class. - - The fill color of the brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaSolidBrush(Color.Red); - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the solid brush color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaSolidBrush brush= new PdfXfaSolidBrush(Color.Red); - //Set the color. - brush.Color = Color.Green; - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaSolidBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the color. - brush.Color = Color.Green - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA linear brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - iniatilaize the new instance of the class. - - The start color of the linear brush. - The end color of the linear brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - iniatilaize the new instance of the class. - - The start color of the linear brush. - The end color of the linear brush. - The type of the linar brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow, PdfXfaLinearType.RightToLeft); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow, PdfXfaLinearType.RightToLeft) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the starting color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the ending color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the direction of the color transition - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA Radial brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - initialize the new instance of the class. - - The start color of the radial brush. - The end color of the radial brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - initialize the new instance of the class. - - The start color of the radial brush. - The end color of the radial brush. - The radial type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow, PdfXfaRadialType.CenterToEdge); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow, PdfXfaRadialType.CenterToEdge) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the starting color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the ending color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set the direction of the color transition - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The number of degrees by which the field should be rotated clockwise when displayed or printed. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Indicates 0 degree rotation angle. - - - - - Indicates 90 degree rotation angle. - - - - - Indicates 180 degree rotation angle. - - - - - Indicates 270 degree rotation angle. - - - - - Specifies the available type for a XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The content of the element is flowed in a direction proceeding from left to right. - - - - - The content of the element is flowed in a direction proceeding from top to bottom. - - - - - Specifies the corner shapes - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Squared corner - - - - - Rounded corner - - - - - Specifies the direction of the color transition. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The start color appears at the left side of the object and transitions into the end color at the right side. - - - - - The start color appears at the right side of the object and transitions into the end color at the left side. - - - - - The start color appears at the bottom side of the object and transitions into the end color at the top side. - - - - - The start color appears at the top side of the object and transitions into the end color at the bottom side. - - - - - Specifies the direction of the color transition. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The start color appears at the center of the object and transitions into the end color at the outer edge. - - - - - The start color appears at the outer edge of the object and transitions into the end color at the center. - - - - - Represents the visibility of the XFA field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Participate in interaction, layout, and rendering. - - - - - Participate in interaction but not layout or rendering - - - - - Do not participate in interaction, layout, or rendering - - - - - Participate in interaction and layout but not rendering. - - - - - Specifies the caption text position of fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Left side of the field - - - - - Right side of the field - - - - - Top of the field - - - - - Bottom of the field - - - - - Specifies Horizontal alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the element is aligned to Left. - - - - - Specifies the element is aligned to Center. - - - - - Specifies the element is aligned to Right. - - - - - Specifies the element is aligned with Justify - - - - - Spread-justify all lines to fill the available region. - - - - - Specifies the Vertical alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the element is aligned to Top. - - - - - Specifies the element is aligned to Middle. - - - - - Specifies the element is aligned to Bottom. - - - - - Represents the Appearance of the circle field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the circle shape - - - - - Represents the ellipse shape - - - - - Represents the arc shape - - - - - Specifies the date pattern. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(200, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date; - //Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(200, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date - 'Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Appears the Default value eg: Nov 13, 2015 - - - - - eg:11/13/2015. - - - - - eg: Nov 13, 2015. - - - - - November 13,2015. - - - - - Thursday, November 12, 2015. - - - - - 11/13/15. - - - - - Nov 13,2015. - - - - - November 13,2015. - - - - - Friday, November 13, 2015. - - - - - 11/13/2015. - - - - - 11/13/15. - - - - - 11/13/2015. - - - - - 15/11/13. - - - - - 2015-11-13. - - - - - 13-Nov-15. - - - - - Friday, November 13, 2015 - - - - - November 13,15. - - - - - Friday, 13 November, 2015. - - - - - 13 November, 2015. - - - - - November 2015. - - - - - Represents the time patterns - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - default value - - - - - short - - - - - Medium - - - - - Long - - - - - full - - - - - eg:1:30 PM - - - - - eg:1:30:30 PM - - - - - eg:1:30 PM GMT+05:30 - - - - - eg:01:30:30 PM - - - - - eg:13:30:30 - - - - - eg:13:30:30 - - - - - Represents the date and time patterns - - - - - default date time pattern - - - - - short - - - - - Medium - - - - - Loing - - - - - full - - - - - Represent the datetime field format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents date only - - - - - Represents time onluy - - - - - Represents date and times - - - - - Represents the XFA checkBox style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - default checked state. - - - - - A check mark is used for the checked state. - - - - - A circle is used for the checked state. - - - - - A cross is used for the checked state. - - - - - A diamond symbol is used for the checked state. - - - - - A square is used for the checked state. - - - - - A star is used for the checked state. - - - - - Represents the XFA checkBox shape - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Squred checkBox - - - - - Rounded checkBox - - - - - Represent XFA border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - No Border - - - - - A solid rectangle surrounding. - - - - - A dashed rectangle surrounding. - - - - - A dotted rectangle surrounding. - - - - - A dashed dotted rectangle surrounding. - - - - - A dashed dotted dotted rectangle surrounding. - - - - - A lowered rectangle surrounding. - - - - - Raised rectangle surrounding. - - - - - Etched rectangle surrounding. - - - - - Embossed rectangle surrounding. - - - - - Represents the handness of the XFA border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Position the displayed line immediately to the right of the underlying vector. - - - - - Position the displayed line immediately to the left of the underlying vector. - - - - - Center the displayed line on the underlying vector. - - - - - Represents the Pdf XFA numeric field types - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set field type. - numericField.FieldType = PdfXfaNumericType.Integer; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set field type. - numericField.FieldType = PdfXfaNumericType.Integer - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the floating values - - - - - Represents the decimal values - - - - - Represents the integer values - - - - - Represents the currency values - - - - - Represents the persentage values - - - - - Enumerator that implements XFA page orientations. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Portrait orientation. - - - - - Landscape orientation. - - - - - Represents the XFA document type - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Preserved the XFA fields only. - - - - - Preserved both the XFA and Acroform fields. - - - - - Represents the text box type - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("Address", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "Address"; - //Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline; - //Set the tool tip. - textBoxField.ToolTip = "Address"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("Address", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "Address" - 'Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline - 'Set the tool tip. - textBoxField.ToolTip = "Address" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the single line of text. - - - - - Specifies the multiline of text. - - - - - Specifies the password character. - - - - - Specifies comb of characters. - - - - - Represents checkbox field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the check box field. - The size of the check box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the check box field - The size of the check box field - The checked state of the check box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30), true); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30), True) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the check box field. - Check box field width. - Check box field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", 100, 30); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", 100, 30) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the check box field. - Check box field width. - Check box field height. - Checked state of the field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", 100, 30, true); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", 100, 30, True) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save checkbox. - - - - - - Save acrform checkbox field. - - - - - - - - - Get the acroform checkbox style. - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - //Clone the check box field. - xfaForm.Fields.Add(field.Clone() as PdfXfaCheckBoxField); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - 'Clone the check box field. - xfaForm.Fields.Add(TryCast(field.Clone(), PdfXfaCheckBoxField)) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets a value indicating whether this is checked or not - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the checked Style of the check box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the appearance of the check box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the check box size - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the circle of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field - size of the field - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - width of the field. - height of the field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", 100, 100); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", 100, 100) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the circle field - - - - - - Draw the circle to PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - //Clone the circle field. - xfaForm.Fields.Add(circle.Clone() as PdfXfaCircleField); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - 'Clone the circle field. - xfaForm.Fields.Add(TryCast(circle.Clone() , PdfXfaCircleField)) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border of the circle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the tool tip of the circle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the start angle of the arc - - The start angle only support when the circle is an arc type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the sweep angle of the Arc - - The sweep angle only support when the circle is an arc type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the apperance of the circle field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Set rotation. - circle.Rotate = PdfXfaRotateAngle.RotateAngle270; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Set rotation. - circle.Rotate = PdfXfaRotateAngle.RotateAngle270 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Set the width. - circle.Width = 200; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Set the width. - circle.Width = 200 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Set height. - circle.Height = 200; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Set height. - circle.Height = 200 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the combo box field of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - The name of the field. - The size of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - Initialize a new instance of the class. - - The name of the field. - Width of the field. - Height of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", 100, 30); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", 100, 30) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - Save combo box field. - - - - - - Save the acroform combo box field. - - - - - - - - - set the size of the Choice list field - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - //Clone the combo box field. - form.Fields.Add(field.Clone() as PdfXfaComboBoxField); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - 'Clone the combo box field. - xfaForm.Fields.Add( TryCast(field.Clone(), PdfXfaComboBoxField)) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - - - - - - - Represents the date time field of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - Size of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - Width of the field. - Height of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", 100, 30); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", 100, 30) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the Date time field. - - - - - - Save the acroform text box field. - - - - - - - - - Set size - - - - - set the date Pattern - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - //Clone the date time field. - xfaForm.Fields.Add(field.Clone() as PdfXfaDateTimeField); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - 'Clone the date time field. - xfaForm.Fields.Add(TryCast(field.Clone(), PdfXfaDateTimeField)) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set paddings. - field.Padding.All = 2; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set paddings. - field.Padding.All = 2 - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "Date"; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "Date" - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or Sets the value of date time field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the date format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(200, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date; - //Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(200, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date - 'Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the date time field format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the time patterns - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the validations - - The validations doesn't supports to the dateTime type - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Set validation. - field.RequireValidation = true; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Set validation. - field.RequireValidation = True - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The Syncfusion.Pdf.Xfa namespace contains classes used to create or fill the XFA form fields. - - - - - Represents the XFA document - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save XFA form. - - - - - - Save the document - - The output file name. - The XFA form type. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the document - - The stream where to save the document. - The type of the XFA form. - The HTTP response stream object. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - MemoryStream stream = new MemoryStream(); - //Save the document - document.Save(stream, PdfXfaType.Dynamic, Response); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - Dim stream As MemoryStream = New MemoryStream() - 'Save the document - document.Save(stream, PdfXfaType.Dynamic, Response) - 'Close the document - document.Close() - - - - - - Save the document - - The name of the document. - The type of the XFA form. - The HTTP response stream object. - The type of the reading document. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic, Response, HttpReadType.Open); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic, Response, HttpReadType.Open) - 'Close the document - document.Close() - - - - - - save the document - - The output stream. - The xfa form type. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - MemoryStream stream = new MemoryStream(); - //Save the document - document.Save(stream, PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - Dim stream As MemoryStream = New MemoryStream() - 'Save the document - document.Save(stream, PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Close the document - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clone - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Clone the document. - PdfXfaDocument cDocument = document.Clone() as PdfXfaDocument; - //Save the document - cDocument.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - cDocument.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Clone the document. - PdfXfaDocument cDocument = TryCast(document.Clone(), PdfXfaDocument) - 'Save the document - cDocument.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - cDocument.Close() - - - - - - Gets or set page settings. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Get the XFA page - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Set form name. - document.FormName = "topmostform"; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Set form name. - document.FormName = "topmostform" - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA form - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the form name. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Set form name. - document.FormName = "topmostform"; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Set form name. - document.FormName = "topmostform" - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the field collection of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Adds the specified field. - - The field item which is added in the PDF XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Remove the field. - - The field to be removed by the current collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Remove the field. - collection.Remove(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Remove the field. - collection.Remove(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Remove field at the specified index. - - The index of the field to be removed by this collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Remove the field. - collection.RemoveAt(0); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Remove the field. - collection.RemoveAt(0) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clear all the fields. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Clear the fields. - collection.Clear(); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Clear the fields. - collection.Clear() - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Insert field to the specified index. - - The index of the field to be inserted in the collection. - The field to be inserted in the collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Insert the field. - collection.Insert(0, field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Insert the field. - collection.insert(0, field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Determines the index of a specific field. - - The field. - Retruns the index of the specific field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the field index. - int index = collection.IndexOf(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get the field index. - Dim index As Integer = collection.IndexOf(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clone the fields collection - - - - - - Get the field with the specific index. - - index. - PdfXfaField. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the specific field by index. - PdfXfaField field1 = collection[0]; - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get specific field by index. - Dim field1 As PdfXfaField = collection(0) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Get the fields count. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the fields count. - int count = collection.Count; - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get the fields count. - Dim count As Integer = collection.Count - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents interactive XFA form of the Pdf document. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Reperesents the XFA form type - - - - - Represents the XFA form field collections - - - - - Data set writer of the XFA - - - - - Represents the field count - - - - - Repersents the current document - - - - - Image array of the XFA - - - - - Repersents the boder of the form - - - - - Represents the width of the form - - - - - Represents the readonly flag of the form - - - - - Represents the xfa page - - - - - Represents the PDF page - - - - - Parent form - - - - - Form save type - - - - - Represents the PDF xfa document - - - - - Represents the start point. - - - - - Current position of the form - - - - - Maximum size of the field - - - - - Name of the subform. - - - - - Acroform field collection. - - - - - suform names - - - - - field names. - - - - - Size of the form. - - - - - maximum size of the current field. - - - - - Represents the current position of the form. - - - - - Represents the page size. - - - - - Represents the subform's current height. - - - - - Represents the background heigh. - - - - - Represents the background count. - - - - - Dublicate of the xfa page. - - - - - Represents the subform readOnly property. - - - - - Initializes a new instance of the class. - - The width fo the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The page. - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", page, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", page, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The flow direction of the XFA form - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The XFA page. - The flow direction of the XFA form - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(page, PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm(page, PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The flow direction of the XFA form - The width of the XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the XFA form. - The XFA page. - The flow direction of the XFA form. - The width of the XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", page, PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", page, PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - save XFA form - - - - - - Save the top most form - - - - - - Add the second level Parent form - - - - - - Draw the edge - - - - - - - - - Get pens dash style. - - - - - - - Add all the subforms - - - - - - - Get the field names - - - - - - - Get the sub form names - - - - - - - Add all the subforms - - - - - - Break the subform to new page. - - - - - - - Get the subforms background height. - - - - - - Draw the background color. - - - - - - Add a PDF page - - - - - - - Set the current pont - - - - - - Set the background height. - - - - - - - Find the subform width and height - - - - - - Write unsupported message in Dynamic XFA. - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Clone the form. - form.Fields.Add(form.Clone() as PdfXfaForm); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Clone the form. - form.Fields.Add(TryCase(form.Clone(), PdfXfaForm)); - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA flow direction - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set border. - form.Border = new PdfXfaBorder(Color.Red); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set border. - form.Border = New PdfXfaBorder(Color.Red) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets the fields. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets readonly - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set readonly form. - form.ReadOnly = true; - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set readonly form. - form.ReadOnly = True - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets width of the form - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set width. - form.Width = 565; - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set width. - form.Width = 565 - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set the XFA Page. - - - - - Represents image field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image path. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image path. - Image size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg", new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg", New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The image name. - The image path. - The width of the image. - The height of the image. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg", 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg", 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg")); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg")) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image. - Width. - Height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg"), 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg"), 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image. - Image size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg"), new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg"), New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - PDF bitmap - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", new PdfBitmap("image.jpg")); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", New PdfBitmap("image.jpg")) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image stream - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image stream. - Size of the image. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream, new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream, New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image to be drawn in XFA form. - Image width - Image height - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream, 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream, 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - initialize a new instance of the class - - - - - - - Save the image field. - - - - - - - - Save the image to the PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Clone. - - - - - - Gets or sets the image stream - - - - - Gets or sets the image size - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Bounds of the image - - - - - Get or set the subform name - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Set image size. - image.Size = new SizeF(100, 100); - //Set the rotation angle. - image.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Set image size. - image.Size = New SizeF(100, 100) - 'Set the rotation angle. - image.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the line of the XFA form - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Start location of the Line. - End location of the Line. - Thickness of the Line. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the line. - - - - - - Draw the line in PDF document. - - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Clone the line object. - mainForm.Fields.Add(line.Clone() as PdfXfaLine); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Clone the line object. - mainForm.Fields.Add(TryCase(line.Clone(), PdfXfaLine)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the line color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the thickness of the line - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Set thickness. - line.Thickness = 2; - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Set thickness - line.Thickness = 2 - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the list box field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Initialize a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", 150, 50); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", 150, 50) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Save the list box field. - - - - - - Save the acroform list box. - - - - - - - - - set the size of the list field - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Clone the list box. - mainForm.Fields.Add(listBoxField.Clone() as PdfXfaListBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Clone the list box. - mainForm.Fields.Add(TryCase(listBoxField.Clone(), PdfXfaListBoxField)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set padding. - listBoxField.Padding.All = 2; - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set padding. - listBoxField.Padding.All = 2 - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the list box items - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the selected index - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selected index. - listBoxField.SelectedIndex = 1; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selected index. - listBoxField.SelectedIndex = 1 - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the selected value - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selected value. - listBoxField.SelectedValue = "French"; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selected value. - listBoxField.SelectedValue = "French" - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets selection mode of the list box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the List box selection mode. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Single item selection mode. - - - - - Multiple item selection mode. - - - - - Represents the numeric field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", 200, 20); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", 200,20) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the numeric field. - - - - - - Save acroform textbox field. - - - - - - - - - set the size of the numeric field - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Clone the numeric field. - mainForm.Fields.Add(numericField.Clone() as PdfXfaNumericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - //Clone the numeric field. - mainForm.Fields.Add(TryCast(numericField.Clone(), PdfXfaNumericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or set the Culture. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set culture. - numericField.Culture = "fr-FR"; - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set culture. - numericField.Culture = "fr-FR" - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set padding. - numericField.Padding.All = 2; - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set padding. - numericField.Padding = 2 - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the numeric field value - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the value. - numericField.Value = 12345; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the value. - numericField.Value = 12345; - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the comb length - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the comb lengh. - numericField.CombLengh = 5; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the comb length. - numericField.CombLength = 5 - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the numeric field types - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set field type. - numericField.FieldType = PdfXfaNumericType.Integer; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set field type. - numericField.FieldType = PdfXfaNumericType.Integer - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the pattern string - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add new XFA page - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form with horizontal flow direction - PdfXfaForm mainForm = new PdfXfaForm(xfaPage, PdfXfaFlowDirection.Horizontal, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the pattern string - numericField.PatternString = "zzzzzzzzz9"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add new XFA page - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form with horizontal flow direction - Dim mainForm As New PdfXfaForm(xfaPage, PdfXfaFlowDirection.Horizontal, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200, 20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the pattern string - numericField.PatternString = "zzzzzzzzz9" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the PDF Xfa page. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialized the new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the page. - - - - - - Get the content area - - Returns the client size of the page. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA page collection - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Intialize the new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Add new XFA page - - XFA page object - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets the page using index value. - - page index. - PdfXfaPage - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", document.Pages[0], xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", document.Pages[0], xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA page settings. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA page orientation - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA page size - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set margins. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA radio button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the radio button field. - Size of the radio button field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the radio button field. - Width of the radio button field. - Height of the radio button field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", 80, 20); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", 80, 20); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", 80, 20) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", 80, 20) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the radio button field. - - - - - - Set Margins, font, tooltip and alignments. - - - - - - Save acroform radio button field. - - - - - - - - Convert XFA check box style to acroform check box style. - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Clone the radio button. - group.Items.Add(radioButtonField2.Clone() as PdfXfaRadioButtonField); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Clone the radio button. - group.Items.Add( TryCase(radioButtonField2.Clone(), PdfXfaRadioButtonField)) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets a value indicating whether this is checked or not. - true if checked; otherwise, false. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - radioButtonField2.IsChecked = true; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - radioButtonField2.IsChecked = True - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the checked style of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the checked style. - radioButtonField2.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the checked style. - radioButtonField2.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the appearance of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the button appearance. - radioButtonField2.RadioButtonAppearance = PdfXfaCheckBoxAppearance.Square; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the button appearance. - radioButtonField2.RadioButtonAppearance = PdfXfaCheckBoxAppearance.Square - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the size of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the radio button size. - radioButtonField2.RadioButtonSize = 10; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the radio button size. - radioButtonField2.RadioButtonSize = 10 - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA radio button group field. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initalize the instance of the PdfXFARadioButtonItemGroup class - - The name of the radio button group field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the radio button Group - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Clone the radio group. - mainForm.Fields.Add(group.Clone() as PdfXfaRadioButtonGroup); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Clone the radio group. - mainForm.Fields.Add(TryCase(group.Clone(), PdfXfaRadioButtonGroup)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the readonly - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - //Set read only. - group.ReadOnly = true; - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - 'Set read only. - group.ReadOnly = True - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the radio list items - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the layout type - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the radio button list item. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA rectangle field. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", 100, 50); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", 100,50) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the rectangle field. - - - - - - Draw the rectangle field to PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Clone the rectangle field. - mainForm.Fields.Add(rectangle.Clone() as PdfXfaRectangleField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Clone the rectangle field. - mainForm.Fields.Add(TryCase(rectangle.Clone(), PdfXfaRectangleField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the tool tip - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set tool tip. - rectangle.ToolTip ="This the rectangle"; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set tool tip. - rectangle.ToolTip = "This is the rectangle" - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the cornor shaps - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the fill color of the rectangle - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the fill color of the rectangle - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set width. - rectangle.Width = 150; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set width. - rectangle.Width = 150 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set height. - rectangle.Height = 100; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set height. - rectangle.Height = 100 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents textbox field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the text box field. - Minimum size of the text box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Default value of the text box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), "John"); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), "John") - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Default value of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), "John", PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), "John", PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200,20) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - Default value of the text box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, "John"); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, "John") - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - ext box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - Default value of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, "John", PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, "John", PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the text box field. - - - - - - Save the text box field. - - - - - - Save the acroform textbox field. - - - - - - - - - set the size of the textbox field - - - - - - Get the size of the text box field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Clone the text box field. - mainForm.Fields.Add(textBoxField.Clone() as PdfXfaTextBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Clone the text box field. - mainForm.Fields.Add(TryCast(textBoxField.Clone(), PdfXfaTextBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the field type of the text box - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("Address", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "Address"; - //Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline; - //Set the tool tip. - textBoxField.ToolTip = "Address"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("Address", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "Address" - 'Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline - 'Set the tool tip. - textBoxField.ToolTip = "Address" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set padding. - textBoxField.Padding.All = 2; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set padding. - textBoxField.Padding.All = 2 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets minimum height of the text box, this will be expandable - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set minimum height. - textBoxField.MinimumHeight = 30; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set minimum height. - textBoxField.MinimumHeight = 30; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the minimum width of the text box, this will be expandable - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set minimum width. - textBoxField.MinumWidth = 220; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set minum width. - textBoxField.MinimumWidth = 220 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets maximum height of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maxium height. - textBoxField.MaximumHeight = 30; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum height. - textBoxField.MaximumHeight = 30; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets maximum width of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maximum width. - textBoxField.MaximumWidth = 300; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum width. - textBoxField.MaximumWidth = 300; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the value of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set text. - textBoxField.Text = "John"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set text. - textBoxField.Text = "John" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the character limit - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maxium length. - textBoxField.MaximumLength = 10; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum length. - textBoxField.MaximumLength = 10 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the comb cell - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - textBoxField.Type = PdfXfaTextBoxType.Comb; - textBoxField.CombLength = 5; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - textBoxField.Type = PdfXfaTextBoxType.Comb - //Set comb length. - textBoxField.CombLength = 5 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the password character - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - textBoxField.Type = PdfXfaTextBoxType.Password; - //Set password character. - textBoxField.PasswordCharacter = "*"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - textBoxField.Type = PdfXfaTextBoxField.Password - //Set password character. - textBoxField.PasswordCharacter = "*" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents text field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Value of the text element - Text element width. - Text element height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", 200, 20); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", 200, 20) - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - Font of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold)); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold)) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - Font of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold), 200, 20); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold), 200, 20) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the text element. - - - - - - Draw the tex to the PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Clone the element. - mainForm.Fields.Add(textElement.Clone() as PdfXfaTextElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Clone the element. - mainForm.Fields.Add(TryCast(textElement.Clone(), PdfXfaTextElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the Horizontal alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the fore color of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets width of the TextBox - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets height of the TextBox - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Writes the XFA document templates - - - - - - - Writes the preamble dictionary - - - - - - Start the datasets - - - - - - End element of the datasets - - - - - - Writes the postable dictionary - - - - - - Writes configuration section - - - - - - Writes the XFA UI tag - - - - - - - Writes the XFA UI tag - - - - - - - - - Writes the XFA UI tag - - - - - - - - - Writes the XFA UI tag. - - - - - - - - - - Writes the XFA field value tag. - - - - - - Write the XFA field value with numeric - - - - - - - Writes the XFA field margins - - - - - - - - - Draw the margin - - - - - - write the font info - - - - - - - Writes the font information - - - - - - - - Write the width and height of the fields - - - - - - - - - Write the width and height of the fields - - - - - - - - - - - Draws the XFA line value - - - - - - - Writes the caption of the field - - - - - - Writes the items of fields - - - - - - Writes the items of fields - - - - - - - Writes the list of items - - - - - - - Writes the toolTip of fields - - - - - - Draw's the fill color of the field - - - - - - Writes the location of the field - - - - - - Write the paragraph alignments - - - - - - - Write patterns - - - - - - Draws the edges of the border - - - - - - - Draws a field Border - - - - - - Draw the button field fill color and border - - - - - - - Draws the edge - - - - - - Draws the corner - - - - - - Drw the color - - - - - - Draws the stroke - - - - - - Draws the fill color - - - - - - Draws the radial brush - - - - - - Draws the linear brush - - - - - - Set rotation presence and readOnly - - - - - - - - Get the date pattern string. - - - - - - - Get the time pattern string. - - - - - - - Get the date time pattern string. - - - - - - - - Get date pattern. - - - - - - - Get time pattern. - - - - - - - Represents an named destination which goes to a destination in the current document. - - - - - Internal variable to store named destination's destination. - - - - - Internal variable to store dictinary. - - - - - Internal variable to store cross table. - - - - - Initializes a new instance of the class. - - The title to be displayed. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - - Gets or sets the named destination title. - - A string value which contains the named destination title - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - The crossTable. - - - - Gets the element. - - - - - - Implements a collection of named destinations in the document. - - - - - Collection of the named destinations. - - - - - Internal variable to store dictinary. - - - - - Cross table of the document; - - - - - It counts the index of the named destination - - - - - Array of the named destinations. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Creates and adds a named destination. - - The new named destination to be added to the collection. - PdfNamedDestination - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 1"); - //Set the destination page. - namedDestination.Destination = new PdfDestination(page); - //Set the destination location. - namedDestination.Destination.Location = new PointF(20, 20); - //Add the named destination. - document.NamedDestinationCollection.Add(namedDestination); - //Save and close the PDF document. - document.Save("NamedDestination.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 1") - 'Set the destination page. - namedDestination.Destination = New PdfDestination(page) - 'Set the destination location. - namedDestination.Destination.Location = New PointF(20, 20) - 'Add the named destination. - document.NamedDestinationCollection.Add(namedDestination) - 'Save and close the PDF document. - document.Save("NamedDestination.pdf") - document.Close(True) - - - - - - Determines whether the specified named destinations presents in the collection. - - The named destinations. - - true if the specified named destinations is in the collection; - otherwise, false. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 1"); - //Set the destination page. - namedDestination.Destination = new PdfDestination(page); - //check whether the specified named destination present in the collection - document.NamedDestinationCollection.Contains(namedDestination); - //Save and close the PDF document. - document.Save("NamedDestination.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 1") - 'Set the destination page. - namedDestination.Destination = New PdfDestination(page) - 'Set the destination location. - namedDestination.Destination.Location = New PointF(20, 20) - 'check whether the specified named destination present in the collection - Dim isNamedDestinationContained As Boolean = document.NamedDestinationCollection.Contains(namedDestination) - 'Save and close the PDF document. - document.Save("NamedDestination.pdf") - document.Close(True) - - - - - - Remove the specified named destination from the document. - - The title of the named destination. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove named destination by named destination name. - namedCollection.Remove("Page 1"); - //Remove named destination by index. - namedCollection.RemoveAt(1); - //Save and close the document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the named destinations. - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove named destination by named destination name. - namedCollection.Remove("Page 1") - 'Remove named destination by index. - namedCollection.RemoveAt(1) - 'Save and close the document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Remove the specified named destination from the document. - - The title of the named destination. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove named destination by named destination name. - namedCollection.Remove("Page 1"); - //Remove named destination by index. - namedCollection.RemoveAt(1); - //Save and close the document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the named destinations. - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove named destination by named destination name. - namedCollection.Remove("Page 1") - 'Remove named destination by index. - namedCollection.RemoveAt(1) - 'Save and close the document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Removes all the named destination from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the Named destinations - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove all the named destination form the collection - namedCollection.Clear(); - //Save and close the PDF document - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the Named destination - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove all the named destination form the collection - namedCollection.Clear() - 'Save and close the document - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Inserts a new named destination at the specified index. - - The index. - The named destination to be added to the collection.. - The new named destination. - /// - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Insert a new named destination in the existing named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 2"); - //Set the destination page and location. - namedDestination.Destination = new PdfDestination(loadedDocument.Pages[0]); - namedDestination.Destination.Location = new PointF(0, 300); - //Insert the named destination - loadedDocument.NamedDestinationCollection.Insert(1, namedDestination); - //Save and close the PDF document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Insert a new named destination in the existing named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 2") - 'Set the destination page and location. - namedDestination.Destination = New PdfDestination(loadedDocument.Pages(0)) - namedDestination.Destination.Location = New PointF(0, 300) - Insert the named destination - loadedDocument.NamedDestinationCollection.Insert(1, namedDestination) - 'Save and close the PDF document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Gets number of the elements in the collection. - - The total number of elements in the collection. - - - - Gets the at the specified index. - - the - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - - - - Gets the element. - - - - - - Implements a colored tiling brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Provides objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing brush. - PdfBrush brush1 = brush.Clone(); - (brush1 as PdfSolidBrush).Color = Color.Green; - //Draw circle. - graphics.DrawEllipse(brush1, new RectangleF(300, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing brush. - Dim brush1 As PdfBrush = brush.Clone() - TryCast(brush1, PdfSolidBrush).Color = Color.Green - 'Draw circle. - graphics.DrawEllipse(brush1, New RectangleF(300, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store rectanble box. - - - - - Local variable to store graphics. - - - - - Local variable to store brush Stream. - - - - - Local variable to store resources . - - - - - Local variable to store Stroking. - - - - - Local variable to store the page. - - - - - Local variable to store the tile start location. - - - - - Local variable to store the Matrix. - - - - - Initializes a new instance of the class. - - The boundaries of the smallest brush cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The boundaries of the smallest brush cell. - The Current Page Object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale; - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11), page); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11), page) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The size of the smallest brush cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new SizeF(11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New SizeF(11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The size of the smallest brush cell. - The Current Page Object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale; - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new SizeF(11, 11), page); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New SizeF(11, 11), page) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - Sets the obligatory fields. - - - - - Sets the BBox coordinates. - - The box. - - - - Gets the resources. - - PDF resource dictionary. - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing tile brush. - PdfTilingBrush cBrush = brush.Clone() as PdfTilingBrush; - //Draw rectangle. - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing tile brush. - Dim cBrush As PdfTilingBrush = TryCast(brush.Clone(), PdfTilingBrush) - 'Draw rectangle. - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - currentColorSpace parameter doesn't have any impact on the output result. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Location representing the start position of the tiles. - - - - - Transformation matrix to store the brush matrix. - - - - - Gets the boundary box of the smallest brush cell. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Get the smallest cell bounds. - RectangleF smallestCellBounds = brush.Rectangle; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Get the smallest cell bounds. - Dim smallestCellBounds As RectangleF = brush.Rectangle - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the smallest brush cell. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Get the smallest cell size. - SizeF smallestCellSize = brush.Size; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Get the smallest cell size. - Dim smallestCellSize As SizeF = brush.Size - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets Graphics context of the brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the resources dictionary. - - - - - Gets or sets a value indicating whether this - is used for stroking operations. - - true if, the brush is for stroking operations; otherwise, false. - This property allows to use tiling brush like a pen to draw lines. - - - - Gets the element. - - - - - Draws the cross brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the backward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the forward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the vertical pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the downward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws Weave style. - - Pdf Graphics on which style draws. - Pdf pen which draws style. - The size of the brush. - - - - Draws the upward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the brick tails for the brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws a checker board dash pattern. - - The graphics. - The pen. - Size of the brush. - Size of the cell. - - - - Class which represents the html internal link used during the html to Pdf conversion to preserve internal links. - This class is used internally and should not be used directly. - - - - - Maximum header level - - - - - Internal variable to store the page bottom margin - - - - - Draw hierarchical bookmarks - - - - - Gets or sets the URI - - - - - Gets or sets the URI page number - - - - /// - Gets or sets the URI bounds. - - - - - Gets or sets the header tag level from H1 to H6 - - - - - Gets or sets the id of destination - - - - - Gets or sets the header content - - - - - Gets or sets the destination page number - - - - - Gets or sets the destination page - - - - - Gets or sets the destination x and y position - - - - - Gets or sets the TOC x-coordinates with header hierarchy - - - - - Gets or sets the TOC rectangle height - - - - - Gets or sets the TOC page count - - - - - Class which provides method and properties to apply styles in automatic creation of a table of contents items for the H1 to H6 HTML elements - - To know more about HTML to PDF TOC refer this link. - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Rectangle begin position - - - - - TOC title begin position - - - - - Rectangle left padding - - - - - Rectangle right padding - - - - - Space between two rectangle - - - - - Maximum header level - - - - - Indicating whether it is next page - - - - - Indicating whether it is first page - - - - - Indicating whether the tab leader char empty - - - - - Internal variable to store the page layout result - - - - - Internal variable to store the pageLayout bottom value. - - - - - Internal variable to store the page template - - - - - Holds the list of header style - - - - - Initializes a new instance of the class. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Calculate number of pages required to draw table of content and each rectangle heights - - - - - Calculate rectangle height - - - - - Draw table of content - - - - - Draw rectangle inner text - - - - - Draw tab leader - - - - - Add page navigation - - - - - Sets the style of a table of contents item on a given level. The item level is a number from 1 to 6 - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set header1 style. - toc.SetItemStyle(1, style); - //Set header2 style. - toc.SetItemStyle(2, style); - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set header1 style. - toc.SetItemStyle(1, style) - 'Set header2 style. - toc.SetItemStyle(2, style) - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the TOC title - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the horizontal title text alignment:By default left - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the TOC style of the table of contents title. When this property is set with a value, the default style of the title is replaced with the style given by this property. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tab leader:By default Dot - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tab leader character to connect the chapter titles and section headings to their corresponding page numbers - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the maximum header level (H1 to H6) :By default 6 - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the header style - - - - - Gets or sets TOC page count - - - - - The type defines the tab leader list to connect the chapter titles and section headings to their corresponding page numbers - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Don't apply tab leader - - - - - Connect the chapter titles and section headings to their corresponding page number with dotted line - - - - - Connect the chapter titles and section headings to their corresponding page number with dashed line - - - - - Connect the chapter titles and section headings to their corresponding page numbers with solid line - - - - - This class contains the necessary properties to apply style in the automatic creation of a table of contents in a PDF document. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the back ground color - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the font - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the fore color - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the padding - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents compression options of the loaded document. - - - To know more about refer this link . - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Indicates whether remove metadata. - - - - - Indicates compress the image objects based on the image quality. - - - - - Represents the image quality. - - - - - Indicates optimize the page content streams. - - - - - Indicates optimize the font data. - - - - - Gets or sets whether remove metadata informations. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether compress images based on the image quality. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets the image quality. - - Default value is 50. - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether to optimize page contents. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether to optimize font data. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Represernts the PDF optimizer. - - - - - Indicates the optimization options. - - - - - Indicates the font references. - - - - - Indicates the image references. - - - - - Indicates the TTF font common table list - - - - - Initialize the new instance of the class with input file name. - - Input file name. - - - - Optimize the PDF document - - - - - Close the optimizer - - - - - Optimze the annotations content streams. - - - - - - optimize the Apperance dictionary. - - - - - - Optimize the page resources (font, image, xobject contents). - - - - - - Optimize the page content. - - - - - - Optimize the content stream. - - - - - - Trim the operand if contains .00 - - - - - - - Remove the meta data entry - - - - - - Optimize all the PDF resources - - - - - - - Optimize the font data - - - - - - - optimize the image - - - - - - - Replace the existing image - - - - - - - - - - Get the image interpolation. - - - - - - - Optimize the PDF true type font - - - - - - - optimize the type 0 font - - - - - - - - Get the local table last index - - - - - - - Optimize type0 font - - - - - - - Update the existing font data - - - - - - - Set the font tables. - - - - - - - - - - Update the embedded subset font Name based on the PDF specification. - - - - - - - Get the object from parent dictionary - - - - - - - - Get the object from IPdfPrimitive - - - - - - - Calulates the check sum value. - - - - - - - Get the font table entry. - - - - - - - - calculate the local and hmtx table length. - - - - - - - - - Represents the loaded Circle annotation class. - - - - - Represents the PdfLoadedStyledAnnotation class - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - // Set the file link annotation border. - fileLinkAnnotation.Border=new PdfAnnotationBorder(4, 0, 0); - //Set the file link annotation color. - fileLinkAnnotation.Color=new PdfColor(Color.Blue); - //Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation"; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default - 'Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt" - ' Set the file link annotation border. - fileLinkAnnotation.Border=New PdfAnnotationBorder(4, 0, 0) - 'Set the file link annotation color. - fileLinkAnnotation.Color=New PdfColor(Color.Blue) - 'Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - The class provides methods and properties to handle the loaded annotations from the existing PDF document. - - Please refer UG documentation link for from this link - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Get the page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the Form field identifier - - - - - Cross Table. - - - - - Indicates was field changed or not. - - - - - Represents index used to default annotation. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the name of the annotation - - New name of the annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the annotation text. - soundAnnotation.SetText("Sound Annotation"); - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the annotation text. - soundAnnotation.SetText("Sound Annotation") - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Searches the in parents. - - The dictionary. - The cross table. - The value. - Searched primitive. - - - - Gets the value. - - The dictionary. - The cross table. - The value. - if it is inheritable, set to true. - The founded value. - - - - Gets the widget annotation. - - The dictionary. - The cross table. - The widget annotation dictionary. - - - - Aplies field name - - specified field name - - - - Begins the save. - - - - - Exports the form fields. - - Stream. - Object identifier. - - - - Raises when user manualy chages the name of the field. - - - - - Gets or sets the changed. - - - - - Gets or sets the cross table. - - - - - Gets and sets the where the annotation is present. - - The of the existing PDF document - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Get the page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - NameChanged event handler. - - New name of the field. - - - - Gets the text. - - The text. - - - - Gets the Author. - - The Author. - - - - Gets the Subject. - - The Subject. - - - - Gets the ModifiedDate. - - The ModifiedDate. - - - - Gets the creation date. - - The creation date. - - - - Gets the bounds. - - The dictionary. - The cross table. - The bounds. - - - - Gets the border. - - The border. - - - - Gets the color. - - The color. - - - - Gets the Opacity. - - The Opacity. - - - - Gets the number value. - - Name of the key. - The value of the number specified by the string key. - - - - Get the inner line color - - - - - Gets the annotation flags. - - The annotation flags. - - - - Draw CloudStye to the Shapes - - - - - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Flatten the popup window - - - - - Parse the XML string to get the required styles - - - - - - Convert the HTML string to Color - - - - - - - Get the popup bounds - - returns the popup window bounds - - - - Remove both the annotation and popup window - - current page. - annotation to be removed. - - - - Gets or sets the color. - - The color. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Set the file link annotation color. - fileLinkAnnotation.Color=new PdfColor(Color.Blue); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Set the file link annotation color. - fileLinkAnnotation.Color=New PdfColor(Color.Blue) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the Opacity of the annotation, Default value is 1.0f - - - - - Gets or sets the inner color of the annotation, Default color is transparent - - - - - Gets or sets the text. - - The text. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation"; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or Sets the Author of the annotation. - - - - - Gets or Sets the Subject of the annotation. - - - - - Gets or Sets the ModifiedDate of the annotation. - - - - - Gets the creation date of the annotation. - - - - - Gets or sets the name of the annotation. - - - - - Gets or sets the annotation's bounds. If this property is not set, bounds are calculated automatically - based on Location property and content of annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - 'Sets the file link annotation bounds. - fileLinkAnnotation.Bounds = new RectangleF(100,100,50,50); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link annotation bounds. - fileLinkAnnotation.Bounds = New RectangleF(100,100,50,50) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the annotation's border. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - // Set the file link annotation border. - fileLinkAnnotation.Border=new PdfAnnotationBorder(4, 0, 0); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - ' Set the file link annotation border. - fileLinkAnnotation.Border=New PdfAnnotationBorder(4, 0, 0) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the location. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the file link Annotation location. - fileLinkAnnotation.Location new PointF(100,100); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link Annotation location - fileLinkAnnotation.Location =New PointF(100,100) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the size. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the size - attchmentAnnotation.Size=new SizeF(100,50) - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the size - attchmentAnnotation.Size=New SizeF(100,50) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the annotation flags. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Get or set the border style of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Get or set the line border of the annotation. - - - - - Represents the Polygon annotation - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - Gets the polygon points of the annotation. - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line style of the annotation. - - choice - The line style. - - - - Gets line style of the annotation. - - Type of line style - The line style. - - - - Gets line style of the annotation. - - The line style. - - - - Gets line points of the annotation. - - line points. - - - - Gets back color of the annotation. - - The back color. - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Gets the line border of the annotation. - - - - - Gets or sets the begin line style of the annotation. - - - - - Gets or sets the end line style of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - Represents the ink annotation class. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //set the points - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Create a new ink annotation - RectangleF rectangle = new RectangleF(0, 0, 300, 400); - //Create a inkAnnotation and set the properties - PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints); - inkAnnotation.Color = new PdfColor(Color.Red); - inkAnnotation.BorderWidth = 4; - inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled; - //Add annotation to the page - page.Annotations.Add(inkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'set the points - Dim linePoints As New List(Of Single) (New Single() {40, 300, 60, 100, 40, 50, 40, 300}) - 'Create a new ink annotation - Dim rectangle As New RectangleF(0, 0, 300, 400) - 'Create a inkAnnotation and set the properties - Dim inkAnnotation As New PdfInkAnnotation(rectangle, linePoints) - inkAnnotation.Color = New PdfColor(Color.Red) - inkAnnotation.BorderWidth = 4 - inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled - 'Add annotation to the page - page.Annotations.Add(inkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Indicate the path of the ink annotation - - - - - Indicate path collection of the ink annotation - - - - - Internal variable to store Border Dash. - - - - - border width - - - - - Indicate the border Dictionary - - - - - Indicat the border style - - - - - - Initializes a new instance of the class. - - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Calculates control points for all the path points input given by Beizer spline curve control points calculation. - - - - - Calculates single control point for the vector input given. - - - - - - Gets or sets multiple list of the InkList value. - - The value specifies multiple list of lines to be drawn. - - - - - - - Represents the PDF text annotation. - - This class is used to add the text directly on the page. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the PdfFreeTextAnnotation class. - - - - - Initializes a new instance of the PdfFreeTextAnnotation class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Initializes Annotation object. - - - - - Saves an Text Markup Annotation . - - - - - Gets or sets the line ending style of the text annotation. - - The object selects the different line ending styles of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the intent of the text annotation - - The object sets the annotation intent. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the markup text of the text annotation - - The string value which contains the markup text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the font of the text annotation - ` - The object which defines the annotation text font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the points array to be called out the lines. - - The array of points to call out lines. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - - - Represents a line annotation. - - This class is used to represents line annotation in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create PDF line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Create PDF line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Indicates PdfLine Begin style - - - - - Indicates PdfLine End style - - - - - To Specify the Line Border - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - An array of two names specifying the line ending styles - - - - - To specifying the Inner Line color color with which to fill the annotation’s line endings - - - - - To specifying the Background Color - - - - - To specifying the Leader Line Extension size - - - - - To specifying the Leader Line size - - - - - To specifying the caption in the appearance of the line, - - - - - To specifying the intent of the line annotation - - - - - To specifying Caption Type - - - - - To Specifying the LinePoints of the line annotation - - - - - Initializes new instance of class with specified points. - - The line points is to be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation and set properties. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points); - lineAnnotation.Text = "Line Annotation"; - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation and set properties. - Dim lineAnnotation As New PdfLineAnnotation(points) - lineAnnotation.Text = "Line Annotation" - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes new instance of class with set of points and annotation text. - - The line points to be drawn. - The line caption text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new pag . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new pag . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation and set properties. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(new RectangleF(80, 420, 150, 420)); - lineAnnotation.Text = "Line Annotation"; - lineAnnotation.LinePoints = points; - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation and set properties. - Dim lineAnnotation As New PdfLineAnnotation(New RectangleF(80, 420, 150, 420)) - lineAnnotation.Text = "Line Annotation" - lineAnnotation.LinePoints = points - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes annotation object. - - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - - - Gets or sets whether the line annotation caption should be displayed. - - true if the line caption should be displayed, otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line caption. - lineAnnotation.LineCaption = true; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line caption. - lineAnnotation.LineCaption = True - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the leader line - - The value specifies the leader line of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the leader line. - lineAnnotation.LeaderLine = 10; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the leader line. - lineAnnotation.LeaderLine = 10 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LeaderLineExtension. - - The value specifies the leader line extension of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the leader line extension. - lineAnnotation.LeaderLineExt = 10; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the leader line extension. - lineAnnotation.LeaderLineExt = 10 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the border style of the LineAnnotation. - - A enumeration member specifying the border style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line border. - Dim lineBorder As LineBorder = New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the style used for the beginning of the line. - - A enumeration member specifying the begin style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the begin line style. - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the begin line style. - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the style used for the end of the line. - - A enumeration member specifying the end style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line ending style. - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line ending style. - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the line caption text type of annotation. - - A enumeration specifying the line caption type. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LineIntent of the annotation. - - A specifies the Line Intent Style is to be used in the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line intent. - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line intent. - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets an InnerColor of the PdfLineAnnotation. - - The which draws the outline of the inner color of the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the inner line color. - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the inner line color. - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the BackgroundColor of the PdfLineAnnotation. - - The which draws the border of the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line back color. - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line back color. - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LinePoints of the PdfLineAnnotation. - - The value specifies array of the line points to be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(new RectangleF(100, 100, 100, 20)); - //Sets the LinePoints. - lineAnnotation.LinePoints = points; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(New RectangleF(100, 100, 100, 20)) - 'Sets the LinePoints. - lineAnnotation.LinePoints = points - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Represents the border style of the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = {80, 420, 150, 420} - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store border width. - - - - - Internal variable to store Border Dash. - - - - - Internal variable to store border style; - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Converts border style to string. - - The style. - - - - - Gets or sets the width of the line border. - - The width of the line border. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.lineBorder.BorderWidth = 4; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = {80, 420, 150, 420} - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.lineBorder.BorderWidth = 4 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the border style. - - The Specifies the available styles for a field border - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the line dash of the annotation - - The dash array of the line border. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents the 3D annotation for a PDF document. - - This class is used to represents the 3D annotation for a PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create pdfFont, pdfFont style and brush. - Font font = new Font("Calibri", 11, FontStyle.Regular); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - PdfBrush brush = new PdfSolidBrush(Color.DarkBlue); - //Create 3D activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.PageVisible; - activation.ShowToolbar = true; - pdf3dAnnotation.Activation = activation; - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Set the 3D background. - Pdf3DBackground background=new Pdf3DBackground(); - background.Color=new PdfColor(Color.Blue); - defaultView.Background = background; - //Set the projection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Orthographic); - defaultView.Projection = projection; - //Set the render mode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - defaultView.RenderMode = renderMode; - //Set the lighting scheme. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.Night); - defaultView.LightingScheme = lighting; - //Add the view. - pdf3dAnnotation.Views.Add(defaultView); - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, new PointF(40, 40)); - //Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, new PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)); - //Adds annotation to page. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create pdfFont, pdfFont style and brush. - Dim font As New Font("Calibri", 11, FontStyle.Regular) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - Dim brush As PdfBrush = New PdfSolidBrush(Color.DarkBlue) - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.PageVisible - activation.ShowToolbar = True - pdf3dAnnotation.Activation = activation - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Set the 3D background. - Dim background As New Pdf3DBackground() - background.Color = New PdfColor(Color.Blue) - defaultView.Background = background - 'Set the projection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Orthographic) - defaultView.Projection = projection - 'Set the render mode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - defaultView.RenderMode = renderMode - 'Set the lighting scheme. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.Night) - defaultView.LightingScheme = lighting - 'Add the view. - pdf3dAnnotation.Views.Add(defaultView) - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, New PointF(40, 40)) - 'Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, New PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - Represents a base class for file attachment annotation. - - Class - Class - Class - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with specified bounds. - - Bounds of the annotation. - - - - Saves an annotation. - - - - - Gets or sets file name of the annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Get file name of the annotation. - string fileName = annotation.FileName; - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Get file name of the annotation. - Dim fileName As String = annotation.FileName - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the appearance of the annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annot.Appearance = new PdfAppearance(annotation); - annot.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annot.Appearance.Normal.Draw(page, new PointF(annot.Location.X, annot.Location.Y)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new PDF appearance. - annot.Appearance = New PdfAppearance(annotation) - annot.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annot.Appearance.Normal.Draw(page, New PointF(annot.Location.X, annot.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store U3D. - - - - - Internal variable to store apperance. - - - - - Initializes a new instance of the class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150)); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150)) - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - The bounds of the annotation. - The name of the sound file. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150),"Input.u3d"); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Adds the annotation on a page. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - - Initializes instance. - - - - - Saves instance. - - - - - Gets the list of available views for the current 3D artwork. Read-Only. - - The specifies the collection of PDF 3D views. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Add views. - pdf3dAnnotation.Views.Add(defaultView); - //Get the views. - Pdf3DViewCollection viewCollection = pdf3dAnnotation.Views; - //Add the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Add views. - pdf3dAnnotation.Views.Add(defaultView) - 'Get the views. - Dim viewCollection As Pdf3DViewCollection = pdf3dAnnotation.Views - 'Add the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the default view. - - The default view of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - pdf3dAnnotation.DefaultView = 0; - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - pdf3dAnnotation.DefaultView = 0 - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - - - - Gets or sets the code to execute when the 3D artwork is instantiated. - JavaScript code to be executed when the 3D artwork is instantiated. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - pdf3dAnnotation.OnInstantiate = "host.getURL(\"http://www.syncfusion.com\")"; - //Create a pdf 3d view. - Pdf3DView defaultView = new Pdf3DView(); - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - pdf3dAnnotation.Views.Add(defaultView); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - pdf3dAnnotation.OnInstantiate = "host.getURL(\"http://www.syncfusion.com\")" - 'Create a pdf 3d view. - Dim defaultView As New Pdf3DView() - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - pdf3dAnnotation.Views.Add(defaultView) - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True). - - - Class - Class - - - - Gets or sets the activation options for the annotation. - - specifies activation states for the annotation. - - Defines the times at which the annotation should be activated and deactivated and the state of the 3D artwork instance at those times. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new pdf3d activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - activation.ShowToolbar = false; - pdf3dAnnotation.Activation = activation; - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creatas a new pdf3d actviation. - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - activation.ShowToolbar = False - pdf3dAnnotation.Activation = activation - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - Filename with Full path - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Gets the filename. - string fileName = pdf3dAnnotation.FileName; - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Gets the filename. - Dim fileName As String = pdf3dAnnotation.FileName - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - - Represents the rubber stamp annotation for a PDF document. - - This class is used to displays text or graphics stamped on the page. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rectangle = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation"); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rectangle As New RectangleF(40, 60, 80, 20) - Dim rubberstampAnnotation As New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberstampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - internal variable for the rubberstamp annotation icon - - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberstampAnnotation As New PdfRubberStampAnnotation() - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberstampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds. - RectangleF structure that specifies the bounds of the annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rubberStampAnnotationBounds = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(rubberStampAnnotationBounds); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberStampAnnotationBounds As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rubberStampAnnotationBounds) - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds and text. - - The rectangleF structure that specifies the bounds of the annotation. - The text of the rubber stamp annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rubberStampAnnotationBounds = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberStampAnnotation = new PdfRubberStampAnnotation(rubberStampAnnotationBounds, " Text Rubber Stamp Annotation"); - //Sets the PDF appearance. - rubberStampAnnotation.Appearance = new PdfAppearance(rubberstampAnnotation); - rubberStampAnnotation.Appearance.Normal.Draw(page, new PointF(rubberStampAnnotation.Location.X, rubberStampAnnotation.Location.Y)); - page.Annotations.Add(rubberStampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberStampAnnotationBounds As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rubberStampAnnotationBounds, " Text Rubber Stamp Annotation") - 'Sets the PDF appearance. - rubberStampAnnotation.Appearance = New PdfAppearance(rubberstampAnnotation) - rubberStampAnnotation.Appearance.Normal.Draw(page, New PointF(rubberStampAnnotation.Location.X, rubberStampAnnotation.Location.Y)) - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Gets or sets the annotation's icon. - - A enumeration member specifying the icon for the annotation when it is displayed in closed state. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rectangle = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberStampAnnotation = new PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation"); - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberStampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rectangle As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - - Represents the widget annotation. - - - - - Internal variable to store parent field. - - - - - Internal variable to store extended appearance. - - - - - Internal variable to store border parameters. - - - - - Internal variable to store appearance of the widget. - - - - - Internal variable to store highlighting mode. - - - - - Internal variable to store default appearance. - - - - - Internal variable to store alignment. - - - - - Internal variable to store annotation's actions. - - - - - Annotation's appearance. - - - - - Internal variable to store default appearance state value. - - - - - Initializes annotation object. - - - - - Raises the event. - - The instance containing the event data. - - - - Saves an annotation. - - - - - Highlightings the mode to string. - - The m_highlighting mode. - String representation of the highlighting mode in Pdf suiatable format. - - - - Gets the appearance. - - - - - - Gets or sets the parent. - - The parent. - - - - Gets or sets the extended appearance. - - The extended appearance. - - - - Gets the default appearance. - - The default appearance. - - - - Gets or sets annotation's border. - - The widget border. - - - - Gets the widget appearance. - - The widget appearance. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets or sets the text alignment. - - The text alignment. - - - - Gets the actions of the annotation. - - The actions. - - - - Gets or sets appearance of the annotation. - - - - - Gets or sets default appearance name. - - The state of the appearance. - - - - Raise before object saves. - - - - - Represents collection of widget annotations. - - - - - Internal variable to store array of anootation's primitives. - - - - - Initializes a new instance of the class. - - - - - Adds the specified annotation. - - The annotation. - - - - - Inserts the specified index. - - The index. - The annotation. - - - - Removes the specified annotation. - - The annotation. - - - - Removes the annotation at the specified position. - - The index. - - - - Gets the index of the specified annotation. - - The annotation. - - - - - Determines whether the annotation is present in collection. - - The annotation. - - true if collection contains the specified annotation; otherwise, false. - - - - - Clears the collection. - - - - - Adds the annotation. - - The annotation. - - - - - Insters.the annotation at the specified position. - - The index. - The annotation. - - - - Removes the annotation. - - The annotation. - - - - Removes the annotation at the specified position. - - The index. - - - - Clears the collection. - - - - - Gets the at the specified index. - - Annotation at the specified position. - - - - Gets the element. - - - - - - Represents appearance of the widget annotation. - - - - - Internal variable to store border's color. - - - - - Internal variable to store color of the background. - - - - - Internal variable to store normal cation text. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the normal caption. - - The normal caption. - - - - Gets the element. - - - - - - Represents the border style of the widget annotation. - - - - - Internal variable to store border width. - - - - - Internal variable to store border style; - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Converts border style to string. - - The style. - - - - - Gets or sets the width. - - The width. - - - - Gets or sets the style. - - The style. - - - - Gets the element. - - - - - - Represents the class for text web link annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text web link annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yahoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the text area with the ability to span several pages and inherited from the class - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the base class for all elements that can be layout on the pages. - - [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Assert, Name = "FullTrust")] - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - - Initializes a new instance of the class. - - - - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Draws the element on the page with the specified page and structure - - Current page where the element should be drawn. - Start location on the page. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page and pair of coordinates - - Current page where the element should be drawn. - X co-ordinate of the element on the page. - Y co-ordinate of the element on the page. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, 10, 10); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, 10, 10) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page and structure - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 1000); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, new RectangleF(10, 10, 300, 500)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 1000) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, New RectangleF(10, 10, 300, 500)) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page. - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutResult that represents the layout result of the drawn element. - - - - Draws the element on the page with the specified page, structure and layout format - - Current page where the element should be drawn. - Start location on the page. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page, pair of coordinates and layout format - - Current page where the element should be drawn. - X co-ordinate of the element on the page. - Y co-ordinate of the element on the page. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, 10, 20, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, 10, 20, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page, structure and layout format - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Draws the element on the page. - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - Layout format. - Layout result. - - - - Draws the specified page. - - The page. - The top. - The format. - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Layouts the specified param. - - The param. - null - - - - Raises EndPageLayout event. - - Event arguments. - - - - Raises BeginPageLayout event. - - Event arguments. - - - - Raises after the element was printed on the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Raise end page layout event. - rect.EndPageLayout += Rect_EndPageLayout; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Raise the end page layout event - AddHandler rect.EndPageLayout, AddressOf Rect_EndPageLayout - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Raises before the element should be printed on the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Raise begin page layout event. - rect.BeginPageLayout += Rect_BeginPageLayout; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Raise the begin page layout event. - AddHandler rect.BeginPageLayout, AddressOf Rect_BeginPageLayout - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets a value indicating whether EndPageLayout is not null. - - - - - Gets a value indicating whether BeginPageLayout is not null. - - - - - Gets a value indicating whether [embed fonts]. - - true if [embed fonts]; otherwise, false. - - - - Gets or sets the tag for the element - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Set PDF tag element. - rect.PdfTag = new PdfStructureElement(PdfTagType.Figure); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Text data. - - - - - Text data. - - - - - Pen for text drawing. - - - - - Brush for text drawing. - - - - - Font for text drawing. - - - - - Text format. - - - - - indicate whether the PdfGridCell value is PdfTextElement - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text to draw into the PDF. - - The text to draw into the PDF. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!"); - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!") - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the text and . - - The text to draw into the PDF. - The that defines the text format. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color, width, and style of the text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color and texture of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text,,, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color, width, and style of the text - The that determines the color and texture of the drawn text. - The that determines string format. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set alignments. - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Red, PdfBrushes.Black, format); - //Draw the text element. - element.Draw(page, new RectangleF(0, 0, 200, 20)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set alignments. - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Red, PdfBrushes.Black, format) - 'Draw the text element. - element.Draw(page, New RectangleF(0, 0, 200, 20)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the text on the page in the specified location with . - It returns the which contains last page and bounds where the text element drawn. - - Current page where the text should be drawn. - PointF structure that specifies the start location on the page. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New PointF(0, 0), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Draws the text on the page in the specified location,width and . - It returns the which contains last page and bounds where the text element drawn - - Current page where the text should be drawn. - PointF structure that specifies the start location on the page. - Width of the text bounds. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new PointF(0, 0), 200, format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New PointF(0, 0), 200, format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the text on the page with specified layout rectangle and . - It returns the which contains last page and bounds where the text element drawn. - - Current page where the text should be drawn. - RectangleF structure that specifies the bounds of the text. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new RectangleF(0, 0, 200, 400), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New RectangleF(0, 0, 200, 400), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a brush for drawing. - - Gets a brush for drawing. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Gets or sets a value indicating the text that should be printed. - - The to draw to the PDF - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating the text that should be printed. - - - - - Gets or sets a that determines the color, width, and style of the text - - The that determines the color, width, and style of the text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF pen. - element.Pen = PdfPens.Red; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF pen. - element.Pen = PdfPens.Red - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the that will be used to draw the text with color and texture. - - The that determines the color and texture of the drawn text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a that defines the text format. - - The that defines the text format - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the that will be used to set the string format - - The used to set the string format - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set alignments. - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Red); - //Set PDF string format. - element.StringFormat = format; - //Draw the text element. - element.Draw(page, new RectangleF(0, 0, 200, 20)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set alignments. - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Red) - 'Draw the text element. - element.Draw(page, New RectangleF(0, 0, 200, 20)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Internal variable to store Url. - - - - - Internal variable to store Uri Annotation object. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text web link annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yahoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Draws a Text Web Link on the Page - - The page where the annotation should be placed. - The location of the annotation. - Pdf Layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text weblink annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yagoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation); - //Save the document to disk. - document.Save("TextWebLink(.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As PdfTextWebLink = New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)) - 'Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation) - 'Save the document to disk. - document.Save("TextWebLink(.pdf") - - - Class - Class - Class - - - - Draw a Text Web Link on the Graphics - - The object specifies where annotation should be placed.. - The location of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text weblink annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yagoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page.Graphics, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation); - //Save the document to disk. - document.Save("TextWebLink(.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As PdfTextWebLink = New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page.Graphics, new PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)) - 'Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation) - 'Save the document to disk. - document.Save("TextWebLink(.pdf") - - - Class - Class - Class - - - - Gets or sets the Uri address. - - The string value which contains the Uri address. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the text markup annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and PDF font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new pdf brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and pdf font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - To specifying the TextMarkupAnnotationType . - - - - - To specifying the QuadPoints . - - - - - To store the QuadPoints to the PdfArray - - - - - To specifying the Text Markup Color . - - - - - To specifying the Text Markup Annotation Title . - - - - - To specifying the Text Size . - - - - - To specifying the Text Location . - - - - - To specifying the Text Font. - - - - - To indicate collection of rectagle bounds of annotation - - - - - Initializes new instance of class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation(); - markupAnnotation.Text = "Text Markup annotation"; - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation() - markupAnnotation.Text = "Text Markup annotation" - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes new instance of class with specified title, markup text, annotation text and font. - - The markup annotation title. - The string specifies the text of the annotation. - The string specifies the markup text of the annotation. - The location of the markup text annotation. - The specifies the text appearance of the markup text annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation. - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create PDF font and font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation. - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation(rectangle); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdffont and pdffont style . - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a new pdfbrush . - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation(rectangle) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes Annotation object. - - - - - Saves an Text Markup Annotation . - - - - - Flatten the TextMarkup annotation's - - - - - Gets or sets TextMarkupAnnotationType. - - The enumeration value which contains the different types of mark up annotation types. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a PDF text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and pdf font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PdfBrush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - - Gets or sets text markup bounds collection. - - - - - The Syncfusion.Pdf.ColorSpace namespace contains classes for enhanced printing support with various Color channels. - - - - - Represents a calibrated gray color, based on a CalGray colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Represents the extended color, based on a complex colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - To store the Colorspace. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - Gets the Colorspace - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Get the Color space. - PdfColorSpaces colorSpace = gray.ColorSpace; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Get the Color space - Dim colorSpace As PdfColorSpaces = gray.ColorSpace - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - Local Variable to store the Gray value. - - - - - Initializes a new instance of the class. - - The color space. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create Gray ColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the gray level for this color. - - The gray level of this color. - The acceptable range for this value is [0.0 1.0]. - 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - To know more about color spaces refer this link . - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Gets the graphics object. - PdfGraphics g = page.Graphics; - // Created font object - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor red = new PdfCalGrayColor(calGrayCS); - red.Gray = 0.2; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - g.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - ' Created font object - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim red As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - red.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - g.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Represents a CalGray colorspace. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Represents the base class for all colorspaces. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale; - PdfPen pen = new PdfPen(PdfBrushes.Red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, new RectangleF(0,0,100,200)); - doc.Save("ColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale - Dim pen As PdfPen = New PdfPen(PdfBrushes.Red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, New RectangleF(0,0,100,200)) - doc.Save("ColorSpace.pdf") - - - Class - Interface - - - - Interface of the objects that support caching of their internals. - - - - - Checks whether the object is similar to another object. - - The object to compare with the current object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Internal variable to store the resources. - - - - - Internal variable to store the internal object. - - - - - Internal variable to store the color Internals. - - - - - Internal variable to store the dictionary. - - - - - Internal variable to store the colorspace. - - - - - Checks whether the object is similar to another object. - - The object to compare witht ehcurrent object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Gets Pdf primitive representing the font. - - - - - Local variable to store the White point of this colorspace. - - - - - Local variable to store the Game value of this colorspace. - - - - - Local variable to store the black point of this colorspace. - - - - - Initializes a new instance of the class. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Initializes the PdfLab Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Gets or sets the black point. - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. Default value: [ 0.0 0.0 0.0 ]. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create CalGraycolor space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - calGrayCS.BlackPoint = new double[] { 0.2, 0.3, 0.8 }; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor red = new PdfCalGrayColor(calGrayCS); - red.Gray = 0.2; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create CalGraycolor space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - calGrayCS.BlackPoint = New Double() { 0.2, 0.3, 0.8 } - ' Create new instance for PdfCalGrayColor - Dim red As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - red.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the gamma. - - - The gamma value for the gray component. - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates gray color space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Update color values - calGrayCS.Gamma = 0.7; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates gray color space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Update color values - calGrayCS.Gamma = 0.7 - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the white point. - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers XW and ZW must be positive, and YW must be equal to 1.0. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create CalGraycolor space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create CalGraycolor space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Represents a calibrated RGB color, based on a CalRGB colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the Red Color. - - - - - Local variable to store the Green Color. - - - - - Local variable to store the Blue Color. - - - - - Initializes a new instance of the class. - - The colorspace - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the Blue value. - - The blue level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Green = 1 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the green level for this color. - - The green level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Green = 1; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Green = 1 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the red level for this color. - - The red level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Representing a CalRGB colorspace. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Local variable to store the Whitepoint of this colorspace. - - - - - Local variable to store the BlackPoint of this colorspace. - - - - - Local variable to store the Gama of this colorspace. - - - - - Local variable to store the Matrix value of this colorspace. - - - - - Initializes a new instance of the class. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Initializes the PdfCalRGB ColorSpace - - - - - Creates PdfCalRGB ColorSpace Array - - PdfCalRGB's ColorSpace Array. - - - - Gets or sets the black point. - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.BlackPoint = new double[] { 0.5, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.BlackPoint = New Double() { 0.5, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the gamma. - - An array of three numbers [GR GG GB] specifying the gamma for the red, green, and blue components of the color space. - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the colorspace transformation matrix. - - An array of nine numbers [XA YA ZA XB YB ZB XC YC ZC] specifying the linear interpretation of the decoded A, B, and C components of the color space with respect to the final XYZ representation. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the white point. - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Represents a device colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[3]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(2){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Local variable to store the Device Colospace Type. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[3]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(2){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the DeviceColorSpaceType - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[1]; - numArray[0] = 0.38f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - // Creates device color space - PdfDeviceColorSpace deviceColorspace1 = new PdfDeviceColorSpace(PdfColorSpace.CMYK); - deviceColorspace1.DeviceColorSpaceType = PdfColorSpace.GrayScale; - // Set the device color space - colorspace.AlternateColorSpaces = deviceColorspace1; - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(0){} - numArray(0) = 0.38f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - ' Creates device color space - Dim deviceColorspace1 As PdfDeviceColorSpace = New PdfDeviceColorSpace(PdfColorSpace.CMYK) - deviceColorspace1.DeviceColorSpaceType = PdfColorSpace.GrayScale - ' Set the device color space - colorspace.AlternateColorSpaces = deviceColorspace1 - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Represents an ICC color, based on an ICC colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Local variable to store the color components. - - - - - Local variable to store the Alternatic Colorspace of this Color. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Gets or sets the color components. - - An array of values that describe the color in the ICC colorspace. - The length of this array must match the value of ColorComponents property on the underlying ICC colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Gets the Colorspace. - - - - - Class represents the ICC Colorspace. - Used during creation of documents with PDF/A1B compliance. - - - - - Internal variable to store the stream.. - - - - - Initializes a new instance of the class. - - - - - Saves an instance. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets the profile data. - - bytes - - - - Gets the element. - - - - - - Represents an ICC based colorspace.. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the Alternative Colorspaces. - - - - - Loacal variable to store the Color Components. - - - - - Local variable to store the Color Profile Data. - - - - - Local variable to store the Color Range. - - - - - Local variable to store the internal stream. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Get the default Color Profile. - - ICC profile data. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create RGB color space. - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - //Set the default ICC profile data. - IccBasedCS.ProfileData = IccBasedCS.GetProfileData(); - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - doc.Close(true); - - - 'Creates a new document - Dim doc As PdfDocument = New PdfDocument - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add - 'Create RGB color space. - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace - calRgbCS.Gamma = New Double() - { 7.6, 5.1, 8.5} - 'Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace - 'Set the default ICC profile data. - IccBasedCS.ProfileData = IccBasedCS.GetProfileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() - { 0, 1, 0, 1, 0, 1} - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1} - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - doc.Close(True) - - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the alternate color space. - - The alternate color space to be used in case the one specified in the stream data is not supported. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the color components. - - The number of color components in the color space described by the ICC profile data. - This number must match the number of components actually in the ICC profile. As of PDF 1.4, this value must be 1, 3 or 4. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the profile data. - - The ICC profile data. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the range for color components. - - An array of 2 � ColorComponents numbers [ min0 max0 min1 max1 ... ] specifying the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Represents an indexed color, based on an indexed colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Local variable to store the color index. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Gets or sets the color index - - The index of the select color. - The acceptable range for this value is 0 - MaxColorIndex. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Represents an indexed colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the base colorspace. - - - - - Local variable to store the maximum Color Index. - - - - - Local variable to store the indexed Color Table. - - - - - Local variable to store the stream. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets the profile data. - - The profile data. - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the base colorspace. - - The color space in which the values in the color table are to be interpreted. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the index of the max color. - - The maximum index that can be used to access the values in the color table. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the color table. - - The table of color components. - The color table data must be m * (maxIndex + 1) bytes long, where m is the number of color components in the base color space. Each byte is an unsigned integer in the range 0 to 255 that is scaled to the range of the corresponding color component in the base color space; that is, 0 corresponds to the minimum value in the range for that component, and 255 corresponds to the maximum. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Represents a calibrated Lab color, based on a Lab colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Local variable to store the A value. - - - - - Local variable to store the B value. - - - - - Local variable to store the L value. - - - - - Initializes a new instance of the class. - - The ColorSpace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the a* component for this color. - - The a* component of this color. - The range for this value is defined by the Range property of the underlying Lab colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the b* component for this color. - - The b* component of this color. - The range for this value is defined by the Range property of the underlying Lab colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the l component for this color. - - The l component of this color. - The acceptable range for this value is [0.0 100.0]. 0.0 means the darkest color that can be achieved, and 100.0 means the lightest color. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Represents a Lab colorspace - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Local variable to store the WhitePoint. - - - - - Local variable to store the BlackPoint - - - - - Local variable to store the Range - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Initializes the PdfLab Colorspace. - - - - - Creates PdfLab colorspace Array - - PdfLab's colorspace Array. - - - - Gets or sets BlackPoint - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.BlackPoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.BlackPoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the Range - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the white point - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Represents a separation color, based on a separation colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the tint value. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the Tint Value. - - A float value specifying the tint of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the lightest color that can be achieved, and 1.0 means the darkest color. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Represents a separation colorspace - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Local variable to store the Coloring. - - - - - Local variable to store teh Pdffuncion. - - - - - Local variable to store the internal stream. - - - - - Local variable to store the Alternative Colorspaces. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Get the profile data. - - The profile data - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the alternate color spaces. - - The alternate color space to be used when the destination device does not support separation colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Gets or sets the colorant represented by this separation colorspace. - - The name of the colorant. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Gets or sets the tint transform function for the this colorspace. - - Tint transform function for the colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Compresses the TIFF using JBIG2 encoder. - - - - - Read Pix information for the image. - - - - - Read pix information from Tiff. - - - - - Create Pix from the tiff. - - - - - Swap bytes for Little Endian byte order. - - - - - Swap bytes for Little Endian byte order. - - - - - Read Tiff compression format. - - - - - Read file format. - - - - - Initialize encoder. - - - - - Initialize encoder context. - - - - - Produces symbol. - - - - - Classify and record information about a page. - - - - - Adds page. - - - - - Finds image components. - - - - - Filter. - - - - - Gets the value from the array. - - - - - - - - - - Adds number and extends the array. - - - - - - - - Returns Box rectangle. - - - - - Returns Pixa - - - - - Return pix with dilated word mask. - - - - - Sequence of binary rasterop morphological operations. - - - - - Replicated integer expansion. - - - - - Replicated expansion integer scaling. - - - - - Power of 2 expansion. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Removes border of the pix. - - - - - Pix with pixels removed around border. - - - - - Adds border to the pix. - - - - - Adds border to the pix. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Image display for debugging. - - - - - Image display for debugging. - - - - - Top level scaling dispatcher. - - - - - Top level scaling dispatcher without sharpening. - - - - - Linearly interpreted (up) scaling. - - - - - Color interpolated scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Color interpolated scaling: 2x upscaling. - - - - - Color interpolated scaling: 2x upscaling. - - - - - Linearly interpreted (up) scaling. - - - - - Grayscale interpolated scaling 4x upscaling. - - - - - Grayscale interpolated scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Grayscale interpolated scaling: 2x upscaling. - - - - - Unsharp masking. - - - - - Full image set to arbitrary value - - - - - Grayscale block convolution - - - - - Grayscale Block Convolution - - - - - Accumulator for 1, 8 and 32 bpp convolution - - - - - Grayscale block convolution. - - - - - Unsharp masking. - - - - - Unsharp masking. - - - - - Unsharp masking. - - - - - Assign border pixels. - - - - - Downscaling with (antialias) area mapping. - - - - - Color and grayscale downsampling with (antialias) area mapping. - - - - - Color and grayscale downsampling with (antialias) area mapping. - - - - - Downscaling with (antialias) area mapping. - - - - - 2x area mapped downscaling. - - - - - Top-level conversion to 8 or 32 bpp, without colormap. - - - - - Top level conversion to 8 bpp. - - - - - Conversion from RGB color to grayscale. - - - - - Conversion from RGB color to grayscale. - - - - - Convert colored image to grayscale. - - - - - Add colormap losslessly (8 to 8). - - - - - Colormap creation. - - - - - Unpacking conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Unpacking conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Colormap creation. - - - - - Colormap creation and addition. - - - - - Conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Binary scaling by closest pixel sampling. - - - - - Binary scaling by closest pixel sampling. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 2x. - - - - - Returns an 8 bit value for the sum of ON pixels in a 2x2 square. - - - - - Table of 256 uint. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 3x. - - - - - Returns an 8 bit value for the sum of ON pixels in a 3x3 square. - - - - - Table of 64 uint. - - - - - Pix scaled down by 4x in each direction. - - - - - Scale to gray 4x. - - - - - 8 bit value for the sum of ON pixels in a 4x4 square. - - - - - Table of 256 uint. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 8x. - - - - - Scale to gray 8x. - - - - - Table of integers. - - - - - Conversion from 16 bpp to 8 bpp. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Erodes source Pix using hits in Sel. - - - - - Max translations for erosion and hmt. - - - - - Sets all data to 1. - - - - - Helpers for arg processing. - - - - - Reallocate image data if sizes are different. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Creates rectangular sel of all hits, misses or don't cares. - - - - - Generic binary morphological ops implemented with rasterop. - - - - - Full image clear to arbitrary value. - - - - - Parser verifier for binary morphological operations. - - - - - Rank filtered binary reductions. - - - - - Pix is downscaled by 2x from source - - - - - Low level subsampled reduction - - - - - This table permutes the bits in a byte. - - - - - Returns pix at the index. - - - - - Gets bounding boxes or Pixa of the components. - - - - - Adds Pix - - - - - Doubles the size of the pixa and boxa ptr arrays. - - - - - Doubles the size of the pixa and boxa ptr arrays. - - - - - Copies Boxa. - - - - - Returns Box at the specified index. - - - - - Extract retangular region. - - - - - Clip box to the rectangle - - - - - Finds bounding boxes of 4 or 8 connected components in a binary image. - - - - - Adds Box. - - - - - Doubles the size of the boxa ptr array. - - - - - Stack based Seed fill algorithm. - - - - - Stack based 4 connected components seedfill algorithm. - - - - - Stack based 8 connected component seedfill algorithm. - - - - - Removes line segment. - - - - - Stack helper functions. - - - - - Identify the connection component to be erased. - - - - - Identify the connected component to be erased. - - - - - Pixel counting. - - For a binary image, if there are no black pixels, returns 1. - For a grayscale image, if all pixels are black, returns 1. - For an RGB image, if all 4 components in every pixel is 0, returns 1. - - - - Low level power of 2 binary expansion - - - - - Expansion tables for 8x expansion. - - - - - Expansion tables for 2x expansion. - - - - - Expansion tables for 4x expansion. - - - - - Pixelwise binarization with fixed threshold. - - - - - Binarization with fixed threshold. - - - - - Simple pixelwise binarization. - - - - - 4x upscale Pix, using linear interpolation, followed by thresholding to binary. - - - - - 2x upscale Pix, using linear interpolation, followed by thresholding to binary. - - - - - Grayscale interpolated scaling: 2x upscaling. - - - - - Scales resolution of the Pix - - - - - Removes colormap for the Pix. - - - - - General raster operation. - - - - - Scales width, performs clipping, checks alignment, and dispatches for the rasterop. - - - - - Rasterop without vertical word alignment. - - - - - Rasterop with vertical word alignment. - - - - - Rasterop with vertical word alignment. - - - - - Scales width, performs clipping, checks alignment, and dispatches for the rasterop. - - - - - Low level uni rasterop. - - - - - Dest rect is left aligned on (32-bit) word boundaries. - - - - - - - - - - Color sample setting and extraction. - - - - - Creates Pix. - - - - - Reads color for colormap. - - - - - Copy Pix. - - - - - Creates Pix of the same size as the input Pix. - - - - - Creates Pix of the same size as the input Pix. - - - - - Copies colormap from source Pix. - - - - - Copies resolution from source Pix. - - - - - Creates Pix. - - - - - Create Pix. - - - - - Checks if Colormap has color. - - - - - Read colormap array. - - - - - Regenerated line info. - - - - - No errors detected. - - - - - Receiver regenerated lines. - - - - - Uncorrected errors exist. - - - - - Compression scheme. - - - - - Dump mode. - - - - - CCITT modified Huffman RLE. - - - - - CCITT Group 3 fax encoding. - - - - - CCITT T.4 (TIFF 6 name for CCITT Group 3 fax encoding). - - - - - CCITT Group 4 fax encoding. - - - - - CCITT T.6 (TIFF 6 name for CCITT Group 4 fax encoding). - - - - - Lempel-Ziv & Welch. - - - - - Original JPEG / Old-style JPEG (6.0). - - - - - JPEG DCT compression. - - - - - NeXT 2-bit RLE. - - - - - CCITT RLE. - - - - - Macintosh RLE. - - - - - ThunderScan RLE. - - - - - IT8 CT w/padding. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Linework RLE. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Monochrome picture. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Binary line art. Reserved for ANSI IT8 TIFF/IT. - - - - - Pixar companded 10bit LZW. Reserved for Pixar. - - - - - Pixar companded 11bit ZIP. Reserved for Pixar. - - - - - Deflate compression. - - - - - Deflate compression, as recognized by Adobe. - - - - - Kodak DCS encoding. - - - - - ISO JBIG. - - - - - SGI Log Luminance RLE. - - - - - SGI Log 24-bit packed. - - - - - Leadtools JPEG2000. - - - - - Information about extra samples. - - - - - Unspecified data. - - - - - Associated alpha data. - - - - - Unassociated alpha data. - - - - - Group 3/4 format control. - - - - - Default, include RTC. - - - - - No RTC at end of data. - - - - - No EOL code at end of row. - - - - - Byte align row. - - - - - Word align row. - - - - - TIFF Class F. - - - - - Subfile data descriptor. - - - - - Reduced resolution version. - - - - - One page of many. - - - - - Transparency mask. - - - - - Data order within a byte. - - - - - Most significant -> least. - - - - - Least significant -> most. - - - - - Options for CCITT Group 3/4 fax encoding. - - - - - Unknown (uninitialized). - - - - - 2-dimensional coding. - - - - - Data not compressed. - - - - - Fill to byte boundary. - - - - - Inks in separated image. - - - - - Cyan-magenta-yellow-black color. - - - - - Multi-ink or hi-fi color. - - - - - Auto RGB<=>YCbCr convert. - - - - - No conversion (default). - - - - - Do auto conversion. - - - - - Jpeg Tables Mode. - - - - - None. - - - - - Include quantization tables. - - - - - Include Huffman tables. - - - - - Kind of data in subfile. - - - - - Full resolution image data. - - - - - Reduced size image data. - - - - - One page of many. - - - - - Image orientation. - - - - - Row 0 top, Column 0 lhs. - - - - - Row 0 top, Column 0 rhs. - - - - - Row 0 bottom, Column 0 rhs. - - - - - Row 0 bottom, Column 0 lhs. - - - - - Row 0 lhs, Column 0 top. - - - - - Row 0 rhs, Column 0 top. - - - - - Row 0 rhs, Column 0 bottom. - - - - - Row 0 lhs, Column 0 bottom. - - - - - Photometric interpretation. - - - - - Min value is white. - - - - - Min value is black. - - - - - RGB color model. - - - - - Color map indexed. - - - - - [obsoleted by TIFF rev. 6.0] Holdout mask. - - - - - Color separations. - - - - - CCIR 601. - - - - - 1976 CIE L*a*b*. - - - - - ICC L*a*b*. Introduced post TIFF rev 6.0 by Adobe TIFF Technote 4. - - - - - ITU L*a*b*. - - - - - CIE Log2(L). - - - - - CIE Log2(L) (u',v'). - - - - - Storage organization. - - - - - Unknown (uninitialized). - - - - - Single image plane. - - - - - Separate planes of data. - - - - - Prediction scheme w/ LZW. - - - - - No prediction scheme used. - - - - - Horizontal differencing. - - - - - Floating point predictor. - - - - - Units of resolutions. - - - - - No meaningful units. - - - - - English. - - - - - Metric. - - - - - Data sample format. - - - - - Unsigned integer data - - - - - Signed integer data - - - - - IEEE floating point data - - - - - Untyped data - - - - - Complex signed int - - - - - Complex ieee floating - - - - - Thresholding used on data. - - - - - B&W art scan. - - - - - Dithered scan. - - - - - Usually Floyd-Steinberg. - - - - - Tag data type. - - - - - Placeholder. - - - - - For field descriptor searching. - - - - - 8-bit unsigned integer. - - - - - 8-bit bytes with last byte null. - - - - - 16-bit unsigned integer. - - - - - 32-bit unsigned integer. - - - - - 64-bit unsigned fraction. - - - - - 8-bit signed integer. - - - - - 8-bit untyped data. - - - - - 16-bit signed integer. - - - - - 32-bit signed integer. - - - - - 64-bit signed fraction. - - - - - 32-bit IEEE floating point. - - - - - 64-bit IEEE floating point. - - - - - 32-bit unsigned integer (offset) - - - - - Subsample positioning. - - - - - As in PostScript Level 2 - - - - - As in CCIR 601-1 - - - - - TIFF tag definitions. - - - - - Tag placeholder - - - - - Subfile data descriptor. - For the list of possible values, see . - - - - - Kind of data in subfile. For the list of possible values, see . - - - - - Image width in pixels. - - - - - Image height in pixels. - - - - - Bits per channel (sample). - - - - - Data compression technique. - For the list of possible values, see . - - - - - Photometric interpretation. - For the list of possible values, see . - - - - - Thresholding used on data. For the list of possible values, see . - - - - - Dithering matrix width. - - - - - Dithering matrix height. - - - - - Data order within a byte. - - - - - Name of document which holds for image. - - - - - Information about image. - - - - - Scanner manufacturer name. - - - - - Scanner model name/number. - - - - - Offsets to data strips. - - - - - Image orientation. For the list of possible values, see . - - - - - Samples per pixel. - - - - - Rows per strip of data. - - - - - Bytes counts for strips. - - - - - Minimum sample value. - - - - - Maximum sample value. - - - - - Pixels/resolution in x. - - - - - Pixels/resolution in y. - - - - - Storage organization. - For the list of possible values, see . - - - - - Page name image is from. - - - - - X page offset of image lhs. - - - - - Y page offset of image lhs. - - - - - Byte offset to free block. - - - - - Sizes of free blocks. - - - - - Gray scale curve accuracy. - - - - - Gray scale response curve. - - - - - Options for CCITT Group 3 fax encoding. 32 flag bits. - - - - - - - - - Options for CCITT Group 4 fax encoding. 32 flag bits. - - - - - - - - - Units of resolutions. - - - - - Page numbers of multi-page. - - - - - Color curve accuracy. - - - - - Colorimetry info. - - - - - Name & release. - - - - - Creation date and time. - - - - - Creator of image. - - - - - Machine where created. - - - - - Prediction scheme w/ LZW. - - - - - Image white point. - - - - - Primary chromaticities. - - - - - RGB map for pallette image. - - - - - Highlight + shadow info. - - - - - Tile width in pixels. - - - - - Tile height in pixels. - - - - - Offsets to data tiles. - - - - - Byte counts for tiles. - - - - - Lines with wrong pixel count. - - - - - Regenerated line info. - - - - - Max consecutive bad lines. - - - - - Subimage descriptors. - - - - - Inks in separated image. - - - - - ASCII names of inks. - - - - - Number of inks. - - - - - 0% and 100% dot codes. - - - - - Separation target. - - - - - Information about extra samples. - - - - - Data sample format. - - - - - Variable MinSampleValue. - - - - - Variable MaxSampleValue. - - - - - ClipPath. - - - - - XClipPathUnits. - - - - - YClipPathUnits. - - - - - Indexed. - - - - - JPEG table stream. - - - - - OPI Proxy. - - - - - JPEG processing algorithm. - - - - - Pointer to SOI marker. - - - - - JFIF stream length - - - - - Restart interval length. - - - - - Lossless proc predictor. - - - - - Lossless point transform. - - - - - Q matrice offsets. - - - - - DCT table offsets. - - - - - AC coefficient offsets. - - - - - RGB -> YCbCr transform. - - - - - YCbCr subsampling factors. - - - - - Subsample positioning. - - - - - Colorimetry info. - - - - - XML packet. - - - - - OPI ImageID. - - - - - Image reference points. - - - - - Region-xform tack point. - - - - - Warp quadrilateral. - - - - - Affine transformation matrix. - - - - - Use EXTRASAMPLE tag. - - - - - Use SAMPLEFORMAT tag. - - - - - Z depth of image. - - - - - Z depth/data tile. - - - - - Full image size in X. - - - - - Full image size in Y. - - - - - Texture map format. - - - - - S&T wrap modes. - - - - - Cotan(fov) for env. maps. - - - - - Used to identify special image modes and data used by Pixar's texture formats. - - - - - Used to identify special image modes and data used by Pixar's texture formats. - - - - - Device serial number. - - - - - Copyright string. - - - - - IPTC TAG from RichTIFF specifications. - - - - - Site name. - - - - - Color seq. [RGB, CMYK, etc]. - - - - - DDES Header. - - - - - Raster scanline padding. - - - - - The number of bits in short run. - - - - - The number of bits in long run. - - - - - LW colortable. - - - - - BP/BL image color switch. - - - - - BP/BL bg color switch. - - - - - BP/BL image color value. - - - - - BP/BL bg color value. - - - - - MP pixel intensity value. - - - - - HC transparency switch. - - - - - Color characterization table. - - - - - HC usage indicator. - - - - - Trapping indicator (untrapped = 0, trapped = 1). - - - - - CMYK color equivalents. - - - - - Sequence Frame Count. - - - - - - - - - Pointer to EXIF private directory. - - - - - ICC profile data. - - - - - JBIG options. - - - - - Pointer to GPS private directory. - - - - - Encoded Class 2 ses. params. - - - - - Received SubAddr string. - - - - - Receive time (secs). - - - - - Encoded fax ses. params, Table 2/T.30. - - - - - Sample value to Nits. - - - - - - - - - Pointer to Interoperability private directory. - - - - - DNG version number. - - - - - DNG compatibility version. - - - - - Name for the camera model. - - - - - Localized camera model name. - - - - - CFAPattern->LinearRaw space mapping. - - - - - Spatial layout of the CFA. - - - - - Lookup table description. - - - - - Repeat pattern size for the BlackLevel tag. - - - - - Zero light encoding level. - - - - - Zero light encoding level differences (columns). - - - - - Zero light encoding level differences (rows). - - - - - Fully saturated encoding level. - - - - - Default scale factors. - - - - - Origin of the final image area. - - - - - Size of the final image area. - - - - - XYZ->reference color space transformation matrix 1. - - - - - XYZ->reference color space transformation matrix 2. - - - - - Calibration matrix 1. - - - - - Calibration matrix 2. - - - - - Dimensionality reduction matrix 1. - - - - - Dimensionality reduction matrix 2. - - - - - Gain applied the stored raw values. - - - - - Selected white balance in linear reference space. - - - - - Selected white balance in x-y chromaticity coordinates. - - - - - How much to move the zero point. - - - - - Relative noise level. - - - - - Relative amount of sharpening. - - - - - How closely the values of the green pixels in the blue/green rows - track the values of the green pixels in the red/green rows. - - - - - Non-linear encoding range. - - - - - Camera's serial number. - - - - - Information about the lens. - - - - - Chroma blur radius. - - - - - Relative strength of the camera's anti-alias filter. - - - - - Used by Adobe Camera Raw. - - - - - Manufacturer's private data. - - - - - Whether the EXIF MakerNote tag is safe to preserve along with the rest of the EXIF data. - - - - - Illuminant 1. - - - - - Illuminant 2. - - - - - Best quality multiplier. - - - - - Unique identifier for the raw image data. - - - - - File name of the original raw file. - - - - - Contents of the original raw file. - - - - - Active (non-masked) pixels of the sensor. - - - - - List of coordinates of fully masked pixels. - - - - - Used to map cameras's color space into ICC profile space. - - - - - Used to map cameras's color space into ICC profile space. - - - - - - - - - - - - - - - Undefined tag used by Eastman Kodak, hue shift correction data. - - - - - Group 3/4 format control. - - - - - Compression quality level. Quality level is on the IJG 0-100 scale. Default value is 75. - - - - - Auto RGB<=>YCbCr convert. - - - - - Default is | . - - - - - G3/G4 fill function. - - - - - PixarLogCodec I/O data sz. - - - - - Imager mode & filter. - - - - - Interpolation mode. - - - - - Color balance values. - - - - - Color correction values. - - - - - Gamma value. - - - - - Toe & shoulder points. - - - - - Calibration file description. - - - - - Compression quality level. - Quality level is on the ZLIB 1-9 scale. Default value is -1. - - - - - PixarLog uses same scale. - - - - - Area of image to acquire. - - - - - SGILog user data format. - - - - - SGILog data encoding control. - - - - - Exposure time. - - - - - F number. - - - - - Exposure program. - - - - - Spectral sensitivity. - - - - - ISO speed rating. - - - - - Optoelectric conversion factor. - - - - - Exif version. - - - - - Date and time of original data generation. - - - - - Date and time of digital data generation. - - - - - Meaning of each component. - - - - - Image compression mode. - - - - - Shutter speed. - - - - - Aperture. - - - - - Brightness. - - - - - Exposure bias. - - - - - Maximum lens aperture. - - - - - Subject distance. - - - - - Metering mode. - - - - - Light source. - - - - - Flash. - - - - - Lens focal length. - - - - - Subject area. - - - - - Manufacturer notes. - - - - - User comments. - - - - - DateTime subseconds. - - - - - DateTimeOriginal subseconds. - - - - - DateTimeDigitized subseconds. - - - - - Supported Flashpix version. - - - - - Color space information. - - - - - Valid image width. - - - - - Valid image height. - - - - - Related audio file. - - - - - Flash energy. - - - - - Spatial frequency response. - - - - - Focal plane X resolution. - - - - - Focal plane Y resolution. - - - - - Focal plane resolution unit. - - - - - Subject location. - - - - - Exposure index. - - - - - Sensing method. - - - - - File source. - - - - - Scene type. - - - - - CFA pattern. - - - - - Custom image processing. - - - - - Exposure mode. - - - - - White balance. - - - - - Digital zoom ratio. - - - - - Focal length in 35 mm film. - - - - - Scene capture type. - - - - - Gain control. - - - - - Contrast. - - - - - Saturation. - - - - - Sharpness. - - - - - Device settings description. - - - - - Subject distance range. - - - - - Unique image ID. - - - - - The unit of density. - - - - - Unknown density - - - - - Dots/inch - - - - - Dots/cm - - - - - Known color spaces. - - - - - Unspecified color space. - - - - - Grayscale - - - - - RGB - - - - - YCbCr (also known as YUV) - - - - - CMYK - - - - - YCbCrK - - - - - Algorithm used for the DCT step. - - - - - Slow but accurate integer algorithm. - - - - - Faster, less accurate integer method. - - - - - Floating-point method. - - - - - Dithering options for decompression. - - - - - No dithering: fast, very low quality - - - - - Ordered dither: moderate speed and quality - - - - - Floyd-Steinberg dither: slow, high quality - - - - - Message codes used in code to signal errors, warning and trace messages. - - - - - Must be first entry! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Describes a result of read operation. - - - - - Suspended due to lack of input data. Can occur only if a suspending data source is used. - - - - - Found valid image datastream. - - - - - Found valid table-specs-only datastream. - - - - - Reached a SOS marker (the start of a new scan) - - - - - Reached the EOI marker (end of image) - - - - - Completed reading one MCU row of compressed data. - - - - - Completed reading last MCU row of current scan. - - - - - JPEG marker codes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Operating modes for buffer controllers - - - - - Use MSB2LSB (most significant -> least) fill order - - - - - Use LSB2MSB (least significant -> most) fill order - - - - - natural bit fill order for machine - - - - - current directory must be written - - - - - data buffers setup - - - - - encoder/decoder setup done - - - - - written 1+ scanlines to file - - - - - byte swap file information - - - - - inhibit bit reversal logic - - - - - my raw data buffer; free on close - - - - - file is tile, not strip- based - - - - - need call to postencode routine - - - - - currently writing a subifd - - - - - library is doing data up-sampling - - - - - enable strip chopping support - - - - - read header only, do not process the first directory - - - - - skip reading of raw uncompressed image data - - - - - Field bits (flags) for tags. - - - - - This value is used to signify custom tags. - - - - - This value is used as a base (starting) value for codec-private tags. - - - - - Last usable value for field bit. All tags values should be less than this value. - - - - - Holds a value of a Tiff tag. - - - - - Retrieves value converted to byte. - - - - - Retrieves value converted to short. - - - - - Retrieves value converted to ushort. - - - - - Retrieves value converted to int. - - - - - Retrieves value converted to uint. - - - - - Retrieves value converted to float. - - - - - Retrieves value converted to double. - - - - - Retrieves value converted to string. - - - - - Retrieves value converted to byte array. - - - - - Retrieves value converted to array of bytes. - - - - - Retrieves value converted to array of short values. - - - - - Retrieves value converted to array of ushort values. - - - - - Retrieves value converted to array of int values. - - - - - Retrieves value converted to array of uint values. - - - - - Retrieves value converted to array of float values. - - - - - Retrieves value converted to array of double values. - - - - - Gets the value. - - The value. - - - - Base class for all codecs within the library. - - - - - An instance of . - - - - - Compression scheme this codec impelements. - - - - - Codec name. - - - - - Initializes a new instance of the class. - - - - - Initializes this instance. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Flushes any internal data buffers and terminates current operation. - - - - - Seeks the specified row in the strip being processed. - - - - - Cleanups the state of the codec. - - - - - Calculates and/or constrains a strip size. - - - - - Calculate and/or constrains a tile size - - - - - Gets a value indicating whether this codec can decode data. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Flushes any internal data buffers and terminates current operation. - - - - - Cleanups the state of the codec. - - - - - Decode the requested amount of G3 1D-encoded data. - - - - - Decode the requested amount of G3 2D-encoded data. - - - - - Decode the requested amount of RLE-encoded data. - - - - - Decode the requested amount of G4-encoded data. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Tiff tag methods. - - - - - untyped data - - - - - signed integer data - - - - - unsigned integer data - - - - - IEEE floating point data - - - - - Sets the value(s) of a tag in a TIFF file/stream open for writing. - - - - - Gets the value(s) of a tag in an open TIFF file. - - - - - Install extra samples information. - - - - - predictor tag value - - - - - sample stride over data - - - - - tile/strip row size - - - - - horizontal differencer/accumulator - - - - - Setups the decoder part of the codec. - - - - - Decodes one row of image data. - - - - - - Decodes one tile of image data. - - - - - Floating point predictor accumulation routine. - - - - - Floating point predictor differencing routine. - - - - - Decode a scanline and apply the predictor routine. - - - - - Decode a tile/strip and apply the predictor routine. Note that horizontal differencing - must be done on a row-by-row basis. The width of a "row" has already been calculated - at pre-decode time according to the strip/tile dimensions. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Seeks the specified row in the strip being processed. - - - - - Decode a hunk of pixels. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Tag Image File Format (TIFF) - - - - - undefined state - - - - - undefined state - - - - - name of open file - - - - - open mode (O_*) - - - - - file offset of current directory - - - - - internal rep of current directory - - - - - current scanline - - - - - current strip for read/write - - - - - current tile for read/write - - - - - # of bytes in a tile - - - - - # of bytes in a scanline - - - - - raw data buffer - - - - - # of bytes in raw data buffer - - - - - current spot in raw buffer - - - - - bytes unread from raw buffer - - - - - callback parameter - - - - - post decoding method type - - - - - tag get/set/print routines - - - - - file offset of following directory - - - - - list of offsets to already seen directories to prevent IFD looping - - - - - number of entires in offset list - - - - - number of already seen directories - - - - - file's header block - - - - - data type shift counts - - - - - data type masks - - - - - current directory (index) - - - - - current offset for read/write - - - - - current offset for writing dir - - - - - remaining subifds to write - - - - - offset for patching SubIFD link - - - - - current column (offset by row too) - - - - - sorted table of registered tags - - - - - # entries in registered tag table - - - - - cached pointer to already found tag - - - - - extra client information. - - - - - stream used for read|write|etc. - - - - - post decoding routine - - - - - Compression schemes statically built into the library. - - - - - Checks the directory offset against the list of already seen directory - offsets. - - - - - Reads IFD structure from the specified offset. - - - - - Fetches a contiguous directory item. - - - - - Fetches an ASCII item from the file. - - - - - Fetch a single floating point value from the offset field and - return it as a native float. - - - - - Fetches an array of BYTE or SBYTE values. - - - - - Fetch an array of SHORT or SSHORT values. - - - - - Fetches an array of LONG or SLONG values. - - - - - Fetch an array of RATIONAL or SRATIONAL values. - - - - - Fetches an array of FLOAT values. - - - - - Fetches an array of DOUBLE values. - - - - - Fetches an array of ANY values. - - - - - Fetches a tag that is not handled by special case code. - - - - - Fetches samples/pixel short values for the specified tag and verify - that all values are the same. - - - - - Fetches samples/pixel long values for the specified tag and verify - that all values are the same. - - - - - Fetches samples/pixel ANY values for the specified tag and verify - that all values are the same. - - - - - Fetches a set of offsets or lengths. - - - - - Fetches and sets the RefBlackWhite tag. - - - - - Replace a single strip (tile) of uncompressed data with multiple - strips (tiles), each approximately 8Kbytes. - - - - - Set state to appear as if a strip has just been read in. - - - - - Read the specified strip and setup for decoding. - The data buffer is expanded, as necessary, to hold the strip's data. - - - - - Read the specified tile and setup for decoding. - The data buffer is expanded, as necessary, to hold the tile's data. - - - - - Retrieves the codec registered for the specified compression scheme. - - - - - Checks whether library has working codec for the specific compression scheme. - - - - - Initializes new instance of class and opens a TIFF file for - reading or writing. - - - - - Initializes new instance of class and opens a stream with TIFF data - for reading or writing. - - - - - Closes a previously opened TIFF file. - - - - - Frees and releases all resources allocated by this . - - - - - Merges given field information to existing one. - - - - - Retrieves field information for the specified tag. - - - - - Retrieves field information for the tag with specified name. - - - - - Retrieves field information for the specified tag. - - - - - Gets the value(s) of a tag in an open TIFF file. - - - - - Gets the value(s) of a tag in an open TIFF file or default value(s) of a tag if a tag - is not defined in the current directory and it has a default value(s). - - - - - Reads the contents of the next TIFF directory in an open TIFF file/stream and makes - it the current directory. - - - - - Reads a custom directory from the arbitrary offset within file/stream. - - - - - Calculates the size in bytes of a row of data as it would be returned in a call to - , or as it would be - expected in a call to . - - - - - Computes the number of bytes in a row-aligned strip. - - - - - Computes the number of bytes in a row-aligned strip with specified number of rows. - - - - - Computes the number of bytes in a raw (i.e. not decoded) strip. - - - - - Retrives the number of strips in the image. - - - - - Compute the number of bytes in a row-aligned tile. - - - - - Computes the number of bytes in a row-aligned tile with specified number of rows. - - - - - Compute the number of bytes in each row of a tile. - - - - - Computes which tile contains the specified coordinates (x, y, z, plane). - - - - - Checks whether the specified (x, y, z, plane) coordinates are within the bounds of - the image. - - - - - Retrives the number of tiles in the image. - - - - - Gets the value indicating whether the image data of this has a - tiled organization. - - - - - Gets the value indicating whether the image data returned through the read interface - methods is being up-sampled. - - - - - Gets the tiff stream. - - - - - Sets up the data buffer used to read raw (encoded) data from a file. - - - - - Setups the strips. - - - - - Releases storage associated with current directory. - - - - - Sets the value(s) of a tag in a TIFF file/stream open for writing. - - - - - Reads and decodes a scanline of data from an open TIFF file/stream. - - - - - Reads and decodes a scanline of data from an open TIFF file/stream. - - - - - Gets the number of bytes occupied by the item of given type. - - - - - Swaps the bytes in a single 16-bit item. - - - - - Swaps the bytes in a single 32-bit item. - - - - - Swaps the bytes in specified number of values in the array of 16-bit items. - - - - - Swaps the bytes in specified number of values in the array of 16-bit items starting at - specified offset. - - - - - Swaps the bytes in specified number of values in the array of triples (24-bit items) - starting at specified offset. - - - - - Swaps the bytes in specified number of values in the array of 32-bit items. - - - - - Swaps the bytes in specified number of values in the array of 32-bit items - starting at specified offset. - - - - - Swaps the bytes in specified number of values in the array of double-precision - floating-point numbers. - - - - - Swaps the bytes in specified number of values in the array of double-precision - floating-point numbers starting at specified offset. - - - - - Replaces specified number of bytes in with the - equivalent bit-reversed bytes. - - - - - Replaces specified number of bytes in with the - equivalent bit-reversed bytes starting at specified offset. - - - - - Retrieves a bit reversal table. - - - - - Converts a byte buffer into array of 32-bit values. - - - - - Converts array of 32-bit values into array of bytes. - - - - - Converts a byte buffer into array of 16-bit values. - - - - - Converts array of 16-bit values into array of bytes. - - - - - Delegate for LibTiff.Net extender method - - - - - Delegate for a method used to image decoded spans. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Cleanups the state of the codec. - - - - - Calculates and/or constrains a strip size. - - - - - Calculate and/or constrains a tile size - - - - - Decode a chunk of pixels. - "Standard" case: returned data is not downsampled. - - - - - Decode a chunk of pixels. - - - - - Gets a value indicating whether this codec can decode data. - - - - - JPEG library source data manager. - - - - - Data source object for decompression. - - - - - Initializes this instance. - - - - - Fills input buffer - - - - - Initializes the internal buffer. - - - - - Skip data - used to skip over a potentially large amount of - uninteresting data (such as an APPn marker). - - - - - This is the default resync_to_restart method for data source - managers to use if they don't have any better approach. - - - - - Terminate source - called by jpeg_finish_decompress - after all data has been read. Often a no-op. - - - - - Reads two bytes interpreted as an unsigned 16-bit integer. - - - - - Read a byte into variable V. - If must suspend, take the specified action (typically "return false"). - - - - - Gets the bytes. - - - - - Functions for fetching data from the data source module. - - - - - Alternate source manager for reading from JPEGTables. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Initializes this instance. - - - - - Fills input buffer - - - - - Skip data - used to skip over a potentially large amount of - uninteresting data (such as an APPn marker). - - - - - This is the default resync_to_restart method for data source - managers to use if they don't have any better approach. - - - - - Terminate source - called by jpeg_finish_decompress - after all data has been read. Often a no-op. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Internal format of a TIFF directory entry. - - - - - bit vector of fields that are set - - - - - size of offset and bytecount arrays - - - - - is the bytecount array sorted ascending? - - - - - number of items; length in spec - - - - - byte offset to field data - - - - - magic number (defines byte order) - - - - - TIFF version number - - - - - byte offset to first directory - - - - Base class for both JPEG compressor and decompresor. - - - - Base constructor. - - - - - Creates the array of samples. - - - - - Creates the array of blocks. - - - - - Creates 2-D sample array. - - - - - Gets a value indicating whether this instance is Jpeg decompressor. - - - - - Progress monitor. - - - - - JPEG decompression routine. - - - - - Initializes a new instance of the class. - - - - - Sets input stream. - - - - - Decompression startup: this will read the source datastream header markers, up to the beginning of the compressed data proper. - - - - - Decompression initialization. - - - - - Read some scanlines of data from the JPEG decompressor. - - - - - Finish JPEG decompression. - - - - - Alternate entry point to read raw data. - - - - - Is there more than one scan? - - - - - Initialize for an output pass in buffered-image mode - - - - - Finish up after an output pass in buffered-image mode. - - - - - Indicates if we have finished reading the input file. - - - - - Consume data in advance of what the decompressor requires. - - - - - Pre-calculate output image dimensions and related values for current decompression parameters. - - - - - Read or write the raw DCT coefficient arrays from a JPEG file (useful for lossless transcoding). - - - - - Aborts processing of a JPEG decompression operation. - - - - - Sets processor for special marker. - - - - - Control saving of COM and APPn markers into Marker_list. - - - - - Determine whether merged upsample/color conversion should be used. - - - - - Initialization of JPEG compression objects. - - - - - Master selection of decompression modules for transcoding (that is, reading - raw DCT coefficient arrays from an input JPEG file.) - - - - - Set up for an output pass, and perform any dummy pass(es) needed. - - - - - Set default decompression parameters. - - - - - Retrieves true because this is a decompressor. - - - - - Gets or sets the source for decompression. - - - - - Gets the width of image, set by - - - - - Gets the height of image, set by - - - - - Gets the number of color components in JPEG image. - - - - - Gets or sets the colorspace of JPEG image. - - - - - Gets the list of loaded special markers. - - - - - Gets or sets the output color space. - - - - - Gets or sets the numerator of the fraction of image scaling. - - - - - Gets or sets the denominator of the fraction of image scaling. - - - - - Gets or sets a value indicating whether to use buffered-image mode. - - - - - Enable or disable raw data output. - - - - - Gets or sets the algorithm used for the DCT step. - - - - - Enable or disable upsampling of chroma components. - - - - - Apply interblock smoothing in early stages of decoding progressive JPEG files. - - - - - Colors quantization. - - - - - Selects color dithering method. - - - - - Gets or sets a value indicating whether to use two-pass color quantization. - - - - - Maximum number of colors to use in generating a library-supplied color map. - - - - - Enable future use of 1-pass quantizer. - - - - - Enable future use of external colormap. - - - - - Enable future use of 2-pass quantizer. - - - - - Gets the actual width of output image. - - - - - Gets the actual height of output image. - - - - - Gets the number of color components in . - - - - - Gets the number of color components returned. - - - - - Gets the recommended height of scanline buffer. - - - - - The number of colors in the color map. - - - - - The color map, represented as a 2-D pixel array of rows - and columns. - - - - - Gets the number of scanlines returned so far. - - - - - Gets the number of SOS markers seen so far. - - - - - Gets the number of iMCU rows completed. - - - - - Gets the nominal scan number being displayed. - - - - - Gets the number of iMCU rows read. - - - - - Gets the current progression status.. - - - - - Gets the resolution information from JFIF marker. - - - - - Gets the horizontal component of pixel ratio. - - - - - Gets the vertical component of pixel ratio. - - - - - Gets the data precision. - - - - - Gets the largest vertical sample factor. - - - - - Gets the last read and unprocessed JPEG marker. - - - - - Comp_info[i] describes component that appears i'th in SOF - - - - - The delegate for application-supplied marker processing methods. - - - - - Basic info about one component (color channel). - - - - - Identifier for this component (0..255) - - - - - Its index in SOF or . - - - - - Horizontal sampling factor (1..4) - - - - - Vertical sampling factor (1..4) - - - - - Quantization table selector (0..3) - - - - - DC entropy table selector (0..3) - - - - - AC entropy table selector (0..3) - - - - - Gets or sets the width in blocks. - - - - - Gets the downsampled width. - - - - - Representation of special JPEG marker. - - - - - Gets the special marker. - - - - - Gets the full length of original data associated with the marker. - - - - - Gets the data associated with the marker. - - - - - Bitreading state saved across MCUs - - - - - Bitreading working state within an MCU - - - - - Encapsulates buffer of image samples for one color component - - - - - Derived data constructed for each Huffman table - - - - - - - - - Color quantization or color precision reduction - - - - - Module initialization routine for 1-pass color quantization. - - - - - Initialize for one-pass color quantization. - - - - - Finish up at the end of the pass. - - - - - Switch to a new external colormap between output passes. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Create the colormap. - - - - - Create the color index table. - - - - - Create the ordered-dither tables. - - - - - Allocate workspace for Floyd-Steinberg errors. - - - - - Return largest input value that should map to j'th output value - - - - - Return j'th output value, where j will range from 0 to maxj - - - - - Determine allocation of desired colors to components, - and fill in Ncolors[] array to indicate choice. - Return value is total number of colors (product of Ncolors[] values). - - - - - Create an ordered-dither array for a component having ncolors - distinct output values. - - - - - - - - - Module initialization routine for 2-pass color quantization. - - - - - Initialize for each processing pass. - - - - - Switch to a new external colormap between output passes. - - - - - Prescan some rows of pixels. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Finish up at the end of each pass. - - - - - Compute representative color for a box, put it in colormap[icolor] - - - - - Master routine for color selection - - - - - Repeatedly select and split the largest box until we have enough boxes - - - - - Find the splittable box with the largest color population - - - - - Find the splittable box with the largest (scaled) volume - - - - - Shrink the min/max bounds of a box to enclose only nonzero elements, - and recompute its volume and population - - - - - Initialize the error-limiting transfer function (lookup table). - - - - - - - - - Find the closest colormap entry for each cell in the update box, - - - - - Fill the inverse-colormap entries in the update box that contains - histogram cell c0/c1/c2. - - - - - Upsampling (note that upsampler must also call color converter) - - - - - Initialize for an upsampling pass. - - - - - Control routine to do upsampling (and color conversion). - - - - - Control routine to do upsampling (and color conversion). - - - - - Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. - - - - - Upsample and color convert for the case of 2:1 horizontal and 2:1 vertical. - - - - - Initialize tables for YCC->RGB colorspace conversion. - - - - - Expanded data source object for stdio input - - - - - Initialize source - called by jpeg_read_header - before any data is actually read. - - - - - Fill the input buffer - called whenever buffer is emptied. - - - - - Initialize for an upsampling pass. - - - - - Control routine to do upsampling (and color conversion). - - - - - This is a no-op version used for "uninteresting" components. - - - - - For full-size components, we just make color_buf[ci] point at the - input buffer, and thus avoid copying any data. - - - - - Fancy processing for the common case of 2:1 horizontal and 1:1 vertical. - - - - - Fast processing for the common case of 2:1 horizontal and 1:1 vertical. - - - - - Fancy processing for the common case of 2:1 horizontal and 2:1 vertical. - - - - - Fast processing for the common case of 2:1 horizontal and 2:1 vertical. - - - - - This version handles any integral sampling ratios. - - - - - Compute a/b rounded up to next integer, ie, ceil(a/b) - - - - - Compute a rounded up to next multiple of b, ie, ceil(a/b)*b - - - - - Copy some rows of samples from one place to another. - - - - - Expanded entropy decoder object for Huffman decoding. - - - - - Entropy decoding - - - - - Expand a Huffman table definition into the derived format - - - - - Initialize for a Huffman-compressed scan. - - - - - Decode and return one MCU's worth of Huffman-compressed coefficients. - - - - - Check for a restart marker and resynchronize decoder. - Returns false if must suspend. - - - - - Colorspace conversion - - - - - Module initialization routine for output colorspace conversion. - - - - - Convert some rows of samples to the output colorspace. - - - - - Initialize tables for YCC->RGB colorspace conversion. - - - - - Adobe-style YCCK->CMYK conversion. - - - - - Convert grayscale to RGB: just duplicate the graylevel three times. - - - - - Color conversion for grayscale: just copy the data. - - - - - Color conversion for no colorspace change: just copy the data, - converting from separate-planes to interleaved representation. - - - - - Coefficient buffer control - - - - - Initialize for an input processing pass. - - - - - Consume input data and store it in the full-image coefficient buffer. - - - - - Initialize for an output processing pass. - - - - - Decompress and return some data in the single-pass case. - - - - - Decompress and return some data in the multi-pass case. - - - - - Variant of decompress_data for use when doing block smoothing. - - - - - Determine whether block smoothing is applicable and safe. - - - - - Reset within-iMCU-row counters for a new row (input side) - - - - - Main buffer control (downsampled-data buffer) - - - - - Initialize for a processing pass. - - - - - Process some data. - This handles the simple case where no context is required. - - - - - Process some data. - This handles the case where context rows must be provided. - - - - - Process some data. - - - - - Allocate space for the funny pointer lists. - - - - - Create the funny pointer lists discussed in the comments above. - - - - - Set up the "wraparound" pointers at top and bottom of the pointer lists. - - - - - Change the pointer lists to duplicate the last sample row at the bottom - of the image. - - - - - Decompression postprocessing (color quantization buffer control) - - - - - Initialize postprocessing controller. - - - - - Initialize for a processing pass. - - - - - Process some data in the one-pass (strip buffer) case. - This is used for color precision reduction as well as one-pass quantization. - - - - - Process some data in the first pass of 2-pass quantization. - - - - - Process some data in the second pass of 2-pass quantization. - - - - - Master control module - - - - - Per-pass setup. - - - - - Finish up at end of an output pass. - - - - - Master selection of decompression modules. - - - - - Allocate and fill in the sample_range_limit table. - - - - - Input control module - - - - - Initialize the input controller module. - - - - - Reset state to begin a fresh datastream. - - - - - Initialize the input modules to read a scan of compressed data. - - - - - Finish up after inputting a compressed-data scan. - - - - - Read JPEG markers before, between, or after compressed-data scans. - - - - - Routines to calculate various quantities related to the size of the image. - - - - - Save away a copy of the Q-table referenced by each component present - in the current scan, unless already saved during a prior scan. - - - - - Do computations that are needed before processing a JPEG scan - cinfo.comps_in_scan and cinfo.cur_comp_info[] were set from SOS marker - - - - - - - - - Prepare for an output pass. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce an int result. In this module, both inputs and result - are 16 bits or less, so either int or short multiply will work. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Multiply a DCTELEM variable by an int constant, and immediately - descale to yield a DCTELEM result. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce a DCTELEM result. - - - - - Like DESCALE, but applies to a DCTELEM and produces an int. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce a float result. - - - - - Inverse-DCT routines that produce reduced-size output: - either 4x4, 2x2, or 1x1 pixels from an 8x8 DCT block. - - - - - Perform dequantization and inverse DCT on one block of coefficients, - producing a reduced-size 2x2 output block. - - - - - Perform dequantization and inverse DCT on one block of coefficients, - producing a reduced-size 1x1 output block. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce an int result. - - - - - Marker reading and parsing - - - - - Initialize the marker reader module. - - - - - Reset marker processing state to begin a fresh datastream. - - - - - Read markers until SOS or EOI. - - - - - Read a restart marker, which is expected to appear next in the datastream; - - - - - Find the next JPEG marker, save it in cinfo.unread_marker. - - - - - Install a special processing method for COM or APPn markers. - - - - - Save an APPn or COM marker into the marker list - - - - - Skip over an unknown or uninteresting variable-length marker - - - - - Process an APP0 or APP14 marker without saving it - - - - - Examine first few bytes from an APP0. - - - - - Examine first few bytes from an APP14. - - - - - Process an SOI marker - - - - - Process a SOFn marker - - - - - Process a SOS marker - - - - - Process a DHT marker - - - - - Process a DQT marker - - - - - Process a DRI marker - - - - - Like next_marker, but used to obtain the initial SOI marker. - - - - - Expanded entropy decoder object for progressive Huffman decoding. - - - - - Initialize for a Huffman-compressed scan. - - - - - MCU decoding for DC initial scan (either spectral selection, - or first pass of successive approximation). - - - - - MCU decoding for AC initial scan (either spectral selection, - or first pass of successive approximation). - - - - - MCU decoding for DC successive approximation refinement scan. - - - - - Check for a restart marker and resynchronize decoder. - - - - - MCU decoding for AC successive approximation refinement scan. - - - - - Defines some JPEG constants. - - - - - The basic DCT block is 8x8 samples - - - - - DCTSIZE squared; the number of elements in a block. - - - - - Quantization tables are numbered 0..3 - - - - - Huffman tables are numbered 0..3 - - - - - JPEG limit on the number of components in one scan. - - - - - Compressor's limit on blocks per MCU. - - - - - Decompressor's limit on blocks per MCU. - - - - - JPEG limit on sampling factors. - - - - - Maximum number of color channels allowed in JPEG image. - - - - - The size of sample. - - - - - DCT method used by default. - - - - - Fastest DCT method. - - - - - A tad under 64K to prevent overflows. - - - - - The maximum sample value. - - - - - The medium sample value. - - - - - Offset of Red in an RGB scanline element. - - - - - Offset of Green in an RGB scanline element. - - - - - Offset of Blue in an RGB scanline element. - - - - - Bytes per RGB scanline element. - - - - - The number of bits of lookahead. - - - - - DCT coefficient quantization tables. - - - - - Gets or sets a value indicating whether the table has been output to file. - - - - - JPEG virtual array. - - - - - Request a virtual 2-D array - - - - - Access the part of a virtual array. - - - - - Gets or sets the error processor. - - - - - One block of coefficients. - - - - - Gets or sets the element at the specified index. - - - - - Huffman coding table. - - - - - Gets or sets a value indicating whether the table has been output to file. - - - - - The progress monitor object. - - - - - Indicates that progress was changed. - - - - - Occurs when progress is changed. - - - - - Gets or sets the number of work units completed in this pass. - - - - - Gets or sets the total number of work units in this pass. - - - - - Gets or sets the number of passes completed so far. - - - - - Gets or sets the total number of passes expected. - - - - - Represents a TIFF field information. - - - - - marker for variable length tags - - - - - marker for SamplesPerPixel-bound tags - - - - - marker for integer variable length tags - - - - - Initializes a new instance of the class. - - - - - Returns a that represents this instance. - - - - - The tag described by this instance. - - - - - Number of values to read when reading field information or - one of , and . - - - - - Number of values to write when writing field information or - one of , and . - - - - - Type of the field values. - - - - - Index of the bit to use in "Set Fields Vector" when this instance - is merged into field info collection. Take a look at class. - - - - - If true, then it is permissible to set the tag's value even after writing has commenced. - - - - - If true, then number of value elements should be passed to - method as second parameter (right after tag type AND before values itself). - - - - - The name (or description) of the tag this instance describes. - - - - - A stream used by the library for TIFF reading and writing. - - - - - Reads a sequence of bytes from the stream and advances the position within the stream - by the number of bytes read. - - - - - Sets the position within the current stream. - - - - - Closes the current stream. - - - - - Gets the length in bytes of the stream. - - - - - Compresses data using the ASCII85 compression - method, reproducing the original text or binary data. - - - - - - Summary description of IPDFCompressor. - - - - - - Compresses bytes data. - - Bytes data. - - Compressed bytes data. - - - - - - Compresses string data. - - String data. - - Compressed string data. - - - - - - Compresses stream data. - - Stream data. - - Compressed streams data. - - - - - - Decompresses string data. - - String data. - - Decompressed bytes data. - - - - - - Decompresses bytes data. - - Bytes data. - - Decompressed bytes data. - - - - - - Decompresses stream data. - - Stream data. - - Decompressed stream data. - - - - - - Gets the compressor type. - - - - - - Gets the compressor name in PDF format. - - - - - Internal variable contains the ascii offset. - - - - - Internal variable contains the encoded block. - - - - - Internal variable contains the decoded block. - - - - - Internal variable. - - - - - The code Table. - - - - - Initializes a new instance of the class. - - - - - Decompresses the specified input data. - - The input data. - The output data. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Compresses stream data. - - Stream data to be compressed. - Compressed streams data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - decompressed bytes data - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Decodes the block. - - - - - Decodes the block. - - The bytes. - - - - Gets the Type of the compressor. - - - - - - Gets name of compressor in PDF format. - - - - - - Encodes data to CCITT format. - - - - - End of line. - - - - - Invalide data. - - - - - End of input data. - - - - - Incomplete run code. - - - - - Bit length of g3 code. - - - - - G3 code. - - - - - Run length in bits. - - - - - EOL code value - 0000 0000 0000 1. - - - - - Holds table zero span. - - - - - Holds table one span. - - - - - Holds terminating white codes. - - - - - Holds terminating black codes. - - - - - 001 - - - - - 0001 - - - - - holds mask table. - - - - - Holds vertical table. - - - - - Holds row bytes. - - - - - Holds row pixels. - - - - - Holds bit count. - - - - - Holds data. - - - - - Holds reference line. - - - - - Holds out buffer array list. - - - - - Holds image data. - - - - - Holds offset data. - - - - - Initializes a new instance of the class. - - - - - Initializes the class. - - - - - Encodes the image. - - The image data. - The image width. - The image height. - - - - - Creates ccitt vertical table. - - - - - Creates ccitt zero span. - - - - - Creates citt one span. - - - - - Creates terminating white codes. - - - - - Creates terminating black codes. - - - - - Putcodes the specified table. - - The table. - - - - Putspans the specified span. - - The span. - The tab. - - - - Puts the bits. - - The bits. - The length. - - - - Implements Fax3Encode. - - - - - Implements Fax4Encode. - - - - - Pixels the specified data. - - The data. - The offset. - The bit. - - - - - Finds the first span. - - The bp. - The offset. - The bs. - The be. - - - - - Finds the zero span. - - The bp. - The offset. - The bs. - The be. - - - - - Finddiffs the specified bp. - - The bp. - The offset. - The bs. - The be. - The color. - - - - - Finddiff2s the specified bp. - - The bp. - The offset. - The bs. - The be. - The color. - - - - - Represents the attachments of the PDF document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document. - document.Attachments.Add(attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document. - document.Attachments.Add(attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Represents specification of embedded file. - - - - - Represents base class for file specification objects. - - - - - Internal variable to store dictionary. - - - - Name of the file. - - - - Initializes instance. - - - - - Saves an instance. - - - - - Formats file name to Unix format. - - File name to format. - bool value which represents the file path type. - Formatted file name. - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The - instance containing the event data. - - - - Gets or sets the name of the file. - - The name of the file. - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Internal variable to store description. - - - - - Embedded file instance. - - - - - Dictionary to store file specification properties. - - - - - PortfolioAttributes instance. - - - - file name - - - Name of the file. - The data. - - - Name of the file. - The stream. - - - - Initializes instance. - - - - - Saves object state. - - - - - - - - Gets or sets the data. - - The data. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the MIME type of the embedded file. - - The MIME type of the embedded file. - - - - Gets or sets creation date. - - Creation date. - - - - Gets or sets modification date. - - Modification date. - - - - Gets or sets the Portfolio attributes. - - - - - Gets the embedded file. - - The Embedded file. - - - Name of the file. - - - The name of the file to be attached. - The data to be attached as a file. - - - The name of the file to be attached. - The stream to be attached. - - - - Represents a collection of the attachment objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document. - document.Attachments.Add(attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document. - document.Attachments.Add(attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Internal variable to store internal array of attachments. - - - - - Internal variable to store dictionary wrapper. - - - - - internal Variable to store filename and attachment. - - - - - internal variable to store ordered filename. - - - - - internal variable to store file count value. - - - - - store the cross table - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The attachment dictionary. - The table. - - - - Internal method to get attachement information. - - The Pdfarray. - - - - - Inserts the attachment at specified index. - - The index at which attachment to be inserted. - The attachment to be inserted. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //insert the attachment at specified index. - document.Attachments.Insert(0, attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'insert the attachment at specified index. - document.Attachments.Insert(0, attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Removes the specified attachment from the collection. - - The attachment to be removed. - /// - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Load an attachment collection. - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Get the attachment at the specified index. - PdfAttachment attachment = loadedDocument.Attachments[0]; - //Remove attachment by attachment name. - attachments.Remove(attachment); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Load an attachment collection. - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Get the attachment at the specified index. - attachment As PdfAttachment = loadedDocument.Attachments(0) - 'Remove attachment by attachment name. - attachments.Remove(attachment) - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Removes attachment at the specified index. - - The index at which the attachment to be removed. - /// - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Load an attachment collection - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Remove attachment by index - attachments.RemoveAt(0); - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Load an attachment collection - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Remove attachment by index - attachments.RemoveAt(0) - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - search and find the index of the attachment. - - The attachment to find the position. - The index of the specified attachment. - /// - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create an attachment - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document - document.Attachments.Add(attachment); - //Get the index of attachment - int index = document.Attachments.IndexOf(attachment); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create an attachment - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document - document.Attachments.Add(attachment) - 'Get the index of attachment - Dim index As Integer = document.Attachments.IndexOf(attachment) - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Determines whether the attachment collection contains the specified attachment. - - The attachment to be searched. - - if it contains the specified attachment, set to true. otherwise false - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create an attachment - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document - document.Attachments.Add(attachment); - //check the collection contains the specified attachment. - bool isAttachmentContained = document.Attachments.Contains(attachment); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create an attachment - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document - document.Attachments.Add(attachment) - 'check the collection contains the specified attachment. - Dim isAttachmentContained As Boolean = document.Attachments.Contains(attachment) - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Remove all the attachments from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the attachments - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Remove all the bookmarks form the collection - attachments.Clear(); - //Save and close the PDF document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the attachments - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Remove all the bookmarks form the collection - attachments.Clear() - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Adds the attachment. - - The attachment. - The index of the attachment. - - - - Does the insert. - - The index. - The attachment. - - - - Removes the attachment. - - The attachment. - - - - Removes the attachment. - - The index. - - - - Clears the collection. - - - - - - Gets the element. - - - - - - Internal variable to store field's bounds. - - - - - Internal variable to store font. - - - - - Internal variable to store brush. - - - - - Internal variable to store pen. - - - - - Internal variable to store string format. - - - - - Internal variable to store template size. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with - - The represents the format of the text. - - - - Initializes a new instance of the class with and . - - The represents the format of the text. - The provides color and texture to the text. - - - - Initializes a new instance of the class with and bounds. - - The represents the format of the text. - The bounds. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - X co-ordinate of the element. - Y co-ordinate of the element. - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - - Gets the template size. - - The template size. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - - Gets the brush. If brush is undefined default black brush will be used. - - The brush - - - - - Gets the font. If font is undefined default font will be used. - - - - - - - - - - - - - Gets or sets the of the field. - - The determines text layout information on PDF - - - - Represents information about the automatic field. - - - - - Internal variable to store location of the field. - - - - - Internal variable to store field. - - - - - Internal variable to store x scaling factor. - - - - - Internal variable to store y scaling factor. - - - - - Initializes a new instance of the class. - - The field. - The location. - - - - Initializes a new instance of the class. - - The field. - The location. - The scaling X. - The scaling Y. - - - - Initializes a new instance of the class. - - The field info. - - - - Gets or sets the location. - - The location. - - - - Gets or sets the field. - - The field. - - - - Gets or sets the scaling X factor. - - The scaling X factor. - - - - Gets or sets the scaling Y factor. - - The scaling Y factor. - - - - Represent a collection of automatic fields information. - - Class - - - - Initializes a new instance of the class. - - - - - Adds the specified field info. - - The field info. - field Info - - - - Represents class to display creation date of the document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which has the same value in the whole document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create new PDF brush. - PdfBrush brush = PdfBrushes.Black; - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - Class - - - - Represents automatic field which value is dynamically evaluated. - - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - . - - - - Initializes a new instance of the class with and bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The Rectangle bounds. - - - - Gets the page from a graphics. - - The graphics. - The proper PdfPage instance. - - - - Gets the Loaded page from a graphics. - - The graphics - The graphics - - - - Internal variable to store templates associated with the document. - - - - - Internal variable to array of graphics. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - - Initializes a new instance of the class with and rectangle bounds of the field - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Internal variable to store format of the date. - - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Creates Date time field - PdfCreationDateField dateTimeField = new PdfCreationDateField(); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField() - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates Date time field - PdfCreationDateField dateTimeField = new PdfCreationDateField(font); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font,brush); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font,brush) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - for (int i = 0; i !=3; i++) - { - //Creates a new page. - PdfPage page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates Date time field. - Dim dateTimeField As PdfCreationDateField = New PdfCreationDateField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - For i As Integer = 0 To 2 - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - Gets or sets the format string. - - The format string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i != 3; i++) - { - //Creates a new page. - PdfPage page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates Date time field. - Dim dateTimeField As PdfCreationDateField = New PdfCreationDateField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Represents date and time automated field. - - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i !=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which value can be evaluated in the moment of creation. - - Class - - - - Internal variable to store template of the field. - - - - - Internal variable to store list of graphics - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with - - The represents the format of the text. - - - - Initializes a new instance of the class with and - - The represents the format of the text. - The provides color and texture to the text. - - - - Initializes a new instance of the class with and bounds - - The represents the format of the text. - The Rectangle bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Internal variable to store date value of the field. - - - - - Internal variable to store format of the date. - - - - - Initializes a new instance of the class. - - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField() - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i !=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, PdfBrushes.Aquamarine); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, PdfBrushes.Aquamarine) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and clos ethe document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Get the value of the field at the specified graphics. - - The graphics. - value - - - - - Gets or sets the date format string. - - The format string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and clos ethe document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Represents class which displays destination page's number. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents PDF document page number field. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which has the same value within the - - Class - - - - Represents automatic field which has the same value within the - - Class - - - - Internal variable to store templates associated with the graphics. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The specifies the color and texture to the text. - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The rectangle bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Gets or sets the tag for the element - - - - - Internal variable to store numbering style. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The specifies the color and texture to the text. - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - - Gets or sets the specific number style. - - The provides specific number style. - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, PdfBrushes.Beige); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, PdfBrushes.Beige) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use.s - The bounds. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, new RectangleF(10, 10, 100, 200)); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, new RectangleF(10, 10, 100, 200)); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Internal method to get value of the field. - - The page. - - - - - Internal method to get value of the field. - - The page - - - - - Internal variable to store destination page. - - - - - Internal variable to store the Loaded Page. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(); - for (int i = 0; i !=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField() - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, PdfBrushes.Azure); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, PdfBrushes.Azure) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, new RectangleF(10, 10, 100, 200)); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, New RectangleF(10, 10,100,200)) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - Get and sets the PdfLoadedPage - - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SrcDocument.pdf"); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, new RectangleF(10, 10,100,200)); - for (int i = 0; i != doc.Pages.Count; i++) - { - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.LoadedPage = doc.Pages[1] as PdfLoadedPage; - pageNumber.Draw(doc.Pages[1].Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, New RectangleF(10, 10,100,200)) - For i As Integer = 0 To doc.Pages.Count - 1 - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.LoadedPage = TryCast(doc.Pages(1), PdfLoadedPage) - pageNumber.Draw(doc.Pages(1).Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Gets or sets the page. - - The page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i !=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Represent automatic field which contains document's author name. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField() - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font, brush); - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font, brush) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font, new RectangleF(0, 0, 100, 200)); - for (int i = 0; i!= 2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font, New RectangleF(0,0,100,200)) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - - Internal variable to store list of automatic fields. - - - - - Internal variable to store value. - - - - - - - - - - Initializes a new instance of the class with text and list of automatic fields - - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.Font = font; - pageCount.Brush = brush; - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.Font = font; - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - dateField.Brush = brush; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField("page {0}, date {1} ", auto); - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.Font = font - pageCount.Brush = brush - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.Font = font - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - dateField.Brush = brush - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField("page {0}, date {1} ", auto) - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with ,text and list of automatic fields - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(font, "page {0}, date {1} ", auto); - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField(font, "page {0}, date {1} ", auto) - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with ,,text and list of automatic fields. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(font, brush, "page {0}, date {1} ", auto); - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField(font, brush, "page {0}, date {1} ", auto) - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - - Gets or sets the automatic fields. - - The array of automatic fields . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.Font = font; - pageCount.Brush = brush; - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.Font = font; - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - dateField.Brush = brush; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(); - comp.Text = "page {0}, date {1}"; - comp.AutomaticFields = auto; - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.Font = font - pageCount.Brush = brush - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.Font = font - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - dateField.Brush = brush - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField() - comp.Text = "page {0}, date {1}" - comp.AutomaticFields = auto - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Utility class for number conversion. - - - - - Limit number of converting arabic to \"A\" format. - - - - - Index of A char in the ASCII table. - - - - - Converts the specified number to numberStyle format. - - The arabic value. - The number style. - - - - - Converts arabic number to roman. - - Number in arabic format. - Number in Roman format. - - - - Converts arabic number to \"A\" format. - - Number in arabic format. - Number in \"A\" format. - - - - Utility metnod for converting arabic number to roman format. - - Current number value. - Max current number. - Roman equivalent. - Roman equivalent. - - - - Utility metnod. Helps to convert arabic number to \"A\" format. - - Arabic number. - Sequence of number. - - - - Adds letter instead of number. - - String builder object. - Number to be converted to letter. - - - - Represents total PDF document page count automatic field. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - Class - - - - Internal variable to store numbering style. - - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font,brush); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The rectangle bounds of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - RectangleF rect = new RectangleF(10, 10, 50, 30); - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font,rect); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim rect As RectangleF = New RectangleF(10, 10, 50, 30) - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Gets or sets the number style. - - The number style. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Represents an automatic field to display the section number. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Creates section number field. - Dim sectionNumber As New PdfSectionNumberField(font) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Creates section number field - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - doc.Save("SectionNumberField.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates section number field - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField() - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - doc.Save("SectionNumberField.pdf") - - - Class - - - - Initializes a new instance of the class. - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Creates section number field. - Dim sectionNumber As New PdfSectionNumberField(font) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font, brush); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create a PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creates section number field. - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField(font, brush) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - RectangleF rect = new RectangleF(10, 10, 30, 10); - //Creates section number field within specified bounds. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font, rect); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 10) - 'Creates section number field within specified bounds. - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField(font, rect) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the value of the field at the specified graphics. - - The graphics. - The value of the field. - - - - Represents an automatic field to display number of pages in section. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField() - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class with . - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class with and . - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = PdfBrushes.Blue; - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font,brush); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create a PDF brush. - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a PDF brush. - Dim sectionPageCount As PdfSectionPageCountField = New PdfSectionPageCountField(font, brush) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with and . - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font,rect); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 30) - 'Create section page count field. - Dim sectionPageCount As PdfSectionPageCountField = New PdfSectionPageCountField(font, rect) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Represents an automatic field to display page number within a section. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField() - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = PdfBrushes.Blue; - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font,brush); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create a PDF brush. - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a PDF brush. - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font,brush) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field with and - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 30) - 'Create section page number field with and . - Dim sectionPageNumber As New PdfSectionPageNumberField(font,rect) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Represent class to store information about template and value pairs - used in automatic fields. - - - - - Internal variable to store template. - - - - - Intenal variable to store value. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The template. - The value. - - - - Gets or sets the template. - - The template. - - - - Gets or sets the value. - - The value. - - - - Each instance of this class represents an bookmark node in the bookmark tree. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - This class plays two roles: it's a base class for all bookmarks - and it's a root of a bookmarks tree. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //get the bookmark count. - int count = bookmarks.Count; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'get the bookmark count. - Dim count As Integer = bookmarks.Count - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Collection of the descend outlines. - - - - - Internal variable to store dictinary. - - - - - Cross table of the document; - - - - - Internal variable to store loaded bookmark. - - - - - Temp variable to store loaded bookmark. - - - - - Gets or sets the whether the bookmark tree is expanded or not - - - - - Initializes a new instance of the class. - - Note that the Type field shouldn't be generated. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Creates and adds an outline. - - The title of the new outline. - PdfBookmark - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Determines whether the specified outline presents in the collection. - - The outline. - - true if the specified outline is in the collection; - otherwise, false. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //check whether the specified bookmark present in the collection - document.Bookmarks.Contains(bookmark); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'check whether the specified bookmark present in the collection - Dim isBookMarkContained As Boolean = document.Bookmarks.Contains(bookmark) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Remove the specified bookmark from the document. - - The title of the outline. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove bookmark by bookmark name. - bookmarks.Remove("Page 1"); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'Remove bookmark by bookmark name. - bookmarks.Remove("Page 1") - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Remove the bookmark from the document at the specified index. - - The index. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove bookmark by index. - bookmarks.RemoveAt(0); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'Remove bookmark by index. - bookmarks.RemoveAt(0) - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Removes all the bookmark from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the bookmarks - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove all the bookmarks form the collection - bookmarks.Clear(); - //Save and close the PDF document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the Bookmarks - Dim Bookmarks As PdfAttachmentCollection = loadedDocument.Bookmarks - 'Remove all the bookmarks form the collection - Bookmarks.Clear() - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Inserts a new outline at the specified index. - - The index. - The title of the new outline. - The new outline. - /// - - //Create a new document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Insert a new bookmark in the existing bookmark collection. - PdfBookmark bookmark = loadedDocument.Bookmarks.Insert(1, "New bookmark 2"); - //Set the destination page and location. - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Destination.Location = new PointF(0, 300); - //Save and close the PDF document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Create a new document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Insert a new bookmark in the existing bookmark collection. - Dim bookmark As PdfBookmark = loadedDocument.Bookmarks.Insert(1, "New bookmark 2") - 'Set the destination page and location. - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Destination.Location = New PointF(0, 300) - 'Save and close the PDF document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - To get the BookMark Collection - - - - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Reproduces the tree. - - The list of bookmark kids. - - - - Updates all outline dictionary fields. - - - - - Gets the first book mark. - - The bookmark. - First Bookmark - - - - Gets number of the elements in the collection. Read-Only. - - The value which contains count of the collection.> - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //get the bookmark count. - int count = bookmarks.Count; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'get the bookmark count. - Dim count As Integer = bookmarks.Count - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Gets the at the specified index. Read-Only. - - The PdfBookmark object returns from the collection by index. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and change the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and change the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class. - Class. - - - - Gets the sub items. - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - - - - Gets or sets the whether to expand the node or not - - - - - Gets the element. - - - - - - - Internal variable to store destination. - - - - - Internal variable to store named destination. - - - - - Internal variable to store color. - - - - - Internal variable to store text Style. - - - - - Internal variable to store previous. - - - - - Internal variable to store next. - - - - - Internal variable to store parent. - - - - - Internal variable to store action. - - - - - Initializes a new instance of the class. - - The title to be displayed. - The parent. - The previous. - The next. - - - - Initializes a new instance of the class. - - The title. - The parent. - The previous. - The next. - The destination. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the parent. - - The parent. - - - - Updates the color. - - - - - Updates the outline text style. - - - - - - - Gets or sets the outline title. - - A string value which contains the bookmark title - The outline title is the text, - which appears in the outline tree as a tree node. - /// - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Set the Bookmark Title. - bookmark.Title = "Bookmark"; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Set the bookmark title. - bookmark.Title = "Bookmark" - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - - - - Gets or sets the whether to expand the node or not. - - true If the bookmark is expanable , otherwise false. > - - - //Create a new document. - PdfDocument Document = new PdfDocument(); - //Add a page. - PdfPage page = Document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = Document.Bookmarks.Add("page1"); - //Set color. - bookmark.Color = Color.Red; - bool expand = bookmark.IsExpanded; - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Set the Uri action - bookmark.Action = uriAction; - //Save and close the PDF document. - Document.Save("Output.pdf"); - Document.Close(true); - - - 'Create a new document. - Dim Document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = Document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = Document.Bookmarks.Add("page1") - 'Set color. - bookmark.Color = Color.Red - bool expand = bookmark.IsExpanded - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Set the Uri action - bookmark.Action = uriAction - 'Save and close the PDF document. - Document.Save("Output.pdf") - Document.Close(True) - - - Class. - Class. - - - - Gets or sets the previous outline object. - - The null value means that the object is the first outline. - - - - Gets the parent outline base. - - - - - Gets or sets the next outline object. - - The null value means that the object is the last outline. - - - - Allows to choose outline text style. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and set the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and set the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class - Class - Class - - - - Regular text style. - - - - - Italic text style. - - - - - Bold text style. - - - - - Represents a booklet creator, which allows to create a booklet from a PDF document. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the document. - doc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True); - - - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with and page size. - - The existing PDF document. - Size of the page. - - The initialized PDF document, which could be saved. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class with source path,destination,page size and flag to set two side print. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The path to the file on the disk, which the booklet should be created from. - The path to the file on the disk, which the booklet should be saved into. - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Create booklet with two sides. - PdfDocument doc = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",new SizeF(300, 500), true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Create booklet with two sides. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",New SizeF(300, 500), true) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class with source PDF path,destination file name and page size. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The path to the file on the disk, which the booklet should be created from. - The path to the file on the disk, which the booklet should be saved into. - Size of the page. - - The initialized PDF document, which could be saved. - - - - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class , page size and - flag to set two side print. - - The . - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - - The initialized PDF document, which could be saved. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500), false); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500), False) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class. - - The - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - The margin value for generated PDF document. - The initialized PDF document, which could be saved. - - - //Loads an existing document. - PdfLoadedDocument srcDoc = new PdfLoadedDocument("sourceDoc.pdf"); - //Specify the margin. - PdfMargins margin = new PdfMargins(); - margin.All = 10; - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(srcDoc,new SizeF(300, 500), false,margin); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - srcDoc.Close(true); - - - 'Loads an existing document. - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - 'Specify the margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 10 - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(srcDoc,New SizeF(300, 500), False,margin) - 'Save the document - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - srcDoc.Close(True) - - - - - - - - Gets the next pair of page indeces. - - The current iteration index. - The pages count. - if set to true if the result in document should be printed - on both sides of paper. - - An array of integers that holds the indices. - - - - - Represents names dictionary of the document's catalog entry. - - Interface - - - - Internal variable to store collection of attachments. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The root. - - - - Gets the named object from a tree. - - The tree root. - The name. - The named object. - - - - Finds the name in the tree. - - The current. - The name. - The object specified by its name or null. - - - - Gets the proper kid from an array. - - The current node. - The name we're looking for. - The proper kid. - The name should be within the kid limits. - - - - Checks the limits of the named tree node. - - The kid. - The name. - Returns true if the kid should have the name (the name is within its limits). - - - - Merges the embedded name trees. - - The names. - - - - Appends the list of embedded file dictionaries. - - The list. - - - - Gets the node left limit. - - The node. - The node left limit. - - - - Appends the objects to the node of the name tree. - - Name of the base. - The node. - The embedded. - if set to true the limits should be updated. - - - - Generates the list of embedded file dictionaries. - - The list of embedded file dictionaries. - - - - Collects the objects. - - The leaf node. - The array. - - - - Clear catalog names. - - - - - Gets or sets the embedded files. - - The embedded files. - - - - Gets the destinations. - - - - - Gets the element. - - - - - - Holds info about current base node and its current child. - - - - - Internal variable to store Dictionary entry. - - - - - Internal variable to store index value. - - - - - Internal variable to store dictionary entries count. - - - - - Internal variable to store Kids value. - - - - - Initializes a new instance of the class. - - The node. - - - - Initializes a new instance of the class. - - The index. - The count. - - - - Represent common properties of PdfDocument and PdfLoadedDocument classes. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft; - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - doc.Save("ViewerPreferences.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - doc.Save("ViewerPreferences.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Collection of the main objects. - - - - - internal variable to store locked array - - - - - Security properties. - - - - - Object that is saving currently. - - - - - Document catlog. - - - - - Cross table. - - - - - Document information and properties. - - - - - String contain either user or owner password. - - - - - Dictionary used to get the collection of images for extraction. - - - - - Desired level of the new stream compression. - - - - - Specifies file structure. - - - - - A list of the objects that have to be disposed after document closing. - - - - - Internal variable to store if memory optimization should be done. - - - - - Internal varible to store portfolio - - - - - Internal variable to store OCG groups. - - - - - Internal variable to store position. - - - - - Internal variable to store order position. - - - - - Internal variable to store on position. - - - - - Internal variable to store off position. - - - - - Internal variable to store layer order. - - - - - Internal variable to store visible layers. - - - - - Internal variable to store invisible layers. - - - - - Internal variable to store Sub Layers. - - - - - Internal variable to store Sub Layers Position. - - - - - Stores the array of Print layer references - - - - - Specifies the document should be compressed in best. - - - - - Specifies the document is merging. - - - - - Specifies the collection of layer in document - - - - - If PDF is set as tagged, initializes StructTree in the catalog. - - - - - - - Merges the specified source documents and return destination document. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The destination document, where the other documents are merged into. - If it's null a new document object will be created. - The source documents. - The document containing merged documents. - - - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - // Source PDF documents - string[] source = { "Src1.pdf", "Src2.pdf" }; - //Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, source); - destDoc.Save("Merge.pdf"); - - - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - ' Source PDF documents - Dim source() As String = { "Src1.pdf", "Src2.pdf" } - 'Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, source) - destDoc.Save("Merge.pdf") - - - Class - - - - Merges the PDF documents specified by the paths. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The array of string paths. - A new PDF document containing all merged documents. - - - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - // Source PDF documents - string[] source = { "Src1.pdf", "Src2.pdf" }; - //Merge the source pdf document. - destDoc = PdfDocument.Merge(source); - destDoc.Save("Merge.pdf"); - - - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - ' Source PDF documents - Dim source() As String = { "Src1.pdf", "Src2.pdf" } - 'Merge the source pdf document. - destDoc = PdfDocument.Merge(source) - destDoc.Save("Merge.pdf") - - - Class - - - - Merges the specified dest. - - The destination document. - The source document. - The merged document - - - // Source document. - PdfLoadedDocument srcDoc = new PdfLoadedDocument("Src1.pdf"); - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - //Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, srcDoc); - destDoc.Save("Merge.pdf"); - - - ' Source document. - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("Src1.pdf") - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - 'Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, srcDoc) - destDoc.Save("Merge.pdf") - - - Class - - - - Adds an object to a collection of the objects that will be disposed during document closing. - - The object that will be disposed during document closing. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - Image img = Image.FromFile("input.png"); - PdfImage pdfImg = new PdfBitmap(img); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("DisposeOnClose.pdf"); - // Dispose the Img object along with the document. - doc.DisposeOnClose(img); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim img As Image = Image.FromFile("Logo.png") - Dim pdfImg As PdfImage = New PdfBitmap(img) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("DisposeOnClose.pdf") - ' Dispose the Img object along with the document. - doc.DisposeOnClose(img) - 'Close the document - doc.Close(True) - - - Class - Class - Class - - - - Saves the document to the specified filename. - - The name of the file where to save the document. It can be a full path or a relative path. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("SaveExample.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("SaveExample.pdf") - - - - - - Saves the document into a HTTP response stream. - - The name of the document. - The HTTP response stream object. - The type of the reading document. - - If a document containing digital signature needs to be saved then - the destination stream must support seeking, otherwise an exception will be raised. - Since the HTTP response stream does not support seeking please write the document to a memory stream first and then flush it to the destination stream to avoid raising an exception. - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("SaveExample.pdf", Response, HttpReadType.Open); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("SaveExample.pdf", Response, HttpReadType.Open) - 'Close the document - doc.Close(True) - - - Class - Class - - - - Saves the document into a HTTP response stream. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The stream where to save the PDF document. - The HTTP response stream object. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - MemoryStream stream = new MemoryStream(); - // Save the document as a stream - doc.Save(stream, Response); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - Dim stream As MemoryStream = New MemoryStream() - ' Save the document as a stream - doc.Save(stream, Response) - 'Close the document - doc.Close(True) - - - Class - Class - - - - Closes the document. Releases all common resources. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document - doc.Save("Close.pdf"); - //Close the document - doc.Close(); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document - doc.Save("Close.pdf") - ' Closes the document - doc.Close() - - - Class - Class - - - - Closes the document. - - if set to true the document should close its stream as well. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document - doc.Save("Close.pdf"); - // Closes the document completely. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document - doc.Save("Close.pdf") - ' Closes the document completely. - doc.Close(True) - - - Class - Class - - - - Saves the document to the specified output stream. - - The stream object where PDF document will be saved. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200); - // Save the document as a stream - MemoryStream stream = new MemoryStream(); - doc.Save(stream); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200) - ' Save the document as a stream - Dim stream As MemoryStream = New MemoryStream() - doc.Save(stream) - - - Class - Class - - - - Imports the specified page into the current document pages collection - - The loaded document to be imported. - The page to be inserted. - The page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPage(srcDoc, srcDoc.Pages[0]); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPage(srcDoc, srcDoc.Pages(0)) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports the loaded document's page index to the current document. - - The loaded document to be imported. - Index of the page. - The page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPage(srcDoc, 0); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPage(srcDoc, 0) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports a page range from a loaded document to the current document - - The loaded document to be imported. - The start page index. - The end page index. - The last created page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports a page range from a loaded document to the current document - - The loaded document to be imported. - The start page index. - The end page index. - Gets value whether to import bookmarks from the imported page. - The last created page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document without bookmarks. - doc.ImportPageRange(srcDoc, 0, 2, false); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2, true) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - - - - Appends the loaded document given as parameter to the current document. - - The loaded document to be imported. - The appended loaded document must remain open until the current document is saved. - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Appending the document with source document. - doc.Append(srcDoc); - // Save the document. - doc.Save("Append.pdf"); - //close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Appending the document with source document. - doc.Append(srcDoc) - ' Save the document. - doc.Save("Append.pdf") - 'Close bothe the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Checks whether the PDF document was encrypted. - - True if the document was encrypted. - - - - Gets the form. - - The proper PdfForm instance. - - - - Sets the main object collection. - - The main object collection. - Allows to use null values as the parameter, - which causes assigning null value to the variable. That's used for clearing. - - - - Sets the security object. - - The security. - Allows to set null. - - - - Sets the cross table. - - The cross table. - - - - Sets the catalog. - - The catalog. - - - - - Raises DocumentSaved event. - - Event arguments. - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - Clones pages and their resource dictionaries and adds them into the document. - - The loaded document. - The page being cloned. - The destinations. - page - - - - Checks form fields are connected with the page. - - The loaded document. - The page. - An array where the fields connected to the page are stored. - - - - Merges the attachments. - - The loaded document. - This method merges only named attachments. - - - - Get the Named Destination - - - - - - - - Get the Destination - - - - - - - - Exports the bookmarks to the new document. - - The loaded document. - The bookmarks. - The page correspondance dictionary. - - - - Marks the bookmarks pointing to the page for exporting. - - The page bookmarks. - The bookmarks. - - - - Marks the bookmarks pointing to the page for exporting. - - The page bookmarks. - The bookmarks. - - - - Fixes the destinations. - - The page correspondance. - The destinations. - - - - - Event. Rises when the document has been saved. - - - - - Gets the security features of the document like encryption. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Reading security settings of the document - PdfSecurity security = doc.Security; - doc.Save("Security.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Reading security settings of the document - Dim security As PdfSecurity = doc.Security - doc.Save("Security.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Gets a value indicating whether this instance is security granted. - - - true if this instance is security granted; otherwise, false. - - - - - Gets or sets document's information and properties such as document's title, subject, keyword etc. - - - To know more about refer this link . - - - - //Create new pdf document. - PdfDocument document = new PdfDocument(); - //Set the document author property. - document.DocumentInformation.Author = "Syncfusion"; - //Get the document author property value. - string author = document.DocumentInformation.Author; - //Save and close the document. - document.Save("output.pdf"); - document.Close(true); - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("output.pdf"); - //Get the loaded document author property value. - author = ldoc.DocumentInformation.Author; - //Save and close the document. - ldoc.Save("output.pdf"); - ldoc.Close(true); - - - 'Create new pdf document. - Dim document As PdfDocument = New PdfDocument() - 'Set the document author property. - document.DocumentInformation.Author = "Syncfusion" - 'Get the document author property value. - Dim author As String = document.DocumentInformation.Author - 'Save and close the document. - document.Save("output.pdf") - document.Close(True) - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("output.pdf") - 'Get the loaded document author property value. - author = ldoc.DocumentInformation.Author - 'Save and close the document. - ldoc.Save("output.pdf") - ldoc.Close(True) - - - Class - Class - - - - Gets or sets a viewer preferences. This property is used for presenting the PDF document in a viewer. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft; - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - doc.Save("ViewerPreferences.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - doc.Save("ViewerPreferences.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Gets or sets the PDF document compression level. By default the compression level is None - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set the document`s compression level. - doc.Compression = PdfCompressionLevel.Best; - //Creates a new page - PdfPage page = doc.Pages.Add(); - doc.Save("Compression.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set the document`s compression level. - doc.Compression = PdfCompressionLevel.Best - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - doc.Save("Compression.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - - - - Gets or sets the internal structure of the PDF document. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference Type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the pdf version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference Type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' set the pdf version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - - - Class - Class - - - - Gets or sets the portfolio information to the Document. - - - To know more about refer this link . - - - - // Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Creating new portfolio - document.PortfolioInformation = new PdfPortfolioInformation(); - //setting the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile; - //Creating the attachment - PdfAttachment pdfFile = new PdfAttachment("Input.pdf"); - pdfFile.FileName = "EmployeeDetails.pdf"; - //Setting the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile; - //Adding the attachment into document - document.Attachments.Add(pdfFile); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Creating new portfolio - document.PortfolioInformation = New PdfPortfolioInformation() - 'setting the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile - 'Creating the attachment - Dim pdfFile As New PdfAttachment("Input.pdf") - pdfFile.FileName = "EmployeeDetails.pdf" - 'Setting the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile - 'Adding the attachment into document - document.Attachments.Add(pdfFile) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Gets a value indicating whether the document was encrypted. - - - - - Gets a value indicating whether the document was Pdf viewer document. - - - - - Gets the PDF objects collection, which stores all objects and references to it.. - - - - - Gets or sets the current saving object number. - - - - - Gets the cross-reference table. - - - - - Gets the PDF document catalog. - - - - - Gets a list of the objects that have to be disposed after document closing. - - - - - Gets the number of pages. - - - - - Gets or sets whether to optimize memory. - - Optimization will be effective only with merge, append and import functions. - Only memory will be optimized, different in time occur based on the document size. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Enable memory optimization. - document.EnableMemoryOptimization = true; - //Merge source document - PdfDocument.Merge(document, "Source.pdf"); - //Save and close the pdf document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Enable memory optimization. - document.EnableMemoryOptimization = True - 'Merge source document. - PdfDocument.Merge(document, "Source.pdf") - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets the collection of PdfLayer from the PDF document - - - - - Delegate. Is used for raising events after document saving. - - - - - Holds info about current node. - - - - - Internal variable to store index value. - - - - - Internal variable to store Bookmark. - - - - - Internal variable to store ArrayList. - - - - - Initializes a new instance of the class. - - The bookmark base. - The kids. - - - - This class represents a set of the properties that define the internal structure of PDF file. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - //Create new instance for PDF file structure. - PdfFileStructure structure = new PdfFileStructure(); - //Set the file structure cross reference type. - structure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Set the document`s file structure. - doc.FileStructure = structure; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create new instance for PDF file structure. - Dim pdfstructure As PdfFileStructure = New PdfFileStructure() - 'Set the file structure cross reference type - pdfstructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Set the document`s file structure - doc.FileStructure = pdfstructure - 'Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - Class - Class - - - - the version of the file. - - - - - The type of the cross-reference. - - - - - Indicates the file format. - - - - - Incremental operator bool value - - - - - Tagged bool value - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFileStructure structure = new PdfFileStructure(); - //Set the document`s cross reference type - structure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Set the PDF version. - doc.FileStructure = structure; - //Draw the text. - page.Graphics.DrawString("File structure", new PdfStandardFont(PdfFontFamily.Courier, 12), PdfBrushes.Green, new PointF(10, 10)); - //Save and close the document. - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new instance for PDF file structure. - Dim pdfstructure As PdfFileStructure = New PdfFileStructure() - 'Set the document`s cross reference type - pdfstructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Set the PDF version. - doc.FileStructure = pdfstructure - 'Draw the text. - page.Graphics.DrawString("File structure", New PdfStandardFont(PdfFontFamily.Courier, 12), PdfBrushes.Green, New PointF(10, 10)) - 'Save and close the document. - doc.Save("FileStructure.pdf") - doc.Close(True) - - - Class - Class - enum. - - - - Notifies if TaggedPDF property is changed. - - - - - Gets or sets the version of the PDF document. - - The document version. - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether [incremental update]. - - true if [incremental update]; otherwise, false. - - - // Load an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Sets the incremental update as True - lDoc.FileStructure.IncrementalUpdate = true; - //Create a new page - lDoc.Pages.Add(); - // Saves the document - lDoc.Save("FileStructure.pdf"); - lDoc.Close(true); - - - ' Load an existing document - Dim lDoc As New PdfLoadedDocument("SourceDoc.pdf") - ' Sets the incremental update as True - lDoc.FileStructure.IncrementalUpdate = True - 'Create a new page - lDoc.Pages.Add() - ' Saves the document - lDoc.Save("FileStructure.pdf") - lDoc.Close(True) - - - - - - Gets or sets the type of PDF cross-reference. - - Please see the description of for more details. - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - - - - Gets or sets the value indicating the format of the file. - - - - - Gets the value indicating whether the PDF document is tagged one or not. - - If true PDF document is tagged, otherwise false. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - bool tagged = document.FileStructure.TaggedPdf; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - Dim tagged As Boolean = document.FileStructure.TaggedPdf - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - The class represents the creation of PDF portfolio - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Create new portfolio. - document.PortfolioInformation = new PdfPortfolioInformation(); - //Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details; - //Create portfolio schema. - PdfPortfolioSchema schema = new PdfPortfolioSchema(); - //Create portfolio schema field. - PdfPortfolioSchemaField fromField = new PdfPortfolioSchemaField(); - fromField.Name = "From"; - fromField.Type = PdfPortfolioSchemaFieldType.String; - fromField.Order = 1; - fromField.Visible = true; - fromField.Editable = false; - schema.AddSchemaField(fromField); - PdfPortfolioSchemaField toField = new PdfPortfolioSchemaField(); - toField.Name = "To"; - toField.Type = PdfPortfolioSchemaFieldType.String; - toField.Order = 2; - toField.Visible = true; - toField.Editable = false; - schema.AddSchemaField(toField); - //Add schema to the portfolio. - document.PortfolioInformation.Schema = schema; - //Create attachment. - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set schema field attributed. - pdfFile.PortfolioAttributes = new PdfPortfolioAttributes(); - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven"); - pdfFile.PortfolioAttributes.AddAttributes("To", "John"); - //Add attachment to document. - document.Attachments.Add(pdfFile); - //Add new page to document. - document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Create new portfolio. - document.PortfolioInformation = New PdfPortfolioInformation() - 'Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details - 'Create portfolio schema. - Dim schema As New PdfPortfolioSchema() - 'Create portfolio schema field. - Dim fromField As New PdfPortfolioSchemaField() - fromField.Name = "From" - fromField.Type = PdfPortfolioSchemaFieldType.[String] - fromField.Order = 1 - fromField.Visible = True - fromField.Editable = False - schema.AddSchemaField(fromField) - Dim toField As New PdfPortfolioSchemaField() - toField.Name = "To" - toField.Type = PdfPortfolioSchemaFieldType.[String] - toField.Order = 2 - toField.Visible = True - toField.Editable = False - schema.AddSchemaField(toField) - 'Add schema to the portfolio. - document.PortfolioInformation.Schema = schema - 'Create attachment. - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set schema field attributed. - pdfFile.PortfolioAttributes = New PdfPortfolioAttributes() - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven") - pdfFile.PortfolioAttributes.AddAttributes("To", "John") - 'Add attachment to document. - document.Attachments.Add(pdfFile) - 'Add new page to document. - document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - - - - - - Internal variable to store value specifying document's catalog. - - - - - Internal variable to store dictionary; - - - - - internal variable to store schema of portfolio - - - - - internal variable to store view mode - - - - - internal varible to store startup attachment document - - - - - Initializes new instance of class - - - - - Initialize the new instance - - portfolio dictionary - - - - Initializes instance. - - - - - Gets or sets the collection of portfolio schema field - - the - - - - Gets and sets the view mode of the portfolio - - The represents visual mode of the files in portfolio - - - - Get and set the startup document of portfolio - - The , represents the attached documents - - - - Gets the element. - - - - - - The class represents attributes of attached files in the portfolio such as Title,Name,Author..etc - - - - - Internal variable to store dictionary; - - - - - Internal variable to store attribute keys - - - - - Internal variable to store attributes - - - - - Internal variable to store attributes - - - - - Initialize the instance of the class - - - - - Initialize the instance of the class - - - - - - Initializes instance. - - - - - Add the attributes into portfolio - - The attribute key such as name,date,author..etc - The attribute value - - - - Remove the attributes from the portfolio - - The attribute key - - - - Remove the attributes from the portfolio - - The attribute key - - - - Gets attribute keys - - The array of attribute keys - - - - Gets the element. - - - - - - The class represents the collection of schema attributes. - - - - - The class represents the collections of schema field - - - - - Internal variable to store dictionary; - - - - - Variable to store Schema field - - - - - internal variable to store field keys - - - - - Internal variable to store field collections - - - - - Initialize the instance of the class - - - - - Initialize the instance of the class - - - - - - used to add the schema field into schema dictionary - - The ,contains custom fields of the attached file - - - - used to remove the schema field from schema dictionary - - The field key - - - - used to retrieve the schema fields from schema dictionary - - The ,contains custom fields of the attached file - - - - Initializes instance. - - - - - Get the field keys from schema field - - The array of field keys - - - - Gets the element. - - - - - - The class represents the creation of schema filed - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Create new portfolio. - document.PortfolioInformation = new PdfPortfolioInformation(); - //Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details; - //Create portfolio schema. - PdfPortfolioSchema schema = new PdfPortfolioSchema(); - //Create portfolio schema field. - PdfPortfolioSchemaField fromField = new PdfPortfolioSchemaField(); - fromField.Name = "From"; - fromField.Type = PdfPortfolioSchemaFieldType.String; - fromField.Order = 1; - fromField.Visible = true; - fromField.Editable = false; - schema.AddSchemaField(fromField); - PdfPortfolioSchemaField toField = new PdfPortfolioSchemaField(); - toField.Name = "To"; - toField.Type = PdfPortfolioSchemaFieldType.String; - toField.Order = 2; - toField.Visible = true; - toField.Editable = false; - schema.AddSchemaField(toField); - //Add schema to the portfolio. - document.PortfolioInformation.Schema = schema; - //Create attachment. - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set schema field attributed. - pdfFile.PortfolioAttributes = new PdfPortfolioAttributes(); - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven"); - pdfFile.PortfolioAttributes.AddAttributes("To", "John"); - //Add attachment to document. - document.Attachments.Add(pdfFile); - //Add new page to document. - document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Create new portfolio. - document.PortfolioInformation = New PdfPortfolioInformation() - 'Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details - 'Create portfolio schema. - Dim schema As New PdfPortfolioSchema() - 'Create portfolio schema field. - Dim fromField As New PdfPortfolioSchemaField() - fromField.Name = "From" - fromField.Type = PdfPortfolioSchemaFieldType.[String] - fromField.Order = 1 - fromField.Visible = True - fromField.Editable = False - schema.AddSchemaField(fromField) - Dim toField As New PdfPortfolioSchemaField() - toField.Name = "To" - toField.Type = PdfPortfolioSchemaFieldType.[String] - toField.Order = 2 - toField.Visible = True - toField.Editable = False - schema.AddSchemaField(toField) - 'Add schema to the portfolio. - document.PortfolioInformation.Schema = schema - 'Create attachment. - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set schema field attributed. - pdfFile.PortfolioAttributes = New PdfPortfolioAttributes() - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven") - pdfFile.PortfolioAttributes.AddAttributes("To", "John") - 'Add attachment to document. - document.Attachments.Add(pdfFile) - 'Add new page to document. - document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - - - - - - variable to store editable value - - - - - Variable to store name of the schema field - - - - - variable to store the order of the schema field - - - - - variable to store visibility of schema field - - - - - Internal variable to store dictionary; - - - - - initialize the instance of the class - - - - - initialize the instance of the class - - schema field dictionary - - - - Initializes instance. - - - - - Gets or Sets the whether the value of the schema field is editable - - if true editable,else can't editable - - - - Gets or Sets the name of the schema field - - The name of the schema field - - - - Gets or sets the order of the Schema field. - - the numeric value show the order of the field - - - - Gets or Sets the schema field Type - - The provides the data type of the field - - - - Gets or Sets the visibility of the Schema field - - if true the filed is visible,otherwise field is not visible - - - - Gets the element. - - - - - - Specifies the type of PDF file format. - - - - - Specifies plain PDF file format. - - - - - Specifies Linearized PDF file format. - - - - - Specifies the different way of presenting the document at the client browser. - - - To know more about using HttpReadType refer this - link. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Load an existing image. - PdfBitmap bmp = new PdfBitmap("Logo.png"); - //Draw the image in PDF page. - page.Graphics.DrawImage(bmp, 20, 20, 100, 200); - //Open the document in browser after saving it. - doc.Save("Sample.pdf", Response, HttpReadType.Open); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Load an existing image. - Dim bmp As PdfBitmap = New PdfBitmap("Logo.png") - 'Draw the image in PDF page. - page.Graphics.DrawImage(bmp, 20, 20, 100, 200) - 'Open the document in browser after saving it. - doc.Save("Sample.pdf", Response, HttpReadType.Open) - - - Class - - Class - - - - Send the generated document to the client browser and will open document inside browser or using application associated with .pdf extension externally. - - - - - Send the generated document to the client browser and presents an option to save the document to disk or open inside the browser. - - - - - Specifies the available PDF versions to save the PDF document. - - - Default Value is Version1_5 - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Set the pdf version as Version1_7. - doc.FileStructure.Version = PdfVersion.Version1_7; - //Save the PDF document to disk. - doc.Save("FileStructure.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Set the pdf version as Version1_7. - doc.FileStructure.Version = PdfVersion.Version1_7 - 'Save the PDF document to disk. - doc.Save("FileStructure.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - PDF version 1.0. - - - - - PDF version 1.1. - - - - - PDF version 1.2. - - - - - PDF version 1.3. Adobe Acrobat 4. - - - - - PDF version 1.4. Adobe Acrobat 5. - - - - - PDF version 1.5. Adobe Acrobat 6. - - - - - PDF version 1.6. Adobe Acrobat 7. - - - - - PDF version 1.7. Adobe Acrobat 8. - - - - - Specifies the type of the PDF cross-reference. - - Default value is CrossReferenceStream - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Set the CrossReferenceType as CrossReferenceStream. - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Save the PDF document to disk. - doc.Save("FileStructure.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Set the CrossReferenceType as CrossReferenceStream. - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Save the PDF document to disk. - doc.Save("FileStructure.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - The cross-reference table contains information that permits random access to indirect objects within the file so that the entire file need not be read to locate any particular object. The structure is useful for incremental updates, since it allows a new cross-reference section to be added to the PDF file, containing entries only for objects that have been added or deleted. Cross-reference is represented by cross-reference table. The cross-reference table is the traditional way of representing reference type. - - - - - Cross-reference is represented by cross-reference stream. Cross-reference streams are stream objects, and contain a dictionary and a data stream. - This leads to more compact representation of the file data especially along with the compression enabled. - This format is supported by PDF 1.5 version and higher only. - - - - - Specifies the Pdf document's Conformance-level. - - - - Default value is None. - To know more about PDF conformance refer this - link. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create a 'Times New Roman' font. - Font font = new Font("Times New Roman", 10); - //Create the PDF font instance. - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, new PointF(10, 10)); - //Save the document to disk. - document.Save("ConformanceLevel.pdf"); - //Close the document. - //document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - 'Create a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create a 'Times New Roman' font - Dim font As Font = New Font("Times New Roman", 10) - 'Create the PDF font instance. - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document to disk. - document.Save("ConformanceLevel.pdf") - 'Close the document. - document.Close(True) - - - Class - Namespace - Class - - - - Specifies Default / No Conformance. - - - - - This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 - and This Level B conformance indicates minimal compliance to ensure that the - rendered visual appearance of a conforming file is preservable over the long term. - - - - - This PDF/X-1a:2001 ISO standard [ISO 15930-1] is based on Adobe PDF version 1.3 - which uses only CMYK + Spot Color and this compliance to ensure that the - contents will be reliably reproduced in the repress environment. - - - - - Specifies the different page scaling option that shall be selected when a print dialog is displayed for this document. - - Default value is AppDefault. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set AppDefault mode as page`s scaling mode. - document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save documen to disk. - document.Save("ScalingMode.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set AppDefault mode as page`s scaling mode. - document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - 'Add a page in the PDF document. - Dim page As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save document to disk. - document.Save("ScalingMode.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Indicates the conforming reader�s default print scaling. - - - - - Indicates no page scaling. - - - - - indicates the type of the portfolio schema field. - - - - - indicates the type of the portfolio view mode. - - - - - Decodes the ASCII85 encoded byte[] - - encoded byte[] - decoded byte[] - - - - asciihexdecode using our own implementation - - - - - - - - local variable to store the value true if image is used for extraction - - - - - Converts DeviceCMYK colorspace to RGB colourspace - - - - - Converts the CMYK values to RGB - - - - - Process the ColorSpace property in the Image dictionary - - - - - To Apply the ICCBased Colorspace in the Image Stream - - - - - Skips the escape sequence from the given input string - - String with the escape sequence - String without escape sequence - - - - - - - - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Decodes the Flate encoded stream - - Encoded stream - Decoded Stream - - - - Decodes JBIG2 encoded input stream - - Input image stream - Returns the output as image. - - - - Merges the stream of the two images - - Stream of the original image - Encoded stream of the mask image - Stream of the merged image - - - - sRgbToScRgb conversion - - Byte value of the color - Equivalent float value - - - - ScRgbTosRgb conversion - - Float value of the color - Equivalent byte value - - - - Decodes the stream of the mask image in the PDF document - - Encoded stream from the PDF document - Decoded stream of the image - - - - Decodes the stream based on the predictor values - - Predictor from the decode params - Colors from the decode params - Columns from the decode params - Stream the encoded image - Decoded stream - - - - Converts YCCK colorspace to RGB colorspace - - Byte array of YCCK image - Byte array of RGB image - - - - Converts YCC colorspace image to RGB image - - Byte array of YCC image - Byte array of RGB image - - - - Render the RGB Pixels from the Image Bytes - - Image Bytes which converts into Pixels - - - - - Gets or sets "true" when an image is used for Extraction. - - - - - Holds the stream of the mask image associated with the original image - - - - - Gets BitsPerComponent value of the original image - - - - - Occurs prior to the rendering of every image in the document - - - ImagePreRenderEventArgs - - - - Custom event argument class used to notify before image is rendered in the viewer. - - - - - Gets or sets the content stream of the image. - - - - - Gets or sets height of the image. - - - - - Gets or sets width of the image. - - - - - Returns filter names used in the image. - - - - - - - - - - - white run lengths - - - - black run lengths - - - - - - - - - - - - - - - - - - Display information found in this COD marker segment - - - Display information found in this COC marker segment - - - Display information found in this RGN marker segment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Decodes the image stream in the PDF document into an image - - - - - Sets the fields associated with the TIFF image - - Number of fields - Value of the field - Name of the TIFF tag - Type of the tag value - - - - Writes the header to the TIFF image - - Specifies the header of the TIFF image - - - - Writes the list of fields associated with the TIFF image - - List of TIFF fields - - - - Writes short value into the TIFF stream - - Short value to be written - - - - Writes integer value into the TIFF stream - - Integer value to be written - - - - Structure of the TIFF header - - - - - Size of the byte order of the tiff image - - - - - TIFF version number - - - - - byte offset to first directory - - - - - Tag entry to the TIFF stream - - - - - Represents the TIFF tag - - - - - Represents the type of the TIFF tag - - - - - number of items; length in spec - - - - - byte offset to field data - - - - - Width of the image in pixels - - - - - Height of the image in pixels - - - - - Bits per channel (sample). - - - - - Compression technique - - - - - Photometric interpretation. - - - - - Offsets to data strips. - - - - - Samples per pixel. - - - - - Bytes counts for strips. - - - - - 16-bit unsigned integer. - - - - - 32-bit unsigned integer. - - - - - The Syncfusion.Pdf.Exporting namespace contains classes to perform export operations. - - - - - Represents the utility class to store information about Images and its location. - - - - //Load PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); - //Gets ImageInfo from the first page. - PdfImageInfo[] imageInfo = document.Pages[0].ImagesInfo; - //Gets the Image Boundary location. - RectangleF imageBounds = imageInfo[0].Bounds; - //Gets the Image. - Image image = imageInfo[0].Image; - //Gets the Image index. - int imageIndex = imageInfo[0].Index; - //Closing the PDF document. - document.Close(true); - - - 'Load PDF document. - Dim document As New PdfLoadedDocument("Input.pdf") - 'Gets ImageInfo from the first page. - Dim imageInfo As PdfImageInfo() = document.Pages(0).ImagesInfo - 'Gets the Image Boundary location. - Dim imageBounds As RectangleF = imageInfo(0).Bounds - 'Gets the Image. - Dim image As Image = imageInfo(0).Image - 'Gets the Image index. - Dim imageIndex As Integer = imageInfo(0).Index - 'Closing the PDF document. - document.Close(True) - - - - - - Local Variable to store the image bounds. - - - - - Local Variable to store the image. - - - - - Local Variable to store the image index. - - - - - Internal variable to store the image name. - - - - - Internal variable to store the matrix. - - - - - Internal variable to store the image name. - - - - - Internal variable , it identifies the image is extracted or not. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Image bounds - Image - Image index - - - - Initializes a new instance of the class. - - Image bounds - Image - Image index - Image name - - - - Gets the Image Boundary location. - - - - - Gets the Image. - - - - - Gets the Image index. - - - - - Gets the image name. - - - - - Gets the matrix. - - - - - Gets the matrix. - - - - - Returns true, if soft masking is applied. Set to true when the image is undergone soft masking. - - - - - Returns true, if image masking is applied. Set to true when the image is undergone image masking. - - - - - Returns true, when the image property in the PDF document is set to undergo interpolation. - - - - - Gets or sets the image is extracted or not. - - - - - Represents the utility class for extracting text from the stream. - - - - - Internal variable to store the number of characters. - - - - - variable to hold font name and difference arrary. - - - - - variable to hold decoded Character - - - - - Initializes a new instance of the class. - - - - - Extracts text from the bytes. - - The byte array. - The Extracted Text. - - - - Extracts text from the bytes. - - The byte array. - type - The Extracted Text. - - - - Extracts text from the bytes. - - The byte array. - The Current Page Object. - Font Name Collection. - Font Reference Holder Colllection. - The Extracted Text. - - - - Extracts text from the bytes(True Type Font Documents). - - The byte array. - The Extracted Text. - - - - Extracts text from the bytes(Embed Fonts). - - The byte array. - The Current Page Object. - Font Name Collection. - Font Reference Holder Colllection. - The Extracted Text. - - - - Extracts text from Type0 - - The byte array. - The Extracted Text. - - - - Checks the token. - - The tokens. - The recent. - token - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Writes short value into the font stream - - Short value to be written - - - - Writes integer value into the font stream - - Integer value to be written - - - - Writes string value into the font stream - - String value to be written - - - - Write the bytes into the font stream - - byte array to be written - - - - Generate the font stream with respect to the font tables present in the entries - - list of font tables in the font - stream of the font - - - - Writes the header into the font stream - - Header information of the font - - - - Writes table entry into the font stream - - Table entry - - - - Writes short value into the font stream - - Short value to be written - - - - Writes integer value into the font stream - - Integer value to be written - - - - Writes string value into the font stream - - String value to be written - - - - Write the bytes into the font stream - - byte array to be written - - - - Calculates the search range of the font - - Number of tables in the font - Value of the search range - - - - Calculates the entry selector of the font - - Number of tables in the font - Value of the entry selector - - - - Calculates the range shift of the font - - Number of tables in the font - Search range of the font - Value of the range shift - - - - - - - Reads the header of the font - - - - - Reads the table part to get the details about the tables in the font - read - - - - Returns the id of the font table corresponding to the tag - - Font tag - Corresponding table ID - - - - Reads 4 bytes from the byte array - - Corresponding value - - - - Reads 8 bytes from the byte array - - Corresponding value - - - - Read 4 bytes from the byte array - - Corresponding string value - - - - Read 2 bytes from the byte array - - Corresponding integer value - - - - Separated the byte array corresponding to the table entry from the font stream - - Table ID - Byte array of the table - - - - Get table bytes - - - - - - - - Reads 4 bytes from the byte array - - Corresponding value - - - - Reads 8 bytes from the byte array - - Corresponding value - - - - Read 4 bytes from the byte array - - Corresponding string value - - - - Read 2 bytes from the byte array - - Corresponding integer value - - - - - - - Internal variable that holds cff glyphs - - - - - Takes in the encoded text, identifies the type of encoding used, decodes the encoded text, returns the decoded text. - - - Encoded string from the PDF document. - - - - Decoded string, human readable. - - - - - Decodes the octal text in the encoded text. - - The text encoded from the PDF document - Decoded text with replaced octal texts - - - - Decodes the HEX encoded string. - - - HEX encoded string. - - - Decoded string. - - - - - Extracts the font name associated with the string. - - - Font name. - - - - - Extracts the font style associated with the text string - - - Font style. - - - - - Extracts the font encoding associated with the text string - - - Font style. - - - - - Parsing the stream from the Adobe-Japan1-6.cidmap resource to create CIDMapTable - - CID map table resource - Adobe Japan CID map table - - - - Parse the Japanese character where the value is reference to another key in the Adobe Japan Cid Map Table - - mapped value which is a reference to another key - Mapped Character present in the Adobe Japan Cid Map table - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Decodes the Flate encoded stream - - Encoded stream - Decoded Stream - - - - Builds the mapping table that is used to map the decoded text to get the expected text. - - - A dictionary with key as the encoded element and value as the value to be mapped to. - - - - - Builds the mapping table that is used to map the decoded text to get the expected text. - - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Takes in the decoded text and maps it with its corresponding entry in the CharacterMapTable - - decoded text - Expected text string - - - - Takes in the decoded text and maps it with its corresponding entry in the CharacterMapTable - - encoded text - Expected text string - - - - Method to remove the new line character - - Text with new line character - Text without new line character - - - - - Checks whether the specified character is Non-Printable character or not. - - The character to be verified as either Non-Printable or not - Returns true, if the specified character is Non-Printable character. Otherwise it returns false - - - - Gets or sets the value indicating whether the encoded text is hexa decimal string - - - - - Holds the font name associated with the text element - - - - - Holds the font style of the text to be decoded. - - - - - Gets and sets whether same font is denoted in more than one XObject. - - - - - Holds the font encoding associated with the text element - - - - - Extracts the pageResource from the page - - Page whose resouce is needed - pageResource of the given page - - - - Collects all the ExtendedGraphicsSatate elements in the pdf document - - containing all the resources of the document - dictionary of ExtGState elements - - - - Collects all the fonts in the page in a dictionary - - dictionary containing all the resources in the Xobjects - dictionary containing font name and the font - - - - Extracts the text from the page given - - page from which text is extracted - font used in the text - text in the page to be decoded - decoded text - - - - Collects all the fonts in the page in a dictionary - - dictionary containing all the resources in the page - page in which text is to be extracted - dictionary containing font name and the font - - - - Collects all the images in the pdf document - - containing all the resources of the document - dictionary of images - - - - Updates the resources in the page - - Existing page resources - Dictionary items to the updated - Updated page resource - - - - The class provides methods and properties to access the PDF page resources. - - - - - Returns if the FontCollection has same font face. - - if font present true, else false - - - - Initializes the new instance of the class - - - - - Adds the resource with the specified name. - - Name of the resource - Resource to add - - - - Returns if the key already exists. - - if key present true,else false - - - - Gets the PDF page resources. - - - - - Gets or sets the value associated with the key. - - - - - constant used in eexec and charset decode - - - - - constant used in eexec and charset decode - - - - - Represents the number of random bytes in stream to ignore - - - - - Variable to hold the glyph string and its glyph shapes - - - - - Variable to hold the character code and character - - - - - Variable to hold the font matrix - - - - - Variable to cff glyphs - - - - - needed so CIDFOnt0 can extend - - - - - Parse the difference encoding - - - - - Handle encoding for type1 fonts - - - - - parse the encoded part from a type 1 font - - - - - extract the subroutine data - - - - - Extract Font Data - - - - - extract bytestream with char data - - - - - Represents the graphics object - - - - - Variable to hold the font matrix - - - - - Variable to cff glyphs - - - - lookup table for names for type 1C glyphs - - - Lookup table to map values - - - lookup data to convert Expert values - - - - Variable to hold the glyph string and its glyph shapes - - - - - Variable to hold the font matrix - - - - - Variable to hold the character code and character - - - - - Variable to hold the already cached path - - - - - Variable to hold the globalBias value for glyphs - - - - - Gets or sets the glyph string and its shapes - - - - - Gets or sets the globalbias - - - - - Gets or sets the font matrix - - - - - Gets or sets the character code and character - - - - - Gets or sets the already cached path - - - - - Represents form's field with style parameters. - - Class - Class - Class - Class - - - - Represents field of the PDF document's interactive form. - - Interface - - - - Internal variable to store field's name. - - - - - Internal variable to store page. - - - - - Internal variable to store flags of the field. - - - - - Internal variable to store form. - - - - - Internal variable to store mapping name. - - - - - Internal variable to store value whether to export field's data. - - - - - Internal variable to store value whether the field is read only. - - - - - Internal variable to store value whether the field is required. - - - - - Internal variable to store tool tip. - - - - - Internal variable to store dictionary. - - - - - Form flatten. - - - - - Indicates if AutoFormat has to be removed. - - - - - Internal variable to store tab index of the field - - - - - Internal variable to store form field index - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Sets the form. - - The form. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Sets the proper name to the field. - - The name. - - - - Clones the field. - - The page. - The copy of the field. - - - - Defines default appearance. - - - - - Initializes this instance. - - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets the name of the .[Read-Only] - - The name. - - - - Gets the form of the .[Read-Only] - - The form. - - - - Gets or sets the mapping name to be used when exporting interactive form - field data from the document. - - The mapping name. - - - - Gets or sets a value indicating whether this is export. - - true if export; otherwise, false. - - - - Gets or sets a value indicating whether this field is read-only. - - if the field is read only, set to true. - - - - Gets or sets a value indicating whether this is required. - - true if required; otherwise, false. - - - - Gets or sets the tool tip. - - The tool tip. - - - - Gets the page of the field.[Read-Only] - - The page. - - - - Gets or sets a value indicating whether to flatten this . - - - - - Gets or sets the flags. - - The flags. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Gets or sets a value indicating whether to disable auto format this . - - - - - Get or set tag for the field - - - - - Gets or sets the tab index for form fields - - - - - Gets or sets the form field index - - - - - Gets the element. - - - - - - Internal variable to store color shift value. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store actions of the field. - - - - - Internal variable to store appearance template. - - - - - Internal variable to store back color. - - - - - Internal variable to store border pen. - - - - - Internal variable to store shadow brush. - - - - - Internal variable to store visibility of the field. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Removes the annotation from page. - - The page. - The widget. - - - - Adds the annotation to page. - - The page. - The widget. - - - - Bounds at loaded page. - - The page. - The value. - - - - Gets the bounds at loaded page. - - The page. - The rect. - The bounds of field. - - - - Initializes an instance. - - - - - Creates the border pen. - - - - - Creates the back brush. - - - - - Gets or sets the bounds of the field. - - The bounds. - - - - Gets or sets the location. - - The location. - - - - Gets or sets the size. - - The size. - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets the actions of the field.[Read-Only] - - The actions. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets a value indicating whether this is visible. - - true if visible; otherwise, false. - - - - Gets the right bottom beveled Shadow brush. - - The right bottom beveled Shadow brush. - - - - Gets the widget. - - The widget. - - - - Gets the appearance template. - - The appearance template. - - - - Gets the back brush. - - The back brush. - - - - Gets the border pen. - - The border pen. - - - - Represents class which draws form fields. - - - - - Internal variable to store white brush. - - - - - Internal variable to store black brush. - - - - - Internal variable to store silver brush. - - - - - Internal variable to store gray brush. - - - - - Internal variable to store cached pens. - - - - - Internal variable to store string format for check field symbols. - - - - - Draws a button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a pressed button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a list box. - - The graphics. - The paint params. - The items. - The selected item index. - The font. - The string format. - - - - Draws a check box. - - The g. - The paint params. - The check symbol. - The state. - - - - Draws a check box. - - The g. - The paint params. - The check symbol. - The state. - The font. - - - - Draws a combo box. - - The g. - The paint params. - - - - Draws a combo box. - - The g. - The paint params. - - - - Draws the radio button. - - The g. - The paint params. - The check symbol. - The state. - - - - Draws the signature. - - The g. - The paint params. - - - - Draws the ellipseannotation. - - The g. - The paint params. - The x. - The y. - The width. - The height. - - - - Draws the rectangleannotation. - - The g. - The paint params. - The x. - The y. - The width. - The height. - - - - Draws the freetextannotation. - - The g. - The paint params. - The text. - The font. - The rect. - - - - Draws a border. - - The g. - The bounds. - The border pen. - The style. - Width of the border. - - - - Draws the round border. - - The g. - The bounds. - The border pen. - Width of the border. - - - - Draws a rectangular control. - - The g. - The paint params. - - - - Draws the left top shadow. - - The g. - The bounds. - The width. - The brush. - - - - Draws the right bottom shadow. - - The g. - The bounds. - The width. - The brush. - - - - Draws the round shadow. - - The g. - The paint params. - The state. - - - - Gets the pen. - - The color. - The width. - - - - - Gets the white brush. - - The white brush. - - - - Gets the black brush. - - The black brush. - - - - Gets the gray brush. - - The gray brush. - - - - Gets the silver brush. - - The silver brush. - - - - Gets the check box format. - - The check box format. - - - - Represents class with field's paint parameters. - - - - - Internal variable to store back brush. - - - - - Internal variable to store fore brush. - - - - - Internal variable to store border width. - - - - - Internal variable to store border pen. - - - - - Internal variable to store border style. - - - - - Internal variable to store bounds. - - - - - Internal variable to store shadow brush. - - - - - Rotation angle of the form fields. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The bounds. - The back brush. - The fore brush. - The border pen. - The style. - Width of the border. - The shadow brush. - - - - Gets or sets the back brush. - - The back brush. - - - - Gets or sets the fore brush. - - The fore brush. - - - - Gets or sets the border pen. - - The border pen. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the bounds. - - The bounds. - - - - Gets or sets the shadow brush. - - The shadow brush. - - - - Gets or Set the rotation angle. - - - - - - Represents form field with appearance custom support. - - Class - - - - Represents form's field with style parameters. - - Class - - - - Internal variable to store color shift value. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store field's font. - - - - - Internal variable to store actions of the field. - - - - - Internal variable to store appearance template. - - - - - Internal variable to store back color. - - - - - Internal variable to store color of background rectangle. - - - - - Internal variable to store fore pen. - - - - - Internal variable to store border pen. - - - - - Internal variable to store string format. - - - - - Internal variable to store shadow brush. - - - - - Internal variable to store visibility of the field. - - - - - Represents the visibility of the field - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Removes the annotation from page. - - The page. - The widget. - - - - Adds the annotation to page. - - The page. - The widget. - - - - Bounds at loaded page. - - The page. - The value. - - - - Gets the bounds at loaded page. - - The page. - The rect. - The bounds of field. - - - - Gets the font. If font is undefined default font will be used. - - font - - - - Initializes an instance. - - - - - Defines the default appearance. - - - - - Creates the border pen. - - - - - Creates the back brush. - - - - - Gets or sets the bounds. - - The bounds. - - - - Gets or sets the form field visibility - - - - - Gets or sets the location of the field. - - The location. - - - - Gets or sets the size of the field. - - The size. - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the color of the background rectangle of field. - - The color of the background rectangle of field. - - - - Gets or sets the color of the text. - - The color of the text. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets or sets the font. - - The font. - - - - Gets or sets the text alignment. - - The text alignment. - This property is meaningful for fields containing variable text only. - (i.e. , and - ). - - - - - Gets the actions of the field.[Read-Only] - - The actions. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets a value indicating whether this is visible. - - true if visible; otherwise, false. - - - - Gets the right bottom beveled Shadow brush. - - The right bottom beveled Shadow brush. - - - - Gets the widget. - - The widget. - - - - Gets the appearance template. - - The appearance template. - - - - Gets the back brush. - - The back brush. - - - - Gets the border pen. - - The border pen. - - - - Gets the fore pen. - - The fore pen. - - - - Gets the string format. - - The string format. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Page - The name. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance. - - The template. - - - - Gets the appearance.[Read-Only] - - The appearance. - - - - Represents button field in the PDF form. - - This class is used to add the button field to the PDF form. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store button's caption. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the button. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Adds Print action to current button field. - Clicking on the specified button will trigger the Print Dialog Box. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - // Subscribing print action - submitButton.AddPrintAction(); - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - ' Subscribing print action - submitButton.AddPrintAction() - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Saves an instance. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Draws the pressed appearance. - - The template. - - - - Gets or sets the caption text. - - The caption text. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - - - - Represents check box field in the PDF form. - - This class is used to add the check box field to the PDF form. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents base class for field which can be in checked and unchecked states. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store check box' style. - - - - - Internal variable to store template for checked state. - - - - - Internal variable to store template for unchecked state. - - - - - Internal variable to store template for pressed checked state. - - - - - Internal variable to store template for presssed unchecked state. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Styles to string. - - The style. - String representation of the check box' style. - - - - Initializes an instance. - - - - - Saves an instance. - - - - - Draws the appearance. - - - - - Ensures the template is created. - - The template. - - - - Releases the template. - - - - - Draws this instance if it is flatten. - - - - - Gets or sets the style. - - The object specifies the style of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - //Set the value for the check box - checkBox.Style = PdfCheckBoxStyle.Circle; - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - 'Set the value for the check box - checkBox.Style = PdfCheckBoxStyle.Circle - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the checked template. - - The checked template. - - - - Gets or sets the unchecked template. - - The unchecked template. - - - - Gets or sets the pressed checked template. - - The pressed checked template. - - - - Gets or sets the pressed unchecked template. - - The pressed unchecked template. - - - - Internal variable to store value whether the check box is checked. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Saves an instance. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance of the field. - - - - - Gets or sets a value indicating whether this is checked. - - true if checked; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - //Set the value for the check box - checkBox.Checked = true; - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - 'Set the value for the check box - checkBox.Checked = True - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents combo box field in the PDF Form. - - This class is used to create the combo box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents base class for form's list fields. - - Class - - - - Internal variable to store collection of items. - - - - - Internal variable to store selected item index. - - - - - Internal variable to store mulitple selected items. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Gets the list field items.[Read-Only] - - The items. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets the first selected item in the list. - - The index of the selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Set the first selected item in the list. - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Set the first selected item in the list. - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - The selected value. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Set the value of the first selected item in the list. - listBox.SelectedValue = "English"; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Set the value of the first selected item in the list. - listBox.SelectedValue = "English" - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets the first selected item in the list.[Read-Only] - - The selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Get the first selected item in the list. - PdfListFieldItem selectedItem = listBox.SelectedItem; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Get the first selected item in the list. - Dim selectedItem As PdfListFieldItem = listBox.SelectedItem - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets multiple selected indexes - - - - - Internal variable to store value whether the combobox is editable. - - - - - Initializes a new instance of the class with the specific page and name. - - Page of the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets a value indicating whether this is editable. - - true if editable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - - Internal variable to store duplicate field exception message. - - - - - Internal variable to store array of fields. - - - - - Private variable to store the form field names and thier index - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = new PdfFieldCollection(); - fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = New PdfFieldCollection() - fieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Interface - - - - Adds the specified field to the collection. - - The field item which is added in the PDF form. - The field to be added on the page. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - fieldCollection.Add(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - fieldCollection.Add(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Add the XFA form fields - - - - - - - Inserts the field at the specified index. - - The index of the field. - The field which should be inserted at the specified index. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - // Insert the field at first position in the collection - fieldCollection.Insert(0, positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - ' Insert the field at first position in the collection - fieldCollection.Insert(0, TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Determines whether field is contained within the collection. - - Check whether object is present in the field collection or not. - - true if field is present in the collection, otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - if (fieldCollection.Contains(positionComboBox as PdfField)) - MessageBox.Show("Already added field"); - else - fieldCollection.Add(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - If fieldCollection.Contains(TryCast(positionComboBox, PdfField)) Then - MessageBox.Show("Already added field") - Else - fieldCollection.Add(TryCast(positionComboBox, PdfField)) - End If - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the specific field. - - The object whose index is requested. - Index of the field in collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - document.Form.Fields.Add(positionComboBox); - int index = fieldCollection.IndexOf(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - document.Form.Fields.Add(positionComboBox) - Dim index As Integer = fieldCollection.IndexOf(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Removes the specified field in the collection. - - The object to be removed from collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - document.Form.Fields.Add(positionComboBox); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - fieldCollection.Remove(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - document.Form.Fields.Add(positionComboBox) - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - fieldCollection.Remove(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Removes field at the specified position. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - document.Form.Fields.Add(positionComboBox); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - // Remove the first element - fieldCollection.RemoveAt(0); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - document.Form.Fields.Add(positionComboBox) - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - ' Remove the first element - fieldCollection.RemoveAt(0) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - - Adds the specified field. - - The field. - The new page. - Index of added field. - - - - Add the specified XFA form fields - - - - - - - Adds a field to collection. - - The field. - field. - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Inserts the loaded field. - - The field. - The new page. - field. - - - - Updates the references. - - The kids array. - The array. - The new array. - - - - Returns the form field index by validating the fieldnames - - - - - Gets the at the specified index.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the with their field name.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - fieldCollection["positionComboBox"].Flatten = true; - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - fieldCollection("positionComboBox").Flatten = True - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the items. - - The items. - - - - Gets the element. - - - - - - Represents interactive form of the PDF document. - - Please refer the UG docuemntation link for more details of working with forms. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - Internal variable to store form's collection of fields. - - - - - Internal variable to store resources. - - - - - Internal value indicating whether the form is read only. - - - - - Internal variable to store signature flags. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store value whether to generate default appearancesof the fields. - - - - - Indicates is form flatten or not. - - - - - Internal variable to store value whether to change the name of the field. - - - - - Holds the fields names of the form. - - - - - Internal values to hold form fields values. - - - - - Internal variable to ensure the form is XFA or not - - - - - Indicates if AutoFormat has to be removed. - - - - - Holds the reference of the loaded page and the cloned page - - - - - Internal field to check whether any field is modified. - - - - - field to check whether use DefaultEncoding - - - - - field to check whether use DefaultAppearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = new PdfForm(); - form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = New PdfForm() - form = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Clears PdfForm. - - - - - Checks for the flatten fields. - - - - - Deletes from pages. - - The field. - - - - Deletes the annotation from the page dictionary. - - The field. - - - - Gets the new name of the field. - - The name. - The field name. - - - - Specifies whether to set the default appearance for the form or not. - - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - //Enable the default Appearance - form.SetDefaultAppearance(true); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - 'Enable the default Appearance - form.SetDefaultAppearance(True) - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - XFA document - - - - - Gets or sets whether the form is default encoding or not. - - True if the form is default encoding , otherwise false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - Set default encoding to form. - form.IsDefaultEncoding = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - Set default encoding to form. - form.IsDefaultEncoding = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the field names. - - The field names. - - - - Gets or sets a value indicating whether the form is XFA. - - - - - Gets the fields collection.[Read-Only] - - The Form fields. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is flatten. - - True if the is flatten , otherwise false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the form is read only. - - true if the form is read only; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - PdfForm form = document.Form; - // Sets the form as read only - form.ReadOnly = true; - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a form - Dim form As PdfForm = document.Form - ' Sets the form as read only - form.ReadOnly = True - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether [field auto naming]. - - true if the form is field auto naming; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - // Creates a form - PdfForm form = document.Form; - // Sets the form fields as auto naming. - form.FieldAutoNaming = true; - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a form - Dim form As PdfForm = document.Form - ' Sets the form fields as auto naming. - form.FieldAutoNaming = True - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the viewer must generate appearances for fields. - - true if viewer must generate appearance; otherwise, false. - - - - Gets or sets the signature flags. - - The signature flags. - - - - Gets or sets the resources. - - The resources. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Gets or sets whether to disable auto formating. - - - - - Specifies if any formfield is changed since loading that would affect the appearance. - - - - - Gets the element. - - - - - - Represents a collection of form fields. - - This class is used to get the collection of form fields. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12F) - 'Create a combo box - Dim positionComboBox As New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - Dim i As Integer = 0 - While i != fieldCollection.Count - fieldCollection(i).Flatten = True - i += 1 - End While - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store form. - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = new PdfFormFieldCollection(); - fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12F) - 'Create a combo box - Dim positionComboBox As New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFormFieldCollection = New PdfFormFieldCollection() - fieldCollection = document.Form.Fields - ' Flatten the form collection - Dim i As Integer = 0 - While i != fieldCollection.Count - fieldCollection(i).Flatten = True - i += 1 - End While - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - - - - Adds a field to collection. - - The field. - - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Check whether the field with the same name already exists. - - The name. - - true if there are no fields with the same name within the collection; - otherwise false. - - - - - Gets or sets the form. - - - - - Represents list box field of the PDF form. - - This class is used to create the list box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Internal variable to store value whether the fiels is multiselectable. - - - - - Initializes a new instance of the class with the specific page and name. - - Page the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets a value indicating whether the field is multiselectable. - - true if multiselectable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - - Text position it the primitive array. - - - - - Value position in the primitive array. - - - - - Internal variable to store caption of the list item. - - - - - Internal variable to store value of the list item. - - - - - Internal variable to store array primitive. - - - - - Initializes a new instance of the class. - - - - - - Initializes the specified text. - - The text. - The value. - - - - - - Gets the element. - - The primitive. - - - - Represents list field item collection. - - This class is used to get the collection of list field items in PDF forms. Please refer the UG docuemntation link for more details - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Internal variable to store array of - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = new PdfListFieldItemCollection(); - itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = New PdfListFieldItemCollection() - itemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - - Inserts the list item field at the specified index. - - The index where to insert the new item. - The object to be added to collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - PdfListFieldItem item = new PdfListFieldItem("Arabic", "Arabic"); - // Inserting an item at second position - itemCollection.Insert(1, item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - Dim item As PdfListFieldItem = New PdfListFieldItem("Arabic", "Arabic") - ' Inserting an item at second position - itemCollection.Insert(1, item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the specified . - - The object which to be removed in the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Remove an item from collection - itemCollection.Remove(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Remove an item from collection - itemCollection.Remove(item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the item at the specified position. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Remove an item from collection - itemCollection.RemoveAt(1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Remove an item from collection - itemCollection.RemoveAt(1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Determines whether the item is present in the collection. - - Check whether object is exists in the collection or not. - - true if the item is contained within the collection; otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - if (itemCollection.Contains(item)) - MessageBox.Show("Already, item has added!"); - else - itemCollection.Add(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - If itemCollection.Contains(item) Then - MessageBox.Show("Already, item has added!") - Else - itemCollection.Add(item) - End If - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the specified item. - - A object whose index is requested. - The index of the given item, -1 if the item does not exist. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Gets the index of an item - int index = itemCollection.IndexOf(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Gets the index of an item - Dim index As Integer = itemCollection.IndexOf(item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Clears the collection. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Clear the collection - itemCollection.Clear(); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Clear the collection - itemCollection.Clear() - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Adds the item. - - The item. - Index of the added item. - - - - Inserts the item. - - The index. - The item. - - - - Removes the element at the specified position. - - The index. - - - - Removes the item. - - The item. - - - - Gets the at the specified index.[Read-Only] - - The object. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Reading the second item in the collection and assigning new values - PdfListFieldItem item = itemCollection[1]; - item.Text = "Arabic"; - item.Value = "Arabic"; - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Reading the second item in the collection and assigning new values - Dim item As PdfListFieldItem = itemCollection(1) - item.Text = "Arabic" - item.Value = "Arabic" - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents radio button field in the PDF form. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store collection of items. - - - - - Internal variable to store selected item index. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - - - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Gets or sets the first selected item in the list. - - The index of the selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - // Set the selected item index index - employeesRadioList.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - ' Set the selected item index index - employeesRadioList.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - The selected value of the list field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item value - employeesRadioList.SelectedValue = "1-9"; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Set the selected item value - employeesRadioList.SelectedValue = "1-9" - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the first selected item in the list.[Read-Only] - - The selected item of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item - employeesRadioList.SelectedItem = radioItem1; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Set the selected item - employeesRadioList.SelectedItem = radioItem1 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the items of the radio button field.[Read-Only] - - The radio button field item collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item value - employeesRadioList.SelectedValue = "1-9"; - // Getting item collection - PdfRadioButtonItemCollection itemCollection = employeesRadioList.Items; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item employeesRadioList.Items.Add(radioItem2) - ' Set the selected item value - employeesRadioList.SelectedValue = "1-9" - ' Getting item collection - Dim itemCollection As PdfRadioButtonItemCollection = employeesRadioList.Items - document.Save("Form.pdf"); - document.Close(True) - - - Class - Class - Class - - - - Represents an item of a radio button list. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store field which this item belongs to. - - - - - Internal variable to store item's value. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specific value. - - The value. - - - - Initializes instance. - - - - - Sets the field. - - The field. - - - - Handles the Save event of the Widget control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Draws the appearance. - - - - - Gets the value. - - m_value - - - - Draws this instance if it is flatten. - - - - - - Gets or sets the bounds. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the value. - - The value. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem(); - radioItem1.Value = "1-9"; - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem() - radioItem1.Value = "1-9" - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents collection of radio buttons items. - - This class is used to . Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store array of item's primitives. - - - - - Internal variable to store field. - - - - - Initializes a new instance of the class with the specific . - - The field. - - - - Adds the specified item. - - Please refer the UG docuemntation link for more details. - The object to be added to collection. - The index of the added field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Inserts an item at the specified index. - - The index where to insert the new item.. - A object to be added to collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Insert(0, radioItem2); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Insert(0, radioItem2) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the specified item from the collection. - - The object which is to be removed from the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Remove the item - employeesRadioList.Items.Remove(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Remove the item - employeesRadioList.Items.Remove(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the item at the specified index. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Remove the item - employeesRadioList.Items.RemoveAt(0); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Remove the item - employeesRadioList.Items.RemoveAt(0) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the item within the collection. - - A object whose index is requested. - Index of the item with the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Find the index - int index = employeesRadioList.Items.IndexOf(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'Add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Find the index - Dim index As Integer = employeesRadioList.Items.IndexOf(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Determines whether the collection contains the specified item. - - Check whether object is exists in the collection or not. - - true if collection contains specified item; otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Check whether the specified item is in Collection - if (employeesRadioList.Items.Contains(radioItem1)) - MessageBox.Show("Item already added in the collection"); - else - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Check whether the specified item is in Collection - If employeesRadioList.Items.Contains(radioItem1) Then - MessageBox.Show("Item already added in the collection") - Else - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - End If - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Clears the item collection. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Clears the item - employeesRadioList.Items.Clear(); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Clears the item - employeesRadioList.Items.Clear() - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Adds the item. - - The item. - Index of the inserted item. - - - - Inserts the item. - - The index. - The item. - - - - Removes the specified item. - - The item. - - - - Clears the collection. - - - - - Gets the at the specified index. - - Returns item at the specified position. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Gets the first item from the collection - PdfRadioButtonListItem item = employeesRadioList.Items[0]; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Gets the first item from the collection - Dim item As PdfRadioButtonListItem = employeesRadioList.Items(0) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents form field with appearance custom support. - - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - page - The name. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance. - - The template. - - - - Gets the appearance of the signature field.[Read-Only] - - The appearance. - - - - Represents signature field in the PDF Form. - - Please refer the UG docuemntation link for more details about signature field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store the signature. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Initializes an instance. - - - - - Saves the signature. - - - - - Draws the field. - - - - - Draws the appearance. - - The template. - - - - Gets the visual appearance of this field.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Gets the signature appearance - PdfAppearance appearance = sign.Appearance; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - ' Gets the signature appearance - Dim appearance As PdfAppearance = sign.Appearance - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Gets or sets the digital signature for signing the field. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Signature = new PdfSignature(page, new PdfCertificate("PDF.pfx", "Syncfusion"), "Signature"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Gets the signature appearance - PdfAppearance appearance = sign.Appearance; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Signature = New PdfSignature(page, New PdfCertificate("PDF.pfx", "Syncfusion"), "Signature") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Represents text box field in the PDF form. - - This class is used to create the text box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - The password chrackter. - - - - - Internal variable to store value. - - - - - Internal variable to store default value. - - - - - Internal variable to store value whether to check spelling. - - - - - Internal variable to store value whether the field has comb behavior. - - - - - Internal variable to store value whether the field should be multiline. - - - - - Internal variable to store value whether it is a password field. - - - - - Internal variable to store value whether the field is scrollable. - - - - - Internal variable to store field's maximum length. in characters. - - - - - Initializes a new instance of the class with the provided page and name. - - Page which the field to be placed on. - The name of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets the text in the text box. - - The text of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Text = "Cris"; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Text = "Cris" - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the default value. - - The default value of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.DefaultValue = "Cris"; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.DefaultValue = "Cris" - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to check spelling. - - true if check spelling; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.SpellCheck = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.SpellCheck = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Meaningful only if the MaxLength property is set and the Multiline, Password properties are false. - If set, the field is automatically divided into as many equally spaced positions, or combs, - as the value of MaxLength, and the text is laid out into those combs. - - true if need to insert spaces; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.InsertSpaces = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.InsertSpaces = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is multiline. - - true if multiline; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Multiline = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Multiline = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is password field. - - true if password field; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Password = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Password = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is scrollable. - - true if scrollable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Scrollable = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Scrollable = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the maximum number of characters that can be entered in the text box. - - An integer value specifying the maximum number of characters that can be entered in the text box. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.MaxLength = 8; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.MaxLength = 8 - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents fields flags enum. - - - - - Default field flag. - - - - - If set, the user may not change the value of the field. Any associated widget annotations - will not interact with the user; that is, they will not respond to mouse clicks or - change their appearance in response to mouse motions. This flag is useful - for fields whose values are computed or imported from a database. - - - - - If set, the field must have a value at the time it is exported by a submit-form action. - - - - - If set, the field must not be exported by a submit-form action - - - - - If set, the field can contain multiple lines of text; - if clear, the field�s text is restricted to a single line. - - - - - If set, the field is intended for entering a secure password that should not be - echoed visibly to the screen. Characters typed from the keyboard should instead - be echoed in some unreadable form, such as asterisks or bullet characters. - - - - - If set, the text entered in the field represents the pathname of a file whose - contents are to be submitted as the value of the field. - - - - - If set, text entered in the field is not spell-checked. - - - - - If set, the field does not scroll (horizontally for single-line fields, vertically - for multiple-line fields) to accommodate more text than fits within its annotation - rectangle. Once the field is full, no further text is accepted. - - - - - Meaningful only if the MaxLen entry is present in the text field dictionary and if - the Multiline, Password, and FileSelect flags are clear. If set, the field is - automatically divided into as many equally spaced positions, or combs, as the - value of MaxLen, and the text is laid out into those combs. - - - - - If set, the value of this field should be represented as a rich text string. - If the field has a value, the RVentry of the field dictionary specifies - the rich text string. - - - - - If set, exactly one radio button must be selected at all times; clicking - the currently selected button has no effect. If clear, clicking the selected - button reselects it, leaving no button selected. - - - - - If set, the field is a set of radio buttons; if clear, the field is a check box. - This flag is meaningful only if the Pushbutton flag is clear. - - - - - If set, the field is a pushbutton that does not retain a permanent value. - - - - - If set, a group of radio buttons within a radio button field that use the same value - for the on state will turn on and off in unison; that is if one is checked, they - are all checked. If clear, the buttons are mutually exclusive. - - - - - If set, the field is a combo box; if clear, the field is a list box. - - - - - If set, the combo box includes an editable text box as well as a drop-down - list; if clear, it includes only a drop-down list. This flag is meaningful only - if the Combo flag is set. - - - - - If set, the field�s option items should be sorted alphabetically. This flag - is intended for use by form authoring tools, not by PDF viewer applications. - - - - - If set, more than one of the field�s option items may be selected simultaneously; - if clear, no more than one item at a time may be selected. - - - - - If set, the new value is committed as soon as a selection is made with the pointing - device. This option enables applications to perform an action once a selection is - made, without requiring the user to exit the field. If clear, the new value is not - committed until the user exits the field. - - - - - Specifies the available styles for a field border. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - // Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create submit button - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - // Set the border style for the button field - submitButton.BorderStyle = PdfBorderStyle.Dashed; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create submit button - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - ' Set the border style for the button field - submitButton.BorderStyle = PdfBorderStyle.Dashed - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Default value is Solid. - Class - Class - Class - - - - A solid rectangle surrounding the annotation. - - - - - A dashed rectangle surrounding the annotation. - - - - - A simulated embossed rectangle that appears to be raised above the surface - of the page. - - - - - A simulated engraved rectangle that appears to be recessed below the surface - of the page. - - - - - A single line along the bottom of the annotation rectangle. - - - - - Specifies the highlight mode for a field. - - - - // Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create the signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Set the high light mode for a signature field - sign.HighlightMode = PdfHighlightMode.Push; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - document.Close(true); - - - ' Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create the signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - ' Set the high light mode for a signature field - sign.HighlightMode = PdfHighlightMode.Push - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - document.Close(True) - - - Default value is Invert. - - - - No highlighting. - - - - - Invert the contents of the field rectangle. - - - - - Invert the field's border. - - - - - Pushed highlighting. - - - - - Specifies the style for a check box field. - - The default value is Check. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - // Add the check box field in form`s field collection - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - // Set the check style - checkBox.Style = PdfCheckBoxStyle.Star; - checkBox.Checked = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - ' Add the check box field in form`s field collection - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - ' Set the check style - checkBox.Style = PdfCheckBoxStyle.Star - checkBox.Checked = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - A check mark is used for the checked state. - - - - - A circle is used for the checked state. - - - - - A cross is used for the checked state. - - - - - A diamond symbol is used for the checked state. - - - - - A square is used for the checked state. - - - - - A star is used for the checked state. - - - - - Specifies Http request method. - - - - - Data submitted using Http Get method. - - - - - Data submitted using Http Post method. - - - - - Specifies the enumeration of submit data formats. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Data should be transmitted as Html. - - - - - Data should be transmitted as Pdf. - - - - - Data should be transmitted as Forms Data Format. - - - - - Data should be transmitted as XML Forms Data Format . - - - - - Represents states of the check field. - - - - - Indicated unchecked/unpressed state. - - - - - Indicated checked unpressed state. - - - - - Indicated pressed unchecked state. - - - - - Indicated pressed checked state. - - - - - Specifies the form field visibility types - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.MaxLength = 8; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - //Set the visibility. - firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.MaxLength = 8 - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - 'Set the visibility. - firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Indicate visibility of the form field. - - - - - Hidden the visibility of the form field. - - - - - Indicate visibility of the form field and not printable. - - - - - Indicate hidden the visibility of the form field and not printable. - - - - - Defines additional parameters for the embedded file. - - - - - Internal variable to store creation date. - - - - - Internal variable to store modification date. - - - - - Internal variable to store size of the embedded file. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets or sets creation date. - - Creation date. - - - - Gets or sets modification date. - - Modification date. - - - - Gets or sets the size of the embedded file. - - The size. - - - - Gets the element. - - - - - - Collection of the cached objects. - - - - - Stores the similar objects. - - - - - Initializes a new instance of the class. - - - - - Searches for the similar cached object. If is not found - adds the object to the cache. - - Object to search for. - Cached similar object if found, null otherwise. - - - - Checks whether a cache contains a group of such objects. - - The object. - true if contains, False otherwise. - - - - Returns number of cached object in a group. - - The object. - Returns number of cached object in a group if found, 0 otherwise. - - - - Removes the object from a cache. - - The object. - - - - Cleares cache. - - - - - Creates a new group. - - A created group. - - - - Searches for a corresponding group. - - A representative of a group. - A group if found, Null otherwise. - - - - Remove a group from the storage. - - A group of the objects. - - - - Gets the at the specified index. - - - - - - Gets the font offset table. - - The font offset table. - - - - Gets the font data. - - The font data. - - - - Represents default appearance string. - - - - - Internal variable to store fore color. - - - - - Internal variable to store font name. - - - - - Internal variable to store font size. - - - - - Initializes a new instance of the class. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Gets or sets the name of the font. - - The name of the font. - - - - Gets or sets the size of the font. - - The size of the font. - - - - Gets or sets the color of the fore. - - The color of the fore. - - - - Represents sound embedded into pdf document. - - - - - Internal variable to store sampling rate. - - - - - Internal variable to store encoding format. - - - - - Internal variable to store number of sound channels. - - - - - Internal variable to store number of bits per sample value per channel. - - - - - Internal variable to store sound file name. - - - - - Internal variable to store stream. - - - - Name of the file. - - - - Initializes a new instance of the class. - - Name of the file. - if set to true [test]. - - - - Initializes a new instance of the class. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Gets or sets the sampling rate, in samples per second (in Hz). - - - - - Gets or sets the number of bits per sample value per channel. - - - - - Gets or sets the encoding format for the sample data. - - - - - Gets or sets the number of sound channels. - - - - The name of the file. - - - - Gets the element. - - - - - - Represents specification of the references file in pdf document. - - - - - Internal variable to store file name. - - - - File name. - Path Type. - - - - Initializes a new instance of the class. - - - - - - Saves object. - - - - The name of the file. - - - - Optimized version of SortedList collection. Instead of keeping two - arrays, one for keys and one for values, the values array on - Hashtable collection are changed. Performance of this collection is better than that of SortedList. - - - - - Default capacity of internal buffers. - - - - - Array which store keys in sorted order. - - - - - Collection stores values. - - - - - Size of collection. - - - - - Version of collection data. - - - - - Default comparer for keys. - - - - - List of keys. - - - - - List of values. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The initial capacity. - - - - Initializes a new instance of the class. - - The comparer. - - - - Initializes a new instance of the class. - - The comparer. - The capacity. - - - - Initializes a new instance of the class. - - The d. - - - - Initializes a new instance of the class. - - The d. - The comparer. - - - - Returns a synchronized (thread-safe) wrapper for the SortedList. - - The SortedList to synchronize. - A synchronized (thread-safe) wrapper for the SortedList. - - When list is null. - - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - When key is null. - - - When list already contains specified key. - - - - - Removes all elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Clone current instance. - - Returns clone of current object. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the SortedListEx to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If specified array is null. - - - If rank of the array is not 1 or there are not enough elements. - - - If specified arrayIndex is less than zero. - - - - - Gets the value at the specified index of the SortedListEx. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the key at the specified index of the SortedListEx. - - The zero-based index of the key to get. - The key at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the keys in the SortedListEx. - - An IList containing the keys in the SortedListEx. - - - - Gets the values in the SortedListEx. - - An IList containing the values in the SortedListEx. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - If specified key is null. - - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - When index is less than zero or greater than size of the list. - - - - - Removes the element with the specified key from SortedListEx. - - The key of the element to remove. - - - - Replaces the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - When index is less than zero or greater than size of the list. - - - - - Sets the capacity to the actual number of elements. - - - - - Returns an IDictionaryEnumerator that can iterate through the SortedListEx. - - An IDictionaryEnumerator for the SortedListEx. - - - - Returns an IEnumerator that can iterate through the SortedListEx. - - An IEnumerator for the SortedListEx. - - - - Inserts element with specified key and value at specified index. - - The zero-based index to insert element at. - The key of the element to insert. - The value of the element to insert. - - - - Ensures that the capacity of this instance is at least the specified value. - - The minimum capacity to ensure. - - - - Gets or sets the capacity. - - The capacity. - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - - Gets a value indicating whether the object is read-only. - - - true if the object is read-only; otherwise, false. - - - - - Gets a value indicating whether the object has a fixed size. - - - true if the object has a fixed size; otherwise, false. - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - - Gets or sets the value associated with the specified key. - - - - - Wrapped SortedListEx. - - - - - Sync object. - - - - - Initializes a new instance of the class. - - The list. - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - - - Removes all the elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of the current instance. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Gets the value at the specified index of the list. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - - - Returns an IDictionaryEnumerator that can iterate through the list. - - An IDictionaryEnumerator for the list. - - - - Gets the key at the specified index of the list. - - The zero-based index of the key to get. - The key at the specified index of the list. - - - - Gets the keys in the list. - - An IList containing the keys in the list. - - - - Gets the values in the list. - - An IList containing the values in the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Replaces the value at a specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Sets the capacity to the actual number of elements. - - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Gets or sets the value associated with the specified key. - - key - - - - If it is assumed to getObjectRetType, Current will return key - of the current element. - - - - - If it is assumed to getObjectRetType, Current will return value - of the current element. - - - - - If it is assumed to getObjectRetType, Current will return both - - key and value (as DictionaryEntry). - - - - - List for which is this enumerator. - - - - - Key of the current element. - - - - - Values of the current element. - - - - - Index of current element. - - - - - Starting index for the enumerator. - - - - - Ending index for this enumerator. - - - - - Version of collection data. - - - - - True if current element is correct, False otherwise - (before beginning or after end). - - - - - Specifies what should return method Current (Key, Value or both). - - - - - Creates enumerator for specified list, starting from specified index - and with specified count. - - list for which to create enumerator. - Starting index. - Number of elements to enumerate. - Type of enumerating values (keys, value, DicEntry). - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; - False if the enumerator has passed the end of the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Gets the key of the current dictionary entry. - - - - The key of the current element of the enumeration. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - Gets both the key and the value of the current dictionary entry. - - - - A containing both the key and the value of the current dictionary entry. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - Gets The current element in the collection. Read-only. - - - If current is false. - - - - - Gets the value of the current dictionary entry. - - - - The value of the current element of the enumeration. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - List for which this collection was created. - - - - - Creates KeyList for specified SortedListEx. - - SortedListEx for which KeyList must be created. - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If array is null or rank of the array is not 1. - - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of the key, if the key is found; otherwise, -1. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - - Gets a value indicating whether the is read-only. - - - true if the is read-only; otherwise, false. - - - - - Gets a value indicating whether the has a fixed size. - - - true if the has a fixed size; otherwise, false. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the key at the specified index. - - - - - List for which this collection was created. - - - - - Array list that contain values. - - - - - Creates ValueList for specified SortedListEx. - - SortedListEx for which ValueList must be created. - - - - Re-read values from the list. - - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified value. - - Value to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified value. - - The value to locate. - The zero-based index of the value, if the value is found, otherwise -1. - - - - Removes the specified value from list. - - The value to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Gets the size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value at the specified index. - - - - - Optimized version of SortedList collection. Instead of keeping two - arrays, one for keys and one for values, the values array on - Hashtable collection are changed. Performance of this collection is better than that of SortedList. - - - - - Default capacity of internal buffers. - - - - - Array which store keys in sorted order. - - - - - Collection stores values. - - - - - Size of collection. - - - - - Version of collection data. - - - - - Default comparer for keys. - - - - - List of keys. - - - - - List of values. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The initial capacity. - - - - Initializes a new instance of the class. - - The comparer. - - - - Initializes a new instance of the class. - - The comparer. - The capacity. - - - - Initializes a new instance of the class. - - The d. - - - - Initializes a new instance of the class. - - The d. - The comparer. - - - - Returns a synchronized (thread-safe) wrapper for the SortedList. - - The SortedList to synchronize. - A synchronized (thread-safe) wrapper for the SortedList. - - When list is null. - - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - When key is null. - - - When list already contains specified key. - - - - - Adds the specified pair. - - The pair. - - - - Removes all elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Clone current instance. - - Returns clone of current object. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Determines whether [contains] [the specified pair]. - - The pair. - - if it contains the specified pair, set to true . - - - - - Copies all the elements of the SortedListEx to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If specified array is null. - - - If rank of the array is not 1 or there are not enough elements. - - - If specified arrayIndex is less than zero. - - - - - Gets the value at the specified index of the SortedListEx. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the key at the specified index of the SortedListEx. - - The zero-based index of the key to get. - The key at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the keys in the SortedListEx. - - An IList containing the keys in the SortedListEx. - - - - Gets the values in the SortedListEx. - - An IList containing the values in the SortedListEx. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - If specified key is null. - - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - When index is less than zero or greater than size of the list. - - - - - Removes the element with the specified key from SortedListEx. - - The key of the element to remove. - - - - Removes the specified pair. - - The pair. - - - - - Replaces the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - When index is less than zero or greater than size of the list. - - - - - Sets the capacity to the actual number of elements. - - - - - Returns an IDictionaryEnumerator that can iterate through the SortedListEx. - - An IDictionaryEnumerator for the SortedListEx. - - - - Returns an IEnumerator that can iterate through the SortedListEx. - - An IEnumerator for the SortedListEx. - - - - Tries the get value. - - The key. - The value. - - - - - Inserts element with specified key and value at specified index. - - The zero-based index to insert element at. - The key of the element to insert. - The value of the element to insert. - - - - Ensures that the capacity of this instance is at least the specified value. - - The minimum capacity to ensure. - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - List of keys. Read-only. - - - - - List of keys. Read-only. - - - - - List of values. Read-only. - - - - - List of values. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value associated with the specified key. - - - - - Wrapped SortedListEx. - - - - - Sync object. - - - - - Creates SyncSortedListEx for specified SortedListEx. - - SortedListEx that will be wrapped. - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - - - Removes all the elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of the current instance. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Gets the value at the specified index of the list. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - - - Returns an IDictionaryEnumerator that can iterate through the list. - - An IDictionaryEnumerator for the list. - - - - Gets the key at the specified index of the list. - - The zero-based index of the key to get. - The key at the specified index of the list. - - - - Gets the keys in the list. - - An IList containing the keys in the list. - - - - Gets the values in the list. - - An IList containing the values in the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Replaces the value at a specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Sets the capacity to the actual number of elements. - - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Gets or sets the value associated with the specified key. - - - - - List for which is this enumerator. - - - - - Key of the current element. - - - - - Values of the current element. - - - - - Index of current element. - - - - - Starting index for the enumerator. - - - - - Ending index for this enumerator. - - - - - Version of collection data. - - - - - True if current element is correct, False otherwise - (before beginning or after end). - - - - - Shows if the object was disposed. - - - - - Creates enumerator for specified list, starting from specified index - and with specified count. - - list for which to create enumerator. - Starting index. - Number of elements to enumerate. - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; - False if the enumerator has passed the end of the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Sets the enumerator to its initial position, which is before - the first element in the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns key of the current element. Read-only. - - - When the current version is not equal to the SortedListEx version - or if current is false. - - - - - The current element in the collection. Read-only. - - - If current is false. - - - - - Returns value for the current element. - - - When the current version is not equal to the SortedListEx version - or if current is false. - - - - - Gets the element in the collection at the current position of the enumerator. - - - The element in the collection at the current position of the enumerator. - - - - List for which this collection was created. - - - - - Creates KeyList for specified SortedListEx. - - The sorted list ex. - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If array is null or rank of the array is not 1. - - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of the key, if the key is found; otherwise, -1. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the key at the specified index. - - - - - List for which this collection was created. - - - - - Array list that contain values. - - - - - Creates ValueList for specified SortedListEx. - - The sorted list ex. - - - - Re-read values from the list. - - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified value. - - Value to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Returns the zero-based index of the specified value. - - The value to locate. - The zero-based index of the value, if the value is found, otherwise -1. - - - - Removes the specified value from list. - - The value to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value at the specified index. - - - - - Comparer for strings. - - - - - Compare two strings. - - String to compare. - String to compare. - Returns compared results. - - - - Compares two objects and returns a value indicating whether one is less than, - equal to, or greater than the other. - - The first object to compare. - The second object to compare. - - Value Condition Less than zero. x is less than y.Zero x equals - y.Greater than zero x is greater than y. - - - - - Represents Uri file specification. - - - - - Internal variable to store file name. - - - - File name. - - - - Initializes instance. - - - - - Saves object. - - - - - - - - Utility class. - - - - - Number of decimals in float rounding. - - - - - Initializes a new instance of the class. - - - - - Checks the file path. - - The path. - The path if it exist. - It's thrown if the file wasn't found. - - - - The encoding format for the sample data. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - sound.Channels = PdfSoundChannels.Mono - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Unspecified or unsigned values in the range 0 to 2^B - 1. - - - - - Twos-complement values. - - - - - M-law�encoded samples. - - - - - A-law�encoded samples. - - - - - The number of sound channels. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - sound.Channels = PdfSoundChannels.Mono - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - One channel. - - - - - Two channels. - - - - - Enumeration that represents fit mode. - - - - //Creates a new document. - PdfDocument document = new PdfDocument(); - //Adds a page. - PdfPage page = document.Pages.Add(); - //Creates document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Sets the destination page. - bookmark.Destination = new PdfDestination(page); - //Sets the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Sets the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Set the destination mode. - bookmark.Destination.Mode = PdfDestinationMode.FitH; - //Saves and closes the PDF document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page. - Dim page As PdfPage = document.Pages.Add() - 'Creates document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Sets the destination page. - bookmark.Destination = New PdfDestination(page) - 'Sets the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Sets the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Set the destination mode. - bookmark.Destination.Mode = PdfDestinationMode.FitH - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Display the page designated by page, with the coordinates (left, top) positioned - at the top-left corner of the window and the contents of the page magnified - by the factor zoom. A NULL value for any of the parameters left, top, or - zoom specifies that the current value of that parameter is to be retained unchanged. - A zoom value of 0 has the same meaning as a NULL value. - - - - - Display the page designated by page, with its contents magnified just enough - to fit the entire page within the window both horizontally and vertically. If - the required horizontal and vertical magnification factors are different, use - the smaller of the two, centering the page within the window in the other - dimension. - - - - - Display the page designated by page, with the horizontal coordinate left positioned - at the left edge of the window and the contents of the page magnified - just enough to fit the entire height of the page within the window. - - - - - Display the page designated by page, with the vertical coordinate top positioned - at the top edge of the window and the contents of the page magnified - just enough to fit the entire width of the page within the window. - - - - - Represents the blend color space - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the base class for PdfBlend and PdfColorBlend classes. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Precision of the GCD calculations. - - - - - Local variable to store the count. - - - - - Local variable to store the positions. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified elements count - - The number of the elements. - - - - Calculate the GCD of the specified values. - - The values. - The calculated GCD value. - - - - Determines greatest common divisor of the specified u and v. - - The u. - The v. - The GCD value - - - - Determines greatest common divisor of the specified u and v. - - The u. - The v. - The GCD value - - - - Determines if both parameters are even numbers. - - The first value. - The second value. - result - - - - Determines if the u value is even. - - The u value. - bool - - - - Interpolates the specified colours according to the t value. - - The t value, which show the imagine position on a line from 0 to 1. - The minimal colour. - The maximal colour. - The color space. - color - - - - - Sets the array. - - The array, which has values. - The array if it's passed all tests. - - - - Gets or sets the array of positions - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the number of elements that specify the blend. - - - - - Local variable to store the factors. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified factor count - - The number of elements in the factors and positions arrays. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(1); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend(1) - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Generates a correct color blend. - - The colours. - The color space. - A well formed colour blend. - - - - Clones this instance. - - The copy of this instance of PdfBlend. - - - - Gets or sets the array of factor to the blend. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Brushes for all the standard colors - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the brushes. - - - - - Initializes a new instance of the class. - - - - - Creates the default brush. - - The color. - Name of the color. - The proper PdfBrush instance. - - - - Gets the AliceBlue brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AliceBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AliceBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the antique white brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AntiqueWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AntiqueWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aqua default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aqua, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aqua, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aquamarine default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Azure default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Azure, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Azure, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Beige default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Beige, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Beige, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Bisque default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Bisque, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Bisque, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Black default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlanchedAlmond default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlanchedAlmond, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlanchedAlmond, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Blue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Blue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Blue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlueViolet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlueViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlueViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Brown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Brown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Brown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BurlyWood default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CadetBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CadetBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CadetBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chartreuse default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chartreuse, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chartreuse, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chocolate default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chocolate, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chocolate, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Coral default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Coral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Coral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CornflowerBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CornflowerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CornflowerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Corn silk default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cornsilk, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cornsilk, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Crimson default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Crimson, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Crimson, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Cyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkCyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGoldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkKhaki default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkKhaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkKhaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkMagenta default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkMagenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkMagenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOliveGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOliveGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOliveGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrange default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSalmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkViolet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepSkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DimGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DimGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DimGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DodgerBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DodgerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DodgerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Firebrick default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Firebrick, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Firebrick, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the FloralWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.FloralWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.FloralWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the ForestGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.ForestGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.ForestGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Fuchsia default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Fuchsia, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Fuchsia, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gainsborough default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gainsboro, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gainsboro, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GhostWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GhostWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GhostWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gold default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gold, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gold, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Goldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Goldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Goldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Green default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Green, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Green, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GreenYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GreenYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GreenYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Honeydew default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Honeydew, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Honeydew, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the HotPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.HotPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.HotPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the IndianRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.IndianRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.IndianRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Indigo default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Indigo, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Indigo, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Ivory default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Ivory, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Ivory, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Khaki default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Khaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Khaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lavender default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lavender, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lavender, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LavenderBlush default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LavenderBlush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LavenderBlush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LawnGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LawnGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LawnGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LemonChiffon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LemonChiffon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LemonChiffon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCoral default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCoral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCoral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGoldenrodYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGoldenrodYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGoldenrodYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSalmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSteelBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lime default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lime, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lime, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LimeGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LimeGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LimeGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Linen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Linen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Linen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Magenta default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Magenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Magenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Maroon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Maroon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Maroon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumAquamarine default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumAquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumAquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumOrchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumPurple default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumPurple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumPurple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSpringGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumVioletRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MidnightBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MidnightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MidnightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MintCream default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MintCream, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MintCream, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MistyRose default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MistyRose, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MistyRose, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Moccasin default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Moccasin, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Moccasin, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the NavajoWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.NavajoWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.NavajoWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Navy default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Navy, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Navy, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OldLace default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OldLace, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OldLace, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Olive default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Olive, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Olive, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OliveDrab default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OliveDrab, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OliveDrab, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orange default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OrangeRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OrangeRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OrangeRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGoldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleVioletRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PapayaWhip default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PapayaWhip, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PapayaWhip, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PeachPuff default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PeachPuff, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PeachPuff, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Peru default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Peru, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Peru, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Pink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Pink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Pink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Plum default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Plum, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Plum, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PowderBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PowderBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PowderBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Purple default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Purple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Purple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Red default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RosyBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RosyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RosyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RoyalBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RoyalBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RoyalBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SaddleBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SaddleBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SaddleBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Salmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Salmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Salmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SandyBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SandyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SandyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaShell default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaShell, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaShell, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Sienna default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Sienna, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Sienna, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Silver default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Silver, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Silver, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Snow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Snow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Snow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SpringGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SteelBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Teal default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Teal, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Teal, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Thistle default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Thistle, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Thistle, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tomato default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tomato, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tomato, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Transparent default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Transparent, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Transparent, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Turquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Turquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Turquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Violet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Violet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Violet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Wheat default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Wheat, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Wheat, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the White default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.White, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.White, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the WhiteSmoke default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.WhiteSmoke, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.WhiteSmoke, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Yellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Yellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Yellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the YellowGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.YellowGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.YellowGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the arrays of colors and positions used for - interpolating color blending in a multicolor gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Array of colors. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified elements count - - The count of the element. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(2); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend(2) - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the function. - - The color space. - The properly prepared sampled function. - - - - Clones this instance. - - The copy of this instance of the PdfColorBlend class. - - - - Sets the range. - - The colour components. - The max value. - The ranges array. - - - - Calculates the color components count according to colour space. - - The color space. - The number of colour components. - - - - Gets samples values for specified colour space. - - The color space. - The sample count. - The max component value. - The step. - The byte array of the sample values. - - - - Gets the grayscale samples. - - The sample count. - The max component value. - The step. - - - - - Gets the CMYK samples. - - The sample count. - The max component value. - The step. - - - - - Gets the RGB samples. - - The sample count. - The max component value. - The step. - The values of RGB samples. - - - - Calculates the color that should be at the specified index. - - The index. - The step. - The color space. - The colour obtained from the calculation. - - - - Gets the indices. - - The position. - The index low. - The index hi. - - - - Calculates the max component value. - - The color space. - The maximal component value. - - - - Gets an intervals array from the positions array. - - The positions array. - The intervals obtained from the positions. - - - - Gets or sets the array of colors. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the gradient direction of the linear gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), PdfLinearGradientMode.Vertical); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), PdfLinearGradientMode.Vertical) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies a gradient from upper right to lower left. - - - - - Specifies a gradient from upper left to lower right. - - - - - Specifies a gradient from left to right. - - - - - Specifies a gradient from top to bottom. - - - - - Specifies the constant values specifying whether to extend the shading - beyond the starting and ending points of the axis. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Do not extend any point. - - - - - Extend start point. - - - - - Extend end point. - - - - - Extend both start and end points. - - - - - Shading type constants. - - - - - Function-based shading. - - - - - Axial shading. - - - - - Radial shading. - - - - - Free-form Gouraud-shaded triangle mesh - - - - - Lattice-form Gouraud-shaded triangle mesh. - - - - - Coons patch mesh. - - - - - Tensor-product patch mesh. - - - - - Specifies constant values of PdfHatchStyle pattern. - - - - - Represents a graphics element which can be drawn by a pen. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Base class for the main shapes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets the bounds. - - rect - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Get the bounds. - RectangleF bounds = rect.GetBounds(); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Get the bounds. - Dim bounds As RectangleF = rect.GetBounds() - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - This method doesn't take into consideration a rotation of the element. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - A pen object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified pen - - The pen. - - - - Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. - - Gets the pen for drawing. - - - - - Gets or sets a pen that will be used to draw the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set pen. - line.Pen = new PdfPen(Color.Red); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set pen. - line.Pen = New PdfPen(Color.Red) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Base class for elements lay outing. - - - - - - Layout the element. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the HtmlToPdf element. - - Lay outing parameters. - Lay outing result. - - - - Returns the next page. - - Current page. - The next page. - The next page is taken from the same section the current one was. - If there is not enough pages within the section, the new one is appended. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets paginate bounds. - - Layout parameters. - Gets paginate bounds. - - - - Gets element`s layout. - - - - - Represents a layouting format - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Indicates whether PaginateBounds were set and should be used or not. - - - - - Bounds for the paginating. - - - - - Layout type of the element. - - - - - Break type of the element. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified layout format - - The base format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Create new PDF layout format instance. - PdfLayoutFormat newFormat = new PdfLayoutFormat(format); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), newFormat); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Create new PDF layout format instance. - Dim newFormat As PdfLayoutFormat = New PdfLayoutFormat(format) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), newFormat) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets layout type of the element. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets break type of the element. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bounds on the next page. - - If this property is set, the element will use it for the layouting on the next pages, - otherwise, the element will be layout according to the bounds, used on the first page. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a value indicating whether [use paginate bounds]. - - true if [use paginate bounds]; otherwise, false. - - - - Represents the layouting result format. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The last page where the element was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Holds the total web page layout size - - - - - Creates a new object. - - The current page. - The current bounds. - The page might be null, which means that - lay outing was performed on PdfGraphics. - - - - Gets the last page where the element was drawn. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the bounds of the element on the last page where it was drawn. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Holds the total web page layout size - - - - - Represents the layouting parameters. - - - - - Start lay outing page. - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets the layouting page for the element. - - - - - Gets or sets layouting bounds for the element. - - - - - Gets or sets layouting settings for the element. - - - - - Represents an element to fill - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Internal variable to store brush. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The pen. - - - - Initializes a new instance of the class. - - The brush. - - - - Initializes a new instance of the class. - - The pen. - The brush. - - - - Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. - - - brush - - - - Gets or sets the brush of the element - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set PDF solid brush. - rect.Brush = new PdfSolidBrush(Color.Green); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set PDF solid brush. - rect.Brush = New PdfSolidBrush(Color.Green) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Layouts the metafiles. - - - - - ShapeLayouter class. - - - - - Determines the document link annotation border width. - - - - - Initializes the object to store older form elements of previous page. - - - - - Initializes the offset index. - - - - - Initializes the difference in page height. - - - - - Determines the end of Vertical offset values. - - - - - Total Page size of the web page - - - - - Text region manager to avoid text split between the pages - - - - - Image region manager to avoid image split between the pages - - - - - Form region manager to avoid form fields between pages - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets paginate bounds. - - Layout parameters. - Gets paginate bounds. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the HtmlToPdf element. - - Lay outing parameters. - Lay outing result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Layout parameters. - Corrected lay outing bounds. - - - - Creates layout result. - - Page layout result. - Layout result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Layout parameters. - Corrected lay outing bounds. - - - - Repositions the links. - - The list. - The height. - - - - Layouts the element on the current page. - - The current page. - The current bounds. - Active shape bounds that aren't layouted. - Layout parameters. - Page lay outing result. - - - - Draws shape for Tagged PDF. - - - - - - - - - Calculates the next active shape bounds. - - The current active shape bounds. - The current page layout result. - The next active shape bounds. - - - - Checks whether shape rectangle fits to the lay outing bounds. - - Lay outing bounds. - Shape bounds. - True - if the shape fits into lay outing bounds, false otherwise. - - - - Returns Rectangle for element drawing on the page. - - Lay outing bounds. - Current shape bounds. - Returns Rectangle for element drawing on the page. - - - - Calculates bounds where the shape was layout on the page. - - Current lay outing bounds. - Shape bounds. - Bounds where the shape was layout on the page. - - - - Draws the shape. - - Current graphics. - Current page bounds. - Draw rectangle. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments.. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - If true, stop lay outing. - - - - Corrects the bounds to avoid blank page. - - Current lay outing bounds. - Shape bounds. - Current Page. - Corrected bounds. - - - - Gets shape element. - - - - - Text region manager to avoid text split between the pages - - - - - Image region manager to avoid image split between the pages - - - - - Form region manager to avoid form field split between the pages - - - - - Contains lay outing result settings. - - - - - The last page where the element was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - List of names of the radio button collection. - - - - - ArrayList for store names, number of elements(i.e. count), selected index of each radio button collection. - - - - - Initializes a new instance of the class. - - The element. - - - - Repositions the links. - - The list. - The height. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Lay outing parameters. - Corrected lay outing bounds. - - - - Corrects current bounds on the page to restrict blank pages. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Corrected lay outing bounds. - - - - Gets shape element. - - - - - - Gets the Text regions manager. - - - - - Gets the Image regions manager. - - - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Indicates whether text line can be split among the pages. - - - - - Indicates whether the images can be split among the pages. - - - - - Gets or sets a value indicating whether [split text lines]. - - true if [split text lines]; otherwise, false. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether [split images]. - - true if [split images]; otherwise, false. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or set the HTML page break. - - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - format.IsHTMLPageBreak = true; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - format.IsHTMLPageBreak = True - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Class that layouts the text. - - - - - String format. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Creates layout result. - - Page layout result. - Layout result. - - - - Layouts the text on the page. - - The text that should be printed. - Current page. - Current bounds. - Layout parameters. - Page layout result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - Corrected lay outing bounds. - - - - Returns a rectangle where the text was printed on the page. - - Current page. - Current page text bounds. - Layout result. - Returns a rectangle where the text was printed on the page. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - If true, stops the layout. - - - - Corrects string format. - - The last line infor layouted. - - - - Gets element`s layout. - - - - - - Contains lay outing result settings. - - - - - The last page where the text was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - The text that was not printed. - - - - - Gets or sets a bounds of the last text line that was printed. - - - - - Represents the text lay outing result settings. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - End Sub - - - - - - The text that was not printed. - - - - - The bounds of the last line that was printed. - - - - - Initializes a new instance of the class. - - The page. - The bounds. - The remainder. - The last line bounds. - - - - Gets a value that contains the text that was not printed. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - string remText = tlr.Remainder; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim remText As String = tlr.Remainder - End Sub - - - - - - Gets a value that indicates the bounds of the last line that was printed on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.LastLineBounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.LastLineBounds - End Sub - - - - - - Represents a HTML text area with the ability to span several pages. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - To know more about refer this link . - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(htmlText, font, PdfBrushes.Black); - htmlTextElement.TextAlign = TextAlign.Left; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement(htmlText, font, PdfBrushes.Black) - htmlTextElement.TextAlign = TextAlign.Left - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The font. - - - - - The brush. - - - - - The HTML text. - - - - - The Text Alignment. - - - - - Initializes a new instance of the class. - - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified HTML text, font and brush - - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The HTML text to be rendered in PDF. - The font. - The brush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(htmlText, font, PdfBrushes.Black); - htmlTextElement.TextAlign = TextAlign.Left; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement(htmlText, font, PdfBrushes.Black) - htmlTextElement.TextAlign = TextAlign.Left - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - RectangleF structure that specifies the bounds of the text. - Metafile layout format. - Layout result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the graphics. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics context where the text should be drawn - RectangleF structure that specifies the bounds of the text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Raises EndPageLayout event. - - Event arguments. - - - - Raises BeginPageLayout event. - - Event arguments. - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - Start location on the page. - Width of the text bounds. - Layout format. - Lay outing result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new PointF(0, 0), page.GetClientSize().Width, format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New PointF(0, 0), page.GetClientSize().Width, format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the graphics. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics context where the text should be drawn. - Start location on the page. - Width of the text bounds. - Height of the text bounds. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, new PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, New PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - Start location on the page. - Width of the text bounds. - Height of the text bounds. - Lay outing format. - Lay outing result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height, format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height, format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the base font for the text element. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the brush for the text element. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Set PDF brush. - htmlTextElement.Brush = new PdfSolidBrush(Color.Red); - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Set PDF brush. - htmlTextElement.Brush = New PdfSolidBrush(Color.Red) - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the HTML Text. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the text alignment. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Event. Raises after the element was printed on the page. - - - - - Event. Raises before the element should be printed on the page. - - - - - Gets a value indicating whether EndPageLayout is not null. - - - - - Gets a value indicating whether BeginPageLayout is not null. - - - - - Internal class which is used converts the html string in to Rich Text. - - - - - Internal variable to store the status of the RichTextBox control. - - - - - Internal variable. - - - - - Internal variable used while parsing the html text. - - - - - Internal variable to check for nested tag. - - - - - Dictionary containg list of support html tags. - - - - - Internal variable to specify font. - - - - - Internal varible to specify the color. - - - - - Internal variable to store copy of m_color. - - - - - Internal variable to store the PDF font size; - - - - - Internal variable to store the Html font size. - - - - - Method for maintaining the performance of RTF control while - updating. - - - - - Method invoked once the RTF control is updated. - - - - - Invoked once the handle has been created. - - The Eventargs. - - - - Converts the the given colorref to Color - - The Color. - The RGB coded color. - - - - Initializes the dictionary. - - - - - Converts the the given color to colorref - - Red - Green - Blue - The ColorRef equivalent for color. - - - - Converts the the given color to colorref - - The color. - The ColorRef - - - - Renders the given html text in to the RTF Control. - - strHTML - font - color - - - - Parses the HtmlString. - - The HtmlString. - - - - Parses the each Html Elements (Xml node) and apply the formatting. - - The htmltag - The Character format. - The Paragraph format. - - - - Converts the the given text to safe text - - The text. - The safe text - - - - Gets or sets the text alignment. - - - - - Gets or sets the paragraph format. - - - - - Gets or sets the default paragraph format. - - - - - Gets or sets the character format. - - - - - Gets or sets the default character format. - - - - - Gets a value indicating whether [internal updating]. - - true if [internal updating]; otherwise, false. - - - - Specifies how text in a is - horizontally aligned. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The text is aligned to the left. - - - - - The text is aligned to the right. - - - - - The text is aligned in the center. - - - - - The text is justified. - - - - - internal variable to store Size. - - - - - internal variable to store Mask. - - - - - internal variable to store Numbering. - - - - - internal variable to store Reserved. - - - - - internal variable to store Start Indent. - - - - - internal variable to store Right Indent. - - - - - internal variable to store Offset. - - - - - internal variable to store Alignment. - - - - - internal variable to store Tab Count. - - - - - internal variable to store rgxTabs. - - - - - internal variable to store Space Before. - - - - - internal variable to store Space After. - - - - - internal variable to store Line Spacing. - - - - - internal variable to store Style. - - - - - internal variable to store Line Spacing Rule. - - - - - internal variable to store Out line Level. - - - - - internal variable to store Shading Weight. - - - - - internal variable to store Shading Style. - - - - - internal variable to store Numbering Start. - - - - - internal variable to store Numbering Style. - - - - - internal variable to store Numbering Tab. - - - - - internal variable to store Border Space. - - - - - internal variable to store Border Width. - - - - - internal variable to store Borders. - - - - - internal variable to store size. - - - - - internal variable to store Mask. - - - - - internal variable to store Effects. - - - - - internal variable to store Height. - - - - - internal variable to store Offset. - - - - - internal variable to store Text Color. - - - - - internal variable to store CharSet. - - - - - internal variable to store Pitch And Family. - - - - - internal variable to store Weight. - - - - - internal variable to store Spacing. - - - - - internal variable to store BackColor. - - - - - internal variable to store lcid. - - - - - internal variable to store Reserved. - - - - - internal variable to store Style. - - - - - internal variable to store Kerning. - - - - - internal variable to store Under line Type. - - - - - internal variable to store Animation. - - - - - internal variable to store RevAuthor. - - - - - internal variable to store Reserved. - - - - - Provides the data for a cancelable event. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - e.Cancel=true; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - End Sub - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - e.Cancel=True - End Sub - - - - - - Indicates whether lay outing should be stopped. - - - - - Gets or sets a value indicating whether this is cancel. - - true if cancel; otherwise, false. - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - bounds = column; - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - e.Cancel=true; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, 50) - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - End Sub - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - e.Cancel=True - End Sub - - - - - - Provides data for event before lay outing the new page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - The bounds of the lay outing on the page. - - - - - Page where the lay outing should start. - - - - - Initializes a new instance of the class with the specified rectangle and page - - The bounds. - The page. - - - - Gets or sets value that indicates the lay outing bounds on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - Gets the page where the lay outing should start. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - PdfPage page = e.pAGE; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim page As PdfPage = e.Page - End Sub - - - - - - Provides data for event once lay outing completed on the new page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - m_columnBounds = column; - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Layout result. - - - - - The next page for lay outing. - - - - - Initializes a new instance of the class. with the specified - - The result. - - - - Gets the lay outing result of the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Gets or sets a value indicating the next page where the element should be layout - - The default value is null. In this case the element will be layout on the next page. - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler. - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - args.NextPage = tlr.Page - End Sub - - - - - - Represents the base class for classes that contain event data, and provides a value to use for events, once completed the text lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Initializes a new instance of the class with the specified - - The result. - - - - Gets the lay outing result of the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - End Sub - - - - - - Represents the method that will handle an event that before lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Represents the method that will handle an event, once completed the text lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Specifies type of paginating. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - If the element exceeds the page, proceed it on the next page. - - - - - Draw the element on the one page only. - - - - - Specifies how the element should be contained on the page. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Fit the element according to the bounds specified or the page bounds. - - - - - If the element doesn't fit at the first page, don't draw it on this page. - - - - - Fit the columns withtin the page. - - - - - A Class representing Pdf document which is used for Cid Font Descryptor Factory. - - - - - Defines the basic interace of the various Primitive.. - - - - - Saves the object using the specified writer. - - The writer. - - - - Creates a deep copy of the IPdfPrimitive object. - - - - - Specfies the status of the IPdfPrmitive. Status is registered if it has a reference or else none. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Stores the cloned object for future use. - - - - - Gets or sets the position of the object. - - - - - Interface of the objects that support Changable of their internals. - - - - - Freezes the changes. - - The freezer. - - - - Gets a value indicating whether this is changed. - - true if changed; otherwise, false. - - - - Start marker for dictionary. - - - - - End marker for dictionary. - - - - - Collection of items in the object. - - - - - Flag for PDF file formar 1.5 is dictionary archiving needed. - - - - - Flag is dictionary need to encrypt. - - - - - Flag is dictionary need to decrypt. - - - - - Indicates if the object was changed. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Represents the XFA dictionary - - - - - indicates whether the dictionary is rendered or not. - - - - - Represents the Font dictionary. - - - - - Initializes a new empty instance of the class. - - - - - Initializes a new instance of the class - with values taken from the dictionary. - - The dictionary. - - - - Determines whether the dictionary contains key. - - The key. - - true if the dictionary contains key; otherwise, false. - - - - - Determines whether the dictionary contains the key. - - The key. - - true if the dictionary contains the key; otherwise, false. - - - - - Removes the specified key. - - The key. - - - - Removes the specified key. - - The key. - - - - Clears items from object dictionary. - - - - - Creates a copy of PdfDictionary. - - - - - Gets a value from itself or one of the parent dictionaries. - - The cross table. - The key of the value. - The key to the parent. - The value by the key. - - - - Gets a value from itself or one of the parent dictionaries. - - The key of the value. - The key to the parent. - The value by the key. - - - - Returns the string specified by the propertyName parameter. - - Name of the property. - The string by its name. - - - - Returns the integer value of the dictionary entry specified by the propertyName variable. - - Name of the property. - The integer value of the property. - - - - Save dictionary items. - - Writer object. - - - - Creates a PDF name object. - - The string which the object is initialized with. - The PDF object. - - - - Raises event . - - Event arguments. - - - - Raises event . - - Event arguments. - - - - Saves the object using the specified writer. - - The writer. - - - - Saves the object. - - Writer object. - If true - raises the event, False - doesn't raise. - - - - Sets the internal property. - - The key. - The primitive. - - - - Sets the internal property. - - The PdfName. - The primitive. - - - - Sets the internal property. - - The key. - The wrapper. - - - - Sets the property. - - The dictionary. - The key. - The wrapper. - - - - Sets the property. - - The dictionary. - The key. - The primitive. - - - - Sets the boolean. - - The key. - Boolean value. - - - - Sets the integer number. - - The key. - The value. - - - - Sets the float number. - - The key. - The value. - - - - Sets the array. - - The key. - The list of primitives to be placed into array. - - - - Sets the date time. - - The key. - The date time. - - - - Gets the date time from Pdf standard date format. - - The string, which contains Pdf standard date format. - The time in - - - - Sets the string primitive. - - The key. - The string. - - - - Sets the name. - - The dictionary. - The key. - The name. - - - - Sets the name primitive. - - The key. - The name. - - - - Sets the name. - - The key. - The name. - Determines whether to process special characters. - - - - Checks the changes. - - Returns true if the dictionary was changed. - - - - Freezes the changes. - - The freezer. - - - - Mark this instance modified. - - - - - Gets or sets the with the specified key. - - - - - Gets or sets the with the specified key. - - - - - - Gets the count. - - - - - Gets the values. - - - - - Get or set flag if need to archive dictionary. - - - - - Gets or sets flag if encryption is needed. - - - - - Gets or sets flag if decryption is needed. - - - - - Gets the keys. - - - - - Gets the items. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Represents the Font dictionary - - - - - Event. Raise before the object saves. - - - - - Event. Raise after the object saved. - - - - - Gets a value indicating whether this is changed. - - true if changed; otherwise, false. - - - - Initializes a new instance of the class. - - The font family. - The font style. - The font metrics. - - - - Gets the system info. - - The font family. - The properly formed dictionary. - - - - A Class representing Pdf document which is used for Cjk Font Descryptor Factory. - - - - - Gets the font descryptor. - - The font family. - The font style. - The font metrics. - font Descryptor - - - - Fills the monotype sung light font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the heisei kaku gothic w5 font descryptor. - - The font descryptor. - The font style. - The font family. - The font metrics. - - - - Fills the hanyang systems shin myeong jo medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the heisei mincho w3 font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the sino type song light font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the monotype hei medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the hanyang systems gothic medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the known info. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the flags. - - The font descryptor. - The font family. - - - - Fills the font BBox. - - The font descryptor. - The font BBox. - - - - Represents the standard CJK fonts. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Defines a particular format for text, including font face, size, and style attributes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Multiplier of the symbol width. - - - - - Synchronization object. - - - - - Size of the font. - - - - - Style of the font. - - - - - Metrics of the font. - - - - - PDf primitive of the font. - - - - - Initializes a new instance of the class. - - The size. - - - - Initializes a new instance of the class. - - The size. - The style. - - - - Measures a string by using this font. - - String to measure. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, format , out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, 100); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, 100, format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100, format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, format, 100, out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100, format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100,100)); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100)) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100,100) , format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100), format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100, 100), format , out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100), format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Checks whether the object is similar to another object. - - The object to compare with the current object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Sets the style. - - The style. - - - - Applies settings to the default line width. - - Text line. - String format. - Default line width. - Line width with settings applied. - - - - Gets the face name of this Font. - - A string representation of the face name of this . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the size of this font. - - The em-size of this Font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the height of the font in points. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the style information for this font. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is bold. - - true if bold; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this has the italic style applied. - - true if italic; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is strikeout. - - true if strikeout; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is underline. - - true if underline; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the metrics for this font. - - - - - Gets Pdf primitive representing the font. - - - - - First character position. - - - - - Font family - - - - - Initializes a new instance of the class with the specified , size and style - - The font family. - The size. - The style. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified and size - - The font family. - The size. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified and size - - The prototype. - The size. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfCjkStandardFont cjkFont = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Create PDF cjk font. - PdfFont font = new PdfCjkStandardFont(cjkFont, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim cjkFont As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Create PDF cjk font. - Dim font As PdfFont = New PdfCjkStandardFont(cjkFont, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified , size and style - - The prototype. - The size. - The style. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfCjkStandardFont cjkFont = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Create PDF cjk font. - PdfFont font = new PdfCjkStandardFont(cjkFont, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim cjkFont As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Create PDF cjk font. - Dim font As PdfFont = New PdfCjkStandardFont(cjkFont, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Checks whether fonts are equals. - - Font to compare. - - True if fonts are equal, False otherwise. - - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Initializes the internals. - - - - - Creates font's dictionary. - - font's dictionary. - - - - Returns descendant font. - - Returns descendant font. - - - - Gets the prope CJK encoding. - - The font family. - Proper PDF name for the encoding. - - - - Checks the style. - - - - - Gets the char width internal. - - The character code. - The format. - The width of the character. - - - - Gets the CJK font family. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new PDF cjk font. - PdfCjkStandardFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Draw the text. - graphics.DrawString("The CJK font family name is " + font.FontFamily.ToString(), font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF cjk font. - Dim font As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Draw the text. - graphics.DrawString("The CJK font family name is " + font.FontFamily.ToString(), font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - A Class representing Pdf document which is used for Cjk Font Metrics Factory. - - - - - Multiplier of subscript superscript. - - - - - Initializes a new instance of the class. - - - - - Returns font metrics depending on the font settings. - - Font family. - Font style. - Size of the font. - Returns font metrics depending on the font settings. - - - - Gets the hanyang systems gothic medium font metrix. - - The font family. - The font style. - The size. - The filled font metrix. - - - - Gets the monotype hei medium metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the monotype sung light metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the sino type song light font metrics. - - The font family. - The font style. - The size. - PdfFontMetrics instance. - - - - Gets the heisei mincho w3. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the heisei kaku gothic w5 metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the hanyang systems shin myeong jo medium metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Metrics of the font. - - - - - Gets ascent of the font. - - - - - Gets descent of the font. - - - - - Name of the font. - - - - - Gets PostScript Name of the font. - - - - - Gets size of the font. - - - - - Gets height of the font. - - - - - First char of the font. - - - - - Last char of the font. - - - - - Line gap. - - - - - Subscript size factor. - - - - - Superscript size factor. - - - - - Gets table of glyphs' width. - - - - - Indicate whether the ttfreader font has bold style. - - - - - Returns ascent taking into consideration font's size. - - Text format settings. - Returns ascent taking into consideration font's size. - - - - Returns descent taking into consideration font's size. - - Text format settings. - Returns descent taking into consideration font's size. - - - - Returns Line gap taking into consideration font's size. - - Text format settings. - Returns line gap taking into consideration font's size. - - - - Returns height taking into consideration font's size. - - Text format settings. - Returns height taking into consideration font's size. - - - - Calculates size of the font depending on the subscript/superscript value. - - Text format settings. - Size of the font depending on the subscript/superscript value. - - - - Clones the metrics. - - Cloned metrics. - - - - Gets or sets the width table. - - - - - The base class for a width table. - - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Toes the array. - - - - - - Gets the at the specified index. - - index - - - - Implements a width table for standard fonts. - - - - - The widths of the supported characters. - - - - - Initializes a new instance of the class. - - The widths table. - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Converts width table to a PDF array. - - The properly formed pdf array. - - - - Gets the at the specified index. - - index - - - - Gets the length of the internal array. - - - - - Implements CJK width table, which is quite complex. - - - - - Local variable to store the width. - - - - - Local variable to store the default width. - - - - - Initializes a new instance of the class. - - The default width of the CJK characters. - This value will be returned if there is no width information for a character. - - - - Adds the specified widths. - - The CJK widths. - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Converts width table to a PDF array. - - A well formed PDF array. - - - - Gets the default character width. - - - - - Gets the at the specified index. - - index - - - - The base class of CJK widths types. - - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Implements capabilities to control a range of character with the same width. - - - - - The Form - - - - - The to - - - - - The Width - - - - - Initializes a new instance of the class. - - From. - To. - The width. - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Implements capabilities to control a sequent range of characters with different width. - - - - - The form - - - - - The width - - - - - Initializes a new instance of the class. - - From. - The widths. - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Represents one of the 14 standard PDF fonts. - It's used to create a standard PDF font to draw the text in to the PDF - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - First character position. - - - - - FontFamily of the font. - - - - - Initializes a new instance of the class with font family and it's size - - The font family. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with font family, size and font style - - The font family. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with as prototype and font size - - The using as prototype. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(new PdfStandardFont(PdfFontFamily.Helvetica,12), 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(New PdfStandardFont(PdfFontFamily.Helvetica,12), 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with as prototype,font size and font style - The using as prototype.. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(new PdfStandardFont(PdfFontFamily.Helvetica,12), 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(New PdfStandardFont(PdfFontFamily.Helvetica,12), 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Initializes font internals. - - - - - Initializes font internals. - - - - - Creates font's dictionary. - - font's dictionary. - - - - Checks font style of the font. - - - - - Returns width of the char. This methods doesn't takes into consideration font's size. - - Char symbol. - String format. - Width of the symbol. - - - - Converts the specified text. - - The unicode text. - The ANSI string. - - - - Gets the FontFamily. - - The - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString(font.FontFamily.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString(font.FontFamily.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Factory of the standard fonts metrics. - - - - - Multiplier os subscript superscript. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Arial widths table. - - - - - Arial bold widths table. - - - - - Fixed widths table. - - - - - Times widths table. - - - - - Times bold widths table. - - - - - Times italic widths table. - - - - - Times bold italic widths table. - - - - - Symbol widths table. - - - - - Zip dingbats widths table. - - - - - Initializes a new instance of the class. - - - - - Returns metrics of the font. - - Family of the font. - Style of the font. - Size of the font. - Returns metrics of the font. - - - - Creates Helvetica font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Courier font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Times font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Symbol font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates ZapfDingbats font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Represents the text layout information on PDF - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Horizontal text alignment. - - - - - Vertical text alignment. - - - - - Indicates whether RTL should be checked. - - - - - Character spacing value. - - - - - Word spacing value. - - - - - Text leading. - - - - - Shows if the text should be a part of the current clipping path. - - - - - Indicates whether the text is in subscript or superscript mode. - - - - - The scaling factor of the text being drawn. - - - - - Indent of the first line in the text. - - - - - Indent of the first line in the paragraph. - - - - - Indicates whether entire lines are laid out in the formatting rectangle only or not. - - - - - Indicates whether spaces at the end of the line should be left or removed. - - - - - Indicates whether the text region should be clipped or not. - - - - - Indicates text wrapping type. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with horizontal alignment of a text - - The represents the horizontal alignment of a text in PDF . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(PdfTextAlignment.Center); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat(PdfTextAlignment.Center) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with column format - - The column format. - - - Initializes a new instance of the class with horizontal and vertical alignment - The represents the horizontal alignment of a text in PDF . - The represents the vertical alignment of a text in PDF - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Clones the object. - - The new created object. - - - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Clone the string format. - PdfStringFormat format1 = format.Clone() as PdfStringFormat; - - - 'Create a new PDF string format instance. - Dim format As New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle - 'Clone the string format. - Dim format1 As PdfStringFormat = TryCast(format.Clone(), PdfStringFormat) - - - - - - Gets or sets the value that indicates text direction. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - format.TextDirection = PdfTextDirection.RightToLeft; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set right to left. - format.TextDirection = PdfTextDirection.RightToLeft - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the horizontal text alignment - - The represents the horizontal alignment of a text in PDF - Default value: PdfTextAlignment.Left - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the vertical text alignment. - - The represents the vertical alignment of a text in PDF - Default Value: PdfVerticalAlignment.Top - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the value that indicates text direction mode. - - true if RightToLeft; otherwise, false. - Note, that this property doesn't change any alignment of the text. - property should be set manually to align the text. This property just enables or disables - support of right to left approach. - If the value is False, the text won't be checked for right to left symbols occurrence. This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - format.RightToLeft = false; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set right to left. - format.RightToLeft = False - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates a size among the characters in the text. - When the glyph for each character in the string is rendered, this value is - added to the glyph�s displacement. - - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates a size among the words in the text. - Word spacing works the same way as character spacing but applies only to the - space character, code 32. - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set word spacing. - format.WordSpacing = 1.5f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set word spacing. - format.WordSpacing = 1.5F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates the vertical distance between the baselines of adjacent lines of text. - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set line spacing. - format.LineSpacing = 1.1f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set line spacing. - format.LineSpacing = 1.1F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether the text - should be a part of the clipping path. - - true if ClipPath; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value indicating whether the text is in subscript or superscript mode. - - The indicating whether the text is in subscript or superscript mode - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the indent of the first line in the paragraph. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [line limit]. - - true if [line limit]; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [measure trailing spaces]. - - - true if [measure trailing spaces]; otherwise, false. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [no clip]. - - true if [no clip]; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value indicating type of the text wrapping. - - The indicating type of the text wrapping - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the scaling factor. - - The default scaling factor is 100, which means 100% and original size. - It's used to make PDF font looking smaller when metafile is rendered into PDF. - - - - Gets or sets the indent of the first line in the text. - - - - - Represents TrueType font. - - [System.Security.Permissions.PermissionSet( System.Security.Permissions.SecurityAction.Assert, Name = "FullTrust" )] - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Code page for the encoding. - - - - - Encoding for the font. - - - - - Indicates whether the font should be embeded. - - - - - Indicates whether the font should use unicode symbols. - - - - - Internal font object. - - - - - - - - - - used to store style of the font - - - - - Indicates whether the font embeding is enabled or disabled . - - - - Initializes a new instance of the class with specified Font - The system font that defines the text format of the string - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with font and Boolean flag to set the Unicode of the PDF font - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The boolean flag represents the support of unicode text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a truetype font - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14),true); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a truetype font - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14), True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class. - - The system font that defines the text format of the string - The boolean flag represents the support of unicode text - - - - Initializes a new instance of the class with font and it's size - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with font, size and Boolean flag to set Unicode. - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The size of the font. - The boolean flag represents the support of unicode text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a truetype font - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14),12,true); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a truetype font - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14), 12, True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - This constructor is specific for removing font from cach collection. - - - - - - - - - - - This constructor is specific for removing font from cach collection. - - - - - - - - - - Initializes a new instance of the class with font,font style,size,Boolean flag to set Unicode and Boolean flag to embed the font into the PDF - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The style of the font. - The size of the font. - The boolean flag represents the support of unicode text - The boolean flag represents to embed the font into the pdf - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont, FontStyle.Regular, 12, true, true); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont, FontStyle.Regular, 12, True, True) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with the path of the font file which has the extension of .ttf and it's size - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font file path which has the extension of .ttf. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont("arial.ttf", 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont("arial.ttf", 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font file path which has the extension of .ttf - The size of the font. - Type of the is true. - - - Initializes a new instance of the class with the path of the font file which has the extension of .ttf, size and font style - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font file path. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont("arial.ttf", 12, PdfFontStyle.Regular); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont("arial.ttf", 12, PdfFontStyle.Regular) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font file. - The size. - The style. - - - - Initializes a new instance of the class. - - The font file. - The size. - The style. - - - - Initializes a new instance of the class. - - Font Stream. - Size of the font. - - - - Initializes a new instance of the class. - - The font stream. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Read a font file stream. - Stream fontStream = new MemoryStream(File.ReadAllBytes("arial.ttf")); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(fontStream, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Read a font file stream. - Dim fontStream As Stream = New MemoryStream(File.ReadAllBytes("arial.ttf")) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(fontStream, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - Font Stream. - Size of the font. - Style of the font. - Embedding. - - - - Initializes a new instance of the class with prototype and it's size - - The PdfTrutypeFont using as a prototype. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(new PdfTrueTypeFont(new Font("Arial",12,FontStyle.Regular)), 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(New PdfTrueTypeFont(New Font("Arial",12,FontStyle.Regular)), 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The prototype. - The size. - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Releases all resources of the font. - - Don't dispose the font until the corresponding document is closed. - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Stores used symbols. - - String text. - - - - Stores used symbols. - - Glyphs, used by the line of the text. - - - - Creates internal font object. - - System font. - - - - Creates internal font object. - - Font file. - Suggested style of the font. - - - - Creates a new font from a prototype font. - - Prototype object. - - - - Creates internal font object. - - Font file. - Suggested style of the font. - - - - Initializes font internals. - - - - - Sets the style of the font. - - Suggested style of the font. - - - - Calculates size of the symbol. - - Symbol. - String format. - Symbol size. - - - - Calcuates width of the unicode line. - - String text. - Width of the line. - True if success, false otherwise. - - - Gets a value indicating whether this is Unicode enabled (Read only). - - true if Unicode; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(sFont, 12, true); - //Check unicode support. - bool isUnicode = font.Unicode; - //Draw string to PDF page. - graphics.DrawString("Unicode Font = " + isUnicode, font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(sFont, 12, True) - 'Check unicode support. - Dim isUnicode As Boolean = font.Unicode - 'Draw string to PDF page. - graphics.DrawString("Unicode Font = " + isUnicode, font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is embeded it to the PDF document - - true if embeded; otherwise, false. - - - - Gets internals of the font. - - - - - Gets font object of this font. - - - - - Gets path to the font file if the font was created from a file. - - - - - The Syncfusion.Pdf.Graphics.Fonts namespace contains classes for retrieving used fonts in existing PDF documents. - - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font. - The existing PDF page - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new PDF font object. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create new PDF used font object. - PdfUsedFont usedFont = new PdfUsedFont(font, ldoc.Pages[0] as PdfLoadedPage); - //Get the used font name. - string name = usedFont.Name; - //Get the used font type. - PdfFontType fontType = usedFont.Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create a new PDF used font object. - Dim usedFont As PdfUsedFont = New PdfUsedFont(font, CType(ldoc.Pages(0), PdfLoadedPage)) - 'Get the used font name. - Dim name As String = usedFont.Name - 'Get the used font style. - Dim fontType As PdfFontType = usedFont.Type - 'Close the document. - ldoc.Close(True) - - - - - Replaces the specified new font. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The newFont to be replaced the existing font. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Load the existing used fonts. - PdfUsedFont[] usedFonts = ldoc.UsedFonts; - //Get the used font to be replaced. - PdfUsedFont usedFont = usedFonts[0]; - //Create a new font to be replace. - PdfFont newFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Repace the existing font. - usedFont.Replace(newFont); - //Save the document. - ldoc.Save("output.pdf"); - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Load the existing used fonts. - Dim usedFonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font to be replaced. - Dim usedFont As PdfUsedFont = usedFonts(0) - 'Create a new font to be replace. - Dim newFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Repace the existing font. - usedFont.Replace(newFont) - 'Save the document. - ldoc.Save("output.pdf") - 'Close the document. - ldoc.Close(True) - - - - - Initializes the internals. - - The font. - - - - Gets the actual name of the font. - - - - - - Checks the preambula. - - - - - Gets the internal font. - - The internal font. - - - - Gets the name. - - The name. - - - //Load the existing PDF document - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font name - string fontName = fonts[0].Name; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font name - Dim fontName As String = fonts(0).Name - 'Close the document. - ldoc.Close(True) - - - - - - Gets the size. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The size. - - - //Load the existing PDF document - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font size - float fontSize = fonts[0].Size; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font size - Dim fontSize As Single = fonts(0).Size - 'Close the document. - ldoc.Close(True) - - - - - - Gets the style. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The style. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font style. - PdfFontStyle fontStyle = fonts[0].Style; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font style - Dim fontStyle As PdfFontStyle = fonts(0).Style - 'Close the document. - ldoc.Close(True) - - - - - - Gets the type. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The type. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font type. - PdfFontType fontType = fonts[0].Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font type - Dim fontType As PdfFontType = fonts(0).Type - 'Close the document. - ldoc.Close(True) - - - - - - Gets the actual name of the font. - - The actual name of the font. - - - - Renderers text and layouts it for RTL support. - - - - - Open bracket symbol. - - - - - Close bracket symbol. - - - - - Bitmap used for text shaping. - - - - - Initializes a new instance of the class. - - - - - Layouts text. Changes blocks position in the RTL text. - Ligates the text if needed. - - Line of the text. - Font to be used for string printing. - Font alignment. - Indicates whether Word Spacing used or not. - Layout string. - - - - Layouts a string and splits it by the words and using correct lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Determines whether the specified word is english. - - The word. - - true if the specified word is english; otherwise, false. - - - - - Copies words remaining their order. - - The words. - The start index. - The number of the words. - The resulting array. - Index of the result. - - - - Uses system API to layout the text. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - If true - word spacing is used. - Layout string. - - - - Uses system API to layout the text. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - Layout string. - - - - Uses manual algorithm for text lay outing. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - If true - word spacing is used. - layout string array. - - - - Uses manual algorithm for text lay outing. - - Line of the text to be layouted. - Indicates whether we use RTL or LTR layouting of the text container. - layout string. - - - - Reverses the words if they're RTL. - - The words. - The reversed words. - Keep English words in original order. - - - - Retrieves array of glyph indices. - - Line of the text. - Current font. - Indicates whether we use RTL or RTL lay outing of the text container. - Array of glyph indices. - True - if succeed, False otherwise. - - - - Breaks string to the blocks of the runs. - - String to be itemized. - Indicates whether text container is in RTL form or not. - Array describing each run. - Count of the runs in the string. - True - if operation succeed, False otherwise. - - - - Renders each run from the string. - - Input string text. - Run descriptors. - Font to be used for text printing. - Count of the significant runs in the array. - Visual to logical order of the runs. - Resulting glyphs for the specified font. - True - if operation succeed, False otherwise. - - - - Layouts the runs in the visual form. - - Bidi array of the runs. - Count of the runs. - Pointer to an array that receives the run levels reordered to visual order. - Pointer to an array that receives the visual run positions. - True - if succeed, False otherwise. - - - - Adds glyphs to the array. - - Array of the glyphs. - Contains glyphs. - Count of the glyphs. - - - - Gets bidi level for the runs. - - Runs desciprtors. - Count of the runs - Bidi level array. - - - - Add information about used glyphs to the font. - - Font used for text rendering. - Array of used glyphs. - String in the form to be written to the file. - - - - Add information about used glyphs to the font. - - Font used for text rendering. - Line of the text. - String in the form to be written to the file. - - - - Layouts a string and splits it by the words by using system lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Converts string data to RtL format if data contain any RtL symbols. - - Text data being converted. - Converted data. - - - - Converts string data to LtR format if data contain any RtL symbols. - - Text data being converted. - Converted data. - - - - Checks if current symbol is euro number. - - Array of elements types. - Index of current symbol. - True - if current symbol is euro number, False otherwise. - - - - Checks if current symbol is euro number. - - Array of elements types. - Index of current symbol. - True - if current symbol is euro number, False otherwise. - - - - Presevres symbol fro source string data and saves it to new string data. - - Array of new resulting data. - Current processing symbol. - Indicates if we process text in RTL or not. - Index of current symbol. - Length of symbols group. - - - - Checks if array of flags contains at least on RTL symbol. - - Array of flags. - True if array of flags contains at least on RTL symbol, False otherwise. - - - - Formats text which is writing from left to right. - - Array of symbols. - Current symbol. - Indicates if we process text in RTL or not. - Index of current symbol. - Length of symbols group. - - - - Reverses brackets in the text. - - Array of symbols. - Current symbol. - Index of current symbol. - Length of symbols group. - - - - Checks if symbol code is LTR text. - - Symbol code. - True - if symbol code is LTR text, False othervise. - - - - Checks if symbol code is RTL text or number. - - Symbol code. - True - if symbol code is RTL text or number, False othervise. - - - - Checks if symbol code is RTL text. - - Symbol code. - True - if symbol code is RTL text, False othervise. - - - - Checks if symbol code is euro number with separators. - - Symbol code. - True - if symbol code is euro number with separators, False othervise. - - - - Checks if symbol code is euro number. - - Symbol code. - True - if symbol code is euro number, False othervise. - - - - Checks if symbol code has euro terminator format. - - Symbol code. - True - if symbol code has euro terminator format, False othervise. - - - - Checks if symbol code is whitespace. - - Symbol code. - True - if symbol code is whitespace, False othervise. - - - - Checks if symbol is bracket. - - Symbol code. - True - if symbol is bracket, False othervise. - - - - Layouts a string and splits it by the words by using custom lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Class lay outing the text. - - - - - Text data. - - - - - Pdf font. - - - - - String format. - - - - - Bounds of the text. - - - - - String tokenizer. - - - - - Initializes a new instance of the class. - - - - - Layouts the text. - - String text. - Font for the text. - String format. - Bounds of the text. - Layout result. - - - - Initializes internal data. - - String text. - Font for the text. - String format. - Bounds of the text. - - - - Layouts the text. - - Lay outing data. - - - - Copies layout result from line result to entire result. Checks whether we can proceed lay outing or not. - - Final result. - Line result. - Lines array. - Number of symbols inserted. - True if we can proceed, False - to stop lay outing. - - - - Finalizes final result. - - Final result. - Lines array. - - - - Cleares all resources. - - - - - Calculates height of the line. - - Height of the line. - - - - Layouts line. - - Text line. - Line indent. - Layout result. - - - - Adds line to line result. - - Line resut. - Array of the lines. - Text line. - Line width. - Line break type. - - - - Trims whitespaces at the line. - - Line info. - Indicates whether the line is the first in the text. - Trimed line info. - - - - Calculates width of the line. - - String line. - Width of the line. - - - - Returns line indent for the line. - - If true - the line is the first in the text. - Line indent for the line. - - - - Returns wrap type. - - Returns wrap type. - - - - Layouter result. - - - - - Layouted lines. - - - - - The text wasn't lay outed. - - - - - Actual layouted text bounds. - - - - - Height of the line. - - - - - Gets the text which is not lay outed - - - - - Gets the actual layouted text bounds - - - - - Gets layouted lines information. - - - - - Gets the height of the line. - - - - - Gets value that indicates whether any text was layouted. - - - - - Gets number of the lines layouted. - - - - - Provides a line information - - - - - Line text. - - - - - Width of the text. - - - - - Breaking type of the line. - - - - - Gets the width of the line text. - - - - - Gets the line text. - - - - - Gets width of the line text. - - - - - Break type of the line. - - - - - Unknown type line. - - - - - The line has new line symbol. - - - - - layout break. - - - - - The line is the first in the paragraph. - - - - - The line is the last in the paragraph. - - - - - Utility class for working with strings. - - - - - Whitespace symbol. - - - - - Whitespace symbol. - - - - - Default RegEx checks object's options. - - - - - Pattern for WhiteSpace. - - - - - Array of spaces. - - - - - Whitespace regex. - - - - - Text data. - - - - - Current position. - - - - - Initializes a new instance of the class. - - The text. - - - - - Returns number of symbols occurred in the text. - - Text data. - Symbol to be searched. - - Number of symbols occurred in the text. - - - - - - Returns number of symbols occurred in the text. - - Text data. - Array of symbols to be searched. - - Number of symbols occurred in the text. - - - - - Reads line of the text. - - Text line. - - - - Reads line of the text. - - Text line. - - - - reads a word from the text. - - A word from the data. - - - - Peeks a word from the text. - - A word from the data. - - - - Reads char form the data. - - Char symbol. - - - - Reads count of the symbols. - - Number of symbols. - String text. - - - - Reads data till the symbol. - - Specified symbol. - If true - to read the symbol. - The data read. - - - - Peeks char form the data. - - Char symbol. - - - - Closes a reader. - - - - - Reads text to the end. - - Reads text to the end. - - - - Indicates whether user specified token is whitespace symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Indicates whether user specified token is whitespace symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Indicates whether user specified token is tab symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Calculates number of the whitespace symbols at the start or at the end of the line. - - String line. - If true - check start of the line, end of the line otherwise. - Number of the whitespace symbols at the start or at the end of the line. - - - - Checks whether array contains a symbol. - - Array of symbols. - Char symbol. - True - if comtains, False otherwise. - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Creator of TrueType type font. - - - - - Base interface for true type internal fonts. - - - - - Gets the pdf primitive. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False ofhtrwise. - - - - Creates font internals. - - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - Releases all resources. - - - - - Gets system font. - - - - - Gets size of the font. - - - - - Gets font metrics. - - - - - Suffix for bold font name. - - - - - Suffix for bold italic font name. - - - - - Suffix for italic font name. - - - - - Coefficient for calculating font size. - - - - - Display driver name. - - - - - String for generating font name. - - - - - Indicates whether truetypefont has to be emdeded - - - - - ttf reader object. - - - - - Ttf metrics structure. - - - - - System font. - - - - - Size of the font. - - - - - Array of used chars. - - - - - Pdf primitive describing the font. - - - - - Font program. - - - - - Holds font-specific info such as first char/last char, etc. - - - - - Font metrics. - - - - - Indicates the azure rendering - - - - - Initializes a new instance of the class. - - The font. - The size. - - - - Initializes a new instance of the class. - - The font. - The size. - if set to true [embed]. - - - - Creates font program. - - Font program. - - - - Returns binary reader of the font's data. - - Returns binary reader of the font's data. - - - - Gets binary data of font. - - Font object. - Bimary data from font file. - - - - Gets Pdf primitive reprsenting font. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Creates font internals. - - - - - Runs before font program stream save. - - Sender of the event. - Event arguments. - - - - Generates font program. - - - - - Stores used symbols. - - String text. - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - All resources are being to be closed. - - - - - Creates font dictionary. - - Font descriptor. - - - - Creates font descriptor. - - Font descriptor object. - - - - Retrieves data from the font. - - - - - Calculates BoundBox of the descriptor. - - BoundBox of the descriptor. - - - - Calculates flags for the font descriptor. - - Flags for the font descriptor. - - - - Infills font metrics. - - Graphics DC. - - - - Creates width table. - - Graphics DC. - Width table. - - - - Returns error message. - - Returns error message. - - - - Gets the name of the font. - - string - - - - Formats name - - - - - Indicates whether byte of font name needs special formatting. - - - - - Indicates whether byte of font name needs special formatting. - - - - - Gets a value indicating whether font is symbolic - - - - - Gets a value indicating whether font is fixed pitch - - - - - Gets a value indicating whether font is script - - - - - Gets a value indicating whether font is serif - - - - - Gets size of the font. - - - - - Gets system font. - - - - - Gets font metrics. - - - - - Gets ttf reader. - - - - - Reader of the TTF data. - - - - - Width multiplier. - - - - - Version of Ttf file. - - - - - Version of Ttf file. - - - - - Version of Mac Ttf file - - - - - FP. - - - - - Encoding class. - - - - - Aray of table names. - - - - - Array of table names. - - - - - Integer's table. One of this integer would be used as a key - for writing some info in the header of the font program. - - - - - Binary reader object. - - - - - The whole list of tables loaded from Ttf. - - - - - Ttf metrics. - - - - - Width table. - - - - - Glyphs for Macintosh or Symbol fonts (char - key, glyph - value). - - - - - Glyphs for Microsoft Unicode fonts (char - key, glyph - value).. - - - - - Glyphs for Macintosh or Symbol fonts (glyph index - key, glyph - value). - - - - - Glyphs for Microsoft Unicode fonts (glyph index - key, glyph - value). - - - - - Indicates whether loca table is short. - - - - - Indicates whether font is truetype subset - - - - - Indicates the azure rendering - - - - - Indicates the current font which is currently under processing. - - - - - Static constructor. - - - - - Creates a new object. - - The reader. - - - - Creates a new object. - - The reader. - - - - Closes all the resources. - - - - - Gets glyph's info by char code. - - Char symbol. - - - - Gets glyph's info by glyph index.. - - Glyph index. - - - - Creates fonts internals. - - - - - Reads a font's program. - - Array of used chars. - Binary font data. - - - - Reconverts string to be in proper format saved into PDF file. - Return value would be in string. - - String to be reconverted. - Reconverted string. - - - - Gets char width. - - Char for which to measure the width. - Char width. - - - - Gets hashtable with chars indexed by glyph index. - - Chars that are used in destination output. - Hashtable with chars indexed by glyph index. - - - - Provides basic parsing required for font comparing (FontFamily and MacStyle). - - - - - Reads font directory. - - - - - Fixes the offsets of the font tables. - - - - - Reads font metrics. - - - - - Initializes metrics. - - Name table. - Head table. - Horizontal head table. - OS/2 table. - Post table. - Cmap subtables. - - - - Reads name table. - - Name table. - - - - Reads head table. - - Head table. - - - - Reads horizontal header table. - - Horizontal header table. - - - - Reads OS2 table. - - - - - - Reads post table. - - - - - - Reads Width of the glyphs. - - Number of glyphs. - Power of 2. - Width of the glyphs. - - - - Reads cmap table. - - Array of subtables. - - - - Reads cmap subtables. - - Cmap subtable. - - - - Reads Symbol cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads Symbol cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads Trimed cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads loca table. - - If True - table is int16, int32 otherwise. - Loca table. - - - - Reads ushort array. - - Length of the array. - Ushort array. - - - - Reads uint array. - - Length of the array. - Uint array. - - - - Adds glyph to the collection. - - Glyph info. - Encoding ID. - - - - Returns width of the glyph. - - Code of the glyph. - Returns width of the glyph. - - - - Updates chars structure which is used in the case - of ansi encoding (256 bytes). - - - - - Indicates whether code is right Ttf preambula code: - - - - - Gets CMAP encoding based on platform ID and encoding ID. - - - - - Returns table. - - Name of the table. - Returns table. - - - - Updates hashtable of used glyphs. - - Dictionary of used glyphs. - Loca table. - - - - Checks if glyph is composite or not. - If True, it provides additional work. - - Dictionary of glyphs. - Glyph index. - Loca table. - - - - Creates new glyph tables based on chars that are used for output. - - dictionary of glyphs. - Loca table. - The updated table that stores the offsets to the - locations of the glyphs in the font. - The updated glyph table that holds only the glyphs that - are used for destination output. - Glyph table size. - - - - Updates new Loca table. - - New Loca table. - Indicates whether loca is short. - Updated new loca table. - Updated loca table size. - - - - Returns font program data. - - New updated loca table. - New glyph table. - Size of glyph table. - Size of loca table. - Font program data. - - - - Calculate size of the font program. - - Updated new loca table. - New glyph table. - Number of tables used. - Size of the font program. - - - - Gets checksum from source buffer. - - Byte array. - - - - Writing to destination buffer - checksums and sizes of used tables. - - Writer object. - Number of tables. - New updated loca table. - New glyph table. - Size of glyph table. - Size of loca table. - - - - // Writing to destination buffer - used glyphs. - - Writer object. - New updated loca table. - New glyph table. - - - - Initializes font name. - - Name table. - - - - Reads structure from the binary reader. - - Binary reader class. - Type of teh structure. - Structure object. - - - - Aligns number to be divisible on 4. - - - - - Returns default glyph. - - Returns default glyph. - - - - Gets the font data. - - The font. - Name of the table. - - - - - Checks for the additional offset of the tables. - - TTF table. - Name of the table. - Additional ofset of the tables. - Reader of the data. - - - - Checks whether two arrays are equal. - - The first array. - The second array. - True if arrays are equal. - - - - Formats name of the table to int value. - - Name of the table. - Code of the table name. - - - - Gets or sets binary reader. - - - - - Gets BigEndian internal reader. - - - - - Gets metrics of the font. - - - - - The whole list of tables loaded from Ttf. - - - - - Gets glyphs for Macintosh or Symbol fonts (char - key, glyph - value). - - - - - Gets glyphs for Microsoft Unicode fonts (char - key, glyph - value).. - - - - - Gets glyphs for Macintosh or Symbol fonts (glyph index - key, glyph - value). - - - - - Gets glyphs for Microsoft Unicode fonts (glyph index - key, glyph - value). - - - - /// - Array of table names. - - Table names - - - - Gets the font. - - The font. - - - - Indicates the truetypefont is subet - - true if embeded subset; otherwise, false. - - - - Creator of Unicode TrueType type font. - - - - - Display driver name. - - - - - String for generating font name. - - - - - Cmap table's start prefix. - - - - - Cmap table's start suffix. - - - - - Cmap table's end - - - - - Cmap's begin range marker. - - - - - Cmap's end range marker. - - - - - Cmap's next range default value - - - - - Default registry's value - - - - - Index of the default symbol. - - - - - Length of Cid Stream - - - - - - - - - - System font. - - - - - Path to ttf file. - - - - - Size of the font. - - - - - Font metrics. - - - - - Pdf primitive describing the font. - - - - - Descendant font. - - - - - font descripter - - - - - Font program. - - - - - Cmap stream. - - - - - Cid set stream - - - - - ttf reader object. - - - - - Array of used chars. - - - - - Name of the font subset. - - - - - Ttf metrics structure. - - - - - Specifies the composite font types. - - - - - Indicates the azure rendering - - - - - creates a new object. - - Font object. - Font size. - - - - creates a new object. - - Path to ttf file. - Font size. - - - - creates a new object. - - Font object. - Font size. - - - - Creates a new object from a prototype object. - - Prototype object. - - - - Stores used symbols. - - String text. - - - - Stores used symbols. - - Glyphs, used by the line of the text. - - - - Gets Pdf primitive reprsenting font. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Creates font internals. - - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - All resources are being to be closed. - - - - - Initializes the object. - - - - - Returns binary reader of the font's data. - - Returns binary reader of the font's data. - - - - Gets binary data of font. - - Font object. - Bimary data from font file. - - - - Initializes the object. - - - - - Initializes metrics. - - - - - Creates font program. - - Font program. - - - - Generates font program. - - - - - Generates font dictionary. - - - - - Creates descendant font. - - - - - Creates cmap. - - - - - Creates CidSet. - - - - - Creates cmap. - - - - - Creates system info dictionary for CID font. - - Pdf primitive. - - - - Creates font descriptor. - - Pdf primitive. - - - - Generates name of the font. - - - - - Gets random string. - - - - - Gets width description pad array for cid font. - - Width description pad array for cid font. - - - - Converts integer of decimal system to hex integer. - - Integer to be converted. - Hex string. - - - - Calculates flags for the font descriptor. - - Flags for the font descriptor. - - - - Calculates BoundBox of the descriptor. - - BoundBox of the descriptor. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font program stream save. - - Sender of the event. - Event arguments. - - - - Runs before cmap will be saved. - - Sender of the event. - Event arguments. - - - - Runs before Cid will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - This is important for PDF/A conformance validation - - - - - - - Gets size of the font. - - - - - Gets system font. - - - - - Gets or set Embed font. - - - - - Gets font metrics. - - - - - Gets ttf reader. - - - - - Gets path to the font file if the font was created from a file. - - - - - Gets TtfMetrics structure. - - - - - Gets the type. - - The type. - - - - Specifies style information applied to text. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Normal text. - - - - - Bold text. - - - - - Italic text. - - - - - Represents the underline text. - - - - - Strikeout text. - - - - - Indicates type of standard PDF fonts. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the Helvetica font. - - - - - Represents the Courier font. - - - - - Represents the Times Roman font. - - - - - Represents the Symbol font. - - - - - Represents the ZapfDingbats font. - - - - - Specifies the type of CJK font. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the Hanyang Systems Gothic Medium font. - - - - - Represents the Hanyang Systems shin myeong Jo Medium font. - - - - - Represents the Heisei kaku GothicW5 font. - - - - - Represents the Heisei MinchoW3 font. - - - - - Represents the Monotype Hei Medium font. - - - - - Represents the monotype sung Light font. - - - - - Represents the sinotype song light font. - - - - - Specifies the type of the font. - - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font type. - PdfFontType fontType = fonts[0].Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font type - Dim fontType As PdfFontType = fonts(0).Type - 'Close the document. - ldoc.Close(True) - - - - - - Indicates the standard Adobe fonts. - - - - - Indicates the non-embedded TrueType fonts. - - - - - Indicates the Embedded TrueType fonts. - - - - - Specifies the types of text wrapping. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Text wrapping between lines when formatting within a rectangle is disabled. - - - - - Text is wrapped by words. If there is a word that is longer than bounds' width, this word is wrapped by characters. - - - - - Text is wrapped by words. If there is a word that is longer than bounds' width, it won't be wrapped at all - and the process will be finished. - - - - - Text is wrapped by characters. In this case the word at the end of the text line can be split. - - - - - Specifies type of the SubSuperScript. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies no subscript or superscript. - - - - - Specifies superscript format. - - - - - Specifies subscript format. - - - - - Ttf platform ID. - - - - - Apple platform. - - - - - Macintosh platform. - - - - - Iso platform. - - - - - Microsoft platform. - - - - - Ttf Name ID. - - - - - The Copyright - - - - - The Font Family - - - - - The Font Sub Family - - - - - The Font Identifier - - - - - The Font Name - - - - - The Version - - - - - The PostScriptName - - - - - The Trademark - - - - - Enumerator that implements CMAP encodings. - - - - - Unknown encoding. - - - - - When building a symbol font for Windows. - - - - - When building a Unicode font for Windows. - - - - - For font that will be used on a Macintosh. - - - - - Microsoft encoding ID - - - - - Undefined encoding. - - - - - Unicode encoding. - - - - - Macintosh encoding ID. - - - - - Roman encoding. - - - - - Japanese encoding. - - - - - Chinese encoding. - - - - - Enumerator that implements CMAP formats. - - - - - This is the Apple standard character to glyph index mapping table. - - - - - This is the Microsoft standard character to glyph index mapping table. - - - - - Format 6: Trimmed table mapping. - - - - - ttf composite glyph flags. - - - - - The ARG_1_AND_2_ARE_WORDS. - - - - - The ARGS_ARE_XY_VALUES. - - - - - The ROUND_XY_TO_GRID. - - - - - The WE_HAVE_A_SCALE. - - - - - The RESERVED. - - - - - The MORE_COMPONENTS. - - - - - The WE_HAVE_AN_X_AND_Y_SCALE. - - - - - The WE_HAVE_A_TWO_BY_TWO. - - - - - The WE_HAVE_INSTRUCTIONS. - - - - - The USE_MY_METRICS. - - - - - Character set encoding type of the font. - - - - - Unknown encoding - - - - - Adobe standard Latin-text encoding - - - - - Mac OS standard encoding - - - - - An encoding for use with expert fonts - - - - - Windows Code Page 1252 - - - - - Encoding for text strings in a PDF document outside the document's content streams. - - - - - The horizontal identity mapping for 2-byte CIDs; may be used with CIDFonts using any - Registry, Ordering, and Supplement values. It maps 2-byte character codes ranging from - 0 to 65,535 to the same 2-byte CID value, interpreted high-order byte first. - - - - - Enumerator that implements font descriptor flags. - - - - - All glyphs have the same width (as opposed to proportional or variable-pitch - fonts, which have different widths). - - - - - Glyphs have serifs, which are short strokes drawn at an angle on the top and - bottom of glyph stems (as opposed to sans serif fonts, which do not). - - - - - Font contains glyphs outside the Adobe standard Latin character set. The - flag and the nonsymbolic flag cannot both be set or both be clear. - - - - - Glyphs resemble cursive handwriting. - - - - - Font uses the Adobe standard Latin character set or a subset of it. - - - - - Glyphs have dominant vertical strokes that are slanted. - - - - - Bold font. - - - - - Specifies the composite font types. - - - - - - - - - - - - - - - Holds offset for TTF table from beginning of TrueType font file. - - - - - Gets or sets ofset from beginning of TrueType font file. - - - - - Gets or sets length of this table. - - - - - Gets or sets table checksum. - - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - ttf metrics. - - - - - Typographic line gap. - Negative LineGap values are treated as DEF_TABLE_CHECKSUM. - - - - - Gets or sets contains CFF. - - - - - Gets or sets value indicating if Symbol font is used. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets post-script font name. - - - - - Gets or sets font family name. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets widths table for the font. - - - - - Regular: 0 - Bold: 1 - Italic: 2 - Bold Italic: 3 - Bit 0- bold (if set to 1) - Bit 1- italic (if set to 1) - Bits 2-15- reserved (set to 0). - NOTE: - Note that macStyle bits must agree with the 'OS/2' table fsSelection bits. - The fsSelection bits are used over the macStyle bits in Microsoft Windows. - The PANOSE values and 'post' table values are ignored for determining bold or italic fonts. - - - - - Subscript size factor. - - - - - Superscript size factor. - - - - - Gets a value indicating whether this instance is italic. - - true if this instance is italic; otherwise, false. - - - - Gets a value indicating whether this instance is bold. - - true if this instance is bold; otherwise, false. - - - - name ttf table. - - - - - Local variable to store Format Selector. - - - - - Local variable to store Records Count. - - - - - Local variable to store Offset. - - - - - Local variable to store Name Records. - - - - - Name record. - - - - - The PlatformID. - - - - - The EncodingID. - - - - - The PlatformIDLanguageID - - - - - The NameID. - - - - - The Length. - - - - - The Offset. - - - - - The Name. - - - - - Names of the tables. - - - - - The cmap. - - - - - The glyf. - - - - - The head. - - - - - The hhea. - - - - - The cmap. - - - - - The loca. - - - - - The maxp. - - - - - The cmap. - - - - - The post. - - - - - The OS2. - - - - - The CFF. - - - - - The cvt. - - - - - The fpgm. - - - - - The prep. - - - - - Head table. - - - - - Modified: International date (8-byte field). - - - - - Created: International date (8-byte field). - - - - - MagicNumber: Set to 0x5F0F3CF5. - - - - - CheckSumAdjustment: To compute: set it to 0, sum the entire font as ULONG, - then store 0xB1B0AFBA - sum. - - - - - FontRevision: Set by font manufacturer. - - - - - Table version number: 0x00010000 for version 1.0. - - - - - Minimum x for all glyph bounding boxes. - - - - - Minimum y for all glyph bounding boxes. - - - - - Valid range is from 16 to 16384. - - - - - Maximum y for all glyph bounding boxes. - - - - - Maximum x for all glyph bounding boxes. - - - - - Regular: 0 - Bold: 1 - Italic: 2 - Bold Italic: 3 - Bit 0 - bold (if set to 1) - Bit 1 - italic (if set to 1) - Bits 2-15 - reserved (set to 0) - NOTE: - Note that macStyle bits must agree with the 'OS/2' table fsSelection bits. - The fsSelection bits are used over the macStyle bits in Microsoft Windows. - The PANOSE values and 'post' table values are ignored for determining bold or italic fonts. - - - - - Bit 0 - baseline for font at y=0 - Bit 1 - left SideBearing at x=0 - Bit 2 - instructions may depend on point size - Bit 3 - force ppem to integer values for all private scaler math; may use fractional ppem sizes if this bit is clear - Bit 4 - instructions may alter advance width (the advance widths might not scale linearly) - Note: All other bits must be zero. - - - - - LowestRecPPEM: Smallest readable size in pixels. - - - - - FontDirectionHint: - 0 Fully mixed directional glyphs - 1 Only strongly left to right - 2 Like 1 but also contains neutrals - -1 Only strongly right to left - -2 Like -1 but also contains neutrals. - - - - - 0 for short offsets, 1 for long. - - - - - 0 for current format. - - - - - This table contains information for horizontal layout. - The values in the minRightSidebearing, minLeftSideBearing, and xMaxExtent should be computed - using only glyphs that have contours. - Glyphs with no contours should be ignored for the purpose of these calculations. - All reserved areas must be set to 0. - - - - - Version. - - - - - Typographic ascent. - - - - - Maximum advance width value in HTML table. - - - - - Typographic descent. - - - - - Number of hMetric entries in HTML table; - may be smaller than the total number of glyphs in the font. - - - - - Typographic line gap. Negative LineGap values are treated as DEF_TABLE_CHECKSUM - in Windows 3.1, System 6, and System 7. - - - - - Minimum left SideBearing value in HTML table. - - - - - Minimum right SideBearing value; calculated as Min(aw - lsb - (xMax - xMin)). - - - - - Max(lsb + (xMax - xMin)). - - - - - Used to calculate the slope of the cursor (rise/run); 1 for vertical. - - - - - 0 for vertical. - - - - - 0 for current format. - - - - - The OS/2 table consists of a set of metrics that are required by Windows and OS/2. - - - - - Struct field. - - - - - The Average Character Width parameter specifies - the arithmetic average of the escapement (width) - of all of the 26 lowercase letters a through z of the Latin alphabet - and the space character. If any of the 26 lowercase letters are not present, - this parameter should equal the weighted average of all glyphs in the font. - For non-UGL (platform 3, encoding 0) fonts, use the unweighted average. - - - - - Indicates the visual weight (degree of blackness or thickness of strokes) - of the characters in the font. - - - - - Indicates a relative change from the normal aspect ratio (width to height ratio) - as specified by a font designer for the glyphs in a font. - - - - - Indicates font embedding licensing rights for the font. - Embeddable fonts may be stored in a document. - When a document with embedded fonts is opened on a system that does not have the font installed - (the remote system), the embedded font may be loaded for temporary (and in some cases, permanent) - use on that system by an embedding-aware application. - Embedding licensing rights are granted by the vendor of the font. - - - - - The recommended horizontal size in font design units for subscripts for this font. - - - - - The recommended vertical size in font design units for subscripts for this font. - - - - - The recommended horizontal offset in font design units for subscripts for this font. - - - - - The recommended vertical offset in font design units from the baseline for subscripts for this font. - - - - - The recommended horizontal size in font design units for superscripts for this font. - - - - - The recommended vertical size in font design units for superscripts for this font. - - - - - The recommended horizontal offset in font design units for superscripts for this font. - - - - - The recommended vertical offset in font design units from the baseline for superscripts for this font. - - - - - Width of the strikeout stroke in font design units. - - - - - The position of the strikeout stroke relative to the baseline in font design units. - - - - - This parameter is a classification of font-family design. - - - - - This 10 byte series of numbers are used to describe the visual characteristics - of a given typeface. These characteristics are then used to associate the font with - other fonts of similar appearance having different names. The variables for each digit are listed below. - The specifications for each variable can be obtained in the specification - PANOSE v2.0 Numerical Evaluation from Microsoft or Elseware Corporation. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - The four character identifier for the vendor of the given type face. - - - - - Information concerning the nature of the font patterns. - - - - - The minimum Unicode index (character code) in this font, - according to the cmap subtable for platform ID 3 and encoding ID 0 or 1. - For most fonts supporting Win-ANSI or other character sets, this value would be 0x0020. - - - - - usLastCharIndex: The maximum Unicode index (character code) in this font, - according to the cmap subtable for platform ID 3 and encoding ID 0 or 1. - This value depends on which character sets the font supports. - - - - - The typographic ascender for this font. - Remember that this is not the same as the Ascender value in the 'hhea' table, - which Apple defines in a far different manner. - DEF_TABLE_OFFSET good source for usTypoAscender is the Ascender value from an AFM file. - - - - - The typographic descender for this font. - Remember that this is not the same as the Descender value in the 'hhea' table, - which Apple defines in a far different manner. - DEF_TABLE_OFFSET good source for usTypoDescender is the Descender value from an AFM file. - - - - - The typographic line gap for this font. - Remember that this is not the same as the LineGap value in the 'hhea' table, - which Apple defines in a far different manner. - - - - - The ascender metric for Windows. - This too is distinct from Apple's Ascender value and from the usTypoAscender values. - usWinAscent is computed as the yMax for all characters in the Windows ANSI character set. - usTypoAscent is used to compute the Windows font height and default line spacing. - For platform 3 encoding 0 fonts, it is the same as yMax. - - - - - The descender metric for Windows. - This too is distinct from Apple's Descender value and from the usTypoDescender values. - usWinDescent is computed as the -yMin for all characters in the Windows ANSI character set. - usTypoAscent is used to compute the Windows font height and default line spacing. - For platform 3 encoding 0 fonts, it is the same as -yMin. - - - - - This field is used to specify the code pages encompassed - by the font file in the 'cmap' subtable for platform 3, encoding ID 1 (Microsoft platform). - If the font file is encoding ID 0, then the Symbol Character Set bit should be set. - If the bit is set (1) then the code page is considered functional. - If the bit is clear (0) then the code page is not considered functional. - Each of the bits is treated as an independent flag and the bits can be set in any combination. - The determination of "functional" is left up to the font designer, - although character set selection should attempt to be functional by code pages if at all possible. - - - - - This field is used to specify the code pages encompassed - by the font file in the 'cmap' subtable for platform 3, encoding ID 1 (Microsoft platform). - If the font file is encoding ID 0, then the Symbol Character Set bit should be set. - If the bit is set (1) then the code page is considered functional. - If the bit is clear (0) then the code page is not considered functional. - Each of the bits is treated as an independent flag and the bits can be set in any combination. - The determination of "functional" is left up to the font designer, - although character set selection should attempt to be functional by code pages if at all possible. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Ttf structure. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Holds glyph info and its width of character. - - - - - Holds glyph index. - - - - - Holds character's width. - - - - - Code of the char symbol. - - - - - Compares two WidthDescriptor objects. - - Another object for comparing. - A signed integer that indicates the relative order of this instance and value. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Ttf structure. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Left-to-Right (Non-European or non-Arabic digits). - - - - - Left-to-Right Embedding - - - - - Left-to-Right Override - - - - - Right-to-Left (Hebrew alphabet, and related punctuation). - - - - - Right-to-Left Arabic - - - - - Right-to-Left Embedding. - - - - - Right-to-Left Override - - - - - Pop Directional Format - - - - - European Number (European digits, Eastern Arabic-Indic digits). - - - - - European Number Separator (Plus sign, Minus sign). - - - - - European Number Terminator (Degree sign, currency symbols). - - - - - Arabic Number (Arabic-Indic digits, Arabic decimal and thousands separators). - - - - - Common Number Separator (Colon, Comma, Full Stop, No-Break Space. - - - - - Nonspacing Mark (Characters with the General_Category values). - - - - - Boundary Neutral (Default ignorables, non-characters, and control characters, other than those explicitly given other types.) - - - - - Paragraph Separator (Paragraph separator, appropriate Newline Functions, higher-level protocol paragraph determination). - - - - - Segment Separator (tab). - - - - - Whitespace (Space, Figure space, Line separator, Form feed, General Punctuation spaces). - - - - - Other Neutrals (All other characters, including object replacement character). - - - - - Specifies the character types. - - - - - Specifies the text order (RTL or LTR). - - - - - Specifies the text length. - - - - - Specifies the resultant types. - - - - - Specifies the resultant levels. - - - - - Specifies the RTL character types. - - - - - RTL character types. - - - - - Region of the space in which image in metafile can take. - - - - - Y co-ordinate of the region. - - - - - Height of the region. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The y. - The height. - - - - Joins two regions. - - Image region to be joined. - Image region to be joined. - Joined region. - - - - Checks whether region intersect with the current one. - - Region object. - True - if they're intersected, False - otherwise. - - - - Gets or sets Y co-ordinate of the region when the text starts. - - - - - Gets or sets Height of the text region. - - - - - Manages ImageRegion objects. - - - - - Collection of the regions. - - - - - Initializes a new instance of the class. - - - - - Adds a Image region into the collection. - - region - - - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - Y co-ordinate of some text region. - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - - - - Searches for the image region. - - Y co-ordinate of some image region. - - Returns the Y co-ordinate of last before image region. - - - - - Clears the collection. - - - - - Searches for all regions in the collection that are intersested with the current one. - - Current text region. - Array of regions that intersect with the current. - - - - Removes region from the colection. - - Region that should be removed from he collection. - - - - Removes regions from the collection. - - Array of regions that should be removed from he collection. - - - - Joins array of regions and the region into one region. - - Array of the regions. - Current image region. - - - - Helping class that allows to control the graphic handles. - It controls numbering for such handles that are changing - during actions such as SelectObject, DeleteObject - - - - - Flag checking if object is system or created by user. - - - - - Help flag for retrieving object from the stock. - - - - - The collection of standard graphic objects that can be used currently. - - - - - Holds the collection of created graphic objects that can be used currently - - - - - Holds the list of avaible indexes - - - - - Initializes the class. - - - - - Adds the object under specified unique index - - object to be added - unique index for the object - - - - Adds the object under specified unique index - - object to be added - - - - Selects object by the unique index - - unique index for the object - selected object - - - - Deletes objects - - unique index for the object to be deleted - Deleted object. - - - - Cleares collection of selected objects. - - - - - Checks if object is stock object. - - Object for checking. - True -if object is in stock, False otherwise. - - - - Retrieves object from the stock. - - ID of the object. - Object from the stock if found, Null otherwise. - - - - Checks if object is in the stock or it's created by user. - - ID of the object. - True - if object is in the stock, False otherwise. - - - - Retrieves object from the stock. - - ID of the object. - Object from the stock if found, Null otherwise. - - - - Gets the collection of created graphic objects that can be used currently - - - - - Gets the list of avaible indexes - - - - - Help data during EMF metafiles parsing. - - - - - Number of 0.01 millimeter per inch. - - - - - Collection of created objects. - - - - - Unmanaged handle used by the most of the GDI WinApi functions. - - - - - Font object. - - - - - Font object. - - - - - Pen object. - - - - - Current graphics path object. - - - - - Image resource. - - - - - Graphic state of the graphics context. - - - - - Graphics object. - - - - - Indicates if there is open graphics path object. - - - - - Angle of the text. - - - - - Cointrex stack. - - - - - Bitmap for getting graphics from it. - - - - - REsolution of the screen. - - - - - Initializes a new instance of the class. - - The dpi. - - - - Disposes object. - - - - - Recognizes selected object. - - Selected object. - - - - Deletes object from the context. - - Object to be deleted. - - - - Saves state to context stack. - - - - - Restores state from context stack. - - Index in the stack. - - - - Copies data from current object to specified. - - Destination data object. - - - - Disposes selected objects. - - - - - Gets collection of selected objects. - - - - - Gets unmanaged handle used by the most of the GDI WinApi functions. - - - - - Gets or sets graphic state of the graphics context. - - - - - Gets or sets the font. - - The font. - - - - Gets or sets current brush object. - - - - - Gets or sets current pen object. - - - - - Gets or sets current graphics path. - - - - - Gets or sets image object. - - - - - Gets graphics object. - - - - - Gets or sets the current point at DC. - - - - - Gets or sets a value indicating whether this instance is open path. - - - true if this instance is open path; otherwise, false. - - - - - Gets or sets arc direction of current device context. - - - - - Gets or sets text align. - - - - - Gets or sets Text color. - - - - - Gets or sets back color. - - - - - Gets or sets polygon fill mode. - - - - - Gets default resolution of the screen. - - - - - Gets or sets angle of the text. - - - - - Gets context stack object. - - - - - Class holding font and it's rotating angle. - - - - - Font object. - - - - - Structure describing font. - - - - - Initializes a new instance of the class. - - The font. - The structure. - - - - Disposes object. - - - - - Gets font object. - - - - - Gets text rotating angle. - - - - - Gets LOGFONT structure from which font was created. - - - - - Class implementing capabilities to parse EMF metafiles. - - - - - Number of numbers in the point type. - - - - - Number of numbers in the rectangle type. - - - - - Size of Int32 type. - - - - - Size of Short type. - - - - - Size of Single type. - - - - - Handler of function parsing metafile. - - - - - Graphics context object. - - - - - Asociated with parser context object. - - - - - Asociated with parser context object. - - - - - Parsing metafile object. - - - - - - - - - - - - - - - Initializes the class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The renderer. - - - - Disposes object. - - - - - Check result of function. If function failed - writes debug message. - - Result of the function. - - - - Creates handler of parsing function. - - Handler of parsing function. - - - - Reads number from the array. - - Array of data. - Index in the array. - Size of the number. - Number form the array. - - - - Gets handler of parsing method. - - - - - Gets or sets Graphics context. - - - - - Gets or sets context of the parser. - - - - - Gets or sets context of the parser. - - - - - Gets or sets the parsing metafile object. - - - - - Gets or sets the page scale. - - The page scale. - - - - Gets or sets the page unit. - - The page unit. - - - - Gets type of metafile parser is able to parse. - - - - - Pixels per inch amount - - - - - Number of degrees in one radian. - - - - - Help objects. - - - - - Type of metafile. - - - - - Text Rotation Angle - - - - - Holds the selected font - - - - - Emf text Scaling factor - - - - - Initializes a new instance of the class. - - The type. - The dpi. - - - - Initializes a new instance of the class. - - The dpi. - - - - Initializes a new instance of the class. - - The renderer. - - - - Overloaded. Disposes resources. - - - - - Overloaded. Creates handler of parsing function. - - Handler of parsing function. - - - - Enumerates metafile. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - True - to proceed enumeration, False otherwise. - - - - Starts enumeration. - - - - - Finishes enumeration. - - - - - Saves graphic state of the graphics context. - - Data for the record. - - - - Restores device context to the previous state. - - Data for the record. - - - - Stores miter limit. - - Pointer to data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - The data. - - - - Process record of metafile. - - The data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Datra of the record. - Pointer to record data. - - - - Process record of metafile. - - Data of the record. - Pointer to record data. - - - - Process record of metafile. - - Datra of the record. - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - if b is arc, set to true. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - - Implements the final stage of the 'Blt'-family functions. - - - - - - - - - - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - True - if string is unicode, False - otherwise. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Converts glyph indices to unicode charachter codes. - - The glyph indices. - The font. - The unicode string. - - - - Trims the name of the font. - - Name of the font. - - - - - Makes dump of the data. - - Data array. - The type. - - - - Gets structure with data from Record data. - - The PTR. - The type. - Structure from the data. - - - - Gets structure with data from Record data. - - Record data. - Sample structure object. - Structure with data from IntPtr. - This method marshals structures with arrays of unknown length. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts rectangle from logic units to device units. - - System.Drawing.Rectangle object. - Converted rectangle. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts logic value to device value; - - Value in logic coordinates. - - - - - Converts logic value to device value; - - Value in logic coordinates. - - - - - Converts device point to logical point. - - Device point to be converted. - Converted point to logical point. - - - - Converts device value to logical value; - - Value in device coordinates. - - - - - Converts device value to logical value; - - Value in device coordinates. - - - - - Converts device System.Drawing.Rectangle to logical value; - - The rectangle. - Converted rectangle - - - - Reads RECT structure. - - Data array. - Current index. - RECT structure. - - - - Reads array from the record. - - Record data. - Size of the array. - Current index. - Array of data. - - - - Creates array of points. - - Record data. - Size of the array. - Current index. - If true - reads Int32 numbers, otherwise reads Short numbers. - Array of data. - - - - Reads number. - - Data array. - Current index. - If true - reads Int32 numbers, otherwise reads Short numbers. - Number from the data. - - - - Sets proper graphics mode. - - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Adds current point to array of points. - - Array of points. - Array with current point. - - - - Converts XFORM structure to Matrix object. - - XFORM structure. - Matrix object. - - - - Calculates angle between two vectors. - - x coordinate of start origin. - y coordinate of start origin. - x coordinate of vector. - y coordinate of vector. - Angle between vector and x origin. - - - - Returns point on the ellipse bounded by rectangle intersecyet with radial point. - - Bounds structure. - Radial point. - Point of intersection. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Bitmap Info header. - Usage of the pixels. - Bitmap image. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Usage of the pixels. - Bitmap image. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Usage of the pixels. - Bitmap image. - - - - Converts logical height of the font to it's point's value. - - Logical height of the font. - Size of the font. - - - - Returns metric of the font. - - Font object. - Metric of the font. - - - - Returns string format for the text. - - String format for the text. - - - - Draws text. - - Text to be printed. - String format object. - System.Drawing.Rectangle structure. - Structure describing text settings. - The widths. - - - - Gets current map mode. - - Current map mode. - - - - Retireves array of bytes from the unmanaged memory. - - Pointer to the memory. - Size of the data. - Byte array. - - - - Implements the final stage of the 'Blt'-family functions. - - - - - - - - - - - - - Overloaded. Gets MetafileType.Emf - - - - - Gets help objects. - - - - - Gets text region mananger. - - - - - Gets image region mananger. - - - - - Class for parsing EmfPlus metafiles. - - - - - Flag for recognizing type of region. - - - - - Flag for objects recognizing. - - - - - Flag for object index recognizing. - - - - - Represents path filling type. - - - - - Flag indicating whether color is in the data or it's index of the pen/brush. - - - - - Represents flag indicating whether short type should be used. - - - - - Storage of help objects. - - - - - Type of metafile. - - - - - Indicates whether we should start emf record processing. - - - - - Store the path of current pen's end cap. - - - - - Flag for connecting last and first points. - - - - - Creates new object. - - The dpi. - - - - Creates new object. - - The renderer. - The dpi. - - - - Overloaded. Creates handler of function parsing metafile. - - - - - - Enumerates metafile. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - True - to proceed enumeration, False otherwise. - - - - Parses the meta record. - - The data. - The flags. - - - - Parsing method. - - Method data. - - - - Headers this instance. - - - - - Ends the of file. - - - - - Begins the container. - - The data. - The flags. - - - - Begins the container no params. - - The data. - - - - Clears the specified data. - - The data. - - - - Draws the arc. - - The data. - The flags. - - - - Draws the beziers. - - The data. - The flags. - - - - Draws the closed curve. - - The data. - The flags. - - - - Draws the curve. - - The data. - The flags. - - - - Draws the ellipse. - - The data. - The flags. - - - - Draws the image. - - The data. - The flags. - - - - Draws the image points. - - The data. - The flags. - - - - Draws the lines. - - The data. - The flags. - - - - Draws the path. - - The data. - The flags. - - - - Draws the pie. - - The data. - The flags. - - - - Draws the rectangle. - - The data. - The flags. - - - - Draws string. - - Buffer containing record data. - Record flags. - - - - Draws Driver string. - - Buffer containing record data. - Record flags. - - - - Parses EndContainer record. - - Record data. - - - - Parses FillClosedCurve record. - - Record data. - Record flags. - - - - Parses FillEllipse method. - - Record data. - Record flags. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fills the region. - - The data. - The flags. - - - - - - - - - Objects the specified data. - - The data. - The flags. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Scales the world transform. - - The data. - The flags. - - - - Sets the antialias mode. - - The data. - The flags. - - - - Sets the clip path. - - The data. - The flags. - - - - - - - - - - - - - - - - - - Sets the composing mode. - - The data. - The flags. - - - - Sets the compositing quality. - - The data. - The flags. - - - - Sets the interpolation mode. - - The data. - The flags. - - - - Sets the page transform. - - The data. - The flags. - - - - Sets the pixel offset mode. - - The data. - The flags. - - - - Sets the rendering origin. - - The data. - - - - Sets the text contrast. - - The flags. - - - - Sets the text rendering hint. - - The flags. - - - - Sets the world transform. - - The data. - - - - Translates the world transform. - - The data. - The flags. - - - - Reads the pen. - - The data. - The index. - - - - - Creates the path of pen's custom end cap. - - The data. - The index. - The flags. - - - - - Reads the image. - - The data. - The index. - - - - - Reads the path. - - The data. - The index. - - - - - Reads the region. - - The data. - The index. - - - - - Reads the font. - - The data. - The index. - - - - - Reads the string format. - - The data. - The index. - - - - - Reads the brush. - - The data. - The index. - - - - - Reads the hatch brush. - - The data. - The index. - - - - - Reads the gradient brush. - - The data. - The index. - - - - - Reads path gradient brush. - - Data for the brush. - The index. - - - - - Reads the texture brush. - - The data. - The index. - The texture brush. - - - - Gets the rectangle step. - - The flags which holds the step value. - The rectangle step. - - - - Reads the wrap mode. - - The data. - The index. - The WrapMode enum. - - - - Reads the gradient brush flags. - - The byte data array. - The index of the flags. - The initialized GradientBrushFlags. - - - - Reads the blend. - - The byte data array. - The start position in the data. - The size of the single value. - The positions array. - The factors array. - The final index within the data. - - - - Reads the color blent. - - The byte data array. - The start position in the data. - The size of the single value. - The blend object. - - - - Reads the points. - - The data. - The index. - The number. - The step. - - - - - Reads the point. - - The data. - The index. - The step. - - - - - - - - - - - - - - Reads an integer from a data array at an index specified. - - The data array. - The index which the integer starts at. - The integer read. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dumps the record data. - - The data. - The type of the record. - - - - Read Graphics path from the region. - - Data of the record. - Current index. - step value. - Graphics path object. - - - - Reads base region from the data. - - Record data. - Current index. - Step value. - Region object. - - - - Combines regions. - - Source region. - Destination region. - Combine mode. - Result region. - - - - Returns index of the object in the table. - - Flags data. - Index of the object in the table. - - - - Checks whether data contains color or index of the object. - - Flags data. - Checks whether data contains color or index of the object. - - - - Gets the fill mode. - - The flags. - - - - - Gets the brush. - - The data. - The index. - The flags. - - - - - Reads the RectL structure. - - The data. - The index. - Rectangle structure initialized. - - - - Starts processing of emf records. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - - - - Determines whether [is valid rect] [the specified rect]. - - The rect. - - true if [is valid rect] [the specified rect]; otherwise, false. - - - - - Converts bitmap to PNG. - - The img. - - - - - Overloaded. Returns metafile type. - - - - - Gets a collection of objects in the stack. - - - - - Number of numbers in the point type. - - - - - Number of numbers in the rectangle type. - - - - - Flag for recognizing type of region. - - - - - Flag for objects recognizing. - - - - - Type of path filling. - - - - - Index where type of the brush is located. - - - - - Size of Int32 type. - - - - - Size of Short type. - - - - - Size of Single type. - - - - - Parsing metafile object. - - - - - Parser of metafile. It depends on the metafile. - - - - - Gets graphics context object. - - - - - Checks if object is already disposed or not. - - - - - Indicates whether image is WMF file and needs to be disposed. - - - - - Static constructor. - - - - - Creates new object. - - - - - Creates new object. - - The renderer. - Metafile for parsing. - - - - Disposes the object. - - - - - Enumerates a metafile. - - True - successful enumeration, False otherwise. - - - - Assigns the metafile. - - The metafile. - - - - Recognizes which parser must be created according to metafile. - - Header of metafile. - The dpi. - - - - Gets or sets the renderer. - - - - - Gets or sets parsing metafile object. - - - - - Gets context data of the parser. - - - - - Gets context data of the parser. - - - - - Gets parser object. - - - - - Summary description for ObjectData. - - - - - Mask for object index recognizing. - - - - - Stores collection of the GDI objects. - - - - - Holds all graphigcs states. - - - - - Internal graphics context. - - - - - Internal image object. - - - - - Creates a new object. - - - - - Disposes the object. - - - - - Gets font by its index. - - Index of the object in the table of GDI objects. - Font by its index. - - - - Gets brush by its index. - - Index of the object in the table of GDI objects. - Brush by its index. - - - - Gets the pen from the collection. - - The index of the pen within the collection. - The pen. - - - - Sets the pen. - - The index of the pen object. - The pen which should be stored.. - - - - Gets object by its index. - - Index of the object in the table of GDI objects. - Object by its index. - - - - Sets object to the collection. - - Index of the object in the collection. - GDI object. - - - - Gets the state by its index. - - The index of the state. - The graphics state stored previously. - - - - Sets the state with it index. - - The index of the state. - The state. - - - - Disposes collection of the GDI objects. - - - - - Gets internal graphics context. - - - - - - - - - - - - - - - - - - - - Matrix indicating bounds for the metafile output. - - - - - Shows if the graphics state was changed. - - - - - Shows if it's the first call to the OnDrawPrimitive method. - - - - - UnitConvertor instance for X coorditate. - - - - - UnitConvertor instance for Y coorditate. - - - - - Holds mapping between .NET graphics states and PDF graphics states. - - - - - Shows if it was the first transformation operation. - - - - - Gets or sets the quality. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - - get or sets the image resolution - - When the image is stored into PDF not as a mask, - you may reduce its resolution, which saves the disk space - - - - Represents flag indicating whether the page has been already transformed or not. - TODO : Process Begin and End Container. - - - - - Shows if the graphics state was restored. - - - - - - - - - - Internal varible to store the alpha pen. - - - - - Internal varible to store the alpha brush. - - - - - Internal varible to store tranaparency is applied or not. - - - - - Internal varible to store the pdf blend mode. - - - - - Internal variable to store whether to connect last and first points. - - - - - Internal variable to store whether the EMF being drawn in a Tagged PDF. - - - - - Asociated with parser context object. - - - - - Used to store real clip value - - - - - Internal variable to store the state change of the EMFplus and EMF - - - - - used to store current emf record type - - - - - used to store prvious record type - - - - - stores the text clip - - - - - internal variable to store custom line cap arrow data - - - - - used to confirm wheather the text is clipped or not. - - - - - Internal variable to store current pdf document - - - - - internal variable to store identical image collection - - - - - used as local font collection to avoid multi threading issues - - - - - Specifies the private font collection. - - - - - Initializes a new instance of the class. - - The graphics. - - - - Initializes a new instance of class. - - - - - - - - Initializes a new instance of the class. - - The graphics. - The bitmap quality. - - - - Initializes a new instance of the - - The Graphics - The Bitmap quality - - - - - Begins a new virtual graphics container. - - A GraphicsContainer instance. - - - - Begins a new virtual container. - - The destination rectangle. - The source rectangle. - The unit. - A GraphicsContainer instance. - - - - Fills the entire graphics with the specified color. - - The color. - - - - Draws an arc. - - The pen. - The rectangle specifying the boundaries of the full circle, - of which the arc is a part. - The start angle. - The sweep angle. - - - - Draws one or more Bezier curves. - - The pen. - The points. - - - - Draws a closed curve. - - The pen. - The points. - The tension. - The fill mode. - - - - Draws a curve. - - The pen. - The points. - Points to custom cap. - The offset. - The number of the segments. - The tension. - It isn't supported. - - - - Draws an ellipse. - - The pen. - The rectangle specifying the boundaries of the ellipse. - - - - Draws an image. - - The image. - The destination rectangle. - The source rectangle. - The units. - - - - Draws an image. - - The image. - The points. - The source rectangle. - The units. - - - - Used to change the image resolution - - value of image resolution to set - original image - - - - - Draws an image and/or brush. - - The image to draw. - The brush to draw. - Where to draw. - Where to draw from. - Raster Operation Code. - - - - Draws extra line between the last and first points. - - The pen. - The points. - If true, connects last and first points. - - - - Draws lines specified by vertices. - - The pen. - The points. - - - - Darw the multiple Line - - - - - - - - - Convert the pen to PdfPen - - - PdfPen - - - - Draws a path. - - The pen. - The path. - - - - Draws polygon. - - Pen object. - Array of points. - - - - Draws a pie. - - The pen. - The rectangle specifying the boundaries of the complete circle, - of which the pie is a part. - The start angle. - The sweep angle. - - - - Draws a series of rectangles. - - The pen. - An array of rectangles. - - - - Draws a text string. - - The text. - The font. - The brush. - The boundaries of the text. - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - - - - Checks if the given rectangle overflows the current page. - - - - - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - Rotation Angle - - - - Corrects the location. - - The location. - The size. - The real size of the text. - The format. - The corrected location. - - - - Ends the specified graphics container. - - The container. - Restores the graphics state saved - by the appropriate BeginContainer method. - - - - Fills a closed curve. - - The brush. - The points of the curve. - The fill mode. - The tension. - It isn't supported. - - - - Fills an ellipse. - - The brush. - The boundaries of the ellipse. - - - - Fills a path. - - The brush. - The path. - - - - Fills a pie. - - The brush. - The x coordinate of the ellipse boundaries, which the pie is a part of. - The y coordinate of the ellipse boundaries, which the pie is a part of. - The width of the ellipse boundaries, which the pie is a part of. - The height of the ellipse boundaries, which the pie is a part of. - The start angle. - The sweep angle. - - - - Fills a polygon. - - The brush. - The points of the polygon. - - - - Fills rectangles. - - The brush. - The rectangles. - - - - Fills a region. - - The brush. - The region. - - - - Performs multiply transformations. - - The matrix. - The order. - - - - Translates the current clip region. - - The dx. - The dy. - - - - Resets the current clip region to the infinite region. - - - - - Resets the transformations. - - - - - Performs the rotate transformations. - - The angle. - The order. - - - - Saves the current graphics state. - - A GraphicsState instance that stores - information about the current graphic state. - - - - Restores the graphics state to the specified graphics state. - - The saved graphics state. - - - - Performs scaling transformations. - - The scaling facto by x coordinate. - The scaling facto by y coordinate. - The order. - - - - Sets the current clip region. - - The path specifying the clip region. - The combining mode. - - - - Sets the current clip region. - - The rectangle specifying the new clip region. - The combining mode. - - - - Sets the current clip region. - - The region. - The combining mode. - - - - Updates the clip region of this Graphics object to exclude the area specified by a Rectangle structure. - - Rectangle structure that specifies the rectangle to exclude from the clip region. - - - - Updates the clip region of this Graphics object to exclude the area specified by a Region object. - - Region object that specifies the region to exclude from the clip region. - - - - Updates the clip region of this Graphics object to the intersection of the current clip region and the specified RectangleF structure. - - RectangleF structure to intersect with the current clip region. - - - - Updates the clip region of this Graphics object to the intersection of the current clip region and the specified Region object. - - Region object to intersect with the current region. - - - - Transforms points. - - Destination space. - Source space. - Array of points. - - - - Sets the current rendering origin. - - The origin. - - - - Sets the specified transformation matrix. - - The matrix. - - - - Performs translate transformation of the graphics. - - The offset by the x coordinate. - The offset by the y coordinate. - The order of the matrix operations. - - - - Is called when the metafile parsing have been started. - - - - - Is called when the metafile is at the end. - - - - - Raises when error occured during metafile parsing. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - - Sets location / bounds for metafile object. - - Location of the metafile. - Size of the metafile. - - - - Sets the Boundaries box. - - The bounds. - - - - Sets transformation matrix. - - - - - Sets clip region. - - - - - Sets clip region. - - - - - Extracts fill mode of the path. - - Graphics path. - Fill mode of the path. - - - - Gets clip path for the graphics. - - - - - Gets PDF font for the text. - - Text to be printed. - Font which will be used for printing. - PDF font object. - - - - Called when we need to draw a primitive. - - - - - Called when the graphics state was changed. - - - - - Draws the cap. - - The cap. - The points. - The Start point index. - The end point index. - The width. - The brush. - - - - Draws the customarrow end cap in the line - - - - - - - - - - - Calculates scaling factor for text that fits to the specifiedboundaries. - - String text to be scaled. - Font object. - Text' boundaries. - Size of the text. - The format. - The scaling factor. - - - - Converts GraphicsUnits to PrintUnits. - - - returns PrintUnits - - - - Converts the .NET pen to a PDF pen. - - The pen. - The alpha channel value. - The proper PDF pen. - - - - Converts a .NET brush into a PDF brush. - - The brush. - The alpha channel value. - The proper PdfBrush class instance. - - - - Checks the alpha. - - The bitmap. - The proper transparency mask. - - - - Checks if the alpha channel is present. - - The flags. - The bitmap. - The array. - The proper mask. - - - - Converts a .NET hatch brush to a PDF tiling brush. - - The hatch brush. - The alpha channel value. - The well formed PdfBrush instance. - - - - Converts the .NET colors to PdfColor array. - - The colors. - The well formed PdfColor array. - - - - Gets the brush from pen. - - The PDF pen. - The brush initialized from pen parameters. - - - - Converts the System.Drawing.StringFormat format to - Syncfusion.Pdf.Graphics.PdfStringFormat format. - - The format. - Proper Syncfusion.Pdf.Graphics.PdfStringFormat format. - - - - Gets the type of the wrap. - - The string format flags. - Proper StringWrapType value. - - - - Converts the line alignment. - - The string alignment. - The proper VerticalAlignment value. - - - - Converts the alingnmet. - - The string alignment. - The proper TextAlignment value. - - - - Converts a .NET pen to a PDF pen and sets transparency. - - The pen. - - - - - Converts a .NET brush to a PDF brush and sets transparency. - - The brush. - - - - - Internally resets clip region. - - - - - Internally resets transformation. - - - - - Draws custom cap. - - Pen used to draw cap. - Path points. - Custom points for cap. - Indicates whether cap is start. - - - - Checks is points line or not. - - Points to be check. - Is points line or not. - - - - Converts a System.Drawing.Drawing2D.LineCap value to the Syncfusion.Pdf.Graphics.LineCap. - - The cap value. - Syncfusion.Pdf.Graphics.LineCap type value. - - - - Converts a System.Drawing.Drawing2D.LineJoin values to respective - Syncfusion.Pdf.Graphics.LineJoin values. - - The join value. - Proper Syncfusion.Pdf.Graphics.LineJoin value. - - - - Converts a System.Drawing.Drawing2D.DashStyle dash style to the corresponding Syncfusion.Pdf.Graphics.DashStyle dash style. - - The dash style. - Proper Syncfusion.Pdf.Graphics.DashStyle value. - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Prepares a matrix to PDF. - - The matrix. - The page scale value. - - A properly prepared PdfTransformationMatrix class instance. - - - - - Draws the cross brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the backward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the forward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the vertical pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the downward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws Weave style. - - Pdf Graphics on which style draws. - Pdf pen which draws style. - The size of the brush. - - - - Draws the upward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the brick tails for the brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws a checker board dash pattern. - - The graphics. - The pen. - Size of the brush. - Size of the cell. - - - - Locates the font file. - - The font. - Not the best way, but will work in most cases incase font substitution fails. - - - - - Gets the font suffix. - - The fs. - - - - - Gets or sets the custom font collection. - - - - - Get or Sets transparency is applied or not. - - - - - - Get or Sets the alpha pen - - - - - Get or Sets the alpha brush. - - - - - Get or Sets the Blend mode. - - - - - get or set the bool value to to idetenctical image - - - - - get or set the PdfDocument - - - - - Gets the PDF graphics object. - - - - - Gets the native graphics object. - - - - - Gets the clip bounds. - - - - - Gets or sets transformation of graphics. - - - - - Gets or sets the scaling between world units and page units for this Graphics object. - - - - - Gets or sets the unit of measure used for page coordinates in this Graphics object. - - - - - Gets the unit converter for X axis. - - - - - Gets the unit converter for Y axis. - - - - - Gets or sets a value indicating whether [page transformed]. - - true if [page transformed]; otherwise, false. - - - - Gets a value indicating whether [embed fonts]. - - true if [embed fonts]; otherwise, false. - - - - Gets text region manager - - - - - Gets or sets context of the parser. - - - - - Gets or Sets real clip value - - - - - Region of the space which text in metafile can take. - - - - - Y co-ordinate of the region. - - - - - Height of the region. - - - - - Creates new text region object. - - - - - Creates new text region object. - - Gets or sets Y co-ordinate of the region when the text starts. - Gets or sets Height of the text region. - - - - Joins two regions. - - Text region to be joined. - Text region to be joined. - Joined region. - - - - Checks whether region intersect with the current one. - - Region object. - True - if they're intersected, False - otherwise. - - - - Gets or sets Y co-ordinate of the region when the text starts. - - - - - Gets or sets Height of the text region. - - - - - Manages TextRegion objects. - - - - - Collection of the regions. - - - - - Creates new object. - - - - - Adds a text region into the collection. - - - - - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - Y co-ordinate of some text region. - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - - - - Searches for the last before text region. - - Y co-ordinate of some text region. - - Returns the Y co-ordinate of last before text region. - - - - - Clears the collection. - - - - - Searches for all regions in the collection that are intersested with the current one. - - Current text region. - Array of regions that intersect with the current. - - - - Removes region from the colection. - - Region that should be removed from he collection. - - - - Removes regions from the colection. - - Array of regions that should be removed from he collection. - - - - Joins array of regions and the region into one region. - - Array of the regions. - Current text region. - - - - Type of the object. - - - - - Invalid object type. - - - - - Brush object. - - - - - Pen object. - - - - - Path object. - - - - - Region object. - - - - - Image object. - - - - - Font object. - - - - - String format object. - - - - - Image attributes object. - - - - - Custom line cap object. - - - - - Type of the brush. - - - - - Default value. - - - - - Hatch brush. - - - - - Texture brush. - - - - - Path gradient brush. - - - - - Linear gradient brush. - - - - - Flags for a linear gradient brush. - - - - - Minimal data are present. - - - - - The brush applies a transformation matrix to the source image. - - - - - The brush contains a ColorBlend object for use with its InterpolationColors property. - - - - - The brush contains a Blend object for use with its Blend property. - - - - - The brush has a non-default value for the FocusScales property. - - - - - The brush uses gamma correction. - - - - - Represents pen flags. - - - - - Pen just with color set. - - - - - Transformation set. (20-... - float ) - - - - - StartCap set. ( 20 - int ) - - - - - EndCap set. ( 20 - int ) - - - - - LineJoin set. ( 20 - int ) - - - - - MiterLimit set. ( 20 - float ) - - - - - Pen has DashStyle defined. - - - - - DashCap set. ( 20 - int ) - - - - - DashOffset is defined. (20 - float) - - - - - DashPattern is defined. (20 - int: numArray; 24-... - float: DashPattern ) - - - - - Alignment set. (20 - int ) - - - - - CompoundArray set. (20 - int: numArray; 24-... - float: compoundArray ) - - - - - The pen uses a custom start cap. - - - - - The pen uses a custom end cap. - - - - - Indicates types of the images in the Object record. - - - - - Unknown format. - - - - - Bitmap image. - - - - - Metafile image. - - - - - Initial state of the region. - - - - - Region is from rectangle. - - - - - Region is from graphics path. - - - - - Region is empty. - - - - - Region is infinity. - - - - - Summary description for RtfToWmf. - - - - - Message code. - - - - - Message code. - - - - - Message code. - - - - - Message code. - - - - - Type object of this class. - - - - - Rectangle needed for content displaying inside of rich text paint. - - - - - Creates new object. - - - - - Converts RTF text to Wmf metafile. - - RTF text. - Width of the text. - Height of the text. May be -1. - Type of the image. - Image created from RTF. - - - - Retrieves data from RichTextBox control. - - RichTectBox control instance. - Width of the output. - Height of the output. - Type of the image. - Image created from RTF. - - - - Converts rtf to metafile. - - RichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Converts rtf to metafile. - - HtmlRichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Converts rtf to bitmap. - - RichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Draws rtf on the graphics context. - - RichTextBox control. - Graphics context. - Bounds of the image. - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Convert between pixels and inches. - - Value in pixels. - Horizontal device resolution. - Vertical device resolution. - Value in inches.. - - - - Determines whether [is valid RTF] [the specified RTF]. - - The RTF. - - if it is valid RTF, set to true. - - - - - - Sets RTF text box. - - Rich text box control. - Rtf text. - - - - Handles contentsResized event. - - Sender of the event. - Event parameters. - - - - The collection of the default pens. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates the default pen. - - The color. - Name of the color. - The proper PdfPen instance. - - - - Disallows to create an instance of PDfPens class. - - - - - Gets the AliceBlue pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.AliceBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.AliceBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the antique white pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.AntiqueWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.AntiqueWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aqua default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Aqua, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Aqua, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aquamarine default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Aquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Aquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Azure default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Azure, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Azure, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Beige default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Beige, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Beige, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Bisque default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Bisque, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Bisque, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Black default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlanchedAlmond default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BlanchedAlmond, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BlanchedAlmond, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Blue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Blue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Blue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlueViolet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BlueViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BlueViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Brown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Brown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Brown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BurlyWood default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BurlyWood, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BurlyWood, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CadetBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.CadetBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.CadetBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chartreuse default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Chartreuse, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Chartreuse, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chocolate default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Chocolate, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Chocolate, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Coral default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Coral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Coral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CornflowerBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.CornflowerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.CornflowerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Corn silk default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Cornsilk, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Cornsilk, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Crimson default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Crimson, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Crimson, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Cyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Cyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Cyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkCyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGoldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkKhaki default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkKhaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkKhaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkMagenta default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkMagenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkMagenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOliveGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOliveGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOliveGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrange default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSalmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkViolet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepSkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DimGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DimGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DimGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DodgerBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DodgerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DodgerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Firebrick default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Firebrick, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Firebrick, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the FloralWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.FloralWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.FloralWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the ForestGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.ForestGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.ForestGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Fuchsia default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Fuchsia, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Fuchsia, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gainsborough default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gainsboro, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gainsboro, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GhostWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.GhostWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.GhostWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gold default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gold, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gold, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Goldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Goldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Goldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Green default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Green, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Green, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GreenYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.GreenYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.GreenYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Honeydew default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Honeydew, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Honeydew, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the HotPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.HotPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.HotPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the IndianRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.IndianRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.IndianRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Indigo default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Indigo, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Indigo, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Ivory default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Ivory, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Ivory, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Khaki default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Khaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Khaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lavender default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Lavender, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Lavender, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LavenderBlush default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LavenderBlush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LavenderBlush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LawnGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LawnGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LawnGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LemonChiffon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LemonChiffon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LemonChiffon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCoral default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCoral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCoral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGoldenrodYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGoldenrodYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGoldenrodYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSalmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSteelBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lime default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Lime, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Lime, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LimeGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LimeGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LimeGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Linen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Linen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Linen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Magenta default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Magenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Magenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Maroon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Maroon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Maroon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumAquamarine default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumAquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumAquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumOrchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumPurple default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumPurple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumPurple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSpringGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumVioletRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MidnightBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MidnightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MidnightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MintCream default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MintCream, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MintCream, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MistyRose default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MistyRose, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MistyRose, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Moccasin default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Moccasin, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Moccasin, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the NavajoWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.NavajoWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.NavajoWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Navy default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Navy, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Navy, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OldLace default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OldLace, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OldLace, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Olive default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Olive, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Olive, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OliveDrab default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OliveDrab, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OliveDrab, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orange default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Orange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Orange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OrangeRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OrangeRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OrangeRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Orchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Orchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGoldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleVioletRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PapayaWhip default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PapayaWhip, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PapayaWhip, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PeachPuff default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PeachPuff, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PeachPuff, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Peru default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Peru, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Peru, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Pink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Pink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Pink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Plum default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Plum, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Plum, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PowderBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PowderBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PowderBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Purple default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Purple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Purple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Red default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RosyBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.RosyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.RosyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RoyalBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.RoyalBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.RoyalBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SaddleBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SaddleBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SaddleBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Salmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Salmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Salmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SandyBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SandyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SandyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaShell default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaShell, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaShell, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Sienna default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Sienna, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Sienna, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Silver default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Silver, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Silver, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Snow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Snow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Snow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SpringGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SteelBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Tan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Tan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Teal default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Teal, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Teal, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Thistle default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Thistle, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Thistle, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tomato default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Tomato, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Tomato, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Transparent default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Transparent, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Transparent, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Turquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Turquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Turquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Violet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Violet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Violet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Wheat default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Wheat, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Wheat, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the White default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.White, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.White, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the WhiteSmoke default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.WhiteSmoke, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.WhiteSmoke, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Yellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Yellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Yellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the YellowGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.YellowGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.YellowGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a simple transparency. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The stroke operation alpha value. - The fill operation alpha value. - The blend mode. - - - - Determines whether the specified - is equal to the current . - - The - to compare with the current . - - true if the specified - is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - is suitable - for use in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - Gets the number value. - - Name of the key. - The value of the number specified by the string key. - - - - Gets the name value. - - Name of the key. - The name value specified by the key. - - - - Gets the stroke operation alpha value. - - - - - Gets the fill operation alpha value. - - - - - Gets the blend mode. - - - - - Gets the element. - - - - - - Represents the Painting and graphics state - - - - - Text - - - - - Grayscale images or image masks - - - - - Color images - - - - - Indexed (color-table) images - - - - - Represents the html hyperlink used during the html to pdf conversion to preserve live-links. - - This class is used internally and should not be used directly. - - - - The bounds which the html element occupies. - - - - - The target Url. - - - - - The matching name of the document link. - - - - - The id of the destination. - - - - - Initializes a new instance of the class. - - The bounds. - The href. - - - - Converts the bounds from pixel to point. - - - - - Gets or sets the bounds. - - - - - Gets or sets the id of the destination. - - - - - Gets or sets the name (id) of the document link. - - - - - Gets or Sets the Url. - - - - - The matching type of form elements (i.e. input,select,button...). - - - - - The bounds which the html form element occupies. - - - - - The matching indepth type of the form element (i.e. radio,select,button,text,password...). - - - - - The matching name of the form element. - - - - - The matching value of the form element. - - - - - The matching isChecked value of the form element. - - - - - The parent name of the form element (form name/body name). - - - - - The matching value of the form element. - - - - - The matching value of the form element. - - - - - The readOnly value of the form element. - - - - - The color of background rectangle of the form element. - - - - - The background color of the form element. - - - - - The text color of the form element. - - - - - The border color of the form element. - - - - - The matching value of the multiple. - - - - - The matching value of the selected Index of select options. - - - - - The matching value of the list element's text,value pair. - - - - - Initializes a new instance of the class. - - The bounds. - The button type (ex: submit,reset,..). - The name of the button element. - The actual value of the button element. - The color value of background rectangle of each button element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The value of checked property of form element. - The parent element name of the form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The possible of maximum no.of. char in form element. - The readOnly value of form element (true/false). - The color value of background rectangle of each form element. - The background color value of each form element. - The text color value of each form element. - The border color value of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The value of checked property of form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The readOnly value of form element (true/false). - The color value of background rectangle of each form element. - The background color value of each form element. - The text color value of each form element. - The border color value of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the select element. - The actual value of the select element. - The multi select value (if true, select element is list. Else Combo) of select element. - The selected index value of the select element. - The color value of background rectangle of each select element. - The list of option vlues of each select element. - - - - Converts the bounds from pixel to point. - - - - - Gets or sets the input type of the form element(i.e. input,select,button...). - - - - - Gets or sets the bounds. - - - - - Gets or sets the indepth input type of the form element(i.e. radio,select,button,text,password...). - - - - - Gets or sets the name/id of the document link/form element. - - - - - Gets or sets the value of the form element. - - - - - Gets or sets the isChecked value of the form element. - - - - - Gets or sets the parent name of the form element. - - - - - Gets or sets the id of the form element. - - - - - Gets or sets the id of the form element. - - - - - Gets or sets the readOnly bool value of the form element. - - - - - Gets or sets the Background Rectangle's Color value of the form element. - - - - - Gets or sets the Background Color value of the form element. - - - - - Gets or sets the text Color value of the form element. - - - - - Gets or sets the border Color value of the form element. - - - - - Gets or sets the value of the selected item's index of select element. - - - - - Gets or sets the value of the multiple field of select element. - - - - - Gets or sets the value of the selected item's index of select element. - - - - - Represents the html forms used during the html to pdf conversion to preserve forms in pdf. - - - - - Gets or sets form field id - - - - - Gets or sets form field value - - - - - Gets or sets a value indicating whether the field is read only. - - - - - Gets or sets whether the element is selected or not - - - - - Gets or sets the field type - - - - - Gets or sets the field page number - - - - - Gets or sets the field bounds - - - - - Represents the layout parameters. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Start lay outing page. - - - - - The top - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets the starting layout page. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Gets or sets the lay outing bounds. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Gets or sets the vertical offsets. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The vertical offsets. - - - - Gets or sets the lay outing settings. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Start lay outing page. - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets start layouting page. - - - - - Gets or sets layouting bounds. - - - - - Gets or sets layouting settings. - - - - - Indicates whether PaginateBounds were set and should be used or not. - - - - - Bounds for the paginating. - - - - - Layout type of the element. - - - - - Break type of the element. - - - - - Is Text Split - - - - - Is Image Split - - - - - Holds the total webpage layout size - - - - - Holds the total Page count - - - - - Holds the Page Number of PDF document - - - - - Holds the split page size - - - - - Image region manager to avoid split between pages - - - - - Text region manager to avoid split between pages - - - - - Form region manager to avoid split between pages - - - - - Holds the Hyperlink Collections - - - - - Holds the internal link collections - - - - - Initializes a new instance of the class. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets break type of the element. - - - - - Gets or sets the bounds on the next page. - - If this property is set, the element will use it for the layouting on the next pages, - otherwise, the element will be layout according to the bounds, used on the first page. - - - - Gets a value indicating whether [use paginate bounds]. - - true if [use paginate bounds]; otherwise, false. - - - - The Syncfusion.Pdf.HtmlToPdf namespace contains classes to perform HTML to PDF conversion - - - - - Represents the result of html to PDF conversion. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Holds the list of Page-Breaks. - - - - - Holds the list of hyperlinks. - - - - - Holds the list of hyperlinks. - - - - - Holds the list of document links. - - - - - Holds the list of input elements. - - - - - Holds the list of select elements. - - - - - Holds the list of button elements. - - - - - Holds the list of internal links - - - - - Holds the list of Form field details. - - - - - Holds the resultant images. - - - - - - Internal variable to hold if conversion is completed. - - - - - Internal variable to store the scroll position. - - - - - Internal variable to store the height yet to be converted. - - - - - Internal variable to store layout result of HTML to PDF. - - - - - Hold the WebKit File path - - - - - Layout details of whole document to update the form field bounds. - - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The image. - The page breaks. - The anchors. - The document links. - - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Initializes new instance of the class. - - - - - - - - - - Initializes new instance of the class. - - - - - - - - - - Delete the file - - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The PDF document where the output should be drawn. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(doc); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(doc) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Renders the WebKit result to single page and returns the PDF document - - PdfDocument - PdfLayoutFormat - PdfDocument with single PDF page - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page where the output will draw. - The Metafile layout format. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page where the output will draw. - The Metafile layout format. - The Metafile layout result - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Create new PDF layout result. - PdfLayoutResult layoutResult; - //Render the PdfMetafile in the PDF document - result.Render(page, format, out layoutResult); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Create new PDF layout result. - Dim layoutResult As PdfLayoutResult - 'Render the PdfMetafile in the PDF document - result.Render(page, format, layoutResult) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Renders the HTML conversion and returns the layout result - - - - - - - Draws the meta file. - - The page. - The format. - - - - Draws the bitmap. - - The bitmap. - The page. - The bounds. - The format. - - - - - Update the bounds based on the layout result - - Actual size of the page - - - - updates the internal link destination - - - - - Create pdf forms from m_webkitAutoCreateForms list - - Document to draw pdf forms - - - - Performs application-defined tasks associated with releasing, or resetting unmanaged resources. - - - - - Gets or sets the value indicating whether to preserve the bookmark in the converted document or not;By default false - This property is used internally and should not be used directly. - - - - - Gets or sets a value indicating whether to preserve the TOC in the converted document or not;By default false - This property is used internally and should not be used directly. - - - - - Gets or sets TOC styles - /// This property is used internally and should not be used directly. - - - - - Gets the Page-Break Collection. - - - - - Gets the hyper-links Collection. - - - - - Gets if conversion is complete. - - - - - Gets or sets enable forms. - - - - - Gets the next scroll height. - - - - - Gets the rendered image. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The rendered image. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Returns the image array after the conversion. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The images. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.Images[0] as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.Images[0].Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.Images(0), Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.Images(0).Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Handles the quality of Bitmap images in HTML. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Set image quality. - result.Quality = 50; - //Render the PdfMetafile in the PDF document - result.Render(page, new PdfLayoutFormat()); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Set image quality. - result.Quality = 50 - 'Render the PdfMetafile in the PDF document - result.Render(page, New PdfLayoutFormat()) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or set the location. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Set the location. - result.Location = new PointF(100, 100); - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Set the location. - result.Location = New PointF(100, 100); - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or set the metafile transparency. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Set transparency. - result.MetafileTransparency = 0.5f; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Set transparency. - result.MetafileTransparency = 0.5F - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or sets the single page layout type - - - - - Gets or sets a WebKit created temp directory. - - - - - Use this option to render the whole HTML content into a single PDF page - - - - /// //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"QtBinaries"; - //Set signle page layout. - settings.SinglePageLayout = SinglePageLayout.FitHeight; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "QtBinaries" - 'Set signle page layout. - settings.SinglePageLayout = SinglePageLayout.FitHeight - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Do not apply single page layout - - - - - The page width is not resized to fit the HTML content to PDF page - - - - - The page height is not resized to fit the HTML content PDF page - - - - - Reader of the big endian data. - - - - - Size of Int32 type. - - - - - Size of Int16 type. - - - - - Size of long type. - - - - - Fraction coefficient for getting fixed type. - - - - - Reader encoding. - - - - - Binary reader. - - - - - Initializes a new instance of the class. - - The reader. - - - - Closes all resources. - - - - - Seeks reader to the sepcified position. - - Position of the reader. - - - - Skips number of bytes. - - Number of bytes to skip. - - - - Reverts array elements. - - Byte array. - Reverted array. - - - - Reads 64 bit integer. - - 64 bit integer. - - - - Reads 64 bit integer. - - 64 bit integer. - - - - Reads 32 bit integer. - - 32 bit integer. - - - - Reads 32 bit integer. - - 32 bit integer. - - - - Reads 16 bit integer. - - 16 bit integer. - - - - Reads 16 bit integer. - - 16 bit integer. - - - - Reads one byte. - - One byte. - - - - Reads FIXED data type (16.16) fixed point number. - - FIXED data type (16.16) fixed point number. - - - - Reads bytes from the reader. - - Number of bytes. - Byte array. - - - - Reads string. - - Size of the string in bytes. - String data. - - - - Reads string. - - Size of the string in bytes. - Indicates whethere string is unicode or not. - String data. - - - - Reads bytes to array in BigEndian order. - - Byte array. - Start index. - Number bytes to read. - Number bytes that was read. - - - - Gets or sets binary reader. - - - - - Gets base stream. - - - - - Writes data in BigEndian order. - - - - - Size of Int32 type. - - - - - Size of Int16 type. - - - - - Size of long type. - - - - - Fraction coefficient for getting fixed type. - - - - - Reader encoding. - - - - - Internal buffer. - - - - - Current position. - - - - - Creates a new writer. - - Capacity of the data. - - - - Writes short value. - - Value. - - - - Writes ushort value. - - Value. - - - - Writes int value. - - Value. - - - - Writes uint value. - - Value. - - - - Writes string value. - - Value. - - - - Writes byte[] value. - - Value. - - - - Writes array to the buffer. - - Byte data. - - - - Gets data written to the writter. - - - - - Gets position of the internal buffer. - - - - - Utility class to store information about Image transaction or scale matrix. - - - - - Local variable to store content stream. - - - - - Local variable to store the key value. - - - - - Local variable to store the width. - - - - - Local variable to store the height. - - - - - Local variable to store the X co-ordinate value. - - - - - Local variable to store the Y co-ordinate value. - - - - - Local variable to store the transaction matrix value. - - - - - Local variable to store the scale matrix value. - - - - - Local variable to store the page size. - - - - - Local variable to store the cm entries. - - - - - Local variable to store the page margin cm. - - - - - Local variable to store current Rectangle cm.. - - - - - Local variable to store Previous Rectangle cm. - - - - - Local variable to store eftMargin. - - - - - Local variable to store topMargin. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Content Stream. - Key Value. - Page Size. - - - - Calculate the matrix value from the content stream. - - The matrix value in the form of array list. - - - - Calculate the scale matrix value. - - Page size. - - - - Calculate the translation matrix value. - - - - - Convert the matrix value as array. - - Matrix value. - - - - Gets the X co-ordinate value. - - - - - Gets the Y co-ordinate value. - - - - - Gets the image height - - - - - Gets the image width value. - - - - - gets the image leftmargin - - - - - Gets the top margin - - - - - Represents structure tree required to store document logical structure. - - - - - Internal variable to hold structure elements. - - - - - Internal variable to store PdfPage associated with the element. - - - - - Internal variable to store structure id. - - - - - Internal variable to store the bounding rectangle of the element. - - - - - Internal Variable to store the order for the elements - - - - - Internal Variable to store structure element parent and the tag. - - - - - Internal variable to store current structure element's child - - - - - Internal variable to store structure element's parent hierarchy. - - - - - Internal variable to store tree root's child nodes - - - - - Internal variable to store structure elements's childs - - - - - Internal variable to store tags - - - - - Internal variable to store tree root childs. - - - - - Internal variable to store current parent data. - - - - - Internal variable to store structure element parent data - - - - - Internal variable to store sub-list dictionary - - - - - Internal variable to store sub-list collection - - - - - Internal variable to check whether order included. - - - - - Internal variable to check whether nested grid rendering done. - - - - - Constructor - - - - - Adds the specified element to the document structure tree. - - - - - - - - - - Adds the specified element to the document structure tree. - - - - - - - - - Adds annotation/form fields element to the structure tree root. - - the structure element - Page - the annotation dictionary - - - - Adds structure element to the document tree root - - the structure element - Page - returns an integer marked content identifier denoating marked content sequence - - - - Adds parent entry for Table/List - - structure element's parent hierarchy - returns true if parent is identical - - - - Add entries for the structure elements Table/List - - structure elements's parent hierarchy - returns true if parent is identical - - - - Checks whether table has child grid. - - the structure elements's hierarchy - returns true if the table has child grid. - - - - Adds parent entry for the elements - - the structure element - structure element's parent hierarchy - returns true if parent is identical - - - - Checks whether List element has sub-list - - the structure element's parent hierarchy - returns true if the list has sub-list. - - - - Set sub entries data. - - structure element's parent hierarchy - current parent dictionary - - - - Adds tag for the structure elements - - - - - - - Indicates whether the tag is identical - - - returns true if tag is identical - - - - Sets parent entry for structure element hierarchy. - - the structure element hierarchy - top level structure element dictionary - the start index to add parent entry - - - - Set child entry for tree root - - the structure parent hierarchy - - - - Set child for the structure elements List/Table - - the structure parent hierarchy - the child collection - - - - Dispose all the resources from strurture tree root. - - - - - Finds structure elements parent - - the structure element - returns the parent hierarchy for structure element - - - - Adds order value from structure element - - the structure element - - - - Converts equivalent name for the tag type. - - - returns the converted tag name - - - - Re-Order the List - - the maximum child entries in parent - the order list - - - - Re-arrange the structure elements from tree root - - the tree root child entries - the order list - - - - Arranges order list from zero - - the child element count - - - - - Gets Child elements from structure tree root. - - the structure tree root - - - - Summary description for CryptoApi. - - - - - Default constructor. - - - - - WinAPi functions. - - - - - To prevent construction of a class, we make a private constructor. - - - - - Adds the font resource from the specified file to the system font table. - The font can subsequently be used for text output by any application. - - String that contains a valid font file name. - If the function fails, the return value is zero. - - - - Removes the fonts in the specified file from the system font table. - - String that names a font resource file. - If the function fails, the return value is zero. - - - - Selects an object into the specified device context (DC). - The new object replaces the previous object of the same type. - - Handle to the DC. - Handle to the object to be selected. - If the selected object is not a region and the function succeeds, - the return value is a handle to the object being replaced. - - - - Deletes a logical pen, brush, font, bitmap, region, or palette, - freeing all system resources associated with the object. - After the object is deleted, the specified handle is no longer valid. - - Handle to a logical pen, brush, font, - bitmap, region, or palette. - If the function succeeds, the return value is nonzero. - - - - Retrieves font metric data for a TrueType font. - - Handle to the device context. - Specifies the name of a font metric table - from which the font data is to be retrieved - Specifies the offset from the beginning of the font metric table - to the location where the function should begin retrieving information. - Pointer to a buffer that receives the font information. - Specifies the length in bytes of the information to be retrieved - If the function succeeds, the return value is the number of bytes returned. - - - - Retrieves the widths, in logical coordinates, - of consecutive characters in a specified range from the current font. - - Handle to the device context. - Specifies the first character in - the group of consecutive characters. - Specifies the last character in - the group of consecutive characters, - which must not precede the specified first character. - Pointer to a buffer that receives - the character widths, in logical coordinates. - If the function succeeds, the return value is nonzero. - - - - Computes the width and height of the specified string of text. - - Handle to the device context. - Pointer to a buffer that specifies the text string. - Specifies the length of the lpString buffer. - Pointer to a size structure that receives the dimensions of the string - in logical units. - If the function succeeds, the return value is nonzero. - - - - Computes the width and height of the specified string of text. - - Handle to the device context. - Specifies the first character in the group of - consecutive characters from the current font. - Specifies the last character in the group of - consecutive characters from the current font. - Pointer to an array of ABC structures that receives - the character widths, in logical units. - The function succeeds, the return value is nonzero. - - - - The SetTextColor function sets the text color for the specified - device context to the specified color. - - Handle to the device context. - Specifies the color of the text. - If the function succeeds, the return value is - a color reference for the previous text color as a COLORREF value. - - - - The SetTextAlign function sets the text-alignment flags for - the specified device context. - - Handle to the device context. - Specifies the text alignment by using a mask of values. - If the function succeeds, the return value is the previous - text-alignment setting. - - - - The SetBkColor function sets the current background color to - the specified color value or to the nearest physical color - if the device cannot represent the specified color value. - - Handle to the device context. - Specifies the new background color. - If the function succeeds, the return value specifies - the previous background color as a COLORREF value. - - - - The SaveDC function saves the current state of the specified - device context (DC) - - Handle to the DC whose state is to be saved. - If the function succeeds, the return value identifies - the saved state. - - - - The GetTextColor function retrieves the current text color - for the specified device context. - - Handle to the device context. - If the function succeeds, the return value is - the current text color as a COLORREF value. - - - - The GetBkColor function returns the current background color - for the specified device context. - - Handle to the device context whose - background color is to be returned. - If the function succeeds, the return value is - a COLORREF value for the current background color. - - - - The GetTextAlign function retrieves the text-alignment - setting for the specified device context. - - Handle to the device context. - The function succeeds, the return value is the status of - the text-alignment flags. - - - - The RestoreDC function restores a device context (DC) to the specified state - - Handle to the DC. - Specifies the saved state to be restored. - If the function succeeds, the return value is nonzero. - - - - The LPtoDP function converts logical coordinates into device coordinates. - - Handle to device context. - Pointer to an array of POINT structures. - Specifies the number of points in the array. - If the function succeeds, the return value is nonzero. - - - - The LPtoDP function converts logical coordinates into logical coordinates. - - Handle to device context. - Pointer to an array of POINT structures. - Specifies the number of points in the array. - If the function succeeds, the return value is nonzero. - - - - The CreateIC function creates an information context for the specified device. - - Driver name. - Device name. - Port or file name. - Optional initialization data. - If the function succeeds, the return value is - the handle to an information context. - - - - The SetWindowExtEx function sets the horizontal and vertical extents of - the window for a device context by using the specified values. - - Handle to the device context. - Specifies the window's horizontal extent in - logical units. - Specifies the window's vertical extent in - logical units. - Pointer to a size structure that receives - the previous window extents, in logical units. - - - - - The SetWindowOrgEx function specifies which window point maps - to the viewport origin (0,0). - - Handle to the device context. - Specifies the X coordinate in logical units - of the new window origin. - Specifies the Y coordinate in logical units - of the new window origin. - Pointer to a point structure that receives - the previous origin of the window, in logical units. - If the function succeeds, the return value is nonzero. - - - - The SetViewportExtEx function sets the horizontal and vertical extents - of the viewport for a device context by using the specified values. - - Handle to the device context. - Specifies the horizontal extent - in device units of the viewport. - Specifies the vertical extent - in device units of the viewport. - Pointer to a size structure that - receives the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The GetViewportExtEx function retrieves the horizontal extent and vertical extent - of the current viewport for the specified device context. - - Handle to the device context. - Pointer to a size structure that - receives the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The SetViewportOrgEx function specifies which device point maps - to the window origin (0,0). - - Handle to the device context. - Specifies the x-coordinate, in device units, - of the new viewport origin. - Specifies the Y coordinate in device units - of the new viewport origin. - Pointer to a point structure that receives - the previous viewport origin in device coordinates. - If the function succeeds, the return value is nonzero. - - - - The ScaleWindowExtEx function modifies the window for a device context using - the ratios formed by the specified multiplicands and divisors. - - Handle to the device context. - Specifies the amount by which to multiply - the current horizontal extent. - Specifies the amount by which to divide - the current horizontal extent. - Specifies the amount by which to multiply - the current vertical extent - Specifies the amount by which to divide - the current vertical extent - Pointer to a size structure that receives - the previous window extents in logical units. - If the function succeeds, the return value is nonzero. - - - - The ScaleViewportExtEx function modifies the viewport for a device context - using the ratios formed by the specified multiplicands and divisors. - - Handle to the device context. - Specifies the amount by which to multiply - the current horizontal extent. - Specifies the amount by which to divide - the current horizontal extent. - Specifies the amount by which to multiply - the current vertical extent. - Specifies the amount by which to divide - the current vertical extent. - Pointer to a size structure that receives - the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The SetMapMode function sets the mapping mode of the specified device context. - - Handle to device context. - New mapping mode. - If the function succeeds, the return value identifies - the previous mapping mode. - - - - The GetGraphicsMode function retrieves the current graphics mode - for the specified device context. - - Handle to device context. - If the function succeeds, the return value is the current graphics mode. - - - - The GetDeviceCaps function retrieves device-specific information - for the specified device. - - Handle to the DC. - Specifies the item to return. - The return value specifies the value of the desired item. - - - - The GetDC function retrieves a handle to a display device context (DC) - for the client area of a specified window or for the entire screen. - - Handle to the window whose DC is to be retrieved - If the function succeeds, the return value is a handle to the DC - for the specified window's client area. - - - - The CreateDC function creates a device context (DC) for a device using the specified name. - - Driver name. - Device name. - Not used; should be NULL. - Optional printer data. - If the function succeeds, the return value is the handle to a DC for the specified device. - - - - The DeleteDC function deletes the specified device context (DC). - - Handle to the device context. - If the function succeeds, the return value is nonzero. - - - - The ModifyWorldTransform function changes the world transformation for a device context using the specified mode. - - handle to device context. - transformation data. - The modififcation mode. - modification mode. - - - - The SetWorldTransform function sets the world transformation for a device context using the specified mode. - - handle to device context. - transformation data. - modification mode. - - - - The GetMapMode function retrieves the current mapping mode. - - handle to device context. - If the function succeeds, the return value specifies the mapping mode. - - - - The SetMiterLimit function sets the limit for the length of miter joins for the specified device context. - - handle to DC - new miter limit - previous miter limit - If the function succeeds, the return value is nonzero. - - - - The GetMiterLimit function retrieves the miter limit for the specified device context. - - handle to DC - miter limit - If the function succeeds, the return value is nonzero. - - - - The SetPolyFillMode function sets the polygon fill mode for functions that fill polygons. - - handle to DC - polygon fill mode - The return value specifies the previous filling mode. If an error occurs, the return value is zero. - - - - The GetPolyFillMode function retrieves the current polygon fill mode. - - handle to DC - The return value specifies the filling mode. If an error occurs, the return value is zero. - - - - The SetGraphicsMode function sets the graphics mode for the specified device context. - - Handle to the device context. - Specifies the graphics mode. - - - - - The BeginPath function opens a path bracket in the specified device context. - - Handle to the device context. - If the function succeeds, the return value is nonzero. - - - - The MoveToEx function updates the current position to the specified point and optionally returns the previous position. - - Handle to the device context. - Specifies the x-coordinate, in logical units, of the new position, in logical units. - Specifies the y-coordinate, in logical units, of the new position, in logical units. - Pointer to a POINT structure that receives the previous current position. - If the function succeeds, the return value is nonzero. - - - - The LineTo function draws a line from the current position up to, but not including, the specified point. - - Handle to a device context. - Specifies the x-coordinate, in logical units, of the line's ending point. - Specifies the y-coordinate, in logical units, of the line's ending point. - If the function succeeds, the return value is nonzero. - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Retrieves text metrics for TrueType fonts. - - Handle to the device context. - Specifies the size in bytes of the array - that receives the text metrics. - Pointer to an array of OUTLINETEXTMETRIC structures. - If the function succeeds, the return value is nonzero - or the size of the required buffer. - - - - Retrieves text metrics for TrueType fonts. - - Handle to the device context. - Specifies the size in bytes of the array - that receives the text metrics. - Pointer to an array of OUTLINETEXTMETRIC structures. - If the function succeeds, the return value is nonzero - or the size of the required buffer. - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - This function allows an application to get a font that is embedded in a document or a webpage. - A font that is added by AddFontMemResourceEx is always private to the process that made the call and is not enumerable. - - A pointer to a font resource. - The number of bytes in the font resource that is pointed to by pbFont. - Reserved. Must be 0. - A pointer to a variable that specifies the number of fonts installed. - The return value specifies the handle to the font added - - - - WinAPi functions. - - - - - To prevent construction of a class, we make a private constructor. - - - - - The GetLastError function retrieves the calling thread's last-error code value. - - The return value is the calling thread's last-error code value. - - - - Retrieves character-type information for the characters in the specified source string. - - Value that specifies the locale identifier. - Value that specifies the type of character information the user wants to retrieve. - Pointer to the string for which character types are requested. - Size, in characters, of the string pointed to by the lpSrcStr parameter. - Pointer to an array of 16-bit values. - Boolean result, indicates success of WinAPI call - - - - Class containing API for RTL support. - - - - - Operation succeed. - - - - - Out of memory to suceed an operation. - - - - - Default size of the buffer. - - - - - Font doesn't support such glyphs. - - - - - Default script program. - - - - - Mask for setting script as SCRIPT_UNDEFINED. - - - - - Identifies that layout is RTL. - - - - - Default constructor. - - - - - Retieves value from the structure. - - Value of the structure. - Start position of the item inside of the structure. - Length of the item in bits. - Value from the structure. - - - - Class containing API for RTF support. - - - - - Exported funtion. - - - - - Exported funtion. - - - - - Exported funtion. - - - - - Specifies the type of character information the user wants to retrieve. - - - - - Retrieves character type info - - - - - Retrieves bi-directional layout info - - - - - Retrieves text processing info - - - - - These types support ANSI C and POSIX (LC_CTYPE) character-typing functions. - A combination of these values is returned in the array pointed to by the lpCharType parameter - when the dwInfoType parameter is set to CT_CTYPE1. - - - - - Uppercase - - - - - Lowercase - - - - - Decimal digits - - - - - Space characters - - - - - Punctuation - - - - - Control characters - - - - - Blank characters - - - - - Hexadecimal digits - - - - - Any linguistic character: alphabetic, syllabary, or ideographic - - - - - These types support proper layout of Unicode text. The direction attributes are assigned - so that the bidirectional layout algorithm standardized by Unicode produces accurate results. - These types are mutually exclusive. - - - - - Left to right - - - - - Right to left - - - - - European number, European digit - - - - - European numeric separator - - - - - European numeric terminator - - - - - Arabic number - - - - - Common numeric separator - - - - - Block separator - - - - - Segment separator - - - - - White space - - - - - Other neutrals - - - - - No implicit directionality (for example, control codes) - - - - - These types are intended to be placeholders for extensions to the POSIX types - required for general text processing or for the standard C library functions. - A combination of these values is returned when dwInfoType is set to CT_CTYPE3. - - - - - Diacritic nonspacing mark - - - - - Vowel nonspacing mark - - - - - Symbol - - - - - Katakana character - - - - - Hiragana character - - - - - Half-width (narrow) character - - - - - Full-width (wide) character - - - - - Ideographic character - - - - - Arabic Kashida character - - - - - Punctuation which is counted as part of the word - (Kashida, hyphen, feminine/masculine ordinal indicators, equal sign, and so forth) - - - - - All linguistic characters (alphabetical, syllabary, and ideographic) - - - - - Not applicable - - - - - Native enum. - - - - - Record of Emf metafile. - - - - - New miter limit. - - - - - Record of Emf metafile. - - - - - The XFORM structure specifies a world-space to page-space transformation. - - - - - Specifies scaling/rotation/reflection - - - - - Specified shear/rotation - - - - - Specified shear/rotation - - - - - Specifies scaling/rotation/reflection - - - - - Specifies the horizontal translation component, in logical units. - - - - - Specifies the vertical translation component, in logical units. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Point creation from lParam's data. - - lParam's data for initialing point structure. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - ABC structure. - - - - - Structure for 32 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Value of Alpha chanel. - - - - - Structure for 24 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Structure for 24 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Structure for information about font. - - - - - Class with simple constants. - - - - - ExtTextOut options constants. - - - - - The current background color should be used to fill the rectangle. - - - - - The text will be clipped to the rectangle. - - - - - Windows 95 and Windows NT 4.0 and later: - The lpString array refers to an array returned from - GetCharacterPlacement and should be parsed directly by GDI - as no further language-specific processing is required. - Glyph indexing only applies to TrueType fonts, but the flag - can be used for bitmap and vector fonts to indicate that no further - language processing is necessary and GDI should process the string - directly. - - Note that all glyph indexes are 16-bit values even though the string is - assumed to be an array of 8-bit values for raster fonts. - - For ExtTextOutW, the glyph indexes are saved to a metafile. - However, to display the correct characters the metafile must be - played back using the same font. For ExtTextOutA, the glyph indexes are not saved. - - - - - Windows 95 and Windows NT 4.0 and later: To display numbers, use European digits. - - - - - Windows 95 and Windows NT 4.0 and later: To display numbers, use digits appropriate to the locale. - - - - - Windows 95 and Windows NT 4.0 and later for Middle East - language edition of Windows: If this value is specified - and a Hebrew or Arabic font is selected into the device - context, the string is output using right-to-left reading - order. If this value is not specified, the string is output - in left-to-right order. The same effect can be achieved - by setting the TA_RTLREADING value in SetTextAlign. This - value is preserved for backward compatibility. - - - - - Windows NT 4.0 and later: Reserved for system use. - If an application sets this flag, it loses international scripting - support and in some cases it may display no text at all. - - - - - Windows 2000/XP: When this is set, the array pointed to by lpDx - contains pairs of values. The first value of each pair is, - as usual, the distance between origins of adjacent character cells, - but the second value is the displacement along the vertical direction of the font. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Copies the source rectangle directly to the destination rectangle. - - - - - Combines the colors of the source and destination rectangles by using the Boolean OR operator. - - - - - Combines the colors of the source and destination rectangles by using the Boolean AND operator. - - - - - Combines the colors of the source and destination rectangles by using the Boolean XOR operator. - - - - - Combines the inverted colors of the destination rectangle with the colors of the source rectangle - by using the Boolean AND operator. - - - - - Copies the inverted source rectangle to the destination. - - - - - Combines the colors of the source and destination rectangles - by using the Boolean OR operator and then inverts the resultant color. - - - - - Merges the colors of the source rectangle with the specified pattern - by using the Boolean AND operator. - - - - - Merges the colors of the inverted source rectangle with the colors of the destination rectangle - by using the Boolean OR operator. - - - - - Copies the specified pattern into the destination bitmap. - - - - - Combines the colors of the pattern with the colors of the inverted source rectangle by using the Boolean OR operator. - The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator. - - - - - Combines the colors of the specified pattern with the colors of the destination rectangle - by using the Boolean XOR operator. - - - - - Inverts the destination rectangle. - - - - - Fills the destination rectangle using the color associated with index 0 in the physical palette. - This color is black for the default physical palette. - - - - - Fills the destination rectangle using the color associated with index 1 in the physical palette. - This color is white for the default physical palette. - - - - - Combines the colors of the source and destination rectangles by using the Boolean AND operator. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Gdi Charset. - - - - - The class represents the graphics state data. - - - - - Represents the method that executes on a when a new page is created. - - The source of the event. - A that contains the event data. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class - - - - Provides data for event. - - - This event raises when adding the new to the . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Delegate. - Class. - Class. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object representing the page which is added in the document. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class. - - - - Gets the newly added page. - - A object representing the page which is added in the document. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class. - Class - Class - - - - Encapsulates a page template for all the pages in the document. - - - - //Create a PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Creates a new page and adds it as the last page of the document template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Bottom = footer; - //Save the document - doc.Save("Template.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Bottom = footer - doc.Save("Template.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - Left page template object. - - - - - Top page template object. - - - - - Right page template object. - - - - - Bottom page template object. - - - - - Even Left page template object. - - - - - Even Top page template object. - - - - - Even Right page template object. - - - - - Even Bottom page template object. - - - - - Odd Left page template object. - - - - - Odd Top page template object. - - - - - Odd Right page template object. - - - - - Odd Bottom page template object. - - - - - The collection of the stamp elements. - - - - - Initializes a new instance of the class. - - - - - Returns left template. - - Page where the template should be printed. - Returns left template. - - - - Returns top template. - - Page where the template should be printed. - Returns top template. - - - - Returns right template. - - Page where the template should be printed. - Returns right template. - - - - Returns bottom template. - - Page where the template should be printed. - Returns bottom template. - - - - Checks whether the page is even or odd. - - The page object. - True if the page is even, false otherwise. - - - - Checks a template element. - - The template element. - The type that should be assigned to the template element. - - The template element which passed the check. - - - - - Gets or sets a left page template. - - The to draw into the PDF page - - - - Gets or sets a top page template. - - The to draw into the PDF page - - - - Gets or sets a right page template. - - The to draw into the PDF page - - - - Gets or sets a bottom page template. - - The to draw into the PDF page - - - - Gets or sets a left page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a top page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a right page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a bottom page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a left page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a top page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a right page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a bottom page template using on the odd pages. - - The to draw into the PDF page - - - - Gets a collection of stamp elements. - - The ,a collection of stamps that are applied to the page templates. - - - - The class provides methods and properties to handle the collections of loaded PDF pages - - - - - Initializes a new instance of the class. - - The document. - The cross table. - - - - Creates a new page and adds it to the collection. - - The created page. - - - - Creates a new page of the specified size and adds it to the collection. - - The size of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The rotation of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The rotation of the new page. - The location of the new page. - The created page. - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - The destinations. - - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - - - - - Creates a new page and inserts it at the specified index. - - The index. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size. - - The index. - The size of the page. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size and margins. - - The index. - The size of the page. - The margins of the page. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size, margins and rotation angle - - The index. - The size of the page. - The margins of the page. - The rotation of the new page. - The created page. - - - - Removes the page at the given specified index. - - Index of the page. - - - - Removes the specified page. - - The page to be remove. - - - - Re arrange the Pages in the Loaded Document. - - The page sequence to arrange the pages. - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Rearrange the page by index - loadedDocument.Pages.ReArrange(new int[] {1, 0}); - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Rearrange the page by index - loadedDocument.Pages.ReArrange(New Integer() {1, 0}) - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - - - - Creates a new page and inserts it at the specified index with specified size,margins,rotation angle and orientation - - The index. - The size of the page. - The margins of the page. - The rotation of the new page. - The orientation of the new page. - The created page. - - - - Inserts loaded page into loaded document at specified index - - The index at which page to be inserted. - The page to be inserted. - - - - Gets the page. - - The page dictionary. - The loaded page. - - - - Updates number of leaf nodes of corresponding page tree nodes starting with . - - The parent dictionary - - - - Returns the index of the page. - - The page. - The index of the page. - This might be a time consuming operation. - - - - Gets the page by its index. - - The index. - The proper PdfPageBase instance. - - - - Determines whether a node is a leaf nide. - - The node. - - true if the specified node is a leaf node; otherwise, false. - - - - - Gets the node kids. - - The node. - The node kids array. - - - - Gets the node count. - - The node. - The number of the kids in the node. - - - - Gets the parent parent node. - - The index. - Index of the local. - if set to true zero index is a valid index. - - - - - Gets the parent parent node - Should be used only in GetPage method. - - The index. - Index of the local. - if set to true zero index is a valid index. - if set to true fetchs the page collection faster than native GetParent method. - - - - - Clears page cache. - - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Gets the number of sections present in the document - - - - - Get and set the Pdfloaded Document. - - - - - Gets the at the specified index. - - - - - Gets the number of pages presnt in the document - - - - - Gets the page cache. - - - - - Implements enumerator to the loaded page collection. - - - - - Initializes a new instance of the class. - - The . - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, - which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - Gets the current element in the collection. - - - The current element in the collection. - - The enumerator is positioned before the first element of the collection - or after the last element. - - - - The class provides methods and properties to handle the collections of . - - - - - Local variable to store the PageLabel Count. - - - - - Internal variable to store page Label. - - - - - Internal variable to store page Label Collection. - - - - - Add the to the collection - - - - - - Gets the number of from collection (Read only). - - The count. - - - - Gets the at the specified index (Read only). - - - - - - Gets the element. - - - - - - The abstract base class for all pages, Provides methods and properties to create PDF pages and its elements - - - - - Collection of the layers of the page. - - - - - Collection of the annotations of the page. - - - - - Index of the default layer. - - - - - Local variable to store the Font Names. - - - - - Local variable to store the Font Refences. - - - - - Local variable to store information about images. - - - - - Local variable to store page template. - - - - - Local variable to store if page updated. - - - - - Local variable to store annotation count in the page. - - - - - Internal variable to store layers count. - - - - - Internal variable to store combined length. - - - - - Internal variable to store image count for the page. - - - - - Internal variable to store if the page is imported. - - - - - Helps to lock creating template to page in multi threading - - - - - Internal variable to store tab order type for form fields - - - - - Local variable to store resource information - - - - - Local variable to store image information. - - - - - ArrayList to store the extracted images. - - - - - List to store the image information. - - - - - List to store image keys. - - - - - Stack to maintain the current matrix. - - - - - Clear the page resource and record collection - - - - - Initializes a new instance of the class. - - The page dictionary. - - - - Replace the Image at index's Position. - - index of an image - The New Replace image - - - //Load the PDF document - PdfLoadedDocument doc = new PdfLoadedDocument(@"input.pdf"); - //Create an image instance - PdfBitmap bmp = new PdfBitmap(@"Autumn Leaves.jpg"); - //Replace the first image in the page. - doc.Pages[0].ReplaceImage(0, bmp); - //Save the document - doc.Save("output.pdf"); - //Close the document - doc.Close(true); - - - 'Load the PDF document///Dim doc As New PdfLoadedDocument("input.pdf") - 'Create an image instance - Dim bmp As New PdfBitmap("Autumn Leaves.jpg") - 'Replace the first image in the page. - doc.Pages(0).ReplaceImage(0, bmp) - 'Save the document - doc.Save("output.pdf") - 'Close the document - doc.Close(True) - - - - - - Replace the Image at index's Position. - - index of an image - The New Replace image - - - - Replace the Paginated Image. - - Loaded Page - Image key name - New image Reference - Object index - The image is replaced or not - - - - Creates a template from page content and all annotation appearances. - - The created PdfTemplate. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load the page - PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage; - //Create the template from the page. - PdfTemplate template = loadedPage.CreateTemplate(); - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Set the document margin - document.PageSettings.SetMargins(2); - //Add the page - PdfPage page = document.Pages.Add(); - //Create the graphics - PdfGraphics graphics = page.Graphics; - //Draw the template - graphics.DrawPdfTemplate(template, PointF.Empty,new SizeF(page.Size.Width/2,page.Size.Height)); - //Save the new document. - document.Save("output.pdf"); - //Close the documents - loadedDocument.Close(true); - document.Close(true); - - - 'Load the existing PDF document. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load the page - Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage) - 'Create the template from the page. - Dim template As PdfTemplate = loadedPage.CreateTemplate() - 'Create a new PDF document - Dim document As New PdfDocument() - 'Set the document margin - document.PageSettings.SetMargins(2) - 'Add the page - Dim page As PdfPage = document.Pages.Add() - 'Create the graphics - Dim graphics As PdfGraphics = page.Graphics - 'Draw the template - graphics.DrawPdfTemplate(template, PointF.Empty, New SizeF(page.Size.Width \ 2, page.Size.Height)) - 'Save the new document. - document.Save("output.pdf") - 'Close the documents - loadedDocument.Close(True) - - - - - - Extracts text from the PDF Page. - - The Extracted Text. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load the first page. - PdfPageBase page = loadedDocument.Pages[0]; - //Extract text from first page. - string extractedText = page.ExtractText(); - //Close the document - loadedDocument.Close(true); - - - 'Load an existing PDF. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load the first page. - Dim page As PdfPageBase = loadedDocument.Pages(0) - 'Extract the text from first page. - Dim extractedText As String = page.ExtractText() - 'close the document. - loadedDocument.Close(True) - - - - - - Extracts text from the PDF Page based on its layout - - Extracts text based on the Layout of PDF Document if the parameter is set to true, else Extracts text normally. - The Extracted Text. - Extracting the text based on the layout may take additional processing time when compared to the normal extraction. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load first page. - PdfPageBase page = loadedDocument.Pages[0]; - //Extract text from first page. - string extractedTexts = page.ExtractText(true); - //close the document - loadedDocument.Close(true); - - - 'Load an existing PDF. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load first page. - Dim page As PdfPageBase = loadedDocument.Pages(0) - 'Extract text from first page. - Dim extractedTexts As String = page.ExtractText(True) - 'close the document - loadedDocument.Close(True) - - - - - - Extracts text along with its format from the PDF Page. - - Provides the text data collection - Returns the extracted text. - - - - Gets the Font from the Xobject. - - - - - Get the XObject font collection - - xobject resource dictionary - font collection dictionary - - - - Collects the Font. - - - - - Gets the XObject from the Resource dictionary - - Page resource - XObject - - - - Get the XObject form the resource dictionary. - - Resource dictionary - xobject - - - - Extracts images from the given PDF Page. - - Returns the extracted image as Image[]. - - - - Extract the Inner XObject Images. - - - - - - Extract the images from the PDF - - returns the List of images - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load first page. - PdfPageBase pageBase = loadedDocument.Pages[0]; - //Extract images from first page. - Image[] extractedImages = pageBase.ExtractImages(); - //close the document - loadedDocument.Close(true); - - - 'Load an existing PDF - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load first page. - Dim pageBase As PdfPageBase = loadedDocument.Pages(0) - 'Extract images from first page. - Dim extractedImages As Image() = pageBase.ExtractImages() - 'close the document. - loadedDocument.Close(True) - - - - - - Gets the resources and modifies the page dictionary. - - Pdf resources. - - - - Sets the resources. - - The resources object. - - - - Gets the content of the page in form of a PDF template. - - A read-only PdfTemplate object that represents the content of the page - (w/o annotations and other interactive elements). - - - - Re-Initialize page contents references. - - /// Returns the array of re-initialized page contents - - - - Checks the type of External object - - /// Returns the initialized page XObject reference - - - - Re-Initialize External form object references - - - - - Checks the Optical content and re-initialize the references - - - re-initialized Optical content - - - - Re-initialize image External object references - - - - - - Re-Initialize indirect reference for page resources. - - /// Returns the initialized page resources - - - - Checks the references of Page shading and re-initialize it. - - PageShading dictionary - - - - Re-Initialize the page annotation references - - Acroform dictionary - - - - Checks the annotation appearance and re-initialize the references - - The Appearance dictionary - - - - Re-Initialize the acroform references. - - AcroForm dictionary - - - - Re-Initialize thumbnail data references - - - - - Re-initialize the ColorSpace references. - - The ColorSpace dictionary - - - - Re-initialize the page pattern references - - pattern dictionary - - - - Checks the font internals to re-initialize the reference - - The font dictionary - - - - Re-initialize font descriptor reference - - Font descriptor dictionary - re-initialized font descriptor - - - - Re-initialize the external graphics state references. - - External graphics state dictionary - Returns the initialized graphics state reference - - - - Re-Initialize ExternalObject resources - - External object's resource dictionary - - - - Gets the page orientation. - - The orientation of the page. - - - - Clears PdfPageBase. - - - - - Imports all annotations from a page. - - The loaded document. - The page. - The destination list containing the destinations from annotations. - - - - Imports all annotations from a page. - - The loaded document. - The page. - - - - Gets the destination. - - The loaded document. - The annotation. - The destination dictionary. - - - - Gets the annotations array. - - The array of the annotations. - - - - Returns number of annotations in the page. - - - - - - Gets the page rotation. - - The rotation of the page. - - - - Draws the annotation templates. - - The graphics. - - - - Normalizes the annotation location. - - The location. - The graphics. - The annotation template. - The normalized location. - Annotation location treats low left page corner as coordinates origin. - However, graphics translate the origin to the top left corner. This method makes - location relative to the top left page corner. - - - - Gets the annotation location. - - The annotation dictionary. - The annotation location. - - - - Gets the size of the annotation. - - The annotation dictionary. - The size of the annotation. - - - - Gets the size of the interactive element. - - The dictionary. - Name of the property containing size rectangle (e.g. Rect, BBox). - The size of the annotation. - - - - Gets the annotation template. - - The annotation. - The annotation template. - - - - Gets the information about the extracted image from the PDF page - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Load PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); - //Gets ImageInfo from the first page. - PdfImageInfo[] imageInfo = document.Pages[0].ImagesInfo; - //Gets the Image Boundary location. - RectangleF imageBounds = imageInfo[0].Bounds; - //Gets the Image. - Image image = imageInfo[0].Image; - //Gets the Image index. - int imageIndex = imageInfo[0].Index; - //Closing the PDF document. - document.Close(true); - - - 'Load PDF document. - Dim document As New PdfLoadedDocument("Input.pdf") - 'Gets ImageInfo from the first page. - Dim imageInfo As PdfImageInfo() = document.Pages(0).ImagesInfo - 'Gets the Image Boundary location. - Dim imageBounds As RectangleF = imageInfo(0).Bounds - 'Gets the Image. - Dim image As Image = imageInfo(0).Image - 'Gets the Image index. - Dim imageIndex As Integer = imageInfo(0).Index - 'Closing the PDF document. - document.Close(True) - - - Class - Class - - - - Gets the graphics of the . - - - The that represents a graphics of the page. - - /// - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a PDF page - PdfPage page = document.Pages.Add(); - //Get graphics - PdfGraphics graphics = page.Graphics; - //Draw a rectangle - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 200)); - //Save and close the document - document.Save("output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a PDF page - Dim page As PdfPage = document.Pages.Add() - 'Get graphics - Dim graphics As PdfGraphics = page.Graphics - 'Draw a rectangle - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 200)) - 'Save and close the document - document.Save("output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets if a page is imported. - - - - - Gets the collection of the page's layers (Read only). - - - The that represents the page's layers - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add page to the document - PdfPage page=document.Pages.Add(); - //Get the page layer - PdfPageLayerCollection angle = page.Layers; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add page to the document - Dim page As PdfPage = document.Pages.Add() - 'Get the page layer - Dim angle As PdfPageLayerCollection = page.Layers - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - Class - - - - Gets the collection of the page's annotations (Read only). - - - The that represents the page's annotations - - - - //Load the document - PdfLoadedDocument lDoc = new PdfLoadedDocument("inputAnnotation.pdf"); - //get the first page from the document - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document - lDoc.Save("sample.pdf"); - lDoc.Close(true); - - - 'Load the document - Dim lDoc As New PdfLoadedDocument("inputAnnotation.pdf") - 'Get the first page from the document - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collections - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document - lDoc.Save("sample.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets or sets the tab order type for form fields - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual; - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(page, "Hello"); - //Set field tab index as 3. - field.TabIndex = 3; - //Set field bounds. - field.Bounds = new RectangleF(0, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field1 = new PdfTextBoxField(page, "Hello1"); - //Set field tab index as 2. - field.TabIndex = 2; - //Set field bounds. - field1.Bounds = new RectangleF(200, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field2 = new PdfTextBoxField(page, "Hello2"); - //Set field tab index as 1. - field.TabIndex = 1; - //Set field bounds. - field2.Bounds = new RectangleF(0, 50, 100, 30); - //Create new text box field. - PdfTextBoxField field3 = new PdfTextBoxField(page, "Hello3"); - //Set field tab index as 0. - field.TabIndex = 0; - //Set field bounds. - field3.Bounds = new RectangleF(200, 50, 100, 30); - //Adds the form field to the document. - document.Form.Fields.Add(field); - document.Form.Fields.Add(field1); - document.Form.Fields.Add(field2); - document.Form.Fields.Add(field3); - //Save the pdf document. - document.Save("TabOrder.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual - 'Create new text box field. - Dim field As PdfTextBoxField = New PdfTextBoxField(page, "Hello") - 'Set field tab index as 3. - field.TabIndex = 3 - 'Set field bounds. - field.Bounds = New RectangleF(0, 0, 100, 30) - 'Create new text box field. - Dim field1 As PdfTextBoxField = New PdfTextBoxField(page, "Hello1") - 'Set field tab index as 2. - field.TabIndex = 2 - 'Set field bounds. - field1.Bounds = New RectangleF(200, 0, 100, 30) - 'Create new text box field. - Dim field2 As PdfTextBoxField = New PdfTextBoxField(page, "Hello2") - 'Set field tab index as 1. - field.TabIndex = 1 - 'Set field bounds. - field2.Bounds = New RectangleF(0, 50, 100, 30) - 'Create new text box field. - Dim field3 As PdfTextBoxField = New PdfTextBoxField(page, "Hello3") - 'Set field tab index as 0. - field.TabIndex = 0 - 'Set field bounds. - field3.Bounds = New RectangleF(200, 50, 100, 30) - 'Adds the form field to the document. - document.Form.Fields.Add(field) - document.Form.Fields.Add(field1) - document.Form.Fields.Add(field2) - document.Form.Fields.Add(field3) - 'Save document to disk. - document.Save("TabOrder.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Namespace - - - - Gets or sets index of the default layer. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(350, 300)); - //Add new page. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16); - //Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, new PointF(150, 10)); - //Add the first layer - page.Layers.Add(); - //Get default layer graphics. - PdfGraphics graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance for PDF pen. - PdfPen pen = new PdfPen(Color.Red, 50); - RectangleF rect = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Add another layer on the page - page.Layers.Add(); - //Increment the layer - page.DefaultLayerIndex += 1; - graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 180); - graphics.SkewTransform(0, 50); - //Draw another set of elements - pen = new PdfPen(Color.Red, 50); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Save the pdf document. - document.Save("Layer.pdf"); - //Close the document. - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(350, 300)) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 16) - 'Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, New PointF(150, 10)) - 'Add the first layer - page.Layers.Add() - 'Get default layer graphics. - Dim graphics As PdfGraphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance for PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Red, 50) - Dim rect As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Add another layer on the page - page.Layers.Add() - 'Increment the layer - page.DefaultLayerIndex += 1 - graphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 180) - graphics.SkewTransform(0, 50) - 'Draw another set of elements - pen = New PdfPen(Color.Red, 50) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Save and close the document. - document.Save("Layer.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the default layer of the page (Read only). - - - The of the Page - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(350, 300)); - //Add new page. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16); - //Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, new PointF(150, 10)); - //Add the first layer - page.Layers.Add(); - //Get default layer graphics. - PdfGraphics graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance for PDF pen. - PdfPen pen = new PdfPen(Color.Red, 50); - RectangleF rect = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Add another layer on the page - page.Layers.Add(); - //Increment the layer - page.DefaultLayerIndex += 1; - graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 180); - graphics.SkewTransform(0, 50); - //Draw another set of elements - pen = new PdfPen(Color.Red, 50); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Save the pdf document. - document.Save("Layer.pdf"); - //Close the document. - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(350, 300)) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 16) - 'Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, New PointF(150, 10)) - 'Add the first layer - page.Layers.Add() - 'Get default layer graphics. - Dim graphics As PdfGraphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance for PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Red, 50) - Dim rect As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Add another layer on the page - page.Layers.Add() - 'Increment the layer - page.DefaultLayerIndex += 1 - graphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 180) - graphics.SkewTransform(0, 50) - 'Draw another set of elements - pen = New PdfPen(Color.Red, 50) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Save and close the document. - document.Save("Layer.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the size of the page (Read only). - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - //Get size of first page - SizeF size = ldoc.Pages[0].Size; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Get size of first page - Dim size As SizeF = ldoc.Pages(0).Size - 'Save and close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - Class - - - - Gets the origin of the page - - - - - Gets array of page's content. - - - - - Gets the page dictionary. - - - - - Gets the PDF page rotation (Read only). - - - The PdfPageRotateAngle that represents the page rotation - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get rotation - PdfPageRotateAngle angle = page.Rotation; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get rotation - Dim angle As PdfPageRotateAngle = page.Rotation - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Gets the page orientation. - - - - - Returns the page template. - - - - - Gets the page fields count. - - - - - Return true, when the page contains colored content. - - - - - Gets the wrapped element. - - - - - Represents a text information - - - - - Gets the text - - - - - Gets the bounds of the text - - - - - Gets the font name of the text. - - - - - Gets the font size of the text. - - - - - Gets the font style of the text. - - - - - Gets the font color of the text. - - - - - - - - The used to identify each page visually on the screen or in print. - - Page labels and page indices need not coincide: the indices are fixed, - running consecutively through the document starting from 0 for the first page, - but the labels can be specified in any way that is appropriate for the particular document. - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Converts style to a string. - - The style. - The PDF name value representing the specified style. - - - - Converts string to numbering style. - - The PDF name of the style. - The converted numbering style. - - - - Gets or sets the numbering style to be used for the numeric portion of each page label. - - The specifies numbering style of page labels. - - - - Gets or sets the label prefix for page labels. - - - - - Gets or sets the value of the numeric portion for the first page label in the range - - The number must be greater than or equal to 1 - - - - Gets the element. - - - - - - Represents parameters how to display the page in the presentation mode. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition - Dim transition As New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - doc.PageSettings.Transition = transition - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - - - - Internal variable to store dictionary. - - - - - Internal variable to store transition style. - - - - - Internal value to store transtion duration. - - - - - Internal variable to store transition dimension. - - - - - Internal variable to store transition motion. - - - - - Internal variable to store transition motion. - - - - - Internal variable to store scale. - - - - - Internal variable to store page duration. - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Converts transition motion to string. - - The motion. - - - - - Converts transition dimension to string. - - The dimension. - - - - - Converts style to string. - - The style. - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Gets or sets the transition style to use when moving to this page from another - during a presentation. - - The , handles the various transition styles - - - - Gets or sets the duration of the transition effect, in seconds. - - The transition duration. - - - - Gets or sets the dimension in which the specified transition effect occurs. - - The handles the dimensions . - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the the direction of motion for the specified transition effect. - - The handles the various transition motions - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - The direction in which the specified transition effect moves, expressed in degrees counter - clockwise starting from a left-to-right direction. (This differs from the page object�s - Rotate property, which is measured clockwise from the top.) - - The handles the various directions - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the starting or ending scale at which the changes are drawn. - If Motion property specifies an inward transition, the scale of the changes drawn progresses - from Scale to 1.0 over the course of the transition. If Motion specifies an outward - transition, the scale of the changes drawn progresses from 1.0 to Scale over the course - of the transition. - - - This property has effect for Fly transition style only. - - The scale. - - - - Gets or sets The page�s display duration (also called its advance timing): the maximum - length of time, in seconds, that the page is displayed during presentations before - the viewer application automatically advances to the next page. By default, - the viewer does not advance automatically. - - The page duration. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets the element. - - - - - - Represents the collection of pages in a . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page. - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The section. - - - - Creates a new page and adds it into the collection. - - The new page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Adds a page into collection. - - The page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a new pdf page. - PdfPage page = new PdfPage(); - //Add the page into section. - document.Sections[0].Pages.Add(page); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a new pdf page. - Dim page As New PdfPage() - 'Add the page into section. - document.Sections(0).Pages.Add(page) - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Inserts a page at the specified index. - - The index of the page to be added. - The page to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = new PdfPage(); - //Insert a page at specified index. - document.Sections[0].Pages.Insert(0, page); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As New PdfPage() - 'Insert a page at specified index. - document.Sections(0).Pages.Insert(0, page) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Returns the index of the specified page. - - The - Index of the page if the collection contains the specified page; otherwise, -1. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = new PdfPage(); - //Get index of the page from Pdf section page collections. - int index = document.Sections[0].Pages.IndexOf(page); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As PdfPage = New PdfPage() - 'Get index of the page from Pdf section page collections. - Dim index As Integer = document.Sections(0).Pages.IndexOf(page) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Determines whether the specified page is within the collection. - - The - - true if the collection contains the specified page; otherwise, false. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add page to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add page to the section1. - PdfPage page1 = section1.Pages.Add(); - //check whether the specified page is in collection. - bool isExists = document.Sections[0].Pages.Contains(page1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add page to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add page to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'check whether the specified page is in collection. - Dim isExists As Boolean = document.Sections(0).Pages.Contains(page1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Removes the specified page from collection. - - The page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = section.Pages.Add(); - //Remove the page from Pdf section page collections. - document.Sections[0].Pages.Remove(page); - //Get page count, it will be one - int count = document.Sections[0].Pages.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As PdfPage = section.Pages.Add() - 'Remove the page from Pdf section page collections. - document.Sections(0).Pages.Remove(page) - 'Get page count, it will be one - Dim count As Integer = document.Sections(0).Pages.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Removes a page at the specified index. - - The index of the page to be removed. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Remove the page at specified index. - document.Sections[0].Pages.RemoveAt(0); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Remove the page at specified index. - document.Sections(0).Pages.RemoveAt(0) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Clears this collection. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add first page to the section. - PdfPage page = section.Pages.Add(); - //Add second page to the section. - PdfPage page1 = section.Pages.Add(); - //Clear all the pages from first section of pdf document. - document.Sections[0].Pages.Clear(); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add first page to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add second page to the section. - Dim page1 As PdfPage = section.Pages.Add() - 'Clear all the pages from first section of pdf document. - document.Sections(0).Pages.Clear() - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object - that can be used to iterate through the collection. - - - - - Gets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page. - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the count of the pages. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the page count in a section. - int count = document.Sections[0].Pages.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the page count in a section. - Dim count As Integer = document.Sections(0).Pages.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Represents a page template for all the pages in the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Left settings. - - - - - Top settings. - - - - - Right settings. - - - - - Bottom settings. - - - - - Other templates settings - - - - - Creates a new object. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Left page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentLeftTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentLeftTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Top page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Right page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentRightTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentRightTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Bottom page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentBottomTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentBottomTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether the parent stamp elements should be used or not. - - /// - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentStamps = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentStamps = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - A collection of stamps that are applied to the page templates. - - - It is used only on PdfPageTemplateElement. - - - - - Creates a new instance of the class. - - - - - Adds a stamp element to the collection. - - The used here to create stamp element. - The index of the stamp element. - - - - Creates a stamp element and adds it to the collection. - - X co-ordinate of the stamp. - Y co-ordinate of the stamp. - Width of the stamp. - Height of the stamp. - The created stamp element. - - - - Checks whether the stamp element exists in the collection. - - The used here to create stamp element. - True - if stamp element exists in the collection, False otherwise. - - - - Inserts a stamp element to the collection at the specified position. - - The index of the stamp in the collection. - The . - - - - Removes the stamp element from the collection. - - The . - - - - Removes a stamp element from the specified position in the collection. - - The index of the stamp in the collection. - - - - Clears the collection. - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Gets a stamp element by its index. - - The describes a page template object - - - - PdfPageTemplate enumerator. - - - - - Stamps collection - - - - - Current index of the enumerator. - - - - - Initializes a new instance of the class. - - The stanps collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The used to create layers in PDF document. - Layers refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers - - - - - Parent page of the layer. - - - - - Graphics context of the layer. - - - - - Content of the object. - - - - - Graphics state of the Graphics. - - - - - Indicates whether the layer should clip page template dimensions or not. - - - - - Indicates if the graphics stream was saved. - - - - - Local Variable to store the colorspace of the document. - - - - - Local Variable to store the layer id - - - - - Local Variable to store the name - - - - - Local Variable to set visiblity - - - - - Stores the print Option dictionary - - - - - Stores the usage dictionary - - - - - Indicates printing state - - - - - Indicates the current layer have end state or not. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store reference holder. - - - - - Internal variable to store layer - - - - - Indicates document of layer - - - - - Indicates to store list of pages used for same layer - - - - - Indicates list of graphics used by layer - - - - - Indicates collection of layer - - - - - Indicates if Sublayer is present. - - - - - indicates the poisition of sublayer - - - - - indicates variable to store sublayer of PDF layer - - - - - Indicates Lock State - - - - - internal variable to store locked array - - - - - Initializes a new instance of the - - - - - Initializes Graphics context of the layer. - - The page. - - - - Clears PdfLayer. - - - - - set visibilty of the layer - - layer visibility - - - - Set lock state for layer - - - - - - Set PrintState for layer - - - - - Catches BeforeSave of the content event. - - Sender of the event. - event arguments. - - - - Catches BeforeSave of the content event - - Sender of the event - event arguments - - - - Gets or sets the Reference holder. - - The reference holder. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Get or set the Colorspace. - - - - - Gets or sets page of the layer. - - - - - Gets or sets the document of layer - - - - - Gets or sets the layerId - - - - - Gets or sets the layer - - - - - Gets or sets the name of the layer - - - - - Gets or sets the visible of the layer - - - - - Gets Graphics context of the layer, used to draw various graphical content on layer. - - The used to draw various graphical content - - - - Gets or sets printing state of the layer - - - - - Gets the collection of child - - The used to handle collection of - - - - Get or set lock state of layer - - - - - Gets the wrapped element. - - - - - The class provides methods and properties to handle the collections of - - - - - Indicates if Sublayer is present. - - - - - Stores the optional content dictionary - - - - - Indicates if the loaded layers have resource dictionary. - - - - - Helps to lock Adding layers to page in multi threading - - - - - Indicates document to create layer in PDF document - - - - - Indicates sublayer of layers in PDF layer - - - - - Indicates a dictionary to store all layer in PDF document - - - - - Initializes a new instance of the class - - - - - Initializes a new instance of the class - - - - - - - Initializes a new instance of the class - - - - - - Creates a new with name and Boolean flag to set the visibility of layer, - and adds it to the end of the collection. - - Layer Name. - Layer Visibility. - Created . - - - - Creates a new with name and adds it to the end of the collection. - - Layer Name. - Created . - - - - Add layer in list collection of PDFLayer - - - index of created layer - - - - Creates a Optional Content Properties and adds it to Catalog. - - Layer. - - - - Creates Usage Dictionary and adds it to OCG dictionary - - - - - - - Creates a pdf layer from loaded PDF document - - - - - - Move into the collection at specified index - - Index of the layer. - object. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Removes layer from the collection of Layer. - - object. - - - - Removes layer from the collection and remove graphical content, If removeGraphicalContent is true. - - object. - - - - Removes from the collection by its name. - If document have muliple layer with same name, it removes all PdfLayers from document. - - Name of the layer. - - - - Remove layer from its collection by its name and remove graphical content, If removeGraphicalContent is true - - - - - - - Removes layer by its index from collections - - Index of the layer. - - - - Removes layer by its index from collections and remove graphical content if removeGraphicalContent is true - - Index of the layer. - - - - Checks whether collection contains . - - object. - True - if collection contains layer, False otherwise. - - - - Checks whether collection contains by layer name. - - - True - if collection contains layer, False otherwise. - - - - Returns index of the in the collection if exists, -1 otherwise. - - object. - Returns index of the layer in the collection if exists, -1 otherwise. - - - - Clears layers from the . - - - - - Remove layer from document and remove graphics if remove content is true - - - - - - - Registers layer at specified index in layer collection - - Index of the layer in the collection. - Pdf layer. - - - - Read content stream from Page layer and set to document layer - - - - - Parsing layer - - - - - - Check and set layer visible - - - - - Check and set layer lock - - - - - Remove layer reference from OCGroup - - - - - - - Remove layer reference from usage application - - - - - - - Remove layer reference from Order - - - - - - - Remove layer reference from On and Off - - - - - - - - Remove layer reference from locked - - - - - - - Remove graphics content for PDF layer - - - - - Remove graphics content for Loaded PDF layer - - - - - Gets or sets by its index from - - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the title. - - The title of the bookmark. - - - - Gets the color. - - The color of the bookmark. - - - - Gets the text style. - - The style of bookmark text. - - - - Gets the next. - - The next bookmark to this bookmark. - - - - Gets the previos. - - The previous bookmark to this bookmark. - - - - Sets the color. - - The color. - - - - Sets the text style. - - The value. - - - - Gets the destination. - - The destination of bookmark. - - - - - - Gets or sets the outline title. - - The string value which contains title of the bookmark.> - The outline title is the text, - which appears in the outline tree as a tree node. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and set the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and set the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class - Class - - - - - - Gets or sets the next outline object. - - The null value means that the object is the last outline. - - - - Gets or sets the previous outline object. - - The null value means that the object is the first outline. - - - - Gets the parent outline base. - - - - - Gets the sub items. - - - - - The class provides methods and properties to handle the collection of . - - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - //Set the sound annotation border. - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Gets the annotation collection. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Set the sound annotation border. - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - - Error constant message. - - - - - Error constant message. - - - - - Parent page of the collection. - - - - - Array of the annotations. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = new PdfAnnotationCollection(); - annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection() - annotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Initializes a new instance of the PdfAnnotationCollection class with the specified page. - - Page which collection is created for. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = new PdfAnnotationCollection(page); - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection(page) - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Adds a new annotation to the collection. - - The new annotation to be added to the collection. - The position of the annotation in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Removes all the annotations from the collection. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Clear the annotation collection. - annotationCollection.Clear(); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Clear the annotation collection. - annotationCollection.Clear() - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Determines whether a specified annotation is in the annotation collection. - - The annotation to search for. - True, if annotation is contained in collection. Otherwise - false. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - //Add the sound annotation to annotation collection. - annotationCollection.Add(soundAnnotation); - bool exist = annotationCollection.Contains(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - 'Add the sound annotation to annotation collection. - annotationCollection.Add(soundAnnotation) - Dim exist As Boolean = annotationCollection.Contains(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Searches the index of the specified annotation from the collection. - - The annotation to be searched. - Index of the element in the collection, if exists, or -1 if the element does not exist in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Get the index - int index = annotationCollection.IndexOf(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Get the index - Dim index As Integer = annotationCollection.IndexOf(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Inserts an annotation to the collection at the specified index. - - The index where to insert the element. - The annotation to be inserted in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Insert(0, soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Insert(0, soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Removes the annotation at the specified index. - - The index of the element to be removed. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Removes a sound annotation at specified index. - annotationCollection.RemoveAt(0); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Removes a sound annotation at specified index. - annotationCollection.RemoveAt(0) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class. - Class. - - - - Removes the specified annotation from the collection. - - The annotation to be removed. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Remove a sound annotation. - annotationCollection.Remove(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Remove a sound annotation. - annotationCollection.Remove(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - prints the specified annotation. - - The annotation to be printed. - - - - Adds annotation to collection. - - Annotation to be added to collection. - Position of the annotation in collection. - - - - Inserts annotation to the collection at the specified position. - - Position. - Annotation object. - - - - Removes annotation from collection. - - Annotation to be removed. - - - - Removes item from collection at the specified index. - - Index of element to be removed. - - - - Adds a Annotation to collection. - - The Annotation. - - - - - Inserts a annotation into collection. - - The index. - The annotation. - - - - Clears the collection. - - - - - Removes the annotation at the specified position. - - The index. - - - - Removes the annotation. - - - - - - Gets the object at the specified index. Read-Only. - - The specifies the attachment at the specified position. - The index value of the annotation in the collection. - The annotation object at the specified position. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the annotations array. - - The annotations. - - - - Gets PDF primitive representing this object. - - - - - Loaded page, wich collection belongs to. - - - - - Indicates annotation is flatten or not. - - - - - Initializes a new instance of the class. - - The page. - - - - NameChanged evant handler. - - New Name of the annotation. - - - - Adds annotation to the collection. - - Annotation to be added to collection. - Position of the annotation in collection. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection = document.Pages[0].Annotations; - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - annotationCollection.Add(uriAnnotation); - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As PdfUriAnnotation = New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set the Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - annotationCollection.Add(uriAnnotation) - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Adds a annotation to collection. - - The annotation. - - - - - Gets the new name of the annotation. - - The name. - The annotation name. - - - - Check whether the annotation with the same name already exists. - - The name. - - true if there are no annotation with the same name within the collection; - otherwise false. - - - - - Gets the index of the annotation. - - The name. - The index of the annotation. - - - - Gets the annotation. - - The index. - The created annotation. - - - - Gets the type of the annotation. - - The name. - The dictionary. - The cross table. - The annotation type. - - - - Create file remotegoto link annotation - - - - - - - The created file remotegoto link annotation - - - - Creates the text web link annotation. - - The dictionary. - The cross table. - The created file link annotation. - - - - Creates the file link annotation. - - The dictionary. - The cross table. - The created file link annotation. - - - - Creates the document link annotation. - - The dictionary. - The cross table. - The created widget annotation. - - - - Creates the widget annotation. - - - - - The created the widget annotation. - - - - Creates the Ink annotation. - - - - - Created the Ink annotation. - - - - Creates the watermark annotation. - - The dictionary. - The cross table. - The created watermark annotation. - - - - Creates the Trap Network Annotation. - - The dictionary. - The cross table. - The created Trap Network Annotation. - - - - Creates the Text Markup Annotation. - - The dictionary. - The cross table. - The created Text Markup Annotation. - - - - Creates the Text Annotation. - - The dictionary. - The cross table. - The created Text Annotation. - - - - Creates the Square and Circle Annotation. - - The dictionary. - The cross table. - The created Square and Circle Annotation. - - - - Creates the Sound Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created Sound Annotation. - - - - Creates the Screen Annotation. - - The dictionary. - The cross table. - The created Screen Annotation. - - - - Creates the Rubber Stamp Annotation. - - The dictionary. - The cross table. - The created Rubber Stamp Annotation. - - - - Creates the Printer Mark Annotation. - - The dictionary. - The cross table. - The created Printer Mark Annotation. - - - - Creates the Popup Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Popup Annotation. - - - - Creates the Polygon and Polyline Annotation. - - The dictionary. - The cross table. - The created Polygon and Polyline Annotation. - - - - Creates the Movie Annotation. - - The dictionary. - The cross table. - The created Movie Annotation. - - - - Creates the Markup Annotation. - - The dictionary. - The cross table. - The RectangleF. - The created Markup Annotation. - - - - Creates the Lnk Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created Lnk Annotation. - - - - Creates the Link Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Link Annotation. - - - - Creates the Line Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Line Annotation. - - - - Creates the Circle Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Circle Annotation. - - - - Creates the Ellipse Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Ellipse Annotation. - - - - Creates the Square Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Square Annotation. - - - - Creates the Rectangle Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Rectangle Annotation. - - - - Creates the Polygon Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Polygon Annotation. - - - - Creates the PolyLine Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created PolyLine Annotation. - - - - Creates the Free Text Annotation. - - The dictionary. - The cross table. - The created Free Text Annotation. - - - - Creates the File Attachment Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created File Attachment Annotation. - - - - Creates the Caret Annotation. - - The dictionary. - The cross table. - The created Caret Annotation. - - - - Creates the Annotation States. - - The dictionary. - The cross table. - The created Annotation States. - - - - Inserts a annotation into collection. - - The index. - The annotation. - - - - Clears the collection. - - - - - Removes the annotation at the specified position. - - The index. - - - - Removes the annotation from collection. - - The annotation. - - - - Find the annotation from collection. - - The annotation. - - - - Gets the at the specified index. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the PDF sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - //Set the sound annotation border - soundAnnotation.Border.Width = 4; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation from loaded document. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Set the sound annotation border. - soundAnnotation.Border.Width = 4 - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets the using specified annotation name. - - The specified annotation name. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the pfd sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection["SoundAnnotation"] as PdfLoadedSoundAnnotation; - //Set the sound annotation border - soundAnnotation.Border.Width = 4; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the pfd sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection("SoundAnnotation") - 'Set the sound annotation border - soundAnnotation.Border.Width = 4 - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets and sets the where the annotation is present. - - The of the existing PDF document - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the PDF sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - 'Get the sound PDF loaded page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Get the PDF loaded page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the boolean flag to flatten the annotations. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Set flatten. - annotationCollection.Flatten = true; - //Save the document. - document.Save("output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Set flatten. - annotationCollection.Flatten = True - 'Save the document. - document.Save("output.pdf") - document.Close(True) - - - - - - The represents the attachment annotation loaded from the existing PDF document, it provides methods and properties to modify the attachment. - - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Get the attachment annotation border. - PdfAnnotationBorder border = attchmentAnnotation.Border; - //Save the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = document.Pages(1).Annotations(3) as PdfLoadedAttachmentAnnotation - 'Get the annotation flags - Dim flag As PdfAnnotationFlags = attchmentAnnotation.AnnotationFlags - 'Get the attachment annotation border. - Dim border As PdfAnnotationBorder = attchmentAnnotation.Border - 'Save the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the Icon - - - - - Gets or sets the icon of the attachment annotation. - - The used to set the icon to the attachment annotation - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - attchmentAnnotation.Icon=PdfAttachmentIcon.PushPin; - //Save the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = document.Pages(1).Annotations(3) as PdfLoadedAttachmentAnnotation - attchmentAnnotation.Icon=PdfAttachmentIcon.PushPin - 'Save the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - The name of the file to be attached. - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the attached file name - string fileName = attchmentAnnotation.FileName; - //Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = TryCast(document.Pages(1).Annotations(3), PdfLoadedAttachmentAnnotation) - 'Get the attached file name - Dim fileName As String = attchmentAnnotation.FileName - 'Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - Get the data bytes from the attached file. - - The array of data bytes of the attached file - /// - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the attached file name - string fileName = attchmentAnnotation.FileName; - //Get the array of data bytes of the attached file. - byte[] data = attchmentAnnotation.Data; - //Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = TryCast(document.Pages(1).Annotations(3), PdfLoadedAttachmentAnnotation) - 'Get the attached file name - Dim fileName As String = attchmentAnnotation.FileName - 'Get the array of data bytes of the attached file. - Dim data As Byte() = attchmentAnnotation.Data - 'Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded document link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags; - //Sets the PDF destination. - documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10)); - //Gets the document link annotation border. - PdfAnnotationBorder border = documentLinkAnnotation.Border; - //Gets the document link annotation bounds. - RectangleF rectangle = documentLinkAnnotation.Bounds; - //Gets the document link annotation color. - PdfColor color = documentLinkAnnotation.Color; - //Gets the document link annotation location. - PointF point = documentLinkAnnotation.Location; - //Gets the document link annotation size. - SizeF size = documentLinkAnnotation.Size; - //Gets the document link annotation text. - string text = documentLinkAnnotation.Text; - //Save the document. - document.Save("documentLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation - 'Sets the destination. - documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10)); - 'Gets the annotation flags - Dim flag As PdfAnnotationFlags = documentLinkAnnotation.AnnotationFlags - 'Gets the document link annotation border. - Dim border As PdfAnnotationBorder = documentLinkAnnotation.Border - 'Gets the document link annotation bounds. - Dim rectangle As RectangleF = documentLinkAnnotation.Bounds - 'Gets the document link annotation color. - Dim color As PdfColor = documentLinkAnnotation.Color - 'Gets the document link annotation location. - Dim point As PointF = documentLinkAnnotation.Location - 'Gets the document link annotation size. - Dim size As SizeF = documentLinkAnnotation.Size - 'Gets the document link annotation text. - Dim text As string = documentLinkAnnotation.Text - 'Save the document. - document.Save("documentLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Cross Table - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - - - - Gets the destination of the document link annotation - - The provides destination page and bounds - - - - Sets the destination of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags; - //Sets the destination. - documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10)); - //Save the document. - document.Save("documentLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation - 'Sets the destination. - documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10)); - 'Save the document. - document.Save("documentLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the loaded file link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - //Gets the file link annotation border. - PdfAnnotationBorder border = fileLinkAnnotation.Border; - //Gets the file link annotation bounds. - RectangleF rectangle = fileLinkAnnotation.Bounds; - //Gets the file link annotation bounds. - PdfColor color = fileLinkAnnotation.Color; - //Gets the file link annotation location. - PointF point = fileLinkAnnotation.Location; - //Gets the file link annotation size. - SizeF size = fileLinkAnnotation.Size; - //Gets the file link annotation text. - string text = fileLinkAnnotation.Text; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file name. - fileLinkAnnotation.FileName = "..\..\Data\Manual.txt" - 'Gets the annotation flags - Dim flag As PdfAnnotationFlags = fileLinkAnnotation.AnnotationFlags - 'Gets the file link annotation border. - Dim border As PdfAnnotationBorder = fileLinkAnnotation.Border - 'Gets the file link annotation bounds. - Dim rectangle As RectangleF = fileLinkAnnotation.Bounds - 'Gets the file link annotation bounds. - Dim color As PdfColor = fileLinkAnnotation.Color - 'Gets the file link annotation location. - Dim point As PointF = fileLinkAnnotation.Location - 'Gets the file link annotation size. - Dim size As SizeF = fileLinkAnnotation.Size - 'Gets the file link annotation text. - Dim text As string = fileLinkAnnotation.Text - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Interger array of destination - - - - - CrossTable - - - - - Action of the page - - - - - Destination array - - - - - Gets the filename. - - File name - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The File name - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The destination - The rectangle - The File name - - - - Gets the destination array - - integer destination array - - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - //Gets the file link annotation border. - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file name. - fileLinkAnnotation.FileName = "..\..\Data\Manual.txt" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the destination of the filelinkannotation. - - - - - Gets or sets the destination array of the annotation, the destination array contains page number and positions. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation linkAnnotation = lDoc.Pages[1].Annotations[2] as PdfLoadedFileLinkAnnotation; - //Assign DestinationArray[pagenumber,xaxis,yaxis] - int[] array = new int[3] { 2, 750, 0 }; - linkAnnotation.DestinationArray = array; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim linkAnnotation As PdfLoadedFileLinkAnnotation = lDoc.Pages(1).Annotations(2) as PdfLoadedFileLinkAnnotation - 'Assign DestinationArray[pagenumber,xaxis,yaxis] - Dim array As Integer() = New Integer(2) {2, 750, 0} - linkAnnotation.DestinationArray = array - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded document PdfFreeText annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing Page on document - PdfLoadedPage lPage = document.Pages[0] as PdfLoadedPage; - //load the annotation collection on this page - PdfLoadedAnnotationCollection collection = lPage.Annotations; - //Get the Annotation from the loaded page - PdfLoadedFreeTextAnnotation free = collection[0] as PdfLoadedFreeTextAnnotation; - //Get the Annotation position - RectangleF rectangle = free.Bounds; - //Set a new position - free.Bounds = new RectangleF(200, 100, 150, 50); - //Set Annotation Border - free.Border= new PdfAnnotationBorder(3f); - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing Page on document - Dim lPage As PdfLoadedPage = document.Pages(0) - 'load the annotation collection on this page - Dim collection As PdfLoadedAnnotationCollection = lPage.Annotations - 'Get the Annotation from the loaded page - Dim free As PdfLoadedFreeTextAnnotation = collection(0) - 'Get the Annotation position - Dim rectangle As RectangleF = free.Bounds - 'Set a new position - free.Bounds = new RectangleF(200, 100, 150, 50) - 'Set Annotation Border - free.Border= new PdfAnnotationBorder(3f) - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Saves an annotation. - - - - - //Get or set the Line Ending style for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the line ending style - PdfLineEndingStyle style = free.LineEndingStyle; - //Set the line ending style - free.LineEndingStyle = PdfLineEndingStyle.OpenArrow; - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the line ending style - Dim style As PdfLineEndingStyle = free.LineEndingStyle - 'Set the line ending style - free.LineEndingStyle = PdfLineEndingStyle.OpenArrow - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the MarkUp text for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the MarkUpText - string text= free.MarkUpText; - //Set the MarkUpText - free.MarkUpText = "This is Free Text Annotation"; - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the MarkUpText - Dim text As string = free.MarkUpText - 'Set the MarkUpText - free.MarkUpText = "This is Free Text Annotation" - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the Annotation Intent for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the PdfAnnotation Intent - PdfAnnotationIntent intent = free.AnnotationIntent; - //Set the PdfAnnotation Intent - free.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the PdfAnnotation Intent - Dim intent As PdfAnnotationIntent = free.AnnotationIntent - 'Set the PdfAnnotation Intent - free.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - //Get or set the Font for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the Font - PdfFont font = free.Font; - //Set the Font - free.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 15f); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the Font - Dim font As PdfFont = free.Font - 'Set the Font - free.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 15f) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - //Get or set the TextMarkupColor for the free text annotation - - The text markup color of the free text annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the TextMarkupColor - PdfColor markupColor = free.TextMarkupColor; - //Set the TextMarkupColor - free.TextMarkupColor = new PdfColor(Color.Red); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) as PdfLoadedFreeTextAnnotation - 'Get the TextMarkupColor - Dim markupColor As PdfColor = free.TextMarkupColor - 'Set the TextMarkupColor - free.TextMarkupColor = new PdfColor(Color.Red) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - //Get or set the CelloutLines for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the CelloutLines - PointF[] celloutLines = free.CalloutLines; - //Set the CelloutLines - free.CalloutLines = new PointF[] { new PointF(107.234f, 550.15f), new PointF(130.023f, 811.707f), new PointF(142.023f, 811.707f) }; - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) as PdfLoadedFreeTextAnnotation - 'Get the CelloutLines - Dim celloutLines As PointF() = free.CalloutLines - 'Set the CelloutLines - free.CalloutLines = New PointF() {New PointF(107.234F, 550.15F), New PointF(130.023F, 811.707F), New PointF(142.023F, 811.707F)} - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the BorderColor for the free text annotation - - The border color of the free text annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the BorderColor - PdfColor borderColor = free.BorderColor; - //Set the BorderColor - free.BorderColor = new PdfColor(Color.Blue); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the docuemnt - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the BorderColor - Dim borderColor As PdfColor = free.BorderColor - 'Set the BorderColor - free.BorderColor = new PdfColor(Color.Blue) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Represent Loaded ink annotation, Ink annotation represents freehand scribble comprising one or more disjoint paths. - - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - inkAnnotation.Color = new PdfColor(Color.Red); - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - inkAnnotation.Color = New PdfColor(Color.Red) - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Cross table - - - - - Indicate the path of the ink annotation - - - - - Indicate multiple path of the ink annotation - - - - - Internal variable to store Border Dash. - - - - - border width - - - - - Indicate the border Dictionary - - - - - Indicat the border style - - - - - Initializes a new instance of the class - - The Dictionary - The Crosstable - the Rectangle - - - - Get the Path of the Ink annotation - - the line InkList - - - - Get the Path collection of the Ink annotation - - the line InkList - - - - Get the border width - - The border width - - - - Get the border dtyle - - The Line border style - - - - get the Line style - - - The line Style - - - - Get the Dash array value - - The dashArray - - - - Saves an annotation. - - - - - Calculates control points for all the path points input given by Beizer spline curve control points calculation. - - - - - Calculates single control point for the vector input given. - - - - - - Gets or sets mutiple points of the InkList value. - - - - - Get or sets the border width of the ink annotation. - - The default value of border width is 1. - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - get or sets the border style of the ink annotation, default value is PdfLineBorderStyle.Solid - - The , provides various type of borders - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the value for dashed border of ink annotation. - - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Represents the loaded line annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - int[] points = new int[] { 100, 100, 200, 100 }; - //Create a new PDF line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.DashArray = 1; - lineBorder.BorderWidth =3; - lineBorder.DashArray = 8; - //Sets the line border. - lineAnnotation.LineBorder = lineBorder; - //Sets the line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Locked; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Blue); - lineAnnotation.BackColor = new PdfColor(Color.Red); - //Assign the leader line - lineAnnotation.LeaderExt = 20; - lineAnnotation.LeaderLine = 20; - lineAnnotation.Size = new SizeF(100, 200); - //Assign the line caption - lineAnnotation.LineCaption = true; - lineAnnotation.Text = "Syncfusion"; - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - Dim points As Integer() = { 100, 100, 200, 100 } - 'Create a new pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.DashArray = 1 - lineBorder.BorderWidth = 3 - lineBorder.DashArray = 8 - 'Sets the line border - lineAnnotation.LineBorder = lineBorder - 'Sets the line indent - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Locked - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Blue) - lineAnnotation.BackColor = New PdfColor(Color.Red) - 'Assign the leader line - lineAnnotation.LeaderExt = 20 - lineAnnotation.LeaderLine = 20 - lineAnnotation.Size = New SizeF(100, 200) - 'Assign the line caption - lineAnnotation.LineCaption = True - lineAnnotation.Text = "Syncfusion" - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Cross Table - - - - - Indicates the back color. - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the line intent of the annotation. - - The line intent. - - - - Gets line style of the annotation. - - The line style. - - - - Gets line style of the annotation. - - choice - The line style. - - - - Gets line style of the annotation. - - Type of line style - The line style. - - - - Get the inner line color - - - - - Gets back color of the annotation. - - The back color. - - - - Gets caption type of the annotation. - - The caption type. - - - - Gets caption type of the annotation. - - caption type - The caption type. - - - - Gets line caption of the annotation. - - The line caption. - - - - Gets leader line of the annotation. - - The leader line. - - - - Gets leader ext of the annotation. - - The leader ext. - - - - Gets line border of the annotation. - - The line border. - - - - Gets line points of the annotation. - - Line Points - The Line Points. - - - - Gets border style of the annotation. - - border style - The border style. - - - - - Saves an annotation . - - - - - Gets or sets the back color of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the line annotation back color. - lineAnnotation.BackColor = new PdfColor(Color.Red); - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the line annotation back color - lineAnnotation.BackColor = New PdfColor(Color.Red) - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the begin line style of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the caption type of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the end line style of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line ending style - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line ending style - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the inner line color of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Blue); - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Blue) - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the leader line of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the leader line. - lineAnnotation.LeaderLine = 20; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the leader line. - lineAnnotation.LeaderLine = 20 - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the leader ext of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the leader line - lineAnnotation.LeaderExt = 20; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the leader line - lineAnnotation.LeaderExt = 20 - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets the line border of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Create a new pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.DashArray = 1; - lineBorder.BorderWidth =3; - lineBorder.DashArray = 8; - lineAnnotation.LineBorder = lineBorder; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Create a new pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.DashArray = 1 - lineBorder.BorderWidth = 3 - lineBorder.DashArray = 8 - lineAnnotation.LineBorder = lineBorder - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True); - - - Class - Class - - - - Gets or sets the line points of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Get the line points - int[] linePoints = lineAnnotation.LinePoints; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Get the line points - Dim linePoints As Integer() = lineAnnotation.LinePoints - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the line caption of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line caption - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line caption - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the line intent of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Represents the loaded pop up annotation class. - - This class is used to load the pop up annotation from the PDF document. Please refer the UG docuemntation link for more details. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Sets the popup annotation border - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the popup icon - popupAnnotation.Icon = PdfPopupIcon.Key; - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Sets the popup annotation border - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the popup icon - popupAnnotation.Icon = PdfPopupIcon.Key - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CroosTable - - - - - Indicates the open the popup window or not. - - - - - Indicates the icon name. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the boolean value ( if it's true popup window is opened otherwise closed. - - - - - - Gets the popup icon type. - - - - - - Gets the popup icon name - - Icon name - Icon type - - - - Set the popup comment window bounds - - The bounds of the popup comment window. - - - - Gets or sets the open option of the popup annotation. - - if true open,otherwise not open - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Set the popup annotation open option - popupAnnotation.Open = true - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Set the popup annotation open option - popupAnnotation.Open = True - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the icon of the annotation. - - - The , provides icons to the annotation - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Set the PDF popup icon - popupAnnotation.Icon = PdfPopupIcon.Key; - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Set the PDF popup icon - popupAnnotation.Icon = PdfPopupIcon.Key - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded rubber stamp annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Sets the rubber stamp annotation border - rubberStampAnnotation.Border.Width = 4; - rubberStampAnnotation.Border.HorizontalRadius = 20; - rubberStampAnnotation.Border.VerticalRadius = 30; - //Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - document.Save("RubberStampAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation - 'Sets the rubber stamp annotation border - rubberStampAnnotation.Border.Width = 4 - rubberStampAnnotation.Border.HorizontalRadius = 20 - rubberStampAnnotation.Border.VerticalRadius = 30 - 'Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - document.Save("RubberStampAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Crosstable - - - - - Rubber and Stamp Annotation name. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the popup icon type. - - - - - - Gets the popup icon name - - Icon name - Icon type - - - - Gets or sets the icon of the annotation. - - The used to set icon to the rubber stamp annotation - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - document.Save("RubberStampAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation - 'Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - document.Save("RubberStampAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded sound annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Internal variable to store sound. - - - - - Dictionary - - - - - Indicates the sound icon of the annotation. - - - - - Indicates the appearance of the annotation. - - - - - Gets the filename. - - File name - - - - Gets the sound annotation icon. - - Sound annotation icon - - - - Gets the icon name - - Icon type - Sound icon - - - - Gets the sound file. - - Sound file - - - - Gets the sound annottation encoding type - - Encoding type - Encoding type - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The filename - - - - Gets or sets the sound of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - 'Gets the file name - string filename =soundAnnotation.FileName; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the file name - Dim filename As String=soundAnnotation.FileName - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True); - - - - - - Gets or sets the icon of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Set the pdfsound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Set the pdfsound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True); - - - - - - Represents the loaded text markup annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - //Sets the text markup color - textMarkupAnnotation.TextMarkupColor=new PdfColor(Color.Blue); - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - 'Sets the text markup color - textMarkupAnnotation.TextMarkupColor=New PdfColor(Color.Blue) - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Dictionary - - - - - Type of the annotation - - - - - Indicates the color. - - - - - To indicate collection of rectagle bounds of annotation - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - - - - Sets the name of the field. - - New name of the field. - - - - Gets back color of the annotation. - - The back color. - - - - Saves an annotation . - - - - - Gets or sets the markup annotation Type. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the markup color - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the text markup color - textMarkupAnnotation.TextMarkupColor=new PdfColor(Color.Blue); - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the text markup color - textMarkupAnnotation.TextMarkupColor=New PdfColor(Color.Blue) - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets text markup bounds collection. - - - - - Represents the loaded text web link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextWebLinkAnnotation textWeblinkAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextWebLinkAnnotation; - //Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("TextWebLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textWeblinkAnnotation As PdfLoadedTextWebLinkAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextWebLinkAnnotation - 'Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("TextWebLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Crosstable - - - - - Gets the web link. - - Web link - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets or sets the Url. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextWebLinkAnnotation textWeblinkAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextWebLinkAnnotation; - //Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("TextWebLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textWeblinkAnnotation As PdfLoadedTextWebLinkAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextWebLinkAnnotation - 'Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("TextWebLinkAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded unique resource identifier annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedUriAnnotation UriAnnotation = document.Pages[1].Annotations[5] as PdfLoadedUriAnnotation; - //Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("UriAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim UriAnnotation As PdfLoadedUriAnnotation = document.Pages(1).Annotations(5) as PdfLoadedUriAnnotation - 'Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("UriAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Indicates the unique resource identifier text. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the unique resource identifier text - - The unique resource identifier text - - - - Gets or sets the unique resource identifier text of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedUriAnnotation UriAnnotation = document.Pages[1].Annotations[5] as PdfLoadedUriAnnotation; - //Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("UriAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim UriAnnotation As PdfLoadedUriAnnotation = document.Pages(1).Annotations(5) as PdfLoadedUriAnnotation - 'Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("UriAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded web link annotation class. - - - - - CrossTable - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - The class used to represent a loaded widget annotations - - - - - Internal cross table - - - - - Internal Annotation flags - - - - - Internal variable to store extended appearance. - - - - - Internal variable to store border parameters. - - - - - Internal variable to store appearance of the widget. - - - - - Internal variable to store highlighting mode. - - - - - Internal variable to store default appearance. - - - - - Internal variable to store annotation's actions. - - - - - Annotation's appearance. - - - - - Internal variable to store alignment. - - - - - Internal variable to store default appearance state value. - - - - - Initializes a new instance of the class. - - - - - - - - Highlightings the mode to string. - - The m_highlighting mode. - String representation of the highlighting mode in Pdf suiatable format. - - - - Gets or sets the extended appearance. - - The represents extended appearance of the annotation - - - - Gets or sets the highlighting mode. - - The . - - - - Gets or sets the text alignment. - - The provides alignments of a text. - - - - Gets the actions of the annotation. - - The provides various actions. - - - - Gets or sets appearance of the annotation. - - - - - Gets or sets default appearance name. - - The state of the appearance. - - - - Represents a button field of an existing PDF document. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - buttonField.ToolTip = "SubmitButton"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - buttonField.ToolTip = "SubmitButton" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents loaded styled field. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Represents base class for loaded fields. - - - - //Create a new document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form fields - foreach (PdfLoadedField field in doc.Form.Fields) - { - // Flatten the form - field.Flatten = true; - } - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form fields - For Each field As PdfLoadedField In doc.Form.Fields - ' Flatten the form - field.Flatten = True - Next field - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Form field identifier - - - - - Cross Table. - - - - - Indicates was field changed or not. - - - - - Represents index used to default annotation. - - - - - Represent's the field name. - - - - - Represent's the field page. - - - - - Internal variable to store form. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the name of the field. - - New name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets new name of the first field - field.SetName("fieldFirstName"); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets new name of the first field - field.SetName("fieldFirstName") - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Searches the in parents. - - The dictionary. - The cross table. - The value. - Searched primitive. - - - - Gets the value. - - The dictionary. - The cross table. - The value. - if it is inheritable, set to true. - The founded value. - - - - Gets the widget annotation. - - The dictionary. - The cross table. - The widget annotation dictionary. - - - - Gets the high light. - - The dictionary. - The cross table. - The HighLIght mode. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of loaded field item. - - - - - Applies field name - - specified field name - - - - Begins the save. - - - - - Gets the loaded page. - - The loaded page in which field draw. - - - - Exports the form fields. - - - - - - Exports the form fields. - - Stream. - Object identifier. - - - - Imports the form fields. - - - - - - Validates the string. - - The text1. - - - - - Gets the name of the field. - - - - - - Raises when user manually changes the name of the field. - - - - - Gets the name of the field.[Read-Only] - - A string value specifying the name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Read the field name - String fieldName = field.Name; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Read the field name - Dim fieldName As String = field.Name - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the mapping name to be used when exporting interactive form field data from the document. - - A string value specifying the mapping name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets the Mapping name as 'FirstField' - field.MappingName = "FirstField"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets the Mapping name as 'FirstField' - field.MappingName = "FirstField" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the tool tip of the form field. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets the tooltip of the field - field.ToolTip = "FirstField"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets the tooltip of the field - field.ToolTip = "FirstField" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the page of the form field.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - PdfPageBase page = field.Page; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - Dim page As PdfPageBase = field.Page - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether [read-only]. - - True if the field is read-only, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Set the form field as read only - field.ReadOnly = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Set the form field as read only - field.ReadOnly = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether this is required. - - True if the field is required, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - field.Required = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - field.Required = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether this is export. - - true if export; otherwise, false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the flags. - - - - - Gets the actual field name. - - This returns the field name alone, where Name property returns the field name along with its parent name. - - - - Gets the form of the .[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - PdfForm form = field.Form; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - Dim form As PdfForm = field.Form - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the cross table. - - - - - Gets the parent. - - The parent. - - - - Gets or sets the changed. - - - - - Gets or sets the index of the default. - - - - - NameChanged event handler. - - New name of the field. - - - - Internal variable to store color shift value. - - - - - Internal variable to store Pdf Field Actions. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store enter action. - - - - - Internal variable to store leave action. - - - - - Internal variable to store mouse down action. - - - - - Internal variable to store mouse up action. - - - - - Internal variable to store get focus action. - - - - - Internal variable to store lost focus action. - - - - - Internal variable to store border pen. - - - - - Internal variable to store field's font. - - - - - Represents the visibility of the field - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the graphics properties. - - The graphics properties. - The item. - - - - Creates the border style. - - The bs. - The border style. - - - - Sets the border style. - - The bs. - The border style. - - - - Gets border pen. - - The border style. - - - - Gets the bounds. - - The dictionary. - The cross table. - The bounds. - - - - Gets the high light string. - - The mode. - The highligt mode. - - - - Creates the color. - - The array. - - - - - Gets the font colour. - - The default appearance. - The colour of the text value. - - - - Parses the float. - - The text. - - - - - Gets the font. - - The font string. - - - - - Reading Font Name from Dictionary. - - - - - - - - Create metrics for embed font - - - - - - - Gets the font by its name. - - The name. - The height of the resulting font. - The proper font object. - - - - Gets the font style. - - The font family string. - The style of pdf font. - - - - Gets the font name - - - font name - - - - Gets the font family. - - The font family string. - The font family. - - - - Gets the border style. - - Border style of the field. - - - - Gets the border style. - - Border style of the field. - - - - Gets DashPatern. - - The DashPatern. - - - - Gets border width. - - The boder width. - - - - Sets border width. - - - - - Gets string format. - - The string format. - - - - Gets back brush. - - The back brush. - - - - Sets the back color of the Field. - - The brush. - - - - Gets fore brush. - - The fore brush. - - - - Gets shadow brush. - - The shadow brush. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of loaded field item. - - - - - Begins the save. - - - - - Gets the height of the font. - - The calculated size of font. - - - - Gets border pen. - - The border style. - - - - Gets the field's annotation. - - The array of fields annotations. - - - - Gets the visibility of the field. - - - - - - Creates the border pen. - - - - - Defines the default appearance. - - - - - Cloning the PdfLoadedStyledField. - - - - - - Gets or sets the action to be performed when the cursor enters the annotation�s - active area. - - The mouse enter action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Entered\";"); - //Set the mouse enter event. - ldField.MouseEnter = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Entered"";") - 'Set the mouse enter event. - ldField.MouseEnter = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the mouse button is released - inside the annotation�s active area. - - The mouse up action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Up\";"); - //Set the event. - ldField.MouseUp = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Up"";") - 'Set the event. - ldField.MouseUp = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - annotation�s active area. - - The mouse down action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Down\";"); - //Set the event. - ldField.MouseDown = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Down"";") - 'Set the event. - ldField.MouseDown = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the cursor exits the annotation�s - active area. - - The mouse leave action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Leave\";"); - //Set the event. - ldField.MouseLeave = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Leave"";") - 'Set the event. - ldField.MouseLeave = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the annotation receives the - input focus. - - The got focus action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Field Focused\";"); - //Set the event. - ldField.GotFocus = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Field Focused"";") - 'Set the event. - ldField.GotFocus = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the fore color of the Field.[Read-Only] - - The color of the text. - - - - Gets or sets the action to be performed when the annotation loses the - input focus. - - The lost focus action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Lost Focus\";"); - //Set the event. - ldField.LostFocus = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Lost Focus"";") - 'Set the event. - ldField.LostFocus = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the widget. - - The widget. - - - - Gets or sets the bounds. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the location. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields location. - ldField.Location = new PointF(100, 300); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields location. - ldField.Location = New PointF(100, 300) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the size. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset size of the field. - ldField.Size = new SizeF(200, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset size of the field. - ldField.Size = New SizeF(200, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the border pen. - - - - - Gets or sets the style of the border. - - The color of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the color of the border. - - The color of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the DashPatern. - - - - - Gets or Sets the width of the border. - - The width of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the string format. - - The string format. - - - - Gets the back brush. - - The back brush. - - - - Gets the color of the fore. - - The color of the fore. - - - - Gets the shadow brush. - - The shadow brush. - - - - Gets or set the font. - - The font. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set font. - ldField.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12, PdfFontStyle.Italic); - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set font. - ldField.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12, PdfFontStyle.Italic) - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or set the default index. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set default index. - ldField.DefaultIndex = 2; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set default index. - ldField.DefaultIndex = 2 - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the kids. - - - - - Gets a value indicating the visibility of the field.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - bool isVisible = ldField.Visible; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - Dim isVisible As Boolean = ldField.Visible - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the form field visibility - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Visibility = PdfFormFieldVisibility.Hidden; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Visibility = PdfFormFieldVisibility.Hidden - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Structure that holds graphics properties. - - - - - Initializes a new instance of the struct. - - The field. - - - - Initializes a new instance of the struct. - - The item. - - - - Collection of button items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the text. - - The text of the field. - - - - Sets the text of the field. - - Text field. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedButton field. - - - - - Creates a copy of PdfLoadedButtonItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the button. - - The graphics. - The item. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Adds Print action to current button field. - Clicking on the specified button will trigger the Print Dialog Box. - - - //Load an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Load the existing form - PdfLoadedForm form = ldoc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - // Adding print action - buttonField.AddPrintAction(); - // Save the document to a disk - ldoc.Save("Form.pdf"); - ldoc.Close(true); - - - 'Load an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = ldoc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - ' Adding print action - buttonField.AddPrintAction() - ' Save the document to a disk - ldoc.Save("Form.pdf") - ldoc.Close(True) - - - - - - Gets or sets the caption text. - - A string value specifying the caption of the button. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - buttonField.Text = "Submit"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - buttonField.Text = "Submit" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of button items.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Reading button collection item - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Reading button collection item - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents button group item of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents base class for field's group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Field which item belongs to. - - - - - Item index in collection. - - - - - Local variable to hold page reference. - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Get the current Loaded style Field. - - - - - Gets the parent. - - - - - Gets the cross table. - - - - - Gets the dictionary. - - - - - Gets or sets the bounds. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the location of the field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Location = new PointF(100, 100); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Location = New PointF(100, 100) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the size of the field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Size = new SizeF(100, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Size = New SizeF(100, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets the border pen. - - - - - Gets the border style. - - - - - Gets the DashPatern. - - - - - Gets the width of the border. - - - - - Gets the string format. - - - - - Gets the back brush. - - - - - Gets the color of the fore. - - - - - Gets the shadow brush. - - - - - Gets the font. - - - - - Gets the page of the field.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - //Get the fields page. - PdfPageBase page = buttonItem.Page; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - 'Get the fields page. - Dim page As PdfPageBase = buttonItem.Page - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedButtonItem. - - - - - - Represents the base class for loaded state field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Flatten the radio button field - radiobuttonField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Flatten the radio button field - radiobuttonField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Gets the state template. - - The state. - The item. - The proper PdfTemplate instance. - - - - Sets checked status of the field. - - Checked status. - - - - Gets the item value. - - The value of the item. - - - - Unchecks the others kids. - - The child. - The value. - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the check box item. - - The graphics. - The state. - The item. - - - - Gets the items collection.[Read-Only] - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the first item as selected item - radiobuttonItem.Selected = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the first item as selected item - radiobuttonItem.Selected = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents the loaded state item. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - PdfLoadedStateItem stateItem =stateItemCollection[0]; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - Dim stateItem As PdfLoadedStateItem = stateItemCollection(0) - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Sets checked status of the field. - - Checked status. - - - - Gets or sets a value indicating whether this is checked. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - PdfLoadedStateItem stateItem =stateItemCollection[0]; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - Dim stateItem As PdfLoadedStateItem = stateItemCollection(0) - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Represents collection of button item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button collection - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button collection - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedButtonItemCollection - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button collection - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button collection - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents check box of an existing PDF document. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - checkField.Checked = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - checkField.Checked = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Symbol for check state. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedCheckBoxField. - - - - - Creates a copy of PdfLoadedCheckBoxItem. - - - - - Gets or sets a value indicating whether this is checked. - - True if the check box is checked, false otherwise. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - checkField.Checked = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - checkField.Checked = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of check box items.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents collection of text box group items. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents the collection of loaded state item. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItemCollection[0] as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItemCollection(0), PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedStateItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItemCollection[0] as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItemCollection(0), PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedCheckBoxItemCollection - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents loaded check box item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - // Read the first item of the collection - PdfLoadedCheckBoxItem checkItem = checkCollection[0]; - checkItem.Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - ' Read the first item of the collection - Dim checkItem As PdfLoadedCheckBoxItem = checkCollection(0) - checkItem.Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Sets checked status of the field. - - Checked status. - - - - Cloning the PdfLoadedCheckBoxItem. - - - - - - Represents a choice field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets selected index. - - Selected index. - - - - Sets selected index. - - Selected index. - - - - Gets selected value. - - Selected value. - - - - Sets selected value. - - Selected value. - - - - Gets the list item. - - The list item collection - - - - Gets the collection of choice items.[Read-Only] - - - A object specifying the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - // Change the selected item - PdfLoadedListItemCollection items = choiceField.SelectedItem; - items[0].Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - ' Change the selected item - Dim items As PdfLoadedListItemCollection = choiceField.SelectedItem - items(0).Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the first selected item in the list. - - - An integer value specifying the choice item in the list. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedIndex = new int[] { 0 }; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedIndex = New Integer() {0} - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - - A string value specifying the value of the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedValue = new string[] { "Employee" }; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing choice field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedValue = New String() { "Employee" } - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the selected items in the list.[Read-Only] - - - A object specifying the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - // Change the selected item - PdfLoadedListItemCollection items = choiceField.SelectedItem; - items[0].Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - ' Change the selected item - Dim items As PdfLoadedListItemCollection = choiceField.SelectedItem - items(0).Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents the combo box field of an existing item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Stores the collection of items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedComboBoxField. - - - - - Creates a copy of PdfLoadedComboBoxItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the combo box. - - The graphics. - The item. - - - - Draws the combo box. - - The graphics. - The item. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Gets or sets a value indicating whether this is editable. - - True if the drop down list is editable, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.Editable = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing Check field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.Editable = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of combo box items.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Reading first item of the collection. - PdfLoadedComboBoxItem item = comboCollection[0]; - item.Location = new PointF(200, 200); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - 'Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - 'Reading first item of the collection. - Dim item As PdfLoadedComboBoxItem = comboCollection(0) - item.Location = New PointF(200, 200) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the index which is to be selected. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the value which is to be selected. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedValue = "Employee"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedValue = "Employee" - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents group for combo box field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning PdfLoadedComboBoxItem. - - - - - - Represents collection of Combo box items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Cloning PdfLoadedComboBoxItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents a collection of state items. - - Class - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Gets the at the specified index.[Read-Only] - - The index of specified item. - - - - Represents Loaded form of the PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //load the form field - PdfLoadedField field = form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'load the form field - Dim field As PdfLoadedField = TryCast(form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Collection of fields - - - - - Store crooss table. - - - - - Dictionaries of tremil fields. - - - - - Indicates is field modified or not. - - - - - Indicates is xfa form or not. - - - - - Indicates Extended feature. - - - - - Initializes a new instance of the class. - - The form dictionary. - The cross table. - - - - Initializes a new instance of the class. - - The cross table. - - - - Get the field - - - - - - - Find the given document contain extended feature dictionary. - - - - - - Initializes the specified form dictionary. - - The form dictionary. - The cross table. - - - - Retrieves the terminal fields. - - - - - Determines whether the specified kids is node. - - The kids. - - true if the specified kids is node; otherwise, false. - - - - - Export the form data to a file with the specific and form name. - - Name of the document which is need to export. - The format of exported data. - The name of the PDF file the data is exported from. - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf") - doc.Close(True) - - - - - - Export the form data to a stream with the specific and form name. - - The stream where form data will be exported. - The format of exported data - The name of the PDF file the data is exported from - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - MemoryStream stream = new MemoryStream(); - form.ExportData(stream, DataFormat.Xml, "SourceForm.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - Dim stream As MemoryStream = New MemoryStream() - form.ExportData(stream, DataFormat.Xml, "SourceForm.pdf") - doc.Close(True) - - - - - - Export the form data in XML Forms Data Format file format. - - Stream. - Name of the form. - - - - Export the form data in FDF file format. - - The stream where form data will be exported. - The name of the PDF file the data is exported from. - - - - Exports the form data in XML file format - - - - - - Exports the form data in JSON file format - - - - - - Validate the XML node element - - name of the XML element node. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Clears PdfLoadedForm. - - - - - Removes field and kids annotation from dictionaries. - - The field. - - - - Deletes from pages. - - The field. - - - - Deletes the annotation from the page dictionary. - - The field. - - - - Removes all the reference for particular object - - The form field need to be removed - - - - Removes the content of signature filed from the loaded document - - The form Field collection of the loaded document - The Signature dictionary which is going to be removed - - - - Gets the new name of the field. - - The name. - The field name. - - - - Imports the form data from the file with the specific . - - Name of the file. - The data format. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ImportData("ImportData.xml",DataFormat.Xml); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ImportData("ImportData.xml",DataFormat.Xml) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports the form data from the file with the specific . - - Name of the file. - The data format. - if it is error flag, set to true. - Error messages wile importing. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ImportData("ImportData.xml",DataFormat.Xml, false); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ImportData("ImportData.xml",DataFormat.Xml, False) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports the data field. - - Name of the file. - The data format. - if it is continue import on error, set to true. - - - - - Imports Form value from XML file - - Name of the imported file. - The input file format - False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field. - Document form fields filled with data which are imported from XML. - - - - Import form data from FDF file. - - The FDF file stream - False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field. - Error messages wile importing. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Load the FDF file - FileStream stream = new FileStream("ImportFDF.fdf", FileMode.Open); - // Import the FDF stream - form.ImportDataFDF(stream,true); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - ' Load the FDF file - Dim stream As FileStream = New FileStream("ImportFDF.fdf", FileMode.Open) - ' Import the FDF stream - form.ImportDataFDF(stream,True) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Sets or resets the form field highlight option. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.HighlightFields(true); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.HighlightFields(True) - doc.Save("output.pdf") - doc.Close(True) - - - - - - Called when [hex in string]. - - The test string. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - bool isHex = form.OnlyHexInString("123456"); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - Dim isHex As Boolean = form.OnlyHexInString("123456") - doc.Save("output.pdf") - doc.Close(True) - - - - - - Import form data - - - - - - - - Import XML Data - - - - - - - - Imports XFDF Data from the specific file. - - The XFDF file path. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Import the XFDF file. - form.ImportDataXFDF("ImportXFDF.xfdf"); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import the XFDF file. - form.ImportDataXFDF("ImportXFDF.xfdf") - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports XFDF Data form the specific stream. - - The XFDF file stream. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Load the XFDF file - FileStream stream = new FileStream("ImportXFDF.xfdf", FileMode.Open); - // Import the XFDF stream - form.ImportDataXFDF(stream); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - ' Load the XFDF file - Dim stream As FileStream = New FileStream("ImportXFDF.xfdf", FileMode.Open) - ' Import the XFDF stream - form.ImportDataXFDF(stream,True) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets or sets the XFA form - - - - - Gets the field collection.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //load the form field - PdfLoadedField field = form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'load the form field - Dim field As PdfLoadedField = TryCast(form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the form is read only. - - True if the field is read-only, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Set the form as read only - form.ReadOnly = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Set the form as read only - form.ReadOnly = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the signature flags. - - - - - Gets or sets a value indicating whether need appearances. - - - - - Gets the resources. - - - - - Gets or sets a value indicating whether this instance is modified. - - - - - Gets the cross table. - - - - - Gets or sets the terminal fields. - - - - - Gets or sets a value indicating whether this form is XFA Form or AcroForm. - - - - - Represents node information. - - - - - Parsed field count. - - - - - Current kids array. - - - - - Initializes a new instance of the class. - - The fields. - The count. - - - - Gets or sets the current array. - - - - - Gets or sets the count. - - - - - Represents errors on importing loaded field. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets the exception. - - The exception. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets the field. - - The field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Represents field collection of loaded form. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // PDF loaded field collection - PdfLoadedFormFieldCollection fieldCollection = doc.Form.Fields; - // Remove the first field - fieldCollection.RemoveAt(0); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' PDF loaded field collection - Dim fieldCollection As PdfLoadedFormFieldCollection = doc.Form.Fields - ' Remove the first field - fieldCollection.RemoveAt(0) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Loaded form, wich collection belongs to. - - - - - Initializes a new instance of the class with the specific . - - The PDF loaded form. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedForm form = doc.Form; - //Create a new form fields collection instance. - PdfLoadedFormFieldCollection collection = new PdfLoadedFormFieldCollection(form); - //Remove field. - collection.RemoveAt(0); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim form As PdfLoadedForm = doc.Form - 'Create a new form fields collection instance. - Dim collection As New PdfLoadedFormFieldCollection(form) - 'Remove field. - collection.RemoveAt(0) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initialize the new instance of the class. - - - - - Gets the field. - - The index. - The created field. - - - - Creates the signature field. - - The dictionary. - The cross table. - The created signature field. - - - - Creates the list box. - - The dictionary. - The cross table. - The created list box. - - - - Creates the combo box. - - The dictionary. - The cross table. - The created combo box. - - - - Creates the text field. - - The dictionary. - The cross table. - The created text field. - - - - Creates the radio button. - - The dictionary. - The cross table. - The created radio button. - - - - Creates the check box. - - The dictionary. - The cross table. - The created check box. - - - - Creates the push button. - - The dictionary. - The cross table. - The created push button. - - - - Gets the type of the field. - - The name. - The dictionary. - The cross table. - The field type. - - - - Adds a field to collection. - - The field. - - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Check whether the field with the same name already exists. - - The name. - - true if there are no fields with the same name within the collection; - otherwise false. - - - - - Gets the new name of the field. - - The name. - The field name. - - - - Adds the field dictionary. - - The field. - - - - NameChanged evant handler. - - New Name of the field. - - - - Gets the index of the field. - - The name. - The index of the field. - - - - Gets the named field. - - The name. - The field with specified name. - - - - Gets the form field with the given field name - - Name of the field - Loaded Form Field - True, if form field exists, else False. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedFormFieldCollection fields = doc.Form.Fields; - PdfLoadedField field = null; - //Get the specific field by name. - fields.TryGetField("fn", out field); - //Set text. - (field as PdfLoadedTextBoxField).Text = "Modified"; - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim fields As PdfLoadedFormFieldCollection = doc.Form.Fields - Dim field As PdfLoadedField = Nothing - 'Get the specific field by name. - fields.TryGetField("fn", field) - 'Set text. - TryCast(field, PdfLoadedTextBoxField).Text = "Modified" - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the filed value from the given field name - - Name of the loaded form filed - Value of the field - True, if form field exists with the specific name, else False. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedFormFieldCollection fields = doc.Form.Fields; - string fieldValue = null; - //Get the specific field value by name. - fields.TryGetValue("fn", out fieldValue); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim fields As PdfLoadedFormFieldCollection = doc.Form.Fields - Dim fieldValue As String = Nothing - 'Get the specific field value by name. - fields.TryGetValue("fn", fieldValue) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - - - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form fields - foreach (PdfField field in doc.Form.Fields) - { - // Flatten the form - field.Flatten = true; - } - doc.Save("Form.pdf"); - doc.Close(true); - - - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form fields - For Each field As PdfField In doc.Form.Fields - ' Flatten the form - field.Flatten = True - Next field - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Returns field with specified name.[Read-Only] - - The specified field name. - - - // Loads an existing PDF document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the FirstTextBox field - PdfField field = doc.Form.Fields["FirstTextBox"]; - field.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - // Loads an existing PDF document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the FirstTextBox field - Dim field As PdfField = doc.Form.Fields("FirstTextBox") - field.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the form. - - - - // Loads an existing PDF document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the FirstTextBox field - PdfField field = doc.Form.Fields["FirstTextBox"]; - field.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - // Loads an existing PDF document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the FirstTextBox field - Dim field As PdfField = doc.Form.Fields("FirstTextBox") - field.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents loaded list box field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Flatten the list field - listField.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Flatten the list field - listField.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Represents collection of items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedListBoxField. - - - - - Creates a copy of PdfLoadedListField Item. - - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the list box. - - The graphics. - The item. - - - - Converts to list items. - - The items. - The PdfListItemCollection. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Gets or sets a value indicating whether the field is multi-selectable. - - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Enabling the multi selection option - listField.MultiSelect = true; - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Enabling the multi selection option - listField.MultiSelect = True - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of list field.[Read-Only] - - The collection of list box items. - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List box items collection - PdfLoadedListFieldItemCollection listcollection = listField.Items; - listcollection[0].Location = new PointF(100, 200); - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List box items collection - Dim listcollection As PdfLoadedListFieldItemCollection = listField.Items - listcollection(0).Location = New PointF(100, 200) - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - - - - Represents group item for list field. - - Class - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Loaded list box field items - PdfLoadedListFieldItem listFieldItem = listField.Items[0]; - listFieldItem.Location = new PointF(100, 200); - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Loaded list box field items - Dim listFieldItem As PdfLoadedListFieldItem = listField.Items(0) - listFieldItem.Location = New PointF(100, 200) - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedListFieldItem. - - - - - - Represents loaded list field item collection. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // list field item Collection - PdfLoadedListFieldItemCollection listItemCollection = listField.Items; - listItemCollection[0].Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' list field item Collection - Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items - listItemCollection(0).Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Cloning the PdfLoadedListFieldItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListFieldItemCollection listItemCollection = listField.Items; - // Reading the first item in the list items collection - PdfLoadedListFieldItem listItem = listItemCollection[0]; - // Relocate the list item - listItem.Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items - ' Reading the first item in the list items collection - Dim listItem As PdfLoadedListFieldItem = listItemCollection(0) - ' Relocate the list item - listItem.Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Represents loaded list item. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = listField.SelectedItem; - listItem.Text = "NewText"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = listField.SelectedItem - listItem.Text = "NewText" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Text of the item. - - - - - Value of the item. - - - - - Field wich item belons to. - - - - - CrossTable of document. - - - - - Initializes a new instance of the class. - - The text. - The value. - The field. - The cross table. - - - - Initializes a new instance of the class with the specific text and value. - - The text. - The value. - - - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = new PdfLoadedListItem("C#.Net",".NET Course"); - // Add the list item in list field - listField.Values.Add(listItem); - - - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("C#.Net",".NET Course") - ' Add the list item in list field - listField.Values.Add(listItem) - - - - - - Sets the text of the item. - - - - - - Sets item value. - - The item value. - - - - - Gets or sets the value of the list item. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = listField.SelectedItem; - listItem.Value = "C#.NET"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = listField.SelectedItem - listItem.Value = "C#.NET" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents a collection of list box field items. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Create a new list item - PdfLoadedListItem listItem = new PdfLoadedListItem("Oracle", "Oracle"); - // Adding item in collection - listItemCollection.Add(listItem); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Create a new list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("Oracle", "Oracle") - ' Adding item in collection - listItemCollection.Add(listItem) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Parents field. - - - - - Initializes a new instance of the class. - - The field. - - - - Inserts an list item at the end of the collection. - - a object to be added to collection. - The index of item. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Create a new list item - PdfLoadedListItem listItem = new PdfLoadedListItem("Oracle", "Oracle"); - // Adding item in collection - listItemCollection.Add(listItem); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Create a new list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("Oracle", "Oracle") - ' Adding item in collection - listItemCollection.Add(listItem) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Adds the item. - - The item. - The index of added item. - - - - Inserts the list item at the specified index. - - The index. - The item. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Getting the first item from the list item collection - PdfLoadedListItem listItem = listItemCollection[0]; - // Insert the item at first index - listItemCollection.Insert(0, listItem); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Getting the first item from the list item collection - Dim listItem As PdfLoadedListItem = listItemCollection(0) - ' Insert the item at first index - listItemCollection.Insert(0, listItem) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Removes the list item at the specified index. - - The index. - Throws IndexOutOfRange exception if the index is out of bounds. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Remove the first item - listItemCollection.RemoveAt(0); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Remove the first item - listItemCollection.RemoveAt(0) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Clears the item collection. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Clears the collection - listItemCollection.Clear(); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Clears the collection - listItemCollection.Clear() - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the items. - - - - - Gets the array. - - The item. - The array of item value and text. - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Getting the first item from the list item collection - PdfLoadedListItem listItem = listItemCollection[0]; - listItem.Value = "C#.NET"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Getting the first item from the list item collection - Dim listItem As PdfLoadedListItem = listItemCollection(0) - listItem.Value = "C#.NET" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents collection of radio box group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedRadioButtonItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - Returns object at the specified index. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents radio button field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Gets the item value. - - The value of the item. - - - - Stes item value. - - The item value. - - - - Cloning the PdfLoadedRadioButtonItem. - - - - - - Gets or sets the value of the radio button. - - The value of the radio button item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the value of the item - radiobuttonItem.Value = "Male"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the value of the item - radiobuttonItem.Value = "Male" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether this is selected. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the first item as selected item - radiobuttonItem.Selected = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the first item as selected item - radiobuttonItem.Selected = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the parent. - - - - - Represents radio button field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Flatten the radio button field - radiobuttonField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Flatten the radio button field - radiobuttonField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Symbol for check state. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Gets the index of the selected. - - The index of first selected item. - - - - Sets selected index of the radio button. - - Selected index. - - - - Sets selected value. - - Selected value. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of PdfLoadedRadioButtonListField. - - - - - Creates a copy of PdfLoadedRadioButtonItem. - - - - - Gets the collection of radio button items.[Read-Only] - - A that represents the items within the list. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Gets or sets the index of the selected item in the list. - - The lowest ordinal index of the selected items in the list. The default is -1, which indicates that nothing is selected. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the selected index as 1 - radiobuttonField.SelectedIndex = 1; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the selected index as 1 - radiobuttonField.SelectedIndex = 1 - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - A string value specifying the value of the first selected item, null (Nothing in VB.NET) if there is no selected item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the selected index as 1 - radiobuttonField.SelectedValue = "Female"; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the selected index as 1 - radiobuttonField.SelectedValue = "Female" - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the selected item.[Read-Only] - - Return the item as PdfLoadedRadioButtonItem class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Read the selected item of the radio button - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonField.SelectedItem; - // Uncheck the selected item - radiobuttonItem.Checked = false; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Read the selected item of the radio button - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonField.SelectedItem - ' Uncheck the selected item - radiobuttonItem.Checked = False - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of specified item. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the radio box value as Male - radiobuttonField.Value = "Male"; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the radio box value as Male - radiobuttonField.Value = "Male" - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents the signature field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Gets the signature field - PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField; - signatureField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Gets the signature field - Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField) - signatureField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Internal variable to store the signature. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the signature properties - - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedSignatureField. - - - - - Creates a copy of loaded item. - - - - - - Draws this instance if it is flatten. - - - - - Gets or sets the digital signature for signing the field. - - A object specifying the digital signature for signing the field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the first page - PdfPageBase page = doc.Pages[0]; - // Gets the signature field - PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField; - // Create a new Signature - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5), new SizeF(100, 200)); - // Set the signature of the field - signatureField.Signature = signature; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the first page - Dim page As PdfPageBase = doc.Pages(0) - ' Gets the signature field - Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField) - ' Create a new Signature - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5), New SizeF(100, 200)) - ' Set the signature of the field - signatureField.Signature = signature - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents an item in a text box field collection. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField textBoxField = doc.Form.Fields["EmployeeName"] as PdfLoadedTextBoxField; - // Read the first text box field item from the collection - PdfLoadedTexBoxItem textBoxItem = textBoxField.Items[0]; - textBoxItem.Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim textBoxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields("EmployeeName"), PdfLoadedTextBoxField) - ' Read the first text box field item from the collection - Dim textBoxItem As PdfLoadedTexBoxItem = textBoxField.Items(0) - textBoxItem.Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedTexBoxItem. - - - - - - Represents the text box field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - RectangleF newBounds = new RectangleF(100, 100, 50, 50); - ldField.Bounds = newBounds; - ldField.SpellCheck = true; - ldField.Text = "New text of the field."; - ldField.Password = false; - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - Dim newBounds As RectangleF = New RectangleF(100, 100, 50, 50) - ldField.Bounds = newBounds - ldField.SpellCheck = True - ldField.Text = "New text of the field." - ldField.Password = False - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - The password chrackter. - - - - - Collection of textbox items. - - - - - Internal variable to stroe field`s fore color. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Set the back color of the Field. - - PdfColor Value. - - - - Converts the HighlightMode as String value. - - PdfHighlightMode value. - Returns the PdfHighlightMode as string value. - - - - Converts the given string value as PdfHighlightMode. - - Given string value. - Returns the PdfHighlightMode values. - - - - Begins the save. - - - - - Creates a copy of PdfLoadedTextBoxField. - - - - - Creates a copy of PdfLoadedTextBoxItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws this instance if it is flatten. - - - - - Draws the text box. - - The graphics. - The item. - - - - Checks if the text contains RTL character or number. - - Array of symbols. - True if the text contans RTL character or number. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Get or Set the back color of the field - - A object specifying the background color of field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.BackColor = new PdfColor(Color.Transparent); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.BackColor = New PdfColor(Color.Transparent) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or Set the fore color of the field. - - A object specifying the background color of field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.ForeColor = new PdfColor(Color.Red); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field. - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.ForeColor = New PdfColor(Color.Red) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Get or Set the text alignment in a text box. - - A enumeration member specifying the text alignment in a text box. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.TextAlignment = PdfTextAlignment.Justify; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field. - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.TextAlignment = PdfTextAlignment.Justify - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Get or Set the HighLightMode of the Field. - - A enumeration member specifying the highlight mode in a text box. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.HighlightMode = PdfHighlightMode.Push; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.HighlightMode = PdfHighlightMode.Push - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or Set value of the text box field. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - - Gets or sets a value indicating whether to check spelling. - - True if the field content should be checked for spelling erorrs, false otherwise. Default is true. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.SpellCheck = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.SpellCheck = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Meaningful only if the MaxLength property is set and the Multiline, Password properties are false. - If set, the field is automatically divided into as many equally spaced positions, or combs, - as the value of MaxLength, and the text is laid out into those combs. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.InsertSpaces = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.InsertSpaces = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is multiline. - - True if the field is multiline, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Multiline = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Multiline = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is password field. - - True if the field is a password field, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Password = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Password = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is scrollable. - - True if the field content can be scrolled, false otherwise. Default is true. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Scrollable = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Scrollable = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the maximum length of the field, in characters. - - A positive integer value specifying the maximum number of characters that can be entered in the text edit field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.MaxLength = 10; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.MaxLength = 10 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - - Gets the collection of text box field items.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // TextBox Item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - textboxFieldCollection[0].Location = new PointF(10, 20); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' TextBox Item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - textboxFieldCollection(0).Location = New PointF(10, 20) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Represents collection of text box group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field item - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // TextBox Item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - textboxFieldCollection[0].Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field item - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' TextBox Item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - textboxFieldCollection(0).Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Cloning the PdfLoadedTextBoxItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field item - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // Read the text box item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - PdfLoadedTexBoxItem textboxItem = textboxFieldCollection[0]; - textboxItem.Location = new PointF(10, 20); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field item - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' Read the text box item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - Dim textboxItem As PdfLoadedTexBoxItem = textboxFieldCollection(0) - textboxItem.Location = New PointF(10, 20) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents the area type of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Load the existing XFA area collection. - PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "12345"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Load the existing XFA area collection. - Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "12345" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents Loaded XFA field. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - convert string to float - - - - - - - Read the margin details - - - - - - set the size of the field - - - - - - - - Read the XFA form fields - - - - - - - - - - Represents the XFA subform names - - - - - Represents loaded form fields collection. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Load the existing XFA area collection. - PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "12345"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Load the existing XFA area collection. - Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "12345" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded XFA check box field. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the abstract class of the loaded XFA form fields styled parameters. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the size of the field. - - - - - - Read the border of the field - - - - - - Read the caption details - - - - - - Read the font info - - - - - - create a new attribute - - - - - - - - Get the fields rotation angle. - - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set read only. - loadedTextBox.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set read only. - loadedTextBox.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the width of the field. - float width = loadedTextBox.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the width of the field. - Dim width As Single = loadedTextBox.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the height of the field. - float height = loadedTextBox.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the height of the field. - Dim height As Single = loadedTextBox.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the location of the field. - PointF location = loadedTextBox.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the location of the field. - Dim location As PointF = loadedTextBox.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the Font - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the font. - loadedTextBox.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the font. - loadedTextBox.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets tool tip - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set tool tip. - loadedTextBox.ToolTip = "Text Box"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set tool tip. - loadedTextBox.ToolTip = "Text Box" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the caption - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the caption text. - string text = loadedTextBox.Caption.Text; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the caption text. - Dim text As string = loadedTextBox.Caption.Text - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or set the fore color. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the fore color of the field - PdfColor foreColor = loadedTextBox.ForeColor; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the fore color of the field. - Dim foreColor As PdfColor = loadedTextBox.ForeColor - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or set the border - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set border color. - loadedTextBox.Border.Color = Color.Red; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set border color. - loadedTextBox.Border.Color = Color.Red - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the horizontal alignment of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the horizontal alignment of the field. - loadedTextBox.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the horizontal alignment of the field. - loadedTextBox.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the vertical alignment of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the vertical alignment of the field. - loadedTextBox.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the vertical alignment of the field. - loadedTextBox.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets a value indicating whether this is checked or not - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the size of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the checkbox size. - float checkBoxSize = loadedCheckBox.CheckBoxSize; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the checkbox size. - Dim checkBoxSize As Single = loadedCheckBox.CheckBoxSize - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked styles of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the checked style. - PdfXfaCheckedStyle style = loadedCheckBox.CheckedStyle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the checked style. - Dim style As PdfXfaCheckedStyle = loadedCheckBox.CheckedStyle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the appearance of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the check box appearance. - PdfXfaCheckBoxAppearance appearance = loadedCheckBox.CheckBoxAppearance; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the check box appearance. - Dim appearance As PdfXfaCheckBoxAppearance = loadedCheckBox.CheckBoxAppearance - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the existing combo box fields of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - - Gets or sets the default index of the combo box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or Sets the default value of the combo box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected value - loadedComboBoxField.SelectedValue = "English"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected value - loadedComboBoxField.SelectedValue = "English" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the hidden items of combo box field. - - - - - Represents the loaded date time field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the date time - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get or sets the date field format - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Get the date time format. - PdfXfaDateTimeFormat format = loadedDateTimeField.Format; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Get the date time format. - Dim format As PdfXfaDateTimeFormat = loadedDateTimeField.Format - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Set the date field pattern - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Set the pattern. - loadedDateTimeField.Pattern = "date{MMMM DD, YYYY}"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Set the pattern. - loadedDateTimeField.Pattern = "date{MMMM DD, YYYY}" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded XFA document. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Intialize the new instance of the class. - - The input file path. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file path. - The password for the input document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf", "password"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf", "password") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file stream. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(new MemoryStream(File.ReadAllBytes("input.pdf"))); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument(New MemoryStream(File.ReadAllBytes("input.pdf"))) - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file stream. - Password of the input file. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(new MemoryStream(File.ReadAllBytes("input.pdf")), "password"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument(New MemoryStream(File.ReadAllBytes("input.pdf")), "password") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The file path. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The stream where to save the document. - The HTTP response stream object. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - MemoryStream ms = new MemoryStream(); - //Save the document - loadedDocument.Save(ms, Response); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - Dim ms As MemoryStream = New MemoryStream() - 'Save the document - loadedDocument.Save(ms, Response) - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The name of the document. - The HTTP response stream object. - The type of the reading document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf", Response, HttpReadType.Open); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf", Response, HttpReadType.Open) - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - File stream to be stored in the output document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - MemoryStream ms = new MemoryStream(); - //Save the document - loadedDocument.Save(ms); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - Dim ms As MemoryStream = New MemoryStream() - 'Save the document - loadedDocument.Save(ms) - 'Close the document - loadedDocument.Close() - - - - - - Close all the instance of the XFA document. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Flatten the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Set flatten. - loadedDocument.Flatten = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Set flatten. - loadedDocument.Flatten = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get value of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents field collection of loaded XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initializes a new instance of the class. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Add the loaded field to the field collection. - - - - - - - Get fields name. - - - - - - - Add new XFA form fields. - - The XFA form field to be added in the collection. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Create a new PdfXfaField. - PdfXfaTextBoxField field = new PdfXfaTextBoxField("text1", new SizeF(100, 20)); - field.Caption.Text = "Text Field"; - //Add the text box field to existing field collection. - loadedForm.Fields.Add(field); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Create a new PdfXfaField. - Dim field As New PdfXfaTextBoxField("text1", New SizeF(100, 20)) - field.Caption.Text = "Text Field" - 'Add the text box field to existing field collection. - loadedForm.Fields.Add(field) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Remove the specified XFA field. - - The lField item which is to be removed to the XFA form. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - PdfLoadedXfaForm subform1 = loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = subform1.Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Remove the field. - subform1.Remove(loadedTextBox); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - Dim subform1 As PdfLoadedXfaForm = (TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(subform1.Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Remove the field. - subform1.Remove(loadedTextBox) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Remove the field with specific index. - - The index of the field has been removed. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Remove the field at index. - loadedForm.Fields.RemoveAt(1); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Remove the field at index. - loadedForm.RemoveAt(1) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Clear all the fields. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Crear all the fields. - loadedForm.Fields.Clear(); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Clear all the fields. - loadedForm.Fields.Clear() - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Returns an enumerator that iterates through a collection. - - Returns an enumerator that iterates through a collection. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - foreach (PdfLoadedXfaField field in loadedForm.Fields) - { - if(field is PdfLoadedXfaTextBoxField) - { - (field as PdfLoadedXfaTextBoxField).Text = "Test"; - } - } - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - For Each field As PdfLoadedXfaField In loadedForm.Fields - If TypeOf field Is PdfLoadedXfaTextBoxField Then - TryCast(field, PdfLoadedXfaTextBoxField).Text = "Test" - End If - Next - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Returns field with specified name. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Return's the field with the specified index. - - - - - - - Field collection. - - - - - Gets the field count. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the fields count. - int count = loadedForm.Fields.Count; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Gets the fiels count. - Dim count As Integer = loadedForm.Fields.Count - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents Loaded XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - current document catalog - - - - - Represents the XFA array - - - - - Represents the XFA Field collections - - - - - Repersents the XFA image array - - - - - Represents the XFA field names - - - - - Represents the XFA subform names - - - - - Loaded pdf document - - - - - List of XFA fields - - - - - indicating the field count of the current form - - - - - Represent the data set writer of XFA - - - - - XFA document - - - - - Represents the Data set Document - - - - - used to indexing purpose - - - - - denote the node counts - - - - - Represent the complete field names of the XFA - - - - - Represents the acroform field. - - - - - Represents the area name. - - - - - Represents the form name. - - - - - Represents the width of the form. - - - - - Represents the height of the form. - - - - - Represents the location of the form. - - - - - Represents the form visibility. - - - - - Represents the readonly. - - - - - Size of the form. - - - - - Reperesents the XFA form type - - - - - Represents flatten document. - - - - - Represents point. - - - - - Load the XFA documents - - - - - - Save the XFA document - - - - - - Get the subform name - - - - - - - save main form - - - - - Fill and save the subforms and fields - - - - - - - Read the main form details - - - - - Read subForms and fields - - - - - - - Get the fields collection by field name - - Name of the field - Collection of XFA fields - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get fields by name. - PdfLoadedXfaField[] fields = loadedForm.TryGetFieldsByName("InvoiceNumber[0]"); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get fields by name. - Dim fields As PdfLoadedXfaField() = loadedForm.TryGetFieldsByName("InvoiceNumber[0]") - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the XFA field using complete field name - - complete name of the field - - - - - Get the XFA field using complete field name - - Complete name of the field - Return the XFA field - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get fields by name. - PdfLoadedXfaField field = loadedForm.TryGetFieldByCompleteName("form1[0].#subform[0].Header[0].InvoiceNumber[0]"); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get fields by name. - Dim fields As PdfLoadedXfaField() = loadedForm.TryGetFieldByCompleteName("form1[0].#subform[0].Header[0].InvoiceNumber[0]") - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the name - - - - - - - Save the attributes of the current form - - - - - - Get the complete field names - - - - - - Get complete field names - - - - - - Get the fields by name - - - - - - - Save the new XFA fields - - - - - - Get the loaded fields - - - - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Set readonly. - loadedForm.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Set readonly. - loadedForm.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the visibility of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Set visibility. - loadedForm.Visibility = PdfXfaVisibility.Visible; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Set visibility. - loadedForm.Visibility = PdfXfaVisibility.Visible - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form width. - float width = loadedForm.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form width. - Dim width As Single = loadedForm.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form height. - float height = loadedForm.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form height. - Dim height As Single = loadedForm.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form location. - PointF location = loadedForm.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form location. - Dim loaction As PointF = loadedForm.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents loaded form fields collection. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - catalog of the current document - - - - - Represents the XFA array - - - - - Get all the field names - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the field names. - string[] fieldNames = loadedForm.FieldNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the field names. - Dim fieldNames As String() = loadedForm.FieldNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gett all the subforms name - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the subform names. - string[] subformNames = loadedForm.SubFormNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the subform names. - Dim subformNames As String() = loadedForm.SubFormNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the complete names of the fields - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the complete field names. - string[] completeFieldNames = loadedForm.CompleteFieldNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the complete field names. - Dim completeFieldNames As String() = loadedForm.CompleteFieldNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the area name of the form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the area names. - string[] areaNames = loadedForm.AreaNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the area names. - Dim areaNames As String() = loadedForm.AreaNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded list box field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected index - loadedListBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected index - loadedListBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the items to multi select - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Get the selected items. - string[] selectedItems = loadedListBoxField.SelectedItems; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Get the seleted items. - Dim selectedItems As String() = loadedListBoxField.SelectedItems - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - - Gets or sets the default index of the list box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected index - loadedListBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected index - loadedListBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the default value of the list box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected value - loadedListBoxField.SelectedValue = "English"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected value - loadedListBoxField.SelectedValue = "English" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the if the field is multi select or not - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Get the selection mode - PdfXfaSelectionMode mode = loadedListBoxField.SelectionMode; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Get the seletion mode. - Dim mode As PdfXfaSeletionMode = loadedListBoxField.SelectionMode - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded numeric field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save acroform textbox field. - - - - - - - - - Gets or sets the Value of the numeric Field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the comb cells - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Set the comb length. - loadedNumericField.CombLenght = 6; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Set the comb length. - loadedNumericField.CombLenght = 6 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the numeric field type - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //Get the numeric field type. - PdfXfaNumericType type = loadedNumericField.FieldType; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'Get the numeric field type. - Dim type As PdfXfaNumericType = loadedNumericField.FieldType - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the pattern string - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //Get the pattern string. - string pattern = loadedNumericField.PatternString; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'Get the pattern string. - Dim pattern As String = loadedNumericField.PatternString - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the radio button field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked state of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the radio button size - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the radio button size. - float size = loadedRadioButtonField.RadioButtonSize; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the radio button size. - Dim size As Single = loadedRadioButtonField.RadioButtonSize - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked styles of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the checked style. - PdfXfaCheckedStyle style = loadedRadioButtonField.CheckedStyle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the checked style - Dim style As PdfXfaCheckedStyle = loadedRadioButtonField.CheckedStyle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the appearance of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the radio button appearance. - PdfXfaCheckBoxAppearance appearance = loadedRadioButtonField.RadioButtonAppearance; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the radio button appearance. - Dim appearance As PdfXfaCheckBoxAppearance = loadedRadioButtonField.RadioButtonAppearance - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded radio button group of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Add Radiobutton fields - - - - - - Read the exclGroup items - - - - - - Set the Default Index - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Set as read only. - loadedRadioButtonGroup.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Set as read only. - loadedRadioButtonGroup.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the visibility of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the visibility. - PdfXfaVisibility visibility = loadedRadioButtonGroup.Visibility; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the visibility. - Dim visibility As PdfXfaVisibility = loadedRadioButtonGroup.Visibility - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the width. - float width = loadedRadioButtonGroup.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the width. - Dim width As Single = loadedRadioButtonGroup.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the height. - float height = loadedRadioButtonGroup.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the height. - Dim height As Single = loadedRadioButtonGroup.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the location of the field. - PointF location = loadedRadioButtonGroup.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the location of the field. - Dim location As PointF = loadedRadioButtonGroup.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the list of the . - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the text box field of an existing PDF document`s XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the field. - The value of the field. - - - - Read the text box field. - - - - - - - Save the acroform textbox field. - - - - - - - - - save the textBox - - - - - - Gets or sets the maximum width of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set maxium width. - loadedTextBox.MaximumWidth = 200; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set maximum width. - loadedTextBox.MaximumWidth = 200 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the maximum height of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set maxium height. - loadedTextBox.MaximumHeight = 40; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set maximum height. - loadedTextBox.MaximumHeight = 40 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the minimum width of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set minimum width. - loadedTextBox.MinimumWidth = 100; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set minimum width. - loadedTextBox.MinimumWidth = 100 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the minimum height of the textbox - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set minimum height. - loadedTextBox.MinimumHeight = 20; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set minimum height. - loadedTextBox.MinimumHeight = 20 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the value of the Text Box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the type of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the text box type. - PdfXfaTextBoxType type = loadedTextBox.Type; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the text box type. - Dim type As PdfXfaTextBoxType = loadedTextBox.Type - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the password char of the text box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the password character. - char password = loadedTextBox.PasswordCharacter; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the password character. - Dim password As Char = loadedTextBox.PasswordCharacter - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the maximum char of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the maximum length. - loadedTextBox.MaximumLength = 10; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the maximum length. - loadedTextBox.MaximumLength = 10 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the comb cells count; - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the comb length. - int combLength = loadedTextBox.CombLength; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the comb length. - Dim combLength As Integer = loadedTextBox.CombLength - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the hightlight mode of the button field - - - - - Gets or sets the mouse rollover text - - - - - Gets or sets the mouse down text of the button field - - - - - Gets or sets the content of the button field - - - - - Gets or sets the border of the circle - - - - - Gets or sets the tool tip of the circle - - - - - Gets or sets the start angle of the arc - - - - - Gets or sets the sweep angle of the Arc - - - - - Gets or sets the apperance of the circle field - - - - - Gets or sets the rotation angle - - - - - Gets or sets width of the field - - - - - Gets or sets height of the field - - - - - Get the content area - - - - - - Draw the rectangle field to PDF document. - - - - - - - Gets or sets the border - - - - - Gets or sets the tool tip - - - - - Gets or sets the cornor shaps - - - - - Gets or sets the rotation angle - - - - - Draw the tex to the PDF document. - - - - - - - Gets or sets the text - - - - - Draw the background color. - - - - - - Draw the edge - - - - - - - - - Get pens dash style. - - - - - - - Represents base class of XFDF. - - - - - Initializes a new instance of the class. - - The filename. - - - - Identify push button field. - - - - - Identify check box field. - - - - - Identify radio button field. - - - - - Identify text field. - - - - - Identify listbox field. - - - - - Identify combobox field. - - - - - Identify signature field. - - - - - Identify that field has no type. - - - - - Specifies the format of Export or Import data. - - - - //Load an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = ldoc.Form; - // Export the form data as XML file - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf"); - - - 'Load an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = ldoc.Form - ' Export the form data as XML file - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf") - - - Class - Class - - - - Specifies XML file format - - - - - Specifies Forms Data Format file format - - - - - Specifies XFDF file format. - - - - - Specifies JSON file format. - - - - - You can use this class to replace the system unavailable fonts. - - - - - Raises after the specified font is not available in the system. - - - - - specifies the custom size of the converted image. - - - - - specifies the horizontal DPI of the resultant image. - - - - - specifies the Vertical DPI of the resultant image. - - - - - specifies Whether need to maintain the pdf page size. - - - - - The delegate of the fontnotfound event handler. - - - - - Gets the used font from the document. - - - - - Gets and set the alternate font for the respective fonts. - - - - - The Syncfusion.Pdf.Parsing namespace contains classes, which are used to load or modify an existing PDF document. - - - - - Represents a PdfLoadedDocument. You can use this class to load or modify an existing PDF document - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - String contain either user or owner password. - - - - - The stream with the document data. - - - - - Indicates whether the document was encrypted. - - - - - Indicates whether the document was Pdf Viewer document. - - - - - Stores loaded form. - - - - - Collection of loaded and created pages. - - - - - Bookmarks of the document. - - - - - Named destination of the document. - - - - - Indicates whether the stream should be closed on dispose. - - - - - Indicates whether the object was disposed. - - - - - Internal stream - - - - - Defines the color space of the document - - - - - Defines the attachment collection of the document - - - - - String contain either user or owner password. - - - - - Defines the Pdf Page Label. - - - - - Defined the Pdf Loaded Page Label Collection - - - - - Check whether the Page Label Enabled or not. - - - - - Indicates is xfa form or not. - - - - - Indicates whether PDF document is Extended feature enabled. - - - - - Holds the file name for file saving operation. - - - - - Holds the conformance level of the loaded document. - - - - - Check whether the document is linearized or not. - - - - - Private variable to store the pdf portfolio - - - - - Repairing wrong offset values - - - - - Gets or sets the value whether to skip the changes made in the document to be saved - - - - - Holds the dublin core values of the loaded document. - - - - - Internal variable used to store the font information - - - - A relative or absolute path for the file. - /// This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - // Loads an existing PDF Document - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - // Save the document to a disk - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Loads an existing PDF Document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Save the document to a disk - doc.Save("Output.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class with the specified input file path and repair document - - A relative or absolute path for the file. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. - The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Loads an existing PDF Document - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf", true); - // Save the document to a disk - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Loads an existing PDF Document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", True) - ' Save the document to a disk - doc.Save("Output.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class with the specified input file path and password - - A relative or absolute path for the file. - The password (user or owner) of the encrypted document to open. - - - // Load the PDF document with password. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf","password"); - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Load the PDF document with password. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", "password") - doc.Save("Output.pdf") - doc.Close(True) - - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - - Initializes a new instance of the class with the specified password and repair document. - - A relative or absolute path for the file. - The password (user or owner) of the encrypted document to open. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. - The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Load the PDF document with password. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf", "password", true); - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Load the PDF document with password. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", "password", True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified byte array. - - The array of bytes containing the PDF document to load. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with specified byte array and repair document. - - The array of bytes containing the PDF document to load. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData, true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData, True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified byte array and password. - - The array of bytes containing the PDF document to load. - The password (user or owner) of the encrypted document. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData,"password"); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData,"password") - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The array of bytes containing the PDF document to load. - The password (user or owner) of the encrypted document. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData,"password",true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData,"password",True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified stream. - - The stream containing the PDF document to load. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load - True to repair the document to prevent document corruption. - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load. - The password (user or owner) of the encrypted document. - - - Stream file2 = new FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, "password"); - doc.Save("Samplepdf.pdf"); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, "password") - doc.Save("Samplepdf.pdf") - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load. - The password (user or owner) of the encrypted document. - True to repair the document to prevent document corruption. - - - Stream file2 = new FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, "password", true); - doc.Save("Samplepdf.pdf"); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, "password", True) - doc.Save("Samplepdf.pdf") - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Creates the stream. - - The filename. - The proper file stream. - - - - Creates the stream. - - The file content. - The proper memory stream. - - - - Saves the document into the same stream or file. - - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - ldoc.FileStructure.Version = PdfVersion.Version1_6; - // Save the changes in the same document. - ldoc.Save(); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ldoc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the changes in the same document. - ldoc.Save() - ldoc.Close(True) - - - Class - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Image with respect to dpi specified. - - The page index to be converted into image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified page as Image with custom resolution - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - Whether need to maintain the pdf page size - Returns the specified page as image with custom size - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified page as image with custom size and resolution - - - - Exports the specified page as Image - - The page index to be converted into image - Specifies the instance of the imageexportsettingclass - Returns the specified page as Image - - - - Exports the specified pages as Images - - The starting page index - The ending page index - Returns the specified pages as Images - - - - Exports the specified pages as Images with respect to dpi specified. - - The starting page index - The ending page index - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified pages as Images with custom resolution - - - - Exports the specified pages as Images - - The starting page index - The ending page index - The custom size of the converted image - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size - - - - Exports the specified pages as Images - - The starting page index - The ending page index - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size and resolution - - - - Returns the page number and rectangle positions of the text matchs - - The text to be searched - Holds the page number and rectangle positions of the text matches - - - - Returns the TextSearchResultCollection instance which contains collection of MatchedItemCollection - - List of items to be searched. - Instance of TextSearchResultCollection - Returns true if found any match - - - - Returns the dictionary of page number and list of text search items in the PDF document. - - List of items to be searched. - The dictionary of page number and list of search results. - Returns true if found any match - - - - Returns the dictionary of page number and list of captured terms in the PDF document. - - List of items to be searched. - The dictionary of page number and list of search results. - Search option to find the texts - Returns true if found any match - - - - Splits a PDF document into individual pages. - - The name of the individual destination pages. - - This method splits a PDF document to individual pages. Each page is named using destFilePattern parameter after which a numeric index is appended. - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - // Splits the source document - ldoc.Split("Output.pdf"); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Splits the source document - ldoc.Split("Output.pdf") - ldoc.Close(True) - - - Class - - - - Splits a PDF document into individual pages - - The name of the individual destination pages - The number that is use as a start - point for the page numbering. - This method splits a PDF document to individual pages. Each page is named using destFilePattern parameter after which a numeric index is appended. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Form.pdf"); - // Splits the source document - ldoc.Split("pdfDoc.pdf", 1); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Form.pdf") - ' Splits the source document - ldoc.Split("pdfDoc.pdf", 1) - ldoc.Close(True) - - - - - - Creates a new form to the loaded document - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create form. - document.CreateForm(); - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(document.Pages[0], "textBox1"); - field.Bounds = new RectangleF(0, 0, 100, 30); - field.Text = "Text Box"; - //Add fields to form. - document.Form.Fields.Add(field); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create form. - document.CreateForm() - 'Create new text box field. - Dim field As New PdfTextBoxField(document.Pages(0), "textBox1") - field.Bounds = New RectangleF(0, 0, 100, 30) - field.Text = "Text Box" - 'Add fields to form. - document.Form.Fields.Add(field) - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a PDF attachments to the loaded document - - The collection of attachments in the loaded document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create attachment collection. - PdfAttachmentCollection collection = document.CreateAttachment(); - PdfAttachment attachment = new PdfAttachment("Attachment1.pdf", File.ReadAllBytes("input.pdf")); - //Add the attachment to the attachment collection. - collection.Add(attachment); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create attachment collection. - Dim collection As PdfAttachmentCollection = document.CreateAttachment() - Dim attachment As New PdfAttachment("Attachment1.pdf", File.ReadAllBytes("input.pdf")) - 'Add the attachment to the attachment collection. - collection.Add(attachment) - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a bookmarks collection to the loaded document. - - The collection of bookmarks in the loaded document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create bookmark. - PdfBookmarkBase bookmark = document.CreateBookmarkRoot(); - bookmark.Add("Page1"); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create bookmark. - Dim bookmark As PdfBookmarkBase = document.CreateBookmarkRoot() - bookmark.Add("Page1") - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a named destination collection to the loaded document. - - The collection of named destination in the loaded document. - - - - Saves the PDF document to the specified stream. - - The stream where to save the PDF document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Extract the fonts from the loaded PDF document. - - Returns the collection of fonts. - Class - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - Clones pages and their resource dictionaries and adds them into the document. - - The loaded document. - The page being cloned. - The destinations. - - - - - Gets the form. - - The proper PdfForm instance. - - - - Release all the resource used by the document instance - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a new page and adds it as the last page of the document - PdfPageBase page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 8f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, fontSize); - //Draw the text - g.DrawString("HelloWorld", font, brush, new RectangleF(47.835f, 236.835f, 564.165f, 553.937f)); - doc.Save("Dispose.pdf"); - // Dispose the object - doc.Dispose(); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Create a page - Dim page As PdfPageBase = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 8f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, fontSize) - 'Draw the text - g.DrawString("HelloWorld", font, brush, New RectangleF(47.835f, 236.835f, 564.165f, 553.937f)) - doc.Save("Dispose.pdf") - ' Dispose the object - doc.Dispose() - - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed - and unmanaged resources; false to release only unmanaged resources. - - - - Releases all the resources allocated by this PDF document - - if set to true the document should - close its stream as well. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Creates a shallow copy of the current document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceDoc.pdf"); - // Clone the existing the document - PdfLoadedDocument doc1 = doc.Clone() as PdfLoadedDocument; - // Save the cloned document to a disk - doc1.Save("ClonedPDF.pdf"); - doc1.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - ' Clone the existing the document - Dim doc1 As PdfLoadedDocument = TryCast(doc.Clone(), PdfLoadedDocument) - ' Save the cloned document to a disk - doc1.Save("ClonedPDF.pdf") - doc1.Close(True) - - - - - - Gets the conformance level applied in the loaded document. - - Returns only levels supported by PdfConformanceLevel enum, otherwise None. This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Class - - - - Set the Page Label - - - - - Creates the bookmark destination dictionary. - - Hashtable that uses destination as a key and bookmark list as a value. - - - - Gets the named destination. - - The name of the destination. - The direct destination. - - - - Gets the named destination. - - The name of the destination. - A direct destination. - - - - Extracts the destination from dictionary or returns the object. - - The destination object. - The destination array. - - - - Loads the document. - - The file. - - - - Check whether the loaded PDF is tagged one. - - - - - Gets the PDF version - - - - - Gets the catalog of the loaded document. - - The PdfCatalog instance. - - - - To check the Need Appearance. - - dictionary - - - - Read and parse the document's info dictionary. - - - - - Checks whether the PDF document was encrypted. - - True if the document was encrypted. - - - - Gets the form dictionary. - - The form dictionary. - - - - Gets the form dictionary. - - The form dictionary. - - - - Get the collection dictionary - - - - - - Appends the new document data. - - The writer. - - - - Copies the old stream. - - The writer. - - - - Gets or sets a value indicating whether this form is XFA Form or AcroForm. - - - - - Indicates whether PDF document is Extended feature enabled. - - - - - Gets or sets the compression options. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf"); - //Create new compression options instance. - dfCompressionOptions options = new PdfCompressionOptions(); - //Set image compression. - options.CompressImages = true; - //Set image quality. - options.ImageQuality = 50; - //Optimize font. - options.OptimizeFont = true; - //Optimize page contents. - options.OptimizePageContents = true; - //Remove metadata information. - options.RemoveMetadata = true; - //Set compression options. - doc.CompressionOptions = options; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("input.pdf") - 'Create new compression options instance. - Dim options As New PdfCompressionOptions() - 'Set image compression. - options.CompressImages = True - 'Set image quality. - options.ImageQuality = 50 - 'Optimize font. - options.OptimizeFont = True - 'Optimize page contents. - options.OptimizePageContents = True - 'Remove metadata information. - options.RemoveMetadata = True - 'Set compression options. - doc.CompressionOptions = options - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets a value of the metadata Dublin core values. - - - - - Gests or sets the PdfPageLabel for the loaded PDF document page number. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Create page label with upper case roman letters and starts with 1 - PdfPageLabel label = new PdfPageLabel(); - label.NumberStyle = PdfNumberStyle.UpperRoman; - label.StartNumber = 1; - lDoc.LoadedPageLabel = label; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Create page label with upper case roman letters and starts with 1 - Dim label As PdfPageLabel = New PdfPageLabel() - label.NumberStyle = PdfNumberStyle.UpperRoman - label.StartNumber = 1 - lDoc.LoadedPageLabel = label - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Get and Set the Password. - - - - - Gets the list of attachments embedded in the document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Gets the collection of attachments embedded in the document. - PdfAttachmentCollection collection = lDoc.Attachments; - // Creating an attachment - PdfAttachment attachment = new PdfAttachment("logo.jpeg"); - attachment.FileName = "Syncfusion Logo"; - // Adding attachments to an existing document - collection.Add(attachment); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Gets the collection of attachments displayed on a PDF page. - Dim collection As PdfAttachmentCollection = lDoc.Attachments - ' Creating an attachment - Dim attachment As PdfAttachment = New PdfAttachment("logo.jpeg") - attachment.FileName = "Syncfusion Logo" - ' Adding attachments to an existing document - collection.Add(attachment) - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets or set the portfolio information associated with this document - - Class - Class - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create a new portfolio - document.PortfolioInformation = new PdfPortfolioInformation(); - //set the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile; - //Create the attachment - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile; - //Add the attachment to the document - document.Attachments.Add(pdfFile); - //Save and close the PDF document. - document.Save("output.pdf"); - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create a new portfolio - document.PortfolioInformation = New PdfPortfolioInformation() - 'set the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile - 'Create the attachment - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile - 'Add the attachment to the document - document.Attachments.Add(pdfFile) - 'Save and close the PDF document. - document.Save("output.pdf") - document.Close(True) - - - - - - Gets or sets the color space of the document. This property can be used to create PDF document in RGB, Grayscale or CMYK color spaces. By default the document uses RGB color space. - - This property has impact on the new created pages only. - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Sets the documents colorSpace as GrayScale - lDoc.ColorSpace = PdfColorSpace.GrayScale; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Sets the documents colorSpace as GrayScale - lDoc.ColorSpace = PdfColorSpace.GrayScale - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - - - - Gets the PDF form fields included in the document. - - - - // Load the PDF form - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Gets the form from the existing document - PdfLoadedForm form = lDoc.Form; - // Reading field element - PdfLoadedTextBoxField textField = form[0] as PdfLoadedTextBoxField; - textField.Text = "Syncfusion"; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Gets the form from the existing document - Dim form As PdfLoadedForm = lDoc.Form - ' Reading field element - Dim textField As PdfLoadedTextBoxField = TryCast(form(0), PdfLoadedTextBoxField) - textField.Text = "Syncfusion" - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the document's collection of pages. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Reading page collection from an existing document - PdfLoadedPageCollection pageCollection = lDoc.Pages; - //Creates a new page - pageCollection.Add(); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Reading page collection from an existing document - Dim pageCollection As PdfLoadedPageCollection = lDoc.Pages - ' Create a page - pageCollection.Add() - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the list of bookmarks in the PDF document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("sourceDoc.pdf"); - // Reading bookmark collection from an existing document - PdfBookmarkBase bm = lDoc.Bookmarks; - // Creates a new bookmark - PdfBookmark newbm = bm.Add("Chapter1"); - newbm.Color = Color.DarkBlue; - newbm.TextStyle = PdfTextStyle.Bold; - newbm.Destination = new PdfDestination( lDoc.Pages[0]); - lDoc.Save("BookMark.pdf"); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - ' Reading bookmark collection from an existing document - Dim bm As PdfBookmarkBase = lDoc.Bookmarks - ' Creates a new bookmark - Dim newbm As PdfBookmark = bm.Add("Chapter1") - newbm.Color = Color.DarkBlue - newbm.TextStyle = PdfTextStyle.Bold - newbm.Destination = New PdfDestination(lDoc.Pages(0)) - lDoc.Save("BookMark.pdf") - - - Class - Class - - - - Gets the list of named destinations in the PDF document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("sourceDoc.pdf"); - // Reading named destination collection from an existing document - PdfNamedDestinationCollection destinationCollection = lDoc.NamedDestinationCollection; - // Creates a new named destination - PdfNamedDestination newNamedDestination = new PdfNamedDestination("Chapter1"); - newNamedDestination.Destination = new PdfDestination( lDoc.Pages[0]); - destinationCollection.Add(newNamedDestination); - lDoc.Save("NamedDestination.pdf"); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - ' Reading named destination collection from an existing document - Dim destinationCollection As PdfNamedDestinationCollection = lDoc.NamedDestinationCollection - ' Creates a new named destination - Dim newNamedDestination As PdfNamedDestination = New PdfNamedDestination("Chapter1") - newNamedDestination.Destination = New PdfDestination(lDoc.Pages(0)) - destinationCollection.Add(newNamedDestination) - lDoc.Save("NamedDestination.pdf") - - - Class - Class - - - - Gets number of pages. - - - - - Gets the conformance level applied in the loaded document. - - Returns only levels supported by PdfConformanceLevel enum, otherwise None. This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Class - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the confirmation level. - PdfConformanceLevel level = document.Conformance; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the confirmation level. - Dim level As PdfConformanceLevel = document.Conformance - 'Close the document. - document.Close(True) - - - - - - - Gets whether the document is linearized or not - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the document is linearisze. - bool linearizedDocument = document.IsLinearized; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the document is linearisze. - Dim linearizedDocument As Boolean = document.IsLinearized - 'Close the document. - document.Close(True) - - - - - - Gets whether the document has portfolio content or not - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Check portfolio - bool portfolio = document.IsPortfolio; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Check portfolio - Dim portfolio As Boolean = document.IsPortfolio - 'Close the document. - document.Close(True) - - - - - - Gets the instance of the class. - - - - - Gets the document's information such as documents title, keywords, subject etc., - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the document information. - PdfDocumentInformation inform = document.DocumentInformation; - //Get author of the document. - string author = inform.Author; - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the document information. - Dim inform As PdfDocumentInformation = document.DocumentInformation - 'Get author of the document. - Dim author As String = inform.Author - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether the document was PDF viewer document. - - - - - Gets a value indicating whether the document was encrypted. - - - - - Gets whether the document is encrypted or not. - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Gets whether the document is encrypted? - bool isEncrypted = document.IsEncrypted; - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Gets whether the document is encrypted? - Dim isEncrypted As Boolean = document.IsEncrypted - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Stores info about current node. - - - - - Internal variable used to store Kids values. - - - - - Internal variable used to store index value. - - - - - Initializes a new instance of the class. - - The kids. - - - - Initializes a new instance of the class. - - The kids. - The index. - - - - Represents the loaded named destination class. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection; - //Get the first named destination - PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination; - //Get the destination - PdfDestination dest = namedDestination.Destination; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the named destinations. - Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Get the first named destination - Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination) - 'Get the destination - Dim destination As PdfDestination = namedDestination.Destination - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the destination. - - The destination of named destination. - - - - - Gets or sets the named destination title. - - A string value which contains the named destination title - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection; - //Get the first named destination - PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination; - //Get the named destination title. - string title = namedDestination.Title; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the named destinations. - Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Get the first named destination - Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination) - 'Get the named destination title. - Dim title As String = namedDestination.Title - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class - Class - Class - - - - Interface of the objects that support Decryptable of their internals. - - - - - Decrypts the specified encryptor. - - The encryptor. - The curr obj number. - - - - Gets a value indicating whether [was encrypted]. - - true if [was encrypted]; otherwise, false. - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The data. - - - - Gets bytes of the stream. - - Stream to be converted. - Destination bytes. - - - - Gets bytes of the stream. - - Stream to be converted. - Indicates whether to write the whole stream. - Destination bytes. - - - - Converts a stream to bigendian format. - - A stream containing data. - A stream in bigendian format. - - - - Writes the specified symbol. - - The symbol. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Blocks the encryption. - - - - - Decompresses this instance. - - - - - Cleares a stream. - - - - - Saves the object using the specified writer. - - The writer. - - - - Decrypts the data using the specified encryptor. - - The encryptor. - The current object number. - - - - Decompresses the stream data. - - The data to decompress. - The filter name. - Uncompressed byte array. - - - - Returnes a compressor by its name. - - The name of the compressor. - IPDFCompressor interface. - - - - Performs postprocessing of the data for the filter specified. - - The data to process. - The filter. - Restored data. - - - - Normalizes the filter. If the filter array has only one element store that element - instead of entire array. - - - - - Compresses the content if it's required. - - The writer. - The compressed data. - - - - Adds a filter to the filter array. - - Name of the filter. - - - - Encrypts the stream content. - - The data. - The writer. - The encrypted content. - - - - Gets or sets the animation for this 3D artwork. - - - - - Gets or sets content of this stream. - - - - - Gets or sets the default view. - If there are no views, this value is ignored. If the value is outside of the valid range, the first view is considered to be default. - - - - - Gets or sets the code to execute when the 3D artwork is instantiated. - Javascript code to be executed when the 3D artwork is instantiated. - - - - - Gets the list of views for this 3D artwork. - - - - - Gets the internal stream. - - - - - Gets or sets the data. - - The modifications of the returned stream - have no impact on the real data. - - - - Gets or sets compression flag. - - true if compress; otherwise, false. - - - - Gets a value indicating whether the object was encrypted. - - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - Class used for implementing Advanced Encryption Standard algorithm. - - - - - Initializes a new instance of the Aes class. - - Key size. - Key bytes - - - - Encipher 16 bit input - - 16 bit Input - Output value - - - - Decipher 16-bit input - - - - - - - Dump - - - - - Dump key. - - - - - - Dump two by two. - - - - - - - Possible key sizes. - - - - - 128-bit. - - - - - 192-bit. - - - - - 256-bit. - - - - - Implements both the 128 bit and 256 bit AES encryption. - - - - - Block size for 128 bit encryption - - - - - Aes encryptor - - - - - Cypher Blocking Chain vector - - - - - vector that represents next block of the Chain - - - - - Offset of the initialization vector. - - - - - Buffer containing the initialization vector - - - - - Reprents the current process either encryption/decryption - - - - - Initializes a new instance of the AesEncryptor class. - - - - - Does the initial AES encryption process in CBC mode. - - input data stream. - Offset of input stream. - length of the input stream. - output encrypted stream. - input data stream. - - - - Does the final encryption after padding (PKCS7 standards). - - output encrypted stream. - current offset of the output stream. - - - - Calculates the correct block size for the given input data length - - length of the data. - - - - Calculates the length for padding - - length of the data. - - - - Does Cypher Blocking chain operation and calls for encryption. - - input data stream. - Offset of input stream. - output encrypted stream. - current offset of the output stream. - - - - Add padding in the PKCS7 standards. - - input data. - offset where the padding has to be done. - - - - Checks for the padding added in the encrypted cypher. - - input data. - - - - Get DER ecoded byte - - - - - - Represents the tag of the AsnObject - - - - - Stream used for encoding - - - - - Creates a new instance of the Asnobject - - - - - Creates a new instance of the Asnobject - - - - - - Encodes the AsnObject - - Input bytes - Encoded bytes - - - - Get the DER encoded bytes - - - - - - Calculates the correct length of the encoded bytes - - - - - - Represents the Asn1Boolean value - - - - - Creates a new instance of the As1Boolean object - - boolean value - - - - Creates a new instance of the As1Boolean object - - Bytes containg the boolean value - - - - Converts the boolean value to bytes - - Asn1Boolean object in bytes - - - - Encodes as Asn1object - - Encoded bytes - - - - Gets the vector list count - - - - - Builds the Asnobjects using the tag in the stream - - Tag of the Object - Tag number of the AsnObject - byte length - - - - - Builds the Asnobjects - - - - - - Represents the Asn1Integer - - - - - Creates a new instance of the As1Integer - - Asn1Integer value - - - - Returns the integer - - Encoded Bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Represernts the ASN1Null object - - - - - Returns null bytes - - null bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Seperator in the Oid - - - - - Represents the object identifier string - - - - - Creates a new instance of the Asn1ObjectIdentifier - - Oid String - - - - Creates a new instance of the Object Indentifier - - Oid in bytes - - - - Parses the Oid string and converts it to bytes - - Oid in bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Creates the Oid String from the input bytes - - - Oid String - - - - Represents the final output stream - - - - - Creates a new instance of the Asn1OutputStream - - - - - Parses the given time stamp token - - AsnObject, either a sequence or set - Encoded bytes - - - - Parses the time stamp token with the given sequence - - Asnobject, either a sequence or set - Encoded bytes - - - - Calculates the correct output length for the given bytes - - input bytes - - - - object containing the Asn1Objects - - - - - Creates a new instance of the Asn1Sequence - - - - - Creates a new instance of the Asn1Sequence - - List containing the AsnObjects - - - - Encodes as Asn1Object - - Encoded bytes - - - - Returns the Asn1Objects in the sequence - - - - - Encodes as Asn1Object - - Encoded bytes - - - - AsnSequence which represents the Algorithm - - - - - Creates a new instance of the AlgorithmIdentifier class - - Object Identifeier - parameters - - - - Encodes as Asn1Object - - Encoded bytes - - - - for when the public key is raw bits... - - - - - To be signed - - - - - Return our time as DateTime. - - A date time. - - - - Get the public key of the subject of the certificate. - - The public key parameters. - - - - Return a Der encoded version of this certificate. - - A byte array. - - - - Create loading data from byte array. - - - - - - List of Asn Tags. - http://www.obj-sys.com/asn1tutorial/node124.html - - - - - Represents Cipher Block Chaining Mode - - - - - Initilaize the cipher - - - - - - - Size of the cipher - - - - - - Process a block - - - - - - - - - - Reset the cipher to the same state as it was after the last init. - - - - - Algorithm name - - - - - Indicates whether this cipher can handle partial blocks. - - - - - Returns a ObjectIdentifier for a give encoding. - - - - - - - Add more seed material to the generator. - - - - - - Add more seed material to the generator. - - - - - - Fill byte array with random values. - - - - - - Fill byte array with random values. - - - - - - - - initialize the cipher - - - - - - - Get the input size - - - - - - Get output size - - - - - - Process blocks - - - - - - - - - Name of the algorithm - - - - - Returns the size in bytes - - - - - - Returns the buffer length - - - - - - Updates the message digit - - - - - - Updates the message digit - - - - - - - - Retruns the final dighit values - - - - - - - - Reset - - - - - Retuns the agorithm name - - - - - Initialize the padding - - - - - - Add padding - - - - - - - - Pad count - - - - - - - get the padding name - - - - - Algorithm available for signatures since PDF 1.3 - - - - - Algorithm available for signatures since PDF 1.6 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Maps the digest IDs with the human-readable name of the digest algorithm. - - - - - Maps the name of a digest algorithm with its ID. - - - - - Cryptographic Message Syntax - - - - - CMS Advanced Electronic Signatures - - - - - Represent RSA Message digest signer - - - - - Signer Utility class contains methods that can not be specifically grouped into other classes. - - - - - Represents the Certificate object. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create new PDF certificate instance. - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "syncfusion"); - //Create new PDF signature instance. - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF certificate instance. - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "syncfusion") - 'Create new PDF signature instance. - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - User's crypt key set. - - - - - The high word of the dwFlags parameter. - - - - - The high word of the dwFlags parameter. - - - - - The high word of the dwFlags parameter - - - - - The high word of the dwFlags parameter - - - - - Encoding type. - - - - - Encoding type. - - - - - Provider being used. - - - - - Provider being used. - - - - - Encoding type. - - - - - High-word and low-word values combined using a bitwise OR operation. - - - - - Structure type. - - - - - CERT_RDN attribute. - - - - - Structure contains information for signing messages using a specified signing certificate context. - - - - - Certificate's version. - - - - - Certificate's serial number. - - - - - Certificate's issuer name. - - - - - Certificate's subject name. - - - - - Certificate's structure. - - - - - Signature length. - - - - - Date and time before which the certificate is not valid. - - - - - Date and time after which the certificate is not valid. - - - - - Initializes a new instance of the class with the path to the pfx file and the password. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The path to pfx file. - The password for pfx file. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file and the password. - - This constructor is not supported in WinRT and Silverlight. - The path to pfx file. - The password for pfx file. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file,password and storageflag - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The path to pfx file. - The password for pfx file. - The private key storage flag. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file,password and storageflag - - This constructor is not supported in WinRT and Silverlight. - The path to pfx file. - The password for pfx file. - The private key storage flag. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Creates new pdf certificate object. - - The certificate. - - - - - Initialize the new instance of the class. - - The X509 certificate. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Create a new PDF certificate instance using X509Certificate2 object. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Create a new PDF certificate instance using X509Certificate2 object. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - Gets the type of the certificates by. - - The storage type. - The cert list. - - - - Finds the certificate by subject. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The store type. - The certificate subject. - Returns the instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion"); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion") - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Finds the certificate by subject - - The Store type - Certificate subject - The Certificate store Location - Returns the instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the Store location. - - - - - - - Returns the Store name - - - - - - - - Finds the certificate by serial number. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The certification system store type. - The certificate id. - PDF certificate instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load an existing PDF certificate. - PdfCertificate certificate = new PdfCertificate("certificate.Pfx", "password"); - //Get the serial number of the certificate. - byte[] data = certificate.SerialNumber; - //Get the store certificate. - PdfCertificate storeCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data); - //Creates a digital signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load an existing PDF certificate. - Dim certificate As New PdfCertificate("certificate.Pfx", "password") - 'Get the serial number of the certificate. - Dim data As Byte() = certificate.SerialNumber - 'Get the store certificate. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data) - 'Creates a digital signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes PdfCertificate object. - - - - - Initializes PdfCertificate object. - - - - - Initializes PdfCertificate object. - - Certificate's structure. - - - - Gets signature length. - - Signature length. - - - - Gets signature value. - - Signature string. - Signature value. - - - - Retrieves data from the file. - - Path to the file. - Data from the file if found, null otherwise. - - - - Converts FILETIME to DataTime. - - FILETIME struct. - DateTime struct. - - - - Decodes a structure. - - Code structure. - Decode value. - - - - Gets the certificate issuer. - - The handle of certificate context. - - - - - Checks whether arrays of bytes are equal. - - First array. - Second array. - True if data are equal, False otherwise. - - - - - Gets the serial number of a certificate.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The serial number of the certificate. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load an existing PDF certificate. - PdfCertificate certificate = new PdfCertificate("certificate.Pfx", "password"); - //Get the serial number of the certificate. - byte[] data = certificate.SerialNumber; - //Get the store certificate. - PdfCertificate storeCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data); - //Creates a digital signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load an existing PDF certificate. - Dim certificate As New PdfCertificate("certificate.Pfx", "password") - 'Get the serial number of the certificate. - Dim data As Byte() = certificate.SerialNumber - 'Get the store certificate. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data) - 'Creates a digital signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - - - - Certificate's structure. - - - - - The Syncfusion.Pdf.Security namespace contains classes for creating protected PDF document. - - - - - Represents a digital signature used for signing a PDF document. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Holds signature dictionary. - - - - - Holds pdf signature field. - - - - - Holds pdf Loaded signature field. - - - - - Holds pdf certificate. - - - - - Reason of signing. - - - - - Page on which signature field is initialized. - - - - - The CPU host name or physical location of the signing. - - - - - Information provided by the signer to enable a recipient to contact - the signer to verify the signature; for example, a phone number. - - - - - Holds a value which indicates certefication of the document. - - - - - Permissions of the certificated document. - - - - - Holds timestamping server - - - - - Document that holds page and this signature. That document should be signed. - - - - - Indicates whether the signature corresponds to signature field or not. - Note : We draw appearance in the case of signature field. - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Initializes a new instance of the class with the page, certificate and the signature name. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The current pdf page where signature will be replaced. - The pdf certificate. - Name of the signature. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with the PDF document, page, certificate - and the signature name. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The document, which has the page. - The page. - The certificate. - The name of the signature. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - - Initializes a new instance of the class with the PDF document, page, certificate - , signature name and the signature field. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The loaded document, which has the page. - The page. - The certificate. - The name of the signature. - The name of the loaded signature field - - - // Creates a new document - PdfLoadedDocument doc = new PdfLoadedDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields["Signature"] as PdfLoadedSignatureField; - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature",signatureField); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signatureField as PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields["Signature"],PdfLoadedSignature) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature",signatureField) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - - Handles the BeginSave event of the catalog document. - NOTE: Needed for certifying pdf document. - - The source of the event. - The instance containing the event data. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets the signature Appearance.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A object defines signature`s appearance. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - PdfAppearance appearance = signature.Appearence; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - Dim appearance As PdfAppearance = signature.Appearence - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets the signature Appearance.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A object defines signature`s appearance. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - PdfAppearance appearance = signature.Appearence; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - Dim appearance As PdfAppearance = signature.Appearence - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets signature location on the PDF page. - - This porperty is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Location = new PointF(100, 200); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Location = New PointF(100, 200) - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets bounds of the signature. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Location = new PointF(100, 200); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Location = New PointF(100, 200) - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets information provided by the signer to enable a recipient to contact - the signer to verify the signature; for example, a phone number. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.ContactInfo = "Syncfusion"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.ContactInfo = "Syncfusion" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets reason of signing. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Reason = "PDF is signed"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Reason = "PDF is signed" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the physical location of the signing. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.LocationInfo = "US"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.LocationInfo = "US" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets a value indicating certificate document or not. - NOTE: Works only with Adobe Reader 7.0.8 or higher. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - certificate document if true. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Certificated = true; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Certificated = True - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the permission for certificated document. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The document permission. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.DocumentPermissions = PdfCertificationFlags.AllowComments; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.DocumentPermissions = PdfCertificationFlags.AllowComments - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the signing certificate. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.ContactInfo = "Syncfusion"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.ContactInfo = "Syncfusion" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets a value indicating whether signature visible or not.[Read-Only] - - Signature can be set as invisible when its size is set to empty. This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Visible = false; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Visible = False - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets time stamping server unique resource identifier. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Add time stamp. - signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Add time stamp. - signature.TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets pdf signature field. - - - - - Gets whether to draw signature appearance or not. - - - - - Represents signature dictionary. - - - - - Name of type - - - - - Name of the filter. - - - - - Name of the filter. - - - - - Name of the document type. - - - - - Name of the taransformation parameters. - - - - - Holds pdf document for siging. - - - - - Holds pdf signature object. - - - - - Holds pdf certificate object. - - - - - First range length; - - - - - Second range index. - - - - - Start position byte range. - - - - - Position of the digest value for docMDP method. - - - - - Position of the digest value for FieldMDP method. - - - - - Internal variable to store dictionary. - - - - - Identifying the certificate chain - - - - - Representing the PDF stream - - - - - Inicates the range values - - - - - Creates new pdf signature dictionary object. - - The pdf document for signing. - The pdf signature. - The pdf certificate. - - - - Creates new pdf signature dictionary object. - - The pdf document for signing. - - - - Initializes a new instance of the class with specified document and signature. - - The pdf document for signing. - The signature to be added into the dictionary - - - - Adds required items. - - - - - Adds optional items. - - - - - Adds the location. - - - - - Adds the contact info. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds optional items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Allow single instance of MDP signature. - - true if allow; otherwise, false. - - - - - - Adds the certification dictionary. - - The writer. - - - - Event handler of document saved. - - Sender of the event. - Event data. - - - - Saves range item. - - Writer object. - item value. - Position for save. - Point for save next item. - - - - Adds the certefication reference. - - - - - Creates timestamp request in ASN.1 format. - - SHA1 hash of data which need to be timestamped. - Stream where request will be written. - Request length - - - - Handles the BeginSave event of the pdf signature dictionary object. - - The source of the event. - The events arguments. - - - - Gets or sets a value indicating whether this is archive. - - true if archive; otherwise, false. - - - - Gets the element. - - - - - - Computing hash for Pdf digital signature. - - - - - Array of objects for hashing. - - - - - Contains ID's of Pdf objects. - - - - - Creating hashing object. - - - - - Hashes the document. - - The PdfDocument. - The hash byte array. - - - - Hashes the signature field. - - The page where signature is located. - - - - - Hashes the dictionary item. - - The PdfDictionary. - The dictionary item. - The crypto context. - The list of the Pdf objects. - - - - Hashes the name of the dictionary. - - The PdfDictionary. - The name of the dictionary. - The crypto context. - The list of the Pdf objects. - Is dictionary inheritable. - If dictionary is null then hash - either null. - - Returns state of the hashing. - - - - - Hashes the Pdf object. - - The object to hash. - The crypto context. - The list of the Pdf objects. - - - - Hashes the page. - - The current page for hashing. - The crypto context. - The list of the Pdf objects. - - - - Hashes the pages. - - The collection of Pdf pages. - The crypto context. - The list of the Pdf objects. - - - - Hashes the field. - - The PdfField. - The crypto context. - The list. - - - - Hashes the action. - - The PdfAction. - The crypto context. - The list of the Pdf objects. - - - - Hashes the annotations. - - The current page. - The crypto context. - The list of the Pdf objects. - - - - Hashes the annotation. - - The dictionary. - The crypto context. - The list of the Pdf objects. - - - - Hashes the embedded files. - - The dictionary. - The crypto context. - The list of the Pdf objects. - - - - Converts little endian characters to big endian. - - The input buffer. - - - - - Specifies the name of an icon to be used in displaying the sound annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Sets the sound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Sets the sound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Speaker icon of sound link. - - - - - Microphone icon of sound link. - - - - - Specifies the type of icon to be used in displaying file attachment annotations. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.jpg"); - //Set the Attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.jpg") - 'Set the Attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Specifies the enumeration of the annotation flags. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Set the annotation flags to document annotation. - documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate; - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Set the annotation flags to document annotation. - documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Default value. - - - - - Represents invisible annotation flag's key. - - - - - Represents hidden annotation flag's key. - - - - - Represents print annotation flag's key. - - - - - Represents annotation flag's key with no zooming. - - - - - Represents annotation flag's key with no rotation. - - - - - Represents annotation flag's key with no view. - - - - - Represents read only annotation flag's key. - - - - - Represents locked annotation flag's key. - - - - - Annotation flag's key with no toggle view. - - - - - Specifies the enumeration of popup annotation icons. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates note popup annotation. - - - - - Indicates comment popup annotation. - - - - - Indicates help popup annotation. - - - - - Indicates insert popup annotation. - - - - - Indicates key popup annotation. - - - - - Indicates new paragraph popup annotation. - - - - - Indicates paragraph popup annotation. - - - - - Specifies the enumeration of rubber stamp annotation icons. - - - - //Load an existing document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.Pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Set the icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - loadedDocument.Save("Output.pdf"); - //close the document - loadedDocument.Close(true); - - - 'Load an existing document. - Dim loadedDocument As New PdfLoadedDocument("Input.Pdf") - 'Gets the annotation from loaded document. - Dim rubberStampAnnotation As PdfLoadedRubberStampAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedRubberStampAnnotation) - 'Set the icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - loadedDocument.Save("Output.pdf") - 'close the document - loadedDocument.Close(True) - - - - - - Indicates approved rubber stamp annotation - - - - - Indicates AsIs rubber stamp annotation - - - - - Indicates confidential rubber stamp annotation - - - - - Indicates departmental rubber stamp annotation - - - - - Indicates draft rubber stamp annotation - - - - - Indicates experimental rubber stamp annotation - - - - - Indicates expired rubber stamp annotation - - - - - Indicates final rubber stamp annotation - - - - - Indicates for comment rubber stamp annotation - - - - - Indicates for public release rubber stamp annotation - - - - - Indicates not approved rubber stamp annotation - - - - - Indicates not for public release rubber stamp annotation - - - - - Indicates sold rubber stamp annotation - - - - - Indicates top secret rubber stamp annotation - - - - - Specifies the line ending style to be used in the Line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation linkAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond; - //Add this annotation to a new page. - page.Annotations.Add(linkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim linkAnnotation As New PdfLineAnnotation(points, "Line Annotation") - linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond - 'Add this annotation to a new page. - page.Annotations.Add(linkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Square - - - - - Indicates Circle - - - - - Indicates Diamond - - - - - Indicates OpenArrow - - - - - Indicates ClosedArrow - - - - - Indicates None - - - - - Indicates ROpenArrow - - - - - Indicates Butt - - - - - IdicaIndicatestes RClosedArrow - - - - - Indicates Slash - - - - - Specifies the line border Style of the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF inkAnnotationBounds = new RectangleF(10, 40, 30, 30); - //To specify the line points - List(float) points = new List(float) { 50, 50, 30, 30, 40, 40 }; - //Create a new line annotation. - PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(inkAnnotationBounds, points); - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the line border style. - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Add this annotation to a new page. - page.Annotations.Add(inkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim inkAnnotationBounds As New RectangleF(10, 40, 30, 30) - 'To specify the line points - Dim points As New List(Of Single) (New Single() {50, 50, 30, 30, 40, 40}) - 'Create a new line annotation. - Dim inkAnnotation As New PdfInkAnnotation(inkAnnotationBounds, points) - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the line border style. - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Add this annotation to a new page. - page.Annotations.Add(inkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Solid - - - - - Indicates Dashed - - - - - Indicates Beveled - - - - - Indicates Inset - - - - - Indicates Underline - - - - - Specifies the Line Intent Style is to be used in the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the pdf line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the pdf line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Line Arrow as intent of the line annotation - - - - - Indicates LineDimension as intent of the line annotation - - - - - Specifies the Line Caption Type is to be used in the Line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Inline as annotation caption positioning - - - - - Indicates Top as annotation caption positioning - - - - - Specifies the Style of the Text Markup Annotation - - - - //Load an existing document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the pdf text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Save the document. - loadedDocument.Save("Output.pdf"); - //close the document - loadedDocument.Close(true); - - - 'Load an existing document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedTextMarkupAnnotation) - 'Sets the pdf text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Save the document. - loadedDocument.Save("Output.pdf") - 'close the document - loadedDocument.Close(True) - - - - - - The Text Markup Annotation Type is Highlight. - - - - - The Text Markup Annotation Type is Underline. - - - - - The Text Markup Annotation Type is Squiggly. - - - - - The Text Markup Annotation Type is StrikeOut. - - - - - Specifies the annotation types. - - - - - Highlight type annotation. - - - - - Underline type annotation. - - - - - StrikeOut type annotation. - - - - - Squiggly type annotation. - - - - - AnnotationStates type. - - - - - TextAnnotation type. - - - - - LinkAnnotation type. - - - - - DocumentLinkAnnotation type. - - - - - FileLinkAnnotation type. - - - - - FreeTextAnnotation type. - - - - - LineAnnotation type. - - - - - CircleAnnotation type. - - - - - Ellipse type. - - - - - SquareAnnotation type. - - - - - RectangleAnnotation type. - - - - - PolygonAnnotation type. - - - - - PolyLineAnnotation type. - - - - - SquareandCircleAnnotation type. - - - - - PolygonandPolylineAnnotation type. - - - - - TextMarkupAnnotation type. - - - - - CaretAnnotation type. - - - - - RubberStampAnnotation type. - - - - - LnkAnnotation type. - - - - - PopupAnnotation type. - - - - - FileAttachmentAnnotation type. - - - - - SoundAnnotation type. - - - - - MovieAnnotation type. - - - - - ScreenAnnotation type. - - - - - WidgetAnnotation type. - - - - - PrinterMarkAnnotation type. - - - - - TrapNetworkAnnotation type. - - - - - WatermarkAnnotation type. - - - - - TextWebLinkAnnotation type. - - - - - InkAnnotation type - - - - - No annotation. - - - - - Specifies the annotation text intent. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation actionAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - actionAnnotation.MarkupText = "Text Annotation"; - actionAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - actionAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(actionAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim actionAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - actionAnnotation.MarkupText = "Text Annotation" - actionAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - actionAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(actionAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - Class - Class - Class - - - - Represents annotation intent. - - - - - Represents annotation intent. - - - - - Represents the appearance of an annotation's border. - - This class is used to create the annotation border to . Please refer the UG docuemntation link for more details. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border to popup annotation. - popupAnnotation.Border = new PdfAnnotationBorder(4, 0, 0); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border to popup annotation. - popupAnnotation.Border = New PdfAnnotationBorder(4, 0, 0) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Horizontal corner radius. - - - - - Vertical corner radius. - - - - - Width of the border. - - - - - Pdf primitive representing this object. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder() - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified border width. - - A float value specifying the width of the annotation's border. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(4); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder(4) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("AnnotationBorder.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified border width, horizontal and vertical radius. - - A float value specifying the width of the annotation's border. - A float value specifying the horizontal corner radius value. - A float value specifying the vertical corner radius value. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(4, 0, 0); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder(4, 0, 0) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes instance. - - Width of the border. - The horizontal radius. - The vertical radius. - - - - Sets the number. - - The index. - The value. - - - - Gets or sets a horizontal corner radius. - - The horizontal radius of the annotation. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the horizontal radius to popup annotation border. - popupAnnotation.Border.HorizontalRadius = 0; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the horizontal radius to popup annotation border. - popupAnnotation.Border.HorizontalRadius = 0 - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets a vertical corner radius. - - The vertical radius of the annotation. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the vertical radius to popup annotation border. - popupAnnotation.Border.VerticalRadius = 0; - //Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the vertical radius to popup annotation border. - popupAnnotation.Border.VerticalRadius = 0 - 'Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets the width of annotation's border. - - A float value specifying the width of the annotation's border. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationBounds = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationBounds, "Test popup annotation"); - //Set the width to popup annotation border. - popupAnnotation.Border.Width = 4; - //Add popup annotation annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationBounds As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationBounds, "Test popup annotation") - 'Set the width to popup annotation border. - popupAnnotation.Border.Width = 4 - 'Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets PDF primitive representing this object. - - - - - Represents an attachment annotation of the PDF document. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.png"); - //Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Icon of the annotation. - - - - - File specification of the annotation. - - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.jpg"); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg") - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - A byte array specifying the content of the annotation's embedded file. - If both FileName and FileContent are specified, the FileContent takes precedence. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Load the image as bytes - byte[] imageBytes = File.ReadAllBytes("Input.jpg"); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.jpg", imageBytes); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Load the image as bytes - Dim imageBytes() As Byte = File.ReadAllBytes("Input.jpg") - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", imageBytes) - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - The stream specifying the content of the annotation's embedded file. - If both FileName and FileContent are specified, the FileContent takes precedence. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Load the image as stream. - FileStream stream = new FileStream(@"Input.jpg", FileMode.Open); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", stream); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Load the image as stream. - Dim stream As New FileStream("Input.jpg", FileMode.Open) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", stream) - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Initializes object. - - - - - Saves annotation object. - - - - - Gets or Sets the attachment's icon. - - A enumeration member specifying the icon for the annotation when it is displayed in closed state. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.png"); - //Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - A string value specifying the full path to the file to be embedded in the PDF file. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.wav"); - //Set the file name. - attachmentAnnotation.FileName = "input.wav"; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the file name. - attachmentAnnotation.FileName = "input.wav" - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Represents an annotation object with holds link on another location within a document. - - This class is used to navigate the specific destination within the document. Please refer the UG docuemntation link for more details. - - - //Create the PDF Document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Set the pdf destination. - documentAnnotation.Destination = new PdfDestination(page2); - //Set the pdf destination location. - documentAnnotation.Destination.Location = new Point(10, 0); - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF Document - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Set the pdf destination. - documentAnnotation.Destination = New PdfDestination(page2) - 'Set the pdf destination location. - documentAnnotation.Destination.Location = New Point(10, 0) - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Destination of the annotation. - - - - - Initializes new instance with specified bounds. - - The bounds of the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Set the pdf destination. - documentAnnotation.Destination = new PdfDestination(page2); - //Set the pdf destination location. - documentAnnotation.Destination.Location = new Point(10, 0); - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Set the pdf destination. - documentAnnotation.Destination = New PdfDestination(page2) - 'Set the pdf destination location. - documentAnnotation.Destination.Location = New Point(10, 0) - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes new instance with specified bounds and destination. - - The bounds of the annotation. - The destination of the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Create a new pdf destination. - PdfDestination destination = new PdfDestination(page2); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle, destination); - //Set the annotation text. - documentAnnotation.Text = "Document link annotation"; - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Create a new pdf destination. - Dim destination As New PdfDestination(page2) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle, destination) - 'Set the annotation text. - documentAnnotation.Text = "Document link annotation" - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Saves annotation object. - - - - - - Represents the annotation link to an external file. - - This class is used to link the external file to PDF document. Please refer the UG docuemntation link for more details. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new PDF file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new PDF file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Internal variable to store file launch action. - - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new pdf file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new pdf file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Saves annotation object. - - - - A string value specifying the full path to the file to be embedded. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new PDF file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Get the file name. - string fileName = fileLinkAnnotation.FileName; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new PDF file link annotation. - Dim fileLinkAnnotation As PdfFileLinkAnnotation = New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Gets the file name. - Dim fileName As String=fileLinkAnnotation.FileName - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(true); - - - Class - - - - Gets or sets the action. - - The action to be executed when the annotation is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, "input.png"); - //Set an action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "input.png") - 'Set an action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - - Type of the destination. - - - - - Zoom factor. - - - - - Location of the destination. - - - - - Parent page reference. - - - - - Pdf primitive representing this object. - - - - - Indicates whether destination is valid. - Destination is not valid if it has null location or zoom - otherwise it is valid. - - - - - Initializes a new instance of the class with specified page. - - The page where the destination should be placed. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified page base and location. - - The page where the destination should be placed. - The location of the page. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Sets the validation. - - if it is valid, set to true. - - - - Translates co-ordinates to PDF co-ordinate system (lower/left). - - The page. - Point in left/top co-ordinate system. - - Co-ordinates to PDF co-ordinate system (lower/left). - - - - - Infills array by correct values. - - - - - Initializes instance. - - - - - Gets or sets zoom factor. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the zoom factor. - destination.Zoom = 100; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the zoom factor. - destination.Zoom = 100 - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets or sets a page where the destination is situated. - - - - - - Gets or sets mode of the destination. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the destination mode. - destination.Mode = PdfDestinationMode.FitToPage; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination. - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the destination mode. - destination.Mode = PdfDestinationMode.FitToPage - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets or sets a location of the destination. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Set the location of the destination. - destination.Location = new PointF(20, 20); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Set the location of the destinatioin. - destination.Location = new PointF(20, 20) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets a value indicating whether this instance is valid. - - true if this instance is valid; otherwise, false. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Gets a value indicating whether this instance is valid. - bool isValid = destination.IsValid; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Gets a value indicating whether this instance is valid. - bool isValid = destination.IsValid - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets pdf primitive representing this object. - - - - - Represents a base class for popup annotation which can be either in open or closed state. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates whether annotation is open or not. - - - - - Type of the icon of the annotation. - - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(); - popupAnnotation.Text = "Test popup annotation"; - popupAnnotation.Bounds = rectangle; - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation() - popupAnnotation.Text = "Test popup annotation" - popupAnnotation.Bounds = rectangle - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified bounds. - - RectangleF structure that specifies the bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle); - popupAnnotation.Text = "Test popup annotation"; - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle) - popupAnnotation.Text = "Test popup annotation" - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified bounds and annotation text. - - RectangleF structure that specifies the bounds of the annotation. - The string specifies the annotation text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified popup comment window bounds and bool for represents popup. - - RectangleF structure that specifies the bounds of the popup annotation comment window. - Boolean indivate popup comment window - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Flatten annotation Icon - - the annotation's subject text - - - - - Gets or sets value whether annotation is initially open or closed. - - - True if the annotation is intially open, otherwise false. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - //Set the Open to popupAnnotation. - popupAnnotation.Open = true; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - 'Set the Open to popupAnnotation. - popupAnnotation.Open = True - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - - Represents the sound annotation. - - This class is used to play a sound clip in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo - soundAnnotation.Sound.Bits = 16 - soundAnnotation.Color = New PdfColor(Color.Red) - 'Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Type of icon of the sound link. - - - - - Internal variable to store sound. - - - - RectangleF structure that specifies the bounds of the annotation. - The string specifies the file name of the sound annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Set the pdf sound - soundAnnotation.Sound = New PdfSound("Input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Saves instance. - - - - - Gets or sets the icon to be used in displaying the annotation. - - The enumeration member specifying the icon for the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo - soundAnnotation.Sound.Bits = 16 - soundAnnotation.Color = New PdfColor(Color.Red) - 'Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the sound. - - The object specified a sound for the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Set the pdf sound - soundAnnotation.Sound = New PdfSound("Input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - The string specifies the file name of the sound annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Gets the file name. - string fileName = soundAnnotation.FileName; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Gets the file name. - Dim fileName As String = soundAnnotation.FileName - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the Uri annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store acton for the annotation. - - - - - Initializes a new instance of the class with specified bounds. - - RectangleF structure that specifies the bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - ' Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds and Uri. - - RectangleF structure that specifies the bounds of the annotation. - unique resource identifier path. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes annotation object. - - - - - Gets or sets the Uri address. - - The string value which contains Uri address. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the action. - - The object specifies the action of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Creates a new Sound action - PdfSoundAction soundAction = new PdfSoundAction(@"Input.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - uriAnnotation.Action = soundAction; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - ' Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Creates a new Sound action - Dim soundAction As New PdfSoundAction("Input.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9f - uriAnnotation.Action = soundAction - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Defines data compression level. - - Default value is Normal. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set document compression level - doc.Compression = PdfCompressionLevel.BestSpeed; - //Obtain PdfGraphics object. - PdfGraphics g = page.Graphics; - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create pen with green color. - PdfPen pen = new PdfPen(System.Drawing.Color.Green); - //Create brush with black color. - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - RectangleF rect = new RectangleF(100, 100, 200, 100); - //Draw text in the new page. - g.DrawString("Simple Rectangle", font, PdfBrushes.DarkBlue, new PointF(310, 255)); - //Draw rectangle in the new page. - g.DrawRectangle(pen, brush, rect); - //Save the document. - doc.Save("CompressionLevel.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set document compression level. - doc.Compression = PdfCompressionLevel.BestSpeed - 'Obtain PdfGraphics object. - Dim g As PdfGraphics = page.Graphics - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create pen with green color. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Green) - 'Create brush with black color. - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - Dim rect As RectangleF = New RectangleF(100, 100, 200, 100) - 'Draw text in the new page. - g.DrawString("Simple Rectangle", font, PdfBrushes.DarkBlue, New PointF(310, 255)) - 'Draw rectangle in the new page. - g.DrawRectangle(pen, brush, rect) - 'Save document to disk. - doc.Save("CompressionLevel.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - Class - - - - - Pack without compression. - - - - - - Use high speed compression, reduce of data size is low. - - - - - - Something middle between normal and BestSpeed compressions. - - - - - - Use normal compression, middle between speed and size. - - - - - - Pack better but require a little more time. - - - - - - Use best compression, slow enough. - - - - - - Enumerator that implements compression level. - - - - - - No compression. - - - - - - Compresses data using the zlib or deflate compression method, - reproducing the original text or binary data. - - - - - - Compresses data using the LZW compression method, reproducing - the original text or binary data. - - - - - - Compresses data using the ASCII85 compression method, reproducing - the original text or binary data. - - - - - - Represents supported stream filters. - - - - - - Decompresses data encoded using a DCT (discrete cosine transform) - technique based on the JPEG standard, reproducing image sample - data that approximates the original data. - - - - - - Decompresses data encoded using the zlib / deflate - compression method, reproducing the original text or binary - data. - - - - - Class for default compressor. Default compressor does not - compress data. - - - - - - Initializes a new instance of the class. - - - - - Compresses bytes data. - - Bytes data that should be compressed. - Compressed bytes data. - - - - - Compresses stream data. - - Stream data that should be - compressed. - Compressed streams data. - - - - - Compresses string data. - - String data that should be compressed. - Compressed string data. - - - - - Decompresses string data. - - String data that should be decompressed. - Decompressed bytes data. - - - - - Decompresses bytes data. - - Bytes data that should be decompressed. - Decompressed bytes data. - - - - - Decompresses stream data. - - Stream data that should be - decompressed. - Decompressed stream data. - - - - - Gets the name of the compressor in PDF format. - - - - - - - Gets the type of the compressor. - - - - - - - Compresses data using the LZW compression - method, reproducing the original text or binary data. - - - - - EndOfData marker. - - - - - Clear-table marker. - - - - - Start code marker. - - - - - The marker to set the dictionary to 10 bits code length. - - - - - The marker to set the dictionary to 11 bits code length - - - - - The marker to set the dictionary to 12 bits code length - - - - - Table for codes (dictionary). - - - - - Input data. - - - - - Output data. - - - - - Table index. - - - - - The number of bits per code. - - - - - Byte read. - - - - - Next data. - - - - - Nex bits. - - - - - The size of the table. - - - - - IsEarlyChanged of the LzwCompressor, which is set to true by default - - - - - Initializes a new instance of the class. - - - - - Decompresses the specified input data. - - The input data. - The output data. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Compresses stream data. - - Stream data to be compressed. - Compressed streams data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - decompressed bytes data - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Initializes the data table. - - - - - Writes the code to output stream. - - The code. - - - - Adds the code to table. - - The old bytes. - The new byte. - - - - Adds the code to table. - - The data. - - - - Add new data to the olddata array. - - The old data. - The new data. - Result data array. - - - - News the code. - - code - - - - Gets the Type of the compressor. - - - - - - Gets name of compressor in PDF format. - - - - - - PdfPngFilter provides methods that allows to restore original data - being modified by similar filter or modify data to better compression ratio. - - - - - Required for type cast. - - - - - Delegate for the sub filter. - - - - - Delegate for the up filter. - - - - - Delegate for the average filter. - - - - - Delegate for the Paeth filter. - - - - - Delegate for the restore filter. - - - - - Modifies the data by the filter of type 'type'. - - The data to modify. - Bytes per row. - The type of the filter. - The modified data. - - - - Retrieves the original data from the modified. - - The modified data. - Bytes per row. - The original data. - - - - Performs actual compression or decompression. - - The original data buffer. - The BPR. - The filter. - if it is pack, set to true - - - - - Modifies a row by the Sub algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Up algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Average algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Paeth algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Retrieves original data for a single row. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row using none filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row using the Sub filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row compressed by the Up filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompress a row compressed by the Average algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Unpacks a row packed by the Paeth algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Returns the Paeth predictor. - - Left pixel. - Above pixel. - Upper left pixel. - The value of the Paeth predictor. - - - - Defines Png Filtern Type. - - - - - None compression. - - - - - Sub compression - - - - - Up compression - - - - - Average compression - - - - - Paeth compression - - - - - Used to call a row filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Compresses data using the zlib / deflate compression - method, reproducing the original text or binary data. - - - - - Default buffer size for decompression. - - - - - Name of the compressor. - - - - - Level of compression. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The level. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses stream data. - - Stream data. - Compressed streams data. - - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - Decompressed bytes data. - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Gets name of compressor in PDF format. - - - - - Gets type of compressor. - - - - - Gets encoding value for this compressor. - - - - - Gets or sets level of compression. - - - - - Represents internal catalog of the Pdf document. - - Class - - - - Internal variable to store collection of sections. - - - - - Internal variable to store collection of attachments - - - - - Internal variable to store viewer's preferences. - - - - - Internal variable to store catalog's names. - - - - - The metadata of the stream. - - - - - Internal variable to store form. - - - - - Loaded form. - - - - - Loaded document. - - - - - Internal variable to store dictionary; - - - - - Internal variable to store portfolio - - - - - No Names - - - - - Internal variable to store StructTreeRoot. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The document. - The catalog dictionary. - - - - Creates the names if there is none. - - - - - Initializes struct tree root. - - - - - Reads Xmp from the document. - - - - - Applies the PDF/X Conformance attributes to the document. - - - - - Clear PdfCatalog - - - - - Gets or sets the viewer preferences. - - The viewer preferences. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - // Save the document - doc.Save("ViewerPreferences.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - doc.ViewerPreferences.PageScaling = PageScalingMode.None - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - ' Save the document - doc.Save("ViewerPreferences.pdf") - - - - - - Gets or setsthe Pdfportfolio - - - - - Returns StructTreeRoot associated with the document. - - - - - Gets or sets the interactive form. - - The form. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - - - - - - Gets the names. - - The names. - - - - Gets the named destinations' dictionary. - - - - - Gets or sets the loaded form. - - - - - Gets or sets the loaded Document. - - - - - Gets or sets the sections, which contain pages. - - - - - Gets or sets the loaded form. - - - - - Gets or sets the metadata. - - The metadata. - - - - Represents a PDF document and can be used to create a new PDF document from the scratch - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Document.pdf"); - //Close the document. - document.Close(true); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Document.pdf"); - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Default margin value. - - - - - Font used in complex objects to draw strings and text when it is not defined explicitly. - - - - - Cache of the objects. - - - - - Helps to lock s_cache to avoid race conditions. - - - - - Internal variable to store template which is applied to each page of the document. - - - - - Internal variable to store document's collection of attachments. - - - - - Internal variable to store document's collection of pages. - - - - - Internal variable to store document's collection of named destinations. - - - - - Indicates whether the document was Pdf Viewer document. - - - - - Internal variable to store document's collection of sections. - - - - - Default page settings. - - - - - Root outline. - - - - - Indicates if the page labels were set. - - - - - Indicates whether the document was encrypted or not. - - - - - Internal variable to store additional document's actions. - - - - - Defines the color space of the document - - - - - The delegade of the progress event handler. - - - - - Local Variable to store the Conformance Level. - - - - - Indicates whether enable cache or not - - - - - Indicates whether enable unique naming or not - - - - - Indicates whether enable threadsafe or not. - - - - - Indicates whether the object was disposed. - - - - - Indicates whether the document is tagged - - - - - Internal variable to store the structure tree - - - - - Internal variable to store the private font collection. - - - - - internal variable to store image collection - - - - - internal varialbe store fonts to avoid multi threading issues - - - - - Initializes a new instance of the class. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Document.pdf"); - //Close the document. - document.Close(true); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Document.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - - - - - Initializes a new instance of the class with the specified . - - The conformance level. - - Not Supported under medium trust environment. This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - To know more about document conformance refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfTrueTypeFont(new Font(FontFamily.GenericMonospace, 12f, FontStyle.Bold)); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Saves the document - document.Save("Document.pdf"); - Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfTrueTypeFont(New Font(FontFamily.GenericMonospace, 12f, FontStyle.Bold)) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - - - Enumeration - - - - Saves the document to the specified output stream. - - The stream object where PDF document will be saved. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200); - // Save the document as a stream - MemoryStream stream = new MemoryStream(); - doc.Save(stream); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200) - ' Save the document as a stream - Dim stream As MemoryStream = New MemoryStream() - doc.Save(stream) - 'Close the document - doc.Close(True) - - - - - - Close the document completely. - - if set to true the document should be disposed completely. - - The document cannot be saved if Close method was invoked. - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush,new PointF(20,20)); - doc.Save("Sample.pdf"); - // Closes the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush,New PointF(20,20)) - doc.Save("Sample.pdf") - ' Closes the document. - doc.Close(True) - - - - - - Releases all the resources used by document instances. - - - The document cannot be saved if Dispose method was invoked. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Loads an Image - Image img = Image.FromFile("input.png"); - PdfImage pdfImg = new PdfBitmap(img); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document. - doc.Save("DisposeOnClose.pdf"); - //Dispose the document - doc.Dispose(); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Loads an Image - Dim img As Image = Image.FromFile("Logo.png") - Dim pdfImg As PdfImage = New PdfBitmap(img) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document. - doc.Save("Dispose.pdf") - 'Dispose the document - doc.Dispose() - - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of this instance. - The resulting clone must be of the same type as or a compatible type to the original instance. - - A new object that is a copy of this instance. - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush,new PointF(20,20)); - // Cloning the document - PdfDocument cloneDoc = doc.Clone() as PdfDocument; - cloneDoc.Save("Clone.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush,New PointF(20,20)) - ' Cloning the document - Dim cloneDoc As PdfDocument = TryCast(doc.Clone(), PdfDocument) - cloneDoc.Save("Clone.pdf") - doc.Close(True) - - - - - - Checks whether license is valid. - - - - - Called when a page is saved. - - The page. - - - - Informs the document that the page labels were set. - - - - - Raises the Progress event. - - The - instance containing the event data. - - - - Checks the pages presence. - - - - - Processes the page labels. - - - - - Resets the progress mechanism. - - - - - Sets the progress mechanism. - - - - - Embeds the RGB ICC ColorProfile to the document to attain PDF/A conformance. - - - - - Get the hash value from the image - - - - - - - Gets the form. - - The proper PdfForm instance. - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - - Occurs when the document is being saved. - - - This event raised on saving the document. It will keep track of the save progress of the document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add new pages to the document. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress); - //Saves the document - document.Save("Document.pdf"); - //Close the document - document.Close(true); - // Event handler for PageAdded event - void document_SaveProgress(object sender, ProgressEventArgs arguments) - { - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)); - } - - - 'Create a new PDF document. - Private document As PdfDocument = New PdfDocument() - 'Add new pages to the document. - Private page As PdfPage = document.Pages.Add() - 'Create font and font style. - Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - AddHandler document.SaveProgress, AddressOf document_SaveProgress - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - ' Event handler for PageAdded event - Private Sub document_SaveProgress(ByVal sender As Object, ByVal arguments As ProgressEventArgs) - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)) - End Sub - - - Delegate - - - - Gets or sets a template to all pages in the document. - - - - //Create a PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Creates a new page. - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom. - doc.Template.Bottom = footer; - //Save the document. - doc.Save("Template.pdf"); - //Close the document. - doc.Close(true); - - - - 'Create a PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template. - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Gray) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom. - doc.Template.Bottom = footer - doc.Save("Template.pdf") - 'Close the document. - doc.Close(True) - - - The specifying the default template for the document. - Class - - - - Gets a value indicating whether the document was PDF viewer document. - - - - - Gets the actions to be performed when the document is opened/closed - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("input.txt", PdfFilePathType.Relative); - document.Actions.AfterOpen = action; - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create and add new launch Action to the document. - Dim action As PdfLaunchAction = New PdfLaunchAction("myAction.txt", PdfFilePathType.Relative) - document.Actions.AfterOpen = action - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - The specifying the document action. - Class - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Gets or sets a value indicates whether the document is auto-tagged or not. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets the collection of pages in the document. - - A object containing the list of document's pages. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Page collection. - PdfDocumentPageCollection pageCollection = doc.Pages; - PdfFont standardFont = new PdfStandardFont(PdfFontFamily.TimesRoman,10); - //Drawing string on first page. - pageCollection[0].Graphics.DrawString("FirstPage", standardFont, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Page collection. - Dim pageCollection As PdfDocumentPageCollection = doc.Pages - Dim standardFont As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman,10) - 'Drawing string on the page. - pageCollection(0).Graphics.DrawString("FirstPage", standardFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - Gets the named destination collection of the document. - - A specifies the document's named destinations. - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create named destination - PdfNamedDestination namedDestination = new PdfNamedDestination("Interactive Feature"); - namedDestination.Title = "Interactive Feature"; - namedDestination.Destination = new PdfDestination(page); - doc.NamedDestinationCollection.Add(namedDestination); - //Save the document - doc.Save("NamedDestination.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create named destination - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Interactive Feature") - namedDestination.Title = "Interactive Feature" - namedDestination.Destination = New PdfDestination(page) - doc.NamedDestinationCollection.Add(namedDestination) - doc.Save("NamedDestination.pdf") - //Close the document - doc.Close(True) - - - Class - - - Gets the collection of the sections in the document. - A object containing the list of document's sections. - - To know more about refer this link . - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - // Create a new section - PdfSection mySection = doc.Sections.Add(); - //Creates a new page - mySection.Pages.Add(); - // Gets the section collection - PdfSectionCollection sectionCollection = doc.Sections; - // Gets the first page from first section - PdfPage page = sectionCollection[0].Pages[0]; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - // Draw the string in first page of the section - page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, new Point(100, 100)); - doc.Save("Sections.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a new section - Dim mySection As PdfSection = doc.Sections.Add() - 'Creates a new page - mySection.Pages.Add() - ' Gets the section collection - Dim sectionCollection As PdfSectionCollection = doc.Sections - ' Gets the first page from first section - Dim page As PdfPage = sectionCollection(0).Pages(0) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - ' Draw the string in first page of the section - page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, New Point(100, 100)) - doc.Save("Sections.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the document's page setting. - - - A object containing the setting for a document`s pages. - - //Create a new document class object. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set page size. - doc.PageSettings.Size = PdfPageSize.A6; - //Set page orientation. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.Save("PageSettings.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document class object. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - 'Set page size. - doc.PageSettings.Size = PdfPageSize.A6 - 'Set page orientation. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.Save("PageSettings.pdf") - 'Close the document. - doc.Close(True) - - - - The changing of the settings doesn't take any effect on the already existing pages. - To know more about refer this link . - - - - - Gets the bookmark collection of the document. - - A specifies the document's bookmark. - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create outline - PdfBookmark bookMark = doc.Bookmarks.Add("InteractiveFeature"); - bookMark.Color = Color.DarkBlue; - bookMark.TextStyle = PdfTextStyle.Bold; - bookMark.Title = "Interactive Feature"; - bookMark.Destination = new PdfDestination(page); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create outline - Dim bookMark As PdfBookmark = document.Bookmarks.Add("InteractiveFeature") - bookMark.Color = Color.DarkBlue - bookMark.TextStyle = PdfTextStyle.Bold - bookMark.Title = "Interactive Feature" - bookMark.Destination = New PdfDestination(page) - doc.Save("Bookmarks.pdf") - //Close the document - doc.Close(True) - - - Class - - - - Gets the attachment collection of the document. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Creates a new page in document - PdfPage page = doc.Pages.Add(); - // Adding an image as attachment - PdfAttachment attachment = new PdfAttachment("Logo.jpg"); - attachment.Description = "Syncfusion Logo"; - attachment.MimeType = "application/jpeg"; - // Add the attachment in document - doc.Attachments.Add(attachment); - //Save the document - doc.Save("Attachment.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Creates a new page in document - Dim page As PdfPage = doc.Pages.Add() - ' Adding an image as attachment - Dim attachment As PdfAttachment = New PdfAttachment("Logo.jpg") - attachment.Description = "Syncfusion Logo" - attachment.MimeType = "application/jpeg" - ' Add the attachment in document - doc.Attachments.Add(attachment) - 'Save the document - doc.Save("Attachment.pdf") - 'Close the document - doc.Close(True) - - - The object contains list of files which are attached in the PDF document. - Class. - - - - Gets the interactive form of the document. - - - To know more about refer this link . - - - - //Create a document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14); - //Create a text box. - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - //Add the textbox in form. - document.Form.Fields.Add(firstNameTextBox); - //Save the document. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a document. - Dim document As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a text box. - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - 'Add the textbox in form. - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - The object contains the list of form elements of the document. - Class - Class - - - - Gets or sets the color space of the document. This property can be used to create PDF document in RGB, Grayscale or CMYK color spaces. - By default the document uses RGB color space. - - This property has impact on the new created pages only. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale; - doc.Save("ColorSpace.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale - doc.Save("ColorSpace.pdf") - 'Close the document - doc.Close(True) - - - The of the document. - Class - - - - Gets collection of the cached objects. - - - - - Gets the Private Font Collection - - - - - Gets the default font. It is used for complex objects when font is - not explicitly defined. - - The default font. - - - - Gets a value indicating whether the document was encrypted. - - true if the document was encrypted; otherwise, false. - - - - get the image collection - - - - - Gets the number of pages. - - - - - Gets or sets the PDF conformance level. - This property can be used to create PDF/A-1b or Pdf_X1A2001 compliant documents. By default is None. - - The ENUM. - - Not Supported under Medium Trust environment. - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Creates a new page and adds it as the last page of the document to the document. - PdfPage page = document.Pages.Add(); - // Create a 'Times New Roman' font - Font font = new Font("Times New Roman", 10); - // Create font with bold font style. - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, new PointF(10, 10)); - //Save document to disk. - document.Save("ConformanceLevel.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - ' Create a page to the document. - Dim page As PdfPage = document.Pages.Add() - ' Create a 'Times New Roman' font - Dim font As Font = New Font("Times New Roman", 10) - ' Create font with bold font style. - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save document to disk. - document.Save("ConformanceLevel.pdf") - 'Close the document - document.Close(True) - - - Class - - - Gets or sets the enable cache. This property is used to cache the fonts. Default value is True. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Diable the font cache - PdfDocument.EnableCache = false; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush, new PointF(20, 20)); - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Diable the font cache - PdfDocument.EnableCache = False - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20.0F - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush, New PointF(20, 20)) - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets boolean value which enables or disables unique resource naming, Default value is true. - - - By default this value will be true, if the uniform resource naming is needed then this value can be set false. - - - - //Disables unique resource naming. - PdfDocument.EnableUniqueResourceNaming = false; - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the colorspace for the document. - graphics.ColorSpace = PdfColorSpace.CMYK; - //Set the transparency of this graphics. - graphics.SetTransparency(0.5f); - //Create new instance for PDF font. - PdfFont font1 = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font1, PdfBrushes.Blue, new PointF(50, 50)); - //Create new instance for PDF font. - PdfFont font2 = new PdfTrueTypeFont(new Font("Arial", 20), true); - //Draw the text. - graphics.DrawString("Hello World!!!", font2, PdfBrushes.Blue, new PointF(50, 100)); - //Create new instance for PDF font. - PdfFont font3 = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font3, PdfBrushes.Blue, new PointF(50, 150)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Disables unique resource naming. - PdfDocument.EnableUniqueResourceNaming = False - 'Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the colorspace for the document. - graphics.ColorSpace = PdfColorSpace.CMYK - 'Set the transparency of this graphics - graphics.SetTransparency(0.5F) - 'Create new instance for PDF font. - Dim font1 As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font1, PdfBrushes.Blue, New PointF(50, 50)) - 'Create new instance for PDF font. - Dim font2 As PdfFont = New PdfTrueTypeFont(New Font("Arial", 20), True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font2, PdfBrushes.Blue, New PointF(50, 100)) - 'Create new instance for PDF font. - Dim font3 As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font3, PdfBrushes.Blue, New PointF(50, 150)) - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - - - - - - - Delegate for the event. - - The sender. - The arguments. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add new pages to the document. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress); - //Saves the document - document.Save("Document.pdf"); - Close the document - document.Close(true); - // Handles the event - void document_SaveProgress(object sender, ProgressEventArgs arguments) - { - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)); - } - - - 'Create a new PDF document. - Private document As PdfDocument = New PdfDocument() - 'Add new pages to the document. - Private page As PdfPage = document.Pages.Add() - 'Create font and font style. - Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - AddHandler document.SaveProgress, AddressOf document_SaveProgress - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - ' Handles the event - Private Sub document_SaveProgress(ByVal sender As Object, ByVal arguments As ProgressEventArgs) - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)) - End Sub - - - - - - Shows the saving progress of the PDF document. - - - - - The Total - - - - - The Current object. - - - - - Initializes a new instance of the class. - - The current index. - The total number. - - - - Initializes a new instance of the class. - - - - - Gets the total number of the elements (pages) that need to be saved. - - - - - Gets the current element (page) index that just was saved. - - The index value increases constantly from 0 to Total. - - - - Gets the progress. - - Progress constantly increases from 0.0 to 1.0. - 1.0 value means that entire document has been saved. - - - - Arguments for event raised after document saving. - - - - - Document's destination stream. - - - - - Initializes a new instance of the class. - - The writer. - - - - Gets document's destination stream. - - - - - A class containing the information about the document. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Interface - Class - Class - - - - Xmp metadata of the document. - - - - - Parent catalog class. - - - - - Author of the document. - - - - - Title of the document. - - - - - The subject of the document. - - - - - Keywords associated with the document. - - - - - If the document was converted to PDF from another format, the name of - the application that created the original document from which it was converted. - - - - - If the document was converted to PDF from another format, the name of the - application that converted it to PDF. - - - - - The date and time the document was created. - - - - - The date and time the document was modified. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store dictionary. - - - - - To store custom keyvalue m_customValue - To store Array of string customValue m_arrayString - - - - - Internal class to add customMetaData. - - - - - Creates a new object. - - - - - Initializes a new instance of the class. - - The dictionary. - The catalog. - - - - Applies to attributes to attain PDF/X1a:2001 conformance. - - - - - Gets or sets the creation date of the PDF document - - The . - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the modification date. - - The . - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the title. - - The title. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the author. - - The author of the document. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the subject. - - The subject. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the keywords. - - The keywords. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the creator. - - The creator. - - - //Create a new document - PdfDocument pdfDoc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = pdfDoc.Pages.Add(); - //Set the document`s information - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - // Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'Set the document`s information. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - ' Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - If the document was converted to PDF from another format, - the name of the application (for example, Acrobat Distiller) - that converted it to PDF. - - The producer of the document. - - - //Create a new document - PdfDocument pdfDoc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = pdfDoc.Pages.Add(); - //Set the document`s information - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - // Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'Set the document`s information. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - ' Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets Xmp metadata of the document. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - Represents the document information in Xmp format. - - - PdfDocument pdfDoc = new PdfDocument(); - PdfPage page = pdfDoc.Pages.Add(); - // Get xmp object. - XmpMetadata xmp = pdfDoc.DocumentInformation.XmpMetadata; - // XMP Basic Schema. - BasicSchema basic = xmp.BasicSchema; - basic.Advisory.Add("advisory"); - basic.BaseURL = new Uri("http://google.com"); - basic.CreateDate = DateTime.Now; - basic.CreatorTool = "creator tool"; - basic.Identifier.Add("identifier"); - basic.Label = "label"; - basic.MetadataDate = DateTime.Now; - basic.ModifyDate = DateTime.Now; - basic.Nickname = "nickname"; - basic.Rating.Add(-25); - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - Dim pdfDoc As PdfDocument = New PdfDocument() - Dim page As PdfPage = pdfDoc.Pages.Add() - ' Get xmp object. - Dim xmp As XmpMetadata = pdfDoc.DocumentInformation.XmpMetadata - ' XMP Basic Schema. - Dim basic As BasicSchema = xmp.BasicSchema - basic.Advisory.Add("advisory") - basic.BaseURL = New Uri("http://google.com") - basic.CreateDate = DateTime.Now - basic.CreatorTool = "creator tool" - basic.Identifier.Add("identifier") - basic.Label = "label" - basic.MetadataDate = DateTime.Now - basic.ModifyDate = DateTime.Now - basic.Nickname = "nickname" - basic.Rating.Add(-25) - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - - - - Class CusotmMetadata used for add CustomMetadata to PDFDictionry - Remove CustomMetadata values - Modify CustomMetadata values - Add CustomMetadata values - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Remove the custom field from CustomMetadataDictionary,Dictionary,CustomSchema - - - - - Gets the the key value at present or not - - - - - Add Cusotm MetaData to CustomMetadataDictionary - - - - - Gets the current count CustomMetadataDictionary - - - - - Gets the dictionary. - - The dictionary. - - - - Defines the way the document is to be presented on the screen or in print. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - doc.ViewerPreferences.PageScaling = PageScalingMode.None - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - Internal variable to store value whether to center document's window. - - - - - Internal variable to store value whether to display window�s title bar. - - - - - Internal variable to store value whether to resize the document�s window - to fit the size of the first displayed page. - - - - - Internal variable to store value whether to hide the viewer application�s - menu bar when the document is active. - - - - - Internal variable to store value whether to hide the viewer application�s - tool bars when the document is active. - - - - - Internal vaiable to store value whether to hide user interface elements - in the document�s window. - - - - - Internal variable to store value how the document should be displayed when opened - - - - - Internal variable to store value specifying the page layout to be used when the - document is opened. - - - - - Internal variable to store value specifying document's catalog. - - - - - Internal variable to store dictionary; - - - - - Internal variable to store value specifying the page scaling mode used while printing. - - - - - Initializes a new instance of the class. - - - - - Initializes new instance. - - Catalog of the document. - - - - A flag specifying whether to position the document�s window in the center of the screen. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether the window�s title bar should display the document title taken - from the Title entry of the document information dictionary. If false, the title bar - should instead display the name of the PDF file containing the document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = true; - doc.ViewerPreferences.DisplayTitle = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = True - doc.ViewerPreferences.DisplayTitle = True - 'Save and close the document - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to resize the document�s window to fit the size of the first - displayed page. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to hide the viewer application�s menu bar when the - document is active. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideMenubar = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideMenubar = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to hide the viewer application�s tool bars when the document is active. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideToolbar = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideToolbar = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A flag specifying whether to hide user interface elements in the document�s window - (such as scroll bars and navigation controls), leaving only the document�s contents displayed. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideWindowUI = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideWindowUI = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A name object specifying how the document should be displayed when opened. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A name object specifying the page layout to be used when the document is opened. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(True) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - Gets or Set the page scaling option to be selected - when a print dialog is displayed for this document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.PageScaling = PageScalingMode.None - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - Gets the element. - - - - - - Class which represents embedded file into Pdf document. - - - - - Internal variable to store file name. - - - - - Internal variable to store file path. - - - - - Internal variable to store mime type. - - - - - Internal variable to store embedded data. - - - - - Internal variable to store specification of the embedded file. - - - - - Internal variable to store stream. - - - - Name of the file. - - - Name of the file. - The data. - - - Name of the file. - The stream. - - - - Initializes an instance. - - - - - Saves an object. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Get attachment's name through names array. - - Attachment's file name. - - - The name of the file. - - - - Gets or sets the path of the file. - - The path of the file. - - - - Gets or sets the data. - - The data. - - - - Gets or sets the type of the MIME. - - The type of the MIME. - - - - Gets the params. - - The params. - - - - Gets the element. - - - - - - Implements PDF Exponential Interpolation Function. - - - - - Implements the base class for all functions. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The internal dictionary. - - - - Gets or sets the domain of the function. - - - - - Gets or sets the range. - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Local variable to store the function result when x = 0. - - - - - Local variable to store the function result when x = 1. - - - - - Local variable to store the interpolation exponent. - - - - - Initializes a new instance of the class. - - init - - - - Initializes a new instance of the class. - - - - - TO calulate the interpolation exponent. - - singleArray1 - - - - - Gets or sets the function result when x = 0. - - - - - Gets or sets the function result when x = 1. - - - - - Gets or sets the Exponent. - - - - - Implements PDF PostScript Calculator Function - - - - - Initializes a new instance of the class. - - - - - Implements PDF Sampled Function. - - - - - Initializes a new instance of the class. - - The domain. - The range. - The sizes. - The samples. - - - - Initializes a new instance of the class. - - The domain, which represents the range of the input values. - The range, which represents the range of the output values. - The sizes. - The number of samples in each dimension. - - - - Initializes a new instance of the class. - - The domain of sampled function. - The range of sampled function. - The sizes. - The samples of sampled function, - which should be in the range. - The bit-per-sample value. - - - - Initializes a new instance of the class. - - - - - Checks the input parameters. - - The domain. - The range. - The sizes. - The samples. - If one of the parameters is null. - If dimentions of the arrays don't agree. - - - - Sets the domain and range. - - The domain. - The range. - - - - Sets the size and values. - - The sizes of the sample values. - The sample values. - - - - Sets the size and values. - - The sizes of the sample values. - The sample values. - - - - Implements PDF Stitching Function. - - - - - Initializes a new instance of the class. - - - - - Specifies the type of Horizontal alignment. - - - - - Specifies the element is aligned to Left. - - - - - Specifies the element is aligned to Center. - - - - - Specifies the element is aligned to Right. - - - - - Specifies the type of Vertical alignment. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the element is aligned to Top. - - - - - Specifies the element is aligned to Middle. - - - - - Specifies the element is aligned to Bottom. - - - - - Specifies the type of horizontal text alignment. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the text is aligned to Left. - - - - - Specifies the text is aligned to Center. - - - - - Specifies the text is aligned to Right. - - - - - Specifies the text as Justified text. - - - - - Represents the text rendering direction. - - - - - Specifies the default text order. - - - - - Specifies the left to right direction. - - - - - Specifies the right to left direction. - - - - - Specifies the text rendering mode. - - - - - Fill text. - - - - - Stroke text. - - - - - Fill, then stroke text. - - - - - Neither fill nor stroke text (invisible). - - - - - The flag showing that the text should be a part of a clipping path. - - - - - Fill text and add to path for clipping (see above). - - - - - Stroke text and add to path for clipping. - - - - - Fill, then stroke text and add to path for clipping. - - - - - Add text to path for clipping. - - - - - Specifies the corner style of the shapes. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line jion. - pen.LineJoin = PdfLineJoin.Bevel; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Set line jion. - pen.LineJoin = PdfLineJoin.Bevel - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The outer edges for the two segments are extended - until they meet at an angle. - - - - - An arc of a circle with a diameter equal to the line width is drawn - around the point where the two segments meet, connecting the outer edges for the two segments. - - - - - The two segments are finished with caps - and the resulting notch beyond the ends of the segments is filled - with a triangle. - - - - - Specifies the line cap style to be used at the ends of the lines. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line cap. - pen.LineCap = PdfLineCap.Round; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - 'Set line cap. - pen.LineCap = PdfLineCap.Round - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The stroke is squared off at the endpoint of the path. There is no - projection beyond the end of the path. - - - - - A semicircular arc with a diameter equal to the line width is - drawn around the endpoint and filled in. - - - - - The stroke continues beyond the endpoint of the path - for a distance equal to half the line width and is squared off. - - - - - Possible dash styles of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Solid line. - - - - - Dashed line. - - - - - Dotted line. - - - - - Dash-dot line. - - - - - Dash-dot-dot line. - - - - - User defined dash style. - - - - - - - Specifies how the shapes are filled. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - - - Nonzero winding number rule of determining "insideness" - of point. - - - - - - - Even odd rule of determining "insideness" of point. - - - - - - - Defines set of color spaces. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale; - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - RGB color space. - - - - - - - CMYK color space. - - - - - - - GrayScale color space. - - - - - Indexed color space used internally. - - - - - Describes the Color intents. - - - - - Colors are represented solely with respect to the light source; - no correction is made for the output medium�s white point - (such as the color of unprinted paper). - - - - - Colors are represented with respect to the combination of - the light source and the output medium�s white point - (such as the color of unprinted paper). - - - - - Colors are represented in a manner that preserves - or emphasizes saturation. - - - - - Colors are represented in a manner that provides a pleasing - perceptual appearance. - - - - - Specifies the blend mode for transparency. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f, PdfBlendMode.HardLight); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F, PdfBlendMode.HardLight) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Selects the source color, ignoring the backdrop. - - - - - Multiplies the backdrop and source color values. - The result color is always at least as dark as either - of the two constituent colors. Multiplying - any color with black produces black; multiplying - with white leaves the original color unchanged. - Painting successive overlapping objects with a color - other than black or white produces progressively darker colors. - - - - - Multiplies the complements of the backdrop and source - color values, then complements the result. The result - color is always at least as light as either of the two - constituent colors. Screening any color with white - produces white; screening with black leaves the original - color unchanged. The effect is similar to projecting - multiple photographic slides simultaneously onto a single screen. - - - - - Multiplies or screens the colors, depending on - the backdrop color value. Source colors overlay - the backdrop while preserving its highlights and - shadows. The backdrop color is not replaced but - is mixed with the source color to reflect the - lightness or darkness of the backdrop. - - - - - Selects the darker of the backdrop and source colors. - The backdrop is replaced with the source where the source - is darker; otherwise, it is left unchanged. - - - - - Selects the lighter of the backdrop and source colors. - The backdrop is replaced with the source where the source - is lighter; otherwise, it is left unchanged. - - - - - Brightens the backdrop color to reflect the source color. - Painting with black produces no changes. - - - - - Darkens the backdrop color to reflect the source color. - Painting with white produces no change. - - - - - Multiplies or screens the colors, depending on the source color value. - The effect is similar to shining a harsh spotlight on the backdrop. - - - - - Darkens or lightens the colors, depending on the source color value. - The effect is similar to shining a diffused spotlight on the backdrop. - - - - - Subtracts the darker of the two constituent colors from the lighter color. - Painting with white inverts the backdrop color; painting with black produces no change. - - - - - Produces an effect similar to that of the Difference mode - but lower in contrast. Painting with white inverts - the backdrop color; painting with black produces no change. - - - - - Creates a color with the hue of the source color and - the saturation and luminosity of the backdrop color. - - - - - Creates a color with the saturation of the source color - and the hue and luminosity of the backdrop color. Painting - with this mode in an area of the backdrop that is a pure - gray (no saturation) produces no change. - - - - - Creates a color with the hue and saturation of - the source color and the luminosity of the backdrop - color. This preserves the gray levels of the backdrop - and is useful for coloring monochrome images or tinting color images. - - - - - Creates a color with the luminosity of the source color - and the hue and saturation of the backdrop color. This - produces an inverse effect to that of the Color mode. - - - - - Specifies the type of the PdfImage. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the image is bitmap. - - - - - Specifies the image is metafile. - - - - - Specifies the types of the page's logical units. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - RectangleF rect = converter.ConvertToPixels(new RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim rect As RectangleF = converter.ConvertToPixels(New RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the Measurement is in centimeters. - - - - - Specifies the Measurement is in picas. A pica represents 12 points. - - - - - Specifies the unit of measurement is 1 pixel. - - Pixel unit is device dependent unit. The result depends on the default Dpi on the machine. - - - - Specifies a printer's point (1/72 inch) as the unit of measure. - - - - - Specifies the inch as the unit of measure. - - - - - Specifies the document unit (1/300 inch) as the unit of measure. - - - - - Specifies the Measurement is in millimeters. - - - - - Specifies the alignment type. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - To fit background image to the cell based on the cell with and height. - - - - - The image is rendered by center of the cell. - - - - - The image is stretched by the percentages required to fit the width and height of the cell. - - - - - The imag is rendered by tile mode. - - - - - Implements structures and routines working with color. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(Color.Red); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(Color.Red) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - Max value of color channel. - - - - - - - Holds RGB colors converted into strings. - - - - - - - Holds Grayscale colors converted into strings for stroking. - - - - - - - Holds Grayscale colors converted into strings for filling. - - - - - - - Holds the system-wide empty PDF color. - - - - - - - Value of Red channel. - - - - - - - Value of Cyan channel. - - - - - - - Value of Green channel. - - - - - - - Value of Magenta channel. - - - - - - - Value of Blue channel. - - - - - - - Value of Yellow channel. - - - - - - - Value of Black channel. - - - - - - - Value of Gray channel. - - - - - - - Alpha channel. - - - - - - - Shows if the color is empty. - - - - - Initializes a new instance of the class with source color - - Source color object. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(new PdfColor(Color.Green)); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(New PdfColor(Color.Green)) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with object - - Source color object. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(Color.Red); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(Color.Red) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with gray value - - Gray value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(0.5f); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(0.5F) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with Red,Green and Blue values. - - Red channel value. - Green channel value. - Blue channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(200, 120, 80); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(200, 120, 80) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The red colour value in the range from 0.0 to 1.0. - The green value in the range from 0.0 to 1.0. - The blue value in the range from 0.0 to 1.0. - - - - - - Creates new object. - - Alpha channel. - Red channel value. - Green channel value. - Blue channel value. - - - - Initializes a new instance of the class with Cyan,Magenta,Yellow and Black channels. - - Cyan channel value. - Magenta channel value. - Yellow channel value. - Black channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(200, 120, 80, 40); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(200, 120, 80, 40) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Creates the Alpha ,Red ,Green, and Blue value of this PDFColor structure. - - ARGB value. - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.LightBlue); - //Get the ARGB value. - int argb = color1.ToArgb(); - Console.WriteLine("ARGB: "+ argb); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.LightBlue) - 'Get the ARGB value. - Dim argb As Integer = color1.ToArgb() - Console.WriteLine("ARGB: " + argb) - - - - - - Implicit operator. - - System.Drawing.Color. - PDFColor. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = System.Drawing.Color.Red; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As PdfColor = System.Drawing.Color.Red - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Implicit operator. - - System.Drawing.Color. - PDFColor. - - - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(200, 120, 80); - //Convert PDF color to System color. - System.Drawing.Color systemColor = pdfColor; - Console.WriteLine("Red: " + systemColor.R + " Green: " + systemColor.G + " Blue: " + systemColor.B); - - - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(200, 120, 80) - 'Convert PDF color to System color. - Dim systemColor As System.Drawing.Color = pdfColor - Console.WriteLine("Red: " + systemColor.R + " Green: " + systemColor.G + " Blue: " + systemColor.B) - - - - - - Operator ==. - - The color 1. - The color 2. - - True if color 1 is equal to color 2; otherwise False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(255, 0, 0); - //Check both the color are equal. - if (color1 == color2) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(255, 0, 0) - 'Check both the color are equal. - If color1 = color2 Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Operator !=. - - The color 1. - The color 2. - - True if color 1 is not equal to color 2; otherwise False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(250, 0, 0); - //Check both the color are equal. - if (color1 != color2) - Console.WriteLine("The colors are not same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(250, 0, 0) - 'Check both the color are equal. - If color1 = color2 Then - Console.WriteLine("The colors are not same.") - End If - - - - - - Determines whether the specified - is equal to the current . - - The to - compare with the current . - - True if the specified is equal - to the current ; otherwise - - False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(253, 0, 0); - //Check both the color are equal. - if(color1.Equals(color2)) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(253, 0, 0) - 'Check both the color are equal. - If color1.Equals(color2) Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Determines if the specified color is equal to this one. - - The color. - - True if the color is equal; otherwise - False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(253, 0, 0); - //Check both the color are equal. - if(color1.Equals(color2)) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(253, 0, 0) - 'Check both the color are equal. - If color1.Equals(color2) Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Serves as a hash function for a particular type, suitable for - use in hashing algorithms and data structures like a hash - table. - - - A hash code for the current . - - - - - - - - Sets RGB color. - - If color stroking. - - Result string. - - - - - Sets Calibrated RGB color. - - - - - - - Sets Calibrated Lab color. - - - - - - - Sets Calibrated Gray color. - - - - - - - Sets Calibrated RGB color. - - - - - - - Sets Calibrated CMYK color. - - - - - - - Sets Calibrated Lab color. - - - - - - - Sets Calibrated Gray color. - - - - - - - - - Sets gray color. - - If color stroking. - - Result string. - - - - - - - Sets CMYK color. - - If color stroking. - - Result string. - - - - - - - Writes RGB colour to string builder. - - The string builder. - If set to True stroke. - - - - - - Writes CMYK color to string builder. - - The string builder. - If set to true stroke; otherwise, false. - - - - - - Writes grayscale color to string builder. - - The string builder. - If set to True stroke. - - - - - - Converts PDFColor to PDF string representation. - - Color space. - If color stroking. - - Result string. - - - - - Converts PDFColor to PDF string representation. - - - - - - - - - - Writes color value to a string builder. - - The string builder. - The color space. - If set to True stroke. - - - - - - Converts RGB to CMYK. - - Red channel value. - Green channel value. - Blue channel value. - - - - - - Converts CMYK to RGB. - - Cyan channel value. - Magenta channel value. - Yellow channel value. - Black channel value. - - - - - - Compares colors. - - The color 1. - The color 2. - - True if colors are identical; otherwise - False. - - - - - Converts colour to a PDF array of R, G and B float values. - - Filled PdfArray object. - - - - Converts colour to a PDF array. - - The color space. - The well filled PdfArray object. - - - - Gets a null color. - - The empty. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Gets an empty PDF color instance. - PdfColor color = PdfColor.Empty; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Gets an empty PDF color instance. - Dim color As PdfColor = PdfColor.Empty - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets whether the PDFColor is Empty or not. - - true if this instance is empty; otherwise, false. - - - - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(Color.Empty); - //Check the color. - bool isEmpty = pdfColor.IsEmpty; - Console.WriteLine("The Color is " + (isEmpty? "empty" : "not empty")); - - - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(Color.Empty) - 'Check the color. - Dim isEmpty As Boolean = pdfColor.IsEmpty - Console.WriteLine("The Color is " + (If(isEmpty, "empty", "not empty"))) - - - - - - Gets or sets Blue channel value. - - The B. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("SlateBlue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the blue channel value. - string text = "The blue channel value is " + pdfColor.B; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("SlateBlue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the blue channel value. - Dim text As String = "The blue channel value is " + pdfColor.B - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the blue color - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Blue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the blue color value. - string text = "The blue color value is " + pdfColor.Blue; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Blue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the blue color value. - Dim text As String = "The blue color value is " + pdfColor.Blue - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Cyan channel value. - - The C. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("SlateBlue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the cyan channel value. - string text = "The cyan channel value is " + pdfColor.C; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("SlateBlue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the cyan channel value. - Dim text As String = "The cyan channel value is " + pdfColor.C - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Green channel value. - - The G. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("LawnGreen"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the green channel value. - string text = "The green channel value is " + pdfColor.G; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("LawnGreen") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the green channel value. - Dim text As String = "The green channel value is " + pdfColor.G - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Gets the green value - - The green. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Green"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the green color value. - string text = "The green color value is " + pdfColor.Green; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Green") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the green color value. - Dim text As String = "The green color value is " + pdfColor.Green - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Gray channel value. - - The gray. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the gray channel value. - string text = "The gray channel value is " + pdfColor.Gray; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the gray channel value. - Dim text As String = "The gray channel value is " + pdfColor.Gray - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Black channel value. - - The K. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the black channel value. - string text = "The black channel value is " + pdfColor.K; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the black channel value. - Dim text As String = "The black channel value is " + pdfColor.K - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Magenta channel value. - - The M. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the megenta channel value. - string text = "The megenta channel value is " + pdfColor.M; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the megenta channel value. - Dim text As String = "The megenta channel value is " + pdfColor.M - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Red channel value. - - The R. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Red"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the red channel value. - string text = "The red channel value is " + pdfColor.R; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Red") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the red channel value. - Dim text As String = "The red channel value is " + pdfColor.R - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the red color - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Red"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the red color value. - string text = "The red color value is " + pdfColor.Red; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Red") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the red color value. - Dim text As String = "The red color value is " + pdfColor.Red - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Yellow channel value. - - The Y. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("YellowGreen"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the yellow channel value. - string text = "The yellow channel value is " + pdfColor.Y; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("YellowGreen") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the yellow channel value. - Dim text As String = "The yellow channel value is " + pdfColor.Y - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - Gets or sets Alpha channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the alpha channel value. - string text = "The alpha channel value is " + pdfColor.A; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the alpha channel value. - Dim text As String = "The alpha channel value is " + pdfColor.A - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - This class helps to fill correctly - External graphics state dictionary. - - - - - Gets the element. - - - - - The Syncfusion.Pdf.Graphics namespace contains classes to render graphics objects - - - - - Represents a graphics context of the objects. - It's used for performing all the graphics operations. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 20, 200, 100)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 20, 200, 100)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Specifies the mask of path type values. - - - - - Check whether it is an emf call - - - - - Check whether it is an emf plus call - - - - - check whether to use font size to calculate the shift - - - - - Check whether it is an emf call - - - - - - Represents the Stream writer object. - - - - - Represents the Resource container for the graphics. - - - - - Represents the Size of the canvas. - - - - - Represents the size of the canvas reduced by margins and templates. - - - - - Represents the state, whether it is saved or not. - - - - - Represents the Current pen. - - - - - Represents the Current brush. - - - - - Represents the Current font. - - - - - Represents the Current color space. - - - - - Indicates whether color space was initialized. - - - - - Stack of the graphics states. - - - - - The transformation matrix monitoring all changes with CTM. - - - - - Stores previous rendering mode. - - - - - Previous character spacing value or 0. - - - - - Previous word spacing value or 0. - - - - - The previously used text scaling value. - - - - - Holds transparencies used in the graphics. - - - - - Current string format. - - - - - Internal variable to store layer on which this graphics lays. - - - - - Internal variable to store layer on which this graphics PdfLayer. - - - - - Internal variable to store collection of automatic fields. - - - - - Internal variable to store layout result after drawing string. - - - - - Internal variable to store position of split. - - - - - Indicates whether the object had trasparency. - - - - - Helps to lock s_mask to avoid race conditions. - - - - - Helps to lock DrawTemplate in multi threading - - - - - Emf Text Scaling Factor - - - - - Check whether it is an emf Text Matrix - - - - - Identifying the Optimized image - - - - - To check wihether its a direct text rendering. - - - - - To store the previous document color spaace. - - - - - To store the previous graphics color spaace. - - - - - To check whether the last color space of document and garphics is saved. - - - - - Stores Text rendering mode. - - - - - Indicates whether the text rendering mode is set. - - - - - Shows if the graphics state was changed. - - - - - Shows if it was the first transformation operation. - - - - - Shows if the graphics state was restored. - - - - - Shows if it's the first call to the OnDrawPrimitive method. - - - - - stores the text clip - - - - - Indicate whether the Word to PDF DirectConversion. - - - - - Initializes a new instance of the class. - - The size. - The resources. - The stream writer of the current layer. - - - - Initializes a new instance of the class. - - The size. - The resources. - The stream of the current layer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Draws the specified PdfImage, using its original physical size, at the specified location.. - - PdfImage to draw. - Point structure that represents the location of the upper-left corner of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new PointF(0, 0)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New PointF(0, 0)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified image, using its original physical size, at the location specified by a coordinate pair. - - PdfImage to draw. - The x-coordinate of the upper-left corner of the drawn image. - The y-coordinate of the upper-left corner of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, 0, 0); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image, 0, 0) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified Image at the specified location and with the specified size. - - PdfImage to draw. - RectangleF structure that specifies the location and size of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new RectangleF(0, 0, 300, 200)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New RectangleF(0, 0, 300, 200)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified Image at the specified location and with the specified shape and size. - - PdfImage to draw. - Point structure that represents the location of the upper-left corner of the drawn image. - SizeF structure that represents the height and width of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new PointF(0, 0), new SizeF(300, 200)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New PointF(0, 0), New SizeF(300, 200)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified image, using its original physical size, at the location specified by a coordinate pair. - - PdfImage to draw. - The x-coordinate of the upper-left corner of the drawn image. - The y-coordinate of the upper-left corner of the drawn image. - Width of the drawn image. - Height of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, 0, 0, 300, 200); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image, 0, 0, 300, 200) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Set the Page xobject in page parent dictionary. - - - - - - - - - Gets the identical Xobject from Image collection. - - - - - - - - - Draws the specified text string at the specified location with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, brush, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, New PointF(20,20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, brush, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - The x. - The y. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 20,20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, brush, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New PointF(20,20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - The text string format. - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string.. - Pen that determines the color, width, and style of the path. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New PointF(20, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the bounds of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, new RectangleF(20, 20, 200, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, New RectangleF(20, 20, 200, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush, shift value and Font objects. - - - - - Draws the specified text string at the specified location and size - with the specified Pen and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - RectangleF structure that specifies the bounds of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new RectangleF(20, 20, 200, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New RectangleF(20, 20, 200, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen, Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - The brush. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen, Brush, shift Value and Font objects. - - - - - Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics. - - The x-coordinate of the translation. - The y-coordinate of the translation. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix. - - Scale factor in the x direction. - Scale factor in the y direction. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Scale transform - graphics.ScaleTransform(0.5f, 0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Scale transform - graphics.ScaleTransform(0.5F, 0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Applies the specified rotation to the transformation matrix of this Graphics. - - Angle of rotation in degrees. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set rotate transform - graphics.RotateTransform(-90); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, -100, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set rotate transform - graphics.RotateTransform(-90) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, -100, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Skews the coordinate system axes. - - Skews the X axis by this angle (in - degrees). - Skews the Y axis by this angle (in - degrees). - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set skew transform - graphics.SkewTransform(10,10); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set skew transform - graphics.SkewTransform(10, 10) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Multiplies the world transformation of this Graphics and specified the Matrix. - - The matrix that multiplies the world transformation. - - - - Draws a template using its original size, at the specified location. - - object. - PointF structure that specifies the upper-left corner of the drawn template. - - - //Creates a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Adds a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a PDF Template. - PdfTemplate template = new PdfTemplate(100, 50); - //Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new System.Drawing.RectangleF(0, 0, 100, 50)); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14); - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5); - //Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty); - //Saves the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Creates a new PDF document. - Dim pdfDocument As New PdfDocument() - 'Adds a page to the PDF document - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Creates a PDF Template. - Dim template As New PdfTemplate(100, 50) - 'Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New System.Drawing.RectangleF(0, 0, 100, 50)) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14) - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5) - 'Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty) - 'Saves the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - Draws a template at the specified location and size. - - object. - PointF structure that specifies the upper-left corner of the drawn template. - Size of the template. - - - //Creates a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Adds a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a PDF Template. - PdfTemplate template = new PdfTemplate(100, 50); - //Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new System.Drawing.RectangleF(0, 0, 100, 50)); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14); - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5); - //Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty, template.Size); - //Saves the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Creates a new PDF document. - Dim pdfDocument As New PdfDocument() - 'Adds a page to the PDF document - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Creates a PDF Template. - Dim template As New PdfTemplate(100, 50) - 'Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New System.Drawing.RectangleF(0, 0, 100, 50)) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14) - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5) - 'Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty, template.Size) - 'Saves the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 20, 200, 100)); - graphics.Flush(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 20, 200, 100)) - graphics.Flush() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Saves the current state of this Graphics and identifies the saved state with a GraphicsState. - - This method returns a GraphicsState that represents the saved state of this Graphics. - This method works similar to method. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Restores the state of this Graphics to the state represented by a GraphicsState. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Restores the state of this Graphics to the state represented by a GraphicsState. - - GraphicsState that represents the state to which to restore this Graphics. - This method works similar to method. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - PdfGraphicsState state = graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(state); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - Dim state As PdfGraphicsState = graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore(state) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the rectangle specified by a RectangleF structure. - - RectangleF structure that represents the new clip region. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //set clip. - graphics.SetClip(new RectangleF(0, 0, 50, 12)); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'set clip. - graphics.SetClip(New RectangleF(0, 0, 50, 12)) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure. - - RectangleF structure to combine. - Member of the PdfFillMode enumeration that specifies the filling operation to use. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //set clip. - graphics.SetClip(new RectangleF(0, 0, 50, 12), PdfFillMode.Alternate); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'set clip. - graphics.SetClip(New RectangleF(0, 0, 50, 12), PdfFillMode.Alternate) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified PdfPath. - - PdfPath to clip. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF path. - PdfPath path = new PdfPath(); - path.AddRectangle(new RectangleF(0, 0, 50, 12)); - //set clip. - graphics.SetClip(path); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF path. - Dim path As New PdfPath() - path.AddRectangle(New RectangleF(0, 0, 50, 12)) - 'set clip. - graphics.SetClip(path) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Modifying the current clipping path by intersecting it with the current path. - - PdfPath to fill. - Member of the PdfFillMode enumeration that specifies the filling operation to use. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF path. - PdfPath path = new PdfPath(); - path.AddRectangle(new RectangleF(0, 0, 50, 12)); - //set clip. - graphics.SetClip(path, PdfFillMode.Alternate); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF path. - Dim path As New PdfPath() - path.AddRectangle(New RectangleF(0, 0, 50, 12)) - 'set clip. - graphics.SetClip(path, PdfFillMode.Alternate) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified value for pen - - The alpha value for both pen - and brush operations. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified value for pen and brush - - The alpha value for pen operations. - The alpha value for brush operations. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified PdfBlendMode - - The alpha value for pen operations. - The alpha value for brush operations. - The blend mode. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f, PdfBlendMode.HardLight); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F, PdfBlendMode.HardLight) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Normalizes the text. - - The font. - The text. - The normalized string. - - - - Initializes this instance. - - - - - Sets the layer for the graphics. - - The layer. - - - - Sets the layer for the graphics - - - - - - Handles the Save event of the Page control. - - The source of the event. - The instance containing the event data. - - - - Updates y co-ordinate. - - Y co-ordinate. - Updated y co-ordinate. - - - - Writes a comment line. - - The comment. - - - - Clears an instance. - - - - - Restores graphics state. - - The restored graphics state. - - - - Controls all state modifications and react repectively. - - The pen. - The brush. - The font. - - - - Controls all state modifications and react respectively. - - The pen. - The brush. - The font. - Text settings. - - - - Saves the font and other font settings. - - Current font. - Current format. - If set to true the state's been changed. - - - - Saves the ColorSpace and other ColorSpace settings. - - - - - - Controls the brush state. - - The brush. - if set to true the state's been changed. - - - - Initializes the current color space. - - - - - Initializes the current color space. - - - - - - Controls the pen state. - - The pen. - if set to true the state's been changed. - - - - Draws custom or sets predefined line cap style. - - The pen. - The x2. - The y2. - The x1. - The y1. - - - - Draws the path. - - The pen. - The brush. - if it is need to close, set to true. - - - - Draws the path. - - The pen. - The brush. - The fill mode. - if it is need to close, set to true. - - - - Gets the bezier points for arc constructing. - - The x1. - The y1. - The x2. - The y2. - The start angle. - The extent. - - - - - Constructs the arc path using Bezier curves. - - The x1. - The y1. - The x2. - The y2. - The start angle. - The sweep angle. - - - - Builds up the path. - - The path. - - - - Gets the bezier points from respective arrays. - - The points. - The types. - The i. - The p2. - The p3. - - - - Builds up the path. - - The points. - The types. - - - - Checks path point type flags. - - The path point type. - - - - Gets the text rendering mode. - - The pen. - The brush. - The format. - Proper TextRenderingMode value. - - - - Sets the drawing area and translates origin. - - X co-ordinate of the co-ordinate system. - Y co-ordinate of the co-ordinate system. - Left margin value. - Top margin value. - Right margin value. - Bottom margin value. - - - - Sets the drawing area and translates origin. - - Clip bounds of the graphics. - - - - Initializes coordinate system. - - - - - Initializes coordinate system. - - - - - Flips the hirizontally. - - - - - Flips the coordinates vertically. - - - - - Translates coordinates of the input matrix. - - X translation. - Y translation. - Input matrix. - Output matrix. - - - - Scales coordinates of the input matrix. - - X scaling. - Y scaling. - Input matrix. - Output matrix. - - - - Rotates coordinates of the input matrix. - - Rotation angle. - Input matrix. - Output matrix. - - - - Skews coordinates of the input matrix. - - X skewing. - Y skewing. - Input matrix. - Output matrix. - - - - Draws a CJK string. - - The line info. - The layout rectangle. - The font. - The format. - - - - Gets a CJK string. - - The line. - A proper PdfString class instance. - - - - Draws Ascii line. - - Text line. - Lay outing rectangle. - Font object. - Text format. - - - - Creates PdfString from ASCII string. - - String line. - PdfString object. - - - - Draws unicode line. - - Text line. - Lay outing rectangle. - Font object. - Text format. - - - - Creates PdfString from the unicode text. - - Unicode text. - PdfString object. - - - - Breakes the unicode line to the words and converts symbols to glyphs. - - String text. - TTF font. - Array of real words. - Array of text in glyphs. - - - - Converts to unicode format. - - Unicode text. - The TTF font. - Converted string - - - - Draws array of unicode tokens. - - Unicode tokens. - Array of the real words. - Font object. - Text formatting. - Word spacing value if need to be justified. - - - - Gets the text lines from the text. - - The text. - - - - - Applies all the text settings. - - Font object. - Pen object. - Brush object. - Text format. - - - - Calculates shift value if the line is horizontaly aligned. - - Line width. - Bounds width. - Text format. - Shift value. - - - - Calculates shift value if the text is vertically aligned. - - Text height. - Bounds height. - Text format. - Shift value. - - - - Justifies the line if needed. - - String text. - Width of the bounds. - Text format. - Space width for justifying. - - - - Checks whether the line should be justified. - - String text. - Width of the bounds. - Text format. - True if the line should be justified. - - - - Checks and corrects layoutRectangle for text lay outing. - - Text bounds. - True - if some part of the layoutRectangle fits the canvas ClipBounds, false otherwise. - - - - Creates lay outed rectangle depending on the text settings. - - Size of the text. - X co-ordinate of the text. - Y co-ordinate of the text. - Text format settings. - layout rectangle. - - - - Emulates Underline, Strikeout of the text if needed. - - Current pen. - Current brush. - Lay outing result. - Font object. - Lay outing rectangle. - Text format. - - - - Creates a pen for drawing lines in the text. - - Current pen. - Current brush. - Current font. - Text format. - Pen for the lines. - - - - Draws layout result. - - Layout result. - Text font. - Text format. - Layout rectangle. - - - - Draws a layout result with shift value. - - - - - Draws a layout result. - - Layout result. - Text font. - The pen object. - The brush object. - Layout rectangle. - Text format. - - - - Returns line indent for the line. - - Line info. - Text settings. - Layout Bounds. - Indicates whether the line is the first in the text. - Returns line indent for the line. - - - - Checks whether RTL is enabled. - - Text settings. - Tre if RTL is enabled. - - - - Returns bounds of the line info. - - index of the line in the result. - Layout result. - Font used for this text. - Layout rectangle. - Text settings. - Returns bounds of the line info. - - - - Sets the BBox entry of the graphics dictionary. - - The bounds. - - - - Raise the event on property changed. - - - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - - - - Calculates scaling factor for text that fits to the specifiedboundaries. - - String text to be scaled. - Font object. - Text' boundaries. - Size of the text. - The format. - The scaling factor. - - - - Resets the current clip region to the infinite region. - - - - - Prepares a matrix to PDF. - - The matrix. - The page scale value. - - A properly prepared PdfTransformationMatrix class instance. - - - - - Sets the current clip region. - - The rectangle specifying the new clip region. - The combining mode. - - - - Called when we need to draw a primitive. - - - - - Converts the System.Drawing.StringFormat format to - Syncfusion.Pdf.Graphics.PdfStringFormat format. - - The format. - Proper Syncfusion.Pdf.Graphics.PdfStringFormat format. - - - - Converts the line alignment. - - The string alignment. - The proper VerticalAlignment value. - - - - Gets the type of the wrap. - - The string format flags. - Proper StringWrapType value. - - - - Converts the alingnmet. - - The string alignment. - The proper TextAlignment value. - - - - Performs translate transformation of the graphics. - - The offset by the x coordinate. - The offset by the y coordinate. - The order of the matrix operations. - - - - Performs the rotate transformations. - - The angle. - The order. - - - - Converts GraphicsUnits to PrintUnits. - - - returns PrintUnits - - - - Internally resets clip region. - - - - - Sets transformation matrix. - - - - - Resets the transformations. - - - - - Sets clip region. - - - - - Sets clip region. - - - - - Gets clip path for the graphics. - - - - - Extracts fill mode of the path. - - Graphics path. - Fill mode of the path. - - - - Internally resets transformation. - - - - - Saves the current graphics state. - - A GraphicsState instance that stores - information about the current graphic state. - - - - Restores the graphics state to the specified graphics state. - - The saved graphics state. - - - - Gets the size of the canvas. - - Usually, this value is equal to the size of the object this graphics belongs to. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Get the graphics canvas size. - SizeF canvasSize = graphics.Size; - //Draw string to PDF page graphics. - graphics.DrawString("Canvas size: " + canvasSize.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Get the graphics canvas size. - Dim canvasSize As SizeF = graphics.Size - 'Draw string to PDF page graphics. - graphics.DrawString("Canvas size: " + canvasSize.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the size of the canvas reduced by margins and page templates. - - It indicates a size of the canvas reduced by margins and template dimensions. - This value doesn't change when any custom clip is set. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the current color space of the document - - The value change of this property has impact on the objects - which will be drawn after the change. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale; - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the stream writer. - - - - - Gets the transformation matrix reflecting current transformation. - - - - - Gets the layer for the graphics, if exists. - - The layer. - - - - Gets the page for this graphics, if exists. - - The page. - - - - Gets the automatic fields. - - The automatic fields. - - - - Returns the result after drawing string. - - - - - Gets or sets the split before being processed by Text and Image region managers. - - - - - Gets the transparency object value - - - - - Gets or sets tag for the element - - - - - Gets a value indicating whether the document is auto-tagged. - - - - - Gets or sets the current tag type. - - - - - Gets or sets a value, indicating the template graphics. - - - - - Gets or sets transformation of graphics. - - - - - Gets or sets the scaling between world units and page units for this Graphics object. - - - - - Gets or sets the unit of measure used for page coordinates in this Graphics object. - - - - - Get or set a value indicates to enable the Direct Word to PDF conversion. - - - - - Delegate declaring a method returning resources. - - - - - - Delegate declaring a method to process tag. - - - - - - Holds info about transparency. - - - - - Initializes a new instance of the class. - - The alpha pen. - The alpha brush. - The blend mode. - - - - Indicates whether this instance and a specified object are equal. - - Another object to compare to. - - true if obj and this instance are the same type and - represent the same value; otherwise, false. - - - - - Returns the hash code for this instance. - - - A 32-bit signed integer that is the hash code for this instance. - - - - - Represents the state of a Graphics object. This object is returned by a call to the Save methods. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - PdfGraphicsState state = graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(state); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - Dim state As PdfGraphicsState = graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore(state) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Parent graphics object. - - - - - The current transformation matrix. - - - - - Stores previous rendering mode. - - - - - Previous character spacing value or 0. - - - - - Previous word spacing value or 0. - - - - - The previously used text scaling value. - - - - - Current pen. - - - - - Current brush. - - - - - Current font. - - - - - Current color space. - - - - - default constructor. - - - - - Creates new object. - - Parent graphics state. - The current transformation matrix. - - - - Gets the parent graphics object. - - - - - Gets the current matrix. - - - - - Gets or sets the current character spacing. - - - - - Gets or sets the word spacing value. - - - - - Gets or sets the text scaling value. - - - - - Gets or sets the current pen object. - - - - - Gets or sets the brush. - - - - - Gets or sets the current font object. - - - - - Gets or sets the current color space value. - - - - - Gets or sets the text rendering mode. - - - - - A class representing PDF page margins. - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set all the side of the page margin. - margin.All = 20; - //Set margin - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set all the side of page margin. - margin.All = 20 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Represents the Default Page Margin value. - - - - - Initializes a new instance of the class. - - - - - Sets the margins. - - The margin size. - - - - Sets the margins. - - The left right. - The top bottom. - - - - Sets the margins. - - The left. - The top. - The right. - The bottom. - - - - Clones the object. - - The cloned object. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.All = 20; - //Create new PDF section. - PdfSection section = document.Sections.Add(); - //Set margin. - section.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = section.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Create new PDF section. - section = document.Sections.Add(); - //Clone the margin. - PdfMargins margin1 = margin.Clone() as PdfMargins; - margin1.Left = 30; - //set marign. - section.PageSettings.Margins = margin1; - page = section.Pages.Add(); - //Creates PDF graphics for the page. - graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.All = 20 - 'Create new PDF section. - Dim section As PdfSection = document.Sections.Add() - 'Set margin. - section.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = section.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Create new PDF section. - section = document.Sections.Add() - 'Clone the margin. - Dim margin1 As PdfMargins = TryCast(margin.Clone(), PdfMargins) - margin1.Left = 30 - 'set marign. - section.PageSettings.Margins = margin1 - page = section.Pages.Add() - 'Creates PDF graphics for the page. - graphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the left margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the top margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the right margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the bottom margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Sets margin of each side of the page - - Margin of each side. - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set all the side of the page margin. - margin.All = 20; - //Set margin - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set all the side of page margin. - margin.All = 20 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - A class defining settings for drawing operations, that determines the color, width, and style of the drawing elements. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Indicates if the pen is immutable. - - - - - Initializes a new instance of the class. - - Doesn't change current colour. - - - - Initializes a new instance of the class. - - The color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfColor(Color.Red)); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfColor(Color.Red)) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The system color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with color and width of the pen - - The provides color to the pen. - Width of the pen's line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfColor(Color.Red), 2); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfColor(Color.Red), 2) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with color and width of the pen - - The provides color to the pen. - Width of the pen's line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red, 2); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red, 2) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with - - The provides color and texture to the pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfSolidBrush(Color.Red)); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfSolidBrush(Color.Red)) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - Initializes a new instance of the class. - - The provides color to the pen. - if set to true the pen is immutable. - - - - Initializes a new instance of the class with color. - - The provides color to the pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(gray); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - ' Create Gray ColorSpace - Dim calGrayCS As New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Create new PDF pen instance. - Dim pen As New PdfPen(gray) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Clones this instance. - - A new pen with the same properties. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Clone the PDF pen. - PdfPen pen1 = pen.Clone(); - pen1.Width = 10; - graphics.DrawRectangle(pen1, new RectangleF(10, 120, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Clone the PDF pen. - Dim pen1 As PdfPen = pen.Clone() - pen1.Width = 10 - graphics.DrawRectangle(pen1, New RectangleF(10, 120, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Sets the brush. - - The brush. - - - - Sets the stroking flag to brush. - - The brush. - - - - Resets the stroking. - - The brush. - - - - Monitors the changes. - - The current pen. - The stream writer. - The get resources. - if it is save state, set to true. - The current color space. - The current transformation matrix. - True if the pen was different. - - - - Gets the pattern. - - The initialized pattern. - - - - Controls the dash style and behaviour of each line. - - The pen. - if set to true the state should be changed anyway. - The stream writer. - True if the dash is different. - - - - Checks the immutability. - - Name of the property. - - - - Get or set the Colorspace. - - - - - Gets or sets the brush, which specifies the pen behavior. - - The that determines the color and texture - If the brush is set, the color values are ignored, - except for PdfSolidBrush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set brush. - pen.Brush = new PdfSolidBrush(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set brush. - pen.Brush = New PdfSolidBrush(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the color of the pen. - - The provide the color to pen - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen color. - pen.Color = new PdfColor(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen color. - pen.Color = New PdfColor(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash offset of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen dash offset. - pen.DashOffset = 0.5f; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen dash offset. - pen.DashOffset = 0.5F - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash pattern of the pen. - - we can't set the Dash pattern for solid dash style - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash style of the pen. - - The provides the various dash styles - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the line cap of the pen. - - The gives various line cap options - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line cap. - pen.LineCap = PdfLineCap.Round; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - 'Set line cap. - pen.LineCap = PdfLineCap.Round - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the line join style of the pen. - - The provides various line join options. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line jion. - pen.LineJoin = PdfLineJoin.Bevel; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Set line jion. - pen.LineJoin = PdfLineJoin.Bevel - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the width of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen width. - pen.Width = 4; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen width. - pen.Width = 4 - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the miter limit. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen width. - pen.Width = 4; - //Set miter limit, - pen.MiterLimit = 2; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen width. - pen.Width = 4 - 'Set miter limit, - pen.MiterLimit = 2 - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - - Class for representing Root transformation matrix. - - - - - - - Value for angle converting. - - - - - - - Value for angle converting. - - - - - - - Transformation matrix. - - - - - Initializes object. - - - - - - Initializes object. - - - - - - Translates coordinates by specified coordinates. - - Offsets for translation. - - - Order of transformation sequence is significant. - - - - - Translates coordinates by specified coordinates. - - The X value by which to translate - coordinate system. - The Y value by which to translate - coordinate system. - - - Order of transformation sequence is significant. - - - - - - - Scales coordinates by specified coordinates. - - Scaling values. - - Order of transformation sequence is significant. - - - - - Scales coordinates by specified coordinates. - - The value by which to scale coordinate - system in the X axis direction. - The value by which to scale coordinate - system in the Y axis direction. - - - Order of transformation sequence is significant. - - - - - Rotates coordinate system in counterclockwise direction. - - The angle of the rotation (in degrees). - - - Order of transformation sequence is significant. - - - - - Skews coordinate system axes. - - Skew angles. - - - Order of transformation sequence is significant. - - - - - Skews coordinate system axes. - - Skews the X axis by this angle (in - degrees). - Skews the Y axis by this angle (in - degrees). - - - Order of transformation sequence is significant. - - - - - Applies the specified shear vector to this Matrix - by prepending the shear transformation. - - The shear X factor. - The shear Y factor. - The transformation applied in this method - is a pure shear only if one of the parameters is 0. - Applied to a rectangle at the origin, when the shearY - factor is 0, the transformation moves the bottom edge - horizontally by shearX times the height of the rectangle. - When the shearX factor is 0, it moves the right edge - vertically by shearY times the width of the rectangle. - Caution is in order when both parameters are nonzero, - because the results are hard to predict. For example, - if both factors are 1, the transformation is singular - (hence noninvertible), squeezing the entire plane to - a single line. - - - - Applies a clockwise rotation about the specified point. - - The angle. - The point. - - - - - - Gets PDF representation. - - - PDF representation. - - - - - - - Multiplies matrixes (changes coordinate system.) - - Matrix to be multiplied. - - - - Converts degrees to radians. - - The degrees X. - The value in radians. - - - - - Converts radians to degress. - - The radians. - The value in degress. - - - - - Clones this instance. - - The cloned instance. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Gets the X translation value. - - - - - Gets the Y translation value. - - - - - - - Gets or sets the internal matrix object. - - - - - Class allowing to convert different unit metrics. Converting is - based on Graphics object DPI settings that is why for differ - graphics settings must be created new instance. For example: - printers often has 300 and greater dpi resolution, for compare - default display screen dpi is 96. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Indicates default horizontal resolution. - - - - - Indicates default vertical resolution. - - - - - Width, in millimeters, of the physical screen. - - - - - Height, in millimeters, of the physical screen. - - - - - Width, in pixels, of the screen. - - - - - Height, in pixels, of the screen. - - - - - Matrix for conversations between different numeric systems - - - - - Static constructor. - - - - - Initializes a new instance of the class with default DPI value of 96. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with DPI value - - The dpi. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(360); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor(360) - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with System.Drawing.Graphics. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics for measuring the DPI value - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - Image systemImage = Image.FromFile("Autumn Leaves.jpg"); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap(systemImage); - //Create system graphics. - Graphics graphics = Graphics.FromImage(systemImage); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(graphics); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - Dim systemImage As Image = Image.FromFile("Autumn Leaves.jpg") - 'Create PDF bitmap instance. - Dim image As New PdfBitmap(systemImage) - 'Create system graphics. - Dim graphics As Graphics = Graphics.FromImage(systemImage) - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor(graphics) - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts the value, from one graphics unit to another graphics unit. - - Value to convert - Indicates units to convert from - Indicates units to convert to - Value stored in "to" units - - - - Converts the value to pixel from specified graphics unit. - - Value to convert - Indicates units to convert from - Value stored in pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - float pageWidth = converter.ConvertToPixels(doc.PageSettings.Size.Width, PdfGraphicsUnit.Point); - page.Graphics.DrawString("PDF page width is " + pageWidth + " pixel", new PdfStandardFont(PdfFontFamily.Helvetica,12),PdfBrushes.Red, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim pageWidth As Single = converter.ConvertToPixels(doc.PageSettings.Size.Width, PdfGraphicsUnit.Point) - page.Graphics.DrawString("PDF page width is " + pageWidth + " pixel", New PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Red, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts the rectangle location and size to Pixels from specified - measure units - - source rectangle - source rectangle measure units - Rectangle with Pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - RectangleF rect = converter.ConvertToPixels(new RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim rect As RectangleF = converter.ConvertToPixels(New RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts point from specified graphics units to pixels - - source point for convert - measure units - point in pixels coordinates - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - PointF location = converter.ConvertToPixels(new PointF(100, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(location, new SizeF(200, 50)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim location As PointF = converter.ConvertToPixels(New PointF(100, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(location, new SizeF(200, 50)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts size from specified graphics units to pixels - - source size - measure units - size in pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - SizeF pageSize = converter.ConvertToPixels(doc.PageSettings.Size, PdfGraphicsUnit.Point); - page.Graphics.DrawString("PDF page size is " + pageSize + " pixel", new PdfStandardFont(PdfFontFamily.Helvetica,12),PdfBrushes.Red, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim pageSize As SizeF = converter.ConvertToPixels(doc.PageSettings.Size, PdfGraphicsUnit.Point) - page.Graphics.DrawString("PDF page size is " + pageSize + " pixel", New PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Red, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts value, to specified graphics unit from Pixel. - - Value to convert - Indicates units to convert to - Value stored in "to" units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts rectangle in Pixels into rectangle with specified - measure units - - source rectangle in pixels units - convert to units - output Rectangle in specified units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - RectangleF rect = converter.ConvertFromPixels(new RectangleF(100,100,500, 700), PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim rect As RectangleF = converter.ConvertFromPixels(New RectangleF(100,100,500, 700), PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts rectangle from pixels to specified units - - point in pixels units - convert to units - output Point in specified units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - PointF location = converter.ConvertFromPixels(new PointF(100,100), PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(location, image.GetBounds().Size)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim location As PointF = converter.ConvertFromPixels(New PointF(100,100), PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(location, image.GetBounds().Size)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts Size in pixels to size in specified measure units - - source size - convert to units - output size in specified measure units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - SizeF size = converter.ConvertFromPixels(image.GetBounds().Size, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF( new PointF(0, 0), size)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim size As SizeF = converter.ConvertFromPixels(image.GetBounds().Size, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(New PointF(0, 0), size)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Update proportions matrix according to Graphics settings - - The pixel per inch value. - - - - Encapsulates a with a gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the background color. - - - - - Local variable to store the background color. - - - - - Local variable to store the dictionary. - - - - - Local variable to store the shading. - - - - - Local variable to store the Transformation Matrix. - - - - - Local variable to store the external state. - - - - - Local variable to store the colorSpace. - - - - - Local variable to store the function. - - - - - Initializes a new instance of the class. - - The shading. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Converts colorspace enum to a PDF name. - - The color space enum value. - The correct string value. - - - - Resets the pattern dictionary. - - A new pattern dictionary. - - - - Resets the function. - - - - - Clones the anti aliasing value. - - The brush. - - - - Clones the background value. - - The brush. - - - - Gets or sets the background color of the brush. - - This value is optional. If null is assigned to it, - the associated entry is removed from the appropriate dictionary. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the background. - brush.Background = Color.Black; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the background. - brush.Background = Color.Black - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a value indicating whether use anti aliasing algorithm. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set anti alias. - brush.AntiAlias = true; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set anti alias. - brush.AntiAlias = True - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the function of the brush. - - - - - Gets or sets the boundary box of the brush. - - This value is optional. If null is assigned to it, - the associated entry is removed from the appropriate dictionary. - - - - Gets or sets the color space of the brush. - - - - - Gets or sets a value indicating whether - this is stroking. - - - - - Gets the pattern dictionary. - - - - - Gets or sets the shading dictionary. - - It's obligatory to set this dictionary - as soon as deriving class can. - - - - Gets or sets the transformation matrix. - - - - - Gets or sets the external graphics state, - which would be set temporary while this brush is active. - - The external graphics state. - - - - Gets the wrapped element. - - - - - Implements linear gradient brush by using PDF axial shading pattern. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the point start. - - - - - Local variable to store the point end. - - - - - Local variable to store the colours. - - - - - Local variable to store the colour Blend. - - - - - Local variable to store the blend. - - - - - Local variable to store the boundaries. - - - - - Initializes a new instance of the class. - - The starting point of the gradient. - The end point of the gradient. - The starting color of the gradient. - The end color of the gradient. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - A RectangleF structure that specifies the bounds of the linear gradient. - The starting color for the gradient. - The ending color for the gradient. - The mode specifies the orientation of the linear gradient - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), PdfLinearGradientMode.Vertical); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), PdfLinearGradientMode.Vertical) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - A RectangleF structure that specifies the bounds of the linear gradient. - The starting color for the gradient. - The ending color for the gradient. - The angle, measured in degrees clockwise from the x-axis, - of the gradient's orientation line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), 90); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), 90) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The color of the start point. - The color of the end point. - - - - Adds two points to each other. - - The point1. - The point2. - The resulting point. - - - - Subs the second point from the first one. - - The point1. - The point2. - The resulting point. - - - - Makes scalar multiplication of two points. - - The point1. - The point2. - The result of multiplication. - - - - Multiplies the point by the value specified. - - The point. - The value. - The result in point. - - - - Choosts the point according to the angle. - - The angle. - The correct point. - - - - Sets the start and end points. - - The point1. - The point2. - - - - Initializes the shading dictionary. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the background. - brush.Background = Color.Black; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Clone the existing linear brush. - PdfLinearGradientBrush cBrush = brush.Clone() as PdfLinearGradientBrush; - //Set linear colors. - cBrush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw rectangle. - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the background. - brush.Background = Color.Black - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Clone the existing linear brush. - Dim cBrush As PdfLinearGradientBrush = TryCast(brush.Clone(), PdfLinearGradientBrush) - 'Set linear colors. - cBrush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 300, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets the function. - - - - - Gets or sets a PdfBlend that specifies positions - and factors that define a custom falloff for the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a ColorBlend that defines a multicolor linear gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the starting and ending colors of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Set linear colors. - brush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Set linear colors. - brush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a rectangular region that defines - the boundaries of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Get the linear brush bounds. - RectangleF rect = brush.Rectangle; - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Get the linear brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the value indicating whether the gradient - should extend starting and ending points. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - 'Get the linear brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represent radial gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local varaible to store the point start. - - - - - Local varaible to store the point start. - - - - - Local varaible to store the point End. - - - - - Local varaible to store the radius End. - - - - - Local varaible to store the colours. - - - - - Local varaible to store the colour blend. - - - - - Local varaible to store the blend. - - - - - Local varaible to store the boundaries. - - - - - Initializes a new instance of the class. - - The start centre. - The start radius. - The end centre. - The end radius. - The start color. - The end color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The color1. - The color2. - - - - Sets the points. - - The point start. - The point end. - The radius start. - The radius end. - - - - Initializess the shading dictionary. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Clone the existing brush. - PdfRadialGradientBrush cBrush = brush.Clone() as PdfRadialGradientBrush; - //Set linear colors. - cBrush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw ellipse. - graphics.DrawEllipse(cBrush, new RectangleF(0, 150, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Clone the existing brush. - Dim cBrush As PdfRadialGradientBrush = TryCast(brush.Clone(), PdfRadialGradientBrush) - 'Set linear colors. - cBrush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawEllipse(cBrush, New RectangleF(0, 150, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets the function. - - - - - Gets or sets a PdfBlend that specifies positions - and factors that define a custom falloff for the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a ColorBlend that defines a multicolor linear gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the starting and ending colors of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Set linear colors. - brush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Set linear colors. - brush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the rectangle. - - The rectangle. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Get the radial brush bounds. - RectangleF rect = brush.Rectangle; - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Get the radial brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the value indicating whether the gradient - should extend starting and ending points. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a brush that fills any object with a solid color. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The colour of the brush. - - - - - The color space of the brush. - - - - - Indicates if the brush is immutable. - - - - - Localvariable to store the Colorspace. - - - - - Initializes a new instance of the class. - - The color - that represents the color of this brush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The PDF extended color - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(gray); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - 'Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(gray) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - class. - - - - Initializes a new instance of the class. - - The color. - if set to true the brush is immutable. - - - - Initializes a new instance of the class. - - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing solid brush. - PdfSolidBrush cBrush = brush.Clone() as PdfSolidBrush; - cBrush.Color = Color.Black; - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing solid brush. - Dim cBrush As PdfSolidBrush = TryCast(brush.Clone(), PdfSolidBrush) - cBrush.Color = Color.Black - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the color of the brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Set color. - brush.Color = new PdfColor(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Set color - brush.Color = New PdfColor(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the Colorspace. - - - - - Represents an arc shape. - - It ignores brush setting. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents a base class of arc and pie shapes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents an area bound by a rectangle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Bounds of the element. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The x. - The y. - The width. - The height. - - - - Initializes a new instance of the class. - - The rectangle. - - - - Initializes a new instance of the class. - - The pen. - The brush. - The x. - The y. - The width. - The height. - - - - Initializes a new instance of the class. - - The pen. - The brush. - The rectangle. - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Gets or sets the X co-ordinate of the upper-left corner of this the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the Y co-ordinate of the upper-left corner of this the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the width of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the height of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the size of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the size of the element. - rect.Size = new SizeF(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the size of the element. - rect.Size = New SizeF(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets bounds of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the bounds of the element. - rect.Bounds = new RectangleF(0, 10, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the bounds of the element. - rect.Bounds = New RectangleF(0, 10, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified pair of coordinates, width, height and sweep angle - - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class with the specified structure and sweep angle - - RectangleF structure that defines the boundaries of the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class with the specified pen, brush, pair of coordinates, width and height and sweep angle. - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class. - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Gets or sets the start angle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Set start angle. - arc.StartAngle = 0; - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Set start angle. - arc.StartAngle = 0 - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the sweep angle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Set start angle. - arc.StartAngle = 0; - //Set sweep angle. - arc.SweepAngle = 90; - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Set start angle. - arc.StartAngle = 0 - 'Set sweep angle. - arc.SweepAngle = 90 - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pair of coordinates, width, height and sweep angle - - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(200,100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfArc. - Dim arc As New PdfArc(200,100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, width, height and sweep angle - - Pen that determines the color, width, and style of the arc. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, 200, 100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, 200, 100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(0,0,200,100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfArc. - Dim arc As New PdfArc(0,0,200,100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified structure and sweep angle - - RectangleF structure that defines the boundaries of the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, pair of coordinates, width, height and sweep angle - - Pen that determines the color, width, and style of the arc. - The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, 0, 0, 200, 100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, 0, 0, 200, 100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, structure and sweep angle - - Pen that determines the color, width, and style of the arc. - RectangleF structure that defines the boundaries of the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Represents Bezier curve shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Local variable to store the start Point. - - - - - Local variable to store the firstC ontrol Point. - - - - - Local variable to store the second Control Point. - - - - - Local variable to store the end Point. - - - - - Initializes a new instance of the class with the specified structure - - PointF structure that represents the starting point of the curve. - PointF structure that represents the first control point for the curve. - PointF structure that represents the second control point for the curve. - PointF structure that represents the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100)); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(New PointF(0, 0), New PointF(100, 50), New PointF(50, 50), New PointF(100, 100)) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - Initializes a new instance of the class with the specified pair of coordinates and control points - - The x-coordinate of the starting point of the curve. - The y-coordinate of the starting point of the curve. - The x-coordinate of the first control point of the curve. - The y-coordinate of the first control point of the curve. - The x-coordinate of the second control point of the curve. - The y-coordinate of the second control point of the curve. - The x-coordinate of the ending point of the curve. - The y-coordinate of the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen and structure. - - Pen that determines the color, width, and style of the curve. - PointF structure that represents the starting point of the curve. - PointF structure that represents the first control point for the curve. - PointF structure that represents the second control point for the curve. - PointF structure that represents the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100)); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, New PointF(0, 0), New PointF(100, 50), New PointF(50, 50), New PointF(100, 100)) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - Initializes a new instance of the class with the specified pair of coordinates and control points - - Pen that determines the color, width, and style of the curve. - The x-coordinate of the starting point of the curve. - The y-coordinate of the starting point of the curve. - The x-coordinate of the first control point of the curve. - The y-coordinate of the first control point of the curve. - The x-coordinate of the second control point of the curve. - The y-coordinate of the second control point of the curve. - The x-coordinate of the ending point of the curve. - The y-coordinate of the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, 0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, 0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the starting point of the curve - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the first control point of the curve. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the second control point of the curve - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the ending point of the curve. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents an ellipse shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified width and height - - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, width and height. - - Pen that determines the color, width, and style of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush, width and height. - - Brush that determines the color and texture of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush, width and height - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pair of coordinates, width and height - - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the rectangle. - - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, pair of coordinates, width and height - - Pen that determines the color, width, and style of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen and structure - - Pen that determines the color, width, and style of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush, pair of coordinates, width and height - - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush and structure - - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush, pair of coordinates, width and height - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush and structure - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets the radius X. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets the radius Y. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets the center point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents a line shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Local variable to store x2. - - - - - Local variable to store Y1. - - - - - Local variable to store x1. - - - - - Local variable to store Y2. - - - - - Initializes a new instance of the class from the specified two pair fo coordinates. - - The x-coordinate of the first point. - The y-coordinate of the first point. - The x-coordinate of the end pint. - The y-coordinate of the end pint. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(0, 0, 100, 0); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(0, 0, 100, 0) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The line start point. - The line end point. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The x-coordinate of the first point. - The y-coordinate of the first point. - The x-coordinate of the end pint. - The y-coordinate of the end pint. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, 0, 0, 100, 0); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, 0, 0, 100, 0) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The line start point. - The line end point. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the x coordinate of the start point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the y coordinate of the start point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the x coordinate of the end point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the y coordinate of the end point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Implements graphics path, which is a sequence of primitive graphics elements. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Local varaible to store the points. - - - - - Local varaible to store the path Types. - - - - - Local varaible to store the Start Figure. - - - - - Local varaible to store the fill Mode. - - - - - Initializes a new instance of the class. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Red); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Red) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red, PdfFillMode.Alternate); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red, PdfFillMode.Alternate) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Red, pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Red, pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red, PdfFillMode.Alternate, pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red, PdfFillMode.Alternate, pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Green, PdfBrushes.Red, PdfFillMode.Alternate); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Green, PdfBrushes.Red, PdfFillMode.Alternate) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an arc. - - The boundaries of the arc. - The start angle of the arc. - The angle between startAngle and the end of the arc. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add arc. - path.AddArc(new RectangleF(0, 0, 100, 100), 0, -90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add arc. - path.AddArc(New RectangleF(0, 0, 100, 100), 0, -90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an arc. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - The start angle of the arc. - The angle between startAngle and the end of the arc. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add arc. - path.AddArc(0, 0, 100, 100, 0, -90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add arc. - path.AddArc(0, 0, 100, 100, 0, -90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a bezier curve. - - The start point - represents the starting point of the curve. - The first control point - represents the first control point of the curve. - The second control point - repesents the second control point of the curve. - The end point - represents the end point of the curve. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start figure. - path.StartFigure(); - //Add bezier. - path.AddBezier(new PointF(30, 30), new PointF(90, 0), new PointF(60, 90), new PointF(120, 30)); - //Close figure. - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start figure. - path.StartFigure() - 'Add bezier. - path.AddBezier(New PointF(30, 30), New PointF(90, 0), New PointF(60, 90), New PointF(120, 30)) - 'Close figure. - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a bezier curve. - - The start point X. - The start point Y. - The first control point X. - The first control point Y. - The second control point X. - The second control point Y. - The end point X. - The end point Y. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start figure. - path.StartFigure(); - //Add bezier. - path.AddBezier(30, 30, 90, 0, 60, 90, 120, 30); - //Close figure. - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start figure. - path.StartFigure() - 'Add bezier. - path.AddBezier(30, 30, 90, 0, 60, 90, 120, 30) - 'Close figure. - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an ellipse. - - The boundaries of the ellipse. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add ellipse. - path.AddEllipse(new RectangleF(0, 0, 200, 100)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add ellipse. - path.AddEllipse(New RectangleF(0, 0, 200, 100)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an ellipse. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add ellipse. - path.AddEllipse(0, 0, 200, 100); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add ellipse. - path.AddEllipse(0, 0, 200, 100) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a line. - - The start point of the line. - The end point of the line. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a line. - - The x-coordinate of the starting point of the line. - The y-coordinate of the starting point of the line. - The x-coordinate of the end point of the line. - The y-coordinate of the end point of the line. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(10, 100, 10, 200); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(10, 100, 10, 200) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the path specified to this one. - - The path, which should be appended. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create PDF path. - PdfPath pPath = new PdfPath(pathPoints, pathTypes); - //Add PDF path. - path.AddPath(pPath); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create PDF path. - Dim pPath As New PdfPath(pathPoints, pathTypes) - 'Add PDF path. - path.AddPath(pPath) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the path specified by the points and their types to this one. - - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Add path. - path.AddPath(pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Add path. - path.AddPath(pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the pie to this path. - - The bounding rectangle of the pie. - The start angle of the pie. - The sweep angle of the pie. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add Pie. - path.AddPie(new RectangleF(20, 20, 70, 70), -45, 90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add Pie. - path.AddPie(New RectangleF(20, 20, 70, 70), -45, 90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the pie to this path. - - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - The start angle of the pie. - The sweep angle of the pie. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add Pie. - path.AddPie(20, 20, 70, 70, -45, 90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add Pie. - path.AddPie(20, 20, 70, 70, -45, 90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Append the closed polygon to this path. - - The points of the polygon. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Create polygon points. - PointF[] polygonPoints = { new PointF(23, 20), new PointF(40, 10), new PointF(57, 20), new PointF(50, 40), new PointF(30, 40) }; - //Add polygon. - path.AddPolygon(polygonPoints); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Create polygon points. - Dim polygonPoints As PointF() = {New PointF(23, 20), New PointF(40, 10), New PointF(57, 20), New PointF(50, 40), New PointF(30, 40)} - 'Add polygon. - path.AddPolygon(polygonPoints) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the rectangle to this path. - - The rectangle. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(new RectangleF(0, 0, 200, 100)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(New RectangleF(0, 0, 200, 100)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the rectangle to this path. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(0, 0, 200, 100); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(0, 0, 200, 100) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Starts a new figure. - - The next added primitive will start a new figure. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start first figure. - path.StartFigure(); - path.AddArc(10, 10, 50, 50, 0, 270); - path.CloseFigure(); - //Start second figure. - path.StartFigure(); - path.AddRectangle(10, 70, 50, 100); - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start first figure. - path.StartFigure() - path.AddArc(10, 10, 50, 50, 0, 270) - path.CloseFigure() - 'Start second figure. - path.StartFigure() - path.AddRectangle(10, 70, 50, 100) - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Closes the last figure. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start first figure. - path.StartFigure(); - path.AddArc(10, 10, 50, 50, 0, 270); - path.CloseFigure(); - //Start second figure. - path.StartFigure(); - path.AddRectangle(10, 70, 50, 100); - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start first figure. - path.StartFigure() - path.AddArc(10, 10, 50, 50, 0, 270) - path.CloseFigure() - 'Start second figure. - path.StartFigure() - path.AddRectangle(10, 70, 50, 100) - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Closes all non-closed figures. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - path.StartFigure(); - path.AddLine(new Point(10, 100), new Point(150, 100)); - path.AddLine(new Point(150, 100), new Point(10, 200)); - path.StartFigure(); - path.AddArc(200, 200, 100, 100, 0, 90); - path.StartFigure(); - PointF point1 = new PointF(300, 300); - PointF point2 = new PointF(400, 325); - PointF point3 = new PointF(400, 375); - PointF point4 = new PointF(300, 400); - PointF[] points = { point1, point2, point3, point4 }; - path.AddPolygon(points); - //Close all the figures. - path.CloseAllFigures(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - path.StartFigure() - path.AddLine(New Point(10, 100), New Point(150, 100)) - path.AddLine(New Point(150, 100), New Point(10, 200)) - path.StartFigure() - path.AddArc(200, 200, 100, 100, 0, 90) - path.StartFigure() - Dim point1 As New PointF(300, 300) - Dim point2 As New PointF(400, 325) - Dim point3 As New PointF(400, 375) - Dim point4 As New PointF(300, 400) - Dim points As PointF() = {point1, point2, point3, point4} - path.AddPolygon(points) - 'Close all the figures. - path.CloseAllFigures() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the last point. - - The last point. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(new RectangleF(0, 0, 200, 100)); - //Get last point. - PointF lastPoint = path.GetLastPoint(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(New RectangleF(0, 0, 200, 100)) - 'Get last point. - Dim lastPoint As PointF = path.GetLastPoint() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Adds the points along with their type to the path. - - The points. - Type of the points. - - - - Adds the points along with their type to the path. - - The points. - Type of the points. - The start index. - The end index. - - - - Adds a point and its type. - - The point. - Type of the point. - - - - Closes the figure. - - The index of the last figure point. - - - - Gets or sets the fill mode. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the path points. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path Points. - PointF[] pathPoints = path.PathPoints; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path Points. - Dim pathPoints As PointF() = path.PathPoints - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the path point types. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path Types. - byte[] pathTypes = path.PathTypes; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path Types. - Dim pathTypes As Byte() = path.PathTypes - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the point count. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path point count. - int count = path.PointCount; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path point count. - Dim count As Integer = path.PointCount - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the last point. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get last point. - PointF lastPoint = path.LastPoint; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get last point. - Dim lastPoint As PointF = path.LastPoint - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the points list. - - The points. - - - - Gets the types. - - The types. - - - - Represents Pdf Template object. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Graphics context of the template. - - - - - Content of the object. - - - - - Resources of the template. - - - - - Size of the template. - - - - - Indicates if the template is read-only. - - - - - Initializes a new instance of the class. - - The size of the PDF template - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The rect - represents the rectangle bounds of the PDF template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new RectangleF(0, 0, 200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New RectangleF(0, 0, 200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the template. - The height of the template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(200, 100); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(200, 100) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The X-coordinate of the template start point. - The Y-coordinate of the template start point. - The width of the template. - The height of the template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(0, 0, 200, 100); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(0, 0, 200, 100) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The origin points of the Pdf Page - The size of the new template. - The data stream of the new template. - The resources of the new template. - The resulting template is read-only in order to avoid unexpected side effects - caused by non-restored graphics state. - - - - Initializes a new instance of the class. - - The size of the new template. - The data stream of the new template. - The resources of the new template. - The resulting template is read-only in order to avoid unexpected side effects - caused by non-restored graphics state. - - - - Initializes a new instance of the class. - - The template. - - - - Resets the template and sets the specified size. - - The size. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Reset the template. - template.Reset(new SizeF(300, 200)); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 150)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Reset the template. - template.Reset(New SizeF(300, 200)) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 150)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets an instance. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Reset the template. - template.Reset(); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 150)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Reset the template. - template.Reset() - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 150)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - This method doesn't take into consideration a rotation of the element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Initializes object. - - - - - Gets the resources and modifies the template dictionary. - - Pdf resources. - - - - - Adds type key. - - - - - - Adds SubType key. - - - - - Sets the size of the template. - - The size. - - - - Sets the bounds of the template. - - The bounds. - - - - Sets the size of the template. - - The size. - - - - Copies the resources from the template. - - - - - Gets graphics context of the template. - - It will return null, if the template is read-only. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template size. - SizeF templateSize = template.Size; - Console.Write("Template size: " + templateSize.Width + ", " + templateSize.Height); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template size. - Dim templateSize As SizeF = template.Size - Console.Write("Template size: " + templateSize.Width + ", " + templateSize.Height) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the width of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template width. - float width = template.Width; - Console.Write("Template width: " + width); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template width. - Dim width As Single = template.Width - Console.Write("Template width: " + width) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the height of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template height. - float height = template.Height; - Console.Write("Template height: " + height); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template height. - Dim height As Single = template.Height - Console.Write("Template height: " + height) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a value indicating whether the template is read-only. - - true if the template is read-only; otherwise, false. - Read-only templates does not expose graphics. They just return null. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create PdfTemplate object. - PdfTemplate template = page.CreateTemplate(); - //Get read-only - bool readOnlyTemplate = template.ReadOnly; - Console.Write("Read-Only template: " + readOnlyTemplate.ToString()); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create PdfTemplate object. - Dim template As PdfTemplate = page.CreateTemplate() - 'Get read-only - Dim readOnlyTemplate As Boolean = template.ReadOnly - Console.Write("Read-Only template: " + readOnlyTemplate.ToString()) - 'Close the document. - doc.Close(True) - - - - - - Gets the wrapped element. - - - - - Represents a pie shape. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red,New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Represents a set of points connected with lines, could be drawn and filled. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(50, 50); - PointF point2 = new PointF(100, 50); - PointF point3 = new PointF(150, 100); - PointF point4 = new PointF(150, 150); - PointF point5 = new PointF(100, 200); - PointF point6 = new PointF(50, 200); - PointF point7 = new PointF(0, 150); - PointF point8 = new PointF(0, 100); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(50, 50) - Dim point2 As New PointF(100, 50) - Dim point3 As New PointF(150, 100) - Dim point4 As New PointF(150, 150) - Dim point5 As New PointF(100, 200) - Dim point6 As New PointF(50, 200) - Dim point7 As New PointF(0, 150) - Dim point8 As New PointF(0, 100) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Array of the points. - - - - - Initializes a new instance of the class. - - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(50, 50); - PointF point2 = new PointF(100, 50); - PointF point3 = new PointF(150, 100); - PointF point4 = new PointF(150, 150); - PointF point5 = new PointF(100, 200); - PointF point6 = new PointF(50, 200); - PointF point7 = new PointF(0, 150); - PointF point8 = new PointF(0, 100); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(50, 50) - Dim point2 As New PointF(100, 50) - Dim point3 As New PointF(150, 100) - Dim point4 As New PointF(150, 150) - Dim point5 As New PointF(100, 200) - Dim point6 As New PointF(50, 200) - Dim point7 As New PointF(0, 150) - Dim point8 As New PointF(0, 100) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfBrushes.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfBrushes.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the polygon shape. - The brush of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Black, PdfBrushes.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Black, PdfBrushes.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Adds a point to the polygon. - - The last point of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Add points. - polygon.AddPoint(new PointF(50, 50)); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Add points. - polygon.AddPoint(New PointF(50, 50)) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the points of the polygon. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Black, new PointF[] { new PointF(0,100) }); - //Set the polygon points. - polygon.Points = points; - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Black, New PointF() {New PointF(0, 100)}) - 'Set the polygon points. - polygon.Points = points - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a number of the points in the polygon. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Get the polygon points count. - int count = polygon.Count; - Console.WriteLine("Polygon points count: " + count); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Get the polygon points count. - Dim count As Integer = polygon.Count - Console.WriteLine("Polygon points count: " + count) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a simple rectangle that could be drawn and/or filled. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - - Default compression. - - - - - Uses JBIG2 compression for monochrome TIFF images. - - - - - The contains methods and properties to handle the Bitmap images - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the base class for images and provides functionality for the class - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The stream containing image data. - - - - - The size of the image in points. - - - - - Horizontal image resolution. - - - - - Vertical image resolution. - - - - - Holds mask type flag. - - - - - Holds list of color space - - - - - Creates from the specified file.. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A string that contains the name of the file from which to create the - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates PdfImage from the specified data stream.. - - A Stream that contains the data for this . - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromStream(File.OpenRead("Autumn Leaves.jpg")); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromStream(File.OpenRead("Autumn Leaves.jpg")) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a from the existing . - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The from which to create the new . - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfImage image = PdfImage.FromImage(picture); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As PdfImage = PdfImage.FromImage(picture) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new image instance from RTF text with the specified RTF text, width and image type - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The RTF text from which to create the new - Width of the image in points. - Type of the image that should be created. - PdfImage containing RTF text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new image instance from RTF text with the specified RTF text, width, height and image type - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The RTF text from which to create the new . - Width of the image in points. - Height of the image in points. - Type of the image that should be created. - PdfImage containing RTF text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Checks the stream existence. - - The stream. - The stream if it exists. - It's thrown if the stream is null. - - - - Calculates the width and height of the image. - - Width of the image in points. - Height of the image in points. - Calculates the width and height of the image. - - - - Saves the image into stream. - - - - - Sets the content stream. - - The content. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets bounds of image. - - The DPI is standard, not image DPI. - Bounds of image. - - - - Calculates size of the image in points. - - Width in pixels. - Height in pixels. - size of the image in points. - - - - Calculates size of the image in points. - - Width in pixels. - Height in pixels. - Horizontal resolution. - Vertical resolution. - size of the image in points. - - - - Sets resolution of the image. - - Horizontal resolution of the image. - Vertical resolution of the image. - - - - Gets the height of the image in pixels (Read only). - - The height of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the width of the image in pixels (Read only). - - The width of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the horizontal resolution, in pixels per inch, of this Image (Read only). - - The horizontal resolution of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the vertical resolution, in pixels per inch, of this Image (Read only). - - The vertical resolution of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the image in points (Read only). - - The size of the image in points - This property uses HorizontalResolution and VerticalResolution for calculating the size in points. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Holds list of color space - - An array of component values specifying the matte color - with which the image data in the parent image has been preblended. - The array consists of numbers, where n is the number of components - in the color space specified by the ColorSpace entry in the parent image�s - image dictionary; the numbers must be valid color components - in that color space. - - - - Gets the image. - - The image. - - - - Gets the image stream. - - - - - Gets the mask type. - - true if soft mask; otherwise, hard mask false. - - - - Gets the wrapped element. - - - - - Start of image marker. - - - - - JFIF marker. - - - - - Start of scan marker. - - - - - End of image marker. - - - - - Holds image. - - - - - Holds the index of active frame for multiframe images. - - - - - Holds image frame dimention. - - - - - Holds mask for current image. - - - - - Holds bits per component. - - - - - Holds image color space. - - - - - A flag indicating whether the image is to be treated as an image mask. - - - - - Holds list of saved frames. - - - - - Indicates if the object has been disposed. - - - - - The quality of the stored image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - - Internal variable to store the check value. - - - - - Holds the raw image stream - - - - - Indicates whether the quality is set to custom. - - - - - Initializes a new instance of the class from the specified existing image. - - The from which to create the new Bitmap. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified file. - - The bitmap file name and path. - The file name and path can be relative to the application or an absolute path. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified data stream. - - The data stream used to load the image. - /// - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the stream - PdfBitmap image = new PdfBitmap(File.OpenRead("Autumn Leaves.jpg")); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the stream - Dim image As New PdfBitmap(File.OpenRead("Autumn Leaves.jpg")) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Dispose the image object. - image.Dispose(); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Dispose the image object. - image.Dispose() - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Disposes the specified disposing. - - if it is disposing, set to true. - - - - Saves the image into stream. - - - - - Gets the bits per pixel. - - The pixel format of the image. - Number of bits per pixel - - - - Gets the encoder info. - - Type of the MIME. - - - - - Saves the image as JPG. - - - - - Saves the current image as pixel matrix. - - - - - Gets the color space from image stream. - - Memory stream of image. - Color space. - - - - Sets the mask for image. - - - - - Saves the required items. - - - - - Creates the mask from ARGB image. - - The ARGB image. - - - - - Creates the mask from an indexed image. - - The image. - The proper greyscale image, which represents the mask. - - - - Saves the image by pixel format. - - - - - Saves the image. - - The image filters. - - - - Sets the color space. - - - - - Saves the additional items. - - - - - Checks if frame was saved already. - - The frame index. - - true if frame was saved, otherwise false. - - - - - Get or sets the Check Value. - - - - - Gets or sets the active frame of the image. - - The index of the active frame. - - - //Create a PDF document - PdfDocument pdfDocument = new PdfDocument(); - //Add a section to the PDF document - PdfSection section = pdfDocument.Sections.Add(); - //Declare the PDF page - PdfPage page; - //Declare PDF page graphics - PdfGraphics graphics; - //Load multi frame Tiff image - PdfBitmap tiffImage = new PdfBitmap("image.tiff"); - //Get the frame count - int frameCount = tiffImage.FrameCount; - - //Access each frame draw into the page - for (int i = 0; i!=frameCount-1; i++) - { - page = section.Pages.Add(); - section.PageSettings.Margins.All = 0; - graphics = page.Graphics; - tiffImage.ActiveFrame = i; - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - } - //Save and close the document - pdfDocument.Save("Sample.pdf"); - pdfDocument.Close(true); - - - 'Create a PDF document///Dim pdfDocument As New PdfDocument() - 'Add a section to the PDF document - Dim section As PdfSection = pdfDocument.Sections.Add() - 'Declare the PDF page - Dim page As PdfPage - 'Declare PDF page graphics - Dim graphics As PdfGraphics - 'Load multi frame Tiff image - Dim tiffImage As New PdfBitmap("image.tiff") - 'Get the frame count - Dim frameCount As Integer = tiffImage.FrameCount - 'Access each frame draw into the page - For i As Integer = 0 To frameCount - 1 - page = section.Pages.Add() - section.PageSettings.Margins.All = 0 - graphics = page.Graphics - tiffImage.ActiveFrame = i - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - Next - 'Save and close the document - pdfDocument.Save("Sample.pdf") - pdfDocument.Close(True) - - - - - - Gets the number of frames in the bitmap (Read only). - - The frame count of the image. - - - //Create a PDF document - PdfDocument pdfDocument = new PdfDocument(); - //Add a section to the PDF document - PdfSection section = pdfDocument.Sections.Add(); - //Declare the PDF page - PdfPage page; - //Declare PDF page graphics - PdfGraphics graphics; - //Load multi frame Tiff image - PdfBitmap tiffImage = new PdfBitmap("image.tiff"); - //Get the frame count - int frameCount = tiffImage.FrameCount; - //Access each frame draw into the page - for (int i = 0; i!=frameCount-1; i++) - { - page = section.Pages.Add(); - section.PageSettings.Margins.All = 0; - graphics = page.Graphics; - tiffImage.ActiveFrame = i; - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - } - //Save and close the document - pdfDocument.Save("Sample.pdf"); - pdfDocument.Close(true); - - - 'Create a PDF document///Dim pdfDocument As New PdfDocument() - 'Add a section to the PDF document - Dim section As PdfSection = pdfDocument.Sections.Add() - 'Declare the PDF page - Dim page As PdfPage - 'Declare PDF page graphics - Dim graphics As PdfGraphics - 'Load multi frame Tiff image - Dim tiffImage As New PdfBitmap("image.tiff") - 'Get the frame count - Dim frameCount As Integer = tiffImage.FrameCount - 'Access each frame draw into the page - For i As Integer = 0 To frameCount - 1 - page = section.Pages.Add() - section.PageSettings.Margins.All = 0 - graphics = page.Graphics - tiffImage.ActiveFrame = i - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - Next - 'Save and close the document - pdfDocument.Save("Sample.pdf") - pdfDocument.Close(True) - - - - - - Gets or sets the mask of bitmap. - - New PdfMask represents the mask image. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the quality of the image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Set image quality. - image.Quality = 50; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Set image quality. - image.Quality = 50 - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the image. - - - - - - Represents the color mask for Bitmap images. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Base class for bitmap masking objects. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds start color of color mask. - - - - - Holds end color of color mask. - - - - - Initializes a new instance of the class with the specified start and end color - - The start color of the color mask. - The end color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the start color of the mask. - - The which represents the starting color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Set start color. - mask.StartColor = new PdfColor(Color.Green); - //Set end color. - mask.EndColor = new PdfColor(Color.Red); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Set start color. - mask.StartColor = New PdfColor(Color.Green) - 'Set end color. - mask.EndColor = New PdfColor(Color.Red) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the end color of the mask. - - The which represents the ending color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Set start color. - mask.StartColor = new PdfColor(Color.Green); - //Set end color. - mask.EndColor = new PdfColor(Color.Red); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Set start color. - mask.StartColor = New PdfColor(Color.Green) - 'Set end color. - mask.EndColor = New PdfColor(Color.Red) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the image mask object for bitmap images. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds mask image. - - - - - Holds mask type flag. - - - - - Initializes a new instance of the PdfImageMask class from the specified - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The PdfBitmap which represents the image - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the image mask for the bitmap (Read only). - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The represents the image mask. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - //Get the mask image. - PdfBitmap maskedImage = mask.Mask; - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - 'Get the mask image. - Dim maskedImage As PdfBitmap = mask.Mask - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the mask type for the bitmap (Read only). - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - true if soft mask; otherwise, hard mask false. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - //Check soft mask. - bool isSoftMask = mask.SoftMask; - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - 'Check soft mask. - Dim isSoftMask As Boolean = mask.SoftMask - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Class representing metafile image - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds image. - - - - - Holds template for metafile. - - - - - Indicates if the metafile has been parsed. - - - - - Contains the information about the text regions in the metafile. - - - - - Contains the information about the image regions in the metafile. - - - - - Indicates if the object has been disposed. - - - - - Indicates whether we should dispose image or not. - - - - - Indicates the quality of the image. - - - - - Indicates the image resolution - - - - - Contains the html hyperlink - - - - - Contains document links. - - - - - Contains form's input elements. - - - - - Contains select elements. - - - - - Contains button elements. - - - - - - - - - - - - - - - Internal varible to store the alpha pen. - - - - - Internal varible to store the alpha brush. - - - - - Internal varible to store tranaparency is applied or not. - - - - - Internal varible to store the pdf blend mode. - - - - - Internal variable to store current pdf document - - - - - internal variable to store identical image collection - - - - - - - - - - Internal variable to store ShapeLayoutBounds - - - - - Check whether the metafile has PdfGrid - - - - - internal variable to store GridbottomCellpadding - - - - - Initializes a new instance of the class with - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The metafile. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - Metafile metaFile = new Metafile("MetaChart.emf"); - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile(metaFile); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - Dim metaFile As New Metafile("MetaChart.emf") - 'Create a Metafile instance - Dim metaChart As New PdfMetafile(metaFile) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with metafile path - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The metafile path. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class from stream of the metafile - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The stream. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - byte[] data = File.ReadAllBytes("MetaChart.emf"); - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile(new MemoryStream(data)); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - Dim data As Byte() = File.ReadAllBytes("MetaChart.emf") - 'Create a Metafile instance - Dim metaChart As New PdfMetafile(New MemoryStream(data)) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Disposes the specified disposing. - - if it is disposing, set to true. - - - - Saves the image into stream. - - This methods prepares a PDF template (XObject) - for saving and drawing. - - - - Layouts the element. - - Layout parameters. - Returns lay outing results. - - - - Layouts the HtmlToPdf element. - - Layout parameters. - Returns lay outing results. - - - - Checks the format of the metafile. Converts it to supported format. - - Input metafile. - Resulted metafile. - - - - Converts WMF/EmfPlusDual metafile to EMF metafile. - - WMF/EmfPlusDual metafile. - EMF metafile converted from WMF/EmfPlusDual metafile. - - - - Sets the transparency. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The alpha value for pen operations. - The alpha value for brush operations. - The blend mode. - Transparency is applied or not. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set transparency. - metaChart.SetTransparency(0.5f, 0.5f, PdfBlendMode.Overlay, true); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set transparency. - metaChart.SetTransparency(0.5F, 0.5F, PdfBlendMode.Overlay, True) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Get or Sets transparency is applied or not. - - - - - Get or Sets the alpha pen - - - - - Get or Sets the alpha brush. - - - - - Get or Sets the Blend mode. - - - - - Gets the image. - - The image. - - - - Gets the information about the text regions in the metafile. - - - - - Gets the information about the image regions in the metafile. - - - - - Returns the internal template. - - - - - get or set the PdfDocument - - - - - get or set the bool value to to idetenctical image - - - - - get or set the bool value to to embed font - - - - - get or set the bool value to to embed complete font - - - - - Gets or sets the quality of the image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set image quality. - metaChart.Quality = 10; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set image quality. - metaChart.Quality = 10 - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the resolution of the image - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set image resolution. - metaChart.ImageResolution = 72; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set image resolution. - metaChart.ImageResolution = 72 - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Contains the html hyperlink collection. - Used during html to pdf conversion to preserve live-links. - - - - - Contains document links. - - - - - Contains Input Elements. - - - - - Contains List elements. - - - - - Contains List elements. - - - - - Gets or sets the page scale. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page scale. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set page scale. - metaChart.PageScale = 1.2f; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set page scale. - metaChart.PageScale = 1.2F - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the page graphics unit. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page unit. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set the page unit. - metaChart.PageUnit = GraphicsUnit.Point; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set the page unit. - metaChart.PageUnit = GraphicsUnit.Point - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Checks whether the image is direct rendering or template based. - - - - - Get or set current page graphics - - - - - Gets or sets the custom font collection. - - - - - Gets or set the embedded fonts. - - - - - Holds all tokens which might appear in every PDF file. - - - - - All element types. - - - - - Specfies the status of the IPdfPrmitive. Status is registered if it has a reference or else none. - - - - - CrossTable is a class that performs low-level I/O - for parsing a PDF cross reference table. - - - - - Holds the stream. - - - - - Holds the stream reader. - - - - - The parser of the reader. - - - - - A container of all object offsets. - - - - - The document trailer. - - - - - A chache variable for chaching the document catalog offset. - - - - - The last cross-reference table. - - - - - The storage for stream object readers. - - - - - The table of the archives within the document. - - - - - The document encryptor. - - - - - The high level cross-table. It's required for convertion - PDFReferences into PDFReferenceHolders. - - - - - - - - - Repairing wrong offset values - - - - - Read the whitespaces in front of the document - - - - - Searches for all instances of reference tables and parses them. - - The stream with the document. - The high-level cross table. - - - - Looks up for the token startxref. - - - - - Retrieves an object by its reference. - - The reference of the object. - The object read from its reference. - - - - Retrieves a PDF stream from a PDF document. - - The reference object to the stream. - The array of bytes taken from the PDF stream. - - - - Parses the new table. - - The cross-reference table stream. - The hash table of the objects. - - - - Parses current subsection. - - The PDF stream reader with the file in. - The table with the offsets foud. - - - - Retrieves a PDF reader by the archive information. - - - - - - Retrieves an archive by its number. - - The archive. - - - - Parses the dictionary and retrieves the subsection information - in the ArrayList. - - A PDF stream representing a cross-reference - stream dictionary. - The information about subsections. - - - - Parses a subsection within a cros-reference stream. - - A cross-reference stream. - A structure that specifies a subsection. - The table with the offsets foud. - The start position within the stream data. - The start position of the next subsection. - - - - Retrieves an object by its reference. - - The PDF parser. - The position within the reader's stream. - The object read from its reference. - - - - Skip junk string from the PDF - - - - - - Dispose the corsstable. - - - - - Returns the offset of an obkect specified. - - - - - Returns the number of the objects which have been found. - - - - - Gets the document catalog address. - - - - - Returns the stream. - - Use with caution. - - - - Returns the offset of the last cross-reference table. - - - - - Returns the steream reader. - - - - - Gets the parser. - - The parser. - - - - Returns the document's trailer. - - - - - - Gets or sets the encryptor. - - - - - Represents a subsection in a cross-reference stream. - - - - - The first object number in the subsection. - - - - - The total number of the objects within the subsection. - - - - - Initialize the subsection with start number and count. - - The first object number in the subsection. - The total number of the objects within the subsection. - - - - - Initialize the subsection with count. - - The total number of the objects within the subsection. - - - - - Represents a type of an object. - - - - - Stores information about a PDF packed object. - - - - - A number of an object stream that holds the object. - - - - - The index of the object within the archive. - - - - - The archive. - - - - - Delegate that retrieves an archive by its number. - - - - - Initialize the archive information class with the archive number and - the index within the archive. - - The archive number. - The index within the archive. - The GetArchive delegade. - - - - Gets a number of an object stream that holds the object. - - - - - Gets the index of the object within the archive. - - - - - Gets the archive number. - - - - - Stores information about an PDF indirect object. - - - - - The type of the object. - - - - - The archive information. - - - - - The PDF reader wich can read from the archive. - - - - - The offset of the object. - - - - - The CrossTable class instance. - - - - - Converts an Object information into the offset. - - An ObjectInformation class instance. - The offset of zero. - - - - Holds the parsed object. - - - - - Initialize the object information object. - - The object's type. - The object's offset or zero. - The archive info or null. - The low-level reading cross table. - - - - Gets the type of the object. - - - - - The PDF reader wich can read from the archive. - - - - - The offset of the object. - - - - - Gets the archive information. - - - - - - - Implements functionality of PDF object stream (or PDF - archive). - - - - - Internal variable to hold cloned object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The data. - - - - Gets bytes of the stream. - - Stream to be converted. - Destination bytes. - - - - Gets bytes of the stream. - - Stream to be converted. - Indicates whether to write the whole stream. - Destination bytes. - - - - Converts a stream to bigendian format. - - A stream containing data. - A stream in bigendian format. - - - - Writes the specified symbol. - - The symbol. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Blocks the encryption. - - - - - Decompresses this instance. - - - - - Hex to Decimal conversion - - Hex character to convert into Decimal - Equivalent decimal value - - - - Decode hex stream to decimal equivalent - - hexadecimal byte stream - decimal equivalent for the hexadecimal byte stream - - - - Cleares a stream. - - - - - Dispose the stream data. - - - - - Saves the object using the specified writer. - - The writer. - - - - Creates a copy of PdfStream. - - - - - Decrypts the data using the specified encryptor. - - The encryptor. - The current object number. - - - - Decompresses the stream data. - - The data to decompress. - The filter name. - Uncompressed byte array. - - - - Returnes a compressor by its name. - - The name of the compressor. - IPDFCompressor interface. - - - - Performs postprocessing of the data for the filter specified. - - The data to process. - The filter. - Restored data. - - - - Normalizes the filter. If the filter array has only one element store that element - instead of entire array. - - - - - Compresses the content if it's required. - - The writer. - The compressed data. - - - - Adds a filter to the filter array. - - Name of the filter. - - - - Encrypts the stream content. - - The data. - The writer. - The encrypted content. - - - - Gets the internal stream. - - - - - Gets or sets the data. - - The modifications of the returned stream - have no impact on the real data. - - - - Gets or sets compression flag. - - true if compress; otherwise, false. - - - - Returns cloned object. - - - - - Gets a value indicating whether the object was encrypted. - - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - - - Holds sorted indices. - - - - - - - Holds the objects. - - - - - - - PDF stream writer. - - - - - - - PDF stream writer. - - - - - - - The current document. - - - - - - - Initializes a new instance of the - class. - - The document. - - - - - - Saves the object. - - The object. - The reference. - - - - - - Gets the index of the object referenced by its number. - - The object number. - - The index of the object. - - - - - - - Writes object to defined writer. - - Writer for object saving. - - - - Clears the PdfArchiveStream. - - - - - - - Saves objects. - - - - - - - Saves indices. - - - - - - - Gets the count of objects. - - - - - - - Stores information about current object and index. - - - - - - - Current object. - - - - - - - The current index within the object. - - - - - - - Initializes a new instance of the - class. - - The object. - - - - PDFCrossTable is responsible for intermediate level parsing - and savingof a PDF document. - - - - - The low level implementation of the cross-reference table. - - - - - The document catalog. - - - - - The stream the file within. - - - - - The modified objects that should be saved. - - - - - The number of the objects. - - - - - Shows if the class have been dicposed. - - - - - The trailer for a new document. - - - - - The main PdfDocument class instance. - - - - - Flag that forces an object to be 'a new'. - - - - - The obj number stack. Holds object numbers - that are used to decode strings and streams. - - - - - Holds maximal generation number or offset to object. - - - - - The current object archive. - - - - - The mapped references. - - - - - The value of the count stored - before count was wiped out. - - - - - The list of the completed archives. - - - - - Internal variable to identify the current object is PdfEncryptor or not. - - - - - Internal variable to store pages. - - - - - Internal variable to store reference. - - - - - Internal variable to store if document is being merged. - - - - - internal varible to conform colorspace - - - - - Repair the docuemnt which contains wrong offset values - - - - - Indicates whether the crosstable completely disposed or not. - - - - - Indicates whether the base class is disposed or not. - - - - - The costructor of the table. - - A stream which contains the document. - - - - The costructor of the table. - - A stream which contains the document. - Repair the crosstable witch contains wrong offsets - - - - The costructor of the table. - - - - - - - A costructor thar initialize a new cross table. - - - - - Initializes a new instance of the class. - - The count. - The encryption dictionary. - - - - Initializes a new instance of the class. - - The count. - The encryption dictionary. - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Dereferences the specified primitive object. - - The primitive object. - Dereferenced object. - - - - Retrieves an object by its reference. - - The reference of the object. - The object read from its reference. - - - - Decrypt a decryptable object. Should be called during Prepare(). - - The decrypted object. - - - - Decrypts the specified obj. - - The obj. - - - - Retrieves a PDF stream from a PDF document. - - The reference object to the stream. - The array of bytes taken from the PDF stream. - - - - Registers the object in the cross reference table. - - The offset of the object within the file - The representation of the reference to the object. - - - - - Registers an archived object. - - The archive. - The reference to the object. - - - - Registers the object in the cross reference table. - - The offset of the object within the file - The representation of the reference to the object. - - True if object is free. - - - - Saves the cross-reference table into the stream. - - The stream writer to save the cross-reference table into. - - - - - Retrieves the reference of the object given. - - The object. - The reference. - If there is no registered reference, create a new one and register - it. - - - - Retrieves the reference of the object given. - - The object. - The output flag, which shows if the object is new. - The reference. - - - - Forces all object to be 'a new'. - - - - - Marks the trailer references being saved. - - - - - Checks if an object is a page and convert it into a loaded page if necessary. - - The object, which should be checked. - The checked and modified object. - - - - Prepares the cross-reference stream. - - The offset to the previous cross-reference stream. - The current position. - The reference. - Prepared cross-reference stream. - - - - Gets the minimal number of bytes required to save the number. - - The number. - How much bytes required. - - - - Saves the subsection. - - The binary writer of cross-reference stream. - The object number. - The count. - The format. - - - - Saves the long. - - The xref stream. - The number. - The count of bytes. - - - - - - Sets the security to the document. - - - - - - - Saves all objects in the collection. - - Writer object. - - - - Saves the archives. - - The writer. - - - - Gets the mapped reference. - - The reference. - The mapped reference. - - - - Finds the archive reference. - - The archive. - The reference found. - - - - - - Saves indirect object. - - Indirect object that should be saved. - Writer object. - - - - Retrieves the reference of the given object. - - The object. - The reference. - The writer. - - - - Saves the current archive. - - The writer. - - - - Performs real saving of the save object. - - The object. - The reference. - The writer. - - - - Generates the document page root dictionary object. - - The document page root dictionary object. - - - - Saves the xref section. - - The stream writer. - - - - Prepares a subsection of the current section within the cross-reference table. - - The first object in the subsection. - The number of the entries in the section. - - - - Saves a subsection. - - A PDF writer. - The firs object in the subsection. - The number of the indirect objects in the subsection. - - - - - Generates string for xref table item. - - Offset of the object in the file. - The generation number of the object. - Indicates whether object is free. - String representation of the item. - - - - Saves the new trailer dictionary. - - A PDF writer. - The total number of the objects. - The PrevXRef value. - - - - Forces the ID to be in hex. - - The trailer. - - - - Saves the endess of the file. - - A PDF writer. - The xref position. - - - - Saves the head. - - The writer. - - - - Generates the version of the file. - - the parent document. - The version of the file. - - - - Checks the cross-reference type in the document. - - The parent document. - True if cross-reference is a stream, False otherwise. - - - - Frees all resources. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and - unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the current object is PdfEncryptor or not. - - - - - Returns the document catalog. - - - - - Returns the source stream. - - - - - Returns next available object number. - - - - - Returns a low-level cross-reference table parser. - - - - - Gets or sets the number of the objects within the document. - - - - - Gets or sets the main PdfDocument class instance. - - - - - Gets the chached PDF object main collection. - - - - - Gets the trailer. - - - - - Gets or sets if the document is merged. - - - - - Gets or sets the encryptor. - - - - - Gets the object collection. - - - - - Gets the security dictionary. - - The security dictionary. - - - - Gets or sets page correspondance up on each page import. - - - - - Gets or sets the PdfReference of latest processed object. - - - - - Represents a registered object. - - - - - The object number of the indirect object. - - - - - The generation number of the indirect object. - - - - - The offset of the indirect object within the file. - - - - - Archive. - - - - - Shows if the object is free. - - - - - Holds the current cross-reference table. - - - - - Initialize the structure with the proper values. - - The offset of the object. - The reference representing the object number and - the generation number of the indirect object. - - - - Initialize the structure with the proper values. - - The offset of the object. - The reference representing the object number and - the generation number of the indirect object. - Shows if the object is free. - - - - Initializes a new instance of the class. - - The xref table. - The archive. - The reference. - - - - Gets the object number. - - - - - Gets the offset. - - - - - Stores information about an archive. - - - - - The object number of the archive. - - - - - The archive stream. - - - - - Initializes a new instance of the class. - - The reference. - The archive. - - - - PDF dictionary properties. - - - - - Start marker for dictionary. - - - - - Holds the current string being read. - - - - - Holds the current parentessis index. - - - - - Holds the current dictionary is structured or unstructured. - - - - - Resets the lexer. - - - - - Reads the count bytes from the stream. - - The number of bytes to read. - - The data which were read from the stream. - - - - - Skips the new line. - - - - - Skips the token. - - - - - Gets the next token. - - - - - - Returns the current text value. - - - - - Gets current line number. - - - - - Gets the current string being read. - - - - - Returns file position. - - - - - Gets or sets the current dictionary is structured or unstructured. - - - - - The collection of all objects within a PDF document. - - - - - The collection of the indirect objects. - - - - - The collection of the Indirect objects - - - - - The collection of primitive objects. - - - - - Holds the index of the object. - - - - - Initializes a new instance of the - class. - - - - - Adds the specified element. - - The element. - - - - Adds the specified object. - - The object. - The reference. - - - - Removes the entry using index. - - - - - Determines whether the specified element is within the collection. - - The element. - - true if the specified element is within the collection; otherwise, false. - - - - - Determines whether the collection contains the specified reference. - - The reference. - - true if there is the specified reference; otherwise, false. - - - - - Gets the reference of the object. - - The index. - The reference of the object. - - - - Gets the reference of the object. - - The object. - if set to true the object hasn't been found in the collection. - The reference of the object. - - - - Gets the object specified by the index. - - The index. - The object. - - - - Gets the object specified by the index. - - The index. - The object. - - - - Gets the index of the object. - - The reference. - The index of the object within the general object collection. - - - - Tries to set the reference to the object. - - The object. - The reference. - if set to true the object was found. - - True if the reference have been set successfully. - - - - - Determines the index of the element within the collection. - - The element. - The index of the element. - - - - Reregisters the reference. - - Old index of the obj. - The new object. - - - - Reregisters reference from one object to another. - - The old (primitive) object. - The new (complex) object. - This method is useful when PDF primitives are converted into - More complex objects. - - - - Looks through the collection for the object specified. - - The object to look for. - The index of the object. - - - - Looks through the collection for the object specified by the reference. - - The reference. - The index of the objec. - - - - Gets the at the specified index. - - - - - Gets the count. - - - - - Stores info about objects in the PDF document. - - - - - Shows if the object was modified and requires saving. - - - - - The PDF object. - - - - - Object number and generation number of the object. - - - - - Initializes a new instance of the class. - - The PDF object. - - - - Initializes a new instance of the class. - - The PDF object. - The reference. - - - - Marks the object modified. - - - - - Sets the reference. - - The reference. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Implements the operator ==. - - The object information. - The object. - The result of the operator. - - - - Implements the operator !=. - - The oi. - The obj. - The result of the operator. - - - - Determines whether the specified - is equal to the current . - - The - to compare with the current . - - true if the specified - is equal to the current ; otherwise, false. - - - - - Gets a value indicating whether the object has been modified. - - - - - Gets the reference. - - - - - Gets the object. - - - - - A class of string messages. - - - - - Class of string PDF common operators. - - - - - Operator for starting indirect object. - - - - - Operator for ending indirect object. - - - - - Operator for reference on indirect object. - - - - - Whitespace symbol. - - - - - Slash symbol. - - - - - Less than symbol. - - - - - Greater than symbol. - - - - - New Line symbol. - - - - - Regex New Line symbol. - - - - - Operator for starting stream object. - - - - - Operator for ending indirect object. - - - - - Operator for starting cross-reference table. - - - - - Operator in cross-reference table. - - - - - Operator in cross-reference table. - - - - - Trailer begining. - - - - - Operator in trailer object. - - - - - End of File (trailer) operator. - - - - - Start of File (trailer) operator. - - - - - Begin text operator. - - - - - End text operator. - - - - - Begin path operator. - - - - - Append line segment operator. - - - - - Stroke operator. - - - - - Fill by nonzero winding rule operator. - - - - - Fill by even-odd rule operator. - - - - - Fill && Stroke operator. - - - - - Fill && Stroke operator. - - - - - Append a cubic Bezier curve to the current path. - - - - - Append a rectangle to the current path as a complete subpath. - - - - - Save graphics state operator. - - - - - Restore graphics state operator. - - - - - Paint XObject operator. - - - - - Modifies CTM (current transformation matrix). - - - - - Modifies CTM (current transformation matrix). - - - - - Sets line width. - - - - - Sets line cap style. - - - - - Sets line join style. - - - - - Sets dash pattern. - - - - - Sets flatness tolerance. - - - - - Closes path. - - - - - Closes and strokes path. - - - - - Operator for closing then filling and stroking a path. - - - - - Sets character space. - - - - - Sets word space. - - - - - Sets horizontal scaling. - - - - - Sets text leading. - - - - - Sets font operator. - - - - - Sets rendering mode. - - - - - Sets text rise. - - - - - Sets text horizontal scaling. - - - - - Set coordinates operator. - - - - - Operator that sets the start of the new line and leading simultaneously. - - - - - Sets text pointer to next line. - - - - - Set text operator - - - - - Operator to set text with formatting. - - - - - Operator that writes text on the new line. - - - - - Operator that writes text on the new line and set spacings. - - - - - Selects a color space for the stroking color. - - - - - Selects a color space for the nonstroking color. - - - - - Sets RGB color for stroking operations. - - - - - Same as RGB but for nonstroking operations. - - - - - Sets CMYK color for stroking operations. - - - - - Same as CMYK but for nonstroking operations. - - - - - Sets gray color for stroking operations. - - - - - Same as RGB but for nonstroking operations. - - - - - Set pattern operator. - - - - - Same as SC, but also supports Pattern, Separation, DeviceN, and ICCBased - color spaces. For non-stroking operations. - - - - - Same as SC, but also supports Pattern, Separation, DeviceN, and ICCBased - color spaces. For stroking. - - - - - Modify the current clipping path by intersecting it with the current path, using the - nonzero winding number rule to determine which regions lie inside the clipping path. - - - - - Modify the current clipping path by intersecting it with the current path, using the - odd-even rule to determine which regions lie inside the clipping path. - - - - - End the path object without filling or stroking it. This operator is a "path-painting - no-op," used primarily for the side effect of changing the current clipping path (see - "Clipping Path Operators"). - - - - - Graphics state operator. - - - - - Symbol of commenting. - - - - - Indicates any symbol (regex syntax). - - - - - Begins a marked-content sequence. - - - - - Ends a marked-content sequence. - - - - - Even-odd filling method marker. - - - - - The operator to apped bezier curve with x2 y2 x3 y3 set. - - - - - The operator to apped bezier curve with x1 y1 x3 y3 set. - - - - - Set miter limit operator. - - - - - Set color rendering intent operator. - - - - - Set colour of the current colour space for stroking. - - - - - Set colour of the current colour space for non-stroking operations. - - - - - Private constructor. - - - - - The cross-reference table. - - - - - The reader. - - - - - PDF lexer. - - - - - The next token. - - - - - Holds all integers that have been read ahead. - - - - - he high level cross-table. It's required for convertion - PDFReferences into PDFReferenceHolders. - - - - - Internal variable to identify the current object is PdfEncryptor or not. - - - - - To identify whether the dictionary contains colorspace - - - - - Internal variable to indicate the string is password or not. - - - - - Initializes a new instance of the class. - - The cross-reference table. - The reader. - The cross table. - - - - Parses a PDF object. - - The offset to the object. - The object. - - - - Parses a PDF object. - - The object. - - - - Reads a trailer from the stream at the offset. - - The offset. - The trailer dictionary. - - - - Reads a trailer from the stream at the offset. - - The trailer dictionary. - - - - Reads startxref entry. - - The offset to the XRef table. - - - - Sets the offset. - - The offset. - - - - Parses the XRef table. - - The objects. - The cross-reference table. - The trailer dictionary. - - - - Rebuild the xref table for corrupted PDF Documents - - - - - - - Reads a simple object from the stream. - - - - - - Reads the object flag. - - A string that holds the flag. - - - - Starts from the offset specified. - - The offset. - - - - Parses old xref table. - - Cross table object. - A collection of the objects. - - - - Determines whether there is a subsection. - - - true if there is subsection; otherwise false. - - - - - Reacts on an error. - - The error. - The additional information. - - - - Matches the specified token. - - The token. - The match. - - - - Reads the next token. - - - - - Reads the name. - - The PDFName. - - - - Reads the boolean. - - The PDF boolean object. - - - - Reads the unicode string. - - The PDF string object. - - - - Processes the unicode escapes. - - The text. - A nornal string. - - - - Reads the string. - - The string. - - - - Checks if the string is Big Endian Encoded - - Encoded string - True if the string is Big Endian Encoded - - - - Processes escapes. - - A text string. - A string without escape sequences. - - - - Processes the octal number. - - The text. - The index. - The caracter which value is equal to the octal number. - - - - Processes escapes in password string. - - A text string. - A string without escape sequences. - - - - Processes the octal number. - - The text. - The index. - The caracter which value is equal to the octal number. - - - - Read a string coded in hexadecimal digits. - - A string object. - - - - Reads an integer number. - - A PDF integer. - - - - Parses the integer. - - The integer. - - - - Read a real number. - - A PDF real. - - - - Reads an array. - - The well formed array. - - - - Reads a dictionary from the stream. - - The filled PDF dictionary object. - - - - Reads the stream. - - The stream dictionary. - The PDFStream. - - - - Checks the given stream length is correct or not. - - - - - - - - Reads the pair. - - The well filled pair on success or Pair.Emty on failure. - - - - Gets or sets the current object is PdfEncryptor or not. - - - - - Contains constants of errors. - - - - - Holds the name-value pair. - - - - - Holds the empty pair. - - - - - Compares an object and a pair. - - The pair. - The obj. - True if the object is equal to the pair. - - - - Compares an object and a pair. - - The pair. - The obj. - True if the object is not equal to the pair. - - - - The name. - - - - - The value. - - - - - Initializes a new instance of the class. - - The name. - The value. - - - - Indicates whether this instance and a specified object are equal. - - Another object to compare to. - - true if obj and this instance are the same type and represent the same value; otherwise, false. - - - - - Returns the hash code for this instance. - - - A 32-bit signed integer that is the hash code for this instance. - - - - - Summary description for PDFReader. - - - - - The stream our reader works with. - - - - - A string with all delimeter characters except whitespaces, - which are listed elsewhere. - - - - - A string with all delimeter characters of json format except whitespaces, - which are listed elsewhere. - - - - - Holds peeked byte. - - - - - Indicates if a byte was peeked. - - - - - Initialize an instance of the PDFReader class. - - The stream. - - - - Disposes the object. - - - - - - Closes the object. - - - - - Reads a single line from the stream. - - The line read. - - - - Reads a character from the stream and andvances the current position. - - A character read, or -1 if EOF reached. - - - - Reads a character from the stream and preserves the current position of - the stream. - - A character read, or -1 if EOF reached. - - - - Read the sequence of bytes from the stream. - - The storage for the characters. - The index in the buffer. - The number of characters to read. - The count of the characters read. - - - - Read the sequence of bytes from the stream. - - The storage for the characters. - The index in the buffer. - The number of characters to read. - The count of the characters read. - - - - Read all bytes to the end of the stream and returns them as a single string. - - The characters read. - - - - Informs whether the character is from the EOL character. - - The character to test. - True if the character is from EOL characters, false otherwise. - - - - - Determines if the character specified is a separator character. - - The character to test. - True is the character is a separator character. - - - - Determines if the character specified is a delimeter character. - - The character to test. - True is the character is a delimeter character, false otherwise. - - - - - Looks up for the token. - - What to look for. - - - - - Searches for a token specified by 'token' string. - - What to search. - The position of the found token. - - - - Reads a string from a stream in the oppozite direction. - - The string. - - - - Skip any whitespace at the tail. - NOTE: stream.Position points to the last encounted whitespace. - - - - - Skips all white spaces. stream.Position will point to the first nonspase - character or EOF. - - - - - Returns next string separated by delimiters. - - A string. - - - - Seeks for the position specified. - - The origin relative offset. - The origin for the offset. - The zero based position in the stream. - - - - Appends a line with the next character from the stream. - Also it advances the current stream position. - - A text string. - The resulting the character read, - or -1 if EOF was reached during reading. - - - - Gets the peeked byte value. - - The byte value. - True if the byte was acquired. - - - - Sets or gets the position within the stream. - - - - - Returns the underlying stream. - - - - - Helper class to write PDF graphic streams easily. - - - - - Defines the basic interace of the various writers. - - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets or sets the current position within the stream. - - - - - Stream length. - - - - - The document required for saving process. - - - - - The PDF stream where the data should be write into. - - - - - Initializes a new instance of the class. - - The PDF stream. - - - - Modifies TM (text matrix). - - Matrix to be inserted. - - - - Sets font. - - The font. - The name of the font. - Font size. - - - - Sets font. - - The font. - The name of the font. - Font size. - - - - Set the Colorspace. - - - - - - - Sets the character spacing. - - The character spacing value. - - - - Sets the word spacing. - - The word spacing value. - - - - Sets the scaling. - - The scaling factor. - The scaling factor of 100 means "normal size". - - - - Sets text leading. - - The leading value. - - - - Sets the text rendering mode. - - The rendering mode. - - - - Sets text rise. - - The text rise value. - - - - Sets the text scaling. - - The text scaling. - - - - Starts the next line. - - - - - Starts the next line. - - The start point of the line. - - - - Shifts the text to the point. - - The x coordinate. - The y coordinate. - - - - Sets the start of the next line and set leading. - - The point. - - - - Sets the start of the next line and set leading. - - The x. - The y. - - - - Shows the text. - - The text. - if set to true the text is in hex. - - - - Shows the text. - - The text. - if set to true the text should be in hex. - - - - Shows the text. - - The text. - - - - Flushes tokens to the stream. - - String tokens. - - - - Shows the next line text. - - The text. - if set to true the text should be in hex. - - - - Shows the next line text. - - The text. - if set to true the text should be in hex. - - - - Shows the next line text. - - The text. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - if set to true the text should be in hex. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - if set to true the text should be in hex. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - - - - Shows the text. - - The formatting. - - - - Begins text. - - - - - Writes tags. - - - - - - Ends text. - - - - - Begins start markup sequence text. - - The name of the markup sequence. - - - - Begins start markup sequence text. - - The name of the markup sequence. - - - - Ends markup sequence text. - - - - - Writes comment to the file. - - - - - - Begins the path. - - The start point. - - - - Begins the path. - - The x. - The y. - - - - Appends bezier segment. - - - - - Appends bezier segment. - - The x1. - The y1. - The x2. - The y2. - The x3. - The y3. - - - - Appends the bezier segment. - - The p2. - The p3. - if set to true p2 is used as p1. - - - - Appends the bezier segment. - - The x2. - The y2. - The x3. - The y3. - if set to true - x2 is used as x1 and y2 is used as y1. - - - - Appends a line segment. - - The point. - - - - Appends a line segment. - - The x. - The y. - - - - Appends the rectangle. - - The rectangle. - - - - Appends the rectangle. - - The x. - The y. - The width. - The height. - - - - Closes path object. - - - - - Closes the sub path. - - - - - Fills path. - - if set to true use even-odd rule. - - - - Strokes path. - - - - - Fills and strokes path. - - if set to true use even-odd rule. - - - - Closes and strokes the path. - - - - - Closes, then fills and strokes the path. - - if set to true use even odd rule. - - - - Closes and fills the path. - - if set to true [use even odd rule]. - - - - Clips the path. - - if set to true use even odd rule. - - - - Ends the path. - - - - - Saves the graphics state. - - - - - Restores the graphics state. - - - - - Modifies current transformation matrix. - - Matrix to be inserted. - - - - Sets the width of the line. - - The width. - - - - Sets the line cap. - - The line cap style. - - - - Sets the line join. - - The line join style. - - - - Sets the miter limit. - - The miter limit. - - - - Sets the line dash pattern. - - The pattern. - The pattern offset. - - - - Sets the line dash pattern. - - The pattern. - The pattern offset. - - - - Sets the color rendering intent. - - The intent value. - - - - Sets the flatness tolerance. - - The tolerance value. - - - - Sets the graphics state. - - Name of the graphics state dictionary. - - - - Sets the graphics state. - - Name of the graphics state dictionary. - - - - Sets the color space. - - The name of the colour space. - if set to true - the space is set for stroking operations. - - - - Sets the color space. - - The name of the colour space. - if set to true - the space is set for stroking operations. - - - - Sets the color and color space. - - The color. - The color space. - if set to true - the colour is set for stroking operations. - - - - Sets the color and color space. - - - - - - - - - Sets the color and space. - - The color. - The color space. - if it is for stroking, set to true. - if it is check, set to true. - if it is iccbased, set to true. - - - - Sets the color and space. - - The color. - The color space. - if it is for for stroking, set to true. - if it is to check, set to true. - if it is iccbased, set to true. - if it is indexed, set to true. - - - - Sets the color. - - The color. - The current space. - if set to true - the colour is set for stroking operations. - - - - Sets the colour with pattern. - - The colour array. - The name of the pattern. - if set to true the colours and pattern - are set for stroking operations. - - - - Executes the XObject. - - The name of the XObject. - - - - Executes the XObject. - - The name of the XObject. - - - - Gets the stream. - - The internal PdfStream object. - - - - Clears a stream. - - - - - Writes the point. - - The point. - - - - Writes the point. - - The x. - The y. - - - - Writes the text. - - The text. - - - - Writes the text. - - The text. - if set to true the text is in hex. - - - - Writes the text. - - The text. - if set to true the text is in hex. - - - - Writes the text. - - The text. - - - - Writes the operator. - - The operator code. - - - - Checks the text param. - - The text. - - - - Checks the text param. - - The text. - - - - Checks the text param. - - The text. - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets or sets the current position within the stream. - - - - - Gets stream length. - - - - - - Initializes a new instance of the class. - - The stream. - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - - Closes this instance. - - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets the stream. - - The stream. - - - - Gets the stream. - - - - - Gets or Sets the document required for saving process. - - - - - Gets or sets the current position within the stream. - - - - - Gets stream length. - - - - - Dictionary of the objects names. - - - - - Dictionary of the properties names. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The base dictionary. - - - - Generates name for the object and adds to the resource if the object is new. Otherwise - returns object's name in the context of the resources. - - Object contained by a resource. - Returns object's name in the context of the resources. - - - - Gets resource names to font dictionaries. - - The names to font dictionaries. - - - - Requires the proc set. - - Name of the proc set. - - - - Generates Unique string name. - - - - - - Adds object to the resources. - - Object to be added to resources. - Name of the object. - - - - Adds the font to the "Fonts" sub dictionary. - - The font to add. - The name. - - - - Adds the Layer Properties to the "Properties" dictionary. - - The layer properties to add. - The reference. - - - - Adds the template to the "XObject" sub dictionary. - - The template to add. - The name. - - - - Adds the image to the "XObject" sub dictionary. - - The image to add. - The name. - - - - Adds the specified brush to the resources. - - The brush. - The name of the brush. - - - - Adds the specified transparancy to the resources. - - The transparancy. - The name of the brush. - - - - Adds the specified ColorSpaces to the resources. - - - - - - - Adds the specified Dictionary to the resources. - - - - - - - Gets the font names. - - - - - Get or set the type1 font name other than PdfStandardFonts,inorder to refer exact font from page's font resource - - - - - Get or set the page document. - - - - - Enumerator that represents the PDF page orientations. - - - Default value is Portrait. - To know more about document settings refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set the page size. - document.PageSettings.Size = PdfPageSize.A4; - //Change the page orientation to landscape. - document.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set the page size.' - document.PageSettings.Size = PdfPageSize.A4 - 'Change the page orientation to landscape. - document.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Portrait orientation. - - - - - Landscape orientation. - - - - - The number of degrees by which the page should be rotated clockwise when displayed or printed. - - - To know more details about document settings refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set rotation angle. - document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90; - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set rotation angle. - document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90 - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - The page is rotated as 0 angle. - - - - - The page is rotated as 90 angle. - - - - - The page is rotated as 180 angle. - - - - - The page is rotated as 270 angle. - - - - - Specifies numbering style of page labels. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Create new true type font. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create new solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create new section. - PdfSection sec = document.Sections.Add(); - //Declare new page. - PdfPage page; - //Creates page number field. - PdfDestinationPageNumberField dest = new PdfDestinationPageNumberField(); - //Add pages to the section. - page = sec.Pages.Add(); - //Set page for pagenumber field. - dest.Page = page; - //Set Number style. - dest.NumberStyle = PdfNumberStyle.LowerRoman; - //Set font for pagenumber field. - dest.Font = font; - //Set brush for pagenumber field. - dest.Brush = brush; - //Set size for the page number field. - dest.Size = new SizeF(50, 20); - //Draws the page number on page. - dest.Draw(page.Graphics); - //Save the document. - document.Save("NumberStyle.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create new true type font. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create new solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create new section. - Dim sec As PdfSection = document.Sections.Add() - 'Declare new page. - Dim page As PdfPage - 'Creates page number field. - Dim dest As PdfDestinationPageNumberField = New PdfDestinationPageNumberField() - 'Add pages to the section. - page = sec.Pages.Add() - 'Set page for pagenumber field. - dest.Page = page - 'Set Number style. - dest.NumberStyle = PdfNumberStyle.LowerRoman - 'Set font for pagenumber field. - dest.Font = font - 'Set brush for pagenumber field. - dest.Brush = brush - 'Set size for the page number field. - dest.Size = New SizeF(50, 20) - 'Draws the page number on page. - dest.Draw(page.Graphics) - 'Save document to disk. - document.Save("NumberStyle.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - - - - No numbering at all. - - - - - Decimal arabic numerals. - - - - - Lowercase letters a-z. - - - - - Lowercase roman numerals. - - - - - Uppercase letters A-Z. - - - - - Uppercase roman numerals. - - - - - Specifies the docking style of the page template. - - - This enumeration is used in class. - To know more details about refer this - link. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Create a page - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Create a page template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - //set the dock style - footer.Dock = PdfDockStyle.Right; - //Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Right = footer; - //Save the document - doc.Save("Template.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As New PdfPageTemplateElement(rect) - 'set the dock style - footer.Dock = PdfDockStyle.Right - 'Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As New PdfPageCountField(font, brush) - Dim compositeField As New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Right = footer - 'Save the document - doc.Save("Template.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - The page template is not docked. - - - - - The page template edge is docked to the bottom page's side. - - - - - The page template edge is docked to the top page's side. - - - - - The page template edge is docked to the left page's side. - - - - - The page template edge is docked to the right page's side. - - - - - The page template stretch on full page. - - - - - Specifies how the page template is aligned relative to the template area. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Create a page - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Create a page template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - //set the dock style - footer.Dock = PdfDockStyle.Right; - //Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Right = footer; - doc.Save("Template.pdf"); - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As New PdfPageTemplateElement(rect) - 'set the dock style - footer.Dock = PdfDockStyle.Right - 'Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As New PdfPageCountField(font, brush) - Dim compositeField As New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Right = footer - doc.Save("Template.pdf") - doc.Close(True) - - - This enumeration is used in class. - Class - Class - Class - Class - Class - Class - Class - Class - - - - Specifies no alignment. - - - - - The template is top left aligned. - - - - - The template is top center aligned. - - - - - The template is top right aligned. - - - - - The template is middle left aligned. - - - - - The template is middle center aligned. - - - - - The template is middle right aligned. - - - - - The template is bottom left aligned. - - - - - The template is bottom center aligned. - - - - - The template is bottom right aligned. - - - - - A name object specifying the page layout to be used when the - document is opened. - - - - //Source document. - PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument document = new PdfDocument(); - //Appending the document with source document. - document.Append(lDoc); - //Set page layout. - document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight; - //Save the document. - document.Save("Output.pdf"); - //Close the documents. - document.Close(true); - lDoc.Close(true); - - - 'Source document. - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Appending the document with source document. - document.Append(lDoc) - 'Set page layout. - document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight - 'Save the document. - document.Save("Output.pdf") - 'Close the documents. - document.Close(True) - lDoc.Close(True) - - - Class - Class - Class - Class - - - - Default Value. Display one page at a time. - - - - - Display the pages in one column. - - - - - Display the pages in two columns, with odd numbered - pages on the left. - - - - - Display the pages in two columns, with odd numbered - pages on the right. - - - - - Display the pages two at a time, with odd-numbered pages on the left - - - - - Display the pages two at a time, with odd-numbered pages on the right - - - - - Represents mode of document displaying. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set page mode. - document.ViewerPreferences.PageMode = PdfPageMode.UseOC; - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Output.pdf"); - //Close the documents. - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page mode. - document.ViewerPreferences.PageMode = PdfPageMode.UseOC - 'Add a page in the PDF document. - Dim page As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F, PdfFontStyle.Bold) - 'Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Output.pdf") - 'Close the documents. - document.Close(True) - - - Class - Class - Class - Class - - - - Default value. Neither document outline nor thumbnail images visible. - - - - - Document outline visible. - - - - - Thumbnail images visible. - - - - - Full-screen mode, with no menu bar, window - controls, or any other window visible. - - - - - Optional content group panel visible. - - - - - Attachments are visible. - - - - - TemplateArea can be header/footer on of the following types. - - - - - Page template is not used as header. - - - - - Page template is used as Top. - - - - - Page template is used as Bottom. - - - - - Page template is used as Left. - - - - - Page template is used as Right. - - - - - - Two lines sweep across the screen, revealing the new page. The lines may be either - horizontal or vertical and may move inward from the edges of the page or outward - from the center. - - - - - Multiple lines, evenly spaced across the screen, synchronously sweep in the same - direction to reveal the new page. The lines may be either horizontal or vertical. - Horizontal lines move downward; vertical lines move to the right. - - - - - A rectangular box sweeps inward from the edges of the page or outward from the center, - revealing the new page. - - - - - A single line sweeps across the screen from one edge to the other, revealing the new page. - - - - - The old page dissolves gradually to reveal the new one. - - - - - Similar to Dissolve, except that the effect sweeps across the page in a wide band moving from - one side of the screen to the other. - - - - - The new page simply replaces the old one with no special transition effect. - - - - - Changes are flown out or in, to or from a location that is offscreen. - - - - - The old page slides off the screen while the new page slides in, pushing the old page out. - - - - - The new page slides on to the screen, covering the old page. - - - - - The old page slides off the screen, uncovering the new page. - - - - - The new page gradually becomes visible through the old one. - - - - - Enumeration of transition dimensions. - - - - - Horizontal effect. - - - - - Vertical effect. - - - - - Enumeration of transition motions. - - - - - Inward motion from the edges of the page to center.. - - - - - Outward motion from the center of the page to edges. - - - - - Enumeration of transition directions. - - - - - Left to Right direction. - - - - - Bottom to Top direction. - - - - - Right to Left direction. - - - - - Top to Bottom direction. - - - - - TopLeft to BottomRight direction. - - - - - Used to represent the print state of . - - - - - The visble PDF page layers get print - - - - - The PDF page layer never get print - - - - - The PDF pageLayers always get print - - - - - Specifies tab order types for form fields - - Default value is None. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual; - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(page, "Hello"); - //Set field tab index as 3. - field.TabIndex = 3; - //Set field bounds. - field.Bounds = new RectangleF(0, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field1 = new PdfTextBoxField(page, "Hello1"); - //Set field tab index as 2. - field.TabIndex = 2; - //Set field bounds. - field1.Bounds = new RectangleF(200, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field2 = new PdfTextBoxField(page, "Hello2"); - //Set field tab index as 1. - field.TabIndex = 1; - //Set field bounds. - field2.Bounds = new RectangleF(0, 50, 100, 30); - //Create new text box field. - PdfTextBoxField field3 = new PdfTextBoxField(page, "Hello3"); - //Set field tab index as 0. - field.TabIndex = 0; - //Set field bounds. - field3.Bounds = new RectangleF(200, 50, 100, 30); - //Adds the form field to the document. - document.Form.Fields.Add(field); - document.Form.Fields.Add(field1); - document.Form.Fields.Add(field2); - document.Form.Fields.Add(field3); - //Save the pdf document. - document.Save("TabOrder.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual - 'Create new text box field. - Dim field As PdfTextBoxField = New PdfTextBoxField(page, "Hello") - 'Set field tab index as 3. - field.TabIndex = 3 - 'Set field bounds. - field.Bounds = New RectangleF(0, 0, 100, 30) - 'Create new text box field. - Dim field1 As PdfTextBoxField = New PdfTextBoxField(page, "Hello1") - 'Set field tab index as 2. - field.TabIndex = 2 - 'Set field bounds. - field1.Bounds = New RectangleF(200, 0, 100, 30) - 'Create new text box field. - Dim field2 As PdfTextBoxField = New PdfTextBoxField(page, "Hello2") - 'Set field tab index as 1. - field.TabIndex = 1 - 'Set field bounds. - field2.Bounds = New RectangleF(0, 50, 100, 30) - 'Create new text box field. - Dim field3 As PdfTextBoxField = New PdfTextBoxField(page, "Hello3") - 'Set field tab index as 0. - field.TabIndex = 0 - 'Set field bounds. - field3.Bounds = New RectangleF(200, 50, 100, 30) - 'Adds the form field to the document. - document.Form.Fields.Add(field) - document.Form.Fields.Add(field1) - document.Form.Fields.Add(field2) - document.Form.Fields.Add(field3) - 'Save document to disk. - document.Save("TabOrder.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Namespace - - - - Form fields are visited default order - - - - - Form fields are visited rows running horizontally across the page - - - - - Form fields are visited column running vertically up and down the page - - - - - Form fields are visited based on the structure tree - - - - - Form fields are visited manual order - - - - - Represents information about various predefined page sizes. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page page for document. - document.PageSettings.Size = PdfPageSize.A4; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page page for document. - document.PageSettings.Size = PdfPageSize.A4 - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - - Letter format. - - - - - - - Note format. - - - - - - - Legal format. - - - - - - - A0 format. - - - - - - - A1 format. - - - - - - - A2 format. - - - - - - - A3 format. - - - - - - - A4 format. - - - - - - - A5 format. - - - - - - - A6 format. - - - - - - - A7 format. - - - - - - - A8 format. - - - - - - - A9 format. - - - - - - - A10 format. - - - - - - - B0 format. - - - - - - - B1 format. - - - - - - - B2 format. - - - - - - - B3 format. - - - - - - - B4 format. - - - - - - - B5 format. - - - - - - - ArchE format. - - - - - - - ArchD format. - - - - - - - ArchC format. - - - - - - - ArchB format. - - - - - - - ArchA format. - - - - - - - The American Foolscap format. - - - - - - - HalfLetter format. - - - - - - - 11x17 format. - - - - - - - Ledger format. - - - - - - - Private constructor. - - - - - Represents a page loaded from a PDF document. - - - - //Load the document - PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); - //get the first page from the document - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document - lDoc.Save("output.pdf"); - lDoc.Close(true); - - - 'Load the document - Dim lDoc As New PdfLoadedDocument("input.pdf") - 'get the first page from the document - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collection - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document - lDoc.Save("output.pdf") - lDoc.Close(True) - - - - - - Dictionaries of terminal annotation. - - - - - Collection of annotations. - - - - - Holds the reference numbers of the widget annotations - - - - - Internal variable to store array of annotation reference - - - - - Gets the resources and modifies the page dictionary. - - Pdf resources. - - - - Initializes a new instance of the class. - - The document. - The cross-reference table. - The page's dictionary. - - - - Retrieves the terminal annotations. - - - - - Check whether annotation is form field or not. - - The annotation need to be check - Returns true if the annotation is used by Acroform field, otherwise false. - - - - Gets the documents widget reference collection - - - - - - Removes field and kids annotation from dictionaries. - - The field. - - - - Removes all the reference for particular object - - The annotation need to be removed - - - - Raises event. - - Event arguments. - - - - Raises when page dictionary is going to be saved. - - Sender of the event. - Event arguments. - - - - Raises after the page dictionary was saved. - - Sender of the event. - The - instance containing the event data. - - - - Extract the font which are used in a given page. - - returns the extracted fonts as a PdfFont[]. - - - - Clears PdfLoadedPage. - - - - - Gets the text size of a specified font. - - Font key - Returns the text size of the specified font - - - - Gets the content size of the specified font. - - Font Key - Content stream - Font height - - - - Reading Font Name from Dictionary. - - - - - - - - Create metrics for embed font - - - - - - - Gets the font style. - - The font family string. - The style of pdf font. - - - - Gets the font family. - - The font family string. - The font family. - - - - Gets the key value for a given font - - PdfFont value. - Returns the key value. - - - - Gets or Sets the collection of the page's annotations. - - - The that represents the page's annotations - - - - //Load the document. - PdfLoadedDocument lDoc = new PdfLoadedDocument("inputAnnotation.pdf"); - //get the first page from the document. - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection. - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document. - lDoc.Save("sample.pdf"); - lDoc.Close(true); - - - 'Load the document. - Dim lDoc As New PdfLoadedDocument("inputAnnotation.pdf") - 'Get the first page from the document. - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collections. - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document. - lDoc.Save("sample.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the size of the page (Read only). - - /// - The SizeF that represents the size of the page - - - - - Gets the visible region of the page (Read only). - - - The RectangleF that represents the crop box of the page - - - Crop box is only read only, we cann't set value for loaded page crop box value. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page crop box value. - RectangleF rect = lpage.CropBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page crop box value. - Dim rect As RectangleF = lpage.CropBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets page region after clipping (Read only). - - - The RectangleF that represents the bleed box of a page - - - Bleed box is only read only, we cann't set value for loaded page bleed box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page bleed box value. - RectangleF rect = lpage.BleedBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page bleed box value. - Dim rect As RectangleF = lpage.BleedBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Returns page region after trimming (Read only). - - - The RectangleF that represents the trim box of a page - - - Trim box is only read only, we cann't set value for loaded page trim box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page trim box value. - RectangleF rect = lpage.TrimBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page trim box value. - Dim rect As RectangleF = lpage.TrimBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets page region containing meaningful content (Read only). - - - The RectangleF that represents the art box of the page - - - Art box is only read only, we cann't set value for loaded page art box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page art box value. - RectangleF rect = lpage.ArtBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page art box value. - Dim rect As RectangleF = lpage.ArtBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets the base document (Read only). - - - The , which is base class of PdfLoadedDocument - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page base document. - PdfLoadedDocument basedoc = lpage.Document as PdfLoadedDocument; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page base document. - Dim basedoc As PdfLoadedDocument = TryCast(lpage.Document, PdfLoadedDocument) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets the cross table. - - - - - Gets or sets the terminal fields. - - - - - Gets the origin coordinate of the loaded page - - - - - Gets or sets the array of annotation reference - - - - - Raises before the page saves. - - - - Provides methods and properties to create PDF pages and its elements, PdfPage class inherited from the PdfPageBase class - - The following example shows the several properties and methods of PdfPage class - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Get annotation collection - PdfAnnotationCollection annotation = page.Annotations; - //Get Graphics - PdfGraphics graphics = page.Graphics; - //Get page Layers - PdfPageLayerCollection layers = page.Layers; - //Get actual page size - SizeF clientSize = page.GetClientSize(); - //Insert page in the document - document.Pages.Insert(0, page); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Get annotation collection - Dim annotation As PdfAnnotationCollection = page.Annotations - 'Get Graphics - Dim graphics As PdfGraphics = page.Graphics - 'Get page Layers - Dim layers As PdfPageLayerCollection = page.Layers - 'Get actual page size - Dim clientSize As SizeF = page.GetClientSize() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - Class - Class - - - Initializes a new instance of the PdfPage class. - - The following code example demonstrates how to construct a PdfPage - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - Get the PDF page size reduced by page margins and page template dimensions. - - - It's the actual size of the page where some output can be performed. - - - Type: System.Drawing.SizeF - The actual page size reduced by page margins and page template dimensions - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get size of the page - SizeF size = page.GetClientSize(); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get size of the page - Dim size As SizeF = page.GetClientSize() - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Raises event. - - Event arguments. - - - - Clears PdfPage. - - - - - Sets parent section to the page. - - The parent section. - - - - Sets the progress. - - - - - Resets the progress. - - - - - Initializes a page. - - - - - Draws page templates. - - Parent document. - - - - Removes template layers from the page layers. - - Parent document. - - - - Raises when page dictionary is going to be saved. - - Sender of the event. - Event arguments. - - - - Raises after the page dictionary was saved. - - Sender of the event. - The - instance containing the event data. - - - - Gets the section of a page- Read only - - - The PdfSection. - - Page must be added to some section before using. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get Section of a page - PdfSection section = page.Section; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get Section of a page - Dim section As PdfSection = page.Section - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - Class - - - - Gets size of the PDF page- Read only - - - A SizeF that represents the size of the page - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get size of a page - SizeF size = page.Size; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get size of a page - Dim size As SizeF = page.Size - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - - - - Gets the origin of the page - - - - - Gets a collection of the annotations of the page- Read only. - - - A PdfAnnotationCollection that represents the annotations of the page. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get annotation collection - PdfAnnotationCollection annotation = page.Annotations; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get annotation collection - Dim annotation As PdfAnnotationCollection = page.Annotations - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Gets current document. - - The pdf document. - - - - Raises before the page saves. - - - - - Implements a virtual collection of all pages in the document. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - int newCount = 0; - //Parse through pages from page collection. - foreach (PdfPageBase page in docPages) - { - newCount++; - } - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages from new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - Dim newCount As Integer = 0 - 'Parse through pages from page collection. - For Each page As PdfPageBase In docPages - newCount += 1 - Next - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Parent document. - - - - - It holds the page collection with the index - - - - - It counts the index of the page - - - - - Initializes a new instance of the class. - - The document. - - - - Creates a page and adds it to the last section in the document. - - Created object. - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Add new page in the document. - docPages.Add(); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Add new page in the document. - docPages.Add() - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Adds the specified page to the last section. - - The page.i - - - - Inserts a page at the specified index to the last section in the document. - - The index of the page in the section. - The . - - Page index start from 0 to (TotalPageCount - 1). - Selected index must be within 0 to (TotalPageCount - 1) range. - - - - //Create new a document. - PdfDocument document = new PdfDocument(); - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - //Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = document.Pages; - //Insert page to the specified index. - docPages.Insert(1, new PdfPage()); - docPages.Insert(10, new PdfPage()); - //Save and Close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new a document. - Dim document As PdfDocument = New PdfDocument() - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = document.Pages - 'Insert page to the specified index. - docPages.Insert(1, New PdfPage()) - docPages.Insert(10, New PdfPage()) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Inserts a loaded page in the new PDF document at specified index. - - The index at which the page to be inserted - The page to be inserted - - Page index start from 0 to (TotalPageCount - 1). - Selected index must be within 0 to (TotalPageCount - 1) range. - - - - //Create new a document. - PdfDocument document = new PdfDocument(); - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - //Get first page from source document. - PdfLoadedPage lpage = doc.Pages[0] as PdfLoadedPage; - //Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = document.Pages; - //Insert page to the specified index. - docPages.Insert(1, lpage); - //Save and Close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new a document. - Dim document As PdfDocument = New PdfDocument() - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Get first page from source document. - Dim lpage As PdfLoadedPage = TryCast(doc.Pages(0), PdfLoadedPage) - 'Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1) - 'Insert page to the specified index. - document.Pages.Insert(1, lpage) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - - Removes the specified page. - - The page. - - - - - Clears the page collection. - - - - - Counts the pages. - - The total number of pages. - - - - Searches a page by its index in the document. - - Zero-based index of the page. - Page by its index in the document. - - - - Adds a loaded page to the last section in the document. - - The loaded page. - - - - Returns last section in the document. - - Returns last section in the document. - - - - Called when new page has been added - - Event arguments. - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - The destinations. - - - - - Determines whether the page fit last section. - - The page. - - true if the page fit last section; otherwise, false. - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Gets the total number of the pages. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Get total page count. - int newCount = docPages.Count; - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Get total page count. - Dim newCount As Integer = docPages.Count - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Gets a page by its index in the document. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Gets a page by its index in the document. - PdfPage page = docPages[0] as PdfPage; - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Gets a page by its index in the document. - Dim page As PdfPage = TryCast(docPages(0), PdfPage) - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Gets a page index from the document. - - - - - Represents the method that executes on a PdfDocument when a new page is created. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Saves the document - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Saves the document - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class - - - - Section collection enumerator. - - - - - Parent page collection. - - - - - Current index of the enumerator. - - - - - Initializes a new instance of the class. - - The section collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The used to create layers in PDF document. - Layers refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Parent page of the layer. - - - - - Graphics context of the layer. - - - - - Content of the object. - - - - - Graphics state of the Graphics. - - - - - Indicates whether the layer should clip page template dimensions or not. - - - - - Indicates if the graphics stream was saved. - - - - - Local Variable to store the colorspace of the document. - - - - - Local Variable to store the layer id - - - - - Local Variable to store the name - - - - - Local Variable to set visiblity - - - - - Collection of the layers of the page. - - - - - Indicates if Sublayer is present. - - - - - Local variable to store length of the graphics. - - - - - Stores the print Option dictionary - - - - - Stores the usage dictionary - - - - - Indicates printing state - - - - - Indicates the current layer have end state or not. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store reference holder. - - - - - Adds a new PDF Page layer. - - The - - - - Initializes a new instance of the class with specified PDF page. - - The ,parent page of the layer. - - - - Initializes a new instance of the class. - - The page. - The stream. - - - - Creates a new layer. - - Parent page of the layer. - Indicates whether the layer should clip page template dimensions or not. - - - - Initializes Graphics context of the layer. - - The page. - - - - Clears PdfPageLayer. - - - - - set visibilty of layer - - layer visibility - - - - Catches BeforeSave of the content event. - - Sender of the event. - event arguments. - - - - Gets the Reference holder. - - The reference holder. - - - - Gets the dictionary. - - The dictionary. - - - - Get or set the Colorspace. - - - - - Gets parent page of the layer. - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the name of the layer - - - - - Gets Graphics context of the layer, used to draw various graphical content on layer. - - The used to draw various graphical content - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Gets and sets printing state of the PDF page layer - - - - - Gets the collection of , this collection handle by the class - - The used to handle collection of - - - - Gets the wrapped element. - - - - - The class provides methods and properties to handle the collections of - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Parent page. - - - - - Indicates if Sublayer is present. - - - - - Stores the number of first level layers in the document. - - - - - Stores the optional content dictionary - - - - - Stores the layer id and helps to avoid the duplicate entries. - - - - - Indicates if the loaded layers have resource dictionary. - - - - - Helps to lock Adding layers to page in multi threading - - - - - Initializes a new instance of the class - - - - - Initializes a new instance of the class with PDF page - - Parent page for the layers in the collection. - - - - Creates a new and adds it to the end of the collection. - - Created - - - - Creates a new with name and Boolean flag to set the visibility of layer, - and adds it to the end of the collection. - - Layer Name. - Layer Visibility. - Created . - - - - Creates a new with name and adds it to the end of the collection. - - Layer Name. - Created . - - - - Adds to the collection. - - The object. - The layers belonging to the same page can be added to the collection only. - - - - Creates a Optional Content Properties and adds it to Catalog. - - Layer. - - - - Creates Usage Dictionary and adds it to OCG dictionary - - - - - - - creates a pdf page layer from loaded page - - - - - - Inserts into the collection at specified index - - Index of the layer. - object. - The layers belonging to the same page can be added to the collection only. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Writes End of Marked Content in Content Stream - - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Removes layer from the collection. - - object. - - - - Removes from the collection by its name. - - Name of the layer. - - - - Removes layer by its index from collections - - Index of the layer. - - - - Checks whether collection contains . - - object. - True - if collection contains layer, False otherwise. - - - - Returns index of the in the collection if exists, -1 otherwise. - - object. - Returns index of the layer in the collection if exists, -1 otherwise. - - - - Clears layers from the . - - - - - Combines the content into the specified stream. - - The stream. - - - - Registers layer at the page. - - Index of the layer in the collection. - The new layer. - - - - Removes layer from the page. - - The layer. - - - - Remove layer reference from ocg, order, on and off array - - - - - - - Remove layer reference from ocg, order, on and off array - - - - - - - Registers layer at the page. - - Index of the layer in the collection. - The new layer. - - - - Parses the layers. - - The loaded page. - - - - Gets or sets by its index from - - The layers belonging to the same page can be added to the collection only. - - - - The class provides various setting related with PDF pages - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Internal variable to store transition. - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings. - PdfPageSettings setting = new PdfPageSettings(); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings. - Dim setting As PdfPageSettings = New PdfPageSettings() - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size. - - The size. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page size. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300,300)); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page size. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 300)) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with page orientation. - - The . - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page orientation. - PdfPageSettings setting = new PdfPageSettings(PdfPageOrientation.Landscape); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page orientation. - Dim setting As PdfPageSettings = New PdfPageSettings(PdfPageOrientation.Landscape) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size and page orientation. - - The size. - The page orientation. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page orientation. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page size and orientation. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with margins. - - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with margin value. - PdfPageSettings setting = new PdfPageSettings(50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with left margin,top margin,right margin. - - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with left margin,top margin,right margin. - PdfPageSettings setting = new PdfPageSettings(20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with left margin,top margin,right margin. - Dim setting As PdfPageSettings = New PdfPageSettings(20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size and margins - - The size of the page. - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600),20f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), 20F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size left,top,right,bottom margins. - - The size. - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), 20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), 20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size,page orientation,margins - - The size. - The page orientation. - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size , orientation and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape, 20f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size , orientation and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape,20F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size page orientation,left,top,right,bottom margins. - - The size. - The page orientation. - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size , orientation and left,top,right,bottom margins. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape, 20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size , orientation and left,top,right,bottom margins. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape,20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the margins to the page. - - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the left right and top bottom margins. - - The left right margin. - The top bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the left,top,right,bottom margins. - - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10, 10, 10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10, 10, 10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Creates a clone of the object. - - Cloned object. - - - - Returns size, shrinked by the margins. - - Returns size, shrinked by the margins. - - - - Gets the transition. - - - - - - Update page size depending on orientation. - - Page orientation settings. - - - - Sets size to the page aaccording to the orientation. - - Size of the page. - - - - Gets or sets the page orientation. - - The , provides the orientation of the PDF page - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the size of the page. - - Default value: 595 * 842 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page size. - doc.PageSettings.Size = new SizeF(600, 600); - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page size - doc.PageSettings.Size = New SizeF(600, 600) - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the width of the page. - - Default value: 595 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page width. - doc.PageSettings.Width = 300; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page width - doc.PageSettings.Width = 300 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the height of the page. - - Default value: 842 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page size. - doc.PageSettings.Height = 300; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page size - doc.PageSettings.Height = 300 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the margins of the page. - - The , provides margins to the PDF page - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Set document margin. - doc.PageSettings.Margins = margin - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Set document margin. - doc.PageSettings.Margins = margin - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the number of degrees by which the page should be rotated clockwise when displayed or printed. - - The ,provides number of degrees by which the page should be rotated clockwise when displayed or printed - Default value: RotateAngle0 - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Set rotation angle. - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Set rotation angle - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the transition, it determines how to display the page in the presentation mode - - The determines how to display the page in the presentation mode. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the type of default user space units. - - For PDF 1.6 and later versions. - - - - Gets or sets the origin of the page - - - - - Describes a page template object that can be used as header/footer, watermark or stamp. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(bounds); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Layer type of the template. - - - - - Docking style. - - - - - Alignment style. - - - - - PdfTemplate object. - - - - - Usage type of this template. - - - - - Location of the template on the page. - - - - - Initializes a new instance of the class with specified value. - - Bounds of the template. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(bounds); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - Dim bounds As RectangleF = New RectangleF(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(bounds) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class with specified value and . - - The bounds. - The page. - - - - Creates a new page template. - - Location of the template. - Size of the template. - - - - Initializes a new instance of the class. - - The location. - The size. - The page. - - - - Creates new page template object. - - Size of the template. - - - - Creates a new page template. - - Width of the template. - Height of the template. - - - - Creates a new page template. - - Width of the template. - Height of the template. - The Current Page object. - - - - Creates a new page template. - - X co-ordinate of the template. - Y co-ordinate of the template. - Width of the template. - Height of the template. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - PdfPageTemplateElement header = new PdfPageTemplateElement(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Creates a new page template. - - X co-ordinate of the template. - Y co-ordinate of the template. - Width of the template. - Height of the template. - The Current Page object. - - - - Draws the template. - - Parent layer. - Parent document. - - - - Updates Dock property if template is used as header/footer. - - Type of the template. - - - - Resets alignment of the template. - - - - - Sets alignment of the template. - - Alignment style. - - - - Calculates bounds of the page template. - - Parent page. - Parent document. - Bounds of the page template. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the docking. - - Parent page. - Parent document. - Bounds according to the docking. - - - - Calculates template bounds basing on docking if template is not page template. - - Parent page. - Parent document. - - - - Calculates template bounds basing on docking if template is a page template. - - Parent page. - Parent document. - - - - Gets or sets the dock style of the page template element. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set dock style - custom.Dock = PdfDockStyle.Right; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set dock style - custom.Dock = PdfDockStyle.Right - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets alignment of the page template element. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set alignment style - custom.Alignment = PdfAlignmentStyle.TopCenter; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set alignment style - custom.Alignment = PdfAlignmentStyle.TopCenter - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Indicates whether the page template is located in front of - the page layers or behind of it. If false, the page template will be located behind of page layer. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set alignment style - custom.Dock = PdfDockStyle.Left; - //Set foreground - custom.Foreground = false; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set dock style - custom.Dock = PdfDockStyle.Left - 'Set foreground - custom.Foreground = True - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Indicates whether the page template is located behind of - the page layers or in front of it. - - - - - Gets or sets location of the page template element. - - - - - Gets or sets X co-ordinate of the template element on the page. - - - - - Gets or sets Y co-ordinate of the template element on the page. - - - - - Gets or sets size of the page template element. - - - - - Gets or sets width of the page template element. - - - - - Gets or sets height of the page template element. - - - - - Gets or sets bounds of the page template element. - - - - - Gets graphics context of the page template element. - - - - - Gets Pdf template object. - - - - - Gets or sets type of the usage of this page template. - - - - - Gets or sets the tag for the element - - - - - Represents a section entity. A section it's a set of the pages with similar page settings. - - - To know more about PdfSection refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Get the document section collection. - PdfSectionCollection sections = document.Sections; - //Add the section. - PdfSection section = sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Get the document section collection. - Dim sections As PdfSectionCollection = document.Sections - 'Add the section. - Dim section As PdfSection = sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Page settings of the pages in the section. - - - - - Page template for the section. - - - - - An instance of the class manipulating with a page label. - - - - - Indicates if the progress is turned on. - - - - - Internal variable to store initial page settings. - - - - - Internal variable to store cached saved settings. - - - - - Internal variable to store whether transition has been saved already. - - - - - A virtual collection of pages. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The page settings. - - - - Creates a new instance of PDfSection class. - - Parent document for the section. - - - - Creates a page and adds it to the collection. - - Created page. - - - - Adds the specified page. - - The page. - - - - Inserts a page at the specified index. - - The index of the page in the section. - The page. - - - - Inserts a page at the specified index. - - The index of the page in the section. - The page to be inserted. - - - - Get the index of the page. - - The page. - The index of the page. - - - - Determines whether the page in within the section. - - The page. - - true if the specified page is within the section; otherwise, false. - - - - - Removes the page from the section. - - The page that should be removed from the section. - - - - Removes the page by its index in the section. - - Zero-based index of the page in the section. - - - - Removes all the pages from the section. - - If the document contains one section only, this section should contain at least one page. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Checks whether any template should be printed on this layer. - - Parent document. - The parent page. - Layer z-order. - True - if some content should be printed on the layer, False otherwise. - - - - draws page templates on the page. - - The page. - Page layer where the templates should be drawn. - Parent document. - Foreground layer if True, False otherwise. - - - - Calculates actual bounds of the page. - - Page where the bounds should be calculated. - If true - take into consideration Margins. - Actual bounds of the page. - - - - Calculates actual bounds of the page. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Actual bounds of the page. - - - - Calculates width of the left indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Width of the left indent. - - - - Calculates Height of the top indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Height of the top indent. - - - - Calculates width of the right indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Width of the right indent. - - - - Calculates Height of the bottom indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Height of the top indent. - - - - Translates point into native coordinates of the page. - - The parent page. - Point to translate. - Point in native page coordinates. - - - - Draws an array of the templates. - - Parent layer. - PArent document. - Array of templates. - - - - Returns array of the document templates. - - Parent document. - the parent page. - If true - return headers/footers, if false - return simple templates. - If true - return foreground templates, if false - return background templates. - Returns array of the document templates. - - - - Returns array of the section templates. - - The parent page. - If true - return headers/footers, if false - return simple templates. - If true - return foreground templates, if false - return background templates. - Returns array of the document templates. - - - - Called when the page has been added - - Event arguments. - - - - Sets the progress. - - - - - Resets the progress. - - - - - Called when a page is being saved. - - The page. - - - - Checks the presence. - - The page. - - - - Infills dictionary by the data from Page settings. - - Pdf container of the data. - Parent page settings. - - - - Initializes the object. - - - - - Gets the transition settings. - - Transition settings of the section. - - - - Resets crop box to the default one. - - - - - Call two event's methods - - Added page - - - - Catches the Save event of the dictionary. - - Sender of the event. - Event arguments. - - - - End save event handler. - - The sender. - The instance containing the event data. - - - - Gets the collection of pages in a section (Read only). - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the of the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create the page label. - PdfPageLabel label = new PdfPageLabel(); - label.NumberStyle = PdfNumberStyle.LowerRoman; - label.StartNumber = 2; - section.PageLabel = label; - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create the page label. - Dim label As New PdfPageLabel() - label.NumberStyle = PdfNumberStyle.LowerRoman - label.StartNumber = 2 - section.PageLabel = label - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the of the section. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add the pages to section1. - PdfPage page1 = section1.Pages.Add(); - //Set the page settings. - section.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add the pages to section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Set the page settings. - section.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the for the pages in the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Gets the at the specified index. - - - - - Gets the count of the pages in the section. - - - - - Gets or sets the parent. - - The parent. - - - - Gets the resources. - - The resources. - - - - Gets the document. - - The document. - - - - Gets the parent document. - - - - - Event rises when the new page has been added - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(300, 400)); - //Add the event. - section.PageAdded += new PageAddedEventHandler(sec_PageAdded); - //Add new page to section. - section.Pages.Add(); - //Add new page document. - document.Pages.Add(); - //Save and close the document. - document.Save("PageCreatedTest.pdf"); - document.Close(true); - //Event handler for PageAdded event - void sec_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfSection section = (sender as PdfSection); - //Get page graphics. - PdfGraphics graphics = page.Graphics; - //Create new font instance. - PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f); - //Create new brush instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); - string text = String.Format("Page number : {0} added to Section", section.Pages.Count); - //Draw the text. - graphics.DrawString(text, font, brush, PointF.Empty); - } - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(300, 400)) - 'Add the event. - section.PageAdded += New PageAddedEventHandler(sec_PageAdded) - 'Add new page to section. - section.Pages.Add() - 'Add new page document. - document.Pages.Add() - 'Save and close the document. - document.Save("PageCreatedTest.pdf") - document.Close(True) - 'Event handler for PageAdded event - Private Sub sec_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim section As PdfSection = (TryCast(sender, PdfSection)) - Dim graphics As PdfGraphics = page.Graphics - Dim font As PdfStandardFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 14.0F) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) - Dim text As String = String.Format("Page number : {0} added to Section", section.Pages.Count) - graphics.DrawString(text, font, brush, PointF.Empty) - End Sub - - - Class - Class - Class - Class - Class - - - - Gets the wrapped element. - - - - - Initializes a new instance of the class. - - The section. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, - which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current. - - - - - Represents the collection of the . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Get the document section collection. - PdfSectionCollection sections = document.Sections; - //Add the section. - PdfSection section = sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Get the document section collection. - Dim sections As PdfSectionCollection = document.Sections - 'Add the section. - Dim section As PdfSection = sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Rotate factor for page rotation. - - - - - Initializes a new instance of the class. - - - - - Creates a new and adds it to the collection. - - Created section object. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add the pages to section1. - PdfPage page1 = section1.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add the pages to section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Determines the index of the specified . - - The section which is to be found the index. - The index of the specified section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the index of the specified section. - int index = document.Sections.IndexOf(section); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the index of the specified section. - Dim index As Integer = document.Sections.IndexOf(section) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Inserts the at the specified index. - - The index of the section to be added. - The section to be added. - - Index value should start from zero. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //insert the section at specified index. - document.Sections.Insert(0, section1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'insert the section at specified index. - document.Sections.Insert(0, section1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Checks whether the collection contains the specified section. - - The - True - if the sections belongs to the collection, False otherwise. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section - PdfSection section = document.Sections.Add(); - //Add pages to the section - PdfPage page = section.Pages.Add(); - //Add the section - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1 - PdfPage page1 = section1.Pages.Add(); - //Check whether the specified section is in the collection - bool isExists = document.Sections.Contains(section1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section - Dim page As PdfPage = section.Pages.Add() - 'Add the section - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1 - Dim page1 As PdfPage = section1.Pages.Add() - 'Check whether the specified section is in the collection - Dim isExists As Boolean = document.Sections.Contains(section1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Informs the section collection that the page labels were set. - - - - - Resets the progress. - - - - - Sets the progress. - - - - - Called when a page is saving. - - The page. - - - - Infills dictionary by the data from Page settings. - - Pdf container of the data. - Page settings. - - - - Checks if the section is within the collection. - - The section. - The reference holder of the section. - Throws ArgumentException - if the section is within the collection. - - - - Counts the pages. - - - - - - Adds the specified section. - - The section. - Index of the section in the collection. - - - - Adds the specified section. - - The section. - - - - Initializes the object. - - - - - Clears section collection of the document. - - - - - Catches the Save event of the dictionary. - - Sender of the event. - Event arguments. - - - - Gets the at the specified index.Read only. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section1. - PdfPage page = section.Pages.Add(); - //Get the section from collection. - PdfSection section2 = document.Sections[0]; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page As PdfPage = section.Pages.Add() - 'Get the section from collection. - Dim section2 As PdfSection = document.Sections(0) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the total number of in a document.Read only. - - The count of the sections. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the sections count. - int count = document.Sections.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the sections count. - Dim count As Integer = document.Sections.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets a parent document. - - - - - Gets the wrapped element. - - - - - Section collection enumerator. - - - - - Initializes a new instance of the class. - - The section collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The elements of the PDF array. - - - - - Indicates if the array was changed. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Represents the Font array. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The list of array. - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The array. - - - - Creates filled PDF array from the rectangle. - - The rectangle. - The filled in PdfArray instance. - - - - Creates filled PDF array from the rectangle. - - The rectangle. - The filled in PdfArray instance. - - - - Adds the specified element to the PDF array. - - The element. - - - - Adds the specified list of elements to array. - - The list. - - - - Determines whether the specified element is within the array. - - The element. - - true if the array contains the specified element; otherwise, false. - - - - - Inserts the element into the array. - - Zero-based index of the element in the array. - The element that should be added to the array. - - - - Checks whether array contains the element. - - The element object. - Index of the element in the array if exists, -1 otherwise. - - - - Removes element from the array. - - The element that should be removed from the array. - - - - ReArrange the Nested page kids array - - To specify the in which sequence the pages are arranged. - - - - Remove the element from the array by its index. - - Zero-based index of the element in the array. - - - - Cleares the array. - - - - - Converts an instance of the PdfArray to the RectangleF. - - The properly filled RectangleF structure. - - - - Saves the object using the specified writer. - - The writer. - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Marks the object changed. - - - - - Freezes the changes. - - The freezer. - - - - Gets the number from the array. - - The index. - The proper instance of the PdfNumber. - - - - Creates a copy of PdfArray. - - - - - Gets the at the specified index. - - - - - Gets the count. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Gets the elements of the Pdf Array - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Represents the Font dictionary - - - - - Gets a value indicating whether this is changed. - - - - - The value of the PDF boolean. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if it is value, set to true. - - - - Creates a copy of PdfBoolean. - - - - - Saves the object using the specified writer. - - The writer. - - - - Gets or sets the value of this instance. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Internal structure describing a pair of Key/Value. - - - - - Event arguments class. - - - - - Pdf document writer. - - - - - Creates the new object. - - The writer. - - - - Gets a document that is currently generating. - - - - - Delegate type. - - - - - Implementation of the name object. - - - - - Start symbol of the name object. - - - - - PDF special characters. - - - - - The symbols that are not allowed in PDF names and should be replaced. - - - - - Value of the element. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Creates object with defined string value. - - Value of the string. - - - - Initializes a new instance of the class. - - The enum value. - - - - Makes the string more correct from the PDF's point of view. - - The string to normalize as PDF name. - The normalized string. - - - - Replace a symbol with its code with the precedence of the sharp sign. - - The string which the symbol should be replaced in. - The symbol to replace. - - - - - Replace some characters with its escape sequences. - - The string value. - Modified string. - - - - Explicit operator. Converts a string to a PdfName. - - The string representation of the name. - Properly initialized PdfName instance. - - - - Gets string representation of the primitive. - - - - - Compares two PDF names. - - PDFName to compare - The result of comparison. - - - - Returns a hash code for the name. - - The hash code. - - - - Compares two names. - - The name1. - The name2. - - - - - Determines if two names aren't equal. - - The name1. - The name2. - - - - - Determines if two names are equal. - - The name1. - The name2. - - - - - Determines if two names aren't equal. - - The name1. - The name2. - - - - - Saves the name using the specified writer. - - The writer. - - - - Creates a copy of PdfName. - - - - - Gets or sets the value of the object. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Represent the PDF null object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Saves the object. - - PDF writer. - - - - - Creates a copy of PdfNull. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Converts a float value to a string using Adobe PDF rules. - - The number. - - - - - Determines the minimum of the three values. - - The 1st value. - The 2nd value. - The 3d value. - The min value. - - - - Determines the maximum of the three values. - - The 1st value. - The 2nd value. - The 3d value. - The max value. - - - - Saves the object. - - PDF writer. - - - - Creates a copy of PdfNumber. - - - - - Gets or sets the integer value. - - - - - Gets or sets the float value. - - - - - Gets or sets a value indicating whether this instance is integer. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Represents a PDF reference. - - - - - Holds the object number. - - - - - Holds the generation number of the object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initialize the class. - - The object number. - The generation number. - - - - Initialize the class. - - The object number. - The generation number. - - - - Returns a string representing the object. - - The string. - - - - Compares two object. - - The object to compare with. - The result of comparison. - - - - Returns a hash code. - - The hash code. - - - - Creates a copy of PdfReference. - - - - - Compares two reference objects. - - The first object to compare. - The second object to compare. - The result of the comparison. - - - - Compares two reference objects. - - The first object to compare. - The second object to compare. - The result of the comparison. - - - - Writes a reference into a PDF document. - - A PDF writer. - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Class that is like a reference but during saving it is replaced by - a real reference to the object it holds. - - - - - The object which the reference is of. - - - - - The cross-reference table, which the object is within. - - - - - The reference to the object, which was read from the PDF document. - - - - - The index of the object within the object collection. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Use to avoid multi threading issue - - - - - Initializes a new instance of the class. - - The wrapper. - - - - Initializes the class instance with an object. - - The object. - - - - Initializes a new instance of the class. - - The reference. - The cross-reference table. - - - - Saves the object. - - A PDF writer. - - - - Create a copy of the referenced object. - - - - - Compares two reference holders. - - Object to compare. - The result of comparison. - - - - Returns a hashcode for a hashtable. - - The hashcode. - - - - Compares two reference holders whether they are equal. - - A reference holder to compare. - A reference holder to compare. - The result of the comparison. - - - - Compares two reference holders whether they are different. - - A reference holder to compare. - A reference holder to compare. - The result of the comparison. - - - - Gets the object. - - - - - - Gets the object the reference is of. - - - - - Gets the index of the object. - - - - - Gets the reference. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Implements PDF string object. - - - - - General markers for string. - - - - - Hex markers for string. - - - - - Format of password data. - - - - - Value indicating whether the string was converted to hex. - - - - - Value of the object. - - - - - The byte data of the string. - - - - - Indicates whether to check if the value has unicode characters. - - - - - Indicates whether we should convert data to Unicode. - - - - - Shows if the data of the stream was decrypted. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Shows if the data of the stream was decrypted. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Gets a value indicating whether the object is packed or not - - - - - Initializes a new instance of the class. - - - - - Creates new PDF string object. - - Value of the object. - - - - Initialize a string from a hex string. - - The value. - if set to true the string has been encrypted. - - - - Creates new PDF string object. - - Value of the object. - - - - Converts byte data to string. - - Bytes to be converted. - Destination string. - - - - Converts byte data to string. - - Bytes to be converted. - The actual length of the buffer. - Destination string. - - - - Determines if the string is a unicode one. - - String value. - True if string is in Unicode format; otherwise False. - - - - Converts string to array of unicode symbols. - - String value. - Indicates whether we should add Unicode prefix to output data. - Array of data in unicode format. - - - - FromDate in PDF suitable form. - - The datetime. - - - - - Compare two PDF strings by their bytes. - - The first string. - The second string. - If the first string is greater then the second one it returns a value greater then 0, - if the second string is greater then the first one, it returns a value lower then 0, - if both are equal the 0 is returned. - - - - Explicit operator. Converts system string into PdfString. - - The system string. - Properly initialized PdfString. - - - - Converts PDFString to string. - - Byte array containing PDF representation of this object. - - - - Gets ascii bytes for specified string value. - - String for which to get bytes. - Bytes retrieved from specified text. - - - - Converts bytes to string using hex format for representing string. - - Bytes to be converted. - String int hex format. - - - - If needed encryption of data, encrypts data and returns new content. - - Bytes to be encrypted. - A PDF document. - Encrypted data. - - - - Escapes special symbols. - - Data from which must be escaped special symbols. - Data from which are escaped special symbols. - - - - Escapes special symbols. - - Data from which must be escaped special symbols. - Data from which are escaped special symbols. - - - - Converts hexadecimal digits into a byte array. - - The string value. - The byte array. - - - - Parses the hex. - - The character representing a hex digit. - A byte value. - - - - Converts hex digits into byte numbers. - - The hex numbers. - The byte array. - - - - Converts the Value to array of bytes. - - An array of bytes. - - - - Returns a byta array based on the value. - - Shows if should be unicode encoding. - The byte array. - - - - Saves the object using the specified writer. - - The writer. - - - - Forces PdfString to the hex mode. - - - - - Creates a copy of PdfString. - - - - - Converts string value to a byte array. - - The string data. - The resulting byte array. - - - - Processes the unicode string - - - - - - - Decrypts the specified encryptor. - - The encryptor. - The current object number. - - - - Gets or sets string value of the object. - - - - - Gets a value indicating whether string is in hex. - - - - - Gets a value indicating whether the object is packed or not - - - - - Gets or sets a value indicating whether to check if the value - has unicode characters. - - - - - Gets or sets value indicating whether we should convert data to Unicode. - - - - - Gets a flag that shows if the object has been decrypted already. - - - - - Gets the bytes. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Gets or set the flag indicating whether the string in the stream is decrypted or not. - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Gets a value indicating whether the object was encrypted. - - - - - Shows what encoding must be used. - - - - - The types of the PDFString data source. - - - - - AsnObject that represents the encoded time stamp response - - - - - Represents the Public Key Infrastructure status info - - - - - Time stamp token of the obtained time stamp response - - - - - Oid type of the time stamp response - - - - - Intializes a new instance and reads the timestamp response - - Array containing the time stamp request bytes - - - - Encodes the timestamp response from the Asn1Sequence - - Asn1Sequence containing the AsnObjects - Encoded bytes - - - - Reads the Asn objects in the time stamp response stream - - Input response stream - - - - Parses the time stamp response and encodes the content - - Asn1Sequence containing the AsnObjects - Encoded bytes - - - - Reads the content type of the response and encodes it - - Encoded bytes - - - - Encodes the time stamp content info - - Encoded bytes - - - - Returns the final encoded AsnSequence - - - - - Represent a time stamp to add in PDF document, - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The timestamp server uri - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The time stamp server uri. - The user name of the timestamp server. - The password of the timestamp server. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The timestamp server uri. - The user name of the timestamp server. - The password of the user. - The time out seconds. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456", 5); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456", 5) - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the server uri. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the user name. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the password. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the timeout. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies length of the encryption key for encryption. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - The key is 40 bit long. - - - - - The key is 128 bit long. - - - - - The key is 256 bit long. - - - - - The key is 256 bit long with revision 6. - AES algorithm for PDF 2.0 security feature. - - - - - Specifies the type of encryption algorithm used. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - - - - The encryption algorithm is RC4. - - - - - The encryption algorithm is AES. - - - - - Specifies the available permissions set for the signature. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Default value. - - - - - Print the document. - - - - - Edit content. - - - - - Copy content. - - - - - Add or modify text annotations, fill in interactive form fields. - - - - - Fill form fields. (Only for 128 bits key). - - - - - Copy accessibility content. - - - - - Assemble document permission. (Only for 128 bits key). - - - - - Full quality print. - - - - - Enumerator that implements possible security handlers. - - - - - The built-in password-based security handler. - - - - - Specifies the naming of a system store. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion"); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion") - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - A certificate store that holds certificates with associated private keys. - - - - - Root certificates. - - - - - Certification authority certificates. - - - - - Software Publisher Certificate. - - - - - Certificate store for directly trusted people and resources - - - - - Certificate store for directly trusted publishers - - - - - Certificate store for third party certificate publishers - - - - - Certificate store for other users - - - - - Specifies the Location of the store - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Certificate store assigned to local machine - - - - - Certificate store used by current user. - - - - - Specifies the available permissions on certificated document. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.DocumentPermissions = PdfCertificationFlags.AllowComments; - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.DocumentPermissions = PdfCertificationFlags.AllowComments - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Restrict any changes to the document. - - - - - Only allow form fill-in actions on this document. - - - - - Only allow commenting and form fill-in actions on this document. - - - - - Enumeration of signature flags. - - - - - No flags specified. - - - - - If set, the document contains at least one signature field. This flag allows a viewer - application to enable user interface items (such as menu items or pushbuttons) related - to signature processing without having to scan the entire document for the presence - of signature fields. - - - - - If set, the document contains signatures that may be invalidated if the file is saved - (written) in a way that alters its previous contents, as opposed to an incremental - update. Merely updating the file by appending new information to the end of the - previous version is safe. Viewer applications can use this flag to present - a user requesting a full save with an additional alert box warning that signatures - will be invalidated and requiring explicit confirmation before continuing with the operation. - - - - - Represents where and how to import private key of the certificate. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - - - - New key offset length. - - - - - Key length of 40 bit key. - - - - - Key length of 128 bit key. - - - - - Key length of 256 bit key. - - - - - Revision number. A number specifying which revision of the - standard security handler should be used to interpret this dictionary. - - - - - Revision number. A number specifying which revision of the - standard security handler should be used to interpret this dictionary. - - - - - Amount of bytes. - - - - - Amount of random bytes. - - - - - Optimal string length. - - - - - Number of iteration of the loop during owner pass calculation. - - - - - Number of iteration of the loop during owner pass calculation. - - - - - Flag, used during enc. key calculating. - - - - - Number of bits in one byte. - - - - - A value indicating whether password values were already computed. - - - - - The object that allows to compute the MD5 hash for the input data - using the implementation provided by the cryptographic service provider (CSP). - - - - - Bytes array for manipulating by Custom algo. - - - - - Bytes array of random numbers. - - - - - Output owner password. - - - - - Output user password. - - - - - Changed owner password. It's needed to encryption purpose. - - - - - Changed user password. It's needed to encryption purpose. - - - - - The encryption key. - - - - - Length of encryption key. - - - - - Permission flags. - - - - - A revision number that has been read from a PDF document. - - - - - Shows if the encryptor's settings have been changed. - - - - - Predefined bytes for empty string. - - - - - Helps to control access to s_paddingString. - - - - - Holds ecryptor status enable/disable ecryption. - - - - - The valuse that should be stored in the encryptor dictionary. - - - - - The array used to add padding to the encryption key in AES mode. - - - - - The object that describes the type of encryption algorithm that should be used. - - - - - The user encryption key (UE), that should stored in encryption dictionary. - - - - - The Owner encryption key (OE), that should stored in encryption dictionary. - - - - - The permission flag (Perms), that should stored in encryption dictionary. - - - - - The 32 byte random number used as key for encrypting contents. - - - - - The random bytes used in computing U and UE entries. - - - - - The random bytes used in computing O and OE entries. - - - - - Used to derive random byte array. - - - - - Used to compute SHA256 hash. - - - - - Shows if metadata has to be encrypted or not. - - - - - The integer which represents revision of the encryption dictionary. - - - - - The integer which represents the version of the encryption dictionary. - - - - - AcrobatX security hash computation algorithms. - - - - - Initializes a new instance of the class. - - - - - Clones the specified document. - - A new cloned encryptor. - - - - Reads the essential values from a dictionary. - - The dictionary. - - - - Checks the password. - - The password. - The key. - - - - Encrypts the data. - - The curr obj number. - The data. - Encrypted byte array. - - - - Saves this instance. - - - - - Pads or truncates string to string with length equals to c_stringLength == 32. - - Bytes of newly created string. - - - - Pads or truncates data with length equals to c_stringLength == 32. - - Bytes of newly created string. - - - - Preperes hash code for cryptographic algorithm and executes it. - - Data to be encrypted / decrypted. - Key for using by Custom algo. - - - - Prepares hash code for cryptographic algorithm and executes it. - - Data to be encrypted / decrypted. - Key for using by Custom algo. - The length of a key. - - - - Encrypts the data using AES cryptographic algorithm using initialization vector in CBC mode - - Data to be encrypted / decrypted. - Key for using by Custom algo. - The encrypted data - - - - Decrypts the data using AES cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Key for using by Custom algo. - The decrypted data - - - - Encrypts the data using AES(256 Bit) cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Encrypted data - - - - Decrypts the data using AES(256 Bit) cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Decrypted data - - - - Creates initialization vector for AES encryption - - Initialization vector - - - - Recreates CustomArray array. This method is the part of - implementation Custom algo. - - Key for using by Custom algo. - The length of a key. - - - - Returns length of the encryption key. - - Length of the encryption key. - - - - Calculates owner password. - - Data of calculated owner password. - Algorithm 3.3 of PDF 1.6 reference. - - - - Algorithm 2.B from ISO 32000-2 - - input for the advance compute hash - password for the custom algorithm - key for the computation hash algorithm - returns the byte array of computed hash - - - - Calculates owner password for 256 bit encryption algorithm. - - Data of calculated owner password. - Algorithm 3.9 of adobe_supplement_iso32000. - - - - Calculates owner password for 256-bit AcrobatX encryption algorithm. - - Algorithm 2.B of adobe_supplement_iso32000-2. - - - - Calculates owner encryption key for 256 bit encryption algorithm. - - Data of calculated owner encryption key. - Algorithm 3.9 of adobe_supplement_iso32000. - - - - Computes first 4 steps from algorithm 3.3 to calculate the encryption key. - - The owner password. - The encryption key. - - - - Computes the file encryption key of 256 bit AES encrypted documents. - - The owner/user password. - The algorithm 3.2a of adobe_supplement_iso32000 - - - - Compute the owner file encryption key of 256-bit AcrobatX encrypted documents. - - The owner password - Algorithm 2.B from ISO 32000-2 - - - - Compute the ueser file encryption key of 256-bit AcrobatX encrypted documents. - - The user password - Algorithm 2.B from ISO 32000-2 - - - - Calculates temporary key used for calculating owner password value. - - Orignial key value. - Current index. - Temporary key used for calculating owner password value. - - - - Creates encryption key. - - Input password string. - Owner password value. - Key created. - - - - Creates file encryption key for 256 bit encryption scheme (random 32 byte array). - - - - - Creates user password. - - Created user password. - - - - Calculates user encryption key for 256 bit encryption algorithm. - - Data of calculated user encryption key. - Algorithm 3.8 of adobe_supplement_iso32000. - - - - Calculates user encryption key for 256-bit AcrobatX encryption algorithm. - - Data of calculated user encryption key. - Algorithm 2-B of adobe_supplement_iso32000-2. - - - - Calculates user encryption key for 256 bit encryption algorithm. - - Data of calculated user encryption key. - Algorithm 3.8 of adobe_supplement_iso32000. - - - - Calculates permission flag(Perms) for 256 bit encryption algorithm. - - Data of calculated Permission flag. - Algorithm 3.10 of adobe_supplement_iso32000. - - - - Creates user password when encryption key is 40 bits length. - - Created user password. - - - - Creates user password when encryption key is 128 bits length. - - Created user password. - - - - Initializes data. - - - - - Transforms key before encryption. - - Original key to be transformed. - Transformed key. - - - - Checks if the password given is the user password. - - The password, which was given by the user. - A flag indicating if the password is the user password. - - - - Checks if the password given is the user password (256 bit encryption scheme). - - The password, which was given by the user. - A flag indicating if the password is the user password. - - - - Checks if the password given is the owner password. - - The password, which was given by the user. - A flag indicating if the password is the owner password. - - - - Checks if the password given is the owner password (256 bit encryption scheme). - - The password, which was given by the user. - A flag indicating if the password is the owner password. - - - - Converts an array into a password string. Before the convertion to string - cutts off the padding string if there is one. - - The array, which should be converted. - A string that should be a valid password string. - - - - Determines if the arrays are equal. - - One array that should be compared. - Another array. - True if arrays are equal, false otherwise. - - - - Determines if the first bytes of the arrays are equal. - - One array that should be compared. - Another array. - The actual size of the arrays to compare. - - True if arrays are equal, false otherwise. - - - - - Standard encryption dictionary for AES encryption - - - - - Gets security handler. Filter's value. - - - - - Gets or sets the cryptographic algorithm. V's value. - - - - - Gets or sets encryption algorithm. - - - - - Gets or sets permission set. - - - - - Gets revision number. R's value. - - - - - Gets or sets the password required to change permissions - for the PDF document. O's value. - - - - - Gets or sets the password required to open the PDF document. P's value. - - - - - Gets bytes array of random numbers. - - - - - Gets or sets bytes array for manipulating by Custom algo. - - - - - Gets or sets the object that allows to compute the MD5 hash for the input data - using the implementation provided by the cryptographic service provider (CSP). - - - - - Gets encoding. - - - - - Gets or sets encryption key. - - - - - Gets or sets value indicating whether document should be encrypted or not. - - - - - Gets calculated user password. - - - - - Gets calculated owner password. - - - - - Shows if the encryptor's setting have been changed. - - - - - Shows if the metadata should be encrypted. - - - - - Bytes for empty string. - - - - - Represents the SfBigInteger - - - - - Represents the security settings of the PDF document. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold); - PdfBrush brush = PdfBrushes.Black; - //Document security - PdfSecurity security = document.Security; - //use 128 bits key - security.KeySize = PdfEncryptionKeySize.Key128Bit; - security.OwnerPassword = "syncfusion"; - security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.FullQualityPrint; - security.UserPassword = "password"; - document.Save("Security.pdf"); - document.Close(true); - - - ' Creates a new document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim font As PdfStandardFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold) - Dim brush As PdfBrush = PdfBrushes.Black - 'Document security - Dim security As PdfSecurity = document.Security - 'use 128 bits key - security.KeySize = PdfEncryptionKeySize.Key128Bit - security.OwnerPassword = "syncfusion" - security.Permissions = PdfPermissionsFlags.Print Or PdfPermissionsFlags.FullQualityPrint - security.UserPassword = "password" - document.Save("Security.pdf") - document.Close(True) - - - - - - Owner password value. - - - - - User password value. - - - - - Object encrypting the data. - - - - - Initializes a new instance of the class. - - - - - Logically ORs flag and mask and return result. - - The mask of set bit that should be set in the result. - The ORed value of flag and mask. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfSecurity security = doc.Security; - security.SetPermissions(PdfPermissionsFlags.AssembleDocument); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - 'Document security - Dim security As PdfSecurity = doc.Security - security.SetPermissions(PdfPermissionsFlags.AssembleDocument) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Logically ANDs flag and inverted mask and return result. - - The mask of set bit that should be cleared in the result. - The ANDed value of flag and inverted mask. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfSecurity security = doc.Security; - security.ResetPermissions(PdfPermissionsFlags.AssembleDocument); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - 'Document security - Dim security As PdfSecurity = doc.Security - security.ResetPermissions(PdfPermissionsFlags.AssembleDocument) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the owner password, If the PDF document is password protected you can use the - owner password to open the document and change its permissions. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the user password which is required when the PDF document is opened in a viewer. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the permissions when the document is opened with user password. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the encryptor. - - - - - Gets or sets the length of the encryption key for encryption. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the type of encryption algorithm used. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether this is enabled. - - - - - list of parent cell index - - - - - cell index of PdfGrid which moves to next page - - - - - Initializes a new instance of the class with the grid. - - The parent grid. - - - - Layouts the specified graphics. - - The graphics. - The location. - - - - Layouts the specified graphics. - - The graphics. - The bounds. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the on page. - - The param. - - - - - Draw ParentGrid Rows when the ChildGrid has draw in secondPage - - - - - - - Rearranges the pages. - - The layouted pages. - - - - Draws the row. - - The row. - Start index of the cell. - End index of the cell. - - - - Draws row till it fits the page and then calculates height for the next page. - - The RowLayoutResult. - Row being drawn. - Height of the row. - - - - Draws row - - The RowLayoutResult. - Row being drawn. - Height of the row. - - - - Recalculate row height for the split cell to be drawn. - - - - - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - The current row. - If true, stop lay outing. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises the before cell layout. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The cell value. - - - - Raises the after cell layout event. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The value of the cell. - - - - Checks if the given format is default format or not. - - - - - - - Determines the column draw ranges. - - - - - Rearranges the pages - - - - - Gets the next page. - - - - - - Gets the format. - - The format. - - - - - Gets the layout result. - - - - - - Gets the grid. - - The grid. - - - - Initializes a new instance of the class. - - - - - Gets or sets a value indicating whether this instance is finish. - - true if this instance is finish; otherwise, false. - - - - Gets or sets the bounds. - - The bounds. - - - - Provides parameters definition for PdfGrid layout. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Layout format - PdfGridLayoutFormat format = new PdfGridLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.PaginateBounds = new RectangleF(0, 0, 400, 500); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10),format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Layout format - Dim format As New PdfGridLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.PaginateBounds = New RectangleF(0, 0, 400, 500) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10),format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Layout format - PdfGridLayoutFormat format = new PdfGridLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.PaginateBounds = new RectangleF(0, 0, 400, 500); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10),format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Layout format - Dim format As New PdfGridLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.PaginateBounds = New RectangleF(0, 0, 400, 500) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10),format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with a base format. - - The base format. - - - - Represents the results of the PdfGrid including bounds and resultant page. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfGridLayoutResult result = pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfGridLayoutResult = pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the current page and bounds. - - The current page. - The current bounds. - The page might be null, which means that - lay outing was performed on PdfGraphics. - - - - The Syncfusion.Pdf.Grid namespace contains classes for creating tables by entering the data manually or from an external data source. - - - - - Represents a flexible grid that consists of columns and rows. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Internal variable to store layout format. - - - - - check whether the Grid is drawn. - - - - - RowLayoutBoundsWidth. - - - - - list of drawn page index by PdfGrid - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The location. - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, new PointF(10, 10), 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, New PointF(10, 10), 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The x. - The y. - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, 10, 10, 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, 10, 10, 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The bounds. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The location. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The location. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The bounds. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The bounds. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new RectangleF(0, 0, 100, 100), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New RectangleF(0, 0, 100, 100), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The width. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The width. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100, format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100, format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Applies the span. - - - - - Measures this instance. - - - - - - Apply built-in table style to the grid. - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Apply built-in table style to the table - - enum of PdfGridBuiltinStyle - - - - Apply built-in table style to the table - - enum of PdfGridBuiltinStyle - The PdfGridBuiltinStyleSettings - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Create Bold style font - - - - - - - Create Regular style font - - - - - - - Create Italic style font - - - - - - - Change font style - - - - - - - Sets the data source. - - - - - Populates the grid. - - - - - Populates the header row. - - - - - Calculates the column widths. - - - - - Calculates the width of the columns. - - The bounds. - - - - Gets the headers collection from the PdfGrid.[Read-Only] - - Represents the headers of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add(); - dataTable.Columns.Add(); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - // Add a new header to PdfGrid. - pdfGrid.Headers.Add(1); - // Get the header collection. - PdfGridHeaderCollection collection = pdfGrid.Headers; - // Set the header names. - collection[0].Cells[0].Value = "Header1"; - collection[0].Cells[1].Value = "Header2"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add() - dataTable.Columns.Add() - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - ' Add a new header to PdfGrid. - pdfGrid.Headers.Add(1) - ' Get the header collection. - Dim collection As PdfGridHeaderCollection = pdfGrid.Headers - ' Set the header names. - collection(0).Cells(0).Value = "Header1" - collection(0).Cells(1).Value = "Header2" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the row collection from the PdfGrid.[Read-Only] - - Represents the rows collection of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get the rows collection from the PdfGrid - PdfGridRowCollection rowCollection = pdfGrid.Rows; - rowCollection[0].Cells[0].Value = "Row Collection Sample"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get the rows collection from the PdfGrid - Dim rowCollection As PdfGridRowCollection = pdfGrid.Rows - rowCollection(0).Cells(0).Value = "Row Collection Sample" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the data bind to the PdfGrid by associating it with an external data source. - - The data source. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the data member. - - The data member. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Create data table. - DataTable stdTable = new DataTable("StdTable"); /// - /Add columns - stdTable.Columns.Add("ID"); - stdTable.Columns.Add("Name"); - //Add rows. - stdTable.Rows.Add(new object[] { "S01", "George" }); - stdTable.Rows.Add(new object[] { "S02", "Stefan" }); - //Create new data set. - DataSet dataSet = new DataSet(); - dataSet.Tables.Add(dataTable); - dataSet.Tables.Add(stdTable); - //Set data member. - pdfGrid.DataMember = "StdTable"; - //Assign data source. - pdfGrid.DataSource = dataSet; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Create data table. - Dim stdTable As New DataTable("StdTable") - 'Add columns - stdTable.Columns.Add("ID") - stdTable.Columns.Add("Name") - 'Add rows. - stdTable.Rows.Add(New Object() { "S01", "George"}) - stdTable.Rows.Add(New Object() { "S02", "Stefan"}) - 'Create new data set. - Dim dataSet As New DataSet() - dataSet.Tables.Add(dataTable) - dataSet.Tables.Add(stdTable) - 'Set data member. - pdfGrid.DataMember = "StdTable" - 'Assign data source. - pdfGrid.DataSource = dataSet - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the grid style. - - Represents the style information applied to a PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding different style - PdfGridStyle style = new PdfGridStyle(); - style.BackgroundBrush = PdfBrushes.Cyan; - style.TextBrush = PdfBrushes.BlueViolet; - style.TextPen = new PdfPen(PdfBrushes.Black, 0.25F); - //Add style to the PdfGrid - pdfGrid.Style = style; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding different style - Dim style As New PdfGridStyle() - style.BackgroundBrush = PdfBrushes.Cyan - style.TextBrush = PdfBrushes.BlueViolet - style.TextPen = New PdfPen(PdfBrushes.Black, 0.25F) - 'Add style to the PdfGrid - pdfGrid.Style = style - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the first row. - - The first row. - - - - Gets the column collection of the PdfGrid.[Read-Only] - - Represents the columns collection of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get the column collection from the PdfGrid - PdfGridColumnCollection columnCollection = pdfGrid.Columns; - columnCollection[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get the column collection from the PdfGrid - Dim columnCollection As PdfGridColumnCollection = pdfGrid.Columns - columnCollection(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - - Gets the size. - - The size. - - - - Gets or sets a value indicating whether to split or cut rows that overflow a page. - - Default Value: true - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Set row break. - pdfGrid.AllowRowBreakAcrossPages = true; - //Get the rows collection from the PdfGrid - PdfGridRowCollection rowCollection = pdfGrid.Rows; - rowCollection[0].Cells[0].Value = "Row Collection Sample"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Set row break. - pdfGrid.AllowRowBreakAcrossPages = True - 'Get the rows collection from the PdfGrid - Dim rowCollection As PdfGridRowCollection = pdfGrid.Rows - rowCollection(0).Cells(0).Value = "Row Collection Sample" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or set if grid is nested grid. - - - - - Gets or sets the parent cell of the nested grid. - - - - - Gets layout format of the grid. - - - - - Gets a value indicating whether the start cell layout event should be raised. - - - - - Gets a value indicating whether the end cell layout event should be raised. - - - - - - - The event raised on starting cell lay outing. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table=new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender,PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - The event raised on finished cell layout. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents the schema of a cell in a . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Alignment of the image. - - - - - Rowspanned cell remaining height - d - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the row. - - The row of the cell. - - - - Draws the specified graphics. - - The graphics. - The bounds. - - - - Calculates the width. - - - - - - Calcualtes the height. - - - - - - Adjusts the outer layout area. - - The bounds. - - - - - Adjusts the text layout area. - - The bounds. - - - - - Draws the cell border constructed by drawing lines. - - The Current Graphics. - The CellStyle. - The bounds. - - - - Sets the transparency. - - The graphics. - The pen. - - - - Gets the next cell. - - - - - - Gets the text font. - - - - - - Gets the text brush. - - - - - - Gets the text pen. - - - - - - Gets the background brush. - - - - - - Gets the width of the PdfGrid cell.[Read-Only] - - The width of the cell which is set by the column width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Get cell width. - float cellWidth = cell.Width; - //Get cell height. - float cellHeight = cell.Height; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Get cell width. - Dim cellWidth As Single = cell.Width - 'Get cell height. - Dim cellHeight As Single = cell.Height - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the height of the PdfGrid cell.[Read-Only] - - The height. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Get cell width. - float cellWidth = cell.Width; - //Get cell height. - float cellHeight = cell.Height; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Get cell width. - Dim cellWidth As Single = cell.Width - 'Get cell height. - Dim cellHeight As Single = cell.Height - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value that indicates the total number of rows that cell spans within a PdfGrid. - - The number of rows that cell should span. The default value is 1. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value that indicates the total number of columns that cell spans within a PdfGrid. - - The number of columns that cell should span. The default value is 1. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell style. - - Represents the style information applied to individual cells within a PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell content is HTML text or not - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the value of the cell. - - Value can be string or PdfGrid, PdfGrid will create a nested grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the string format. - - The string format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the parent row. - - The parent row. - - - - Gets or sets a value indicating whether this instance is cell merge continue. - - - true if this instance is cell merge continue; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is cell merge start. - - - true if this instance is cell merge start; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is row merge start. - - - true if this instance is row merge start; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is row merge continue. - - - true if this instance is row merge continue; otherwise, false. - - - - - Gets the next cell. - - The next cell. - - - - Gets or sets the remaining string after the row split between pages. - - - - - Gets or sets whether drawing of cell is completed. - - - - - Gets or sets the image alignment type of the PdfGridCell background image. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Get or set the tag for the element - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the row. - - The row of cell collection. - - - - Adds this instance. - - - - - - Adds the specified cell. - - The cell. - - - - Returns the index of a particular cell in the collection. - - The cell. - Index of the particular cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Get the index of the cell. - int index = collection.IndexOf(cell); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Get the index of the cell. - Dim index As Integer = collection.IndexOf(cell) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //custom collection enumerator. - foreach (PdfGridCell cell in collection) - { - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - } - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'custom collection enumerator. - For Each cell As PdfGridCell In collection - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - Next - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - The index of the required PdfGridCell - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the cells count.[Read-Only] - - The count representing the number of cells present in a Row. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The column collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - Represents the schema of a column in a . - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Gets or sets the width of the . - - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Gets the width of the 1st column - float columnWidth = pdfGrid.Columns[0].Width; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Gets the width of the 1st column - Dim columnWidth As Single = pdfGrid.Columns(0).Width - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the information about the text formatting. - - The format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating new string formatting - PdfStringFormat stringFormat = new PdfStringFormat(); - stringFormat.Alignment = PdfTextAlignment.Right; - //Set string format - pdfGrid.Columns[0].Format = stringFormat; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating new string formatting - Dim stringFormat As New PdfStringFormat() - stringFormat.Alignment = PdfTextAlignment.Right - 'Set string format - pdfGrid.Columns(0).Format = stringFormat - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the parent .[Read-Only] - - The grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Gets the parent grid - PdfGrid parentGrid = pdfGrid.Columns[0].Grid; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - /// 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Gets the parent grid - Dim parentGrid As PdfGrid = pdfGrid.Columns(0).Grid - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Clears this instance. - - - - - Add a new column to the . - - The added column - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(); - pdfGrid.Columns.Add(); - pdfGrid.Columns.Add(); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add() - pdfGrid.Columns.Add() - pdfGrid.Columns.Add() - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the number of specified count. - - The count. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add(3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the specified column. - - The column. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the columns. - - The count. - - - - Calculates the column widths. - - - - - Gets the widths of the columns. - - The total width. - The start column. - The end column. - An array containing widths. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(3); - foreach(PdfGridColumn column in pdfGrid.Columns) - { - //Set width. - column.Width = 150; - } - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add(3) - For Each column As PdfGridColumn In pdfGrid.Columns - 'Set width. - column.Width = 150 - Next - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the number of columns in the .[Read-Only] - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Get the columns count. - int count = pdfGrid.Columns.Count; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Get the columns count. - Dim count As Integer = pdfGrid.Columns.Count - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the widths. - - The widths. - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The column collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - Provides customization of the settings for the particular row. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Check whether the row height set explicity. - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Calculates the height. - - - - - - Measures the width. - - - - - - Enables you to set the appearance of the row in a . - - The cell style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the specific row - pdfGrid.Rows[0].ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the specific row - pdfGrid.Rows(0).ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the cells from the selected row.[Read-Only] - - The cells. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Usage of cell collection - pdfGrid.Rows[0].Cells[0].Value = "E03"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Usage of cell collection - pdfGrid.Rows(0).Cells(0).Value = "E03" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the parent grid. - - The parent grid. - - - - Gets or sets the row style. - - The row style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - rowStyle.BackgroundBrush = PdfBrushes.Cyan; - //Apply style to the row - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create row style - Dim rowStyle As New PdfGridRowStyle() - rowStyle.BackgroundBrush = PdfBrushes.Cyan - 'Apply style to the row - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the height of the row. - - The height. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Apply row height - pdfGrid.Rows[0].Height = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Apply row height - pdfGrid.Rows(0).Height = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the width. - - The width. - - - - Gets or sets a value indicating whether [row span exists]. - - true if [row span exists]; otherwise, false. - - - - Gets or sets a value indicating whether [column span exists]. - - true if [column span exists]; otherwise, false. - - - - Height of the row yet to be drawn after split. - - - - - Gets or sets the index of the cell at which the row breaks when AllowHorizonalOverflow is true. - - - - - Holds the result of nested grid. - - - - - Returns index of the row. - - - - - Check whether the Row has row span or row merge continue. - - - - - Get or set the tag for the element - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Apply row height - pdfGrid.Rows[0].Height = 100; - //Set PDF tag. - pdfGrid.Rows[0].PdfTag = new PdfStructureElement(PdfTagType.TableRow); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Apply row height - pdfGrid.Rows(0).Height = 100 - 'Set PDF tag. - pdfGrid.Rows(0).PdfTag = New PdfStructureElement(PdfTagType.TableRow) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row - PdfGridRow row = pdfGrid.Rows.Add(); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row - Dim row As PdfGridRow = pdfGrid.Rows.Add() - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Add new row to the grid. - - The added row - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row - PdfGridRow row = pdfGrid.Rows.Add(); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row - Dim row As PdfGridRow = pdfGrid.Rows.Add() - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Add the row to the grid. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets the row span and column span to a cell. - - Index of the row. - Index of the cell. - The row span. - The col span. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Set Span to the cell - pdfGrid.Rows.SetSpan(0, 0, 2, 2); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Set Span to the cell - pdfGrid.Rows.SetSpan(0, 0, 2, 2) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Applies the style to all the rows in the grid. - - The style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the specific row - pdfGrid.Rows.ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the specific row - pdfGrid.Rows.ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the settings for the header. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - pdfGrid.Headers[0].Cells[0].Value="Column1"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Adds the specified row. - - The row. - - - - enables you to quickly and easily add rows to the header at run time. - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row to the header - PdfGridRow[] header = pdfGrid.Headers.Add(1); - header[1].Cells[0].Value = "New Header"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row to the header - Dim header As PdfGridRow() = pdfGrid.Headers.Add(1) - header(1).Cells(0).Value = "New Header" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Removes all the header information in the . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Removes all the header in the PdfGrid - pdfGrid.Headers.Clear(); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Removes all the header in the PdfGrid - pdfGrid.Headers.Clear() - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Enables you to set the appearance of the header row in a . - - The style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the header - pdfGrid.Headers.ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the header - pdfGrid.Headers.ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - foreach (PdfGridRow hRow in pdfGrid.Headers) - { - hRow.Cells[0].Value = "Column1"; - } - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a object that represents the header row in a control.[Read-Only] - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - pdfGrid.Headers[0].Cells[0].Value="Column1"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the number of header in the .[Read-Only] - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Gets the number of rows in the header - int count = pdfGrid.Headers.Count; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Gets the number of rows in the header - Dim count As Integer = pdfGrid.Headers.Count - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The row collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - The class used represents the cell border of the PDF grid - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the left. - - The left. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the right. - - The right. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the top. - - The top. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bottom. - - The bottom. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets all. - - All. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a value indicating whether this instance is all. - - true if this instance is all; otherwise, false. - - - - Gets the default border. - - The default. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = PdfBorders.Default; - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As PdfBorders = PdfBorders.Default - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The class used represents the edges of the grid cells - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with left,right,top and bottom values. - - The left. - The right. - The top. - The bottom. - - - - Gets or sets the left value of the edge - - The left value of the edge. - - - - Gets or sets the right value of the edge. - - The right value of the edge. - - - - Gets or sets the top value of the edge - - The top value of the edge. - - - - Gets or sets the bottom value of the edge. - - The bottom value of the edge. - - - - Sets value to all sides left,right,top and bottom - - The integer value to all sides - - - - Gets a value indicating whether this instance is all. - - true if this instance is all; otherwise, false. - - - - The class used represents the cell padding of the PDF grid - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Adding cell padding - gridStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Adding cell padding - gridStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with spacing of all sides Left,Right,Top,Bottom - - The left space. - The right space. - The top space. - The bottom space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Adding cell padding - gridStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Adding cell padding - gridStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the left space of padding. - - The left space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the right space of padding. - - The right space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the top space of padding. - - The top space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bottom space of padding. - - The bottom space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets space value to all sides of a cell Left,Right,Top,Bottom. - - The space value of all sides Left,Right,Top,Bottom. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.All = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.All = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Represents the grid built-in style settings. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the columns in a table, - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the rows in a table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Base class for the grid style - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Clone the PDF grid style instance. - PdfGridStyle style1 = gridStyle.Clone() as PdfGridStyle; - style1.Font = new PdfStandardFont(PdfFontFamily.Courier, 8); - pdfGrid.Style = style1; - pdfGrid.Draw(page, new PointF(10, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Clone the PDF grid style. - Dim style1 As PdfGridStyle = TryCast(gridStyle.Clone(), PdfGridStyle) - style1.Font = New PdfStandardFont(PdfFontFamily.Courier, 8) - pdfGrid.Style = style1 - pdfGrid.Draw(page, New PointF(10, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the background brush. - - The background brush of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the text brush. - - The text brush of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the text pen. - - The text pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Set text pen. - gridStyle.TextPen = PdfPens.Red; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Set text pen. - gridStyle.TextPen = PdfPens.Red - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the font. - - The font. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Set text pen. - gridStyle.TextPen = PdfPens.Red; - //Set font. - gridStyle.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 16, PdfFontStyle.Bold); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Set text pen. - gridStyle.TextPen = PdfPens.Red - 'Set font. - gridStyle.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 16, PdfFontStyle.Bold) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell spacing of the . - - The cell spacing. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell padding. - - The cell padding. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the border overlap style of the . - - The border overlap style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to allow horizontal overflow. - - - true if [allow horizontal overflow]; otherwise, false. - - Defalult Value: false - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the type of the horizontal overflow of the . - - The type of the horizontal overflow. - Default value: PdfHorizontalOverflowType.LastPage - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - //Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid row style - Dim rowStyle As New PdfGridRowStyle() - 'Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - //Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid row style - Dim rowStyle As New PdfGridRowStyle() - 'Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Setting text pen for cell - cellStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Setting text pen for cell - cellStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the default format. - - - - - - Gets the string format of the . - - The string format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the border of the . - - The border. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the background image in the - - The background image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the edges. - - The edges. - - - - Gets or sets the cell padding. - - The cell padding. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Describe the possible values of PdfHorizontalOverflowType. If a grid is drawn which doesn't fits within a single page, it will be splited to several pages. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the overflowing grid as next page - - - - - Draws the overflowing grid as last page - - - - - Delegate for handling StartCellLayoutEvent. - - The sender of the event. - The arguments of the event. - This event is raised when laying out a cell on a page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table=new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender,PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - Class - Class - - - - Delegate for handling EndCellLayoutEvent. - - The sender of the event. - The arguments of the event. - This event is raised when you have finished laying out a page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Arguments of BeginPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The bounds. - The page. - The start row. - - - - Gets the start row index.[Read-Only] - - The start row. - - - - Arguments of EndPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The result. - The start row. - The end row. - - - - Represents arguments of StartCellLayout Event. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the abstract class of the . - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets the index of the row. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Gets the index of the cell. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - //Get the cell index. - int index = args.CellIndex; - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - 'Get the cell index. - Dim index As Integer = args.CellIndex - End Sub - - - - - - Gets the value. - - The value might be null or an empty string, - which means that either no text were acquired or all - text was on the previous page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - //Get the cell value. - string text = args.Value; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - 'Get value - Dim text As String = args.Value - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) /// - End If - End Sub - - - - - - Gets the bounds of the cell. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Gets the graphics, on which the cell should be drawn. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets or sets a value indicating whether the value of this cell should be skipped. - - - - - Represents arguments of EndCellLayout Event. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Get the PdfGridCellStyle - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents base class for markers. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Marker font. - - - - - Marker brush. - - - - - Marker pen. - - - - - The string format of the marker. - - - - - Marker alignment. - - - - - Gets or sets marker font. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets marker brush. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets marker pen. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the format. - - The format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets a value indicating whether the marker is - situated at the left of the list or at the right of the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Indicates is alignment right. - - - - - Represents marker for ordered list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Holds numbering style. - - - - - Start number for ordered list. - - - - - Delimiter for numbers. - - - - - Finalizer for numbers. - - - - - Current index of item. - - - - - Initializes a new instance of the class. - - Number style of marker. - Number delimiter of marker. - Number suffix of marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, ".", ".", font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, ".", ".", font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - Number style of marker. - Number suffix of the marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, ".", font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, ".", font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - Number style of marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Draw marker in specified point at graphics. - - Pdf graphics. - The location point. - - - - Draw marker in specified point at page. - - The page. - The point. - - - - Gets the marker number. - - Number in string. - - - - Gets or sets the list numbering style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets ar sets start number for ordered list. Default value is 1. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the delimiter. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the suffix of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Suffix = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Suffix = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the index of the current item. - - - - - Represents bullet for the list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Holds the marker text. - - - - - Holds the marker style. - - - - - Holds the marker image. - - - - - Marker temlapte. - - - - - Marker size. - - - - - Font used when draws styled marker - - - - - Initializes a new instance of the class. - - The text of the marker. - Marker font. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker("list", font); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker("list", font) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The style of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The image of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker(new PdfBitmap("Bullet.jpg")); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker(New PdfBitmap("Bullet.jpg")) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - Template of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Create a new PDF template instance. - PdfTemplate template = new PdfTemplate(100, 100); - template.Graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 100)); - //Set template to marker. - list.Marker = new PdfUnorderedMarker(template); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Create a new PDF template instance. - Dim template As PdfTemplate = New PdfTemplate(100, 100) - template.Graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 100)) - 'Set template to marker. - list.Marker = New PdfUnorderedMarker(template) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - - - - Draws the specified graphics. - - The graphics. - The point. - The brush. - The pen. - - - - Draws the specified page. - - The page. - The point. - The brush. - The pen. - - - - Gets the styled text. - - Returns symbol represented of style. - - - - Gets or sets template of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Create a new PDF template instance. - PdfTemplate template = new PdfTemplate(100, 100); - template.Graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 100)); - //Set template to marker. - list.Marker.Template = template; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Create a new PDF template instance. - Dim template As PdfTemplate = New PdfTemplate(100, 100) - template.Graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 100)) - 'Set template to marker. - list.Marker.Template = template - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - - - - Gets or sets image of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the list image - list.Marker.Image = new PdfBitmap("Bullet.jpg"); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the list image - list.Marker.Image = new PdfBitmap("Bullet.jpg") - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Gets or sets marker text. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker Text - list.Marker.Text = "List: "; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker Text - list.Marker.Text = "List: " - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - - - - Gets or sets the style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the size. - - - - - Gets or sets the unicode font. - - - - - Specifies the marker style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Marker have no style. - - - - - Marker is like a disk. - - - - - Marker is like a square. - - - - - Marker is like a Asterisk. - - - - - Marker is like a circle. - - - - - Marker is custom string. - - - - - Marker is custom image. - - - - - Marker is custom template. - - - - - Represents marker alignment. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Alignment = PdfListMarkerAlignment.Left - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker alignment - list.Marker.Alignment = PdfListMarkerAlignment.Left - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Left alignment for marker. - - - - - Right alignment for marker. - - - - - Represents base class for lists. - - Class - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - The characters for splitting. - - - - - Creates an item collection. - - The text. - The item collection initialized properly. - - - - - Holds collection of items. - - - - - Tabulation for items. - - - - - Indent between marker and text. - - - - - List's font. - - - - - The pen for the list. - - - - - The brush for the list. - - - - - The string format for the list. - - - - - Creates new list. - - - - - Creates new list with items. - - Collection of list items. - - - - Initializes a new instance of the class. - - The font. - - - - Draws an list on the Graphics. - - Graphics context where the list should be printed. - X co-ordinate of the list. - Y co-ordinate of the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Draws list on the Graphics. - - Pdf graphics. - - - - Layouts list at page. - - Pdf layout parameters. - Returns layout results. - - - - Rise the BeginItemLayout event. - - The instance containing the event data. - - - - Rise the EndItemLayout event. - - The instance containing the event data. - - - - Gets items of the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets tabulation for the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the indent from the marker to the list item text. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the list font. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets list brush. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets list pen. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the format of the list. - - The format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets a value indicating whether to raise begin item layout event. - - - - - Gets a value indicating whether to raise end item layout event. - - - - - Event that rises when item begin layout. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Event that rises when item end layout. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Represents the list item of the list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Holds item font. - - - - - Holds item text. - - - - - Holds text format. - - - - - Holds pen. - - - - - Holds brush. - - - - - Sub list. - - - - - Text indent for current item. - - - - - Creates new empty pdf list item. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem(); - item1.Text = "PDF"; - PdfListItem item2 = new PdfListItem(); - item2.Text = "XlsIO"; - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem() - item1.Text = "PDF" - Dim item2 As New PdfListItem() - item2.Text = "XlsIO" - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates new pdf list item with default settings. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF"); - PdfListItem item2 = new PdfListItem("XlsIO"); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF") - Dim item2 As New PdfListItem("XlsIO") - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The text of item. - The font of item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font); - PdfListItem item2 = new PdfListItem("XlsIO", font); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font) - Dim item2 As New PdfListItem("XlsIO", font) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The text of item. - The font of item. - The string format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font, format); - PdfListItem item2 = new PdfListItem("XlsIO", font, format); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font, format) - Dim item2 As New PdfListItem("XlsIO", font, format) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates new list item. - - The item text. - The item font. - The string format of item. - The item pen. - The item brush. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font, format, PdfPens.Red, PdfBrushes.Black); - PdfListItem item2 = new PdfListItem("XlsIO", font, format, PdfPens.Red, PdfBrushes.Black); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font, format, PdfPens.Red, PdfBrushes.Black) - Dim item2 As New PdfListItem("XlsIO", font, format, PdfPens.Red, PdfBrushes.Black) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets item font. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets item text. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Text = "Grid"; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Text = "Grid" - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets item string format. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets list item pen. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Pen = new PdfPen(PdfBrushes.Blue); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Pen = New PdfPen(PdfBrushes.Blue) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets list item brush. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Brush = PdfBrushes.BlueViolet - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets sublist for item. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Brush = PdfBrushes.Black; - subList.Indent = 20; - subList.Items.Add("Essential PDF"); - subList.Items.Add("Essential DocIO"); - subList.Items.Add("Essrntial XlsIO"); - list.Items[0].SubList = subList; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Brush = PdfBrushes.Black - subList.Indent = 20 - subList.Items.Add("Essential PDF") - subList.Items.Add("Essential DocIO") - subList.Items.Add("Essrntial XlsIO") - list.Items(0).SubList = subList - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets indent for item. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.TextIndent = 10; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Brush = PdfBrushes.Black; - subList.Indent = 20; - subList.Items.Add("Essential PDF"); - subList.Items.Add("Essential DocIO"); - subList.Items.Add("Essrntial XlsIO"); - list.Items[0].SubList = subList; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.TextIndent = 10 - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Brush = PdfBrushes.Black - subList.Indent = 20 - subList.Items.Add("Essential PDF") - subList.Items.Add("Essential DocIO") - subList.Items.Add("Essrntial XlsIO") - list.Items(0).SubList = subList - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Get or set the tag for the element - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem(); - item1.Text = "PDF"; - item1.PdfTag = new PdfStructureElement(PdfTagType.ListItem); - PdfListItem item2 = new PdfListItem(); - item2.Text = "XlsIO"; - item2.PdfTag = new PdfStructureElement(PdfTagType.ListItem); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem() - item1.Text = "PDF" - item1.PdfTag = New PdfStructureElement(PdfTagType.ListItem) - Dim item2 As New PdfListItem() - item2.Text = "XlsIO" - item2.PdfTag = New PdfStructureElement(PdfTagType.ListItem) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents collection of list items. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - A string array that contains items separated by the new line character. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - - - - Adds the specified item. - - The item. - The item index in collection. - - - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.TextIndent = 10; - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - - - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.TextIndent = 10 - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - - - - - - Adds the specified item. - - The item. - The item indent. - - - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.TextIndent = 10; - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item, 10); - listItemCollection.Add(gridItem, 10); - - - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.TextIndent = 10 - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item, 10) - listItemCollection.Add(gridItem, 10) - - - - - - Adds the item with a specified text. - - The text. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The item indent. - List item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", 10); - collection.Add("XlsIO", 10); - collection.Add("DocIO",10); - collection.Add("PPT", 10); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", 10) - collection.Add("XlsIO", 10) - collection.Add("DocIO", 10) - collection.Add("PPT", 10) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The font. - The item index in collection. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", font); - collection.Add("XlsIO", font); - collection.Add("DocIO", font); - collection.Add("PPT", font); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", font) - collection.Add("XlsIO", font) - collection.Add("DocIO", font) - collection.Add("PPT", font) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The font. - The item indent. - List item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", font, 10); - collection.Add("XlsIO", font, 10); - collection.Add("DocIO", font, 10); - collection.Add("PPT", font, 10); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", font, 10) - collection.Add("XlsIO", font, 10) - collection.Add("DocIO", font, 10) - collection.Add("PPT", font, 10) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Inserts item at the specified index. - - The specified index. - The item. - The item index - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem newItem = new PdfListItem("PDF"); - // Insert a new item in the collection - listItemCollection.Insert(0, newItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim newItem As PdfListItem = New PdfListItem("PDF") - ' Insert a new item in the collection - listItemCollection.Insert(0, newItem) - - - - - - Inserts the specified index. - - The index. - The item. - The item indent. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem newItem = new PdfListItem("PDF"); - // Insert a new item in the collection - listItemCollection.Insert(0, newItem, 10); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim newItem As PdfListItem = New PdfListItem("PDF") - ' Insert a new item in the collection - listItemCollection.Insert(0, newItem, 10) - - - - - - Removes the specified item from the list. - - The specified item. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem toolsItem = new PdfListItem("Tools"); - // Remove 'Tools' list item - listItemCollection.Remove(toolsItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim toolsItem As PdfListItem = New PdfListItem("Tools") - ' Remove 'Tools' list item - listItemCollection.Remove(toolsItem) - - - - - - Removes the item at the specified index from the list. - - he specified index. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Remove the firse item from the collection - listItemCollection.RemoveAt(0); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Remove the firse item from the collection - listItemCollection.RemoveAt(0) - - - - - - Determines the index of a specific item in the list. - - The item to locate in the list. - The index of item if found in the list; otherwise, -1. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates 'Tools' list item - PdfListItem toolsItem = new PdfListItem("Tools"); - int indexOf = listItemCollection.IndexOf(toolsItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates 'Tools' list item - Dim toolsItem As PdfListItem = New PdfListItem("Tools") - Dim indexOf As Integer = listItemCollection.IndexOf(toolsItem) - - - - - - Clears collection. - - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Clears the list - listItemCollection.Clear(); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Clears the list - listItemCollection.Clear() - - - - - - Gets the PdfListItem from collection at the specified index. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Layouts list. - - Class - - - - Current graphics for lay outing. - - - - - Indicates end of lay outing. - - - - - List that layouts at the moment. - - - - - Stack than contains ListInfo. - - - - - Index of item that lay outing. - - - - - The indent of current list. - - - - - Height in which it stop lay outing. - - - - - Lay outing bounds. - - - - - Current page for layout. - - - - - Size for item lay outing. - - - - - If true it use paginate bounds if it is set. - - - - - Current brush for lay outing. - - - - - Current pen for layout. - - - - - Current font for layout. - - - - - Current string format. - - - - - Marker maximum width. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts on the specified Graphics. - - The Graphics. - The x-coordinate of element. - The y-coordinate of element. - - - - Layouts on the specified Graphics. - - The graphics to draw. - The location point. - - - - Layouts on the specified Graphics. - - The graphics to draw. - The location boundaries. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets the width of the marker max. - - The list. - The info. - - - - Sets the current parameters. - - The list. - - - - Sets the current parameters. - - The item. - - - - Layouts the on the page. - - The page layout result. - Returns page layout result. - - - - Draws the item. - - The page result. - The x position. - The current list. - The index of the item. - The indent of the list. - The list info. - The current item. - The current height. - The y position. - - - - Determines whether is null or empty the specified text. - - The text. - - true if is null or empty the specified text, otherwise, false. - - - - - Afters the item layouted. - - The item that layout. - The page at which item layouted. - - - - Before the item layout. - - The item that layouts. - The page at which item layout. - - - - After the page layouted. - - The current bounds. - The current page. - The current list. - - - - Before the page layout. - - The current bounds. - The current page. - The cuurent list. - - - - Creates the marker result. - - The index of the item. - The current list. - The list info. - The current item. - Returns marker layout result. - - - - Craetes the unordered marker result. - - The current list. - The current item. - Size of the marker. - - - - - Creates the ordered marker result. - - The list. - The item. - The index. - The info. - if it is to find max width, set to true. - - - - - Sets the marker alingment. - - The marker. - The marker format. - Markers string format. - - - - Draws the marker. - - The current list. - The current item. - The current marker result. - The current Y position. - The current X position. - Returns true if marker have been drawn. - - - - Draws the unordered marker. - - The current list. - The current marker result. - The current item. - The current X position. - The current Y position. - - - - - Draws the ordered marker. - - The current list. - The marker result. - The current item. - The current X position. - The current Y position. - - - - - Gets the markers font. - - The marker. - The item. - Returns font of the marker - - - - Gets the marker format. - - The marker. - The item. - Markers format. - - - - Gets the marker pen. - - The marker. - The item. - Markers pen. - - - - Gets the marker brush. - - The marker. - The item. - Markers brush. - - - - Gets or sets element. - - - - - Represents information about list. - - - - - Index of list. - - - - - Represents list. - - - - - The number of item at specified index. - - - - - Lists brush. - - - - - Lists pen. - - - - - Lists font. - - - - - Lists format. - - - - - Marker width; - - - - - Initializes a new instance of the class. - - The list. - The index of the list. - The number if list is ordered list otherwise null. - - - - Initializes a new instance of the class. - - The list. - The index. - - - - Gets or sets the index. - - The indexof the list. - - - - Gets or sets the list. - - The list. - - - - Gets or sets the number. - - The number of ordered list. - - - - Gets or sets the brush. - - - - - Gets or sets the pen. - - - - - Gets or sets the font. - - - - - Gets or sets the format. - - The format. - - - - Represents Page Layout result. - - - - - If true item finished layout on page. - - - - - Y-ordinate of broken item of marker. - - - - - Text of item that was not draw. - - - - - Text of marker that was not draw. - - - - - If true marker start draw. - - - - - Width of marker. - - - - - X-coordinate of marker. - - - - - Represents begin page layout event arguments. - - Class - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - // Event handler - list.BeginPageLayout += new BeginPageLayoutEventHandler(list_BeginPageLayout); - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - // Event handler - void list_BeginPageLayout(object sender, BeginPageLayoutEventArgs e) - { - // Set the new bounds for the list - e.Bounds = new RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height); - } - - - 'Create a new PDf document - Private document As PdfDocument = New PdfDocument() - 'Create a page - Private page As PdfPage = document.Pages.Add() - Private graphics As PdfGraphics = page.Graphics - Private products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Private listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Private list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - ' Event handler - AddHandler list.BeginPageLayout, AddressOf list_BeginPageLayout - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - ' Event handler - Private Sub list_BeginPageLayout(ByVal sender As Object, ByVal e As BeginPageLayoutEventArgs) - ' Set the new bounds for the list - e.Bounds = New RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height) - End Sub - - - - - - List that that starts layout. - - - - - Initializes a new instance of the class. - - The bounds of the list. - The page in which list layouts. - The list that starts layout. - - - - Gets the list that starts layout. - - The list that starts layout. - - - // Event handler - void list_BeginPageLayout(object sender, BeginPageLayoutEventArgs e) - { - PdfUnorderedList list = sender as PdfUnorderedList; - list.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - // Set the new bounds for the list - e.Bounds = new RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height); - } - - - ' Event handler - Private Sub list_BeginPageLayout(ByVal sender As Object, ByVal e As BeginPageLayoutEventArgs) - Dim list As PdfUnorderedList = TryCast(sender, PdfUnorderedList) - list.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - ' Set the new bounds for the list - e.Bounds = New RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height) - End Sub - - - - - - Represents begin page layout event arguments. - - Class - - - - List that ended layout. - - - - - Initializes a new instance of the class. - - The layout result. - The list that ended layout. - - - - Gets the list that ended layout. - - The list that ended layout. - - - - The Syncfusion.Pdf.Lists namespace contains classes for creating structure elements in PDF document. - - - - - Represents the ordered list. - - Class - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - - - - Marker of the list. - - - - - True if user want to use numbering hierarchy, otherwise false. - - - - - Initialize a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(font); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList(font) - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The style. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(PdfNumberStyle.Numeric); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList(PdfNumberStyle.Numeric) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates ordered list using items. - - Items for a list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new PDF list item instance. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(collection); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new PDF list item instance. - Dim collection As New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create Ordered list - Dim list As New PdfOrderedList(collection) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(marker); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The item collection. - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Create new PDF list item instance. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(collection, marker); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Create new PDF list item instance. - Dim collection As New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create Ordered list - Dim list As New PdfOrderedList(collection, marker) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - - - Creates the marker. - - The style of the list marker. - Returns marker with specified style. - - - - Gets or sets marker of the list items. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - True if user want to use numbering hierarchy, otherwise false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - subList.MarkerHierarchy = true; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - subList.MarkerHierarchy = True - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Represents unordered list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Marker for the list. - - - - - Initializes a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates unordered list using items. - - Items for a list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(font); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(font) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The items collection. - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - PdfUnorderedList list = new PdfUnorderedList(collection, marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection, marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The formatted text. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - string text = "PDF\nXlsIO\ndDocIO\nPPT"; - PdfUnorderedList list = new PdfUnorderedList(text); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - Dim text As String = "PDF\nXlsIO\ndDocIO\nPPT"; - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(text) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class - from formatted text that is splitted by new lines. - - The formatted text. - The marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - string text = "PDF\nXlsIO\ndDocIO\nPPT"; - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - PdfUnorderedList list = new PdfUnorderedList(text, marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - Dim text As String = "PDF\nXlsIO\ndDocIO\nPPT"; - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(text, marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates the marker. - - The style marker of the marker. - Returns marker with specified style. - - - - Gets or sets the marker. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Delegate for handling BeginItemLayoutEvent. - - The item that begin layout. - Begin Item Layout arguments. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Delegate for handling EndItemLayoutEvent. - - The item that end layout. - End Item Layout arguments. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Represents begin layout event arguments. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Item that layout. - - - - - The page in which item start layout. - - - - - Initializes a new instance of the class. - - The item that layout. - The page in which item start layout. - - - - Gets the item. - - The item that layout. - - - - Gets the page. - - The page in which item start layout. - - - - Represents end layout event arguments. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Item that layouted. - - - - - The page in which item ended layout. - - - - - Initializes a new instance of the class. - - The item that layout. - The page in which item end layout. - - - - Gets the item that layout. - - The item that layout. - - - - Gets the page in which item ended layout. - - The page in which item ended layout. - - - - Represents the lay outing of tables. - - Class - - - - Cell values of a row being shared by pages. - - - - - The latest text results. - - - - - Current cell width. - - - - - Current page. - - - - - The chached bounds of the current page. - - - - - Holds the current graphics and is used when current page - is not available (e.g. drawing on a graphics). - - - - - Current bounds. - - - - - Stores cell spacing value. - - - - - Holds an array of integers that specify column spanning (horizontal mergin) - - - - - The index of the row dropped to the next page. - - - - - The index of the start column. - - - - - Initializes a new instance of the class. - - The table. - - - - Layouts the table on the specified graphics. - - The graphics. - The location. - - - - Layouts the table on the specified graphics. - - The graphics. - The boundaries. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets the format. - - The format structure passed through parameters. - - PdfLightTableLayoutFormat class instance. - - - - - Gets the layout result. - - The page result. - Table layout result. - - - - Layouts the table part on a page. - - Start row index. - The lay outing parameters. - if set to true the current page is the first one. - Result of the lay outing. - - - - Crops a row to make it fit the starting and ending columns. - - The row. - The cropped row. - - - - Resizes rectangle so that the border will be drawn insize the bounds specified. - - The bounds. - The pen. - - - - - Create Bold style font - - - - - - - Create Regular style font - - - - - - - Create Italic style font - - - - - - - Draws a row. - - The param. - Index of the row. - The row data. - The row bouds. - Height of the row. - if it is header, set to true. - if it is stop, set to true. - Indicator if the row was drawn partly. - - - - Sets the transparency. - - The graphics. - The pen. - - - - Validates the span map. - - - - - Determines whether the specified row is incomplete. - - The results. - - true if the specified results is incomplete; otherwise, false. - - - - - Determines the height of the row. - - The param. - Index of the row. - The row. - The row bouds. - The results. - The cell style. - The height of the row. - - - - Drops lay outing to the next page. - - The results. - The count. - The row. - - - - Returns the width of the cell specified by the index. - - Index of the cell. - The width of the cell. - - - - Reduces the height (or width) according to overlapped and border width value. - - The height. - Width of the border. - if it is overlapped, set to true. - The proper height. - - - - Draws a cell. - - The layout result. - The bounds. - Index of the row. - Index of the cell. - The cell style. - The result of the drawing. - - - - Gets the cell style. - - Index of the row. - if set to true the cell is in header. - The cell style. - - - - Gets the widths. - - The bounds. - An array containing the widhts. - - - - Retrieves the next row. - - Start index of the row. - The param. - The next row. - - - - Gets the alpha channel value. - - The brush. - The alpha channel value. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - The current row. - If true, stop lay outing. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises the before row layout. - - Index of the row. - The cell style. - The arguments modified by the user. - - - - Raises the after row layout. - - Index of the row. - if set to true the row was drawn completely. - The row bouds. - Indicator whether the user stopped lay outing. - - - - Raises the before cell layout. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The cell value. - - - - Raises the after cell layout event. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The value of the cell. - - - - Gets shape element. Read only. - - - - - The last page where the text was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - The index of the first row on the page. - - - - - The index of the last row on the page. - - - - - Represents the result of PdfLightTable which contains bounds and resultant page. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - Class - - - - Holds text layout results for the last row. - - - - - The index of the last row. - - - - - Initializes a new instance of the class. - - The current page. - The current bounds. - Index of the row. - The cell results. - - - - Gets the at the specified index. - - - - - Gets the index of the last row. Read-Only. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - // Gets the last row index - int lastRow = result.LastRowIndex; - //Save the document. - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format) - ' Gets the last row index - Dim lastRow As Integer = result.LastRowIndex - 'Save the document. - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Represents the arguments of BeginPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The bounds of the table. - The page to be drawn. - The starting row to be drawn at first. - - - - Gets the start row. Read-Only. - - The index of the start row. - - - - Represents the arguments of LightTableEndPageLayout Event. - - Class - - - - Initializes a new instance of the class. - - The PdfLightTable layout result. - The starting row to be drawn at first. - The ending row to be drawn at last. - - - - Gets the start row. Read-Only. - - The index of the start row. - - - - Gets the end row. Read-Only. - - The index of the last row. - - - - The Syncfusion.Pdf.Tables namespace contains classes for creating tables. - - - - - Create table by entering the data manually or from an external data source. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - // Add a page. - PdfPage page = document.Pages.Add(); - //Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - //Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - // Assign data source. - pdfLightTable.DataSource = table; - // Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - // Save the document. - document.Save("output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() {"abc", "21", "Male"}) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("output.pdf") - 'Close the document - document.Close(True) - - - - - - Stores current column collection. - - - - - Stores current row collection. - - - - - The table name from the data set. - - - - - Indicates the datasource type. - - - - - Specifies whether to break the last row of the table or not when the space is not enough - - - - - Draw the in the specified with specified graphics ,location and width. - - Graphics context where the element should be printed. - The location of the element. - The width of the table. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, new PointF(0, 0),500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, New PointF(0, 0),500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the with the specified ,x and y coordinates and width. - - Graphics context where the element should be drawn. - The x co-ordinate of the element. - The y co-ordinate of the element. - The width of the table. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10, 500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10, 500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - Draw the in the specified and bounds. - Graphics context where the element should be drawn. - The bounds of the table should be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, new RectangleF(0, 0,500,500)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, New RectangleF(0, 0,500,500)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified and location. - - The page of the table should be drawn. - The x,y coordinates of the table. - The PdfLightTable layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified ,location and . - - The page of the table should be drawn. - The x,y coordinates of the table. - The PdfLightTable layout format. - - The PdfLightTable layout result. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0), layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0), layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified and bounds. - - The page of the table should be drawn. - The bounds of the table. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new RectangleF(0,0,500,500)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New RectangleF(0,0,500,500)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified ,bounds and layout format. - - The page of the table should be drawn. - The bounds of the table. - The PdfLightTable layout format. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new RectangleF(0, 0,500,500), layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New RectangleF(0, 0,500,500), layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified and x, y coordinates. - - The page of the table should be drawn. - The X co-ordinate of the element. - The y coordinate of the element. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - - - - - - Draw the in the specified , x,y coordinates and layout format. - - The page of the table should be drawn. - The x co-ordinate of the element. - The y coordinate of the element. - The PdfLightTable layout format. - The PdfLightTable layout result. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified ,x,y coordinates and width. - - The page of the table should be drawn. - The x co-ordinate of the element. - The y coordinate of the element. - The width of the table. - The PdfLightTable layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, 500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, 500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified ,x,y coordinates,width and layout format. - - The page of the table should be drawn. - The x coordinate of the element. - The y coordinate of the element. - The width of the table. - The PdfLightTable layout format. - The PdfLightTable layout result. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10,10,500, layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10,10,500, layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Apply built-in table style to the table - - enum of PdfLightTableBuiltinStyle - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Apply built-in table style to the table - - enum of PdfLightTableBuiltinStyle - The PdfLightTableBuiltinStyleSettings - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draw the in the specified and x,y coordinates. - - Graphics context where the element should be printed. - The x co-ordinate of the element. - The y co-ordinate of the element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Gets the next row. - - The index. - The array of the strings. - - - - Gets the column captions. - - Column captions - - - - Creates a data source consumer. - - The data source. - The proper data source consumer - - - - Initializes the PdfLightTable data source. - - - - - Creates the columns. - - The filled column collection. - - - - Creates the row. - - The filled row collection. - - - - Called when geting next row. - - Index of the row. - The row data passed by the user. - - - - Called when getting column number. - - The number provided by the user. - - - - Called when getting row number. - - The number provided by the user. - - - - Gets the collection of columns contained in the table.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Get the row collection - PdfRowCollection rows = table.Rows; - // Adding Rows - rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a PDF document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - 'Creating Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - 'Adding Rows - table.Rows.Add(New Object() {"111", "Maxim", "III"}) - 'Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the collection of rows contained in the table.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Get the row collection - PdfRowCollection rows = table.Rows; - // Adding Rows - rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - ' Create a PDF document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - Dim table As PdfLightTable = New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Get the row collection - Dim rows As PdfRowCollection = table.Rows - ' Adding Rows - rows.Add(New Object() {"111", "Maxim", "III"}) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the data source to bind into PdfLightTable. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - Class - Class - Class - - - - Gets or sets the data member which binds the specific data source when there is more than one data source. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the data member - table.DataMember = "ID1"; - table.Style.CellPadding = 16; - //Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - table.DataSource = dataTable - 'Set the data member - table.DataMember = "ID1" - table.Style.CellPadding = 16 - 'Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the data source type of the PdfLightTable. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - //Set the data table - table.DataSource = dataTable; - Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Set the data source - table.DataSource = dataTable - ' Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the style properties in PdfLightTable. - - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Create the font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Alternative cell style - PdfCellStyle altStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.Green); - altStyle.BackgroundBrush = PdfBrushes.DarkGray; - // Table header cell style - PdfCellStyle headerStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.Brown); - headerStyle.BackgroundBrush = PdfBrushes.Red; - //Set the table style - table.Style.AlternateStyle = altStyle; - table.Style.HeaderStyle = headerStyle; - //set the data source - table.DataSource = dataTable; - // Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Create the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Alternative cell style - Dim altStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.Green) - altStyle.BackgroundBrush = PdfBrushes.DarkGray - 'Table header cell style - Dim headerStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.Brown) - headerStyle.BackgroundBrush = PdfBrushes.Red - 'Set the table style - table.Style.AlternateStyle = altStyle - table.Style.HeaderStyle = headerStyle - 'set the data source - table.DataSource = dataTable - 'Draw the table - table.Draw(page.Graphics) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether PdfLightTable should ignore sorting in data table. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //create the page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Disabling sorting - table.IgnoreSorting = true; - //Set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - ' Disabling sorting - table.IgnoreSorting = True - 'Set the data table - table.DataSource = dataTable - 'Draw the table in page - table.Draw(page.Graphics) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets a value indicating whether to raise start row layout event. - - - - - Gets a value indicating whether to raise end row layout event. - - - - - Gets a value indicating whether the start cell layout event should be raised. - - - - - Gets a value indicating whether the end cell layout event should be raised. - - - - - Gets a value indicating the row break is to be made or not. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Set row break. - table.AllowRowBreakAcrossPages = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.GridTable1Light); - //Draw light table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Set row break. - table.AllowRowBreakAcrossPages = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.GridTable1Light) - 'Draw light table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The event raised on starting row lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - The event raised on having finished row lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - The event raised on starting cell lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - The event raised on having finished cell layout. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - The event raised when the next row data is requested. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - The event raised when the column number is requested. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - The event raised when the row number is requested. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - - - - Represents the styles of PdfLightTable. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create Pdf pen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - //Create brush - PdfColor color = new PdfColor(192, 201, 219); - PdfSolidBrush brush = new PdfSolidBrush(color); - //Create alternative cell styles - PdfCellStyle altStyle = new PdfCellStyle(); - altStyle.Font = font; - altStyle.BackgroundBrush = brush; - altStyle.BorderPen = borderPen; - // Create default cell style - PdfCellStyle defStyle = new PdfCellStyle(); - defStyle.Font = font; - defStyle.BackgroundBrush = PdfBrushes.White; - defStyle.BorderPen = borderPen; - // Create header cell style - PdfCellStyle headerStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.DarkBlue); - brush = new PdfSolidBrush(new PdfColor(33, 67, 126)); - headerStyle.BackgroundBrush = brush; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.AlternateStyle = altStyle; - table.Style.DefaultStyle = defStyle; - table.Style.HeaderStyle = headerStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create Pdf pen for drawing border - Dim borderPen As PdfPen = New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - 'Create brush - Dim color As PdfColor = New PdfColor(192, 201, 219) - Dim brush As PdfSolidBrush = New PdfSolidBrush(color) - 'Create alternative cell styles - Dim altStyle As PdfCellStyle = New PdfCellStyle() - altStyle.Font = font - altStyle.BackgroundBrush = brush - altStyle.BorderPen = borderPen - ' Create default cell style - Dim defStyle As PdfCellStyle = New PdfCellStyle() - defStyle.Font = font - defStyle.BackgroundBrush = PdfBrushes.White - defStyle.BorderPen = borderPen - ' Create header cell style - Dim headerStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.DarkBlue) - brush = New PdfSolidBrush(New PdfColor(33, 67, 126)) - headerStyle.BackgroundBrush = brush - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - 'Set the cell styles - table.Style.AlternateStyle = altStyle - table.Style.DefaultStyle = defStyle - table.Style.HeaderStyle = headerStyle - 'Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - PdfLightTableStyle style = new PdfLightTableStyle(); - style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - table.Style = style; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - Dim style As PdfLightTableStyle = New PdfLightTableStyle() - style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - table.Style = style - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the default cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the alternate style which is the style of the odd rows. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - //Create brush - PdfColor color = new PdfColor(192, 201, 219); - PdfSolidBrush brush = new PdfSolidBrush(color); - //Create alternative cell style - PdfCellStyle alternateStyle = new PdfCellStyle(); - alternateStyle.Font = font; - alternateStyle.BackgroundBrush = brush; - alternateStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.AlternateStyle = alternateStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - 'Create brush - Dim color As New PdfColor(192, 201, 219) - Dim brush As New PdfSolidBrush(color) - 'Create alternative cell style - Dim alternateStyle As New PdfCellStyle() - alternateStyle.Font = font - alternateStyle.BackgroundBrush = brush - alternateStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the cell styles - table.Style.AlternateStyle = alternateStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to use rows or column captions for forming header. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the header rows count. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.ShowHeader = true; - table.Style.HeaderRowCount = 2; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.ShowHeader = True - table.Style.HeaderRowCount = 2 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the header cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create header cell style - PdfCellStyle headerStyle = new PdfCellStyle(); - headerStyle.Font = font; - headerStyle.BackgroundBrush = PdfBrushes.White; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.HeaderStyle = headerStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create header cell style - Dim headerStyle As New PdfCellStyle() - headerStyle.Font = font - headerStyle.BackgroundBrush = PdfBrushes.White - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the cell styles - table.Style.HeaderStyle = headerStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to repeat header on each page. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - table.Style.RepeatHeader = true; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - table.Style.RepeatHeader = True - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the header is visible. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the properties - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - table.Style.ShowHeader = true; - table.Style.HeaderRowCount = 2; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the properties - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - table.Style.ShowHeader = True - table.Style.HeaderRowCount = 2 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the space between cells. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - //Set the cell spacing - table.Style.CellSpacing = 10; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - 'Set the cell spacing - table.Style.CellSpacing = 10 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the space inside the cells. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Set the cell padding - table.Style.CellPadding = 8; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Set the cell padding - table.Style.CellPadding = 8 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the cell borders should overlap its neighbor's borders - or be drawn in the cell interior. - - Please, use this property with caution,because it might cause unexpected results - if borders are not the same width and color. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color of the table border. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Add the border pen - table.Style.BorderPen = PdfPens.BlueViolet; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Add the border pen - table.Style.BorderPen = PdfPens.BlueViolet - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Represents the information about the cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.Red; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.Red - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified font,brush and pen. - - The font of the cell text. - the color which fills the cell text. - The color of the cell border. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(font, PdfBrushes.Red, PdfPens.Blue); - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle(font, PdfBrushes.Red, PdfPens.Blue) - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the font of the text. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the string format of the cell text. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which draws the text outlines. - - It should be null for default text representation. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.TextPen = PdfPens.BlueViolet - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which fills the cell text. - - This brush will be used to fill glyphs interior, which is the default. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - 'set the text brush - defaultStyle.TextBrush = PdfBrushes.BlueViolet - 'set the border pen - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which draws the border of the cell. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - 'set the text brush - defaultStyle.TextBrush = PdfBrushes.BlueViolet - 'set the border pen - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which fills the background of the cell. - - It's null by default. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.Red; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.Red - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the border of the PdfLightTable - - - - - Represents the collection of the columns. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - - Add the specified in specified - - The . - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Gets the widths of the columns. - - The total width. - An array containing widths. - - - - Gets the widths of the columns. - - The total width. - The start column. - The end column. - An array containing widths. - - - - Gets the at the specified index.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - //Get the table colum by index. - PdfColumn column = tableColumns[0]; - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - 'Get the table colum by index. - Dim column As PdfColumn = tableColumns(0) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents a single column of the table. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified width. - - The width. - - - - Initializes a new instance of the class with specified column name. - - The name of the column. - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the string format of the column text - - The format of the cell text. - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn("Roll Number"); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Right); - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn("Roll Number") - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Right) - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the width of the column. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn("Roll Number"); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the width - rollNumber.Width = 20; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn("Roll Number") - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the width - rollNumber.Width = 20 - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets name of the column. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents a single row of the table. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The width. - - - - Gets or sets the values which adds to the row. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents the collection of the rows in a PdfLightTable. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - - Adds the specified row into collection. - - The to be added into list. - - - - Gets or sets the values which adds the row into . - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the at the specified index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - //Get the row by index. - PdfRow row = rowCollection[0]; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - //Get the row by index. - Dim row As PdfRow = rowCollection(0) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents as a message deliverer from PdfLightTable class to the user. - - Class - - - - Initializes a new instance of the class with specified message. - - The message to be thrown. - - - - Represents the light table built-in style settings. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the columns in a table, - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the rows in a table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Represents the parameters for PdfLightTable layout. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Creates the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - // Draws the table with the layout format - table.Draw(page, new PointF(0, 0), format); - document.Save("Tables.pdf"); - - - ' Creates a new document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a new table - Dim table As PdfLightTable = New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Creates the layout format - Dim format As PdfLightTableLayoutFormat = New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - format.StartColumnIndex = 1 - format.EndColumnIndex = 2 - ' Draws the table with the layout format - table.Draw(page, New PointF(0, 0), format) - document.Save("Tables.pdf") - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified layout format. - - The layout format. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - PdfLayoutFormat lformat = new PdfLayoutFormat(); - lformat.Break = PdfLayoutBreakType.FitPage; - lformat.Layout = PdfLayoutType.Paginate; - lformat.PaginateBounds = new RectangleF(0, 0, 500, 700); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(lformat); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - Dim lformat As PdfLayoutFormat = New PdfLayoutFormat(); - lformat.Break = PdfLayoutBreakType.FitPage; - lformat.Layout = PdfLayoutType.Paginate; - lformat.PaginateBounds = new RectangleF(0, 0, 500, 700); - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat(lformat) - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Gets or sets the start column index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the end column index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the method that handles StartRowLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when starting a row layout. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - Class - Class - - - - Represents the method that will handle EndRowLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when finishing a row in a layout. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - Class - Class - - - - Represents the method that handles StartCellLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when starts laying out a cell on a page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the method that will handle EndCellLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when finished laying out a cell on a page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the method for handling NextRowEvent of PdfLightTable - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex ) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Represents the method for handling ColumnNumberEvent. - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Represents the method for handling RowNumberEvent - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex ) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - Class - Class - - - - Represents the arguments of StartRowLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - Index of the row. - The cell style. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Gets or sets the cell style. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.CellStyle.TextPen = PdfPens.Red; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.CellStyle.TextPen = PdfPens.Red - End If - End Sub - - - - - - Gets or sets the span map. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Gets or sets a value indicating whether table drawing should stop. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.Cancel = True - End If - End Sub - - - - - - Gets or sets a value indicating whether this row should be ignored. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Skip = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.Skip = True - End If - End Sub - - - - - - Gets or sets a value indicating whether column string format should be ignored. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.IgnoreColumnFormat = true; - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.IgnoreColumnFormat = True - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Sets the minimal height of the row. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Represents the arguments of EndRowLayoutEvent. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - Index of the row. - if set to true the row was drawn completely. - The row bounds. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets a value indicating whether the row was drawn completely - (nothing should be printed on the next page). Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - bool isCompleted = args.LayoutCompleted; - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - Dim isCompleted As Boolean = args.LayoutCompleted - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets or sets a value indicating whether this row should be the last one printed. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets or sets the row bounds. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - //Get row bounds. - RectangleF bounds = args.Bounds; - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - 'Get row bounds. - Dim bounds As RectangleF = args.Bounds - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - The base class for cell layout arguments. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the index of the cell. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - //Get cell index - int cellIndex = args.CellIndex; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - 'Get cell index - Dim cellIndex As Integer = args.CellIndex - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the value of the cell. Read-Only. - - The value might be null or an empty string, - which means that either no text were acquired or all - text was on the previous page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - string text = args.Value; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - Dim text As String = args.Value - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the bounds of the cell. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - RectangleF bounds = args.Bounds; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - Dim bounds As RectangleF = args.Bounds - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the graphics, on which the cell should be drawn. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents arguments of StartCellLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell index. - The bounds of the cell. - The value. - - - - Gets or sets a value indicating whether the value of this cell should be skipped. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - if(args.RowIndex == 2) - { - args.Skip = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - if args.RowIndex =2 Then - args.Skip = True - End If - End Sub - - - - - - Represents arguments of EndCellLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The index of the cell. - The bounds of the cell. - The value. - - - - Represents arguments of the NextRowEvent. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The column count. - Index of the row. - - - - Gets or sets the row data. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Gets the column count. Read-Only. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Gets the index of the row. Read-Only. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Represents the arguments of the ColumnNumberEvent. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Gets or sets the column number. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Represents the arguments of the RowNumberEvent. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Gets or sets the column number. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - - - - Specifies the values where the header should formed from. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - Class - Class - - - - The header is formed from column captions' values. - - - - - The header is formed from rows. - - - - - Specifies the data source type. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - //Set the data table - table.DataSource = dataTable; - Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Set the data source - table.DataSource = dataTable - ' Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - Class - Class - - - - Specifies that the PdfLightTable has been bind to an external data source. - - - - - Specifies that the values are directly bind to the PdfLightTable. - - - - - Specifies the values of the border overlap style. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Cell borders overlap (are drawn using the same coordinates). - - - - - Cell borders are drawn in the cell's interior. - - - - - Specifies PdfGrid built-in table styles. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Specifies the grid to render Plain Table 1 style. - - - - - Specifies the grid to render Plain Table 2 style. - - - - - Specifies the grid to render Plain Table 3 style. - - - - - Specifies the grid to render Plain Table 4 style. - - - - - Specifies the grid to render Plain Table 5 style. - - - - - Specifies the grid to render Grid Table 1 Light style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 1 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 2 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 3 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 4 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 5 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 6 style. - - - - - Specifies the grid to render Grid Table 2 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 3 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 4 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 5 Dark style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 1 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 2 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 3 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 4 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 5 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 6 style. - - - - - Specifies the grid to render Grid Table 6 Colorful style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 1 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 2 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 3 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 4 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 5 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 6 style. - - - - - Specifies the grid to render Grid Table 7 Colorful style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 1 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 2 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 3 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 4 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 5 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 6 style. - - - - - Specifies the grid to render Light Table 1 Light style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 1 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 2 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 3 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 4 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 5 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 6 style. - - - - - Specifies the grid to render Light Table 2 style. - - - - - Specifies the grid to render Light Table 2 - Accent 1 style. - - - - - Specifies the grid to render Light Table 2 - Accent 2 style. - - - - - Specifies the grid to render Light Table 2 - Accent 3 style. - - - - - Specifies the grid to render Light Table 2 - Accent 4 style. - - - - - Specifies the grid to render Light Table 2 - Accent 5 style. - - - - - Specifies the grid to render Light Table 2 - Accent 6 style. - - - - - Specifies the grid to render Light Table 3 style. - - - - - Specifies the grid to render Light Table 3 - Accent 1 style. - - - - - Specifies the grid to render Light Table 3 - Accent 2 style. - - - - - Specifies the grid to render Light Table 3 - Accent 3 style. - - - - - Specifies the grid to render Light Table 3 - Accent 4 style. - - - - - Specifies the grid to render Light Table 3 - Accent 5 style. - - - - - Specifies the grid to render Light Table 3 - Accent 6 style. - - - - - Specifies the grid to render Light Table 4 style. - - - - - Specifies the grid to render Light Table 4 - Accent 1 style. - - - - - Specifies the grid to render Light Table 4 - Accent 2 style. - - - - - Specifies the grid to render Light Table 4 - Accent 3 style. - - - - - Specifies the grid to render Light Table 4 - Accent 4 style. - - - - - Specifies the grid to render Light Table 4 - Accent 5 style. - - - - - Specifies the grid to render Light Table 4 - Accent 6 style. - - - - - Specifies the grid to render Light Table 5 Dark style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 1 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 2 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 3 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 4 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 5 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 6 style. - - - - - Specifies the grid to render Light Table 6 Colorful style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 1 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 2 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 3 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 4 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 5 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 6 style. - - - - - Specifies the grid to render Light Table 7 Colorful style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 1 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 2 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 3 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 4 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 5 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 6 style. - - - - - Specifies the grid to render Table Grid Light style. - - - - - Specifies the grid to render Table Grid style. - - - - - Specified PdfLightTable built-in table styles - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Specifies the table to render Plain Table 1 style. - - - - - Specifies the table to render Plain Table 2 style. - - - - - Specifies the table to render Plain Table 3 style. - - - - - Specifies the table to render Plain Table 4 style. - - - - - Specifies the table to render Plain Table 5 style. - - - - - Specifies the table to render Grid Table 1 Light style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 1 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 2 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 3 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 4 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 5 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 6 style. - - - - - Specifies the table to render Grid Table 2 style. - - - - - Specifies the table to render Grid Table 2 - Accent 1 style. - - - - - Specifies the table to render Grid Table 2 - Accent 2 style. - - - - - Specifies the table to render Grid Table 2 - Accent 3 style. - - - - - Specifies the table to render Grid Table 2 - Accent 4 style. - - - - - Specifies the table to render Grid Table 2 - Accent 5 style. - - - - - Specifies the table to render Grid Table 2 - Accent 6 style. - - - - - Specifies the table to render Grid Table 3 style. - - - - - Specifies the table to render Grid Table 3 - Accent 1 style. - - - - - Specifies the table to render Grid Table 3 - Accent 2 style. - - - - - Specifies the table to render Grid Table 3 - Accent 3 style. - - - - - Specifies the table to render Grid Table 3 - Accent 4 style. - - - - - Specifies the table to render Grid Table 3 - Accent 5 style. - - - - - Specifies the table to render Grid Table 3 - Accent 6 style. - - - - - Specifies the table to render Grid Table 4 style. - - - - - Specifies the table to render Grid Table 4 - Accent 1 style. - - - - - Specifies the table to render Grid Table 4 - Accent 2 style. - - - - - Specifies the table to render Grid Table 4 - Accent 3 style. - - - - - Specifies the table to render Grid Table 4 - Accent 4 style. - - - - - Specifies the table to render Grid Table 4 - Accent 5 style. - - - - - Specifies the table to render Grid Table 4 - Accent 6 style. - - - - - Specifies the table to render Grid Table 5 Dark style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 1 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 2 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 3 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 4 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 5 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 6 style. - - - - - Specifies the table to render Grid Table 6 Colorful style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 1 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 2 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 3 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 4 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 5 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 6 style. - - - - - Specifies the table to render Grid Table 7 Colorful style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 1 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 2 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 3 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 4 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 5 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 6 style. - - - - - Specifies the table to render Light Table 1 Light style. - - - - - Specifies the table to render Light Table 1 Light - Accent 1 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 2 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 3 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 4 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 5 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 6 style. - - - - - Specifies the table to render Light Table 2 style. - - - - - Specifies the table to render Light Table 2 - Accent 1 style. - - - - - Specifies the table to render Light Table 2 - Accent 2 style. - - - - - Specifies the table to render Light Table 2 - Accent 3 style. - - - - - Specifies the table to render Light Table 2 - Accent 4 style. - - - - - Specifies the table to render Light Table 2 - Accent 5 style. - - - - - Specifies the table to render Light Table 2 - Accent 6 style. - - - - - Specifies the table to render Light Table 3 style. - - - - - Specifies the table to render Light Table 3 - Accent 1 style. - - - - - Specifies the table to render Light Table 3 - Accent 2 style. - - - - - Specifies the table to render Light Table 3 - Accent 3 style. - - - - - Specifies the table to render Light Table 3 - Accent 4 style. - - - - - Specifies the table to render Light Table 3 - Accent 5 style. - - - - - Specifies the table to render Light Table 3 - Accent 6 style. - - - - - Specifies the table to render Light Table 4 style. - - - - - Specifies the table to render Light Table 4 - Accent 1 style. - - - - - Specifies the table to render Light Table 4 - Accent 2 style. - - - - - Specifies the table to render Light Table 4 - Accent 3 style. - - - - - Specifies the table to render Light Table 4 - Accent 4 style. - - - - - Specifies the table to render Light Table 4 - Accent 5 style. - - - - - Specifies the table to render Light Table 4 - Accent 6 style. - - - - - Specifies the table to render Light Table 5 Dark style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 1 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 2 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 3 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 4 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 5 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 6 style. - - - - - Specifies the table to render Light Table 6 Colorful style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 1 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 2 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 3 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 4 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 5 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 6 style. - - - - - Specifies the table to render Light Table 7 Colorful style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 1 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 2 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 3 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 4 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 5 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 6 style. - - - - - Specifies the table to render Table Grid Light style. - - - - - Specifies the table to render Table Grid style. - - - - - Represents DataSource for tables - - - - - Data table - - - - - Rows count - - - - - Columns count - - - - - Data column - - - - - An array - - - - - Use sorting data - - - - - Cached rows - - - - - Initializes a new instance of the PdfDataSource class - - - - - Initializes a new instance of the PdfDataSource class using DataTable - - Data table - - - - Initializes a new instance of the PdfDataSource class using DataSet - - Data set - Table name - - - - Initializes a new instance of the PdfDataSource class using DataView - - Data View - - - - Initializes a new instance of the PdfDataSource class using DataColumn - - Data column - - - - Initializes a new instance of the PdfDataSource class using array - - Source array - - - - Gets row of data for visible columns - - The index - An array of text values or null indicating reaching the end. - - - - Verify is the column read only - - The index - Is current column read only - - - - Gets Column Mapping type - - The index - Column mapping type - - - - Gets Column Data type - - The index - Column data type - - - - Get column default value - - The index - Column default value - - - - Gets whether column allow DBNull - - The index - Allow DBNull - - - - Gets array base type - - The array - Base type for array - - - - Gets columns names - - Columns names - - - - Gets columns captions. - - Columns captions - - - - Verify is the input array valid - - Array to check - Columns count - Is array valid - - - - Set data Table - - Data table - - - - Handles the RowDeleted event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Handles the RowChanged event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Handles the ColumnChanged event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Refreshes the cache. - - - - - Gets visible columns count - - Returns visible columns count - - - - Convert input index to real index - - The index - Gets real table index - - - - Gets row from array - - The array - The index - Returns array of values - - - - Gets row from data column - - The column - The index - Returns array of values - - - - Gets row from table - - The Data Table - The index - Returns array of values - - - - Gets table form DataSet - - The DataSet - Table name - Returns table - - - - Gets table from DataView - - The DataView - Returns table - - - - True if use data sorting, otherwise false - - - - - Gets rows counts - - - - - Gets column count - - - - - Gets visible columns names - - - - - Gets visible columns captions - - - - - Represents the Artifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the tag for the element - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the order for the element - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout); - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout) - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - represents the attachment for artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout,new PdfAttached(PdfEdge.Left)); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New PdfAttached(PdfEdge.Left)) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - attachment for artifact - Subtype of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout, new PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - Bounding box of the artifact - attachment for the artifact - Subtype of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout, new RectangleF(0, 0, 100, 100), new PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New RectangleF(0, 0, 100, 100), New PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the bounding box for the artifact. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the artifact type - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the subtype of the artifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set artifact subtype. - artifact.SubType = PdfArtifactSubType.Footer; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set artifact subtype. - artifact.SubType = PdfArtifactSubType.Footer - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the attachment for the artifact. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the type of the artifact - - - - - Represents the logically attached artifcat on the page. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - page edge - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - edge of the page - edge of the page - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left, PdfEdge.Right); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left, PdfEdge.Right) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - left edge of the page - right edge of the page - top edge of the page - bottom edge of the page - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left, PdfEdge.Right, PdfEdge.Top, PdfEdge.Bottom); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left, PdfEdge.Right, PdfEdge.Top, PdfEdge.Bottom) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Set edges for the page - - the page edges - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set the artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - PdfEdge[] edges = { PdfEdge.Right, PdfEdge.Top }; - //Create new instance for the PDF attached. - PdfAttached attached = new PdfAttached(PdfEdge.Left); - attached.SetEdge(edges); - //Set the attachement for the artifact. - artifact.Attached = attached; - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - Dim edges As PdfEdge() = {PdfEdge.Right, PdfEdge.Top} - 'Create new instance for the PDF attached. - Dim attached As PdfAttached = New PdfAttached(PdfEdge.Left) - attached.SetEdge(edges) - 'Set the attachement for the artifact. - artifact.Attached = attached - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets a value indicating top page edge - - - - - Gets a value indicating left page edge - - - - - Gets a value indicating bottom page edge - - - - - Gets a value indicating right page edge - - - - - Represents the edges of the page. - - - - - Indicates the top edge of the page - - - - - Indicates the bottom edge of the page - - - - - Indicates the left edge of the page - - - - - Indicates the right edge of the page. - - - - - Represents the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initialize the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initialize the Structure element - - tag type - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the abbrevation for the structure element. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the actual text for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the alternate text for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the language for all text in the structure element - - - - - Gets or sets the logical reading order for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the parent for the element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - //Set parent for structure element. - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tag type for the element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //Set the tag type. - structElement.TagType = PdfTagType.HeadingLevel1; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'Set the tag type. - structElement.TagType = PdfTagType.HeadingLevel1; - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the title for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the subtype of the artifact - - - - - Represents the tag type - - - - - - - - - - - - - - Local variable to store the whitepoint value of CalGray colorspace. - - - - - Local variable to store the blackpoint value of CalGray colorspace. - - - - - Local variable to store the gamma value of CalGray colorspace. - - - - - Gets the number of components for the CalGray Colorspace. - - - - - Gets or sets the Whitepoint value for the CalGray Colorspace. - - - - - Gets or sets the Blackpoint value for the CalGray Colorspace. - - - - - Gets or sets the Gamma value for the CalGray Colorspace. - - - - - - - - Local variable to store the whitepoint value of CalRgb colorspace. - - - - - Local variable to store the blackpoint value of CalRgb colorspace. - - - - - Local variable to store the gamma value of CalRgb colorspace. - - - - - Local variable to store the matrix value of CalRgb colorspace. - - - - - Gets the number of components for the CalRgb Colorspace. - - - - - Gets or sets the Whitepoint value for the CalRgb Colorspace. - - - - - Gets or sets the Blackpoint value for the CalRgb Colorspace. - - - - - Gets or sets the Gamma value for the CalRgb Colorspace. - - - - - Gets or sets the Matrix value for the CalRgb Colorspace. - - - - - - - - - - - Gets the number of components for the DeviceCMYK Colorspace. - - - - - - - - Gets the number of components for the DeviceGray Colorspace. - - - - - - - - Local variable to store the AlternateColorspace value of DeviceN colorspace. - - - - - Local variable to store the function value of DeviceN colorspace. - - - - Set the Colorspace value to local variable from Pdfarray - ColorspaceArray - - - - Get the Colorspace value from Pdfarray - ColorspaceArray - Colorspace - - - - Gets the number of components for the DeviceN Colorspace. - - - - - Gets or set the AlternateColorspace value for DeviceN colorspace - - - - - Gets or set the Function value for DeviceN colorspace - - - - - - - - Gets the number of components for the DeviceRgb Colorspace. - - - - - - - - Local variable to store the IccProfile value of ICCBased colorspace. - - - - - Gets or sets the IccProfile value for the ICCBased Colorspace. - - - - - Gets the Components for the IccBased Alternate Colorspace. - - - - - - - - Local variable to store the N value of IccProfile. - - - - - Local variable to store the alternate colorspace. - - - - - Local variable to store the IccProfile value of IccBased colorspace. - - - - - Local variable to store the matrix value of CalRgb colorspace. - - - - - Gets the Alternate colorspace of IccBased colorspace. - - - - - Gets or sets the N value for the ICCBased Colorspace. - - - - - - - - Local variable to store the BaseColorspace value of Indexed colorspace. - - - - - Local variable to store the Maximum valid index value of Indexed colorspace. - - - - - Local variable to store the Lookup parameter value of Indexed colorspace. - - - - - Get the color value of Indexed colorspace - - Index value for color - Color - - - - Set the Indexed colorspace data to local variable - - Index value Array - - - - - Get the Color - - Color component - Color - - - - Get the Base colorspace of Indexed color space - - Index value Array - Colorspace - - - - Get the Lookup data of Indexed colorspace - - Index value Array - - - - - Get the colorspace of Base colorspace - - Colorspace - - - - Get the Decoded stream of Type0 data - - Type0 stream - Decoded Byte - - - - Decode the FlateDecode stream - - Type0 encoded stream - Memory stream - - - - Gets the number of components for the Indexed Colorspace. - - - - - Gets the DefaultBrush value for the Indexed BaseColorspace. - - - - - Gets or sets the BaseColorspace value for the Indexed Colorspace. - - - - - Gets or sets the Maximum valid index value for the Indexed Colorspace. - - - - - Gets or sets the Lookup parameter value for the Indexed Colorspace. - - - - - - - - Local variable to store the whitepoint value of Labcolorspace. - - - - - Local variable to store the blackpoint value of Labcolorspace. - - - - - Local variable to store the range value of Labcolorspace. - - - - - Gets the number of components for the Labcolorspace. - - - - - Gets or sets the Whitepoint value for the Labcolorspace. - - - - - Gets or sets the Blackpoint value for the Labcolorspace. - - - - - Gets or sets the Range value for the Labcolorspace. - - - - - - - - Local variable to store the Lookup Data of Indexed colorspace - - - - - Load the Lookup stream data of Indexed color space - - Lookup stream data - - - - - Load the Lookup byte string data of Indexed colorspace - - Byte string - - - - - Load the Lookup data reference of Indexed color space - - Reference of Lookup data - - - - - Gets the Lookup Data of Indexed colorspace - - - - - - - - Local variable to store the PatternType value of Pattern colorspace. - - - - - Local variable to store the AlternateColorspace value of Pattern colorspace. - - - - - Local variable to store the PatternMatrix value of Pattern colorspace. - - - - - Local variable to store the Pattern value of Pattern colorspace. - - - - - Gets or sets the AlternateColorspace value for the Pattern Colorspace. - - - - - Gets or sets the PatternMatrix value for the Pattern Colorspace. - - - - - Gets or sets the PatternType value for the Pattern Colorspace. - - - - - - - - Local variable to store the Alternate colorspace value of Seperation colorspace. - - - - - Local variable to store the Function value of Seperation colorspace founction. - - - - Get the color value from string value - string Array - Color - - - - Convert the string array to double array - - string Array - Double array - - - Get the color value from bytes - string Array - Offset Value - Color - - - - Set the Seperation colorspace data to local variable - - seperation value Array - - - - - Get the Seperation colorspace Alternate colorspace from array value - - seperation value Array - Alternate colorspace - - - - Gets the number of components for the Seperation Colorspace. - - - - - Gets or sets the Alternate colorspace value for the Seperation Colorspace. - - - - - Gets or sets the Function value for the Seperation Colorspace. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Contains definition for sorting the enumerator in ascending order - - Type of return value - Delegate - Used to compare two object - If it is set to true, enumerator is sorted in descending order other it is sorted in ascending order - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Metafile - - The page to be converted into image - Metafile - - - - Exports the specified page as Image with respect to dpi specified. - - The PdfPageBase to be converted into image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified page as Image with custom resolution - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - Whether need to keep the aspect ratio of the page - Returns the image with custom size - - - - Exports the specified pages as Image - - The PdfPageBase to be converted into image - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size and resolution - - - - Returns the page number and capured terms found in the page - - List of terms to be searched - Search results - Returns true if any matches found - - - - Returns the page number and capured terms found in the page - - List of terms to be searched - Search results - Returns true if any matches found - - - - Executes each of the provided actions, possibly in parallel. - - An array of System.Action to execute. - - - - Searches the text at a page - - Index of the page - Text to be searched - Matching texts - Returns the matching texts - - - - Returns the page number and rectangle postions of the text matchs found in the page - - The text to be searched - Holds the page number and rectangle positions of the text matches - - - - Returns the rectangle postions of the text matches - - The text which is to be searched - - - - - - Represents a text search item - - - - - Initialises a new instance of TextSearchItem - - - - - Defines the constants that specify the option for text search. - - - - - searches words with no options. - - - - - searches whole words only but not case sensitive. - - - - - Searches words with case sensitive. - - - - - Brush to stroke the text - - - - - Bounds of the text - - - - - - - - - - - Gets or sets a value of the StrokingColorspace - - - - - Gets or sets a value of the NonStrokingColorspace - - - - - Gets or sets a value of the StrokingBrush - - - - - Gets or sets a value of the NonStrokingBrush - - - - - - - - Set the Stroking colorspace of current graphics state - - current colorspace value - - - - - Set the Non Stroking colorspace of current graphics state - - current colorspace value - - - - - Set the Non Stroking RGB color of current graphics state brush - - color value of RGB - - - - - Set the Non Stroking CMYK color of current graphics state brush - - color value of CMYK - - - - - Set the Non Stroking Gray color of current graphics state brush - - color value of Gray - - - - - Set the Stroking RGB color of current graphics state brush - - color value of RGB - - - - - Set the Stroking CMYK color of current graphics state brush - - color value of CMYK - - - - - Set the Stroking Gray color of current graphics state brush - - color value of Gray - - - - - Set the Stroking of current graphics state brush - - color value - - - - - Set the Non Stroking of current graphics state brush - - color value - - - - - Determining valid email address - - email address to validate - true is valid, false if not valid - - - - Calculates the height of text. - - - - - Cleared the collections - - - - - TODO: Can we use PdfMargins class instead of this ? - - - - - - - - - - Renders the Text to the panel - - graphics element - location in which the graphics is to be drawn - - - - Renders the Text to the panel - - graphics element - location in which the graphics is to be drawn - - - - Removes the escape sequence characters in the given text - - text with the escape sequence - Text without escape sequence - - - - - - - The searched text. - - - - - the color of the text - - - - - page Number - - - - - Rectangle bounds of the searched text. - - - - - - - - Parse the annotation properties within a page - - Annotation properties - The specific page in which annotations needs to be added - Zoom factor need to be considered while drawing the annotation rectangle - - - - Calculates the annotation rectangle according to the zoom values. - - The specific page in which annotations needs to be added - Represents the annotation rectangle - - - - - - - - - Include the URL annotation rectangles with the specific page properties - - The specific page in which annotations needs to be added - Represents the annotation properties such as rectangle,location and URI - - - - Include the text rectangles with the specific page properties - - The specific page in which text search needs to be performed - Represents the annotation properties such as rectangle,location and URI - - - - Calculates the annotation rectangle according to the zoom values. - - The specific page in which annotations needs to be added - Represents the annotation rectangle - Zoom factor need to be considered - Drawing panel is true or false is need to be considered - - - - Searches the text at a page - - Index of the page - Text to be searched - Matching texts - Returns the matching texts - - - - Represents the annotation with associated within a page. - - - - - - Represents the URLS within a page. - - - - - Represents the URLS within a page. - - - - - Represents the Rectangle position of the matching text. - - - - - - - - - - - Local variable to store the Domain value of Function - - - - - Local variable to store the Range value of Function - - - - - Local variable to store the dictionary of Function - - - - - Create the function type from dictionary - - Array - Function - - - - Color transfer function - - Input color component value - Double array - - - - Extract the Input Data - - Input data - Double array - - - - Extract the Output Data - - Output data - Double array - - - - - - Gets or sets the Domain value of Function. - - - - - Gets or sets the Range value of Function. - - - - - - - - Local variable to store the BitsPerSample of Type0 - - - - - Local variable to store the Order of Type0 - - - - - Local variable to store the Size of Type0 - - - - - Local variable to store the Encode value of Type0 - - - - - Local variable to store the Decode value of Type0 - - - - - Local variable to store the sample value of Type0 - - - - - Local variable to store the Output value count of Type0 - - - - - Local variable to store the Filter of Type0 Data - - - - - Load the Type0 function stream to local variable - - Type0 Data - - - - - Execute the Type0 function - - Input Data - Color values - - - - - - Get the index of data - - Data - Index - - - - Get the Decoded stream of Type0 data - - Type0 stream - Decoded Byte - - - - Decode the FlateDecode stream - - Type0 encoded stream - Memory stream - - - - Gets or sets the BitsPerSample value of Type0 function. - - - - - Gets or sets the Filter value of Type0 function. - - - - - Gets or sets the Order value of Type0 function. - - - - - Gets or sets the Decode value of Type0 function. - - - - - Gets or sets the Encode value of Type0 function. - - - - - Gets or sets the Size value of Type0 function. - - - - - - - - Local variable to store the C0 value of Type2 function - - - - - Local variable to store the C1 value of Type2 function - - - - - Local variable to store the N value of Type2 function - - - - - Local variable to store the Functions resources value of Type2 function - - - - - Perform the Type0 function - - Input Data - Color values - - - - Perform the Type0 function of Single input data - - Single input data - outputData - - - - Perform the ExponentialInterpolation function - - value - value - value - result - - - - Gets or sets the Function resource value of Type2 function. - - - - - Gets or sets the C0 value of Type2 function. - - - - - Gets or sets the C1 value of Type2 function. - - - - - Gets or sets the N value of Type2 function. - - - - - Gets the output element length - - - - - - - - Local variable to store the Encode value of Type3 function - - - - - Local variable to store the Bounds value of Type3 function - - - - - Local variable to store the Functions value of Type3 function - - - - - Perform the Type4 function - - Input Data - Color values - - - - Gets or sets the Encode value of Type3 function. - - - - - Gets or sets the Bounds value of Type3 function. - - - - - Gets or sets the Function value of Type4 function. - - - - - - - - Local variable to store the Post Script Stream - - - - - Local variable to store the Filter type of Post Script - - - - - Stack pointer - - - - - List of Post Script Operator - - - - - Stack value of Post Script Data - - - - - Operator type array of Post Script Operator - - - - - Current operator type value - - - - - Load the Type4 function stream to local variable - - Type4 Data - - - - - Get the Decoded stream of Type4 function - - Type0 Data - - - - - Perform the Type4 function - - Input Data - Color values - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Gets the output element value length - - - - - Gets or sets the Filter value of Type4 function stream. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents custom Schema. - - - - - Represents Xmp Schema. - - - - - Base class for the xmp entities. - - - - - Parent node for this entity. - - - - - Prefix of the entity namespace. - - - - - Local name of the entity. - - - - - Uri of the namespace. - - - - - Initializes a new instance of the class. - - The parent. - The prefix. - Name of the local. - The namespace URI. - - - - Initializes object. - - - - - Checks whether entity already exists in the parent. - - True - if exists, False otherwise. - - - - Gets value indicating whether we have to suspend initialization. - - Value indicating whether we have to suspend initialization. - - - - Creates entity in the parent. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Changes parent of the entity. - - New Xml parent. - - - - Gets Xml data of the entity. - - - - - Gets a value indicating whether this is exists. - - true if exists; otherwise, false. - - - - Gets parent xml node for the entity. - - - - - Gets namespace prefix of the entity. - - - - - Gets name of the entity's tag. - - - - - Gets URI of the entity's namespace. - - - - - Gets a value indicating whether [suspend initialization]. - - - - - Name of the schema tag. - - - - - Xpath to the Description element. - - - - - Parent XmpMetadata. - - - - - Hashtable of the properties. - - - - - Creates new object. - - Parent XmpMetadata. - - - - Creates schema xml. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Creates simple property. - - Name of the property. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Xmp property instance. - - - - Creates xmp array. - - Name of the array. - Type of the array. - Created xmp array. - - - - Gets xmp array. - - Name of the array. - Type of the array. - Xmp array. - - - - Creates xmp lang array. - - Name of the array. - Created xmp array. - - - - Gets xmp lang array. - - Name of the array. - Xmp array. - - - - Gets the structure. - - The name. - The type. - - - - - Creates the structure. - - The name. - The type. - Structure object. - - - - Creates the structure. - - The type of the structure. - Structure object. - - - - Gets type of the schema. - - - - - Gets schema prefix. - - - - - Gets name (URI) of the schema. - - - - - Gets parent XmpMetadata. - - - - - Gets the boolen result key value at present or not - - - - - - - Initializes a new instance of the class. - - Parent XmpMetadata. - The XML namespace. - The namespace URI. - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - To remove custom object both XMP and customschema - - - - - - To get custom prefix xml node from loaded PDF XMP - - - - - - To set the loaded custom prefix XMP to current XMP - - - - - Sets the xmp property. - - - - - Gets CustomSchema dictionary - - - - - Gets type of the schema. - - - - - Gets schema prefix. - - - - - Gets name (URI) of the schema. - - - - - Enumerates types of the xmp structure. - - - - - A structure containing dimensions for a drawn object. - - - - - A structure containing the characteristics of a font used in a document. - - - - - A structure containing the characteristics of a Coloring (swatch) used in a document. - - - - - A thumbnail image for a file. - - - - - Job structure. - - - - - Enumerates types of the xmp schema. - - - - - Dublin Core Schema. - - - - - Basic Schema. - - - - - Rights Management Schema. - - - - - Basic Job Ticket Schema. - - - - - Paged Text Schema. - - - - - Adobe PDF Schema. - - - - - Custom schema. - - - - - Types of the xmp arrays. - - - - - Unknown array type. - - - - - Unordered array. - - - - - Ordered array. - - - - - Alternative array. - - - - - The Syncfusion.Pdf.Xmp namespace contains classes to create, process metadata for documents. - - - - - Represents Xmp array. - - - - - Base class for the arrays. - - - - - Base class for the Xmp types. - - - - - Parent Xmpmetadata. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Creates entity in the parent. - - - - - Gets parent XmpMetadata. - - - - - Name of the array item tag. - - - - - Initializes a new instance of the class. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Creates entity in the parent. - - - - - Gets list of the array items. - - List of the array items. - - - - Gets prefix of the array depending on the array type. - - prefix - - - - Gets count of the items in the collection. - - Count of the items in the collection. - - - - Gets count of the items in the collection. - - - - - Gets type of the collection. - - - - - Gets items container element. - - - - - Default date format. - - - - - Type of the array. - - - - - Initializes a new instance of the class. - - The XMP. - The parent. - The prefix. - Name of the local. - The namespace URI. - The type. - - - - Adds string value to the array. - - Value to be added to the array. - - - - Adds integer value to the array. - - Value to be added to the array. - - - - Adds float value to the array. - - Value to be added to the array. - - - - Adds Date to the array. - - Value to be added to the array. - - - - Adds Date to the array. - - Value to be added to the array. - String format of the date. - - - - Adds an XMP structure. - - The structure. - - - - Creates array item element. - - XmlElement of the array item. - - - - Returns array of the array values. - - Array of the array values. - - - - Changes parent of the entity. - - New entity parent. - Xmp entity. - - - - Gets array of the array values. - - - - - Gets type of the array. - - - - - Represents Xmp Alt Lang array. - - - - - Default language name. - - - - - Language attribute. - - - - - Creates new object. - - Parent XmpMetadata. - Parent XmlElement of the array. - Prefix of the array. - Name of the tag. - Namespace URI. - - - - Adds item to the array. - - Language code. - Text value. - - - - Creates entity in the parent. - - - - - Creates array item element. - - Language code. - XmlElement of the array item. - - - - Searches for a item with the specified language. - - Language name. - Item with the specified language. - - - - Gets or sets the default text. - - The default text. - - - - Gets or sets the with the specified lang. - - value - - - - Gets type of the lang array. - - - - - Represents XMP metadata of the document. - - - - - Xpath for the RDF element. - - - - - Extensible Markup Language Namespace prefix. - - - - - Namespace unique resource identifier for the xmlns attribute. - - - - - Xml prefix. - - - - - Namespace uri for the xml namespace. - - - - - Uri of the Resource Description Framework namespace. - - - - - Prefix of the PDF namespace. - - - - - Start packet. - - - - - Namespace of the xmpmeta tag. - - - - - End packet. - - - - - Uri of the Resource Description Framework PDF/A namespace. - - - - - Uri of the Extensible Authoring Publishing namespace. - - - - - Uri of the Adobe PDF schema namespace. - - - - - Uri of the Dublin Core schema namespace. - - - - - Uri of the Custom Schema namespace - - - - - XmlDocument containing xmp data. - - - - - Namespace manager. - - - - - Dublin Core Schema. - - - - - Dublin Core Schema. - - - - - Basic Job Ticket Schema. - - - - - Basic Schema. - - - - - Rights Management Schema. - - - - - Indicates PDFSchema. - - - - - Custom Schema - - - - - PdfStream container. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The XMP. - - - - Loads XMP from the XML. - - XMP data in XMLDocument. - If there was any data in this XMP, it will be replaced by the data from the XML. - - - - Adds schema to the XMP in XML format. - - XMP schema in XML format. - If XMP already contains such schema - there will be two equal schemas at the xmp. - - - - Initializes a packet of the XMP. - - - - - Initializes stream. - - - - - Creates packet element. - - - - - Creates xmpmeta element. - - - - - Creates Resource Description Framework element. - - - - - Creates a Dublin core containers. - - - - - Creates packet element. - - - - - Resets current xmp metadata. - - - - - Imports all namespaces to the namespace manager. - - Current element. - Namespace Manager. - - - - Creates element. - - Name of the element. - Created element. - - - - Creates element. - - Prefix of the element. - Local name of the element. - Namespace URI. - Created element. - - - - Creates attribute. - - Name of the attribute. - Value of the attribute. - Created XmlAttribute. - - - - Creates attribute. - - Prefix of the attribute. - Name of the attribute. - Namespace Uri. - Value of the attribute. - Created XmlAttribute. - - - - Adds namespace. - - Namespace prefix. - Namespace Uri. - Uri of the namespace. - - - - Raises before stream saves. - - Sender of the event. - Event data. - - - - Raises after stream saves. - - Sender of the event. - Event data. - - - - Gets Dublin Core Schema. - - - - - Gets Dublin Core Schema. - - - - - Gets Basic Job Ticket Schema. - - - - - Gets Basic Schema. - - - - - Gets Rights Management Schema. - - - - - Gets a schema specifying properties used with Adobe PDF documents. - - - - - Gets Custom Schmea - - - - - Gets XMP data in XML format. - - - - - Gets namespace manager of the Xmp metadata. - - - - - Gets xmpmeta element of the packet. - - - - - Gets RDF element of the packet. - - - - - Gets the element. - - - - - - Represents simple Xmp type. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Sets bool value to the object. - - Bool value. - - - - Gets boolean value. - - Boolean value. - - - - Sets real value to the object. - - Real value. - - - - Gets real value. - - Real value. - - - - Sets int value to the object. - - Int value. - - - - Gets int value. - - Int value. - - - - Sets unique resource identifier value to the object. - - Uri value. - - - - Gets unique resource identifier value. - - Uri value. - - - - Sets DateTime value to the object. - - DateTime value. - - - - Gets DateTime value. - - DateTime value. - - - - Creates entity in the parent. - - - - - Gets or sets value of the instance. - - - - - Utility class. - - - - - False string. - - - - - True string. - - - - - Real pattern. - - - - - Default date format. - - - - - Private constructor. - - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves boolean value from the string. - - String representation of the boolean value. - Boolean value from the string. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Float value from the string. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Int value from the string. - - - - Sets unique resource identifier value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Uri value from the string. - - - - Sets DateTime value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Uri value from the string. - - - - Sets an XML value. - - The parent. - The child. - - - - Removes all childrens from the - - Node element. - - - - Represents Basic Job Ticket Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets references an external job management file for a job - process in which the document is being used. Use of job - names is under user control. Typical use would be to - identify all documents that are part of a particular job or - contract. - - - - - Represents Basic Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets an unordered array specifying properties that were - edited outside the authoring application. - - - - - Gets an unordered array of text strings that unambiguously - identify the resource within a given context. An array - item may be qualified with xmpidq:Scheme to denote - the formal identification system to which that identifier - conforms. - - - - - Gets or sets a word or short phrase that identifies a document as a - member of a user-defined collection. Used to organize - documents in a file browser. - - - - - Gets or sets a short informal name for the resource. - - - - - Gets or sets The base URL for relative URLs in the document - content. If this document contains Internet links, and - those links are relative, they are relative to this base - URL. - - - - - Gets or sets The name of the first known tool used to create the - resource. If history is present in the metadata, this value - should be equivalent to that of xmpMM:History�s - softwareAgent property. - - - - - Gets or sets the date and time the resource was originally created. - - - - - Gets or sets the date and time that any metadata for this resource - was last changed. It should be the same as or more - recent than xmp:ModifyDate. - - - - - Gets sets the date and time the resource was last modified. - - - - - Gets an alternative array of thumbnail images for a file, - which can differ in characteristics such as size or image - encoding. - - - - - Gets a number that indicates a document�s status relative to - other documents, used to organize documents in a file - browser. Values are user-defined within an application defined range. - - - - - Represents Dublin Core Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Mime-Type of the document. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Initializes object. - - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets contributors to the resource (other than the authors). - - - - - Gets or sets the extent or scope of the resource. - - - - - Gets the authors of the resource (listed in order of precedence, if - significant). - - - - - Gets date(s) that something interesting happened to the resource. - - - - - Gets or sets a textual description of the content of the resource. Multiple - values may be present for different languages. - - - - - Gets or sets the unique identifier of the resource. - - - - - Gets publishers. - - - - - Gets relationships to other documents. - - - - - Gets informal rights statement, selected by language. - - - - - Gets or sets the unique identifier of the work from which this resource was derived. - - - - - Gets or sets an unordered array of descriptive phrases or keywords that - specify the topic of the content of the resource. - - - - - Gets the title of the document, or the name given to the resource. - Typically, it will be a name by which the resource is - formally known. - - - - - Gets a document type; for example, novel, poem, or working - paper. - - - - - Represents Paged Text Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets the size of the largest page in the document (including - any in contained documents). - - - - - Gets or sets the number of pages in the document (including any in - contained documents). - - - - - Gets an unordered array of fonts that are used in the - document (including any in contained documents). - - - - - Gets an unordered array of fonts that are used in the - document (including any in contained documents). - - - - - Gets an ordered array of colorants (swatches) that are used - in the document (including any in contained - documents). - - - - - This schema specifies properties used with Adobe PDF documents. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets or sets keywords of the document. - - - - - Gets or sets the PDF file version (for example: 1.0, 1.3, and so on). - - - - - Gets or sets the name of the tool that created the PDF document. - - - - - Represents Rights Management Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets or sets online rights management certificate. - - - - - Gets or sets indicates that this is a rights-managed resource. - - - - - Gets an unordered array specifying the legal owner(s)of a resource. - - - - - Gets text instructions on how a resource can be legally used. - - - - - Gets or sets the location of a web page describing the owner - and/or rights statement for this resource. - - - - - coloring Structure. - - - - - Represents Xmp Structure. - - - - - Hashtable of the properties. - - - - - Indicates whether structure is inside of the array or not. - - - - - Indicates whether we have to suspend initialization. - - - - - Indicate swhether structure is initialized. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - if it is inside an array, set to true. - - - - Creates structure. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Gets value indicating whether we have to suspend initialization. - - Value indicating whether we have to suspend initialization. - - - - Checks whether entity already exists in the parent. - - True - if exists, False otherwise. - - - - Initializes internal entries. - - - - - Creates simple property. - - Name of the property. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Xmp property instance. - - - - Creates simple property. - - Name of the property. - Parent XmlNode. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Parent XmlNode. - Xmp property instance. - - - - Creates xmp array. - - Name of the array. - Type of the array. - Created xmp array. - - - - Gets xmp array. - - Name of the array. - Type of the array. - Xmp array. - - - - Creates structure inner content. - - - - - Gets Xml element of the description tag. - - Xml data. - - - - Gets parent of the structure content. - - Parent of the structure content. - - - - Gets inner xml data. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Gets or sets yellow value when the mode is CMYK. Range 0-100. - - - - - Gets or sets B value when the mode is LAB. Range -128 to 127. - - - - - Gets or sets A value when the mode is LAB. Range -128 to 127. - - - - - Gets or sets L value when the mode is LAB. Range 0-100. - - - - - Gets or sets blue value when the mode is RGB. Range 0-255. - - - - - Gets or sets green value when the mode is RGB. Range 0-255. - - - - - Gets or sets red value when the mode is RGB. Range 0-255. - - - - - Gets or sets black value when the mode is CMYK. Range 0-100. - - - - - Gets or sets magenta value when the mode is CMYK. Range 0-100. - - - - - Gets or sets Cyan value when the mode is CMYK. Range 0-100. - - - - - Gets or sets the type of color, one of PROCESS or SPOT. - - - - - Gets or sets the color space in which the color is defined. One of: - CMYK, RGB, LAB. Library colors are represented in - the color space for which they are defined. - - - - - Gets or sets name of the swatch. - - - - - Dimensions structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets or sets Width. - - - - - Gets or sets height. - - - - - Gets or sets units. For example: inch, mm, pixel, pica, point. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Font Structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes structure. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Gets or sets the name of the font. - - The name of the font. - - - - Gets or sets the font family. - - The font family. - - - - Gets or sets the font face name. - - The font face. - - - - Gets or sets the type of the font. - - The type of the font. - - - - Gets or sets the version string. - - The version string. - - - - Gets or sets a value indicating whether this is composite. - - true if composite; otherwise, false. - - - - Gets or sets the name of the font file. - - The name of the font file. - - - - Gets the list of file names for the fonts that make up a - composite font. - - - - - Declares Job structure. - - - - - Prefix of the structure. - - - - - Name of the structure. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets or sets informal name of job. This name is for user display and - informal systems. - - - - - Gets or sets unique ID for the job. This field is a reference into some - external job management system.. - - - - - Gets or sets a file URL referencing an external job management file. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Xmp Thumbnail Structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Gets or sets the height. - - The height. - - - - Gets or sets the width. - - The width. - - - - Gets or sets the format. - - The format. - - - - Gets or sets the thumbnail image (pixel data only) converted to base 64 - notation. - - The image. - - - - Reads the Name of the element - - XPS data - Reader position - Name - - - - Reads the boolean value from the Data - - XPS data - Reader position - True if the next value is boolean - - - - Reads the float from the data. - - XPS data - Reader position - float value - - - - Reads the point from the data - - XPS data - Reader position - point - - - - Reads the matrix from the data - - XPS data - Reader position - Matrix - - - - Represents the XPS Document reader - - - - - Initializes the new instance of the XPS Document reader - - Path to the XPS document - - - - Initializes a new instance of the XPS document reader - - Stream containing the XPS document content - - - - Reads the FixedDocumentSequence - - - - - Reads the FixedDocumentSequence - - - - - Reads the fixed documents - - - - - Reads the image - - Image element - Image stream - - - - Reads the fixed pages. - - - - - Reads the elements from the fixed page. - - pattern of the element - XPSElement type - XPS Element - - - - Reads the XPS element - - Element name - Element type - XPS element - - - - Reads the XPS element - - Element name - XPS element - - - - Gets the safe name - - Element name - Safe name - - - - Search for a XPS element - - Name of the element - Index of the element - - - - Search for a XPS element. - - Name of the element - Index to start search - Index of the element - - - - Search for a XPS element. - - Regex of element - Index to start search - Index of the element - - - - Reads the font with the URI - - Font URI - Font Name - - - - Gets the Font style - - Font URI - Font style - - - - Extract the font - - Font Stream - Created font - Font Guid - - - - Reads the resources in the XPS document - - resource name - Resource - - - - Dispose the document - - - - - Gets the FixedDocumentSequence - - - - - Gets the Fixed documents - - - - - Gets the fixed pages - - - - - Gets the font names - - - - - Enumerator representing the available XPS elements. - - - - - Represents the path data reader. - - - - - Initializes a new instance of the PathDataReader class. - - - - - - Reads the symbols - - Symbol - - - - Gets the next symbol - - Symbol - - - - Updates the current position of the reader - - Length of the path data - - - - Reads the float value from the path data - - float value - True if the next value is float - - - - Reads the pint form the path data - - Point value - True if the next parameter is point - - - - Reads the position array from the path data - - position array - True if the next parameter is position array - - - - Reads the points from the path data - - Points - - - - Checks if the current character is symbol - - True if the character is a symbol - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Represents the path data reader. - - - - - Initializes a new instance of the PathDataReader class. - - - - - - Reads the symbols - - Symbol - - - - Gets the next symbol - - Symbol - - - - Updates the current position of the reader - - Length of the path data - - - - Reads the float value from the path data - - float value - True if the next value is float - - - - Reads the pint form the path data - - Point value - True if the next parameter is point - - - - Reads the position array from the path data - - position array - True if the next parameter is position array - - - - Reads the points from the path data - - Points - - - - Checks if the current character is symbol - - True if the character is a symbol - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Reads the Name of the element - - XPS data - Reader position - Name - - - - Reads the boolean value from the Data - - XPS data - Reader position - True if the next value is boolean - - - - Reads the float from the data. - - XPS data - Reader position - float value - - - - Reads the point from the data - - XPS data - Reader position - point - - - - Reads the matrix from the data - - XPS data - Reader position - Matrix - - - - Represents the XPS Document reader - - - - - Initializes the new instance of the XPS Document reader - - Path to the XPS document - - - - Initializes a new instance of the XPS document reader - - Stream containing the XPS document content - - - - Reads the FixedDocumentSequence - - - - - Reads the FixedDocumentSequence - - - - - Reads the fixed documents - - - - - Reads the image - - Image element - Image stream - - - - Reads the fixed pages. - - - - - Reads the elements from the fixed page. - - pattern of the element - XPSElement type - XPS Element - - - - Reads the XPS element - - Element name - Element type - XPS element - - - - Reads the XPS element - - Element name - XPS element - - - - Gets the safe name - - Element name - Safe name - - - - Search for a XPS element - - Name of the element - Index of the element - - - - Search for a XPS element. - - Name of the element - Index to start search - Index of the element - - - - Search for a XPS element. - - Regex of element - Index to start search - Index of the element - - - - Reads the font with the URI - - Font URI - Font Name - - - - Gets the Font style - - Font URI - Font style - - - - Extract the font - - Font Stream - Created font - Font Guid - - - - Reads the resources in the XPS document - - resource name - Resource - - - - Dispose the document - - - - - Gets the FixedDocumentSequence - - - - - Gets the Fixed documents - - - - - Gets the fixed pages - - - - - Gets the font names - - - - - Enumerator representing the available XPS elements. - - - - - Represents the XPS Parser - - - - - Represents the currently parsed Fixed Page - - - - - Represents the XPS renderer object - - - - - Represents the XPS enumerator delegate - - - - - Represents the PdfUnitconvertor - - - - - Creates an instance of the XPS parser class. - - Fixed page of the XPS - The XPS renderer - - - - Enumerates the XPS file - - - - - Reads the XPS canvas - - XPS canvas - - - - Reads the XPS glyphs - - XLS Glyphs - - - - Reads the XPS path - - XPS path - - - - Enumerates the XPS fixed page objects - - - - - Converts the pixel value to points - - pixel value - value in point - - - - Gets the XPS renderer - - - - - Represents the XPS enumerator - - - - - Represnets the XPS to PDF renderer. - - - - - Represents the PdfGraphics where the XPS graphics is to be transformed. - - - - - Represents the current PdfPage where the XPS graphics is transformed. - - - - - Represents the PdfUnitConverter for the internal pixels to point conversion. - - - - - Represents the XPS reader object. - - - - - Represents the comma separator - - - - - - - - - - Represents the current transformation matrix. - - - - - Intializes a new instance of the XPSRenderer class. - - The current PDF Page - The XPS document reader - - - - Draws/converts the text objects from XPS to PDF. - - Glyph object with the metrics - - - - Converts the path string to a PdfPath - - Represents the path string - Returns the PdfPath object - - - - Draws/converts the XPS Path to PDF path. - - The XPS path object - - - - Read and draw contents of VisualBrush. - - - - - Convert from XPS linear gradient brush to PDF. - - LinearGradientBrush - PdfLinearGradientBrush - - - - Convert from XPS radial gradient brush to PDF. - - RadialGradientBrush - PdfRadialGradientBrush - - - - Converts XPS pathgeometry to PdfPath. - - PathGeometry - PdfPath - - - - Convert string values to PointF - - String data. - Data in PointF - - - - Convert string values to RectangleF - - String data. - Data in RectangleF. - - - - Processes Gradient stops. - - Gradient stops read from file. - Offsets - Colors - - - - Returns the lowest value based on 0.0f - - - - - Returns the first value greater than 0.0f - - - - - Returns the highest value based on 1.0f - - - - - - - Returns the top most value based on 1.0f - - - - - - - Reads static resource based on hierarchy of elements. - - Name of the resource. - Object containing the resource. - - - - Reads resource dictionary from the document. - - - - - Returns resource from the collection. - - - - - Converts the canvas graphics to PDF graphics. - - XPS Canvas - - - - Intializes the XPS canvas - - XPS canvas - - - - Applies the XPS transformation. - - Transformation matrix - Grahics where the transformation is to be done. - - - - Applies the Graphics transformation - - Transformation matrix - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Converts the matrix string to a System.Drawing.Drawing2D.Matrix object - - matrix string - System.Drawing.Drawing2D.Matrix object - - - - Converts the Glyph font to PdfFont - - XPS Glyph object - PdfFont - - - - Gets the SolidColorBrush form the color string - - Color string - PdfBrush - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Converts the pixel values to point - - pixel value - Points - - - - Convert the pixel coordinates to points - - pixel coordinates - Coordinates in Points - - - - Converts string to float. - - Number as string. - Converted number in float. - - - - Converts string to double. - - Number as string. - Converted number in double. - - - - Gets the graphics of the current PdfPage - - - - - Represents the XPS Parser - - - - - Represents the currently parsed Fixed Page - - - - - Represents the XPS renderer object - - - - - Represents the XPS enumerator delegate - - - - - Represents the PdfUnitconvertor - - - - - Creates an instance of the XPS parser class. - - Fixed page of the XPS - The XPS renderer - - - - Enumerates the XPS file - - - - - Reads the XPS canvas - - XPS canvas - - - - Reads the XPS glyphs - - XLS Glyphs - - - - Reads the XPS path - - XPS path - - - - Enumerates the XPS fixed page objects - - - - - Converts the pixel value to points - - pixel value - value in point - - - - Gets the XPS renderer - - - - - Represents the XPS enumerator - - - - - Represnets the XPS to PDF renderer. - - - - - Arabic characters will not be displayed properly if given the actual size, so the size is decreased by this decrement factor. - - - - - Represents the PdfGraphics where the XPS graphics is to be transformed. - - - - - Represents the current PdfPage where the XPS graphics is transformed. - - - - - Represents the PdfUnitConverter for the internal pixels to point conversion. - - - - - Represents the XPS reader object. - - - - - Represents the comma separator - - - - - - - - - - Represents the current transformation matrix. - - - - - Represents visualbrush viewport value. - - - - - Represents visualbrush graphic state. - - - - - Intializes a new instance of the XPSRenderer class. - - The current PDF Page - The XPS document reader - - - - Draws/converts the text objects from XPS to PDF. - - Glyph object with the metrics - - - - Checks if the text contains RTL character or number. - - Array of symbols. - True if the text contans RTL character or number. - - - - Converts the path string to a PdfPath - - Represents the path string - Returns the PdfPath object - - - - Draws/converts the XPS Path to PDF path. - - The XPS path object - - - - set pixel color of an image. - - - - - Read and draw contents of VisualBrush. - - - - - Convert from XPS linear gradient brush to PDF. - - LinearGradientBrush - PdfLinearGradientBrush - - - - Convert from XPS radial gradient brush to PDF. - - RadialGradientBrush - PdfRadialGradientBrush - - - - Converts XPS pathgeometry to PdfPath. - - PathGeometry - PdfPath - - - - Convert string values to PointF - - String data. - Data in PointF - - - - Convert string values to RectangleF - - String data. - Data in RectangleF. - - - - Processes Gradient stops. - - Gradient stops read from file. - Offsets - Colors - - - - Returns the lowest value based on 0.0f - - - - - Returns the first value greater than 0.0f - - - - - Returns the highest value based on 1.0f - - - - - - - Returns the top most value based on 1.0f - - - - - - - Reads static resource based on hierarchy of elements. - - Name of the resource. - Object containing the resource. - - - - Reads resource dictionary from the document. - - - - - Returns resource from the collection. - - - - - Converts the canvas graphics to PDF graphics. - - XPS Canvas - - - - Intializes the XPS canvas - - XPS canvas - - - - Applies the XPS transformation. - - Transformation matrix - Grahics where the transformation is to be done. - - - - Applies the Graphics transformation - - Transformation matrix - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Converts the matrix string to a System.Drawing.Drawing2D.Matrix object - - matrix string - System.Drawing.Drawing2D.Matrix object - - - - Converts the Glyph font to PdfFont - - XPS Glyph object - PdfFont - - - - Gets the SolidColorBrush form the color string - - Color string - PdfBrush - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Converts the pixel values to point - - pixel value - Points - - - - Convert the pixel coordinates to points - - pixel coordinates - Coordinates in Points - - - - Converts string to float. - - Number as string. - Converted number in float. - - - - Converts string to double. - - Number as string. - Converted number in double. - - - - Gets the graphics of the current PdfPage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The Syncfusion.XPS namespace contains classes for converting the XML Paper Specification (XPS) to PDF - - - - - Represents the XPS to PDF converter. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Represents the PdfUnitConverter - - - - - identifying the oxps files - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Initialize a new instance of the class. - - The XPS to PDF converter settings. - - - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(settings); - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter(settings) - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the XPS document in stream to PDF. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - XPS document - PdfDocument - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert(XpsStream); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert(XpsStream) - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the byte array with XPS file content to PDF - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - XPS document - PdfDocument - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert(XpsByte); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert(XpsByte) - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the Pixel to Point value. - - value in pixel - value in points - - - - Enable or disable embedding complete font - - - By enabling this propety the size of the output PDF will be larger. - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Enable or disable embedding complete font - - - By enabling this propety the size of the output PDF will be larger. - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.IO.StreamReader. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - diff --git a/DPM2016/bin/Debug/Syncfusion.Shared.Base.dll b/DPM2016/bin/Debug/Syncfusion.Shared.Base.dll deleted file mode 100644 index d81f126..0000000 Binary files a/DPM2016/bin/Debug/Syncfusion.Shared.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Debug/Syncfusion.Shared.Base.xml b/DPM2016/bin/Debug/Syncfusion.Shared.Base.xml deleted file mode 100644 index e254aca..0000000 --- a/DPM2016/bin/Debug/Syncfusion.Shared.Base.xml +++ /dev/null @@ -1,69960 +0,0 @@ - - - - Syncfusion.Shared.Base - - - - - - This class holds the name of the Syncfusion.Shared.Base assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - The full name of this assembly without version information: "Syncfusion.Shared.Base". - - - - - A reference to the for the grid assembly. - - - - - The root namespace of this assembly. Used internally for locating resources within the assembly. - - - - - This delegate helps with resolving types and can be used as an eventhandler - for a event. - - The source of the event. - The event data with information about the type. - A reference to the assembly where the type is located. - - - - Defines the interface for extendable text box wrappper. - - - - - Invalidates text box. - - - - - Text box control native handle. - - Must return if handle isn't created yet. - - - - Occurs when text box is created. - - - - - Occurs when text of text box is changed. - - - - - Indicates whether text box is focused. - - - - - Background color of text box. - - - - - Client rectangle of text box - - - - - Font of text box. - - - - - Indicates whether text box is in RTL mode. - - - - - Defines the interface for extending text box owned by some components. - - - - - Specifies whether this component can provide banner text extender properties to the specified object. - - The to receive the extender properties. - true if this object can provide extender properties to the specified object. - - - - Retrieves extendable text box info. - - Extended component. - object - - - - Type of extended component. - - - - - Component's type. - - - - - Collection of extended components. - - - - - Stores text box to component backaward mapping. - - - - - Stores map of bannet text info to extenders . - - - - - Default banner text providers. - - - - - Default constructor. - - - - - Creates instance of class and registers it in owner's container. - - Owner's container. - - - - Static constructor. - - Registers default banner text providers. - - - - Register additional . - - Provider to register. - - - - Returns for given component. - - Component to retirive info for. - Associated object. - Returns a copy of object. - - - - Associates with component. - - Component. - info object. - - - - Retrieves text box to component backward map. - - Mapping is created on demand. - - - - Renders banner text for -derived control. - - - - - Draws banner text. - - to draw at. - Specifies banner text appearance. - Banner text background color. - Fallback font for the case when doesn't contain valid font. - Text flow layout. - Rectangle to draw within. - - - - Determines whether draw text is visible and must be drawn. - - Describes banner text appearance. - Indicates whether extended text box is focused. - Indicates whether extended text box's text is empty. - True if banner text is visible. - - - - Describes banner text rendering behavior. - - - - - Banner text disappears when the control gets focus. - - - - - Banner text disappears only when associated text box is not empty. - - - - - Describes banner text appearance and behavior. - - - - - Static constructor. - - - - - Default constructor. - - - - - Copy constructor. - - - - - Specifies banner text. - - - - - Specifies whether banner text is visible. - - - - - Specifies font of banner text. - - - - - Specifies banner text rendering mode. See for details. - - - - - Specifies banner text color. - - - - - Type converter for - - - - - Designer for - - - - - Base implementation for interface. - - - - - HandleCreated event delegate. - - - - - TextBoxTextChanged event delegate. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Extendable text box wrapper for . - - - - - Initializes a new instance of the class. - - The text box. - - - - Sets the cursor position to initial state - - The font. - - - - Invalidates this instance. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets the handle. - - The handle. - - - - Gets a value indicating whether this is focused. - - true if focused; otherwise, false. - - - - Gets the color of the back. - - The color of the back. - - - - Gets the client rectangle. - - The client rectangle. - - - - Gets the font. - - The font. - - - - Gets the right to left. - - The right to left. - - - - Banner text provider for TextBox-derived classes. - - - - - Banner text provider for ComboDropDown-derived classes. - - - - - Extendable text box wrapper for . - - - - - Banner text provider for ComboBox-derived classes. - - - - - Render button in metro style - - - - - Basic class for all renderers. ButtonRenderer provides the basic plumbing that is needed by all renderers. - - You can derive from ButtonRenderer to create your own renderers. - - - - - - - - - - - - - - - - - - - True - class is disposed, otherwise False. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies region for drawing - - - - - Sets vista color scheme for the control. - - - - - Sets office 2010 color scheme for the control. - - - - - Sets Metro color scheme for the control. - - - - - This function does much of the rendering. In the base , it does not - do anything. - - - The graphics object to use. - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Draws background image, image and text - - - The graphics object to use. - - - - - - - - - - - - - - - - - - - - - - - - - Helper function to get an image from within embedded resources. - - The resource name to get. - An image; NULL if the image is not available. - - The class can take an image based on the - property. This helper function - loads the images based on the resource name. - - - - - - - - True if button has state , otherwise False. - - - - - True if button has state , otherwise False. - - - - - True if button has state , otherwise False. - - - - - - - - - - - - - - - - - Renders an background image. - - The graphics object to use. - BackgroundImage to render. - The layout of background image. - The bounds of the control. - The rectangle to draw on it. - Offset of location of the image when layout is tile. - The rightToLeft property of the control. - - - - Renders an image. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the image. - Image to render. - - - - Renders an inverted triangle. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the shape. - The brush to be used for filling the interior of the rendered triangle. - The pen to be used for stroking the triangle. - - - - Renders a triangle. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the shape. - The brush to be used for filling the interior of the rendered triangle. - The pen to use for stroking the triangle. - - - - - - - - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - - Metro ForeColor - - - - - - - - - Make class cleanup - - - - - Sets metro color - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets Name. - - - - - Renderer in colorful style. - - - - - Gets the color table of the . - - - - - - - Sets the ForeColor of the - - - - - Sets the ForeColor of the listbox in - - - - - Sets the ForeColor of the listbox in - - - - - Gets the MetroColor of the - - - - - Gets the MetroFore color of the - - - - - Gets the TabPanelBackground color of the - - - - - Renderer in black theme style. - - - - - Sets the ForeColor of the - - - - - Sets the ForeColor of the list box in - - - - - Sets the BackColor of the list box in - - - - - Sets the MetroColor of the - - - - - Sets the TabPanelBackground color of the - - - - - Sets the MetroFore of the - - - - - Renderer in white theme style. - - - - - Gets the ForeColor of the - - - - - Gets the ForeColor of the listbox in - - - - - Gets the BackColor of the list box in - - - - - Gets the MetroColor of the - - - - - Gets the TabPanelBackground color of the - - - - - Gets the MetroForeColor of the - - - - - Renderer in dark gray style. - - - - - Gets the ForeColor of the - - - - - Gets the ForeColor of the listbox in - - - - - Gets the BackColor of the listbox in - - - - - Gets the MetroColor of the - - - - - Gets the TabPanelBackground color of the - - - - - Gets the MetroForeColor of the - - - - - A framework independent utility class for the new Nullable type in .NET Framework 2.0 - - - - - Use this method instead of Convert.ChangeType. Makes Convert.ChangeType work with Nullable types. - - - - - - - - Use this method instead of Convert.ChangeType. Makes Convert.ChangeType work with Nullable types. - - - - - - - - - Returns null if value is DBNull and specified type is a Nullable type. Otherwise the value is returned unchanged. - - - - - - - - Returns the underlying type of a Nullable type. For .NET 1.0 and 1.1 this method will always return null. - - - - - - - - - - - - - - - - - - - - - - UseVisualStyle is true - - - - - UseVisualStyle is false - - - - - value for UseVisualStyle inherits from parent - - - - - Specifies the appearance of the button. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the state of the button. - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies ButtonAdv border style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Button with advanced rendering features. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Specifies that this object subscribes to event. - - - - - Interface for SkinManager - - - - - Specifies ButtonAdv default border width. - - - - - Draw the window only if it is visible. - - - - - Draw the non-client area of the window. - - - - - Draw the client area of the window. - - - - - Erase the background before drawing the window. - - - - - Draw all visible child windows. - - - - - Draw all owned windows. - - - - - - - - - Indicates whether renderer could draw the background for half of the control differently. - Used in XP style when used as a combo button. - - Used only for by class. - - - - Indicates whether renderer could draw the background for half of the control differently. - Used in XP style when used as a combo button. - - Used only for by class. - - - - - - - Specifies border style of ButtonAdv. - - - - - Internal usage field ( Border drawing ). - - - - - Reference counter. - - - - - - - - Indicates whether ButtonAdv will show focus rectenagle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Metrocolor - - - - - - - - - - - - - - - - - - - - - - Default size of the control - - - - - Drawing ButtonAdv's surface on custom Graphics - - Graphics to draw on - buttonAdv control to draw - Point that represents the location of the upper-left - corner of the drawn image. - - private void pictureBox1_Paint(object sender, PaintEventArgs e) - { - e.Graphics.RotateTransform(20); - ButtonAdv.PaintButton(e.Graphics, this.buttonAdv1, new Point(75, 25)); - } - - - - - Get or Set of Skin Manager Interface - - - - - To indicate whether to serialize MetroColor or not - - - - - - To Reset MetroColor - - - - - Gets or sets the ImageListAdv of the ButtonAdv - - - - - - - - Constructor. - - Indicates whether button is of combo button type. - - - - - - - Cleans up any resources being used. - - - - - - - - - applies the scaling - - - - - - Font changed event - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Indicates whether to animate the image. - - - - - - - Sets the value of animateState member. - - - - - - - - - - - - If animate is true - animates the image, else doesn`t animate. - - - - - - - - - - - - finding the button is BackStageButton or not. - - - - - Holds MessageBoxAdvOptionButton - - - - - Holds is DropDown Button - - - - - Reset DropDown Button - - - - - Specifies whether this is DropDown Button - - - - - Specifies whether this is DropDown Button - - - - - - - - - - - - - Creates delegates for border drawing methods. - - - - - Performs border drawing. - - PaintEventArgs from OnPaint method - border width - - - - Draws border with ButtonAdvBorderStyle.Flat style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.SunkenOuter style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.SunkenInner style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Sunken style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.RaisedOuter style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.RaisedInner style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Raised style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Etched style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Bump style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Outset style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Inset style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Solid style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Dotted style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Dashed style. - - Graphics to draw on - rectangle to draw border in - border width - - - - This method draws nothing. Used with ButtonAdvBorderStyle.Default and ButtonAdvBorderStyle.None - - Graphics to draw on - rectangle to draw border in - border width - - - - Gets color to draw border with. - - border color - - - - Recover or suspends mouse handling logic for property . - - - True to suspend, otherwise to resume handling logic. - - - - - Suspend property updating till the method call. - - - - - Recover mouse handling logic for property . To suspend call method. - - - - - If the isLastleftButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - The value that is to be set. - - - - If the IsFirstRightButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - The value that is to be set. - - - - If the isLastleftButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - - - - - If the IsFirstRightButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Resets the UseVisualStyle to default. - - - - - - - - - Resets the ComboEditBackColor to default. - - - - - - - - - Resets the System.Windows.Forms.Control.ForeColor property to its default value. - - - - - - - - Resets the System.Windows.Forms.Control.BackColor property to its default value. - - - - - Should serialize for IsBackStageButton. - - - - - Indicates whether the property should be persisted. - - - - Method allow to raise event. - Paint event arguments. - - - - - - - - Sets region of the control - - - - - Gets ButtonAppearance depending on current operating system - - - - - - - - - Indicates whether button have DesignMode - - - - - Gets or sets office 2007 color scheme. - - - - - Gets or sets office 2010 color scheme. - - - - - Gets or sets ButtonAdv border style. Borders styles supported only in - appearance styles: , - and . - - - - - Gets or Sets value specifying whether ButtonAdv will show focus rectangle receiveng focus. - - - - - Gets or sets the look and feel of the ButtonAdv. Set - to True if you want to apply style on button, otherwise False. - - - - - Gets or sets the MetroColor color of the ButtonAdv - - - - - Gets or sets the foreground color of the ButtonAdv - - - - - Gets or sets the background color of the ButtonAdv - - - - - Gets or sets the background color of the ButtonAdv - - - - - Gets or sets a value indicating whether the custom managed color is to be applied by overiding the Form's managed color - - - - - Indicates whether Visual Styles must be enabled for the button. - Set value to True if you want to apply settings of properties: - , , - and etc. on current button. - - - - - Gets or sets the type of button to be used. - - - - - Gets or sets the text to be displayed on the button. - - - - - Gets or sets the different states the button can hold: Default, MouseOver, Pressed. - - - - - Indicates the state of control. - - - - - Gets or sets a value indicating whether state should be reset on focus lost. - - - true if reset state on lost focus; otherwise, false. - - - - - Indicates whether the mouse is currently pressed. - - - - - Indicates whether the button is of ComboButton type. - - - - - Gets or sets the combo edit backcolor. - - - - - Indicates whether Appearance of the ButtonAdv has changed. - - - - - gets or sets the touchmode - - - - - Gets/Sets the value for IsBackStageButton - - - - - Gets/Sets whether this is MessageBoxAdv Button - - - - - Gets/Sets whether this is DropDownButton - - - - - Gets/Sets Control size before touch enabled - - - - - Delegate used for border drawing. - - - - - - - - - - - - - - - - - - - - - - - - - - - This should be called WindowsXPColorAndLayoutScheme. - Specifies the layout and colors for buttons and combo box buttons. - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that will be used to define the 3 Windows XP - color schemes supported. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that are used to define the Office 2003 look and feel. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that are used to define the Office XP look and feel. - - - - - - - - - - - Gets Bordercolorwhite - - - - - Gets Bordercolordarkgray - - - - - Gets Bordercolorblack - - - - - Gets Bordercolorcolorful - - - - - - - - - - - - - - - - - - - - - - - - - Initialize the Button Appearance. - - - - - Default constructor - - - - - Constructor with variables initialization. - - - - - - - - - - - - Gets/ Sets the Button Appearance. - - - - - - - - - - - - - - - - - - - The types of buttons that the child button of the - ButtonEdit class can be set to. The ButtonType specifies - the image that is to be used for the button. - Set the button to normal appearance if you want to use your - own image. - - - The ButtonType and property are only loosely enforced by the - control and the designer. In the case where the ButtonType is set to one of these - values other than ButtonTypes.Normal and the Image property of the ButtonEditChildButton - is changed, the new image will be displayed and the ButtonType will still be the same - (it will not be changed to normal as its displaying a new image). - - The ButtonTypes are only provided for ease of use and do not in any way change the - functionality of the buttons. - - - - - - Normal button. The image can be set by the user. - - - - - Calculator image is used. - - - - - Currency image is used. - - - - - Down image is used. - - - - - Down image like in a Windows XP combo box. - - - - - Up image is used. - - - - - Left image is used. - - - - - Right image is used. - - - - - Redo image is used. - - - - - Undo image is used. - - - - - Check image is used. - - - - - Browse image is used. - - - - - Left end image is used. - - - - - Right end image is used. - - - - - Render button in classic style - - - - - - - - - - - - - Defines the different colors that will be used to define the 3 Windows XP - color schemes supported. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Summary description for Office2000ButtonRenderer. - - - - - - - - - - - - - - - - - - - Office2003 button style rendering. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents renderer of the Office 2007 style for ButtonAdv. - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - The color scheme that the renderer will render. - - - - - Current color table. - - - - - Initialize all drawing objects - - - - Make class cleanup - - - - - Sets vista color scheme for the control. - - - - - Gets rounded path for control. - - - - - Gets rectangle for background. - - - - - Gets rectangle for internal border. - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Draws background for control when it don't press and mouse don't over it. - - - - - Draws background for control when it pressed. - - - - - Draws background for control when mouse over it. - - - - - Draws background for disable control. - - - - - Fill rectangle with gradient. - - - - - Fill rectangle with gradient for pressed control. - - - - - Fill rectangle with gradient for selected control. - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Represents renderer of the Office 2007 style for ButtonAdv. - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - The color scheme that the renderer will render. - - - - - Current color table. - - - - - Initialize all drawing objects - - - - Make class cleanup - - - - - Sets vista color scheme for the control. - - - - - Gets rounded path for control. - - - - - Gets rectangle for background. - - - - - Gets rectangle for internal border. - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Draws background for control when it don't press and mouse don't over it. - - - - - Draws background for control when it pressed. - - - - - Draws background for control when mouse over it. - - - - - Draws background for disable control. - - - - - Fill rectangle with gradient. - - - - - Fill rectangle with gradient for pressed control. - - - - - Fill rectangle with gradient for selected control. - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Summary description for OfficeXPButtonRenderer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Show or Hide the prefix character - - - - - Summary description for RenderingHelper. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculates rectangle to draw on it backgroundImage, depending on imageLayout - - Bounds of the control - Background image of the control - Image layout of the background image - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WindowsXP button Renderer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The color scheme that the renderer will render. - - - - - - - - - - - - - Sets the rectangles and paths used to draw the XP button when the size of the button is set. - - Set drawing bounds. - - - - - - - - - - - - - - - - Sets WindowsXP color scheme for the control. - - - - - Set the color scheme for the button based on the current XP Scheme and - the IsComboButton property. - - - - - - - - - - - - Calculates bounds for helper rectangles. - - - - - - - - - - - - - - - - - - - - - - - - - - Renders ButtonAdv using visual styles. - - - - - - - - - - - - - - - - - - Extends ArrayList by throwing events when Collection changes, an - item's property changes, etc. - - - This class lets you know through the event - when an item gets added or deleted from the ArrayList or - when an exisiting item is replaced by a new item at a position. - It will also listen for property change notifications from the - items in the list, provided the items implement the - interface and forward them using the event. - - - - - - - - - - - - - - Overloaded. Creates a new instance of the ArrayListExt class. - - - - - Creates a new instance of the ArrayListExt class and inserts - the items specified in an array into the ArrayList. - - An array of objects. - - - - Raises the event. - - - A object containing data - pertaining to this event. - - The method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. Note to Inheritors: When overriding OnCollectionChanged in a derived - class, be sure to call the base class's OnCollectionChanged method so that - registered delegates receive the event. - - - - Called when an item is being added, removed, moved or when an exisiting item is - replaced by a new item. - - This method does not fire a corresponding event. - - - - Raises the event. - - The source of the event. - The object that contains - data pertaining to this event. - The method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. Note to Inheritors: When overriding in a derived - class, be sure to call the base class's method so that - registered delegates receive the event. - - - - Called when an item gets removed from the list. - - The object that got removed from the list. - This provides you a convenient place where you can - perform operations pertaining to the removal of an object - from the list. Make sure to call the base class when you override - this function.The base class will call the event with appropriate parameters. - - - - Called when an object gets added to the list. - - The object that got added to the list. - This provides you a convenient place where you can - perform operations pertaining to the addition of an object - to the list. Make sure to call the base class when you override - this function.The method will call the method with appropriate parameters. - - - - - - - - - Call this method to force a event. - - The args for the above mentioned event. - This method is useful when after suspending and resuming events in this list, - you might want to fire the CollectionChanged event for some specific changes. - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - Overridden. See - - - - - Overridden. See . - - - - - - - Sorts the elements in the entire System.Collections.ArrayList - using the System.IComparable implementation of each element. - - - - - - - - Reverse range of items in collection from position specified by index - parameter and length specified by count parameter. - - range start position. - range length. - - - - Allows you to move one or more items in the collection from - one position to another. - - The beginning index of the range of items to move. - The destination index where the items will be moved to. - The number of elements in the range to be moved. - - If the above indices are not within the list's count, this - method will return without performing any operation. - For example, say a list contains the following elements: - A, B, C, D, E, F. Then the following call:list.Move(2, 4, 2); will result in the following array: A, B, E, F, C, D. - - - - Will suspend the and events - temporarily. - - Call when you are ready to receive events again. - The / calls are useful when you - are performing a series of operations that will result in - multiple changes in the collection, throwing multiple events. - In such cases, you could use these methods to have a single event thrown - at the end of the series of operations.Note that there is no one-to-one correspondence between - and . could be called - more than once but a single subsequent call will - resume throwing events. - - - - Starts throwing the and - events. - - True will throw a event; False will not. - Call this method after calling a method to resume - throwing the and events.Note that there is no one-to-one correspondence between - SuspendEvents and ResumeEvents. SuspendEvents could be called - more than once but a single subsequent ResumeEvents call will - resume throwing events. - - - - Overridden. See . - - - - - Indicates whether the collection is Read-only. - - True to make the collection Read-only; False otherwise. Default is False. - When set to True, the property will return True - and exisiting items in the list cannot be replaced. - - - - Indicates whether the collection should be made fixed size. - - True to make the collection fixed size; False otherwise. Default is False. - When set to True, the property will return True - and no new elements can be added to the list. - - - - - - - - - - - - Indicates whether firing event is suspended. - - True indicates firing the event is suspended; False otherwise. - - - - Will be thrown when the Collection has changed due to the addition or removal of one - or more items. - - - - - Will be thrown if the items in the Collection implement interface - and when their property changes. - - - - - A list deriving from with a strongly-typed indexer of type int. - - - - - An derived class that supports creating "visually inheritable lists". - - - A "visually inheritable list" is one that keeps track of and persists in code, - the incremental changes applied on the list in a derived class's designer. - - You should typically not use the methods and properties exposed by this class in - your code. The properties are meant to be used during design-time to store the - incremental changes done at design-time. - - - - - - - - - - - - - - - - - Overloaded. Creates a new instance of the without any support - for visual inheritance. - - - - - Creates a new instance of the class and inserts - the items specified in the array into the VisuallyInheritableList without any - support for visual inheritance. - - An array of objects. - - - - Creates a new instance of the with support for - visual inheritance provided based on the specified parent's design state. - - A reference to the interface - that typically contains this collection. - - This list keeps track of the incremental changes happening in a designer by - following the parent's property. - - - - - - - - - - - Indicates whether to continue applying incremental-changes done in the - previous design-time invocation. - - True to continue; False otherwise. - - This method is called if it seems like items were removed in the base class - since the last invoke of this design-time. - - - - - Called to apply the changes made in the previous design-time invoke. - - A list specifying the new positions based on the positions of the exisiting items - set in the base class. - - - - Returns a list representing the incremental changes made at design-time. - - A list representing the new position of the items based on the position of the items in the base class. - This list will be provided in a call to - to reapply the changes done during this design-time. - - - - Compares two objects for equality. - - Object 1. - Object 2. - True if identical; False otherwise. - The base class version uses the "==" operator to perform the - comparison. This could be overridden to support boxed types (int, for example), - where 2 integers should be compared based on their value rather than the boxed object instance. - - - - - Overridden. See . - - - - - - - - - - - - Gets / sets the associated parent. - - - - - Gets / sets the incremental changes done at design-time. - - - - - Overloaded. Creates a new instance of the class. - - - - - Creates a new instance of the class and inserts - the items specified in an array into the , without - support for visual inheritance. - - An array of integers. - - - - Creates a new instance of the with support for - visual inheritance provided based on the specified parent's design state. - - A reference to the interface - that typically contains this collection. - - - - Lets you add an array of integers into the list. - - An integer array. - Available to enable serialization using AddRange in designer. - - - - Overridden. See . - - Object 1. - Object 2. - True if identical; False otherwise. - - - - Custom indexer of type int. See for more information. - - - - - A list deriving from with a strongly-typed indexer of type int. - - - - - Overloaded. Creates a new instance of the IntList class. - - - - - Creates a new instance of the IntList class and inserts - the items specified in array into the IntList. - - An array of integers. - - - - Lets you add an array of integers into the list. - - An integer array. - Available to enable serialization via AddRange in designer. - - - - Custom indexer of type int. See for more information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - An ArrayListExt instance that will enforce the type of objects that can be added to the array during runtime. - - Specifies the type of objects that can be added to the array. - - - - An indexer of the specified template type. - - The index of the object in the list that you want to retrieve. - The object at the specified index. - - - - An IBindingList that wraps a DataTable and provides optimized access to the rows of the datatable. Assign - this list to a grid as DataSource to improve performance when inserting records into an existing - table with many records. - - - - - Initializes a new object and attaches it to the wrapped DataTable. - - The DataTable to be wrapped. - - - - Not implemented. - - - - - - Not implemented. Returns -1. - - - - - - - - Not implemented. - - - - - Adds a new row (calling DataTable.NewRow) and returns the new object. - - - - - - Not implemented. - - - - - - Removes the element at the specified index of the collection. - - The zero-based index of the element to remove. - - - - Inserts an element into the collection at the specified index. - - The zero-based index at which the element should be inserted. - The element to insert. The value must not be a NULL reference (Nothing in Visual Basic). - - - - Removes the specified row object from the collection. - - The element to remove from the collection. If the value is NULL or the element is not contained - in the collection, the method will do nothing. - - - - Always False, the method is not implemented yet. - - - - - Removes all elements from the collection. - - - - - Always -1, the method is not implemented. - - - - - Adds a row object to the end of the collection. - - The element to be added to the end of the collection. The value must not be a NULL reference (Nothing in Visual Basic). - The zero-based collection index at which the value has been added. - - - - Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. - - The one-dimensional array that is the destination of the elements copied from the ArrayList. The array must have zero-based indexing. - The zero-based index in an array at which copying begins. - - - - Returns an enumerator. - - - - - - Returns a PropertyDescriptorCollection that represents the DataTable.Columns collection. - - - - - - - Returns DataTable.TableName. - - - - - - - The underlying DataTable. - - - - - Always True. - - - - - Not implemented. - - - - - Always False. - - - - - Always False. - - - - - Always True. - - - - - Always False. - - - - - Not implemented. - - - - - Broadcasts the event. - - - - - Always True. - - - - - Always True. - - - - - Always False. - - - - - Returns the element at the zero-based index. - Setting is not supported and will throw an exception since the collection is Read-only. - - - - - Always False since this collection has no fixed size. - - - - - Not implemented. - - - - - Returns the number of elements contained in the collection. - - - - - Not implemented. - - - - - A custom PropertyDescriptor that is used within a to access - a DataColumn. - - - - - Initializes a new PropertyDescriptor and attaches it to a DataColumn. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the DataColumn. - - - - - Specifies the change in the ListProperty. Used by OnChanging and OnChanged events of strong typed collections. - - - - - An item is appended. - - - - - An item is removed. - - - - - An item is inserted. - - - - - An item is moved. - - - - - The whole collection is changed. - - - - - An item is replaced. - - - - - A nested property of an item is changed. - - - - - Used by OnChanging and OnChanged events of strong typed collections. - - - - - Provides data for a cancellable event. - - - - - Overloaded. Initializes a new instance of the SyncfusionCancelEventArgs class. - - - - - Initializes a new instance of the SyncfusionCancelEventArgs class with the Cancel property set to the given value. - - - - - - - - Initializes the ListPropertyChangedEventArgs. - - - - - - - - - Initializes the ListPropertyChangedEventArgs. - - - - - - - - - - Returns the type in which the list changed. - - - - - Returns the index of the item that is changed. - - - - - Returns a reference to the affected item. - - - - - Returns the names of the affected property. - - - - - If tag is EventArgs, then it returns the Tag casted to EventArgs. - - - - - Gets / sets a tag. - - - - - Used by OnChanging and OnChanged events of strong typed collections. - - - - - Provides helper routines for exploring properties in a collection. Essential Grid uses - this routine to find out about columns and relations to be displayed in the grid when - a collection is specified as datasource. - - - - - Checks IBindingList.SortDirection. - - - - - - - Checks IBindingList.SortProperty. - - The list to check. - - - - - Calls IBindingList.ApplySort. - - List to be sorted. - - - - - - Checks IBindingList.SupportsSorting. - - - - - - - Checks IBindingList.AllowRemove for IBindingList or IList.IsReadOnly and IList.IsFixedSize for IList collections. - - - - - - - Indicates whether the property represents a relation or nested collection. - - - - - - - Compares the two PropertyDescriptorCollection and indicates whether they are equal. - - - - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - - - Overloaded. Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - Indicates whether the specified PropertyDescriptor has nested properties. - - The PropertyDescriptor to be checked. - True if nested properties are found; False otherwise. - - - - Indicates whether the specified Type has nested properties. - - The Type to be checked. - True if nested properties are found; False otherwise. - - - - Lets you register additional types that should return false when is called. - - - - - - - - - - - - - - Returns the or DataTable of the - - - - - - - Returns the of the if it - is a DataColumnPropertyDescriptor. - - - - - - - Determines and returns the DataTable object for the given list. - - - - - - - Returns the or DataTable of the - - - - - - - Returns the properties for the specified type. - - - - - - - Returns the type of the items in the list if the list is strong-typed. - - - - - - - Returns the type of the items in the list if the list is strong-typed. - - - - - - - Returns the properties for the object. - - - - - - - Returns the value for the ValueMember of the specified item. - - The row item. - The list - The name of the value member - The value of the ValueMember. - - - - Extends List{T} with events. - - Type of collection elements. - - - - - - - - - - Add method. - - - - - - - Determines the index of a specific item in the list. - - - - - - - Inserts an item to the list at the specified index. - - - - - - - Removes the first occurrence of a specific object from the collection. - - - - - - Removes item at the specified index. - - - - - - Determines whether the list contains a specific value. - - - - - - - Removes all items from the list. - - - - - - - - - - - Adds an item to the list. - - - - - - - Removes all items from the list. - - - - - Determines whether the list contains a specific value. - - - - - - - Determines the index of a specific item in the list. - - - - - - - Inserts an item to the list at the specified index. - - - - - - - Removes the first occurrence of a specific object from the list. - - - - - - Removes item at the specified index. - - - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - - - - - - Performs additional custom processes before inserting a new element into the collection. - - - - TRUE to insert object - - - - Performs additional custom processes when removing an element from the collection. - - - - TRUE to remove object - - - - Fires ItemAdded event. - - - - - - - Fires ItemRemoved event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the element at the specified index. - - - - - - - Gets a value indicating whether the list has a fixed size. - - - - - Gets a value indicating whether the list is read-only. - - - - - Gets or sets the element at the specified index. - - - - - - - Gets the number of elements contained in the ICollection. - - - - - Gets a value indicating whether access to the collection is synchronized - - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Fired when new item is added to the collection. - - - - - Fired when item is removed from collection. - - - - - Event arguments for ObservableList events. - - Type of items in InnerList. - - - - Underlying item. - - - - - Creates and initializes new instance of ListItemEventArgs. - - Underlying item. - - - - Implements a two-dimensional table that holds an of rows. Each row - is an of objects. - - -

This is a memory efficient way to represent a table where values can remain empty. Only rows - that actually contain data will allocate an and the array only holds - as many objects as the specific row contains columns.

-

When you access data that are out of range, an empty () object will be returned. - If you set data that are out of range, an exception will be thrown. If you set data for - a row that is empty, the row will be allocated before the value is stored.

-

SFTable provides methods that let you insert, remove or rearrange columns or rows - in the table.

-
- -
- - - Initializes a new instance of the class from the specified instances - of the and classes. - - An instance of the class containing the information required to serialize the new instance. - An instance of the class containing the source of the serialized stream associated with the new instance. - This constructor implements the interface for the class. - - - - Implements the ISerializable interface and returns the data needed to serialize the . - - A SerializationInfo object containing the information required to serialize the object. - A StreamingContext object containing the source and destination of the serialized stream. - - - - Initializes a new instance of the - class. - - - Initializes a new instance of the - class that is empty. - - - - - Initializes a new instance of the - class and optional copies of data from an existing table. - - - - - Creates a deep copy of the . - - - A deep copy of the . - - - - - Removes all elements from the . - - - - - Creates and returns a new . - - A new - - - - Creates a collection of cells for a row. - - An or derived object for the cell collection. - - - - Inserts a specified number of empty rows in the at a given row index. - - The zero-based row index of the first row to be inserted. - The number of rows to be added. - not used. - - - - Inserts a specified number of empty columns for each row in the at a given column index. - - The zero-based column index of the first column to be inserted. - The number of columns to be inserted. - not used. - - - - Removes a specified number of rows from the at a given row index. - - The zero-based row index of the first row to be removed. - The number of rows to be removed. - not used. - - - - Removes a specified number of columns for each row in the at a given column index. - - The zero-based column index of the first column to be removed. - The number of columns to be removed. - not used. - - - - Rearranges rows in the . - - The zero-based index of the first row to be moved. - The number of rows in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFTable array = new SFTable(); - array.RowCount = 5; - array.ColCount = 1; - array[0,0] = 0; - array[1,0] = 1; - array[2,0] = 2; - array[3,0] = 3; - array.MoveRows(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Rearranges columns in the . - - The zero-based index of the first column to be moved. - The number of columns in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFTable array = new SFTable(); - array.ColCount = 5; - array.RowCount = 1; - array[0,0] = 0; - array[0,1] = 1; - array[0,2] = 2; - array[0,3] = 3; - array.MoveCols(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Indicates whether an element is at the specified coordinates in the . - - The zero-based row index. - The zero-based column index. - - - if an element exists at the specified coordinates in the ; - otherwise. - - - - - Returns the from all rows. - - - - - Gets / sets the number of rows contained in the . - - - If you decrease the row count, the rows in the will be removed. - - - - - Gets / sets the number of columns contained in the . - - - If you decrease the column count, the last columns in each row will be removed. - - - - - Gets / sets an element at the specified coordinates in the . - - The zero-based row index. - The zero-based column index. - - If you query for an element and the coordinates are out of range, an empty () object will be returned. - If you set an element and the the coordinates are out of range, an exception is thrown. - - - - - Extends ArrayList with MoveRange, InsertRange and RemoveRange methods. The Item property - will grow the array on demand or return NULL if an index is out of range. - - - - - Overloaded. Initializes a new instance of the - class that is empty and has the default initial capacity. - - - - - Initializes a new instance of the class that contains elements copied from the specified - collection and has the same initial capacity as the number of elements copied. - - The whose elements are copied to the new list. - - - - Overridden. Creates a deep copy of the . - - - A deep copy of the . - - - - - Rearranges the values in the . - - The zero-based index of the first value to be moved. - The number of values in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.MoveRange(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Enlarges the array if needed. - - The size to be checked. If the array has less elements, empty () objects will be appended - at the end of the array. - - - - Removes a range of values from the . - - The zero-based index of the first value to be removed. - The number of values in the range to be removed. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.RemoveRange(1, 2); - // results in new order: 0, 3 - - - - - - Inserts a specified number of () values in the at a given index. - - The zero-based index of the first value to be inserted. - The number of values in the range to be added. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.InsertRange(1, 2); - // results in new order: 0, null, null, 2, 3 - - - - - - Gets / sets the element at the specified index. - In C#, this property is the indexer for the class. - - The zero-based index of the element to get / set. - - The element at the specified index. - When querying the value and the index is out of range, an empty () object will be returned. - When setting the value and the index is out of range the array will be enlarged. See - - - - - - - - - - - Used by TreeTable to balance the tree with algorithm based on Red-Black tree. - - - - - Red. - - - - - Black. - - - - - A branch or leaf in the tree. - - - - - returns the position in the tree. - - - - - Returns the number of child nodes (+1 for the current node). - - - - - Indicates whether leaf is empty. - - - - - Indicates whether this is a leaf. - - - - - Returns the tree level of this node. - - - - - Returns the minimum value (of the leftmost leaf) of the branch in a sorted tree. - - - - - Walk up parent branches and reset counters. - - - - - - Walk up parent branches and reset summaries. - - - - - - Gets / sets the parent branch. - - - - - A branch with left and right leaves or branches. - - - - - Sets the left node. - - The new node. - Indicates whether tree-table is in add-mode. - Indicates whether tree-table is sorted. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Sets the right node. - - The new node. - Specifies if tree-table is in add-mode. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Returns the left branch cast to ITreeTableBranch. - - - - - - Returns the right branch cast to ITreeTableBranch. - - - - - - Returns the position in the tree table of the specified child node. - - - - - - - Sets this object's child node Count dirty and - marks parent nodes' child node Count dirty. - - - - - Sets this object's child node Count dirty and steps - through all child branches and marks their child node Count dirty. - - - - - Sets this object's child node Minimum dirty and - marks parent nodes' child node Minimum dirty. - - - - - Sets this object's child node Minimum dirty and steps - through all child branches and marks their child node Minimum dirty. - - - - - Gets / sets the left node. - - - - - Gets / sets the right node. - - - - - Gets / sets the Red-Black tree color. - - - - - A leaf with value and optional sort key. - - - - - Returns the sort key of this leaf. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Gets / sets the value attached to this leaf. - - - - - A branch or leaf in the tree. - - - - - This class provides a base class that implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern. - - If you derive from this class, you only need to override the protected - Dispose method and check the disposing parameter. - - - - This is a base class for Disposable. It implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern but it does not - implement a finalizer. If you need finalization you need to derive from Disposable - or add a finalizer to your derived class and manually call Dispose from the Finalizer. - - - - - Releases all resources used by the Component. - - - Releases all resources used by the Component. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - . - In C# and C++, finalizers are expressed using destructor syntax. - - - - - Returns the position in the tree. - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - Indicates whether leaf is empty. - - - - - Indicates whether this is a leaf. - - - - - Returns the number of child nodes (+1 for the current node). - - - - - Returns the tree level of this node. - - - - - Returns the Debug / text information about the node. - - - - - Returns the Debug / text information about the node. - - - - - Walks up parent branches and reset counters. - - - - - - Walks up parent branches and reset summaries. - - - - - - Gets / sets the tree this node belongs to. - - - - - Gets / sets the parent branch. - - - - - A branch in a tree. - - - - - Initializes a new branch. - - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - - Returns the left node cast to ITreeTableBranch. - - - - - - Returns the right node cast to ITreeTableBranch. - - - - - - Sets the left node. - - The new node. - Indicates whether tree-table is in add-mode. - Indicates whether tree-table is sorted. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Sets the right node. - - The new node. - Indicates whether tree-table is in add-mode. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Returns the position in the tree table of the specific child node. - - - - - - - Returns the number of child nodes (+1 for the current node). - - - - - - Indicates whether this is a leaf. - - - - - - Sets this object's child node count dirty and - walks up parent nodes and marks their child node count dirty. - - - - - Sets this object's child node count dirty and steps - through all child branches and marks their child node count dirty. - - - - - Sets this object's child node minimum dirty and - marks parent nodes' child node minimum dirty. - - - - - Sets this object's child node minimum dirty and steps - through all child branches and marks their child node minimum dirty. - - - - - Gets / sets Red-Black tree algorithm helper. - - - - - Gets / sets the left leaf or branch. - - - - - Gets / sets the right tree or branch. - - - - - A leaf in the tree with value and optional sort key. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Returns the sort key of this leaf. - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - - Returns the number of child nodes (+1 for the current node). - - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns the Debug / text information about the node. - - - - - - Indicates whether this is a leaf. - - - - - - Gets / sets the value attached to this leaf. - - - - - An empty node. - - - - - Tree table interface definition. - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Optimized access to a subsequent entry. - - - - - - - Optimized access to a previous entry. - - - - - - - Indicates whether this is a sorted tree. - - - - - A comparer used by sorted trees. - - - - - Returns the root node. - - - - - Indicates whether BeginInit was called. - - - - - This object owns a . - - - - - Returns a reference to an inner tree table. - - - - - - A tree table. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Initializes a new . - - - - - - Sets the node at the specified index. - - Index value where the node is to be inserted. - Value of the node that is to be inserted. - - - - Optimized access to the previous entry. - - - - - - - Optimized access to a subsequent entry. - - - - - - - Inserts a node at the specified index. - - Index value where the node is to be inserted. - Value of the node to insert. - - - - Removes the specified node. - - Node value to look for and remove. - - - - Resets the cache. - - - - - Indicates whether the node belongs to this tree. - - Node value to search for. - True if node belongs to this tree; false otherwise. - - - - Returns the position of a node. - - Node value to look for. - Index of the node if found. - - - - Appends a node. - - Node value to append. - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Adds a node into a sorted tree. - - Node value to add. - - - - - Adds a node in a sorted tree only if no node with the same value has not been added yet. - - - Node value to add. - - - - - Finds a node in a sorted tree. - - - - - - - Finds a node in a sorted tree that matches the specified key. - - The key to search. - The node; NULL if not found. - - - - Finds the node in a sorted tree is just one entry ahead of the - node with the specified key. It searches for the largest possible - key that is smaller than the specified key. - - The key to search. - The node; NULL if not found. - - - - Removes a node at the specified position. - - - - - - Inserts a node at the specified index. - - - - - - - Removes the node with the specified value. - - - - - - Indicates whether the node belongs to this tree. - - - - - - - Clears all nodes in the tree. - - - - - Returns the index of the specified node. - - - - - - - Adds the specified node to the tree. - - - - - - - Returns the number of leaves. - - - - - Copies the element from this collection into an array. - - The destination array. - The starting index in thedestination array. - - - - Copies the elements from this collection into an array. - - The destination array. - The starting index in the destination array. - - - - Returns an enumerator. - - - - - - Returns a . - - - - - - - - - - - - - - - - - - - - - Gets / sets the comparer used by sorted trees. - - - - - Gets / sets the tag that can be associated with this object. - - - - - Indicates whether tree is sorted. - - - - - Gets / sets the root node. - - - - - Gets / sets an item at the specified index. - - - - - Indicates whether BeginInit was called. - - - - - Indicates whether the tree is Read-only. - - - - - Gets / sets the item with the specified index. - - Index value of the item. - - - - - Indicates whether the nodes can be added or removed. - - - - - Not supported. - - - - - Returns the number of leaves. - - - - - Not implemented. - - - - - Strongly typed enumerator for . - - - - - Initializes a new . - - - - - - Resets the enumerator. - - - - - Indicates whether to move to the next node. - - - - - - Returns the current enumerator. - - - - - Returns the current node. - - - - - An object that holds an . - - - - - Gets a reference to the . - - - - - A collection of objects - that are internally using a . - - - - - Overloaded. Initializes a new . - - - - - Initializes a new . - - - - - Initializes a new . - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Indicates whether object belongs to this collection. - - The value of the object. - True if object belongs to the collection; false otherwise. - - - - Returns the position of a object in the collection. - - The value of the object. - The position of the object. - - - - Copies the contents of the collection to an array. - - Destination array. - Starting index of the destination array. - - - - Returns a strongly typed enumerator. - - A strongly types enumerator. - - - - Inserts an object at the specified index. - - Index value where the object is to be inserted. - Value of the object to insert. - - - - Appends an object. - - The value of the object to append. - - - - - Removes the object. - - The value of the object to remove. - - - - Removes a node at the specified index. - - Index value of the node to remove. - - - - Inserts the object at the specified index. - - Index value of the object to insert. - Value of the object to insert. - - - - Removes the specified object. - - Value of the object to remove. - - - - Indicate whether the specified object belongs to this collection. - - Object value to look for. - True if object belongs to the collection; false otherwise. - - - - Clears all nodes in the tree. - - - - - Returns the index of the specified object. - - Value of the object. - Index value of the object. - - - - Adds the specified object to the collection. - - Value of the object to add. - - - - - Copies elements to destination array. - - Destination array. - Starting index of the destination array. - - - - Returns an enumerator. - - Enumerator. - - - - Indicates whether BeginInit was called. - - - - - Gets / sets an at a specific position. - - - - - Indicates whether tree is Read-only. - - - - - Gets / sets the item at the specified index. - - Index of the item. - The item at the specified index. - - - - Indicates whether the nodes can be added or removed. - - - - - Not supported. - - - - - Returns the number of objects in this collection. - - - - - A strongly typed enumerator for the . - - - - - Initializes the . - - - - - - Resets the enumerator. - - - - - Indicates whether to move to the next object in the collection. - - - - - - Returns the current enumerator. - - - - - Returns the current object. - - - - - Interface definition for a node that has counters and summaries. - - - - - Interface definition for a node that has one or more summaries. - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify entry summary. - - - - Indicates whether node has summaries. - - - - - The total of this node's counter and child nodes. - - - - - The cumulative position of this node. - - - - - Marks all counters dirty in this node and child nodes. - - if set to true notify counter source. - - - - Interface definition for an object that has counters. - - - - - Returns the counter object with counters. - - - - - - Marks all counters dirty in this object and child nodes. - - if set to true notify counter source. - - - - Marks all counters dirty in this object and parent nodes. - - - - - Interface definition for a counter object. - - - - - Combines this counter object with another counter and returns a new object. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Compares this counter with another counter. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Indicates whether the counter object is empty. A cookie can specify - a specific counter type. - - The cookie. - - true if the specified cookie is empty; otherwise, false. - - - - - Returns the integer value of the counter. A cookie specifies - a specific counter type. - - The cookie. - - - - - Gets the Counter Kind. - - The kind. - - - - Default counter cookies for identifying counter types. - - - - - All counters. - - - - - Visible Counter. - - - - - A counter that counts objects that are marked "Visible". - - - - - Returns an empty TreeTableVisibleCounter that represents zero visible elements. - - - - - Initializes a with a specified number of visible elements. - - The visible count. - - - - Returns the visible count. - - - - - Returns the integer value of the counter. A cookie specifies - a specific counter type. - - The cookie. - - - - - Combines one tree object with another and returns the new object. - - The other. - The cookie. - - - - - Factory method creates a new counter object of the same type as this object. - - - - - - Called to combine the values of two counter objects. Results are saved back into this counter object. - A cookie can filter the operation to a limited set of counter types. - - The x. - The y. - The cookie. - - - - Combines the counter values of this counter object with the values of another counter object - and returns a new counter object. - - The other. - The cookie. - - - - - Compares this counter with another counter. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Indicates whether the counter object is empty. A cookie can specify - a specific counter type. - - The cookie. - - true if the specified cookie is empty; otherwise, false. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - The Counter Kind. - - - - - A tree table branch with a counter. - - - - - A tree table branch with a counter. - - - - - Initializes a new . - - - - - - Returns the left branch node cast to ITreeTableSummaryNode. - - - - - - Returns the right branch node cast to ITreeTableSummaryNode. - - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Walks up parent branches and reset summaries. - - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this branch belongs to. - - - - - Gets / sets the parent branch. - - - - - Indicates whether this node has summaries. - - - - - Initializes a new . - - - - - - Returns the cumulative counter position object of a child node with all counter values. - - The node. - - - - - Returns the left branch node cast to ITreeTableCounterNode. - - - - - - Returns the right branch node cast to ITreeTableCounterNode. - - - - - - Returns the total of this node's counter and child nodes (cached). - - - - - Returns the cumulative position of this node. - - - - - Invalidates the counter bottom up. - - if set to true notify counter source. - - - - Marks all counters dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this branch belongs to. - - - - - Gets / sets the parent branch. - - - - - A tree leaf with value, sort key and counter information. - - - - - A tree leaf with value and summary information. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Called from when called the first time after summaries were invalidated. - - The empty summaries. - - - - - Returns the value as . - - - - - Walks up parent branches and reset summaries. - - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify summary array source. - - - - Returns the tree this leaf belongs to. - - - - - Gets / sets the parent branch. - - - - - Indicates whether the node has summaries. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns the cumulative position of this node. - - - - - Returns the value as . - - - - - Indicates whether the counter was set dirty. - - True if dirty; False otherwise. - - - - Returns the total of this node's counter and child nodes. - - - - - Reset cached counter. - - - - - Invalidates the counter bottom up. - - if set to true notify counter source. - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this leaf belongs to. - - - - - Gets / sets the parent branch. - - - - - A balanced tree with entries. - - - - - A balanced tree with entries. - - - - - Initializes a new . - - - - - - Marks all summaries dirty. - - if set to true notify summaries source. - - - - Returns an array of summary objects. - - - - - Inserts a object at the specified index. - - - - - - - Removes an object from the tree. - - - - - - Indicates whether an object belongs to the tree. - - - - - - - Returns the index of an object in the tree. - - - - - - - Appends an object. - - - - - - - Copies the elements of this tree to an array. - - - - - - - Returns a strongly typed enumerator. - - - - - - Indicates whether the tree has summaries. - - - - - Gets / sets a TreeTableWithSummaryEntry. - - - - - Initializes a new . - - - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Marks all counters dirty. - - - - - - Returns the total of all counters in this tree. - - - - - Returns the starting counter for this tree. - - - - - Overloaded. Returns an entry at the specified counter position. A cookie defines the type of counter. - - The search position. - The cookie. - - - - - Returns an entry at the specified counter position. A cookie defines the type of counter. - - The search position. - The cookie. - Indicates if the leftmost entry should be returned if multiple tree elements have the - same searchPosition. - - - - - Gets the entry at counter position. - - The start. - The search position. - The cookie. - - - - - Gets the entry at counter position. - - The start. - The search position. - The cookie. - if set to true prefer left most. - - - - - Returns the subsequent entry in the collection for which the specific counter is not empty. - A cookie defines the type of counter. - - The current. - The cookie. - - - - - Returns the previous entry in the collection for which the specific counter is not empty. - A cookie defines the type of counter. - - The current. - The cookie. - - - - - Returns the next entry in the collection for which CountVisible counter is not empty. - - The current. - - - - - Returns the previous entry in the collection for which CountVisible counter is not empty. - - The current. - - - - - Inserts a object at the specified index. - - The index. - The value. - - - - Removes an object from the tree. - - The value. - - - - Indicates whether an entry belongs to the tree. - - The entry. - - true if tree contains the specified entry; otherwise, false. - - - - - Returns the position of an object in the tree. - - The value. - - - - - Appends an object. - - The value. - - - - - Copies the elements of this tree to an array. - - The array. - The index. - - - - Returns a strongly typed enumerator. - - - - - - Gets / sets a TreeTableWithCounterEntry. - - - - - A strongly typed enumerator for the collection. - - - - - Initializes a new . - - - - - - Returns the current object. - - - - - An object that counts objects that are marked "Visible". It implements - the ITreeTableCounterSource interface and creates a . - - - - - Initializes the object with visible count. - - The visible count. - - - - Marks all counters dirty in this object and parent nodes. - - - - - Returns the counter object with counters. - - - - - - Marks all counters dirty in this object and child nodes. - - if set to true notify counter source. - - - - Interface definition for a summary object. - - - - - Combines this summary information with another object's summary and returns a new object. - - The other. - - - - - Provides a method. - - - - - Gets an array of summary objects. - - - - - Interface definition for an object that has summaries. - - - - - Returns an array of summary objects. - - An array of empty summary objects. - Returns True if summaries were recalculated; False if already cached. - An array of summary objects. - - - - Marks all summaries dirty in this object and child nodes. - - - - - Marks all summaries dirty in this object and parent nodes. - - - - - Marks all summaries dirty in this object only. - - - - - A strongly typed enumerator for the collection. - - - - - Initializes a new . - - - - - - Returns the current object. - - - - - Provides the base class for a strongly typed collection of key-and-value pairs. - - - This class is very similar to the - class. The main difference is that this version allows you to set the InnerHashtable. - only provides a Read-only property for the - InnerHashtable. - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new and associates it with a . - - The inner collection that will hold entries of this collection. - - - - Clears the contents of the instance. - - - - - Copies the elements to a one-dimensional at the specified index. - - The one-dimensional that is the destination of the objects copied from the instance. The must have zero-based indexing. - The zero-based index in an at which copying begins. - - - - Returns a that can iterate through the instance. - - - A for the instance. - - - - - Returns the enumerator. - - Enumerator. - - - - Performs additional custom processes before clearing the contents of the instance. - - - - - Returns the element with the specified key and value in the - instance. - - The key of the element to get. - The current value of the element associated with . - - A containing the element with the specified key and - value. - - - - - Performs additional custom processes before inserting a new element into the - instance. - - The key of the element to insert. - The value of the element to insert. - - - - Performs additional custom processes before removing an element from the instance. - - The key of the element to remove. - The value of the element to remove. - - - - Performs additional custom processes before setting a value in the instance. - - The key of the element to locate. - The old value of the element associated with . - The new value of the element associated with . - - - - Performs additional custom processes when validating the element with the specified key and value. - - The key of the element to validate. - The value of the element to validate. - - - - Adds the element with the specified key and value to the instance. - - - - - - - Returns the list of keys contained in the instance. - - - - - Returns the list of values contained in the instance. - - - - - Removes the number of elements contained in the - instance. - - - - - Removes the list of elements contained in the instance. - - - - - Gets / sets the list of elements contained in the instance. - - - - - Indicates whether - the is Read-only. - - - - - Indicates whether the has a fixed size. - - - - - Indicates whether access to - the is synchronized (thread-safe). - - - - - Gets an object that can be used to - synchronize access to the . - - - - - Implements a drop-down button control for selecting colors. - - - The ColorPickerButton class is a button-type control that pops-up an instance of the Syncfusion - when clicked. This class derives from the Windows Forms Button class and - hence can be used in place of a regular button control. The ColorPickerButton's ColorUIControl component - can be accessed through the property. - - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - Creates a new instance of the class. - - - - - Process touch gestures - - Gesture messages - true/false - - - - Overridden. See . - - - - - Sets the font to ColorUI control - - - - - Creates a default instance of a . - - The instance. - - - - Initializes the drop-down container. Adds a . - - - - - - - - - - Called when the drop-down has been closed. - - - - - - - - Overridden. See . - - - - - The ColorSelected event occurs when a color is selected from the drop-down . - - - - - Returns a reference to the drop-down ColorUIControl. - - A reference to the instance. - - - - Gets or sets the size of the drop-down . - - A Size value. - - - - Indicates whether the drop-down is visible. - - True if the drop-down is visible; False otherwise. By default, it is False. - - - - Indicates whether the is set as the button backcolor. - - True if the SelectedColor is used; False otherwise. By default, it is False. - - - - Indicates whether the is set as the button text value. - - True if the SelectedColor is used; false otherwise. By default, it is False. - - - - Gets or sets the current selected color. - - A color value. - - - - Gets or sets the color tabpages to be displayed by the drop-down . - - A value. The default is ColorUIGroups.All. - - - - Gets or sets the tab associated with this colorgroup as the selected tab in the drop-down . - - A value. - - - - Gets or sets the text displayed on the drop-down 's custom colors tab. - - A String value. - - - - Gets or sets the text displayed on the drop-down 's standard colors tab. - - A String value. - - - - Gets or sets the text displayed on the drop-down 's system colors tab. - - A String value. - - - - Returns a reference to the that will contain the . - - A reference to the instance. - - - - Gets/Sets if Dropdown opened using Touch Gesture - - - - - Specifies constants that define the color groups for the ColorPicker controls. - - - The ColorUIGroup's enumeration is used for specifying the color tab pages to be - displayed in the and the controls. -

This enumeration has a FlagsAttribute that allows a combination of its member values.

-
-
- - - None of the color groups are displayed. - - - - - Displays the custom colors group. - - - - - Displays the standard colors group. - - - - - Displays the system colors group. - - - - - Displays all color groups, but not displays UserColors groups. - - - - - Displays the user colors group. - - - - - Displays all color groups. - - - - - Specifies constants that define the selected color group in the ColorPicker controls. - - - The ColorUISelectedGroup enumeration is used for specifying the selected color group in the - and the controls. - - - - - No color group is selected. - - - - - The custom colors group is selected. - - - - - The standard colors group is selected. - - - - - The system colors groups is selected. - - - - - The user colors groups is selected. - - - - - Provides a standard interface for selecting colors. - - - The ColorUIControl implements a palette type visual interface for selecting colors at - run-time similar to the color picker drop-down provided by the Visual Studio.NET environment. - The ColorUIControl class offers a selection of colors divided into three color groupings arranged as - tabs. The three color groupings are the SystemColors consisting of the colors defined - within the class, the StandardColors consisting of the colors defined within - and a CustomColors providing a customizable color palette. - The ColorUIControl control can be used either as a regular control hosted within a parent container - or it can be used as a drop-down control in combination with the control. - - - - The following code creates a ColorUIControl, sets the color groups and adds an event handler - for the ColorUIControl.ColorSelected event: - - - private void InitializeColorUIControl() - { - // Create the ColorUIControl. - Syncfusion.Windows.Forms.ColorUIControl clrUIControl = new Syncfusion.Windows.Forms.ColorUIControl(); - - // Set the ColorGroups to be displayed - clrUIControl.ColorGroups = ( Syncfusion.Windows.Forms.ColorUIGroups.CustomColors| - Syncfusion.Windows.Forms.ColorUIGroups.StandardColors| - Syncfusion.Windows.Forms.ColorUIGroups.SystemColors ); - - // Set the initially selected group and color. - clrUIControl.SelectedColorGroup = Syncfusion.Windows.Forms.ColorUISelectedGroup.SystemColors; - clrUIControl.SelectedColor = SystemColors.ControlDark; - - // Provide a handler for the ColorUIControl.ColorSelected event. - clrUIControl.ColorSelected += new EventHandler(this.OnColorSelected); - } - - // Handler for the ColorUIControl.ColorSelected event. - private void OnColorSelected(object sender, System.EventArgs e) - { - Color clrselected = (sender as ColorUIControl).SelectedColor; - } - - - Private Sub InitializeColorUIControl() - - ' Create an instance of the ColorUIControl. - Me.clrUIControl = New Syncfusion.Windows.Forms.ColorUIControl() - - ' Set the color groups to be shown. - Me.clrUIControl.ColorGroups = Syncfusion.Windows.Forms.ColorUIGroups.CustomColors Or Syncfusion.Windows.Forms.ColorUIGroups.StandardColors - - ' Set the initially selected group. - Me.clrUIControl.SelectedColorGroup = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors - - ' Subscribe to the ColorUIControl.ColorSelected event. - AddHandler Me.clrUIControl.ColorSelected, New System.EventHandler(AddressOf clrUIControl_ColorSelected) - - End Sub - - ' Handler for the ColorUIControl.ColorSelected event. - Private Sub clrUIControl_ColorSelected(ByVal sender As Object, ByVal e As System.EventArgs) - - Dim clrselected As Color = Me.clrUIControl.SelectedColor - - End Sub 'clrUIControl_ColorSelected - - - - - - Default size of the control - - - - - - User tab page. - - - - - User colors palette. - - - - - User custom colors. - - - - - User custom colors collection. - - - - - User colors collection. - - - - - Enable stretch custom colors panel on resize. - - - - - Enable stretch user colors panel on resize. - - - - - Specifies an advanced appearance this control. - - - - - - - - - - - - - - Specifies a value to show / hide the user selection color swatches. - - - - - Specifies TabControl item height - - - - - Update the colors when the style is changed. - - - - - Get or Set of Skin Manager Interface - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Creates a new instance of the class. - - - - - - - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Takes the given color and looks for an instance in the ColorValues table. - - - - - Retrieves an array of color constants for the given object. - - - - - Overridden. See . - - - - - - - - - Overridden. See . - - - - - Raises the event. - - A value that contains the event data. - - - - Paints a representative value of the given object to the provided canvas. - - The instance containing the event data. - - - - Paints a representative value of the given object to the provided canvas. - - The value to paint. - Gets the System.Drawing.Graphics object with which painting should be done. - Gets the rectangle that indicates the area in which the painting should be done. - - - - Overridden. See . - - - - - Displays the control as a drop-down component. - - The initially selected color. - - - - Ends the color display drop-down. - - - - - Gets or sets the theme forecolor of the ColorUI - - - - - Gets or sets the theme color of the ColorUI - - - - - Gets or sets a value to show / hide the user selection color swatches. - - - - - Gets or sets custom color to scroller. - - - - - Gets or sets enable stretch custom colors panel on resize. - - - - - Gets or sets an advanced appearance for the ColorUI. - - - - - Gets or sets enable stretch user colors panel on resize. - - - - - Gets user custom colors. - ColorGroups must be UserColors for use this property. - - - - - Gets user colors. - ColorGroups must be UserColors for use this property. - - - - - Gets or sets the text displayed on the user colors tab. - - - - - The ColorSelected event occurs when a color is selected from one of the palettes in the . - - - - - Gets or sets the color tabpages to be displayed by the control. - - A value. The default is ColorUIGroups.All. - - - - Makes the tab associated with this color group the selected tab. - - A value. - - - - Gets or sets the text displayed on the custom colors tab. - - A String value. - - - - Gets or sets the text displayed on the standard colors tab. - - A String value. - - - - Gets or sets the text displayed on the system colors tab. - - A String value. - - - - Gets or sets the current selected color. - - A value. - - - - Gets or sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Overridden. See . - - - - - Gets the . - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns an array of standard colors. - - - - - Retrieves the array of custom colors for our use. - - - - - Returns an array of system colors. - - - - - Color array. - - - - - Control for invalidate if color array was chenged. - - - - - Assigns the value for Oldvalue - - - - - - - - - - - - - - - - - - - - - - - - - Update the control style. - - - - - Raises the System.Windows.Forms.Control.Paint event. - - A System.Windows.Forms.PaintEventArgs that contains the event data. - - - - Paints the background of the control. - - A System.Windows.Forms.PaintEventArgs that contains information about the control to paint - - - - Raises the System.Windows.Forms.Control.GotFocus event. - - An System.EventArgs that contains the event data. - - - - Stretch color cell on resize. - - - - - Gets standard colors array; - - - - - Gets or sets stretch color cell on resize. - - - - - ColorUI Style - - - - - Classic appearance. - - - - - Office2010 like appearance. - - - - - Office2016 colorful appearance. - - - - - Office2016 white theme appearance. - - - - - Office2016 black theme appearance. - - - - - Office2016 dark gray appearance. - - - - - Metro-like appearance. - - - - - CheckBoxAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Special type converter that can convert the associated type to a byte array and vice-versa when - requested by the design-time, for example. - - - - - - - - - - - - - - - - - An abstract class that encapsulates a command to be executed at a later point in time. - - - - - Execute the command this object represents. - - - - - Get a description for the command. - - - - - Still being discussed if they should be included in shared. - - - - - - - - - - - Still being discussed if they should be included in shared. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Provides support for the method that returns a . - - - - - Returns a that is associated with the current object. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Empty attributes array for optimization. - - - Hide default constructor. Allow to see it only inheritors. - - - - This is a base class for DisposableWithDisposedProp. It implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern but it does not - implement a finalizer. If you need finalization you need to derive from Disposable - or add a finalizer to your derived class and manually call Dispose from the Finalizer. - - - - - Storage for IsDisposed property. True - object is disposed, - otherwise object is still alive and available for user use. - - - - - Releases all resources used by the Component. - - - Releases all resources used by the Component. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Allows to detect if object is disposed or not. True indicates object is disposed, - otherwise indicates object is still alive and ready for use. - - - - - This class provides a base class that implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern. - - If you derive from this class, you only need to override the protected - Dispose method and check the disposing parameter. - - - - . - In C# and C++, finalizers are expressed using destructor syntax. - - - - - - - - - - - Clear collection and then reset it reference to NULL. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dispose array items and then clear collection and reset it reference to NULL. - - - - - Gets the value of a property from some object - - Object from which we want to take the value of property - Name of the property from which we want to take value - Type of value? which to return - Value which we want to take - - - - Specifies the expected effect of the change in property of an object / Control. - - - Used by the class. - - - - - The Control needs a repaint due to change in property's value. - - - - - The Control needs to be laid out due to change in a property's value. - - - - - No effect when there is change in a property's value. - - - - - Provides data for the delegate. - - - - - Creates an instance of the SyncfusionPropertyChangedEventArgs class. - - A PropertyChangeEffect value. - The name of the property. - The old value cast into an object. - The new value cast into an object. - - - - Gets / sets the of this change in property value. - - The . - - - - The old value of the property before it changes. - - - The object representing the old value. This can be cast to - the type of the property. - - - - - The new value of the property after it changes. - - - The object representing the new value. This can be cast to - the type of the property. - - - - - Represents the method that will handle the PropertyChanged event of - certain classes. - - The source of the event. - A object that - contains the event data. - - - - A class implements this interface to let it be known that it provides - a event. - - - The class makes use of this interface when the items - in its list implement it. The listens to this event and - forwards the event args using its own event. - - - - - Occurs when one of the object's property changes. - - - This event provides a generic way of notifying changes - in an object's property, along with the old value, new value - and the PropertyChangeEffect. - - - - - Used internally to expose the DesignMode property of certain component-derived - classes. - - - - - Indicates whether the component is in design-mode. - - - - - Indicates the current state of the operation. - - - - - The operation is starting. - - - - - The operation is in progress. - - - - - The operation is finished. - - - - - This class listens to a list of and fires a event - if the operation takes longer than a specified . - - - Derive from this class if you want to add support for displaying status messages in your - status bar. - operates on the same thread - where the long operation takes place. See the class how to - give feedback about the operation on a different thread and allow the user to cancel the - operation by pressing the Cancel button in a dialog. - - - - - - - - - Adds an that this object will listen to and - provide user feedback for. - - An object that implements the interface. - - - - Removes an from the list of feedback providers. - - An object that implements the interface. - - - - Raises the event. - - An that contains the event data. - - - - Occurs to indicate the progress of an ongoing operation. - - - - - Gets / sets the delay in milliseconds before Progress events about an operation should be raised. - - - - - Holds status information about an ongoing operation. - - - - - Initializes the event args. - - The current status of the operation. - The name of the operation. - A textual description for the operation. - The percentage of work the operation completed so far or -1 if the operation - is not able to calculate a meaningful percentage value. - The number of milliseconds that passed since the operation started. - Indicates whether the operation can be canceled by the user. - Indicates whether changes made by the operation can be rolled back if the - operation is canceled by the user. - - - - Returns the percentage of work the operation completed so far; -1 if the operation - is not able to calculate a meaningful percentage value. - - - - - Returns the name of the operation. - - - - - Returns the textual description for the operation. - - - - - Indicates whether the operation can be canceled by the user. - - - - - Indicates whether changes made by the operation can be rolled back if the - operation is canceled by the user. - - - - - Indicates whether the operation should roll back. - - - - - Returns the current status of the operation. - - - - - Returns the number of milliseconds that passed since the operation started. - - - - - Represents the method that will handle the OperationFeedbackEvent event of certain classes. - - The source of the event. - An OperationFeedbackEventArgs object that - contains the event data. - - - - The class that implements the component where operations are operated on should - implement this interface. - - - - - Raises an RaiseOperationFeedbackEvent. - - An OperationFeedbackEventArgs object that - contains the event data. - - - - Returns the stack for nested operations. - - - - - Occurs to indicate the progress of an ongoing operation. - - - - - Use this class when you want to provide feedback during time-consuming operations or - if you want the user to be able to abort an operation. - - - You need to implement IOperationFeedbackProvider in your class. - - // interface IOperationFeedbackProvider - public event OperationFeedbackEventHandler OperationFeedback; - Stack feedbackStack = new Stack(); - void IOperationFeedbackProvider.RaiseOperationFeedbackEvent(OperationFeedbackEventArgs e) - { - if (OperationFeedback != null) - OperationFeedback(this, e); - } - Stack IOperationFeedbackProvider.FeedbackStack - { - get { return feedbackStack; } - } - - - When you implement an operation that you want to be cancellable or where - you want to show feedback (e.g. display percentage in status bar) you - do this by creating an OperationFeedback object inside a using statement. - - Example: - - using (OperationFeedback op = new OperationFeedback(this)) - { - op.Name = "Cell"; - op.Description = "Command Description"; - op.AllowCancel = true; - op.AllowNestedProgress = true; - op.AllowNestedFeedback = false; - while (n++ != 100) - { - if (op.ShouldCancel()) - return; - - op.PercentComplete = n; - } - } - - It is also supported in nest operations in case your method calls other - routines that also use OperationFeedback. AllowNestedProgress will disable - OperationFeedback and OperationProgress / ShouldCancel in nested routines. - AllowNestedFeedback will simply prohibit changing the description. But - the object will still fire OperationProgress events. - - A sample for a consumer is the DelayedWaitCursor class. You can assign a DelayedWaitCursor - to a grid table. The DelayedWaitCursor object will listen to OperationFeedback events and - automatically change the cursor to a wait cursor if operations take more time. - - - - - - - - Initializes a new OperationFeedback object and pushes the object - onto the providers feedback stack. - - Component that implements IOperationFeedbackProvider. - - - - Closes the current operation. Removes the object from FeedbackStack. - - - - - Call this method to signal the start of the operation. If you do not explicitly - call this routine, it will be called automatically the first time Progress or ShouldCancel - is called. - - - - - Call this method to signal the end of the operation. If you do not explicitly - call this routine it will be called automatically when you are using the "using" - statement in C# and / or when Dispose is called. - - - - - Call this method inside a loop from your method that implements the operation. - - - - - Gets / sets the number of series if you have a series of nested operations. - - - If you know the number of operations in advance, you should specify this value. - This allows OperationFeedback to adjust the percentage display to reflect the percentage - in the overall operation. If you have two operations, the first operation will show percentage - from 0 to 50 and the second from 51 to 100. In the original program code for these operations, you - can keep your original calculations (setting percentage from 0 to 100). - OperationFeedback simply divides the percentage by SeriesCount when it fires the Progress event. - - - - - Indicate whether this operation is nested inside another operation. - - - - - Indicates whether nested operations are enabled / disabled. - - - - - Indicates whether calls to Progress or ShouldCancel have any effect. - - - - - Indicates whether the percent complete and description should be shown or discarded - for this operation. - - - - - Indicates whether percentage display and description for nested operations are enabled / disabled. - - - - - Indicates whether the user wants to abort the operation. ShouldCancel will call - Progress. - - - - - Indicates whether cancelling the current operation is enabled / disabled. - - - - - Indicates whether rolling back (undoing) the current operation is enabled / disabled. - - - - - Indicates whether the canceled operation should be rolled back. - - - - - Returns False. - - - - - Gets / sets the short name of the operation. - - - - - Returns the number of ticks elapsed since the operation was started. - - - - - Gets / sets the description of the operation. Use localized string (SR.GetString("...")) if necessary. - - - - - Gets / sets the progress in percentage for the current operation. - - - - - Returns the number of counts of calls to Progress. - - - - - Specifies whether a property should be shown in the ToString result. - - - - - - Specifies that a property should be shown in the ToString result. - This field is Read-only. - - - - - Specifies that a property should not be shown in the ToString result. - This field is Read-only. - - - - - The default value for TracePropertyAttribute. (No) - - - - - Initializes a new instance of the class. - - - if a property should be shown in ToString result; otherwise. The default is . - - - - - - - Overridden. See . - - - - - - - - Indicates whether a property is shown in the ToString result. - - - - - Helper class for creating a string concatenating the string representation of all properties in an object. - - - The static method of this helper class will loop through any property - in a given object and check if the has been set. If it has - been set, the string representation of the property will be appended to the resulting string. - - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; False otherwise. - - - - This method will loop through any property in a given object and append the - string representation of the property if the - has been set. - - - - - This is a base class for events of the Syncfusion libraries. It supports writing - properties in its ToString() method. - - - - - This method will loop through all properties in a derived class and append the - string representation of the property if the - has been set. - - - - - Provides data for an event that indicates success or failure. - - - - - Overloaded. Initializes a new instance of the SyncfusionSuccessEventArgs class with the Success property set to True. - - - - - Initializes a new instance of the SyncfusionSuccessEventArgs class with the Success property set to the given value. - - Indicates whether an operation was successful. - - - - Indicates whether an operation was successful. - - - - - Provides data for a event that can be handled by a subscriber and overrides the event's default behavior. - - - - - Overloaded. Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled property set to False. - - - - - Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled property set to the given value. - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Provides a basic implementation for the ITypeDescriptorContext interface and can be used - together with WindowsFormsEditorService to launch an Editor directly outside a property grid. - - - The grid uses this class to display a collection editor: - - public static DialogResult ShowGridBaseStylesMapDialog(object instance, string propertyName) - { - GridBaseStyleCollectionEditor ce = new GridBaseStyleCollectionEditor(typeof(ArrayList)); - WindowsFormsEditorServiceContainer esc = new WindowsFormsEditorServiceContainer(null); - PropertyDescriptor pd = TypeDescriptor.GetProperties(instance)[propertyName]; - TypeDescriptorContext tdc = new TypeDescriptorContext(instance, pd); - tdc.ServiceProvider = esc; - object v = ce.EditValue(tdc, esc, ((ICloneable) pd.GetValue(instance)).Clone()); - if (esc.DialogResult == DialogResult.OK) - { - pd.SetValue(instance, v); - } - return esc.DialogResult; - } - - - - - - - Initializes a TypeDescriptorContext for the given object and PropertyDescriptor. - - The instance of the property to be edited. - A PropertyDescriptor that contains information about the property. - - - - Gets / sets the associated IServiceProvider. - - An IServiceProvider value. - - - - Provides support for the method that returns a . - - - - - Returns a collection of property descriptors. - - - - - - Provides a basic implementation for the IWindowsFormsEditorService and IServiceProvider interfaces and can be used - together with TypeDescriptorContext to launch an Editor directly outside a property grid. - - - The grid uses this class to display a collection editor. - - public static DialogResult ShowGridBaseStylesMapDialog(object instance, string propertyName) - { - GridBaseStyleCollectionEditor ce = new GridBaseStyleCollectionEditor(typeof(ArrayList)); - WindowsFormsEditorServiceContainer esc = new WindowsFormsEditorServiceContainer(null); - PropertyDescriptor pd = TypeDescriptor.GetProperties(instance)[propertyName]; - TypeDescriptorContext tdc = new TypeDescriptorContext(instance, pd); - tdc.ServiceProvider = esc; - object v = ce.EditValue(tdc, esc, ((ICloneable) pd.GetValue(instance)).Clone()); - if (esc.DialogResult == DialogResult.OK) - { - pd.SetValue(instance, v); - } - return esc.DialogResult; - } - - - - - - - Initializes a WindowsFormsEditorServiceContainer with the given IServiceProvider. - - An IServiceProvider. Can be NULL. - - - - Occurs immediately before the Dialog is displayed. The ControlEventArgs.Control - the form. - - - - - Returns the dialog result of the edit operation. - - - - - Gets / sets the associated IServiceProvider. - - - - - Extends the class to handle currency input - and validation. - - - The CurrencyTextBox is derived from the textbox and provides all the functionality - of a text box and adds additional functionality of its own. - - Collecting currency input in a consistent format requires a lot of validation code - that needs to be built into the application when using the Windows Forms textbox control. - The CurrencyTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter currency data. - - - The CurrencyTextBox is also closely tied to the globalization settings of the - operating system for Currency related properties. Please refer to the - class for a detailed explanation of globalization and Currency related attributes. - - - The CurrencyTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - - The CurrencyTextBox also raises a event when - inappropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for currency related issues. - - - - - - - // Create the Calculator Control. - this.currencyTextBox1 = new CurrencyTextBox(); - - // Set the initial value. - this.currencyTextBox1.Text = "$1.00"; - - // Set the clipmode. - this.currencyTextBox1.ClipMode = CurrencyClipModes.IncludeFormatting; - - // Set formatting properties. - this.currencyTextBox1.CurrencyDecimalDigits = 2; - this.currencyTextBox1.CurrencyDecimalSeparator = "."; - this.currencyTextBox1.CurrencyGroupSeparator = ","; - this.currencyTextBox1.CurrencyGroupSizes = new int[] {3}; - this.currencyTextBox1.CurrencyNegativePattern = 1; - this.currencyTextBox1.CurrencyNumberDigits = 27; - this.currencyTextBox1.CurrencyPositivePattern = 0; - this.currencyTextBox1.CurrencySymbol = "$"; - this.currencyTextBox1.ForeColor = System.Drawing.Color.Black; - this.currencyTextBox1.NegativeColor = System.Drawing.Color.Red; - this.currencyTextBox1.NegativeSign = "-"; - this.currencyTextBox1.PositiveColor = System.Drawing.Color.Black; - - this.currencyTextBox1.Size = new System.Drawing.Size(256, 20); - this.currencyTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - - // Add the CurrencyTextBox control to the form. - this.Controls.Add(this.currencyTextBox1); - - - - - ' Create the CurrencyTextBox - Me.currencyTextBox1 = New CurrencyTextBox - ' Set the initial value - Me.currencyTextBox1.Text = "$1.00" - ' Set the clipmode - Me.currencyTextBox1.ClipMode = CurrencyClipModes.IncludeFormatting - ' Set formatting properties - Me.currencyTextBox1.CurrencyDecimalDigits = 2 - Me.currencyTextBox1.CurrencyDecimalSeparator = "." - Me.currencyTextBox1.CurrencyGroupSeparator = "," - Me.currencyTextBox1.CurrencyGroupSizes = New Integer() {3} - Me.currencyTextBox1.CurrencyNegativePattern = 1 - Me.currencyTextBox1.CurrencyNumberDigits = 27 - Me.currencyTextBox1.CurrencyPositivePattern = 0 - Me.currencyTextBox1.CurrencySymbol = "$" - Me.currencyTextBox1.ForeColor = System.Drawing.Color.Black - Me.currencyTextBox1.NegativeColor = System.Drawing.Color.Red - Me.currencyTextBox1.NegativeSign = "-" - Me.currencyTextBox1.PositiveColor = System.Drawing.Color.Black - Me.currencyTextBox1.Size = New System.Drawing.Size(256, 20) - Me.currencyTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right - ' Add the CurrencyTextBox control to the form - Me.Controls.Add(Me.currencyTextBox1) - - - - - Extends the class to handle numeric input - and validation. - - - The NumberTextBoxBase class is not to be used directly. Defines the base class for - controls that provide specific formatting and validation for different data types. - - - - - An extended textbox that provides advanced border styles. - - - The property provides you advanced 3D border options. The - property lets you specify custom single border colors. - - - - - Overflow indicator border indent. - - - - - Default windows message for gesture support. - - - - - Default windows message for Mouse captured. - - - - - Overflow indicator size. - - - - - Overflow indicator element size. - - - - - Overflow indicator border color. - - - - - Overflow indicator foreground element color. - - - - - Overflow indicator ToolTip offset. - - - - - Default size of the control - - - - - To check whether the scaling of the TextBoxExt; - - - - - Default font style of the control - - - - - Font which stored after changed in design - - - - - - - - - - - - - - - - - - - - - - - - - - - Parent sub class. - - - - - overflow indicator visibility. - - - - - Last overflow indicator state. - - - - - Overflow indicator ToolTip. - - - - - Left last painted overflow indicator rectcangle. - - - - - Right last painted overflow indicator rectcangle. - - - - - - - - - - Collects the boolean value if Control is selected by Touch or Mouse control. - - - - - Show overflow indicator ToolTip. - - - - - - - - - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - MetroColor. - - - - - - - - - - - - - - - - - - - Used to set the Hover and Focussed border color - - - - - Event will be triggered when the TextBoxExt lost its Focus. - - - - - - - Creates a new instance of the TextBoxExt class. - - - - - To Show/Display the virtual keyboard - - - - - - To hide the touch keyboad. - - - - - - - - - - Dispose all created internal object - - - - - - - - - - - - Raises the MaximumSizeChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnMaximumSizeChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMaximumSizeChanged - in a derived class, be sure to call the base class's - OnMaximumSizeChanged method so that registered - delegates receive the event. - - - - - Event will be triggered while clicking on the TextBoxExt. - - - - - - Sends the specified message to the default windows procedure. - - - - - - - - - - - - Raises the MinimumSizeChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnMinimumSizeChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMinimumSizeChanged - in a derived class, be sure to call the base class's - OnMinimumSizeChanged method so that registered - delegates receive the event. - - - - - Raises the CharacterCasingChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnCharacterCasingChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnCharacterCasingChanged - in a derived class, be sure to call the base class's - OnCharacterCasingChanged method so that registered - delegates receive the event. - - - - - Raises the BorderSidesChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderSidesChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OmBorderSidesChanged - in a derived class, be sure to call the base class's - OnBorderSidesChanged method so that registered - delegates receive the event. - - - - - Raises the BorderColorChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderColorChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorderColorChanged - in a derived class, be sure to call the base class's - OnBorderColorChanged method so that registered - delegates receive the event. - - - - - Raises the Border3DStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorder3DStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorder3DStyleChanged - in a derived class, be sure to call the base class's - OnBorder3DStyleChanged method so that registered - delegates receive the event. - - - - - Raises the ThemesEnabledChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnThemesEnabledChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnThemesEnabledChanged - in a derived class, be sure to call the base class's - OnThemesEnabledChanged method so that registered - delegates receive the event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Overflow indicators drawing. - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - Return GDI text size. - - - - - - - Send WM_NCCALCSIZE message. - - - - - Send WM_NCCALCSIZE message and invalidate NC area. - - - - - Return overflow indicator state. - - - - - - - - - - - - - - - - Get or Set of Skin Manager Interface - - - - - Draw one overflow indicator. - - - - - - - - Draw overflow indicator foregraund element. - - - - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - - - - - Gets or sets the metrocolor. - - - - - Gets or sets the FocusBorderColor - - - - - Enables the FocusBorderColor property - - - - - Gets or sets can show overflow indicator ToolTip. - - - - - Gets or sets overflow indicator ToolTip text. - - - - - Gets or sets overflow indicator visibility. - - - - - Indicates whether the text should be drawn active even when the control is disabled. - - False for default textbox behavior; True to draw the text enabled even when the control is - disabled. - - - - Gets or sets the border sides for which you want the 3D border style applied. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the 3D border style for the control. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the single border color for the control. - - - This property is used only when BorderStyle is FixedSingle. - - - - - Gets or sets the Hover and Focussed border color for Office2016 styles. - - - - - Last overflow indicator state. - - - - - Overflow indicator ToolTip. - - - - - Indicates whether XPThemes should be used when BorderStyle is set to Fixed3D. - - True to use XPThemes; False otherwise. Default is True. - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the maximum size for the control. - - - - - Gets or sets the minimum size for the control. - - - - - Gets or sets the case of characters as they are typed. - - - - - Gets or sets corner radius of control. - - Radius has to be not less than zero or half of minimum dimension (width or height) of control. - If radius is zero, control has standard rectangular appearance. - - - - - Gets or sets the near image. - - - - - Gets or sets the far image. - - - - - This event is raised if the BorderSides property is changed. - - - - - This event is raised if the Border3DStyle property is changed. - - - - - This event is raised when the value of the BorderColor property is changed. - - - - - This event is raised if the ThemesEnabled property is changed. - - - - - This event is raised if the MaximumSize property is changed. - - - - - This event is raised if the MinimumSize property is changed. - - - - - This event is raised if the CharacterCasing property is changed. - - - - - Office2010 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets or sets the Office2016 colors for the Office2016 style. - - - - - Office2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets a value indicating whether this is initializing. - - true if initializing; otherwise, false. - - - - The NumberFormatInfo object that will specify the - localized attributes for displaying the currency - value. - - - - - Forecolor to be used when the value is negative. - - - - - Gets or sets a value indicating whether to overrite the immediate text. - - - - - Specifies when the MinMax Validation Need to be performed. - - - - - Specifies the Action To be Performed when Validation Fails - - - - - Forecolor to be used when the value is positive. - - - - - Forecolor to be used when the value is zero. - - - - - Indicates whether the current value is negative. - - - - - The clip mode specifies the kind of data to be returned - when copied to the clip board. - - - - - The context menu for the text box. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - String for holding undo buffer. - - - - - String for holding redo buffer. - - - - - Internal variable to suppress TextChanged event. - - - - - The currently selected culture. - - - - - Indicates whether the special culture values need to be applied. - - - - - Array of cultures that require RightToLeft by default. - - - - - The UseUserOverride value to be passed in when creating CultureInfo objects. - - - - - The NULL string value. - - - - - Indicates whether the control is in NULL state. - - - - - The IFormatProvider for formatting NULL entries. - - - - - - - - - - Indicates whether the NULL String should be used. - - - - - Indicates whether an operation is to be rolled back because of an error. - - - - - Support for culture initialization. - - - - - Support for NumberFormatInfo initialization. - - - - - Indicates whether to allow the KeyPress event to be raised but no other action to be taken - by the base class. - - - - - Indicates whether to allow the KeyDown event to be raised but no other action to be taken - by the base class. - - - - - Indicates whether the current value can be held in numeric form or has - been 'dirtied' by user input. - - - - - Used when the NegativeSign is keyed in when the value is zero. - - - - - Indicates whether the control is to listen to the - event and refresh the culture. (Only if the SpecialCultureValue is set to CurrentCulture.) - - - - - - - - - - This will be set to True when the negative key is input with the entire contents of the - textbox selected. - - - - - Custom backcolor that will be used when the control is Read-only. - - - - - Gets or Sets the BackGroundColor of the control. - - - - - Overloaded. Creates an object of type NumberTextBox. - - - The NumberTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - Implementation of the interface. - - - - - Initialize the context menu. - - - - - - - - - - This method raises the ValidationError event. - - The text that was input. - The start position of the error. - - See the method for more information. - - - - - Invokes the ValidationError event. - A ValidationErrorEventArgs that contains the event data. - - - The OnValidationError method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnValidationError in a derived - class, be sure to call the base class's OnValidationError method so that - registered delegates receive the event. - - - - - Overrides method. - - The event data. - - Raises the event when there is unacceptable - text in the control. - - - - - Validates the control. - - Indicates whether the validation error is to be raised. - - - - Refreshes and reapplies the culture specific settings. - - - Call this function when there has been a change in the CurrentCulture of the - application. - - - - - - - - - - Resets the property to its default value. - - - - - - - - - - - Resets the property to its default value. - - - - - - - - Indicates whether the NegativeSign should not be serialized if the value is the same as the one for the - current culture. - - True if the property should be serialized; otherwise False. - - - - Resets the value to the culture specific value. - - - - - Returns a copy of the current NumberFormatInfo. - - - - - - Indicates whether NegativeColor property value should be serialized. - - - - - Resets NegativeColor property to default value. - - - - - Indicates whether ZeroColor property value should be serialized. - - - - - Resets ZeroColor property to default value. - - - - - Indicates whether PositiveColor property value should be serialized. - - - - - Resets ResetPositiveColor property to default value. - - - - - Raises the event. - - A that contains the event data. - - - - Sets the control's forecolor depending on whether the - current value is negative. - - - See the and - properties. - - - - - Takes the incoming text, formats it based on the - rules and settings prevailing currently and sets - the display accordingly. - Returns the length of the new text after setting the - display. - - - - - - - Takes the incoming text, formats it based on the - rules and settings prevailing currently and sets - the display accordingly. - Returns the length of the new text after setting the - display. - - - - - - - Formats the given text according to the current setting. - - - - - - - - - - - - - - Resets the ControlBackColor property to its default value. - - - - - Resets ReadOnlyBackColor property to default value. - - - - - Gets the clip text. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Handles the Context popup. - - The context menu. - - - - - Handles the Undo menu click. - - The undo menu. - The event data. - - - - Handles the Cut menu. - - Cut menu. - The event data. - - - - Handles the Copy menu. - - Copy menu. - The event data. - - - - Handles the Delete menu. - - Delete menu. - The event data. - - - - Handles the Select All menu. - - Select All menu. - The event data. - - - - Handles the Paste menu. - - Paste menu. - The event data. - - - - This method will Undo the previous operation. - - - This method is invoked when the Undo context menu item is - clicked or the shortcut (CTRL+Z) is clicked. You can override - this method to provide your own implementation for Undo. - - - - - Selects all text in the text box. - - - This method is called when the menu item "Select All" or its - shortcut (CTRL+A) is used. This method overrides the base - implementation in . - Override this method to provide your own implementation for - SelectAll. - - - - - Pastes the data in the clipboard into the NumberTextBox control. - - - The data will be formatted before being pasted into the text box. - - - - - Copies the content of the NumberTextBox to the clipboard. - The ClipMode property dictates what gets copied. - - - If the text of the control is $56,000.12, this is the content - that will be copied to the clipboard based on whether the ClipMode - is set to or - . - - IncludeFormatting - $56,000.12 - ExcludeFormatting - 56000.12 - - - - - - Cuts the selected data to the clipboard. - - - The selected text in the CurrencyTextBox will be deleted and the content - will be copied to the clipboard. - - - - - Deletes the current selection of the text box. - - - This method is invoked by the ContextMenu "Delete" menu item of the - text box through the "Del" shortcut or by selecting the menu item. - If you want to override the default behavior of this method, derive - and override this method to provide your own implementation. - - - - - The NumberTextBox accepts numeric digits only. This method checks - for numeric input. - - The character to be checked. - True if the character is valid; false otherwise. - - - - Overloaded. Override this method to provide an implementation for parsing - a negative value. - - The text to be parsed. - True if the value is negative; false otherwise. - - - - Override this method to provide an implementation for parsing - a negative value. - - The text to be parsed. - True if the value is negative; false otherwise. - - - - Sets the start position to value passed and sets the - SelectionLength to be zero. - - The start of the selection. - - - - Returns the first data position which is the index within the current - string content of the edit control at which data can be - inserted. - - The index of the first possible data position. - - - - Returns the next valid position for receiving data input. - - The position to start seeking from. - Indicates whether the start position is after the decimal separator. - Indicates whether the backspace key has been pressed. - The index in the string that is valid for input. - - - - Overloaded. Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Returns the previous valid data position for text input. - - The position to seek from. - - - - - Overloaded. Override this to return DecimalSeparator in NumberTextBox. - - - - - Override this to return DecimalSeparator in NumberTextBox. - - - - - Overloaded. Override this to return GroupSeparator in NumberTextBox. - - - - - Override this to return GroupSeparator in NumberTextBox. - - - - - Deletes the currently selected text. - - The content of the text box after deletion. - - - - Deletes the currently selected text. - - The content of the text box after deletion. - - - - Returns the first data position that can take valid input. - - The start position to seek from. - The index of the first valid position. - - - - Checks if the text can be inserted subject to the constraints. - - The current content of the text box. - The text to be inserted. - The length of the acceptable string to be inserted. - - - - - - - - - - - Indicates whether the given value meets the minimum and maximum value considerations. - - - - - - - - Checks whether the NullSring Value is with in the Min Max Values - - - True if it is in range else false - override this method to check the nullString is in range by parsing it to respective Type - - Double doubleVal; - bool isNumber = Double.TryParse(currentTextValue, out doubleVal); - if (isNumber) - { - return CheckForMinMax(doubleVal.ToString(),true); - } - else - return true; - - - - - Inserts a string into the textbox at the current position. - The string data will be parsed for valid numeric data and - only the valid characters will be accepted. - - The string to be inserted. - Paste and Text properties will be treated differently for validation. - True if the operation succeeds. - - This method attempts to insert the text passed in as the parameter into - the NumberTextBox subject to the constraints imposed by the other - attributes of the NumberTextBox such as the maximum length of a - the string etc. - - - - - Concat modified text. - - - - - - - - - Overrides OnTextChanged. - - The event data. - - - - Checks the length of the decimal part of the text box content. - - The input raw text string. - The checked string. - - - - Returns the count of zeros at the beginning of the string. This is - needed as we will have to compensate for this once a valid - number appears after it for repositioning the cursor. - - - - - - - - Indicates whether the start position is after the decimal separator. - - The current text. - The start position to seek for. - - - - - - - - - - - - - - - - - This method overrides the method - and handles the key messages that are of interest to the NumberTextBox. - - The message that is to handled. - True if the key message is handled; false otherwise. - - - - Overrides to suppress KeyPress. Only the KeyPress event is raised - no other - processing is done. - - The message. - True if the message is a KeyPress; otherwise the base class handles this. - - - - Handles the backspace key. - - True if the key was accepted and the action performed; false otherwise. - - The backspace key results in one character being removed in front of the - current selection if the selection is empty or deletion of the selection if the - selection is not empty. - - - - - Invoked when a character key is pressed. - - The character to be inserted. - True if the insert was successful; false otherwise. - - Character entry is accepted if the character is a valid digit. This - method invokes the InsertString method to insert the character into - the CurrencyTextBox. - - - - - When the start position is in the number part and there is only a zero, the cursor should be moved. - - - - - - - - Invoked when the Delete key is pressed. - - True if the key is handle; false otherwise. - - This method performs the action of removing the selected text when the - delete key was pressed and also positioning the cursor appropriately. - - - - - Invoked when the negative key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to toggle the sign (negativity) - of the content of the NumberTextBox. - - - - - Decimal typing mode. Use if NullString is true; - - - - - Decimal digits position. Use for typing in decimal mode. - - - - - Invoked when the decimal key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to jump to the position immediately - after the decimal position. - - - - - Invoked for positioning the cursor at the right position after - something has changed. - - The number of valid numbers before the point. - Indicates whether the point comes after the decimal separator. - Indicates whether the direction is backwards. - - - - Need all select OnMouseDown. - - - - - - - - Event raised when NULL State is to be set based on a value. - - - - - Event raised when a Key is to be validated. This validation is performed before any of the - NumberTextBox's own validation of the input character. - - - - - If the Min Max values are not met, the Validating event will be handled and cancelled if this property is set to true. - - - - - Occurs when the input text is invalid for the current state of the control. - - - - This event can be handled and you can do your processing based - on the information provided. The ValidationErrorEventArgs object - will provide the invalid text that was input and also the position - within that text where the error occurred. - - - The ValidationError event is raised when: - 1. The event is raised (if there is invalid input). - 2. Invalid key characters are input. - 3. Invalid values are set through the Text property. - - - - - Console.WriteLine("ValidationError in currencyTextBox1 InvalidText" + e.InvalidText); - Console.WriteLine("ValidationError in currencyTextBox1 StartPosition" + e.StartPosition ); - - Console.WriteLine(("ValidationError in currencyTextBox1 InvalidText" + e.InvalidText)) - Console.WriteLine(("ValidationError in currencyTextBox1 StartPosition" + e.StartPosition)) - - - - - Gets or sets the culture that is to be used for formatting the numeric display. - - - - - Gets or sets the mode for the cultures. - - - - - Indicates whether the Culture property is to be refreshed when the culture changes. - - - - - The UseUserOverride parameter for CultureInfo. - - - The NumberTextBoxBase control has several properties that expose culture-specific - information. These properties use a object for - handling the culture specific information. This property is used in the creation - of the NumberFormatInfo object. - - - - - Indicates whether the NULLString property will be used. - - - - - Gets or sets a value indicating whether control's elements are aligned to - support locales using right-to-left fonts. - - - - - Gets or sets the back color. (overridden property) - - - - - Gets or sets the NumberFormatInfo object that will be used for formatting the - number value. - - - This property will not be exposed to the developer. This is only meant - to be an accessor for use within the control. The developer will be able - to access the properties of the NumberFormatInfo through the individual - properties exposed. - - - - - Gets or sets the sign that is to be used to indicate a negative value. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the forecolor when the current value is negative. - - - You can customize the look and provide feedback to the user by defining - a different color for the negative numbers. - - - - - Gets or sets the forecolor when the current value is zero. - - - You can customize the look and provide feedback to the user by defining - a different color for displaying zero. - - - - - Gets or sets the forecolor when the current value is positive. - - - You can customize the look and provide feedback to the user by defining - a different color for the positive numbers. - - - - - Returns the NumberFormatInfo object for the NULL display. - - - - - Gets or sets the NULL string to be displayed. - - - - - Gets or sets the NULL string to be displayed. - - - - - Occurs when the property is changed. - - - - - Occurs when the property is changed. - - - - - Wrapper property around the selected value. Use this property if you - want to be able to set the value of the control to NULL. - - - - - Gets or set the default value. - - - - - Gets or sets a value indicating whether to overrite the immediate text when the text cannot be inserted. - Effective when MinMaxValidation is set to OnKeyPress. - - - - - Specifies when the MinMax Validation Need to be performed. - - - - - Overrides the MaxLength property. This has no effect on this EditControl as it does not honor MinValue and MaxValue properties. - - - The control does not honor the - MaxLength property. Set the and - properties. - - - - - Specifies the action to be performed when validation fails, Effective only if MinMaxValidation is set to OnLostFocus - - - - - Indicates whether the field is Null(NullString) or Not. - - when this is True and is True the field will be assigned with - - - - Indicates the NULLState of the control. - - - - - Gets or Sets the BackGroundColor of the control. - - - - - Color to be used for the Backcolor when the control is Read-only. - - - - - Determines whether to include or exclude the literal characters in the input mask when doing a copy command. - - - This property is used when copying to the clipboard and also the - property. - - When databinding the Text property, it is advisable to have the ClipMode - set to in cases where - the data source does not accept the formatted text. - - - - - - Returns the clipped text without the formatting. - - - For example, if the text in the CurrencyTextBox is $45,000.00, the - ClipText property will give 45000.00. - - - - - Occurs when the property is changed. - - - - - Returns the formatted text with the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - FormattedText property will give $45,000.00. - - - - - Occurs when the property is changed. - - - - - Indicates whether the Undo operation is possible at this time. - - - The NumberTextBox maintains its own undo mechanism and hence - needs to implement this method to be compatible with the Undo - mechanism. - - - - - This property defines the behavior when the contents of the TextBox is fully selected and the negative - key is pressed by the user. - If the value is set to True - The current value is not changed at all. The next key stroke is taken to be a - new value and the entire contents of the TextBox is replaced by the negative value of the key stroke character - entered. Example: If the current value of the TextBox is 1.00 and all the text is selected and the user presses - the -ve key followed by the key 5 - the value is -5.00 - If the value is set to False - The current value is changed to the negative value immediately. Example: If the current value of the TextBox is 1.00 and all the text is selected and the user presses - the -ve key the value is -1.00 - - - - - Specifies if the text should be selected when the control gets the focus. - - - - - Gets or sets SelectedText. (overridden property) - - - - - Please use NegativeColor, ZeroColor and PositiveColor properties instead of ForeColor property. - - - - - The maximum number of valid digits the textbox can take. - This is set to the maximum value a decimal type can hold. - - - - - The negative patterns. - - - - - The minimum value. - - - - - The maximum value. - - - - - The maximum number of currency digits. - - - - - The initial decimal value set in InitializeComponent. - - - - - The decimal value when the control gets the focus. Used when validating. - - - - - The decimal value that is set through the DecimalValue property. - - - - - - - - - - - - - - - For initialization of Culture related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the Culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - Static initializer for the CurrencyTextBox. - - - - - Gets the currency formatted text and the decimal value for a given NumberFormatInfo object and - text value. - - The NumberFormatFormatInfo object to be used for the formatting. - The text to be formatted. - The value to be returned if the currencyText is considered a NULL value. This should be NULL if the string is not to be formatted as NULL even if value is NULL. - The decimal value. - - - - - Overloaded. Creates an object of type CurrencyTextBox. - - - The CurrencyTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - Indicates whether to serialize the CurrencyNumberDigits property - if its the same as the MaximumLength. - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the CurrencyDecimalDigits should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Reset the value to the culture specific value. - - - - - Indicates whether the CurrencyDecimalSeparator should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyGroupSeparator should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyGroupSizes should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyNegativePattern should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyPositivePattern should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencySymbol should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value - - - - - Indicates whether to serialize the CurrencyNumberDigits property - if its the same as the MaximumLength - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - - - - - - - Leading symbol. - - - - - Remove last decimal zeros. - - - - - If need correct ConcatModifiedText. - - - - - Zeros need added count. - - - - - Format the given text according to the current setting. - - - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the MaxValue property should be serialized. - - true if the value is not equal to - - - - Resets the value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Calculates start position of numeric value. - - - - - - Calculates end position of numeric value. - - - - - - - - - - - - - - - - - - Checks if the text can be inserted subject to the constraints. - - The current content of the TextBox. - The text to be inserted. - The length of the acceptable string to be inserted. - - - - Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Override this to return CurrencyDecimalSeparator in CurrencyTextBox - and PercentDecimalSeparator in PercentTextBox. - - - - - Override this to return CurrencyDecimalSeparator in CurrencyTextBox - and PercentGroupSeparator in PercentTextBox. - - - - - Overrides - - The text to be parsed. - True if the value is negative; false, otherwise - - - - Overrides the method. - - The event data. - - Saves the current DecimalValue so that it can be compared - during validation. The DecimalValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - The number of digits for the number part. This is not part of the globalization structure. - - - This value is initially set based on the maximum value of the - Currency data type. - - - - - The maximum number of digits for the decimal portion of the currency. - - - The US dollar requires 2 decimal points to accomodate the smallest - denomination and this property will have the value 2 in this case. If there - is a need to have a different value based on the locale, it will be - automatically changed based on the current locale. - - - - - - - - - - The decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the grouping of CurrencyDigits in the CurrencyTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the pattern to use when the value is positive. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the currency symbol to be used in the CurrencyTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - The number of digits for the number part. This is not part of the globalization structure. - - - This value is initially set based on the maximum value of the - Currency data type. - - - - - Gets or sets remove last decimal zeros. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - The Maximum Value that can be set through the CurrencyTextBox. - - - The default value is the MaxValue for . - - - - - The Minimum Value that can be set through the CurrencyTextBox. - - - - - Occurs when the property is changed. - - - - - The decimal value of the control. This will be formatted and - displayed. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - CurrencyTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Overloaded. Looks for bindable properties in each of the component objects - and create a new PD entry for it. It then creates a brand new PDC combining the PDs of - the originalList and the new entries and returns the new PDC. - - The originalList consists of the PDC of the parent control. - The lookupObjects list consists of the array of instances of the component classes. - A collection of property descriptors. - - - - Looks for bindable properties in each of the component objects - and create a new PD entry for it. It then creates a brand new PDC combining the PDs of - the originalList and the new entries and returns the new PDC. - - The originalList consists of the PDC of the parent control. - The lookupObjects list consists of the array of instances of the component classes. - A collection of property descriptors. - - - - Attribute used to specify the default child type for a parent type. - - - - A parent type designer, say TabControl for example, usually lets you add child types, - TabPage in this case, during design-time. However, when you create custom types deriving - from TabControl and TabPage, the designer needs to be informed about this change in "default child type" - for your derived parent type. This attribute lets you declare this relationship. - - - Some of our components like TabControlExt and XPTaskBar use this attribute to declare - their default child type. Their corresponding designers query this attribute before creating a new child instance. - This way, when you derive custom types for the above Controls, you - can specify the new default child type using this attribute on your parent type. - - - - - - Creates a new instance of the DefaultChildTypeAttribute specifying the child type. - - An Type instance. - - - - Returns the specified child Type. - - - - - This should be called during design time when a component has been moved, sized or re-parented, - but the change was not the result of a property change. All property - changes are monitored by the selection UI service, so this is automatic most - of the time. There are times, however, when a component may be moved without - property change notification occurring. Scrolling an auto scroll Win32 - form is an example of this. - This method simply re-queries all currently selected components for their - bounds and updates the selection handles for the ones that have changed. - - - - - Initializes the PersistenceModeAttribute type with the specified constant, using reflection, if the - System.Web.dll is loaded. - - - - - - A dummy PropertyDescriptor that could be used to add custom attributes dynamically. - - - - - Generic enumeration value filter class. - - - - - Enumeration values to be skipped. - - - - - Default enumeration value filter class. - - Skips value. - - - - Default values to be skipped. - - - - - EnumFlagsEditor implements a UITypeEditor for modifying a enum value that - has been marked with the FlagsAttribute. - - The editor lets you check and uncheck - individual flags in a dropdown CheckedListBox. A None button allows to reset all - flags at once. - - - - - - - - - - - If the static DesignerPersistance.IsPersisting property gets set, then deriving from this type will do the following: - It will return a custom property descriptor for the properties it contains that will return property values - after checking the ShouldSerializeXXX impl. This is useful while serializing web pages in the designer - as the - web designer doesn't check for ShouldSerializeXXX, by default. - - - - - Summary description for CurrencyCultureEditor. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Updates bounds of the instertion pointer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Managed control - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Summary description for MaskedEditCultureEditor. - - - - - TypeConverter for MaskedEditDataGroupInfo. - - - - - Indicates whether this converter can convert an object to - the given destination type using the context. - - An ITypeDescriptorContext object that provides a format context. - A object that represents the type to which you want to convert. - True if conversion is possible; false otherwise. - - - - This member overrides . - - An ITypeDescriptorContext that provides a format context. - A CultureInfo object. If a null reference (Nothing in Visual Basic) is passed, the current culture is assumed. - The Object to convert. - The Type to convert the value parameter to. - Converted object. - - - - Returns the edit style from the current context. - - The context of the object the bindings provide values to. - - A value. - - - - - Edits the specified value using the specified provider - within the specified context. - - The context of the value. - The provider to use to provide values. - The object to be edited. - - - - Adds an event handler to listen to the disposed event on the component. - - - - - Initializes a new instance of the class. - - The collection of bindings to store. - - - - Adds an event handler to listen to the disposed event on the component. - - - - - Gets / sets the name for this object. - - - - - Gets / sets the collection of bindings. - - - - - Indicates whether to show all bindings. - - - - - Initializes a new instance of the class. - - A type descriptor context that can provide context information. - - - - Indicates whether the value of this property should be persisted. - - The component that owns the property to determine whether the value should be persisted. - - - if the property should be persisted; - otherwise. - - - - - Sets the specified value of the property on the specified component. - - - The component that owns the property whose value has to be set. - The value to set the property to. - - - - Resets the value of the property on the specified component. - - The component with this property that should be reset. - - - - Returns the current value of the property on the specified - component. - - The component from which to get the value of the property this descriptor describes. - - The value of the property on the specified component. - - - - - Returns an editor of the specified type. - - The type of editor to retrieve. - - An instance of the requested editor type, or if an - editor could not be found. - - - - - Indicates whether resetting the component will change the value of the - component. - - The component to determine if resetting will change the value of the property on. - - - if the component can be reset without changing the - value of the property; otherwise. - - - - - In a derived class, adds the attributes of the inherited class to the - specified list of attributes in the parent class. - - An that lists the attributes in the parent class. Initially, this will be empty. - - - - Returns the type of the property. - - - - - Indicates whether this property is read-only. - - - - - Returns the type of component this property is bound to. - - - - - Indicates whether the specified component should persist the value. - - The component to determine whether the value of should be persisted. - - - if the value should be persisted; - otherwise. - - - - - Sets the specified value for the specified component. - - The component to set the value for. - The value to set. - - - - Resets the value of the specified component. - - The component whose value is to be reset. - - - - Returns a value from the specified component. - - The component to retrieve a value from. - - The value of the specified component. - - - - - Indicates whether the specified component can reset the value - of the property. - - The component to test whether it can change the value of the property. - - - if the value can be reset; - otherwise. - - - - - Returns the type of the property. - - - - - Indicates whether the property is read-only. - - - - - Returns the type converter. - - - - - Returns the type of the component that owns the property. - - - - - Provides predefined switches for enabling / disabling trace - output or code instrumentation in the Syncfusion shared library. - - - - General switch for Shared Library. - - - Enable Tracing for the Styles. - - - Enable Tracing for the Shared Serialization. - - - Enable Tracing for the ScrollControl. - - - Enable Tracing for Timer Start and Stop - - - Enable Tracing for Timer Start and Stop. - - - Enable Tracing for BeginUpdate and EndUpdate methods calls - - - Enable Tracing for MouseController. - - - Enable Tracing for OperationFeedback. - - - Enable Tracing for BrushPaint drawing methods. - - - Enable Tracing for ArrowButtonBar events. - - - Enable Tracing for ButtonBar events. - - - Enable Tracing for RecordNavigationBar events. - - - Enable Tracing for RecordNavigationControl events. - - - Enable Tracing for SplitterControl events. - - - Enable Tracing for TabBar events. - - - Enable Tracing for TabBarSplitterControl events. - - - Enable Tracing for MouseControllerDispatcher events. - - - Enable Tracing for ScrollControl events. - - - Enable Tracing for Focus events. - - - - Returns the General Tracing level for the Grid Library. - - - - - Provides various diagnostic utilities for tracing methods, exception and more. - - - - - - - - - - - Writes a trace log for the given exception together with information where the exception was caught. - - An Exception. - - - - Indicates whether a given procedure is being called by another procedure. - - The method to be looked up in the stack trace. - True if method was found; false otherwise. - - - if (TraceUtil.IsCalledFrom(typeof(Form1).GetMethod("Form1_Load", BindingFlags.NonPublic|BindingFlags.Instance))) - Debugger.Break() - - - - - - Writes a trace log of the current stack. - - - Writes a trace log of the current stack. - - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments if the condition is true. - - Indicates whether to skip or write the log. - An array of method arguments. - The number of levels to check in call stack. - The following method shows typical usage of this diagnostic method. - - private void OnTimerElapsed(object source, ElapsedEventArgs e) - { - TraceUtil.TraceCalledFromIf(Switches.Timers.TraceVerbose, 3); - } - - - - - - Writes a trace log of the current stack. - - The number of method on the stack to trace. - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments. - - An array of method arguments. - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments if the condition is true. - - Indicates whether to skip or write the log. - An array of method arguments. - The following method shows typical usage of this diagnostic method. - - private void OnTimerElapsed(object source, ElapsedEventArgs e) - { - TraceUtil.TraceCurrentMethodInfoIf(Switches.Timers.TraceVerbose); - } - - - - - - Provides a diagnostic utility for measuring performance. - - The following example display a message box with performance info. - - private void button1_Click(object sender, System.EventArgs e) - { - int rows = (int) this.numericUpDown1.Value; - - this.gridControl1.theData = new VirtGrid.VirtData(rows, 20); - this.gridControl1.Refresh(); - - using (Syncfusion.Diagnostics.MeasureTime.Measure("gridControl1.TopRowIndex = 500000")) - { - this.gridControl1.TopRowIndex = 5000000; - } - - MessageBox.Show(Syncfusion.Diagnostics.MeasureTime.DumpTimes()); - } - - - - - - Insert this before a code block that should be measured. - - - - - Ends the code block that should be measured and increments the associated performance counter. - - - - - Prints all performance counters into a string and sorts it by ids. All counters will be reset afterwards. - - - - - Returns the time since Reset in microseconds. - - - - - Provides support for capturing an ActiveX or Windows Forms control to a bitmap. - - - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - The ActiveX control. - The bitmap with the display contents of the ActiveX control. - - The control must have an implementation of the IViewObject interface. - - - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - The ActiveX control. - Indicates whether IViewObject2 interface should be used if available. - The bitmap with the display contents of the ActiveX control. - - - - - Captures the contents of a Windows Forms control using the WM_PRINT message. - - The control to be captured. - The bitmap with the display contents of the Windows Forms control. - - - - Captures the contents of a Windows Forms control using the WM_PRINTCLIENT message. - - The control to be captured. - The bitmap with the display contents of the Windows Forms control. - - - - Captures the contents of a Windows Forms control using the WM_PRINTCLIENT or WM_PRINT message. - - The control to be captured. - WM_PRINT or WM_PRINTCLIENT. - Flags used for the WM_PRINT message. - The size of the window. - The bitmap with the display contents of the Windows Forms control. - - - - Temporarily resizes the control without updating the screen. Call - to switch the control back to regular behavior. - - The target control. - The new size. - The saved bounds of the control. - - - - Ends temporary resizing of a control after you called . - - The target control. - The saved bounds of the control. - - - - Sends a WM_LBUTTONDOWN and WM_LBUTTONUP message to the control at the specified client coordinates. - - The target control. - The client coordinates where to simulate the click. - - - - Indicates whether there are issues with WM_PRINT and it is not properly supported by the framework. - The property is available to provide a workaround for issues with GenericControlCell and early Whidbey builds. Default is false. - - - - - if (Environment.Version.Major >= 2) - ActiveXSnapshot.ForceWmPaintInPrintWindow = true; - - - - - - - Utility class comes handy when you need to perform simple - animations in your control. - - - The method in this class allows you to specify the - number of animation positions (0 to N), the direction of animation - (whether animation is from 0 towards N or from N towards 0), and - the speed (X) at which animation is performed. - - When the method is called, the current animation position - is set ( property) which gets reduced (or - incremented based on the direction of animation) every X time - interval specified in the method call, until it reaches - the other extreme of the Animation position range. Every time - the value changes, an event - is thrown. Upon reaching the last animation position, an - event is thrown. - - - - - - Creates an instance of the AnimationHelper class. - - - - - Indicates whether more animation positions are to be drawn to complete this animation. - - True indicates there is more to come; False otherwise. - - - - Defines the animation range: 0 to maxPosition; specifies the - direction of animation: 0 to maxPositon or maxPosition to 0; - specifies the interval at which animation should be performed: interval, - and starts animation. - - The integer value indicating - the max position of animation. - The direction of animation. - The frequency at which animation is performed. - - This class uses a to trigger - the event, which means events will - be thrown within the same thread as this method call. - - - - - Allows you to stop animation abruptly (if it is currently on). - This will then throw the event. - - - - - Triggers to force drawing next animation position. - - - You can optionally use this method to force animation not waiting for the timer to break. - - - - - Returns the maximum animation position specified in the - method. - - - An integer value indicating the maximum animation position. - - - - - Returns the current animation position once animation is started. - - An integer value some where in between (including) - 0 and . - - - - Indicates whether Animation is on. - - True indicates Animation is on; False otherwise. - - - - - Indicates in which direction animation is performed. - - True indicates animation is towards ; - False indicates animation is towards zero. - - - - Will be thrown as the property changes - during animation. - - - After calling , you should listen to this event to - repaint your control for each new animation position. - - - - - This will be called when animation is complete or when - is called. - - - - - Holds information on how to fill the background of a window or grid cell. - - - BrushInfo lets you specify a solid backcolor, gradient or pattern style with both - back and forecolor. - - This information can be persisted with serialization. - - You can also convert the information to a string and recreate it from a string. - - BrushInfo is immutable (just like ). You cannot change its values. - Instead you have to create a new BrushInfo object. - - BrushInfo can also be persisted into code when used as a property in a component designer. - - shows how to fill a rectangle using - information. - - - - - Overloaded. Initializes a new empty instance of BrushInfo. - - - - - Initializes a new instance of BrushInfo with the specified solid backcolor. - - A used as solid background. - - - - Initializes a new instance of BrushInfo with a solid backcolor and forecolor. - - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - A used for the pattern. - A used for the pattern. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with a gradient style and gradient fill colors. - - A . - A used for the gradient fill. - A used for the gradient fill. - - - - Initializes a new instance of BrushInfo with a gradient style and gradient fill colors. - - A . - List of gradient fill colors. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with any BrushStyle. Internal only. - - - - - Initializes a new instance of BrushInfo with a new alpha-blend value and copies other information from a given BrushInfo. - - The alpha value that should be applied to the forecolor and backcolor of the new brush. - A BrushInfo that holds information for this BrushInfo. - - - - Initializes a new instance of BrushInfo and copies its information from a given BrushInfo. - - A BrushInfo that holds information for this BrushInfo. - - - - Creates a new BrushInfo object and initializes it from a string. - - A string in the format BrushStyle;Style;ForeColor;BackColor. - A new BrushInfo object. - - - - Overloaded. Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - Specifies the format for string. NULL for default, "compact" for a compact string, "G" for more descriptive text. - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - Specifies the format for string. NULL for default, "compact", for a compact string or "G" for more descriptive text. - - The IFormatProvider to use to format the value. - -or- - A reference to obtain the numeric format information from the current locale setting - of the operating system. - - - - - - Overridden. Compares two BrushInfo object and indicates whether they are equal. - - The to compare with the current . - True if the specified Object is equal to the current ; false otherwise. - - - - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of this instance. - - - - Creates a new BrushInfo with the same style but with only black and white colors. - - A new object with the same style and black and white colors. - - - - Returns a string id that you can use to store the BrushInfo in a HashTable. - - A string with compact identitiy information about the BrushInfo. - - - - Serializes the contents of this object into an XML stream. - - Represents the XML stream. - - - - Not implemented and returns NULL. - - - - - - Deserializes the contents of this object from an XML stream. - - Represents the XML stream. - - - - An empty BrushInfo. - - - - - Returns a string description of the BrushInfo. See . - - - - - Indicates whether this is an empty object. - - - - - Returns the backcolor. - - - - - Returns the forecolor. - - - - - Returns the gradient colors. - - A reference to the instance. -

This color list will be used to specify the - or the depending on the - selected.

-

The first entry in this list will be the same as the property and - the last entry (not the 2nd) will be the same as the property.

-

- Note that this list is Read-only. -

-
-
- - - Returns the pattern style. - - - - - Returns the gradient style. - - - - - Returns the brush style (solid, gradient or pattern). - - - - - A list of colors returned by the property - in the type. - - - When returned by the property, this list will - be made Read-only. - - - - - Overloaded. Creates a new instance of this class. - - - - - Creates a new instance of this class with some colors. - - An array of colors. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Returns the color at the specified index. - - - - - Provides a way to convert to a string and from a string. - - - - - - - - - - - - - - - - - - - - - - - Paints window background using information. - - - - - Overloaded. Fills the interior of a rectangle using information. - - A context. - structure that represents the rectangle to fill. - object that determines the characteristics of the fill. - - - - Fills the interior of a rectangle using information. - - A context. - Structure that represents the rectangle to fill. - Object that determines the characteristics of the fill. - - - - Fills the interior of a rectangle with a gradient. - - A context. - Structure that represents the rectangle to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a rectangle with a pattern. - - A context - Structure that represents the rectangle to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a rectangle with a pattern. - - A context - Structure that represents the rectangle to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a rectangle with a solid color. - - A context. - Structure that represents the rectangle to fill. - A . - - - - Fills the interior of a rectangle with a solid color. - - A context. - Structure that represents the rectangle to fill. - A . - - - - Overloaded. Fills the interior of a region using information. - - A context. - Structure that represents the region to fill. - object that determines the characteristics of the fill. - - - - Fills the interior of a region with a gradient. - - A context. - Structure that represents the region to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a region with a gradient. - - A context. - structure that represents the region to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a region with a pattern. - - A context. - Structure that represents the region to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a region with a solid color. - - A context. - Structure that represents the region to fill. - A . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the BrushStyle used by . - - - - - The is an empty object. - - - - - The represents a solid fill. - - - - - The represents a pattern fill. - - - - - The represents a gradient fill. - - - - - Conversion methods for a to and from a string. - - - - - ColorFromString parses a string previously generated with ColorToString and returns a color. - - String generated with ColorToString. - - Color value that was encoded in parseStr. - - - - - - ColorToString creates a string from a color. All information such as - knownColor and name in the color structure will be preserved. - - - - - A string that can be passed as parameter to ColorFromString. - - - - - - HSL color space. - - - - - - - - - - - - - - - - - - - Method converts Color defined in RGB values to HSL color space. - - Hue value. - Saturation value. - Luminance value. - - - - - - - - - - - - - Method converts Color defined in HSL values to RGB color space. - - Hue value. - Saturation value. - Luminance value. - - - - - Hue component of a color space. - - - - - Saturation component of a color space. - - - - - Luminance component of a color space. - - - - - Gets or sets hue component of a color space. - - - - - Gets or sets saturation component of a color space. - - - - - Gets or sets luminance component of a color space. - - - - - HSV color space. - - - - - - - - - - - - - - - - - - - Method converts Color defined in RGB values to HSL color space. - - Hue value. - Saturation value. - Luminance value. - - - - - - - - - - - - - Method converts Color defined in HSV values to RGB color space. - - - - - - Hue component of a color space. - - - - - Saturation component of a color space. - - - - - Value component of a color space. - - - - - Gets or sets hue component of a color space. - - - - - Gets or sets saturation component of a color space. - - - - - Gets or sets value component of a color space. - - - - - - - - Inflate offset for drawing selection rectangle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Methods recalculate top left and right bottom points - using Graphics matrix settings. This method required when we will - draw on Graphics created from HDC that does not have applied transformations. - Very useful when used ControlPaint class for drawing. - reference on Graphics - rectangle to recalculate. - Transformed rectangle. - Methods will work fine only in limited cases. If on graphics applied - rotations then in most cases will be wrong calculated rectangle. - - Rectangle rcBorders = ControlDrawing.Transform( g, this.Bounds ); - ControlDrawing.DrawBorderInternal( g, rcBorders, this.BorderStyle, this.Border3DStyle, this.BorderSingle, this.BorderColor, this.BorderSides ); - - - - Methods recalculate point using Graphics matrix settings. - This method required when we will draw on Graphics created from HDC - that does not have applied transformations. Very useful when used - ControlPaint class for drawing. - reference on Graphics - Point to recalculate. - Transformed point. - - - - Method allow to draw borders according to specified styles. - - Reference on Graphics. - Output rectangle. - border style. - 3D border style. - border style in single mode. - border color in single mode. - sides that have to be drawn by methods. - True - fix known bug in method, otherwise leave - old code (for compatibility only). - - - - Returns the width required to draw the text specified using the font specified. - - A object. - The text that is to be drawn. - The using which to draw. - True - we use RTL, otherwise normal drawing. - Width required. - - - Measure string with limit by width. - - - - - -1 - apply single line mode for measuring, values greater zero - enables multiline measuring mode. - - - - - - - - - - - - Implement this method and draw your NonClient area using the passed in parameters. - - The PaintEventArgs using this to draw the non client area. - The control's window bounds into which to draw. Left and Top are usually zero. - The control's bounds in screen co-ordinates. - - HRgn (as IntPtr) that excludes the region you just drew in the displayRect. - - - - - - - - - - - - - Call this method to help you prepare for non client painting. This method will in turn - call your INonClientPaintingSupport.NonClientPaint implementation. - - The control in which we will be drawing. - The INonClientPaintingSupport implementation to which we will delegate the final non client drawing. - The WM_NCPAINT message. - - - - - - - - - - - - - - - - - Paints a rectangular area with the given colors in Office2007 style. - - A object. - A object that represents the drawing area. - The border color. - The top gradient start color. - The top gradient end color. - The bottom gradient start color. - The bottom gradient end color. - The bottom line color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Adjusts the specified forecolor's brightness based on the specified backcolor and preferred contrast. - - The forecolor to adjust. - The backcolor for reference. - Preferred contrast level. - - This method checks if the current contrast in brightness between the 2 colors is - less than the specified contrast level. If so, it brightens or darkens the forecolor appropriately. - - - - - Draws an image using the ImageList, taking into account the Graphics.ClipBounds. - - The Graphics object into which to draw. - The ImageList containing the image. - The index of the image. - The rectangle into which to draw. - - This method will use ImageList_DrawEx to draw the image (to use the transparency info in the embedded images). - We use the PInvoke rather than ImageList.Draw because, the Draw method - uses the PaintEventArgs.ClipRectangle rather than g.ClipBounds (both - can be different) and here we force the ClipBounds on the DC. -

- Also, you do not have to use this method if your images will never be - drawn clipped (in that case just use ImageList.Draw). -

-
- - - Draws specified image to graphics context. - If image size is less than maxWidth, maxHeight parameters, it will be drawn - without any changes, otherwise - it will be scaled proportionally to those values. - - Graphics context. - Image object which must be drawing. - X coordinate of the destination location. - Y coordinate of the destination location. - Maximum width of the image. - Maximum height of the image. - - - - Converts the HSB value to RGB. - - Hue. - Saturation. - Brightness. - Red. - Green. - Blue. - - This does not seem to yield accurate results, but very close. - - - - - Enumeration of Panose Font Family Types. These can be used for - determining the similarity of two fonts or for detecting non-character - fonts like WingDings. - - - - - Any - - - - - No Fit - - - - - Text and Display - - - - - Script - - - - - Decorative - - - - - Pictorial - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the for the specified font. - - A graphics object to use when detecting the Panose - family. - The font to check. - The Panose font family type. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / sets the ImageList to wrap around. - - - - - Gets/ sets the base directory from which the images will be added. - - - This helps to maintain a relative path in the SourceFiles list. - - - - - Returns the source of the images in the underlying ImageList. - - - - - - - - - - Initializes a new instance of the class. - The type of the collection to edit. - - - Creates an instance of the specified type in the collection. - The type of the image to insert in the collection. - - - - - - - - - - - Apply functionality to choose alpha-blended icon and correctly change it to bitmap. - - - - - Stores info about drawing icons. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Utility class for mirroring graphics output if needed. - - - - - - Value of advanced graphics state. - - - - - Mode of transformation matrix multiplication. - - - - - Graphics object for target context. - - - - - Temporary virtual Graphics object. - - - - - Temporary bitmap object. - - - - - Target rectangle. - - - - - Rectangle of virtual temporary area. - - - - - Target graphics path. - - - - - Indicates whether image must be mirrored. - - - - - Indicates whether OS supports needed API functions. - - - - - Holds old value of source graphics mode. - - - - - Holds old value of source graphics transformation. - - - - - Handle wrapper of graphics object. - - - - - Handle of graphics object. - - - - - Private constructor. - - - - - Overloaded. Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source graphics path object. - If True mirror output; False otherwise. - - - - Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - - - - Overloaded ctor.. as a workaround for Themed Mirrored rendering issue. - - Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - False as a workaround when drawing themed mirrored graphics. - - - - Disposes all resources, but first paints all data - from the buffer to source device context. - - - - - Initializes an object. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - - - - Checks OS Version for API functions support. - Need NT 3.1 or later. - - True if current OS is NT 3.1 or later; False otherwise. - - - - Transforms graphics. - - - - - Restores graphics to its previous state. - - - - - Flushes all drawing data to destination if needed. - - - - - Returns virtual graphics context object. - - - - - Returns virtual rectangle. - - - - - Returns virtual Graphics path object. - - - - - Indicates whether additional bitmap is needed. - - - - - Class does 2D ratio and offset tranformation for object using property. - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - - - - - - - Class does 2D mirroring for X axis for . - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - Class does 2D mirroring for Y axis for . - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - Specifies the Gradient style used by the . - - - - - None. - - - - - ForwardDiagonal Gradient. - - - - - BackwardDiagonal Gradient. - - - - - Horizontal Gradient. - - - - - Vertical Gradient. - - - - - PathRectangle Gradient. - - - - - PathEllipse Gradient. - - - - - Provides a for the enumeration. - - - - - - - - - - - Provides data for the event of - a instance. - - - The event lets you apply custom settings for the Graphics object, before - other routines draw to the object. - - - - - - - - Initializes a new empty . - - - Initializes a new with a object. - - The graphics object. - - - - Initializes a new empty . - - - - - Returns the window graphics object. - - - - - Represents a method that handles a event of - a instance. - - - - - Implements an interface that returns a graphics context when needed and raises a - event to initialize the graphics object. - - - - - Creates and returns a cached graphics object. - - - - - Called after a new object was created and gives the handler - a chance to initialize the graphics context. - - - - - Returns a graphics context when needed and raises a - event to initialize the graphics object. - - - - - Initializes a new empty . - - - Initializes a new with a object. - - The Graphics object that will be used. - The event will not be fired when this type - is instantiated via this constructor. - - - - Initializes a new with a object. - - The control that will be used for creating the graphics object. - - - - Initializes a new empty . - - - - - - - - Raises the event. - - A that contains the event data. - - - - Called after a new object was created and gives the handler - a chance to initialize the graphics context. - - - - - Creates and returns a cached graphics object. - - - - - - - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets the image collection - - - - - Class for Custom Button - - - - - Gets/Sets if this is Custom Buttons - - - - - Class for MessageBoxMetroStyleFormAdv - - - - - Normal font weight - - - - - - - - - - To Reset the CaptionBarBrush - - - - - Indicates whether to serialize CaptionBarBrush - - - - - Hover Color for CaptionButton - - - - - Gets/Sets touch enabled - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Reset the value of the ShowMaximizeBox - - - - - Serializing the value of the ShowMaximizeBox - - - - - - Serializing the value of the ShowMinimizeBox - - - - - - Reset the value of the ShowMinimizeBox - - - - - Reset the value of the ShowMinimizeBox - - - - - applies the scaling - - - - - - applies the scaling - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Style of CaptionBar is updated while detaching the MetroForm from TabbedMDIManager. - - - - - Helps to update the Bounds - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Disabling the controlbox highlights - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if MetroScheme back color is used. - - - - - Occurs when property is changed. - - - - - variable to check whether the mouse is moved over the caption image - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CaptionText Color - - - - - location for label in caption - - - - - CaptionImage Collection - - - - - LabelCollection - - - - - BorderColor to highlights the ControlBox - - - - - Value for show/hide the highlights - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets/sets if to disable Office2007 look and feel. - - - - - Gets or Sets Mouse over color for CaptionButtons - - - - - Gets or Sets the value for CaptionBarColor BorderColor MetroColor - - - - - Gets or Sets the value for CaptionBarColor - - - - - Gets/Sets the value for CaptionVerticalAlignment - - - - - Gets or Sets the value for CaptionBarColor BorderColor - - - - - Gets/Sets the value for CaptionButtonColor - - - - - Gets/Sets the value for CaptionButtonHoverColor - - - - - Gets or Sets value for CaptionBarHeight - - - - - Gets/Sets touch enabled - - - - - Gets or Set the valur for BorderThickness - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2007Visual style is enabled. - - - If DisableOffice2007Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - - - - - - - - - - - - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets or Set Value to Drop Shadow to the form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / set the value to enable the MaximizeBox - - - - - Gets / set the value to enable the MinimizeBox - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies whether current selected Office2007 scheme background color is used to fill form's backround is used. - If false is used. - - - - - - - - - - - - - - - - - - - - Gets/Sets the label for form caption - - - - - Gets/Sets the CaptionImage for form caption - - - - - This Event will be triggered, when CaptionBar is painted and it is used to customize the CaptionBar. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Lock Window update function - - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for buttons panel - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - Constructor for MessageBoxMetroStyleFormAdv - - - - - Constructor for MessageBoxMetroStyleFormAdv - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - - - - - Initialize image which is used in MessageBoxAdv - - - - - - - Icon Initialization - - Icon - - - - Initialize the TextAlign - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Method to get the button - - - - - - - Sets the padding for the buttons - - - - - - - Returns the client size - - - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - - - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Enumeration for system defined strings - - - - - Class for Office2010StyleMessageBoxAdv - - - Class for Office2010StyleMessageBoxAdv. - - - - - Normal font weight - - - - - constructor for Office2010form with empty arguments - - - - - Variable to Gets or Set Value to Drop Shadow to the form. - - - - - Reset the value of the DropShadow - - - - - Serializing the value of the DropShadow - - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Gets/Sets touch enabled - - - - - applies the scaling - - - - - - applies the scaling - - - - - - Gets the closebox - - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To customize the image size - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if Office2010Scheme back color is used. - - - - - Occurs when property is changed. - - - - - Determines whether CaptionBarHeight has been modified. - - True if CaptionBarHeight is changed; False otherwise. - - - - Resets the CaptionBarHeight back to its default value. - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Holds the value for Caption Height - - - - - CaptionText Color - - - - - Gets or Sets whether to enable Drop Shadow to the Office2010form - - - - - Gets the CreateParams for the Office2007 form. - - - - - Gets/sets if to disable Office2010 look and feel. - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2010Visual style is enabled. - - - If DisableOffice2010Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - Gets or Sets the AutoScroll value - - - - - Gets or sets the Office2010 colorscheme - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or Sets the CaptionBar Height. - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets the colortable for Office2010 - - - - - Gets the value for IsActive - - - - - Gets whether right to left has been set - - - - - Gets or Sets the Selected button - - - - - Gets or Sets the pressed button - - - - - Gets or Sets the highlighted button - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - Gets the Maximize button - - - - - Gets the Minimize button - - - - - Gets the layout - - - - - Gets the caption height value - - - - - Gets/Sets touch enabled - - - - - Gets the value of title height - - - - - Gets whether the form is minimized - - - - - Gets whether the form is maximized - - - - - Gets whether the form is sizable - - - - - - Gets the screen rectangle - - - - - Gets the area to be painted - - - - - Gets the value of Isvisible property - - - - - Specifies whether current selected Office2010 scheme background color is used to fill form's backround is used. - If false is used. - - - - - Gets the caption font - - - - - Gets the system font - - - - - Gets the closebox value - - - - - DPI Scaling - - - - - Defines whether the DPI setting is enabled. - - - - - Defines the dpi scaling - - - - - To retrieve DPI Value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2010Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2010Form instance. - - - - - - - - - - - - - - - DeviceCap - - - - - - - - - - - - - - - - - - - - - Constructor for CaptionManager - - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Lock Window update function - - - - - Holds the Button height - - - - - String variable for details text - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - - Custom Button Collection - - - - - Variable for content panel - - - - - Variable for buttons panel - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for PictureBox - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2010StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2010StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Custom Button Size initialization - - - - - Returns the Button width - - - - - - Initialization of button names - - - - - Button Initialization - - - - - Returns the button for the dialog - - Return value of a dialog box. - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Width of the Button - - - - Icon Initialization - - Icon - - - - Initialize the TextAlign - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - Width of the Button - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Enumeration for system defined strings - - - - - Class for ButtonAdv with Border customization - - - - - Constructor - - - - - Variable to define whether this is Custom Button - - - - - Instance to hold the BorderColor - - - - - Paint Overrides - - - - - - Gets/Sets whether this is Custom Button - - - - - Gets/Sets option to customize the BorderColor - - - - - Class for Office2013StyleMessageBoxAdv - - - Class for Office2013StyleMessageBoxAdv. - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2013StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - CustomButtons Mouse Down - - - - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - Returns value of the Dialog Box - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Size of the Image - - - - Icon Initialization - - Icon - - - - CustomButtons Mouse Down - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Initializes the s_office2013theme variable. - - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - True if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Initializes the bordercolor variable. - - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Gets or sets the Office2013 color theme. - - - - - Enumeration for system defined strings - - - - - Class for Office2016StyleMessageBoxAdv. - - - Class for Office2013StyleMessageBoxAdv. - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv class. - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv class. - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - CustomButtons Mouse Down - - - - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - Returns value of the Dialog Box - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Size of the Image - - - - Icon Initialization - - Icon - - - - CustomButtons Mouse Down - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Initializes the s_office2016theme variable. - - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - True if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Initializes the bordercolor variable. - - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Gets or sets the Office2016 color theme. - - - - - Enumeration for system defined strings - - - - - Advanced caption image for Metro form - - - - - location for CaptionImage - - - - - image for CaptionImage - - - - - size for CaptionImage - - - - - backcolor for CaptionImage - - - - - Font for CaptionImage - - - - - forecolor for CaptionImage - - - - - Constructor for FormCaptionImage - - - - - - - - - - - Mouse move event for CaptionImage - - - - - Mouse leave event for CaptionImage - - - - - Mouse enter event for CaptionImage - - - - - Mouse down event for CaptionImage - - - - - Mouse up event for CaptionImage - - - - - Gets/Sets the value for forecolor - - - - - Indicates whether the current value of the backcolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the forecolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the Size property is to be serialized. - - - - - Resets the Size. - - - - - Indicates whether the current value of the image property is to be serialized. - - - - - Resets the image. - - - - - Indicates whether the current value of the location property is to be serialized. - - - - - Resets the location. - - - - - Mouse move event for CaptionImage - - - - - Mouse leave event for CaptionImage - - - - - Mouse enter event for CaptionImage - - - - - Mouse down delegate for CaptionImage - - - - - Mouse up delegate for CaptionImage - - - - - Gets/sets the value for location - - - - - Gets/Sets the value for Image - - - - - Gets/Sets the value for CaptionImage size - - - - - Gets/Sets the value for backcolor - - - - - Gets or Sets the instance name - - - - - Mouse move delegate for CaptionImage - - - - - Mouse leave delegate for CaptionImage - - - - - Mouse enter delegate for CaptionImage - - - - - Mouse down delegate for CaptionImage - - - - - - Mouse up delegate for CaptionImage - - - - - - Collection of Images used in the Form Caption - - - - - Constructor for CaptionImageCollection - - - - - Returns whether the list contains the CaptionImage type - - - - - Adds the CaptionImage type to the list - - - - - Removes the CaptionImage type from the list - - - - - Inserts the CaptionImage type into the list - - - - - Returns the index of the CaptionImage type - - - - - searches the name in the list - - - - - Overrides the oninsert method - - - - - Gets the unique name - - - - - Gets the index of for the CaptionImage - - - - - Mouse Move events for caption image - - - - - Constructor for ImageMouseLeaveEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Constructor for ImageMouseEnterEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Constructor for ImageMouseMoveEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Mouse Up events for caption image - - - - - Constructor for ImageMouseUpEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Font for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Mouse Down events for caption image - - - - - Constructor for ImageMouseDownEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - Image for caption image - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for Image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Advanced caption label for Metro form - - - - - value for label text - - - - - value for label location - - - - - value for label size - - - - - value for label backcolor - - - - - value for label font - - - - - value for label forecolor - - - - - constructor for CaptionLabel - - - - - constructor for CaptionLabel - label - - - - - Mouse move event invoking - - - - - Mouse enter event invoking - - - - - Mouse leave event invoking - - - - - Mouse down event invoking - - - - - Mouse up event invoking - - - - - - - - - - Specifies the owner of the label - - - - - Indicates whether the current value of the backcolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the forecolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the font property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the Size property is to be serialized. - - - - - Resets the Size. - - - - - Indicates whether the current value of the location property is to be serialized. - - - - - Resets the location. - - - - - Indicates whether the current value of the text property is to be serialized. - - - - - Resets the Text. - - - - - Gets/Sets the value for Label text - - - - - Mouse move event for CaptionLabel - - - - - Mouse leave event for CaptionLabel - - - - - Mouse enter event for CaptionLabel - - - - - Mouse down event for CaptionLabel - - - - - Mouse up event for CaptionLabel - - - - - Gets/Sets the value for label location - - - - - Gets/Sets the value for label size - - - - - Gets/Sets the value for label backcolor - - - - - Gets/Sets the value for label font. - - - - - Gets or Sets the instance label name - - - - - Gets or Sets the Forecolor of the CaptionLabel. - - - - - Mouse move delegate for CaptionLabel - - - - - Mouse leave delegate for CaptionLabel - - - - - Mouse enter delegate for CaptionLabel - - - - - Mouse down delegate for CaptionLabel - - - - - Mouse up delegate for CaptionLabel - - - - - Collection of Labels used in the Form Caption - - - - - Constructor for CaptionLabelCollection - - - - - Returns whether the list contains the label type - - - - - Adds the label type to the list - - - - - Removes the label type from the list - - - - - Inserts the label type into the list - - - - - Returns the index of the label type - - - - - searches the name in the list - - - - - Overrides the oninsert method - - - - - Gets the unique name - - - - - Gets the index of for the label - - - - - Mouse Move events for caption label - - - - - Constructor for LabelMouseMoveEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Constructor for LabelMouseLeaveEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Constructor for LabelMouseEnterEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Mouse Up events for caption label - - - - - Constructor for LabelMouseUpEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Mouse Down events for caption label - - - - - Constructor for LabelMouseDownEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Provides information about a control that can be used by an accessibility application. - - - - - MetroForm - - - - - Constructor - - The RibbonControlAdv instance. - - - - Gets the parent of an accessible object. - - An RibbonControlAdvAccessibility that represents the parent of an accessible object, or null if there is no parent object. - - - - Retrieves the object that has the focus. - - >An RibbonControlAdvAccessibility that specifies the currently focused child. - This method returns the calling object if the object itself is focused. Returns null if no object has focus. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Gets the state of this accessible object. - - - - - Gets the description of what the object does or how the object is used. - - The description of what the object does or how the object is used. - - - - Gets or sets the value of an accessible object. - - - - - Vertical Alignment - - - - - Top - - - - - Center - - - - - - - - - - Provides information about a control that can be used by an accessibility application. - - - - - Office2010Form - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the number of children in the accessible object. - - Number of Child. - - - - Retrieves the accessible child corresponding to the index. - - Index - Child specified to the index - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets the Progressbar style. - - The style. - - - - Gets or sets the Text style. - - The style. - - - - Gets or sets the Text style. - - The style. - - - - Gets or sets the Text orientation. - - The style. - - - - Interface to create an Office 2010 color table. - - - - - Color table for Office 2010 like scroll bars. - - - - - Constructor for Office2010 color table which is used to register the color style of each theme. - - - - - Used internally - - - - Get the Alpha blended color. - Source color - destination color - alpha color - returns the alpha blended color - - - - Retrieves color table according to style and scheme. - - Office2010 style. - Office2010 color scheme. - Color table. - - - - Registers color table within internal collection. - - Office2010 style. - Office2010 scheme. - Color table itself. - - - - Updates the styles of the scrollbars related to Office2010 colors. - - base color. - - - - Updates the Office2010 scrollbar color schemes. - - Custom scrollbar draw style. - Office2010 color scheme. - - - - Applies colors for managed scheme. - - Custom scrollbar draw style. - Base color for the managed theme. - - - - Applies scheme for managed theme. - - Container form. - Custom scrollbar draw style. - Office2010 color scheme. - - - - Applies managed colors - - base color . - - - - Called when is risen. - - base color for managed theme. - - - - Initialize scroll bar color fields. - - Scroll bar color references. - - - - Office 2010 color array. - - - - - Registered color tables. - - - - - Interface to create a Office2010 color table. - - returns office2010 color table - - - - Specifies the ScrollerGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ScrollerGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientSelectedBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientSelectedEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientPressedBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientPressedEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderLight color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderSelectedDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderSelectedLight color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderPressedDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderPressedLight color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientNormalBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientNormalEnd color of the Office2010 scroll bars - - - - - Specifies the ThumbLinesGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ThumbLinesGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ThumbPressedBackgroundGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ThumbPressedBackgroundGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ScrollerBorderBegin color of the Office2010 scroll bars - - - - - Specifies the ScrollerBorderEnd color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripDark color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripLight color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripBackGround color of the Office2010 scroll bars - - - - - Specifies the color of the Office2010 scroll bars - - - - - Color references for Office2010. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Constructor for color Table key. - - Custom scrollbar draw style. - Office2010 color scheme. - - - - Compare the color table keys through . - - Object of the ColorTableKey. - Returns 1 if color key is less. Otherwise returns 0. - - - - Compares the color table keys. - - A color table key. - returns true if passed one is less. Otherwise return false - - - - Provides attributes and methods for Office2010 blue color table. - - - - - Used internally - - - - - Interface to create an office2010 blue color table. - - returns office2010 blue color table. - - - - Provides attributes and methods for Office2010 Silver color table. - - - - - Used internally - - - - - Initialize scroll bar color fields for silver color. - - Scroll bar color references. - - - - Interface to create an office2010 Silver color table. - - returns office2010 silver color table - - - - Provides attributes and methods for Office2010 Black color table. - - - - - Used internally - - - - - Initialize scroll bar color fields for black color. - - Scroll bar color references. - - - - Interface to create an office2010 Black color table. - - returns Office2010 black color table - - - - The metro renderer for scrollbar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether scroll is vertical or horizontal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether scrollBar is vertical or horizontal. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Right office arrow. - - - - - - Left office arrow. - - - - - - Down office arrow. - - - - - - Up office arrow. - - - - - - - - - - - - - - - - - - - - - - - - - Initializes a new instance of the class. - - The parent control - - - - Initializes a new instance of the class. - - The parent control. - The metro color table. - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - The graphics. - The bounds of background. - The scroll button state. - - - - Draws pushed background. - - The graphics. - The bounds of background. - - - - Draws scroll background. - - The graphics. - The scroll bounds. - - - - Draws scroll thumb. If theme is disabled than draw classic scroll. - - - - - - - - Draws scroll thumb background. - - The graphics. - The bounds of thumb. - The scroll button state. - - - - Method to calculate the center point to place the Thumb exactly at the center position inside the Scrollbar. - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - The graphics. - The bounds of arrow. - The scroll button type. - The scroll button state. - - - - Draws arrow background. - - The graphics. - The arrow backgroud bounds. - The scroll button type. - The scroll button state. - - - - Draws scrollbar arrow - - The graphics. - The bounds of the arrow. - The scroll button type. - The scroll button state. - - - - Returns the pushed or checked state right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Indicates whether scrollBar style is EnableOffice2013Style - - - - - Metro color table. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the scroll bar background color. - - - - - Gets or sets the normal state thumb color. - - - - - Gets or sets the checked state thumb color. - - - - - Gets or sets the pushed state thumb color. - - - - - Gets or sets the Thumb Normal Border color - - - - - Gets or sets the Thumb Checked Border color - - - - - Gets or sets the pushed state Thumb Pushed Border. - - - - - Gets or sets the pushed state Thumb Pushed Border. - - - - - Gets or sets the Arrow Normal Border color - - - - - Gets or sets the Arrow Checked Border color - - - - - Gets or sets the Arrow Pushed Border color - - - - - Gets or sets the inactive state thumb color. - - - - - Gets or sets the normal state arrow color. - - - - - Gets or sets the checked state arrow color. - - - - - Gets or sets the pushed state arrow color. - - - - - Gets or sets the normal state Arrow Background Color. - - - - - Gets or sets the pushed state Arrow Pushed Background color. - - - - - Gets or sets the inactive state arrow color. - - - - Provides renderer for Office2010 theme. - - - - Scroll Bar min thumb length for lines. - - - - - Scroll thumb line length. - - - - - Office2010 color table. - - - - - Blended background color. - - - - - Blended background black color. - - - - - Blended arrow button. - - - - - Blended selected arrow button. - - - - - Blended arrow button silver and black selected colors. - - - - - Blend for thumb background. - - - - - Bitmap for scroll images - - - - - Constructor for Office2010 renderers. - - - - - Initialize new instance of Office2010Renderer - - custom scrollbar. - Color Table. - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - graphics for arrow buttons. - Arrow bounds. - type of the scroll button. - Scroll button state. - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - graphics for arrow buttons background. - arrow button background bounds - Button state. - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - graphics for scroll thumb. - scroll thimb bounds. - Button state. - - - Draw scroll bar background. - graphics for scroll bar backgrounds. - scroll background bounds. - - - Draw pushed scroll background. - Graphics for pushed scroll background - Scroll bounds. - - - Draw scroll bar arrow background. - Graphics for Arrow background. - Arrow bounds. - type of the scroll button. - Button state. - - - Draw scroll thumb background. - Graphics for thumb background. - Scroll thumb bounds. - Button state. - - - Draw scroll arrow. - Graphics for scroll arrow. - Arrow bounds. - type of scroll button. - Button state. - - - Draw scroll lines - Graphics. - Scroll bounds. - true if the scroll bar is vertical scrollbar. - - - - Get the horizontal scroll background brush. - - ScrollBar width. - scroll begin color. - scroll bar end color. - Returns the gradient brush. - - - - Get the Vertical scroll background brush. - - ScrollBar height. - scroll begin color. - scroll bar end color. - Returns the gradient brush. - - - - gets the vertical scroll brush. - - bounds. - Gradient top color. - Gradient bottom color. - Returns the Linear gradient brush. - - - - gets the vertical scroll brush. - - top of the scroll bar rectangle - Height of the scroll bar rectangle - Gradient top color. - Gradient bottom color. - Returns the Linear gradient brush. - - - - gets the horizontal scroll brush. - - bounds. - Gradient top color. - Gradient bottom color. - the Linear gradient brush. - - - - gets the rounded polygon. - - Bounds. - Radius of the polygon. - the edge points. - - - Right office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Left office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Down office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Up office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Right Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Left Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Down Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Up Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Vertical thumb lines. - the bitmap of the scroll thumb. - - - Horizontal thumb lines. - the horizontal thumb lines' Bitmap. - - - - Enumeration for scroll bar fields. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RadioButtonAdvActionList Class. - - - - - Initializes a new instance of the RadioButtonAdvActionList class. - - Represents component - - - - InitializeActionList method - - - - - Gets or sets thumb color. - - - - - Holds the option for the VisualTheme - - - - - Managed visual theme. - - - - - Office 2007 style blue theme. - - - - - Office 2007 style silver theme. - - - - - Office 2007 style black theme. - - - - - Office 2010 style blue theme. - - - - - Office 2010 style silver theme. - - - - - Office 2010 style black theme. - - - - - Metro theme. - - - - - Office 2016 style colorful theme. - - - - - Office 2016 style black theme. - - - - - Office 2016 style white theme. - - - - - Office 2016 style dark gray theme. - - - - - Contains a control. - - - - - Contains a component. - - - - - Get or Set the VisualTheme for the control. - - - - - - Constructor - - - - - - Set the VisualTheme for them for the parent control by Control and Visual Theme. - - - - - - - Set the VisualTheme for them for the parent control. - - - - - - - Iterations for the VisualTheme for the child control and components. - - - - - - - Iterations for the VisualTheme for the Components. - - - - - - - Get or Set the control to Change the skin. - - - - - - Helper class for handling corner radius of control region. - - - - - Initializes a new instance of the class. - - The owner control. - - - - Gets the graphics path for region border. - - - - - Updates and sets control's region. - - - - - Retrieves the minimal size of the owner control. - - Current minimal size. - - - - Gets or sets corner radius. - - Radius has to be not less than zero or half of minimum dimension (width or height) of control. - If radius is zero, region has rectangular appearance. - - - - - IconPaint is a helper class for drawing and caching bitmaps from a resource manifest with a given forecolor. - - - The bitmaps are loaded from the manifest and cached. The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with a - specified forecolor. - - - - - The bitmap cache. - - - - - The manifest to load from. The bitmaps should be saved in the Resources - tree in the Visual Studio project with the build action set to "Embedded Resource". - - - - - The assembly to load from. The bitmaps should be saved in the Resources - tree in Visual Studio project with the build action set to "Embedded Resource". - - - - - Initializes a new object with manifestPrefix and a reference to the assembly - to load bitmaps from. You should save this object in a static variable. - - The manifest to load from. The bitmaps should be saved in the Resources - tree in the Visual Studio project with the build action set to "Embedded Resource". - The assembly to load from. The bitmaps should be saved in the Resources - tree in Visual Studio project with the build action set to "Embedded Resource". - - - - Loads bitmap from manifest. - - The bitmap name. - Reference to bitmap; NULL if bitmap failed to load. - - - - Returns bitmap from cache or loads bitmap from manifest on first use. - - The bitmap name. - Reference to bitmap; NULL if bitmap failed to load. - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the specified bitmap substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixels to offset the bitmap from its origin point. - The bitmap to be drawn on the screen. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Loads the bitmap from the manifest and paints it substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixel to offset the bitmap from its origin point. - The name of the bitmap. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Specifies the pattern style used in - - - - - None. - - - - - - A pattern of horizontal lines. - - - - - - - A pattern of vertical lines. - - - - - - - A pattern of lines on a diagonal from top-left to bottom-right. - - - - - - A pattern of lines on a diagonal from - top-right to bottom-left. - - - - - - A pattern of criss-cross horizontal and vertical lines. - - - - - - - A pattern of criss-cross diagonal lines. - - - - - - Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100. - - - - - Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100. - - - - - Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100. - - - - - Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100. - - - - - Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. - - - - - Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100. - - - - - Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100. - - - - - Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100. - - - - - Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. - - - - - Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100. - - - - - Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:100. - - - - - Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than BackwardDiagonal, but they are not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than BackwardDiagonal, but they are not antialiased. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than, and are twice the width of ForwardDiagonal. This hatch pattern is not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than BackwardDiagonal and are twice its width, but the lines are not antialiased. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style ForwardDiagonal and are triple its width, but are not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as hatch style BackwardDiagonal and are triple its width, but are not antialiased. - - - - - Specifies light vertical lines. - - - - - Specifies light horizontal lines. - - - - - Specifies narrow vertical lines . - - - - - Specifies narrow horizontal lines - - - - - Specifies vertical lines that are spaced 50 percent closer together than Vertical and are twice its width. - - - - - Specifies horizontal lines that are spaced 50 percent closer together than Horizontal and are twice the width of HatchStyleHorizontal. - - - - - Specifies dashed diagonal lines, that slant to the right from top points to bottom points. - - - - - Specifies dashed diagonal lines, that slant to the left from top points to bottom points. - - - - - Specifies dashed horizontal lines. - - - - - Specifies dashed vertical lines. - - - - - Specifies a hatch that has the appearance of confetti. - - - - - Specifies a hatch that has the appearance of confetti and is composed of larger pieces than SmallConfetti. - - - - - Specifies horizontal lines that are composed of zigzags. - - - - - Specifies horizontal lines that are composed of tildes. - - - - - Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points. - - - - - Specifies a hatch that has the appearance of horizontally layered bricks. - - - - - Specifies a hatch that has the appearance of a woven material. - - - - - Specifies a hatch that has the appearance of a plaid material. - - - - - Specifies a hatch that has the appearance of divots. - - - - - Specifies horizontal and vertical lines, each of which is composed of dots, that cross. - - - - - Specifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross. - - - - - Specifies a hatch that has the appearance of diagonally-layered shingles that slant to the right from top points to bottom points. - - - - - Specifies a hatch that has the appearance of a trellis. - - - - - Specifies a hatch that has the appearance of spheres laid adjacent to one another. - - - - - Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style Cross. - - - - - Specifies a hatch that has the appearance of a checkerboard. - - - - - Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of SmallCheckerBoard. - - - - - Specifies forward diagonal and backward diagonal lines that cross but are not antialiased. - - - - - Specifies a hatch that has the appearance of a checkerboard placed diagonally. - - - - - Provides a for the enumeration. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Helper routines for drawing rotated text. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the relative alignment of a popup child about its parent. - - - - - The child will be aligned to the parent's top-left corner - and drawn upwards and to the right of the parent's left border. - - - - - The child will be aligned to the parent's top-right corner - and drawn upwards and to the left of the parent's right border. - - - - - The child will be aligned to the parent's top-right corner - and drawn downwards and to the right of the parent. - - - - - The child will be aligned to the parent's bottom-right corner - and drawn upwards and to the right of the parent. - - - - - The child will be aligned to the parent's bottom-left corner - and drawn downwards and to the right of the parent's left border. - - - - - The child will be aligned to the parent's bottom-right corner - and drawn downwards and to the left of the parent's right border. - - - - - The child will be aligned to the parent's top-left corner - and drawn downwards and to the left of the parent. - - - - - The child will be aligned to the parent's bottom-left corner - and drawn downwards and to the right of the parent. - - - - - Does not indicate any of the above alignments. - - - - - A generic interface for any control that wants to participate - in the Popup framework. - - - - - Returns the popup's control parent. - - - If such a control exists, then the Popup framework will use - it in its popup activation logic. - - - - - Indicates whether a specified control is part of the - popup hierarchy. - - A control instance. - True indicates this query should - be passed to the IPopupParent, if any; False indicates you - should not query the popup parent. - True if the control is part of the Popup hierarchy; - False otherwise. - - - - Specifies the way in which a popup was closed. - - - This information is usually provided in a - PopupControlContainer's event. - You can use it to determine, in some cases, whether or not - to use the updated data in a popup. - - - - - The user wants the changes made in the popup to be applied. - - - - - The user canceled the popup and expects the changes, if any, to be ignored. - - - - - The popup was deactivated due to the user clicking in some - other window, a different application getting focus, etc. - - - - - A generic interface that defines a popup parent, that will - control the alignment of a popup, etc. - - Any object / control that wants to act as a popup's parent - and participate in the popup framework should implement this interface. - Take a look at the PopupsInDepth sample under the Tools\Samples\Editors Package\PopupControlContainer\Advanced - folder for an implementation of this interface. - - - - Will be called to indicate that the popup child was closed - in the specified mode. - - The child that was closed. - A value. - - - - Returns the location for popup, given the preferred relative - alignments. - - - This method allows you to provide 8 different preferred positions for - your popup, in any order. - Different preferred positions are necessary because some positions - may not be ideal for the popup as there may not be enough screen space - for the popup when shown in that position. - The popup will first call this method with prevAlignment set to - . You should then return a location and - designate this location as one of the 8 positions in the - enumeration using the newAlignment reference. - The popup will then check if there is enough space in the screen - to draw at this location. If not, it will call this method again with - prevAlignment set to newAlignment from the previous call. - - This goes on until you return a location that the popup finds acceptable. - However, if you run out of locations before the popup can find an acceptable location, - then you should set newAlignment to . The popup will then assume - that you don't have any more positions to supply and do the best it can - with the supplied location. - - - The previous alignment. - The new alignment designated for the returned location. - - An ideal location for popup designated by one of the values in - newAlignment. Or returns a Point.Empty and set newAlignment to - if you do not intend to provide multiple preferred locations. - - - - - Returns a line (defined by 2 points) in screen co-ordinates that indicates the - border overlap between the child and parent. - - The preferred alignment selected using the - method. - - If a valid line is provided, the popup child in that - area will be drawn in an overlap style. - - - An array of 2 points representing a line (in screen co-ordinates) - where the overlap takes place. NULL if no overlap is desired. - - - - - Indicates whether control's elements should be rendered right-to-left. - - - - - Defines a generic interface which when implemented will allow - that object / control to participate in the popup framework. - - - This interface should be implemented by an object / control that - acts like a popup window and wants to participate in the popup framework. - - - - - Hides the popup window. - - The PopupCloseType value that indicates - the mode in which this popup should be closed. - - - - Indicates whether a popup is currently active / open. - - True if it is open; False otherwise. - - - - Returns the parent. - - An instance of the interface. - - The Popup framework can handle a hierarchy of popups (like - in a menu) for which it requires each popup child to provide - a reference to its popup parent. - - - - - Represents the method that will handle the event. - - The source of the event. - A PopupClosedEventArgs that contains the event data. - - - - Provides data for the event. - - - - - Creates an instance of the PopupClosedEventArgs class. - - A PopupCloseType value. - - - - Returns the PopupCloseType value indicating the way in which - the popup was closed. - - - - - Implement this interface to provide context menu location in your control when - the context menu is invoked by a keyboard key. - - Used by the XPMenus framework (when using PopupMenus in Essential Tools) to determine the context menu location - for a control. - - - - Returns a point in client coordinates of the control. - - - This method will be called when the context menu is being - invoked due to a key like Shift + F10. The control that implements this - interface should then return a point in client coordinates of the - control where the context menus should be shown. - If the control were a - TreeView for example, it should then return a location beside the current - selected node. - - - - - Summary description for MessageFilterEntryHelperWeakContainer. - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - Provides information, whether popup is ignoring - working area of the display before showing. - This interface should be implemented by classes, - that contain ot use popups. - - - - - Indicates whether derived class ignores working area of the display before showing popup windows. - - - - - Provides a FindParentForm method that returns the parent form. Use this interface - instead of Control.FindForm when you want to support nested windowless grid as used - in GridGroupingControl. See also of the - class. - - - - - Returns the parent form of the control. Use this - instead of Control.FindForm when you want to support nested windowless grid as used - in GridGroupingControl. See also of the - class. - - The parent form. - - - - Provides a FindFormHelper.FindForm(Control) method that supports the IFindParentForm interface. Use this instead of calling - Control.FindForm. - - - - - Provides a FindFormHelper.FindForm(Control) method that you can use instead of calling - Control.FindForm. - - - - - Defines an interface that a can take and parent itself to. - - - - provides a default implementation that should be useful for all - practical purposes. - - - - - - Provides the appropriate location to the popup given the alignment preferences. - - - - This method is usually called to determine whether the open popup should be closed - due to some action in a different control. If this different control is a "related" control, - the popup framework will not close the popup. - - - - - - Gets / sets the this container is parented to. - - - An instance of the class. - - - If this is a control, you would set it to be a child of - the and position it appropriately in the set property. - - - - - A generic window that can be used for drop-down behavior, with WS_EX_TOOLWINDOW and CS_SAVEBITS styles. - - - Internally used by the PopupHost class. - - - - - A form-derived class that can be derived to create custom top-level - windows like ToolTips, a splash window, etc. - - - - - Creates a new instance of the TopLevelWindow class. - - - - - Shows the window as the top-level window without activating it. - - - - - Overridden to ignore Win32Exception. - - - - - - - - The top level form-derived class that hosts a - when it is dropped-down. - - - You will normally not have to use this class or refer to - an instance of this class. An instance of this class will - be automatically generated by the which - will then set this as its parent when is called on it. - - However, you can for example access an instance of this - class from the PopupControlContainer and change certain properties. - - - You can include a shadow in your popups by setting the NeedShadow property. - - - - Take a look at PopupControlContainer.PopupHost property reference for an example - on how to access and modify the PopupHost's properties during run-time. - - - - - Creates a new instance of the PopupHost class. - - - - - Overridden. See . - - - - - - Ignore working area when menu begin popup. - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Shows the popup. - - - - - Updates popup host visibility and z-order. - - - - - Computes size and position of popup. - - - - - Hides the popup. - - - - - Indicates whether a shadow should - be drawn around the popup window. - - True if a shadow is needed; False otherwise. - - - - Gets / sets the PopupControlContainer that this PopupHost - will host. - - - An implementation of the interface. - - - - - Returns a value indicating - the current alignment of the popup window. - - - A value. - - - - - Gets / sets the overlap border color with which this top-level form should be drawn. - - A color value. - - This color will be used by this form only when the is set to None. - The form will draw a custom single-line border with this color and also draw - the overlapped look, if overlapped borders are available. - - - - - Gets or sets ignore working area when menu begin popup. - - - - - A panel-derived class that will let you design custom popups - within a form's designer. - - - To design a custom popup, drag-and-drop it off the toolbox - into a form during design-time. Then populate it with - appropriate controls just like you would any other panel. - You can mark it as invisible (Visible = false) so that it - will not interfere with the form's layout mechanism. It's also recommended that - you unparent it from the design-time parent in your form constructor code, as shown in the sample code below. - - When you are ready to popup, call this class's method. This will show - the popup at the specified location. - - - There are different configurations in which you can use this - PopupControlContainer. - - When you specify a Parent Control using - and pass a Point.Empty location to - , the popup location will be dynamically determined - based on the 's bounds and the screen area. - - - For even more control over the alignment and positioning - of the popup, you should implement an interface - and assign that to the property (this you would - do instead of the above PopupControl-based alignment.). - - - - When the popup is showing, the PopupControlContainer, - in the ProcessDialogKey override will look for Alt, Enter, Tab, Esc, F4, - and F2 keys and either cancel or close the popup. If you want - to prevent this, then set to False. You should - then make sure to close the popup manually whenever appropriate using - . - The PopupControlContainer also fires the , (after popup) - and events that you can handle. You could for example - set the focus on a control within the PopupControlContainer in the - popup event handler. - - - The following example has a PopupControlContainer that gets shown when the - user does an Alt+DownArrow on a text box. - - public Form1() - { - InitializeComponent(); - // It's recommended that you keep the PopupControlContainer unparented by - // any control on the form (which will be the default case as set up during design-time). - // Otherwise, the Form won't close sometimes after dropping down this popup! - this.popupControlContainer1.Parent.Controls.Remove(this.popupControlContainer1); - } - #region Windows Form Designer generated code - private void InitializeComponent() - { - System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); - this.popupControlContainer1 = new Syncfusion.Windows.Forms.PopupControlContainer(); - this.cancel = new System.Windows.Forms.Button(); - this.OK = new System.Windows.Forms.Button(); - this.popupTextBox = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.sourceTextBox = new System.Windows.Forms.TextBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.dropDownBtn = new System.Windows.Forms.Button(); - this.mainMenu1 = new System.Windows.Forms.MainMenu(); - this.menuItem1 = new System.Windows.Forms.MenuItem(); - this.menuItem2 = new System.Windows.Forms.MenuItem(); - this.popupControlContainer1.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.SuspendLayout(); - // - // popupControlContainer1 - // - this.popupControlContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.popupControlContainer1.Controls.AddRange(new System.Windows.Forms.Control[] { - this.cancel, - this.OK, - this.popupTextBox}); - this.popupControlContainer1.Location = new System.Drawing.Point(80, 128); - this.popupControlContainer1.Name = "popupControlContainer1"; - this.popupControlContainer1.Size = new System.Drawing.Size(120, 128); - this.popupControlContainer1.TabIndex = 0; - this.popupControlContainer1.Visible = false; - this.popupControlContainer1.Popup += new System.EventHandler(this.popupControlContainer1_Popup); - this.popupControlContainer1.CloseUp += new Syncfusion.Windows.Forms.PopupClosedEventHandler(this.popupControlContainer1_CloseUp); - this.popupControlContainer1.BeforePopup += new System.ComponentModel.CancelEventHandler(this.popupControlContainer1_BeforePopup); - // - // cancel - // - this.cancel.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.cancel.Location = new System.Drawing.Point(64, 96); - this.cancel.Name = "cancel"; - this.cancel.Size = new System.Drawing.Size(48, 24); - this.cancel.TabIndex = 2; - this.cancel.Text = "Cancel"; - this.cancel.Click += new System.EventHandler(this.cancelButton_Click); - // - // OK - // - this.OK.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.OK.Location = new System.Drawing.Point(8, 96); - this.OK.Name = "OK"; - this.OK.Size = new System.Drawing.Size(48, 24); - this.OK.TabIndex = 1; - this.OK.Text = "OK"; - this.OK.Click += new System.EventHandler(this.OK_Click); - // - // popupTextBox - // - this.popupTextBox.Multiline = true; - this.popupTextBox.Name = "popupTextBox"; - this.popupTextBox.Size = new System.Drawing.Size(118, 90); - this.popupTextBox.TabIndex = 0; - this.popupTextBox.Text = ""; - // - // label1 - // - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.label1.Location = new System.Drawing.Point(16, 56); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(256, 64); - this.label1.TabIndex = 1; - this.label1.Text = "Associate a PopupControlContainer with this TextBox. And also transfer data back " + - "and forth between the popup and the TextBox."; - // - // sourceTextBox - // - this.sourceTextBox.Location = new System.Drawing.Point(40, 128); - this.sourceTextBox.Name = "sourceTextBox"; - this.sourceTextBox.Size = new System.Drawing.Size(200, 20); - this.sourceTextBox.TabIndex = 2; - this.sourceTextBox.Text = "Alt+DownArrow for popup"; - this.sourceTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxPopupParent_KeyDown); - // - // groupBox1 - // - this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] { - this.dropDownBtn}); - this.groupBox1.Location = new System.Drawing.Point(8, 32); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(280, 128); - this.groupBox1.TabIndex = 3; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "PopupControlContainer demo"; - // - // dropDownBtn - // - this.dropDownBtn.Image = ((System.Drawing.Bitmap)(resources.GetObject("dropDownBtn.Image"))); - this.dropDownBtn.Location = new System.Drawing.Point(240, 96); - this.dropDownBtn.Name = "dropDownBtn"; - this.dropDownBtn.Size = new System.Drawing.Size(26, 20); - this.dropDownBtn.TabIndex = 0; - this.dropDownBtn.Click += new System.EventHandler(this.dropDownBtn_Click); - // - // mainMenu1 - // - this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.menuItem1}); - // - // menuItem1 - // - this.menuItem1.Index = 0; - this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.menuItem2}); - this.menuItem1.Text = "Help"; - // - // menuItem2 - // - this.menuItem2.Index = 0; - this.menuItem2.Text = "About Syncfusion"; - this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); - // - // Form1 - // - this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.ClientSize = new System.Drawing.Size(292, 273); - this.Controls.AddRange(new System.Windows.Forms.Control[] { - this.sourceTextBox, - this.label1, - this.popupControlContainer1, - this.groupBox1}); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Menu = this.mainMenu1; - this.Name = "Form1"; - this.Text = "Custom Popups Dialog"; - this.popupControlContainer1.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.ResumeLayout(false); - - } - #endregion - - [STAThread] - public static void Main() - { - Application.Run(new Form1()); - } - - #region OpenClosePopup - private void textBoxPopupParent_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) - { - // Using this unconventional if statement syntax to avoid "and" symbol (documentation restriction, please ignore). - - // If user pressed key down, then show the popup. - if(e.Alt) - if(e.KeyCode == Keys.Down) - if(!this.popupControlContainer1.IsShowing()) - { - // Let the popup align around the source textBox. - this.popupControlContainer1.ParentControl = this.sourceTextBox; - // Passing Point.Empty will align it automatically around the above ParentControl. - this.popupControlContainer1.ShowPopup(Point.Empty); - - e.Handled = true; - } - // Escape should close the popup. - if(e.KeyCode == Keys.Escape) - if(this.popupControlContainer1.IsShowing()) - this.popupControlContainer1.HidePopup(PopupCloseType.Canceled); - } - - private void OK_Click(object sender, System.EventArgs e) - { - this.popupControlContainer1.HidePopup(PopupCloseType.Done); - } - - private void cancelButton_Click(object sender, System.EventArgs e) - { - this.popupControlContainer1.HidePopup(PopupCloseType.Canceled); - } - #endregion OpenClosePopup - - #region PopupEvents - private void popupControlContainer1_BeforePopup(object sender, System.ComponentModel.CancelEventArgs e) - { - // Set the text to be edited with the text in the form text box. - this.popupTextBox.Text = this.sourceTextBox.Text; - } - - private void popupControlContainer1_Popup(object sender, System.EventArgs e) - { - // Set the focus on the text box inside the popup after it is open. - this.popupTextBox.Focus(); - this.popupTextBox.SelectionStart = 0; - this.popupTextBox.SelectionLength = 0; - } - - private void popupControlContainer1_CloseUp(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs args) - { - // Transfer data from the popup. - if(args.PopupCloseType == PopupCloseType.Done) - { - this.sourceTextBox.Text = this.popupTextBox.Text; - } - // Set focus back to textbox. - if(args.PopupCloseType == PopupCloseType.Done - || args.PopupCloseType == PopupCloseType.Canceled) - this.sourceTextBox.Focus(); - } - #endregion PopupEvents - - Public Sub New() - MyBase.New() - InitializeComponent() - ' It's recommended that you keep the PopupControlContainer unparented by - ' any Control on the Form (which will be the default case as set up during design-time). - ' Otherwise, the Form wouldn't close sometimes, after dropping down this popup! - Me.popupControlContainer1.Parent.Controls.Remove(Me.popupControlContainer1) - End Sub - - Private Sub InitializeComponent() - - Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1)) - Me.popupControlContainer1 = New Syncfusion.Windows.Forms.PopupControlContainer() - Me.cancel = New System.Windows.Forms.Button() - Me.OK = New System.Windows.Forms.Button() - Me.popupTextBox = New System.Windows.Forms.TextBox() - Me.label1 = New System.Windows.Forms.Label() - Me.sourceTextBox = New System.Windows.Forms.TextBox() - Me.groupBox1 = New System.Windows.Forms.GroupBox() - Me.dropDownBtn = New System.Windows.Forms.Button() - Me.mainMenu1 = New System.Windows.Forms.MainMenu() - Me.menuItem1 = New System.Windows.Forms.MenuItem() - Me.menuItem2 = New System.Windows.Forms.MenuItem() - Me.popupControlContainer1.SuspendLayout() - Me.groupBox1.SuspendLayout() - Me.SuspendLayout() - ' - ' popupControlContainer1 - ' - Me.popupControlContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.popupControlContainer1.Controls.AddRange(New System.Windows.Forms.Control() {Me.cancel, Me.OK, Me.popupTextBox}) - Me.popupControlContainer1.Location = New System.Drawing.Point(80, 128) - Me.popupControlContainer1.Name = "popupControlContainer1" - Me.popupControlContainer1.Size = New System.Drawing.Size(120, 128) - Me.popupControlContainer1.TabIndex = 0 - Me.popupControlContainer1.Visible = False - AddHandler Me.popupControlContainer1.Popup, New System.EventHandler(AddressOf popupControlContainer1_Popup) - AddHandler Me.popupControlContainer1.CloseUp, New Syncfusion.Windows.Forms.PopupClosedEventHandler(AddressOf popupControlContainer1_CloseUp) - AddHandler Me.popupControlContainer1.BeforePopup, New System.ComponentModel.CancelEventHandler(AddressOf popupControlContainer1_BeforePopup) - ' - ' cancel - ' - Me.cancel.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _ - Or System.Windows.Forms.AnchorStyles.Left) _ - Or System.Windows.Forms.AnchorStyles.Right) - Me.cancel.Location = New System.Drawing.Point(64, 96) - Me.cancel.Name = "cancel" - Me.cancel.Size = New System.Drawing.Size(48, 24) - Me.cancel.TabIndex = 2 - Me.cancel.Text = "Cancel" - AddHandler Me.cancel.Click, New System.EventHandler(AddressOf cancelButton_Click) - ' - ' OK - ' - Me.OK.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _ - Or System.Windows.Forms.AnchorStyles.Left) _ - Or System.Windows.Forms.AnchorStyles.Right) - Me.OK.Location = New System.Drawing.Point(8, 96) - Me.OK.Name = "OK" - Me.OK.Size = New System.Drawing.Size(48, 24) - Me.OK.TabIndex = 1 - Me.OK.Text = "OK" - AddHandler Me.OK.Click, New System.EventHandler(AddressOf OK_Click) - ' - ' popupTextBox - ' - Me.popupTextBox.Multiline = True - Me.popupTextBox.Name = "popupTextBox" - Me.popupTextBox.Size = New System.Drawing.Size(118, 90) - Me.popupTextBox.TabIndex = 0 - Me.popupTextBox.Text = "" - ' - ' label1 - ' - Me.label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.label1.Location = New System.Drawing.Point(16, 56) - Me.label1.Name = "label1" - Me.label1.Size = New System.Drawing.Size(256, 64) - Me.label1.TabIndex = 1 - Me.label1.Text = ("Associate a PopupControlContainer with this TextBox. And also transfer data back " + "and forth between the popup and the TextBox.") - ' - ' sourceTextBox - ' - Me.sourceTextBox.Location = New System.Drawing.Point(40, 128) - Me.sourceTextBox.Name = "sourceTextBox" - Me.sourceTextBox.Size = New System.Drawing.Size(200, 20) - Me.sourceTextBox.TabIndex = 2 - Me.sourceTextBox.Text = "Alt+DownArrow for popup" - AddHandler Me.sourceTextBox.KeyDown, New System.Windows.Forms.KeyEventHandler(AddressOf textBoxPopupParent_KeyDown) - ' - ' groupBox1 - ' - Me.groupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.dropDownBtn}) - Me.groupBox1.Location = New System.Drawing.Point(8, 32) - Me.groupBox1.Name = "groupBox1" - Me.groupBox1.Size = New System.Drawing.Size(280, 128) - Me.groupBox1.TabIndex = 3 - Me.groupBox1.TabStop = False - Me.groupBox1.Text = "PopupControlContainer demo" - ' - ' dropDownBtn - ' - Me.dropDownBtn.Image = CType(resources.GetObject("dropDownBtn.Image"), System.Drawing.Bitmap) - Me.dropDownBtn.Location = New System.Drawing.Point(240, 96) - Me.dropDownBtn.Name = "dropDownBtn" - Me.dropDownBtn.Size = New System.Drawing.Size(26, 20) - Me.dropDownBtn.TabIndex = 0 - AddHandler Me.dropDownBtn.Click, New System.EventHandler(AddressOf dropDownBtn_Click) - ' - ' mainMenu1 - ' - Me.mainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.menuItem1}) - ' - ' menuItem1 - ' - Me.menuItem1.Index = 0 - Me.menuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.menuItem2}) - Me.menuItem1.Text = "Help" - ' - ' menuItem2 - ' - Me.menuItem2.Index = 0 - Me.menuItem2.Text = "About Syncfusion" - AddHandler Me.menuItem2.Click, New System.EventHandler(AddressOf menuItem2_Click) - ' - ' Form1 - ' - Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) - Me.ClientSize = New System.Drawing.Size(292, 273) - Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.sourceTextBox, Me.label1, Me.popupControlContainer1, Me.groupBox1}) - Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) - Me.Menu = Me.mainMenu1 - Me.Name = "Form1" - Me.Text = "Custom Popups Dialog" - Me.popupControlContainer1.ResumeLayout(False) - Me.groupBox1.ResumeLayout(False) - Me.ResumeLayout(False) - - End Sub - - Private Sub textBoxPopupParent_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) - - ' Using this unconventional if statement syntax to avoid "and" symbol (documentation restriction, please ignore). - ' If user pressed key down, then show the popup. - ' Escape should close the popup. - If e.Alt Then - If (e.KeyCode = Keys.Down) Then - If Not (Me.popupControlContainer1.IsShowing) Then - ' Let the popup align around the source textBox. - Me.popupControlContainer1.ParentControl = Me.sourceTextBox - ' Passing Point.Empty will align it automatically around the above ParentControl. - Me.popupControlContainer1.ShowPopup(Point.Empty) - e.Handled = True - End If - End If - End If - If (e.KeyCode = Keys.Escape) Then - If Me.popupControlContainer1.IsShowing Then - Me.popupControlContainer1.HidePopup(PopupCloseType.Canceled) - End If - End If - - End Sub - Private Sub OK_Click(ByVal sender As Object, ByVal e As EventArgs) - - Me.popupControlContainer1.HidePopup(PopupCloseType.Done) - - End Sub - Private Sub cancelButton_Click(ByVal sender As Object, ByVal e As EventArgs) - - Me.popupControlContainer1.HidePopup(PopupCloseType.Canceled) - - End Sub - Private Sub popupControlContainer1_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - - ' Set the text to be edited with the text in the form text box. - Me.popupTextBox.Text = Me.sourceTextBox.Text - - End Sub - Private Sub popupControlContainer1_Popup(ByVal sender As Object, ByVal e As EventArgs) - - ' Set the focus on the text box inside the popup after its open. - Me.popupTextBox.Focus() - Me.popupTextBox.SelectionStart = 0 - Me.popupTextBox.SelectionLength = 0 - - End Sub - Private Sub popupControlContainer1_CloseUp(ByVal sender As Object, ByVal args As PopupClosedEventArgs) - - ' Transfer data from the popup. - ' Set focus back to textbox. - If (args.PopupCloseType = PopupCloseType.Done) Then - Me.sourceTextBox.Text = Me.popupTextBox.Text - End If - If ((args.PopupCloseType = PopupCloseType.Done) _ - OrElse (args.PopupCloseType = PopupCloseType.Canceled)) Then - Me.sourceTextBox.Focus() - End If - - End Sub - - - - - Default size of the control - - - - - Ensures that the property returns a valid PopupHost. - - - - Normally the property will return a non-NULL value only when - the popup was displayed at least once. Calling this method will ensure that the property - returns a non-NULL value. - - - - - - Creates a new instance of the . - - - - - Initializes a new instance of the class with a specified container. - - A that represents the container of the . - - Containers are objects that encapsulate and track zero or more components. In this context, containment refers to logical containment, not visual containment. - You can use components and containers in a variety of scenarios, including scenarios that are both visual and not visual. - Note to Implementers: To be a container, the class must implement the IContainer interface, which supports methods for adding, removing and retrieving components. - Unlike other controls, a is not a direct child of your form (though this is the case during design-time). - This requires you to explicitly dispose of this control before the form gets destroyed. - With this constructor override, the automatically plugs itself into a form's - default component-containment pattern (through the IContainer member) during design-time. If you create this class in code, then you have to set it up manually. - The implementation simply adds the instance into the container. - - - - - - - - Gets preferred location. - - - - - - - - Shows the popup at the specified location. - - A point in screen coordinates. - Can be Point.Empty. - - A popup's position is determined as follows. - First, if an interface is associated (using - the property), then it is queried for the preferred - position. If there is no such interface, the location - specified in the method call is used. If ShowPopup - was called with Point.Empty, then the 's bounds are used - to determine an appropriate position to drop-down. - This will throw a followed by a event. - Use to hide the popup in code. - - When the popup is closed either programmatically or by the user, - the event will be thrown that will indicate - whether the popup was closed or canceled. - - - - - - Hides a popup that is open. - - - This method will hide the popup with the mode. - - - - - This method is called from the BarManager class when the parent form is deactivated. - It checks whether the user clicked inside a child control of this PopupControlContainer. - If this is not the case (e.g. user clicked on another window on the desktop) then the popup gets hidden. - - - - - Hides a popup with the specified mode. - - A PopupCloseType value. - - - - Overridden. See . - - - - - - - Overridden. . - - - - - - Sets focus on the popup parent control. - - - - - Focuses first visible parent. - - - - - Specifies whether the control is in set focus. - - - - - - - - - - - - - - applies the scaling - - - - - font changed - - - - - - - - - Checks whether the control is a related control. - - - - - - - - Indicates whether the popup is currently dropped down. - - True indicates popup is dropped down; False otherwise. - - - - Raises the BeforePopup event. - - A CancelEventArgs that contains the event data. - - The OnBeforePopup method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnBeforePopup in a derived - class, be sure to call the base class's OnBeforePopup method so that - registered delegates receive the event. - - - - - Raises the event. - - A instance containing - data pertaining to this event. - - The OnCloseUp method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnCloseUp in a derived - class, be sure to call the base class's OnCloseUp method so that - registered delegates receive the event. - - - - - Raises the event. - - An EventArgs instance containing - data pertaining to this event. - - The OnPopup method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnPopup in a derived - class, be sure to call the base class's OnPopup method so that - registered delegates receive the event. - - - - - Indicates whether the control is in design-mode. - - - - - - - - Indicates whether the popup should send a kill focus message - to the control with focus when the popup was shown. - - True to send a KillFocus message; False otherwise. Default value - is False. - - Faking focus is only necessary when the - doesn't take the focus but you want it to look like it - took the focus. - - When this property is True, a KillFocus message will be - sent to the control that currently has the focus after the - PopupControlContainer is dropped down and a SetFocus message - will be sent to the control with focus when the popup is - closed. - - - Again, you will probably not need this functionality in - most of the cases, since you will probably set the focus - on some control with this PopupControlContainer as soon - as it pops up (from within the popup event handler). - - - - - - Gets or sets a reference to the PopupHost that will be - used to host this PopupControlContainer when dropped down. - - The PopupHost object that will host this PopupControlContainer. - - PopupHost is the top level form-based control that hosts - this PopupControlContainer when dropped down. - - The PopupControlContainer usually creates a custom - PopupHost when it is asked to drop down. However, you - can provide your own PopupHost if you have a customized - version. - - - You can also get a reference to the - that the PopupControlContainer uses by default and make - changes to it. The PopupControlContainer creates a - default PopupHost when there is no PopupHost supplied - to it, but gets called to show the popup. - Hence, the best place to get the default PopupHost - associated with this PopupControlContainer is in the - handler. Or call to - create the default PopupHost if it is not yet created. - - - - The following example shows how to make the PopupHost's border style resizable to create a resizable popup. - - // The PopupControlContainer's BeforePopup event handler - private void popupControlContainer1_BeforePopup(object sender, System.ComponentModel.CancelEventArgs e) - { - // Create a Popup, that can be resized. - - // Make the popup host's border style resizable. - this.popupControlContainer1.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow; - this.popupControlContainer1.PopupHost.BackColor = this.BackColor; - - // Necessary to set the host's client size every time, especially since the - // popup's Dock style is set to DockStyle.Fill. - if(!(this.popupControlContainer1.PopupHost.Size.Width >= 140)) - this.popupControlContainer1.PopupHost.Size = new System.Drawing.Size(140, 150); - - // So that the popup container will fill the entire popup host when resized. - this.popupControlContainer1.Dock = DockStyle.Fill; - } - - ' The PopupControlContainer's BeforePopup event handler - Private Sub popupControlContainer1_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - - ' Create a popup that can be resized. - ' Make the popup host's border style resizable. - Me.popupControlContainer1.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow - Me.popupControlContainer1.PopupHost.BackColor = Me.BackColor - ' Necessary to set the host's client size every time, especially since the - ' popup's dock style is set to DockStyle.Fill. - ' So that the popup container will fill the entire popup host when resized. - If Not ((Me.popupControlContainer1.PopupHost.Size.Width >= 140)) Then - Me.popupControlContainer1.PopupHost.Size = New System.Drawing.Size(140, 150) - End If - Me.popupControlContainer1.Dock = DockStyle.Fill - - End Sub - - - - - Gets or sets the discreet location. - - - - - Specifies the PopupControlContainer's control parent. - - A control instance. - - The Parent-Child relationship in this case is NOT similar - to the one in the control hierarchy. - - When you specify a Parent Control via - ParentControl and pass a Point.Empty location to - ShowPopup, the popup location will be dynamically determined - based on the ParentControl bounds and the screen area. - - - - - Specifies the parent. - - An instance that implements . - - When you associate an IPopupParent interface with the PopupControlContainer - you get even more control over the alignment and positioning - of the Popup, (this you would - do instead of the PopupControl based parenting). - When you provide this interface, the alignment and - positioning logic is delegated to this interface. - - - Take a look at our PopupsInDepth sample under the Tools/Samples/In Depth folder - for sample usage. - - - - - Indicates whether to ignore dialog keys. - - True to ignore dialog keys; False if not to. Default is False. - - When the popup is showing, the PopupControlContainer - in the ProcessDialogKey override will look for Alt, Enter, Tab, Esc, F4, - and F2 keys and either cancel or close the popup. If you want - to prevent this, set IgnoreDialogKey = False. You should - then listen for the above keys and make sure to close the popup manually whenever appropriate using - HidePopup. - - - - - Indicates whether to ignore all mouse messages. - - True to ignore all mouse messages; False otherwise. Default is False. - - When the popup is showing it will "swallow" all the mouse messages that are sent to - controls not in the popup-hierarchy. When showing, the popup will also listen to - mouse messages to determine if the popup should be closed (for mouse down - outside the popup-hierarchy, for example). - - To prevent this behavior, set this property to True. - When set to True, the popup will close only when you call - the method or when a new popup gets shown. - - - - - Indicates whether to ignore all keys. - - True to ignore all keys; False otherwise. Default is False. - - When the popup is showing, it will "swallow" all the WM_KEYDOWN and WM_CHAR - messages. To prevent it, set this property to True. - - - - - Occurs before a popup is closed. - - - - - Specifies whether the drop down need to be closed on pressing tab on the last item and shift tab on the first item in the drop down. - - - - - gets or sets the touchmode - - - - - Gets or sets the current popup child in the popup hierarchy. - - An instance of interface. - When you want to show a parent-child hierarchy of popups, - call this property on the parent popup before showing the child popup. - - - For example: - - // While the parent PopupControlContainer is showing, you might want to show another child - // PopupControlContainer. You can do so as follows: - // Set up parent-child relationship. - parentPopupControlContainer.CurrentPopupChild = childPopupControlContainer; - childPopupControlContainer.PopupParent = parentPopupControlContainer; - - // Now show the child popup. - childPopupControlContainer.ShowPopup(); - - - ' While the parent PopupControlContainer is showing, you might want to show another child - ' PopupControlContainer. You can do so as follows: - ' Set up parent-child relationship - parentPopupControlContainer.CurrentPopupChild = childPopupControlContainer - childPopupControlContainer.PopupParent = parentPopupControlContainer - - ' Now show the child popup. - childPopupControlContainer.ShowPopup() - - - - - - Occurs when a popup is closed. - - - Handling this event will tell you whether the popup was - closed or canceled by the user. This, in some cases, will then let you - know whether or not you should accept changes in the popup. - - - - - Occurs when the popup is about to be shown. - - - You may choose to cancel drop-down in this handler. - This is also a good place, for example, to access the PopupControlContainer's - PopupHost and make changes to it. - - - - - Occurs after the popup has been dropped down and made visible. - - This is a good place, for example, to set the - focus on a control in the popup. - - - - Accessibility class to provide Coded UI support. - - - - - Variable for PopupControlContainer. - - - - - Constructor. - - PopupControlContainer - - - - Retrieves the object that has the focus. - - - - - - Retrieves the currently selected child. - - Child - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate - The vertical screen coordinate - An System.Windows.Forms.AccessibleObject that represents the child object - at the given screen coordinates. - - - - Bounds of the Control - - - - - Gets the role for the PopupControlContainer. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - - - - Gets the description of the Control.ControlAccessibleObject - - - - - Gets the state of the accessible object. - - - - - Gets the description of what the object does or how the object is used. - - - - - Gets the parent of an accessible object. - - - - - Gets or sets the value of an accessible object. - - - - - Suspends applying filters by tag. - - - - - - Resumes applying filters by tag. - - - - - - Utility to help you filter messages in both a .NET and Native app. - - The interface that will receive messages for filtering in a .NET app. - Specifies whether or not this filter should be inserted on top (with highest priority). - - - - Gets/sets whether to disable release hook or not - - - - - Modified PopupControlContainer that takes a child control and - adds a sizable grip so that the window can be sized. - - - - - The child control that is to be embedded. - - - - - Indicates whether the container has already been initialized. - - - - - Indicates whether size is dependant of child control size. - - - - - Creates an object of type SizablePopupControlContainer. - - - - - - - - - Displays the popup control. - - The location at which the popup's left top position will appear. - - - - Initializes the container control. - - - - - Adjusts bounds of the popupHost. - - - - - Indicates whether size is dependant of child control size. - - - - - Derives from the PopupHost class and adds a gripper label and - makes the form sizable. - - - - - Used when ShowGripper or ShowCloseButton property is set to true; - - - - - Label for the gripper. - - - - - The close button. - - - - - The embedded child control. - - - - - The current size - used when resizing. - - - - - Indicates whether the window is being resized. - - - - - The host rectangle. - - - - - Internal initialization state of drop-down window. - - - - - The last size of the window. - - - - - Indicates whether to show gripper. - - - - - Indicates whether to show close bytton. - - - - - Create an object of type SizablePopupHost. - - - - - - - - - Hides the popup. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Overrides PopupHost.ComputeMySize. - - - - - - - - Handles the MouseDown event of the gripper label. - - The gripper label. - The event data. - - - - Handles the MouseUp event of the gripper label. - - The gripper label. - The event data. - - - - Handler for the MouseMove event of the gripper label. - - The gripper label. - The event data. - - - - Handler for the MouseEnter event of the Close Button. - - The close button. - The event data. - - - - Handler for the MouseLeave event of the Close Button. - - The close button. - The event data. - - - - Handler for the Click event of the close button. - Closes the popup window. - - The close button. - The event data. - - - - Last size property. - - For AutoComplete DropDownSize persistance - - - - Returns/sets the visibility of the close button - - - - - Indicates whether a gripper will be shown that can used for resizing - - - - - The close button used in SizablePopupHost. - - - - - Override OnPaint. - - The event data. - - - - Gets / sets the text property. - - - - - Implement this interface in a class if the class embeds one or more - edit controls (text boxes, combo boxes). Implementing this interface - provides a way for external classes to access the embedded edit - control(s). - - - - - Returns the active edit control (text box, combo box). - - The IEditControlsEmbedListener based auto complete control. - - The implementation of this method will let the AutoComplete - control provide a link back to it so that it can be informed - of any changes in the active edit control. - - This is used when there are more than one edit controls on one - composite control. In this case, the AutoComplete control - will be informed when there is a change in focus between - the different edit controls. This is assuming that the AutoComplete - control is not able to sense the change in focus. - - - - - - The BorderPanel is a control that can be used to wrap other controls inside improving its visual appearance. - - - - - Required designer variable. - - - - - Cleans up any resources being used. - - - - - Required method for designer support - do not modify - the contents of this method with the code editor. - - - - - Gets / sets the background information of the border. - - - - - Gets / sets the color of the background of the inner surface. - - - - - Gets / sets the sizes of the sides of the border. - - - - - Gets / sets the control to be displayed inside the panel. - - - - - Gets / sets the round corner radii of the inner surface. - - - - - Gets / sets the width of the border of the inner surface. - - - - - Gets / sets the width of the border. - - - - - Gets / sets the round corner radii of the outer shape. - - - - - Gets / sets the height state of the inner surface. - - - - - Gets / sets the height state of the outer surface. - - - - - Indicates the states of the two borders of the BorderPanel. - - - - - Holds information about the rounded corners of the BorderPanel. - - - - - The default settings of the panel. - - - - - Gets / sets the BottomRight round corner radius. - - - - - Gets / sets the BottomLeft round corner radius. - - - - - Gets / sets the TopRight round corner radius. - - - - - Gets / sets the TopLeft round corner radius. - - - - - Gets / sets all the other values to the specified value. - - - - - Holds information about the sides of the borders of the BorderPanel. - - - - - The default dimension settings. - - - - - Gets / sets all the other members to the specified value. - - - - - Gets / sets the bottom border side's width. - - - - - Gets / sets the right border side's width. - - - - - Gets / sets the left border side's width. - - - - - Gets / sets the top border side's width. - - - - - Summary description for GradienPanelExtPrimitivesEditorForm. - - - - - Reference to owner control. - - - - - Collection of the primitives when added. - - - - - Collection of the primitives when removed. - - - - - Fills ListBox of primitives. - - - - - Fills cbPrimitives of types prmitive. - - - - - Creates primitive. - - - - - The GradientPanel is a -derived class that has numerous border styles and has a background composed of a multiple gradient brush. - - - - - - Implement this interface in a derived class to start supporting themes. - - - - - Indicates whether themes are enabled. - - - - - Default size of the control - - - - - Required designer variable. - - - - - Cleans up any resources being used. - - - - - Required method for designer support - do not modify - the contents of this method with the code editor. - - - - - - - - Applies the scaling for controls - - - - - Font changed - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - Occurs when border style is changed. - - - - - Occurs when border's 3D style is changed. - - - - - Occurs when border's 2D style is changed. - - - - - Occurs when border color is changed. - - - - - Occurs when gradient background is changed. - - - - - Occurs when vertical gradient is changed. - - - - - Occurs when gradient colors are changed. - - - - - Occurs when border sides are changed. - - - - - Occurs when property is changed. - - - - - Indicates whether the control will ignore the theme's background color and draw the backcolor instead. - - - - - Indicates whether the control is themed. - - - - - Gets or sets the border sides of the panel. - - - - - The background color, gradient and other styles can be set through - this property. - - - The GradientPanel control provides this property to enable specialized - custom gradient backgrounds. - - - - - Gets or Sets whether to have custom scrollbar - - - - - Gets or sets the color array that defines the gradient. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Indicates whether the gradient is vertical. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Indicates whether the background will be drawn with the gradient. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Gets or sets the color of the 2D border. - - - - - - - - - - Gets or sets the 2D border style. - - - - - Gets or sets the border style of the panel. - - - - - Gets or sets the style of the 3D border. - - - - - Gets the ScrollerFrame - - - - - Gets or Sets the touch mode - - - - - Accessibility class to provide Coded UI support. - - - - - Variable for GradientPanel. - - - - - Constructor. - - GradientPanel - - - - Retrieves the object that has the focus. - - - - - - Retrieves the currently selected child. - - Child - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate - The vertical screen coordinate - An System.Windows.Forms.AccessibleObject that represents the child object - at the given screen coordinates. - - - - Bounds of the Control - - - - - Gets the role for the GradientPanel. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - - - - Gets the description of the Control.ControlAccessibleObject - - - - - Gets the state of the accessible object. - - - - - Gets the description of what the object does or how the object is used. - - - - - Gets the parent of an accessible object. - - - - - Gets or sets the value of an accessible object. - - - - - Represents panel that has border and collection of - that can be drawn on border. Control perhaps has rounded or right corner. - - - For setting rounded corner, assign property. - You can set space between the bounds of the control and border - using property. Control has two states: collapse or expand. - For change this state use property. - Collapse/Expand state can be used with animation. For using animation, you - must set as true. For specifying speed animation - use . To specify delay for animation use - . - Control can contain , see . - - - - - Gap between primitive and bounds control. - - - - - Minimum lenght for border where draw primitives. - - - - - Default corner radius. - - - - - Gap between border and bounds control. - - - - - Width for pent which draws light line for border. - - - - - Gap between border and side of the primitive. - - - - - Offset for border. - - - - - Offset for border when control is collapse. - - - - - Delay for timer. - - - - - Animation speed. - - - - - Angle degree 0. - - - - - Angle degree 45. - - - - - Angle degree 90; - - - - - Angle degree 180; - - - - - Angle degree 270; - - - - - Indicate that control is collapse or expande. - - - - - Radius truncation of the corner. - - - - - Space between the bound of the control and the border. - - - - - Inner Border Thickness - - - - - Inner Rectangle Border Color - - - - - Inner Rectangle Border Color - - - - - Inner Rectangle Background Brush - - - - - Inner Rectangle Background Brush - - - - - Padding like space between the bounds of the control and the borders. - - - - - Background color for control. - - - - - Graphics path which represent client area. - - - - - Graphics path which represent control area. - - - - - Collection of the Primitives. - - - - - Size of the control for expande state. - - - - - Location of the control for expande state. - - - - - Alignment collapse control. - - - - - Last alignment of the control. - - - - - Use for sets correctly location control regarding client path. - - - - - A value indicating whether the control uses animation. - - - - - Collapsed size of the control. - - - - - Mimimal controls size. - - - - - Rectangle which contains border. - - - - - Uses for animation. - - - - - Indicate that control in process of collapse. - Uses by redraw. - - - - - Delay for animation. - - - - - Speed of animation. - - - - - Indicate that control need redraw. - Uses by redraw before animation. - - - - - Default size of the control - - - - - Resets the Inner Rectangle Border Thickness - - - - - Serializes the Inner Border Thickness - - - - - - Resets the Inner Rectangle Border Color - - - - - Serializes the Inner Rectangle Border Color - - - - - - Resets the Inner Rectangle Background Brush - - - - - Serializes the Inner Rectangle Background Brush - - - - - - Initialize animation. - - - - - Initialize control's style. - - - - - Initialize control's colors. - - - - - Initialize primitives. - - - - - - - - Applies the scaling - - - - - Font Chnaged - - - - - Draws transparent background. - - - - - Calculates count position of animation. - - - - - Initiate animation. - - - - - Collapsing control. - - - - - Expanding control. - - - - - Check position added control regarding client path. - - True if control contains within client area, otherwise False. - - - - Refresh control path and client path. - - - - - Refresh location for all primitives - - - - - Refresh correctly position and size for all controls - which contain in GradinetPanelExt. - - - - - Refresh work sizes. - - - - - Gets inscribed rectangle in rounded path. - - - - - Gets rectangle which drawing control. - - - - - Gets rectangle which drawing control. - - - - - Gets rounded path. - - - - - Gets graphics path which represent control. - - - - - Gets graphics path which represent client area of the control. - - - - - Gets rectangle which primitive is drawing. - - - - - Gets start point position primitive from given side. - - - - - Gets end point position of the primitive from given side. - - - - - Gets size collapsed control. - - - - - Find maximum size of the primitive in the collection. - - - - - Find maximum size of the primitive in the collection for a specific side. - - - - - Gets minimum border gap. - - - - - Gets minimum border gap for a specific side. - - - - - Gets maximum border gap. - - - - - Gets maximum border gap for the specified side. - - - - - Ensures if the PBorderGap can be set - - - - - Gets maximum radius. - - - - - - Gets minimum size of the control. - - - - - Gets minimum size of the control relative to Primitives. - - - - - Gets minimum size of the control relative to controls when contains control. - - - - - Gets lines which dont contained in border. - - - - - Gets IDesignerHost interface. - - - - - - Gets region when dont draw. - - - - - Draws control. - - - - - Draws the border. - - - - - Draws non-rectangle border. - - - - - Draws light lines for non-rectangle border. - - - - - Draws dark lines for non-rectangle border. - - - - - Draws light arcs for non-rectangle border. - - - - - Draws dark arcs for non-rectangle border. - - - - - Draws rectangle border. - - - - - Draws lines for collapsed control. - - - - - Draws light line for collapsed control. - - - - - Draws dark line for collapsed control. - - - - - Changes size of the control. - - - - - Changes location of the control. - - - - - Sets correctly position of the control regarding client path. - - - - - Determines whether the control is the HostControl. - - - - - Sets correctly corner radius. - - - - - Sets correctly border gap. - - - - - Sets correctly position of the primitive. - - - - - Gets correct size of the control. - - - - - Sets position of the control. - - - - - Hide primitives. - - - - - Show primitives. - - - - - Sets size of the control. - - - - - Hide all controls which contains this control. - - - - - Show all controls which contains this control. - - - - - Gets bound of the control when doing animation. - - - - - Gets rectangle for redwaw when doing animation. - - - - - Gets dark pen for border. - - - - - Gets light pen for border. - - - - - Changes collapse state for each CollapsePrimitive from . - - - - - Gets or sets delay for animation. - - - - - Gets or sets speed of animation. - - - - - Location expanded control. - When control expanded it is Empty. - - - - - Size expanded control. - When control expanded it is Empty. - - - - - Gets or sets a value indicating whether the control uses animation. - - - - - Gets or sets state of the control, collapsed or expanded. - - - - - Gets or sets alignment collapsed control. - - - - - Gets or sets radius truncation corner of the control. - - - - - Gets or sets border gap. - - - - - Gets or sets border gap. - - - - - Gets / Sets the Inner Rectangle Border Thickness - - - - - Gets / Sets the Inner Rectangle Border Color - - - - - Gets / Sets the Inner Rectangle Background Brush - - - - - Gets or sets graphics path which represent client area. - - - - - Gets or sets graphics path which represent control area. - - - - - Gets collection of the primitives. - - - - - Gets bounds for expanded control. - - - - - Gets size for expanded control. - - - - - Get location for expanded control. - - - - - Gets or Sets the touchmode - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represent line. - - - - - Start point of the line. - - - - - End point of the line. - - - - - Represents a null Line. - - - - - Gets size of the line. - - - - - Gets or sets start point of the line. - - - - - Gets or set end point of the line. - - - - - Summary description for GradientPanelExtCollectionEditor. - - - - - Summary description for GradientPanelExtDesigner. - - - - - Selected primitive. - - - - - Distance from a mouse and bounds of the primitive. - - - - - Gets rectangle where can location primitives. - - - - - Sets alignment of primitive. - - - - - Sets position of primitive. - - - - - Gets draged primitive. - - - - - Gets or sets selected primitive. - - - - - Gets owner control. - - - - - Represents primitive that can be displayed in . - - - In order to display the Primitive, you must add it to the - property of . This is normally achieved using simple drag-and-drop - during design-time. - The Primitive class provides properties that enable you to configure the - appearance, behavior abd layoutof a primitive. For selecting a primitive you must click on it. - You can change , - and . You can define - of the Primitive in , - inside . - - - - - Offset for select rectangle. - - - - - Offset for redraw primitive. - - - - - Start position for primitive. - - - - - Color which uses for drawing border selected primitive. - - - - - Default size for primitive. - - - - - Size of the primitive. - - - - - Reprecent position of the primitive. - - - - - Border color for primitive. - - - - - Background color for primitive. - - - - - Border style for primitive. - - - - - Control which contains this primitive. - - - - - Size and location of the primitive. - - - - - Rectangle which drawing primitive. - - - - - Rectangle which drew primitive on previous position. - Uses for redraw previous position of the primitives. - - - - - Alignment primitive. - - - - - A value indicating whether the primitive is displayed. - - - - - Indicate that primitive is selectes. - - - - - Draws primitive. - - - - - Redraws primitive. - - - - - Draws border for primitive. - - - - - Draws primitive. - - - - - Draws border for selected primitive in the designer. - - - - - Gets rectangle for selected primitive. - - - - - Gets rectangle which drawing primitive. - - - - - Gets center of the primitive. - - - - - Gets count position of the primitive. - - - - - Gets correctly position of the primitive. - - - - - Gets or sets value indicate that primitive is selected. - - - - - Gets or sets a value indicating whether the primitive is displayed. - - - - - Gets or set alignment of the primitive. - - - - - Gets or sets size of the primitive. - - - - - Gets or sets border color for primitive. - - - - - Gets or sets background color for primitive. - - - - - Gets or sets border style for primitive. - - - - - Gets or sets position of the primitive. - - - - - Gets control which contains this primitive. - - - - - Gets or sets the size and location of the primitive. - - - - - Gets rectangle of drawing primitive. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a collapse/expand primitive. - - - - - Indicate that primitive is collapse. - - - - - Image for collapsed primitive. - - - - - Image for expanded primitive. - - - - - Sets collapse state. Don't raise event. - - - - - Draws plus/minus primitive. - - - - - Gets or sets image for collapsed primitive. - - - - - Gets or sets image for expanded primitive. - - - - - Gets or sets value which indicate that primitive is collapse. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a text primitive. - - - - - Angle of rotation for text primitive. - - - - - Displayed text. - - - - - Font for displayed text. - - - - - Color of the displayed text. - - - - - Gets or sets displayed text. - - - - - Gets or sets font for displayed text. - - - - - Gets or sets color of the displayed text. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents an image primitive. - - - - - Displayed image. - - - - - Rotated image. - - - - - A value indicating whether the primitive is rotated. - - - - - Gets or set displayed image. - - - - - Gets or sets a value indicating whether the primitive is rotated. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a primitive which contain any control. - - - - - Control which displaying. - - - - - Refresh location and size for host control. - - - - - Determines if a primitive contains control. - - - - - Gets or set control which displaying inside the primitive. - - - - - Raise by method. - - - - - Border style for Primitive. - - - - - Alignment primitive within control. - - - - - Types of the Primitives. - - - - - A collection that stores objects. - - - - - Initializes a new instance of 'PrimitiveCollection'. - - - - - Adds primitive to collection. - - - - - Adds primitives to collection. - - - - - Removes primitive from collection. - - - - - Raise by method. - - - - - Indexer. - - - - - Class helps to apply Office2016 Theme colors - - - - - Constructor - - - - - Holds Visual style - - - - - Holds Splitter Dot Color - - - - - Holds Splitter Backcolor - - - - - Holds the Collapsed Panel Backcolor in Normal state - - - - - Holds the Collapsed DropDown button Backcolor on Hover state - - - - - Holds the Header Border color - - - - - Holds the Header BackColor - - - - - Holds the Default Forecolor - - - - - Holds Header Backcolor in pressed state - - - - - Holds the Header Forecolor in pressed state - - - - - Holds the Header Backcolor in hovered state - - - - - Holds the Header Fore color - - - - - Holds the Colapsed panel text color - - - - - Holds the Overflow button hover color - - - - - Holds the Group bar boder color - - - - - Holds the Overflow Icon Color - - - - - GroupBar Visual Style - - - - - Gets Splitter Dot Color - - - - - Gets the Splitter Color - - - - - Gets the Collapsed panel Backcolor in Normal state - - - - - Gets the Collapsed Dropdown Button Hover Backcolor - - - - - Gets the Header Border color - - - - - Gets the Header BackColor - - - - - Gets the Header Forecolor - - - - - Gets the Header Backcolor in pressed state - - - - - Gets the Header Forecolor in pressed state - - - - - Gets the Header Backcolor in Hovered state - - - - - Gets the Header Forecolor in hovered state - - - - - Gets the Colapsed panel text color - - - - - Gets the Overflow button hover color - - - - - Gets the Group bar boder color - - - - - Gets the Overflow Icon Color - - - - - Specifies the colors used for drawing the control's client rectangle borders. - - - The BorderColors structure is used by the objects in a - to specify the set of colors used for drawing the borders around the client control. The - BorderColors value is set through the property. - - - - - Creates a new instance of the class with the specified colors. - - Left border color. - Top border color. - Right border color. - Bottom border color. - - - - Gets / sets the color used to draw the left border. - - A value. - - - - Gets / sets the color used to draw the top border. - - A value. - - - - Gets / sets the color used to draw the right border. - - A value. - - - - Gets / sets the color used to draw the bottom border. - - A value. - - - - Represents a instance with empty color values. - - - - - Represents a instance with the default color values. - - - - - Represents an item in the control. - - - The GroupBar control is composed of a number of selectable groups or items each of which is - associated with a client control. Each of these items is an instance of the GroupBarItem type. - The collection of items present in the GroupBar can be accessed through the control's - property. - - - - - The image representing the item in the GroupBar's navigation pane. - - - - - Padding provides spacing between the icons (images) and the text in the . - - - - - Resets the property to its default value. - - - - - - - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Creates an instance of the class. - - - - - Overridden. See . - - - - - Gets/Sets the Control Bounds - - - - - Indicates whether all types of images can be used or not - - - - - Gets / sets the text displayed on the . - - A String value. - - - - Gets or sets padding for . - - - - - Gets / sets the client control associated with the . - - A instance. - - - - Gets / sets the image displayed on the . - - An value. - - - - Gets / sets the icon displayed on the . - - An value. - - - - Indicates whether the is enabled / disabled. - - False if the item is disabled. The default is True. - - - - Indicates whether the is visible. - - False if the item is hidden. The default is True. - - - - Gets / sets the font used for drawing the text. - - A value. - - - - Gets / sets the foreground color used to paint the text in the . - - A value. - - - - Gets / sets the color used to fill the background. - - A value. - - - - Gets / sets the brush used for painting the background. - - A value. - - - - Gets / sets the colors used to draw the borders around the 's client - control. - - A value. - - - - Gets / sets the object that contains data about the . - - - A value that contains data about the control. - The default is a NULL reference (Nothing in Visual Basic). - - - Any type derived from the Object class can be assigned - to this property. If the Tag property is set through - the Windows Forms designer, only text may be assigned. - - - - - Returns the GroupBar control that the item is assigned to. - - - A that represents the parent GroupBar control that the is assigned to. - - - - - Indicates whether the should be added to the navigation pane. - - - This property is valid only when the control is in the stacked mode. - - - TRUE if the item should be added to the navigation pane. The default is FALSE. - - - - Gets / sets the icon representing the in the navigation pane. - - - This property is valid only when the control is in the stacked mode. - - - An value. - - - - Gets / sets image representing the item in the GroupBar's navigation pane. - - - - - - - - - - Specifies an alignment value for the text. - - - The TextAlignment enum is used for specifying a value for the - control's property. - - - - - The text is aligned to the left. - - - - - The text is horizontally centered. - - - - - The text is aligned to the right. - - - - - Provides data for the event. - - The control uses the event to - obtain a custom brush from the application to draw the background region of a . - - - - - - Creates an instance of the ProvideBrushEventArgs class. - - The bounds for which a brush is requested. - - - - Returns the index of the being drawn. - - An Integer value. - - - - Returns the bounds for which a brush is requested. - - The Rectangle specifying the bounds. - - - - Gets / sets the brush that will be used to draw the specified bounds. - - A brush object. - The event handler should set this property for it - to be used while drawing the specified bounds. - - - - Represents the method that will handle the event - in the control. - - The source of the event. - A that contains the event data. - - - - Provides data for the and events. - - The control uses the and - events to notify users of a change in its collection. - - - - - - Creates a new instance of the class. - - The to store in this event. - - - - Returns the GroupBarItem used by this event. - - The object used by the event. - - - - Represents the method that will handle the and - events in the control. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - The control uses the event to - allow users to cancel or change the context menu displayed when the drop-down button is clicked. - - - - - - Creates a new instance of the class. - - The implementing the context menu. - - - - Returns the menu provider object used by for creating its context menu. - - The object. - - - - Represents the method that will handle the event in the - control. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - The control uses the event to - allow users to cancel bar item selection. - - - - - - Initializes a new instance of the class. - - The newly selected item index. - The old selected item index. - - - - Returns the newly selected index. - - - - - Returns the previously selected index. - - - - - Represents the method that will handle the event in the - control. - - The source of the event. - A that contains the event data. - - - - Displays a set of related controls as selectable groups or tabs. - - -

- The GroupBar class implements a container that can serve as a host for other controls. - The control is functionally similar to the Windows Forms - and provides a tab user-interface that will display only one control, the , - at any given time. -

-

- Each control in the GroupBar is associated with a and the - various GroupBarItems are arranged in a vertical stack. Clicking on a GroupBarItem will make - it the current selected item and the client control tied to that item will be displayed - within the GroupBar's client region. The collection of GroupBarItems in the control is - implemented as an instance of the type and - can be accessed and manipulated through the property. -

-

- The GroupBar can be used in combination with the Syncfusion control - to implement composite controls with user interfaces similar to the Outlook Bar in - Microsoft Outlook and the toolbox window present in the Visual Studio.NET development environment. -

-
- - - The sample code shows how to create a GroupBar, create and add two GroupBarBarItems, and - assign client controls to each of the GroupBarItems. - - private void InitializeGroupBar() - { - // Create the GroupBar control. - this.gbOutlook = new Syncfusion.Windows.Forms.Tools.GroupBar(); - - // Create and initialize the GroupBarItems that belong to this GroupBar. - this.gbiPersonal = new Syncfusion.Windows.Forms.Tools.GroupBarItem(); - // Assign the gvcPersonal client control to this GroupBarItem. - this.gbiPersonal.Client = this.gvcPersonal; - this.gbiPersonal.Text = "Personal"; - - this.gbiWork = new Syncfusion.Windows.Forms.Tools.GroupBarItem(); - // Assign the gvcWork client control to this GroupBarItem. - this.gbiWork.Client = this.gvcWork; - this.gbiWork.Text = "Work"; - - // Add the GroupBarItems to the GroupBar. - this.gbOutlook.GroupBarItems.Add(this.gbiPersonal); - this.gbOutlook.GroupBarItems.Add(this.gbiWork); - - // Set the GroupBar's initially selected index. - this.gbOutlook.SelectedItem = 1; - } - - - - Private Sub InitializeGroupBar() - - ' Create the GroupBar control. - Me.gbOutlook = New Syncfusion.Windows.Forms.Tools.GroupBar() - - ' Create and initialize the GroupBarItems that belong to this GroupBar. - Me.gbiPersonal = New Syncfusion.Windows.Forms.Tools.GroupBarItem() - ' Assign the gvcPersonal client control to this GroupBarItem. - Me.gbiPersonal.Client = Me.gvcPersonal - Me.gbiPersonal.Text = "Personal" - - Me.gbiWork = New Syncfusion.Windows.Forms.Tools.GroupBarItem() - ' Assign the gvcWork client control to this GroupBarItem. - Me.gbiWork.Client = Me.gvcWork - Me.gbiWork.Text = "Work" - - ' Add the GroupBarItems to the GroupBar. - Me.gbOutlook.GroupBarItems.Add(Me.gbiPersonal) - Me.gbOutlook.GroupBarItems.Add(Me.gbiWork) - - ' Set the GroupBar's initially selected index. - Me.gbOutlook.SelectedItem = 1 - - End Sub - - -
- - - Defines a base class for custom controls that support scrolling behavior. - - - The ScrollControl class acts as a base class for controls that require the - ability to scroll. To allow a control to display scrollbars as needed, - set the AutoScroll property to True. To select which scrollbars should be visible, - set the VScroll and HScroll properties. - You can also associate stand-alone scrollbars with the ScrollControl. The VertScrollBar - and HorizScrollBar properties allow you to associate external scrollbars. This is of benefit - if you want to share one scrollbar with a parent control. For example, if the ScrollControl - is a view inside a workbook or dynamic splitter frame. - ScrollControl supports automatic scrolling when the user drags the mouse. In a grid - when the user starts selecting cells the user can drag the mouse outside the grid - area and the grid will automatically scroll. To enable auto scrolling, override the - OnMouseDown event in your derived control and initialize the AutoScrolling, AutoScrollBounds - and InsideScrollBounds properties. - When the user scrolls your control and holds down the mouse on the down or up arrow - of the scrollbar, the scrolling speed will accelerate. - The FixRenderOrigin method will ensure correct initialization of the rendering origin - for brushes and patterns. You can call FixRenderOrigin from your control's OnPaint method. - ScrollControl supports scrolling with the mouse wheel and also cooperates fine with - with the IntelliMouseDragScroll class. - If you want to provide context information about your control and change the cursor on - the fly while the user moves the mouse, set the OverrideCursor property to the cursor - you want to show. Instead, you can also implement IMouseController and add the object - to MouseControllerDispatcher. - - - - ICancelModeProvider provides an interface for the CancelMode event. - - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Provides a property support for using the control - inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates that the splitter control is closing the pane with this control. - - - - - Indicates that the splitter control has closed the pane with this control. - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates whether the splitter control is closing the pane with this control. - - - - - Indicates whether the splitter control has closed the pane with this control. - - - - - This interface provides properties for accessing a vertical and horizontal - and an method. - - - - - Updates scrollbars to reflect recent changes in scroll position, minimum and maximum scroll position values. - - - - - Returns a reference to an object with vertical scrollbar settings of the control. - - - - - Returns a reference to an object with horizontal scrollbar settings of the control. - - - - - Defines an interface for classes that support a BeginUpdate / EndUpdate pattern. - - - - - Suspends updating the component. An internal counter will be increased if called multiple times. - - - - - Resumes updating the component. If was called multiple times, an internal counter is decreased. - - - - - Indicates whether was called. - - - - - Provides a property that lets you toggle support for Intelli-Mouse panning. - - - - - Toggles support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. - - - The latest Intelli-Mouse drivers have also built-in . - - - - Provides support for method. - - - - - Indicates whether this control contains focus. Override this method if you - want to show drop-down windows and indicate the control has not lost focus when - the drop-down is shown. - - True if the control or any child control has focus; false otherwise. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Internal only. - - - - - Internal only. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates the shared behavior of the vertical scrollbar - - - - - Indicate the shared behavior of the horizontal scrollbar - - - - - The SizeGripStyle behavior has been changed after version 6.1. - For old behavior set this to true. Default value is false. - - - - - Initializes a new instance of . - - - - - Disposes the control. - - - - - - - - - - Raises a CancelMode for the active mouse controller for this control. - - holds a collection of mouse controllers. - - - - - - - - - - - - - - - - - - - - - Indicates whether serialize property value or not. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Offsets the point. - - - - - - - Returns PointToClient(LastMousePosition). - - - - - - Returns a value indicating the context at a given mouse position. - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - A value indicating the context at a given mouse position; zero if no context found. - - Any Mouse Controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest the mouse controller determines whether it - wants to handle the mouse events for the current mouse position. - MouseControllerDispatcher will call HitTest for each Mouse Controller that has been registered with - Add(IMouseController). The Mouse Controller that wins the vote will be returned together with the - context value its HitTest implementation returned. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - A place holder where the controller is returned that won the vote. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - Specifies the number of times the mouse button was pressed and released. - A place holder where the controller is returned that won the vote. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - - - - - - - - - - - - - - - - - - Handles the WM_SETCURSOR message - - - - - - - - - - - - - - - - - - - - - - - Initialize the last vertical scroll value. - - - - - Initialize the last horizontal scroll value. - - - - - Used to save the touch start position. - - - - - Used to check the touch mode is enabled or not. - - - - - Used to check touch on the Horizontal scroll bar or not. - - - - - Used to check touch on the Vertical scroll bar or not. - - - - - Used to save the object for MultiTouch to configure the touch. - - - - - Used to disable the Gesture. - - - - - Decode the touch messages to do corresponding operations - - windows touch messages - return true when the message properly handled otherwise it will be false - - - - Applies the color table for scrollbars. - - - - - Apply the color settings for Office2016 scrollbar. - - Scrollbar visual styles - - - - Apply Office2016Black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Raises the event. - - A that contains the event data. - - - - Get or Set of Skin Manager Interface - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event - - Office scrollbar type - - - - Apply the color scheme for Office2016 scrollbar. - - - - - - - - - - Handles mouse wheel processing for our scrollbars. - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Fires the ScrollbarsVisibleChanged event. - - A that contains the event data. - - - - Override this method to implement zooming in your derived control. - - The event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Initially save the current scrollbar values when begin the panning operation - - Touch begin position - return true - - - - Adjust the HScrollBar and VScrollBar values based on current touch position - - Current touch position - Used to decide the doing swipe operation or pan operation - - - - - After panning operation completes save the current scroll bar values - - touch end position - return true - - - - - - - - - - - - - - - - - - - Raises the event. - - A that contains the event data. - - - - - - - - - - - - - - - - - Handles the of the horizontal scrollbar. - - The source of the event. - An that contains the event data. - - - - Handles the of the vertical scrollbar. - - The source of the event. - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Listens for the horizontal scrollbar's scroll event. - - - A that contains data about the control. - - - A that contains the event data. - - - - - Listens for the vertical scrollbar's scroll event. - - - A that contains data about the control. - - - A that contains the event data. - - - - - Raises the ShowContextMenu event when the user right-clicks inside - the control. - - You can cancel showing a content menu when - you assign True to . - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - - - - - Method calculate new client area size. If you want to increase Non-Client - area for control and draw on it then this is method especially for you. - - Rectangle of the control client area. - - - - Raises the event. - - A that contains the event data. - - - - Factory method that creates a for displaying ScrollTips. - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - The event handler for this event can check - to determine if or - was called. - - - - - Overridden. See the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls get focus and it - is not called when focus is moved within child controls of this control. - - - - - Raises the event. This method is called when the control - or any child control loses focus and the new focused control is not a child of this control. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - Minimizes the time the first time the control is drawn. Calling - OnPaint before the control is made visible ensures that all relevant code for drawing - has been jitted. - - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - Given a component, this retrieves the that it is parented to; - NULL if it is not parented to any . - - - The component to check. - - - A that the component is parented to; NULL if - no such interface exists. This will return the component if it - is an instance of . - - - - - Given a component, this retrieves the that it is parented to; - NULL if it is not parented to any . - - - The component to check. - - - An that the component is parented to; NULL if - no such interface exists. This will return the component if it - is an instance of . - - - - - Delegates the MouseWheelEvent from a child control. - - A MouseEventArgs that holds event data. - - public class GridTextBox: RichTextBox - { - private GridTextBoxCell parent; - protected override void OnMouseWheel(MouseEventArgs e) - { - parent.Grid.ProcessMouseWheel(e); - } - } - - - - - Invalidate the vertical scrollbar - - - - - Invalidate the horizontal scrollbar - - - - - - - - The scrollbar height and width will be increased, when the DPI of system is increased. - - - ScrollBarCustomDraw - - - - Displays / hides the horizontal and vertical autoscrollbars. This will - also adjust the values of formState to reflect the new state. - - - True if the horizontal scrollbar should be displayed. - - - True if the vertical scrollbar should be displayed. - - - True if the form needs to be layed out again. - - - - - Resets the property. - - - - - Raises the specified mouse event and catches any exception. If an exception is caught, NotifyCancelMode - is called. Returns False if event should be ignored by the grid. - - A that contains the event data. - A delegate that handles the event. - False if CancelMouseEventArgs.Cancel is True; True otherwise - - - - - - - - Method force to invalidate Non Client area of control. - - - Invalidate specified rectangle in Non Client area. - Rectangle to Invalidate. - - - Invalidate and wait till area update on Non Client area. - - - - Method draws non-client area of an ScrollControl. - - EventArgs with Non-client info for drawing. - - - - - - - - - - - Raises a event. - - - - - - Increases small change of the ScrollBar. - - - - - - - - - - - - - Resets the property to its default value. - - - - - Starts the AutoScroll timer. - - The scrollbar to be automatically scrolled. - The event to be sent to this scrollbar. - - - - Starts the AutoScroll timer. - - - Starts the AutoScroll timer. - - The message to be sent to the current control. - - - - - - - Starts the AutoScroll timer. - - The message to be sent to the current control. - The initial interval for sending messages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Call this method from your control's OnPaint method to ensure correct - rendering origin for brushes and patterns. - - The graphics object. - - - - Updates scrollbars to reflect recent changes in scroll position, minimum and maximum scroll position values. - - - - - Call this method to check if you should do any update calculations for the view in your control and to notify scroll control - that the control's content needs to be updated. - - True if you should invalidate areas that need to be redrawn; False if a complete Refresh for the control is pending - and therefore invalidating the view is not necessary. - - - - Call this method to check if you should do any update calculations for the view in your control and to notify scroll control - that the control's content needs to be updated. - - If markPaintPending is True, ScrollControl will assume the control needs to be repainted in a subsequent EndUpdate call. - True if you should Invalidate regions to be repainted in your control. It will return False if a complete Refresh of - the control is pending and you don't need to invalidate individual regions of your control. - - - - Suspends the painting of the control until the method is called. - - - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - Suspends the painting of the control until the method is called. - - Specifies the painting support during the BeginUpdate, EndUpdate batch. - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - Pass BeginUpdateOptions if you do not want to do a complete Refresh of the control and instead - want to have certain regions of your control be invalidated or scroll the contents of control. - If you call BeginUpdate() and then later EndUpdate(), the control will know if a paint is pending and only - refresh the control if a paint is pending. Calling ShouldPrepareUpdate, Invalidate or a WM_PAINT message during - the BeginUpdate EndUpdate block will signal the control that a paint is pending. - - - - - - - Calls for both scrollbars. - - - - - Calls for both scrollbars. - - - - - Resumes the painting of the control suspended by calling the BeginUpdate method. - - - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - - Cancels any prior calls. - - - - - - Resumes the painting of the control suspended by calling the BeginUpdate method. - - - When many paint are made to the appearance of a control you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user, and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - - Scrolls the contents of the control similar to the ScrollWindow Windows API. - - - The method will raise a WindowScrolling event before the contents are scrolled and a WindowScrolled event after - the contents have been scrolled. - If DisableScrollWindow is True, any calls to the ScrollWindow method will simply invalidate the affect region. The rendering origin will - still be recorded correctly and WindowScrolling and WindowScrolled events will be raised.If DisableScrollWindow is False, ScrollWindow will scroll the contents of the control. - - - - - - - - - - - - - - - - - Discards paint messages. - - - - - - - - - - - - - - - - Indicates whether this control contains focus. Override this method if you - want to show drop-down windows and indicate the control has not lost focus when - the drop-down is shown. - - True if the control or any child control has focus; false otherwise. - - - - - - - - - - - - - - - - Checks if the control is visible and a window handle has been created. - If it has not been drawn before, it calls . - - Set this True if you want to force a call to - even if the control is not visible and / or - no window handle has been created. - - - - Enables the DoubleBufferSurface for this control. The DoubleBufferSurface buffering - is different from the automatic .NET double buffering and also a bit slower but - it reduces flicker if lots of scrolling is used and gdi drawing for individual cells - in a grid. - - - - - - - - - Forces the assigned styles to be reapplied to the control. - - - - - Indicates whether the time the first time the control is drawn should be optimized - by calling OnPaint before the control is made visible and so that all relevant code for drawing - has been jitted (Just in Time) - - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the control. - - A object. - - - - Disables or specifies the direction for automatic scrolling when the user drags - the mouse cursor out of the scrolling area. - - ScrollBars.None will disable scrolling.ScrollBars.Horizontal will enable horizontal scrolling.ScrollBars.Vertical will enable vertical scrolling.ScrollBars.Horizontal|ScrollBars.Vertical will enable both horizontal and vertical scrolling. - - - - Lets you check or specify the setting if the window should be scrolled when ScrollWindow is called. - - If DisableScrollWindow is True, any calls to the ScrollWindow method will simply invalidate the affect region. The rendering origin will - still be recorded correctly and WindowScrolling and WindowScrolled events will be raised.If DisableScrollWindow is False, the ScrollWindow will scroll the contents of the control. - DisableScrollWindow will return True if BeginUpdate was called without the BeginUpdateOptions.ScrollWindow option. - - - - - - - - Indicates whether the control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the control should scroll while the user is dragging a vertical scrollbar thumb. - - - - - Indicates whether the control should scroll while the user is dragging a horizontal scrollbar thumb. - - - - - Indicates whether the control should show ScrollTips while the user is dragging a vertical scrollbar thumb. - - - - - Indicates whether the control should show ScrollTips while the user is dragging a horizontal scrollbar thumb. - - - - - Gets or sets a size grip that should be drawn at the bottom-right corner if both scrollbars - are visible. - - - - - Indicates whether a size grip can be drawn inside the SizeBox and if the - of the parent form is allowed to be changed. - - - - - Indicates whether the size box should always be drawn when both scrollbars are visible. This - property differs from such that the control will not - check the docking state and parent form to determine whether to show the size box. - Note: Another better solution is drawing NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - Showing the size box works around a problem with .NET controls because by - default the area at the bottom right is not drawn and that can cause - drawing glitches. Note: Another better solution is drawing the NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - - - Indicates whether the size box should be drawn when both scrollbars are visible - and the control is not a docked window in an MDIChild window. Note: Another better solution is drawing the NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - Showing the size box works around a problem with .NET controls because by - default the the area at the bottom right is not drawn and that can cause - drawing glitches. Note: Another better solution is drawing NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - - - Indicates whether the control is currently scrolling and the user drags - the mouse outside the inner scrolling area. - - - - - Returns a reference to an object with vertical scrollbar settings of the control. - - - - - Returns a reference to an object with horizontal scrollbar settings of the control. - - - - - Internal only. Toggles thumb track mode. See ScrollBarWrapper.IsThumbTracking for a public getter for this state. - - - - - Indicates whether the scroll control can increase the - property while doing accelerated scrolling. If this is True, the - will be set to 3 after 40 rows and to 5 after 80 rows. - - - By default the scroll control will increase the scrolling step after a while. Set this to - False if you want to enforce scrolling only one row at a time even with accelerated scrolling. - - - - - Gets or sets the outer scrolling area. Typically the client area of the control. - - - - - Returns the inside scrolling area. The control will scroll if the user drags - the mouse outside this area. - - - - - Gets or sets the default margins for the scrolling area when the user moves the mouse to the - margin between InsideScrollBounds and AutoScrollBounds. - - - - - Returns a reference to the for this control. Can be NULL. - - - - - Gets or sets the text to be displayed in the ScrollTip window with a place holder for scroll position . For example, " Position {0} " - - - - - Immediately changes the shown cursor. - - - - - Indicates whether the control is handling a event. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - ScrollControlMouseController checks this to see if it should cancel - existing mouse operation and call ScrollControlMouseController.CancelMode - when a UICuesChanged event is sent. That can happen when user activates - another application or simply when styles for a child window have changed. - - - - - Returns the Pane information. - - - - - Lets you override the scroll behavior for rolling the mouse wheel. Default is SystemInformation.MouseWheelScrollLines. - - - - - Indicates whether the control should perform one scroll command (faster) or - if it should perform multiple scroll commands with smaller increments (smoother) - when user rolls mouse wheel. - - - - - Gets or sets the multiplier for mouse wheel scrolling. - - - - - Gets or sets the multiplier for mouse wheel scrolling. - - - - - Enables shared scrollbars. Use this if the control is not embedded in a container control - that implements IScrollBarFrame and you want to provide your own scrollbars. - - - - Gets / sets the border style of the control. - - - - Indicates whether the horizontal scroll bar is visible. - - if the horizontal scroll bar is - visible; otherwise. - - - - - - Indicates whether the vertical scroll bar is visible. - - if the vertical scroll bar is - visible; otherwise. - - - - - - Indicates whether the splitter control has closed the pane with this control. - - - - - MouseControllerDispatcher coordinates mouse events among competing mouse controllers. Based on - the position of the mouse and context of the control every registered controller's HitTest method - is called to determine the best controller for the following mouse action. This controller will then - receive mouse events. - - - See for more information. - - - - - Returns a reference to the active mouse controller that is receiving MouseDown, MouseMove, MouseUp messages when the user - has pressed a mouse button. - - - - - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates whether the splitter control is closing the pane with this control. - - - - - Toggles support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. - - - - - - - - - - - When you call BeginUpdate(), the control by default does not handle WM_PAINT messages. Only - once you call EndUpdate they will be processed. If this causes problems in your application, you can - set this static property to True. In such cases, WM_PAINT messages will be simply discarded and - any invalid regions will be validated. - - - There is a problem with the default implementation of BeginUpdate. If a screen region is marked - invalid, the WndProc will be repeatedly called with WM_PAINT at the the top of the WndProc - until EndUpdate is called. This can cause your application to freeze if another window gets created - or if you make a web service call and WndProc messages need to be processed. - Setting DiscardPaintMessagesAfterBeginUpdate to True will help avoid these scenarios. - - - - - Returns true if object is executing method call. - - - - - Property MousePosition (Point) - cached Control.MousePosition. The variable is set - before any WM_MOUSE* messages being processed. - - - - - Gets or sets the acceleration behavior for scrollbars. - - - - - Indicates whether OnMouseMove should be called from OnDragOver. - - - - - - Gets or sets the control's size. Size is overridden here to prevent Code Generation in Designer. - - - - - - Gets or sets the control's bounds. Size is overridden here to prevent Code Generation in Designer. - - - - - Gets or sets the TabIndex. - TabIndex is overridden here to prevent Code Generation in Designer. - - - - Returns the settings for the current BeginUpdate option. - - - - - - - - Indicates whether BeginUpdate() has been called and the painting for a control is suspended. - - - - - Indicates whether there are updates pending for the control when painting is suspended by BeginUpdate. - - - - - Determines if EnableDoubleBufferSurface method was called and double buffering - using the DoubleBufferSurface is enabled. The DoubleBufferSurface buffering - is different from the automatic .NET double buffering and also a bit slower but - it reduces flicker if lots of scrolling is used and gdi drawing for individual cells - in a grid. - - - - - Returns the DoubleBufferSurface if EnableDoubleBufferSurface() was called. Otherwise - the method returns null. - - - - - Indicates whether is internally called. - - - - - Occurs when both and occur. - - - - - Occurs when the property has been changed. - - - - - Occurs when vertical scrollbar is moved. - - - - - Occurs when horizontal scrollbar is moved. - - - - - Occurs when the user presses the mouse wheel and drags the mouse. - - - Set of - to True if you provide customized scrolling in your event handler. - - - - - The ShowContextMenu event occurs when the user right-clicks inside - the control. - - - - You can cancel showing a content menu when - you assign True to . - - - - - - Occurs when accelerated scrollbar scrolling or mouse drag-scrolling starts. - - - - - Occurs when the splitter control has closed the pane with this control. - - - - - Occurs when the splitter control is closing the pane with this control. - - - - - Occurs when the user is dragging the scrollbar thumb. - - - - - Occurs when scrollbars are hidden or shown. - - - - - Occurs when the user holds the Control Key and rolls the mouse wheel. - - - - - Occurs when the value has changed. - - - - - Occurs when has been called the first time or - has been called the last time. - - - - - Occurs after the window has been scrolled. - - - - - Occurs while the window is being scrolled. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a is raised. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a event is raised and after auto-scrolling. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a event is raised. - - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Occurs when the AutoScrolling property is changed. - - - If you want to prevent autoscrolling, you should handle this event - and reset the AutoScrolling property to ScrollBars.None. - - - - - Overridden. Changes to show or hide scrollbars and also consider the control's - setting. - - - - - Gets or sets the touch mode. - - - - - Gets or sets the color table for Office2016 Black theme scrollbar. - - - - - Gets or sets the color table for Office2016 white theme scrollbar. - - - - - Gets or sets the color table for Office2016 Dark gray theme scrollbar. - - - - - Gets or sets the color table for Office2016 colorful theme scrollbar. - - - - - Gets or sets the Office2016 Scrollbars - - - - - Toggles between standard and Office2007 scrollbars. - - - - - Gets or sets the style of Office2007 scroll bars. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Gets the rectangle that represents the client area of the control. If custom - scroll bars (ScrollBarCustomDraw, Office2007 style) are shown in the client area, then - this method will remove the area occupied by the scrollbars. - - - - - Gets or sets the height and width of the client area of the control. If custom - scroll bars (ScrollBarCustomDraw, Office2007 style) are shown the client area, then - this method will remove the area occupied by the scrollbars. - - - - - Gets or sets the Office like scrollbars. - - - - - Gets or sets the style of MS Office2010 scroll bars. - - - - - Gets or sets the style of Office2016 theme for scrollbars. - - - This is applicable for both the horizontal and vertical scrollbar. - - - - - Gets or sets the boolean value for enhanching the apperance settings for DpiAware enabled Application. - - - - - Provides the data about event of a . - - - - - Initializes a new . - - The record index. - - - - Gets or sets the Office scroll bars - - - - - Delegate for ScrollControlMouseDown, OnBeforeMouseMove and ScrollControlMouseUp methods. - - - - - - - Holds the Office2016 Theme colors - - - - - Indicates whether ScrollBar is displayed - - - - - Scroll Position - - - - - ScrollerFrame - - - - - Indicates whether to show the chevron button on the Navigation Panel - in the stacked GroupBar. - - - - - Collection of visible group bar items. - - - - - Gets or sets the color of the splitter in GroupBar if GroupBar is in stacked mode - - - - - Enable to change the color of the splitter in stacked mode. - - - - - Colors for Office2007 visual style. - - - - - Colors for Office2010 visual style. - - - - - Default size of the control - - - - - Default size of the collapsebutton - - - - - Header font - - - - - barItem height - - - - - Header height - - - - - Collapsedwidth - - - - - Get or Set of Skin Manager Interface - - - - - Resets the Splittercolor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - Resets the EnableSplittercolorCustomization - - - - - ShouldSerialize the EnableSplittercolorCustomization. - - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - - - - - - - - - - - - - - - Applies the scaling - - - - - Font changed - - - - - - - - - Creates a new instance of the class. - - - - - Starts an in-place edit of the specified text. - - Invoking this method will create an editable text box and and populates it with - the item text. Editing the text box contents and selecting ENTER will update the GroupBarItem text. - Selecting ESC will cancel the edit. - The zero-based index of the item to be renamed. - - - - - Cancels an in-place edit that is in progress. - - - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - An value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Draws the group bar control. - - A object. - - - - Draws the stacked group bar. - - The GPH. - - - - Draws the Header for . - - The control calls this method to paint the specified GroupBar Header. - Override this method to customize the GroupBar Header drawing. - - A object. - - - - Draws the object. - - The control calls this method to paint the specified GroupBarItem. - Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the to be drawn. - A value specifying the GroupBarItem bounds. - - - - Draws a border around the selected client control. - - The control calls this method to paint a border around the - the current selected client control. Override this method to customize the GroupBar drawing. - - A object. - A value specifying the client control bounds. - - - - Draws the icon. - - - The control calls this method to paint the specified - GroupBarItem's icon. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the icon is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws the icon. - - - The control calls this method to paint the specified - GroupBarItem's icon. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the icon is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws the text. - - - The control calls this method to paint the specified - GroupBarItem's text. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the text is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws icon\image in navigation panel. - - - - - - - - Draws the drop down button. - - A object. - A value specifying the GroupBarItem bounds. - If set to true button is mirrored for RTL. - - - - Overridden. See . - - - - - Gets or Sets a value indicating whether selection logic includes visible items alone for SelectedItem calculation. - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overrides the MouseWheel event - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - - - Index of selected item is VisibleGroupBarItems - Index of selected item is GroupBarItems collection - - - - Gets the GroupBarItem from the corresponding mouse point. - - - - - Overloaded. Returns the GroupBarItem at the specified point in client coordinates. - - X - coordinate of the item. - Y - coordinate of the item. - GroupBarItem, whose area contains the specified point; Null, if nothing is found. - - - - Returns GroupBarItem at specified point in client coordinates. - - Point to search GroupBarItem at. - GroupBarItem, whose area contains the specified point; Null, if nothing is found. - - - - Creates and displays the drop-down button context menu. - - - - - Initializes the navigation button menu. - - The context menu provider used to create the menus. - - - - Raises the navigation pane button click event. - - An that contains the event data. - - - - Called when more buttons menuitem is clicked. - - An that contains the event data. - - - - Called when fewer buttons menuitem is clicked. - - An that contains the event data. - - - - - - - Helps to apply the Visual Style for Scroll Bar - - - - - Helps to update the Bounds of GroupBarItems - - - - - Helps to update the Bounds of GroupBarItems, when Scrolling action is performed - - AutoScrollPosition - - - - Overridden. See . - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - - - - - - - - - - - Indicates whether is collapsed. - - - - - Stores value while initialization. - - - - - Indicates whether can be collapsed. - - - - - Width of the collapsed . - - - - - Width of the expanded . - - - - - Item popup's client heigth. - - - - - Text shown in collapsed client area of GroupBar. - - - - - Collapse button's state. - - - - - Collapsed client area's state. - - - - - Collapse button's image in expanded state. - - - - - Collapse button's image in collapsed state. - - - - - Collapse button's tooltip, when control is expanded. - - - - - Group Bar button's tooltip. - - - - - GroupBarDropDownTooltip. - - - - - Navigation pane's tooltip. - - - - - 's popup. - - - - - Indicates whether item popup is allowed to be opened. - - - - - Image list for navigation menu in collapsed mode. - - - - - Image list for navigation menu for add/remove sub menu. - - - - - Size of the popup for GroupBarItem client. - - - - - item to its popup size mapping. - - - - - Indicates whether to show popup's gripper. - - - - - Popup's resize mode. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Indicates whether popup is closed after clicking on item. - - - - - for drawing . - - - - - Default collapse button's image in expanded state. - - - - - Default collapse button's image in collapsed state. - - - - - Group Bar button's tooltip. - - - - - Collapse button's tooltip, when is expanded. - - - - - Collapsed client area's tooltip. - - - - - Caption for add/remove parent menu item in navgation menu. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Shows the item popup when the Group bar is Collapsed - - - GroupBar Item for which Popup to be shown - - - - - Hides the 's popup. - - - - - Occurs when a in the control - is selected. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs when a in the control is being selected. - - - - - Occurs after a has been renamed by an in-place edit operation. - - See and . - . - - - - Occurs after a has been added to the collection. - - See and . - - - - Occurs after a has been removed from the collection. - - See and . - - - - Occurs when the right mouse button is clicked over the control. - - The property will provide the index - of the over which the mouse was clicked. - - - - Occurs when a is about to be drawn. - - - Handle this event to provide a custom brush for painting the GroupBarItem background. - - See and . - - - - Occurs when the user clicks on the control's navigation pane drop-down button. - - - This GroupBar control displays the navigation pane only when the property is set. - - See and . - - - - Specifies the type of rendering done to icons - - - - - Returns the collection of visible group bar items. - - - - - Returns the collection of s in the control. - - An instance of the type. - - - - Gets / sets the alignment of the text displayed on the . - - A value. The default value is TextAlignment.Center. - - - - Indicates whether applying the default forecolor for GroupBar as per the visual style - - True if highlighting is enabled. The default is True. - - - - Indicates whether moving the mouse cursor over a will highlight it. - - True if highlighting is enabled. The default is True. - - - - Indicates whether switching between different s is animated. - - True if animated selection is enabled. The default is True. - - - - Gets / sets an integer that represents the index of the current selected . - - An integer value that specifies the zero-based index of the GroupBarItem. - - - - Returns the index of the that is currently under the mouse cursor. - - An integer value that specifies the zero-based index of the GroupBarItem. - - - - Returns the index of the that triggered the event. - - The zero-based index of the item. - - - - Gets / sets the height. - - An integer value that specifies the item height. - - - - Indicates whether integrated scroll buttons are to be used. - - This option is primarily intended for use with the Syncfusion control. - When this flag is set, the provides the scroll buttons for the current - selected GroupView control and interacts with it to achieve seamless scrolling behavior. - - True to enable integrated scrolling. The default is False. - - - - - Gets / sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Indicates whether XP Themes (visual styles) should be used for drawing the control. - - True to turn on themes; the default is False. - - - - Indicates whether the control is displayed with a flat look. - - True to display in flat mode. The default is False. - - - - Indicates the style to be used for drawing the control. - - A value; the default is VisualStyle.OfficeXP. - - - - Indicates the Office2007 theme used for drawing the control. - - - - - Indicates the Office2010 theme used for drawing the control. - - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the control. - - A object. - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the s. - - A object. - - - - Indicates whether the s are displayed in a stack. - - -

When the property is set, the GroupBarItems are stacked at - the bottom of the control on top of a navigation pane. The stack size can be increased - or decreased by moving items to and from the navigation pane.

- NOTE: The StackedMode interface is similar to the Navigation Pane in Microsoft Outlook 2003. -
- True to set the stacked mode. The default is False. -
- - - Gets / sets the height of the header. - - - The GroupBar header is shown only when the property is set. - - An integer value that specifies the header height. - - - - Gets / sets the font of the text displayed in the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the forecolor for the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the backcolor for the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the height of the navigation pane. - - - The navigation pane is shown only when the property is set. - - An integer value that specifies the height. - - - - Gets / sets the width of the s shown in the navigation pane. - - - The navigation pane is shown only when the property is set. - - An integer value that specifies the GroupBarItem width. - - - - Indicates whether a border is drawn around the 's client window. - - - The border colors for each can be individually specified using the - property. - - A boolean value; the default is False. - - - - Gets / sets the menu provider object that will implement the 's contextmenu. - - - The GroupBar control automatically initializes this property depending on the presence of the Syncfusion Essential Tools library. - If Essential Tools is available, then the menu provider object will be an instance of the - type. If not, the class is used for implementing the standard .NET context menu. -

The GroupBar's automatic initialization should suffice for most applications and you should explicitly set this property - only when you want to override the default menu provider assignment.

-
- A implementation; the default is . -
- - - Indicates whether the Chevron button on the - Navigation Panel is shown in the Stacked GroupBar. - - - The navigation pane is shown only when the property is set. - - - - - Indicates whether the selected item's image is shown in header in the Stacked GroupBar. - - - - - Indicates the color of the 2D border. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or Sets the touchmode - - - - - Returns the String format for text drawing. - - - - - Returns the string format object for header drawing. - - - - - Indicates, if process of setting client for is in progress. - - - - - Gets or Sets a value indicating whether selection logic includes visible items alone for SelectedItem calculation. - - - - - Get is control initializing. - - - - - Gets or sets a value indicating whether this is collapsed. - - - Works only is in stacked mode. - - - - - - Gets or sets a value indicating whether can be collapsed. - - - - - - Gets or sets the width of the collapsed . - - - - - Gets or sets the text shown in collapsed client area of . - - - - - Gets or sets the image of the collapse button in expanded state. - - - - - Gets or sets the image of the collapse button in collapsed state. - - - - - Gets or sets the initial size of the popup for client. - - - - - Gets or sets a value indicating whether to show popup's gripper. - - - - - Gets or sets the popup's resize mode. - - - - - Gets or sets the tooltip for collapse button, when control is expanded. - - - - - Gets or sets the tooltip for collapse button, when control is collapsed. - - - - - Gets or sets the tooltip for GroupBarDropDownToolTip. - - - - - Gets or sets the navigation pane's tooltip. - - - - - Gets or sets a value indicating whether popup is closed after clicking on item. - - - - - Occurs when property is changed. - - - - - Occurs when property is about to be changed. - - Can cancel state changing. - - - - Occurs when before 's popup is shown. - - Can cancel popup showing. - - - - The collection of objects in the control. - - - Each group in the GroupBar is an instance of the GroupBarItem type and - the collection of these groups is represented by an instance of the - GroupBarItemCollection class. GroupBarItems may be added or removed using the - IList and ICollection interface methods implemented by the GroupBarItemCollection. - - - - - - Creates an instance of the GroupBarItemCollection class. - - The control that contains this collection. - - - - Adds the to the collection. - - The to be added. - The index of the new item within the collection. - - - - Inserts the into the collection at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Removes the specified by the index parameter. - - A zero-based index specifying the GroupBarItem to be removed. - - - - Removes the from the collection. - - The to be removed. - - - - Adds an array of GroupBarItems to the control's collection. - - An array of objects. - - - - Indicates whether the specified is present in the collection. - - The to locate in the collection. - True if the item is present; False otherwise. - - - - Returns the zero-based index of the in the collection. - - The to locate in the collection. - The zero-based index of the item; -1 if the item is not present. - - - - Gets / sets a in the collection. - - The zero-based index of the GroupBarItem to get / set. - - - - Collection of visible - - - - - Visible group bar items array list. - - - - - Copies the elements of the to an , starting at a particular index. - - - - - Returns the enumerator that iterates through the item collection. - - - - - Gets the number of elements contained in the . - - - - - Gets an object that can be used to synchronize access to the . - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - - Provides data for the event. - - The collapsed control uses the events to notify users, - that 's popup is about to be shown. - - - - - - Item that popup. - - - - - Popup's bounds. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Initializes a new instance of the class. - - The item. - The popup's bounds. - true to cancel the event; otherwise, false. - - - - Initializes a new instance of the class. - - The item. - The popup's bounds. - - - - The that popups. - - - - - Gets or sets the popup's bounds. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Represents the method that will handle the event in the control. - - The source of the event. - A that contains the event data. - - - - ControlAccessibleObject derived class that implements the Accessibility object for the GroupBar control. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Provides data about the and - events. - - - See , , and . - - - - - Creates a new instance of the GroupItemRenamedEventArgs class. - - The zero-based index of the renamed item. - The old item text. - The new item text. - - - - Returns the zero-based index of the renamed item. - - An integer representing the item index. - - - - Returns the new text of the item. - - A String value. - - - - Returns the old text of the item. - - A String value. - - - - Delegate representing the method that will handle the and - events. - - The source of the event. - A value that contains the event data. - - - - - Resize is not allowed. - - - - - Horizontal resize is allowed. - - - - - Vertical resize is allowed. - - - - - Both horizontal and vertical resize are allowed. - - - - - Owner control of the popup. - - - - - CallWnd hook. - - - - - Popup visibility. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Processes Windows messages. - - The Windows to process. - - - - Shows the popup. - - if set to true shows the popup; hides overwise. - The instance containing the event data. - - - - Hides the popup. - - - - - Hides the popup. - - Allows to determine whether to clsoe popup in event handler. - - - - Gets or sets a value indicating whether the popup is displayed. - - true if the popup is displayed; otherwise, false. The default is false. - - - - Gets the required creation parameters when the control handle is created. - - - A that contains the required creation parameters when the handle to the control is created. - - - - Specifies whether OnLoad was called. - - - - - Specifies whether form is visible. - - - - - Indicates whether form must be inactive. - - - - - Gets or sets bool specifying whether form is visible. - - - - - Class for subclassing parent form and prevent it from blinking. - - - - - Catches WM_NCACTIVATE message if needed. - - - - - - Represents an item in the control. - - - Each item in a GroupView control is an instance of the GroupViewItem type. The - collection of GroupViewItems in the control can be accessed through the - property. - - - - - Gets or Sets the value to change the Text Position of the GroupViewItem - - - - - Serializes the ItemXSpacing property value. - - - - - Resets the ItemXSpacing property to its default value. - - - - - Gets / sets the height between adjacent GroupViewItems. - - - - - Indicates whether the is visible. - - - - - Item bounds. - - - - - Overloaded. Creates an instance of the class. - - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - An Object value that contains data about the GroupViewItem. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - An Object value that contains data about the GroupViewItem. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - An Object value that contains data about the GroupViewItem. - A String value representing the GroupViewItem tooltiptext. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - An Object value that contains data about the GroupViewItem. - A boolean value representing the item's show/hide the GroupViewItems. - - - - Gets / sets the 's tooltiptext. - - A string value. - - - - Gets or Sets the value to change the Text Position of the GroupViewItem - - - - - Gets / sets the height between adjacent s. - - An integer value. - - - - Gets or sets item bounds. - - - - - Indicates whether the is visible. - - False if the item is hidden. The default is True. - - - - Gets / sets the 's text. - - A String value. - - - - Gets / sets the 's image index. - - An integer value. - A zero-based index into the control's - and property values. - - - - - Indicates whether the is enabled / disabled. - - False if the item is disabled. The default is True. - - - - Gets / sets an object that contains data about the . - - - An value that contains data about the GroupViewItem. - The default is a NULL reference (Nothing in Visual Basic). - - - Any type derived from the Object class can be assigned - to this property. If the Tag property is set through - the Windows Forms designer, only text may be assigned. - - - - - Returns the GroupView control that the item is assigned to. - - - A that represents the parent GroupView control that the is assigned to. - - - - - Represents a control that can display a list of items. - - -

- The GroupView control implements a list type control that can display a set of items where - each item is represented by an image and a descriptor. Items are implemented as - instances of the class. The collection of GroupViewItems in the - control can be accessed through the property that returns - a reference to the object maintained - by the control. -

-

- The GroupView control is capable of displaying items with large or small icons in various - combinable styles such as the default selectable style, button-type selection, full-item select - and an icon-only flowview mode. All styles are available in the regular 3D or a FlatLook mode. - The control also implements an IntegratedScrolling option that allows scrolling to - be delegated to its parent container. -

-

- The GroupView control can be used in conjunction with the Essential Tools control - to implement composite controls such as the Microsoft OutlookBar and the Visual Studio.NET toolbox window. - The latter scenario makes use of the IntegratedScrolling feature supported by the two controls. -

-
- - - The sample code shows how to create a GroupView control and initialize the Behavior and Appearance properties - to resemble the Visual Studio.NET toolbox window. A handler for the GroupView.GroupViewItemSelected event - is also shown. - - - private void InitializeGroupView() - { - // Create the GroupView control. - this.gvcWinForms = new Syncfusion.Windows.Forms.Tools.GroupView(); - - // Set the large and small ImageLists. - this.gvcWinForms.LargeImageList = this.ilGroupBarLarge; - this.gvcWinForms.SmallImageList = this.ilGroupBarSmall; - - // Set the GroupView properties to display as a VS.NET tool box type window. - this.gvcWinForms.SmallImageView = true; - this.gvcWinForms.HighlightText = true; - this.gvcWinForms.ButtonView = true; - this.gvcWinForms.FlowView = false; - this.gvcWinForms.FlatLook = false; - this.gvcWinForms.TextWrap = false; - - this.gvcWinForms.ImageSpacing = 2; - this.gvcWinForms.ItemXSpacing = 8; - this.gvcWinForms.ItemYSpacing = 1; - - this.gvcWinForms.BackColor = SystemColors.Control; - this.gvcWinForms.ForeColor = SystemColors.ControlText; - - this.gvcWinForms.HighlightItemColor = SystemColors.Control; - this.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight); - this.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight); - this.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control; - - this.gvcWinForms.SelectingTextColor = SystemColors.ControlText; - this.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText; - - // Create and add the GroupViewItem objects. - this.gvcWinForms.GroupViewItems.AddRange( - new Syncfusion.Windows.Forms.Tools.GroupViewItem[] { - new Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11), - new Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12), - new Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)}); - - // Provide a handler for the GroupView.GroupViewItemSelected event. - this.gvcWinForms.GroupViewItemSelected += new System.EventHandler(this.gvcWinForms_GroupViewItemSelected); - } - - // GroupView.GroupViewItemSelected event handler. - private void gvcWinForms_GroupViewItemSelected(object sender, System.EventArgs e) - { - MessageBox.Show(String.Concat("Selected Item Index = ", this.gvcWinForms.SelectedItem.ToString())); - } - - - - Private Sub InitializeGroupView() - - ' Create the GroupView control - Me.gvcWinForms = New Syncfusion.Windows.Forms.Tools.GroupView() - - ' Set the large and small ImageLists - Me.gvcWinForms.LargeImageList = Me.ilGroupBarLarge - Me.gvcWinForms.SmallImageList = Me.ilGroupBarSmall - - ' Set the GroupView properties to display as a VS.NET Toolbox type window - Me.gvcWinForms.SmallImageView = True - Me.gvcWinForms.HighlightText = True - Me.gvcWinForms.ButtonView = True - Me.gvcWinForms.FlowView = False - Me.gvcWinForms.FlatLook = False - Me.gvcWinForms.TextWrap = False - - Me.gvcWinForms.ImageSpacing = 2 - Me.gvcWinForms.ItemXSpacing = 8 - Me.gvcWinForms.ItemYSpacing = 1 - - Me.gvcWinForms.BackColor = SystemColors.Control - Me.gvcWinForms.ForeColor = SystemColors.ControlText - - Me.gvcWinForms.HighlightItemColor = SystemColors.Control - Me.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight) - Me.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight) - Me.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control - - Me.gvcWinForms.SelectingTextColor = SystemColors.ControlText - Me.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText - - ' Create and add the GroupViewItem objects. - Me.gvcWinForms.GroupViewItems.AddRange(New Syncfusion.Windows.Forms.Tools.GroupViewItem() {New Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11), New Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12), New Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)}) - - ' Handle the GroupView.GroupViewItemSelected event. - AddHandler Me.gvcWinForms.GroupViewItemSelected, New System.EventHandler(AddressOf gvcWinForms_GroupViewItemSelected) - - End Sub - - ' GroupView.GroupViewItemSelected event handler. - Private Sub gvcWinForms_GroupViewItemSelected(ByVal sender As Object, ByVal e As System.EventArgs) - - MessageBox.Show([String].Concat("Selected Item Index = ", Me.gvcWinForms.SelectedItem.ToString())) - - End Sub 'gvcWinForms_GroupViewItemSelected - - -
- - - Specifies the name of the custom type used for drag-and-drop. - - - - - Indicates whether the is enabled / disabled. - - True if the ToolTip is enabled. The default is False. - - - - Indicates whether the items being selected. - - - - - Indicates whether FlowView value was changed during renaming. - - - - - Store index of which was hitted before current - - - - - Indicate whether is under mouse pointer - - - - - Indicate whether is showing for the first time - - False if the ToolTip isn't showing. The default is True. - - - - Initialize Timer - - - - - Initialize ToolTip - - - - - Shows ToolTip - - A string value representing ToolTip's text - - - - Get which is under mouse pointer - - Represent mouse pointer - - - - Start showing tooltips - - Representint interval before showing ToolTip - - - - Stops showing tooltips - - - - - - - - Applies the scaling - - - - - Font changed - - - - - ToolTip last mouse buttons downed. - - - - - ToolTip last mouse downed time. - - - - - ToolTip last mouse downed point. - - - - - Indicates whether control should show GroupViewItem text in FlowView mode. - - - - - Stores length in FlowView mode. - - - - - GroupViev orientation. - - - - - Gets the GroupViewItem Bounds. - - GroupViewItem index - Padding between the GroupViewItem - Bounds - - - - Gets the GroupViewItem Bounds. - - GroupViewItem index - Padding between the GroupViewItem - Bounds - - - - Name visible property for PropertyChangedEventArgs - - - - - ArrayList visible items. - - - - - Holds the backcolor of metro theme - - - - - Default size of the control - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Holds the office2016 colorscheme - - - - - Reset the Office2016ColorScheme - - - - - - Serializes the Office2016ColorScheme - - - - - - Holds the style - - - - - Reset the Style - - - - - - Serializes the Style - - - - - - Occurs when the style changes - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Allow drag any object. - - - - - Creates a new instance of the control. - - - - - Starts an in-place edit of the specified text. - - - Invoking this method will create an editable text box and and populate it with - the item text. Editing the textbox contents and selecting ENTER will update the item text. - Selecting ESC will cancel the edit. - - The zero-based index of the item to be renamed. - - - - - Cancels an inplace renaming that is in progress. - - - - - - Brings the specified into the visible area of the control. - - The zero-based index of the item. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the GroupView Item double click event. - - GroupViewItemDoubleClickEventArgs - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Size changed - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Called by the tab control when mouse hovers on the control. - - The instance containing the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overloaded. Returns the GroupViewItem at the specified point in client coordinates. - - X - coordinate of the item. - Y- coordinate of the item. - GroupViewItem, whose area contains specified point; null, if nothing is found. - - - - Returns GroupViewItem at the specified point in client coordinates. - - Point where the GroupViewItem is located. - GroupViewItem, whose area contains specified point; Null, if nothing is found. - - - - Draws the highlighting of GroupViewitem. - - A object. - The index of the groupViewItem. - A value specifying the GroupViewItem bounds. - The state of the item. - - - - Overridden. See . - - - - - Gets or sets whether tooltips for GroupViewItems should be shown or not. - Use property to get\set ToolTip text. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or Sets the touchmode - - - - - Gets or sets GroupViev orientation. - - - - - Gets or sets ToolTip last mouse buttons downed. - - - - - Gets or sets ToolTip last mouse downed time. - - - - - Gets or sets ToolTip last mouse downed point. - - - - - Gets ArrayList visible items. - - - - - Occurs when a in the - control is selected. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs when a GroupViewItem is double clicked. - - - - - Occurs when a in the control is highlighted. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs after the items in a control have been reordered by a - drag-and-drop operation. - - - - - Occurs after a has been renamed by an in-place edit operation. - - - See and . - - . - - - - Occurs when the right mouse button is clicked over the control. - - The property will provide the index - of the over which the mouse was clicked. - - - - Gets / sets the collection of objects in the control. - - An instance of the type. - - - - Gets or sets the height between the highlighted edge of a and the image. - - - In mode, the ImageSpacing value also - dictates the horizontal distance between the highlighted edge and the image. - - An integer value. - - - - Gets / sets the distance between the image and the text. - - - In large icon mode, this attribute represents the vertical distance between the GroupViewItem image and the text, - while in small icon mode, it represents the horizontal distance between the two. - - An integer value. - - - - Gets / sets the horizontal distance between a and the control's left border. - - An integer value. - - This attribute is valid only when is True. In large image view, the items are drawn centered. - - - - - Gets / sets the height between adjacent s. - - An integer value. - - - - Gets or sets the 's text length in FlowView mode. - - An integer value. - - - - Gets or sets the distance by which the image is offset when the mouse is moved over it. - - A value. - - - - Gets or sets the distance by which the text is offset when the mouse is moved over it. - - A value. - - - - Gets the office2016 style colors respective to the style - - - - - Gets or sets the office2016 colorscheme - - - - - Gets or sets the style - - - - - Gets / sets the distance by which the image is offset when it is selected. - - A value. - - - - Gets / sets the distance by which the text is offset when it is selected. - - A value. - - - - Gets / sets the distance by which the selected image is offset when the mouse is moved over it. - - A value. - - - - Gets / sets the distance by which the selected text is offset when the mouse is moved over it. - - A value. - - - - Gets / sets the distance by which the image is offset when it is being selected. - - A value. - - - - Gets / sets the distance by which the text is offset when it is being selected. - - A value. - - - - Gets / sets the image list containing the large (32x32) images. - - - - - An ImageList type. - - - - Gets / sets the image list containing the small (16x16) images. - - An ImageList type. - - - - - - - Indicates whether the control displays items using the images in the . - - True if the small image mode is set. The default is False. - - - - Indicates whether items are drawn with a button-type flat look upon selection. - - True if the button-type selection is set. The default is False. - - - - Indicates whether the flow view display mode is set. - - - In the default display mode, the control items are arranged top-down in list form. - In the flow mode, however, item images are arranged side by side for the full width of the control. - Resizing the control will wrap the images. Text will not be displayed in this mode, - unless the ShowFlowViewItemText property set to True. - - True if flow view is set. The default is False. - - - - Indicates whether control should show GroupViewItem text in FlowView mode. - - - True if should show text. The default is False. - - - - - Indicates whether scrolling should be delegated to the control's parent. - - - This option is primarily intended for use with the Syncfusion control. - When this option is set, the GroupView control delegates scrolling behavior to the - parent GroupBar control. When IntegratedScrolling is set to False, the control provides its own scroll buttons. - - True to enable integrated scrolling. The default is False. - - - - - Gets / sets the index of the currently selected . - - The zero-based index of the selected item. -1 if a selected item is not available. - - - - Returns the over which the mouse cursor is hovering. - - The zero-based index of the item under the cursor. -1 if no item is being highlighted. - - - - Returns the index of that triggered the event. - - The zero-based index of the item. - - - - Gets / sets a value indicating whether the image is highlighted when the mouse is moved over it. - - False if image highlighting is disabled. The default is True. - - - - Indicates whether the text is highlighted when the mouse is moved over it. - - False if text highlighting is disabled. The default is True. - - - - Indicates whether the text is underlined when the mouse is moved over it. - - True if text underlining is enabled. The default is False. - - - - Gets or sets the color used for drawing the background of a when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the background of the selected . - - A value. - - - - Gets / sets the color used for drawing the background of the selected when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the background of the being selected. - - A value. - - - - Gets or sets the color used for drawing the text when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the selected text. - - A value. - - - - Gets / sets the color used for drawing the selected text when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the text while it is being selected. - - A value. - - - - Gets or sets the brush used for drawing the control background. - - A value. - - - - Gets / sets the color used for drawing the Metro style border - - A value. - - - - Gets or sets the brush used for drawing the background of the selected . - - A value. - - - - Gets or sets the brush used for drawing the background of the selected - when the mouse is moved over it. - - A value. - - - - Gets or sets the brush used for drawing the background of the highlighted . - - A value. - - - - Gets or sets the brush used for drawing the background of the being selected. - - A value. - - - - Gets or sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Indicates whether the text should be wrapped. - - - Text wrapping is available only with the large icon display mode. - - True to turn on wrapping. The default is False. - - - - Indicates whether the control is displayed with a flat look. - - True to display in flat mode. The default is False. - - - - Indicates whether XP Themes (visual styles) should be used for drawing the control. - - True to turn on themes; the default is False. - - - - Gets a value indicating whether the control supports drop. - - - - - Indicates whether the control supports drag-and-drop of objects. - - - - - Gets or sets allow drag any object. For use this property AllowDragDrop must be true. - - - - - Indicates whether the selection bounds of a are clipped around its image and text. - - A Boolean value. The default is False. - - - - Gets the Height of the Item's Text. - - - - - The collection of objects present in the GroupView control. - - - Each item in a control is an instance of a - type and the collection is represented by the GroupViewItemCollection class. - The GroupViewItemCollection class implements the IList and ICollection interfaces. - - - - - - Raises the collection changed event. - - - - - Creates a new instance of the class. - - The control that contains this collection. - - - - Adds the GroupViewItem to the collection. - - The to be added. - The zero-based index of the new item within the collection. - - - - Inserts the into the collection at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Removes the GroupViewItem from the collection. - - The to be removed. - - - - Adds an array of GroupViewItems to the control's collection. - - An array of objects. - - - - Indicates whether the specified GroupViewItem is present in the collection. - - The to locate in the collection. - True if the item is present; False otherwise. - - - - Returns the zero-based index of the GroupViewItem. - - The to locate in the collection. - The zero-based index of the item; -1 if the item cannot be found. - - - - Occurs when a is changed. - - - - - Gets / sets a in the collection. - - The zero-based index of the GroupViewItem to get or set. - - - - Event handler for Double click event for GroupViewItem. - - Sender as GroupView - GroupViewItemDoubleClickEventArgs - - - - Event args for Double click in GroupViewItem. - - - - - GroupView Item - - - - - Constructor - - GroupView Item - - - - Gets/ Sets the currently selected item. - - - - - ControlAccessibleObject derived class that implements the Accessibility object for the GroupView control. - - - - - This class represents renderer class for office2016 theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlighted border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item selected and highlighted backcolor - - - - - Holds the item pressed backcolor - - - - - Holds the item highlighted text color - - - - - Holds the item selected text color - - - - - Holds the selected and highlighted text color - - - - - Holds the item pressed color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Constructor for renderer class - - Theme of GroupView - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the item selected border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the item selected and highlighted text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border Color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents renderer class for office2016 white theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlight border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the selected item backcolor - - - - - Holds the selected and highlighted backcolor - - - - - Holds the pressed item backcolor - - - - - Holds the item highlight text color - - - - - Holds the item selected text color - - - - - Holds the item selected and highlighted text color - - - - - Holds the item pressed text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents rendered class for office2016 darkgray theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the selected Border color - - - - - Holds the highlighted border color - - - - - Holds the pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item highlighted backcolor - - - - - Holds the pressed item backcolor - - - - - Holds the highlighted item text color - - - - - Holds the selected item text color - - - - - Holds the selected and highlighted item text color - - - - - Holds the pressed item text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighting text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents rendered class for office2016 black theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlighted border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item selected and highlighted backcolor - - - - - Holds the item pressed backcolor - - - - - Holds the highlighted item text color - - - - - Holds the selected item text color - - - - - Holds the selected and highlighted item text color - - - - - Holds the pressed item text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This enum represents the color schemes of office2016 style - - - - - This option represents the colorful theme of office2016 style - - - - - This option represents the white theme of office2016 style - - - - - This option represents the darkgray theme of office2016 style - - - - - This option represents the black theme of office2016 style - - - - - Collection of images for ImageListAdv. - - - - - Adds icon to the collection. - - Icon to add. - - - - Adds image to the collection. - - Image to add. - - - - Checks whether collection contains given image. - - Image to be checked. - True if collection contains given image; otherwise false. - - - - Gets index of given image. - - Image to get index of. - Index of given image or -1 if image doesn't exist in collection. - - - - Removes given image from collection. - - Image to remove. - - - - Adds icon with specified key to collection. - - Key of the icon. - Icon to add. - - - - Adds image with specified key to collection. - - Key of the image. - Image to add. - - - - Adds array of images to collection. - - Array of images to add. - - - - Checks whether given key exists in collection. - - Key to be checked. - True if given key exists in collection; otherwise false. - - - - Gets enumerator for collection. - - Enumerator for collection. - - - - Gets index of given key. - - Key to get index of. - Index if given key or -1 if key doesn't exist in collection. - - - - Removes image with specified key. - - Key of image to remove. - - - - Sets new name to specified key. - - Index of key to set new name to. - New name of specified key. - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - The one-dimensional Array that is the destination of the elements copied from ICollection. - The Array must have zero-based indexing. - The zero-based index in array at which copying begins. - - - - Adds an item to the IList. - - The Object to add to the IList. - The position into which the new element was inserted. - - - - Determines whether the IList contains a specific value. - - The Object to locate in the IList. - True if the Object is found in the IList; otherwise, false. - - - - Determines the index of a specific item in the IList. - - The Object to locate in the IList. - The index of value if found in the list; otherwise, -1. - - - - Inserts an item to the IList at the specified position. - - The zero-based index at which value should be inserted. - The Object to insert into the IList. - - - - Removes the first occurrence of a specific object from the IList. - - The Object to remove from the IList. - - - - Gets value indicating whether collection is empty. - - - - - Added for compatibility reasons. - - - - - Gets or sets image at specified index. - - Index of image. - Image at specified index - - - - Gets or sets image with specified key. - - Key of image. - Image with specified key. - - - - Gets collection of keys. - - - - - Gets or sets the element at the specified index. - - The zero-based index of the element to get or set. - The element at the specified index. - - - - Custom type descriptor for class. - Filters our property - - - - - Initializes a new instance of the class. - - The parent custom type descriptor. - - - - Returns a collection of property descriptors for the object represented by this type descriptor. - - - A containing the property descriptions for the object represented by this type descriptor. The default is . - - - - - Returns a filtered collection of property descriptors for the object represented by this type descriptor. - - An array of attributes to use as a filter. This can be null. - - A containing the property descriptions for the object represented by this type descriptor. The default is . - - - - - Filters the properties. - - The initial collection of property descriptors. - The filtered collection of property descriptors. - - - - Custom rpovider of custom type descriptor for class. - - - - - Initializes a new instance of the class. - - - - - Gets a custom type descriptor for the given type and object. - - The type of object for which to retrieve the type descriptor. - An instance of the type. Can be null if no instance was passed to the . - - An that can provide metadata for the type. - - - - - Editor for ImageCollection. - - - - - Static instance of . - - - - - Static instance of custom for s. - - - - - Initializes the class. - - - - - Initializes a new instance of the class. - - The type of the collection for this editor to edit. - - - - Creates the instance. - - The type. - - - - - Returns a list containing the given object - - An returned as an object. - - An which contains the individual objects to be created. - - - - - Destroys the specified instance of the object. - - The object to destroy. - - - - Edits the value of the specified object using the specified service provider and context. - - An that can be used to gain additional context information. - A service provider object through which editing services can be obtained. - The object to edit the value of. - - The new value of the object. If the value of the object has not changed, this should return the same object it was passed. - - - An attempt to check out a file that is checked into a source code management program did not succeed. - - - - - Editor for images in ImageListAdv. - - - - - FileDialog for selecting images. - - - - - Array of image editors of different types. Used in building string of file extensions. - - - - - Initializes static members. - - - - - Edits the specified object value using the edit style provided by GetEditStyle. - - An ITypeDescriptorContext that can be used to gain additional context information. - A service provider object through which editing services can be obtained. - An instance of the value being edited. - The new value of the object. If the value of the object has not changed, - this method should return the same object passed to it. - - - - Class containing info about image: the image itself and string key. - - - - - Image. - - - - - Key. - - - - - Creates new ImageInfo. - - Image. - Key. - - - - Gets or sets image. - - - - - Gets or sets key. - - - - - ImageList with support for images of different sizes and transparency. - - - - - Default image size. - - - - - Collection of images. - - - - - Size of images. Used in drawing and for compatibility reasons. - - - - - Indicates whether images should be drawn using ImageSize property. - - - - - Tag object. - - - - - Creates and initializes new ImageListAdv. - - - - - Creates and initializes new ImageListAdv. - - Container to add component to. - - - - Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; - otherwise it's drawn using original size. - - Graphics to draw to. - Point to draw image at. - Index of image to draw. - - - - Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; - otherwise it's drawn using original size. - - Graphics to draw to. - X coordinate of point to draw image at. - Y coordinate of point to draw image at. - Index of image to draw. - - - - Draws selected image to specified Graphics using given size. - - Graphics to draw to. - X coordinate of point to draw image at. - Y coordinate of point to draw image at. - Width of rectangle to draw image to. - Height of rectangle to draw image to. - Index of image to draw. - - - - Explicitly converts ImageList to ImageListAdv. - - ImageList to convert. - ImageListAdv with images from given ImageList. - - - - Explicitly converts ImageListAdv to ImageList. - - ImageListAdv to convert. - ImageList with images from given ImageListAdv. - - - - Converts ImageListAdv to ImageList. - - ImageList with images from ImageListAdv. - - - - creates ImageListAdv from ImageList. - - ImageList to create ImageListAdv from. - Created ImageListAdv. - - - - Converts Icon to Image with correction of alpha channel. - - Icon to convert. - Resulting Image. - - - - Checks whether Bitmap has alpha channel. - - BitmapData to check. - True if bitmap has alpha channel; otherwise false. - - - - Creates string with info about ImageListAdv. - - String with info about ImageListAdv - - - - - - - - - - - - - - - - - - - - - Gets collection of images. - - - - - Gets or sets size of images. Used in drawing. - - - - - Gets or sets value indicating whether images should be drawn using ImageSize property. - - - - - Gets or sets tag object. - - - - - ImageListAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - - - - Workaround for incident 35141. When calling Timer.Stop in GridGroupDropArea - this ends up calling MdiSysMenuProvider.MsgHook - - - - - Provides some utility methods regarding the runtime. - - - - - Returns the major runtime version. - - - - - Returns the minor runtime version. - - - - - This class will provide more information that the .Net equivalent ignored. - - - - - Indicates whether menu access keys are always underlined. - - - - - Indicates whether the current application is a .Net application. - - True if .Net; false otherwise. - - By default, this method will automatically determine whether or not the current active - app is a .Net app or a native app. However, to speed up performance (by a fraction of a second), - you can set this value appropriately at the beginning of your app. Note that - an incorrect setting would cause unforeseen behavior. - - - - - Indicates whether the component is used inside developer studio. - - - - - Interop call to get the LCID of the current culture. - - - - - Sets the advanced graphics mode. - - Handler to device context. - New graphics mode. - If the function succeeds, the return value is the old graphics - mode. If the function fails, the return value is zero. - - - - Changes the world transformation for a device context using - the specified mode. - - Handler to device context. - Transformation data. - Modification mode. - If the function succeeds, the return value is nonzero. - If the function fails, the return value is zero. - - - - Sets a two-dimensional linear transformation between world space and - page space for the specified device context. - - Handler to the device context. - Pointer to an XFORM structure that contains the transformation data. - TRUE if success; false otherwise. - - - - For the scroll bar itself, indicates the specified vertical or horizontal scroll bar does not exist. - For the page up or page down regions, indicates the thumb is positioned such that the region does not exist. - - - - - For the scroll bar itself, indicates the window is sized such that the specified vertical or horizontal scroll bar is not currently displayed. - - - - - The arrow button or page region is pressed. - - - - - The component is disabled. - - - - - Computes the string size that should be passed to a typical Win32 call. - This will be the character count under NT and the ubyte count for Win95. - - - The string whose size to compute. - - - The count of characters or bytes, depending on what the pinvoke - all wants - - - - - Native Matrix Object. - - - - - The NativeMethodsHelper class is a wrapper over some Interop calls that are exposed using static methods - in this class. - - - - - Keeps track of the number of times Suspend and Resume redraw window is called for a particular window. - - - - - Sends the WM_SETREDRAW to the handle of the Control to prevent drawing of the control. - - The handle of the control that is to be suspended. - - - - Resumes redrawing of the window. - - - - - Resumes redrawing of the window. - - - - - - - Sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn - or to prevent changes in that window from being redrawn. - - Handle to the native window. - Indicates the redraw state. - If this parameter is true, the content can be redrawn after a change. - If this parameter is false, the content cannot be redrawn after a change. - Forces redraw of the window using . - Works only if bRedraw is true. - - - - Overload of - Forcefully redraws window if redraw is enabled. - - - - Subclass window that allowing attaching of - message filters classes into Message processing. - - - Value that represent invalid window handle. - - - Reference on message filter instance. - - - Default constructor that subclass window by it handle automatically. - Window Handle. - - - Override of WndProc function. - Reference on message processed by Window. - - - Gets and Sets reference on message filter instance. - - - - A structure that represents a location in the registry. - - - This is a simple structure that refers to a Registry location - through the root RegistryKey and the subkey. - - - - - Creates a new instance of the RegistryEntry class and - initializes it with the root RegistryKey and subkey. - - The root RegistryKey. - The subkey string. - - - - Gets / sets the root RegistryKey. - - A RegistryKey value. - - - - Gets /sets the subkey under the root RegistryKey. - - A string value representing the subkey. - - - - Specifies the relative position of an control to that of the - control it labels. - - - - - The relative AutoLabel position can be set manually. - - - - - Left has been replaced with side, to take into account RightToLeft configs. Please use side instead. - - - - - The AutoLabel is always positioned to the top of the labeled control. - - - - - The AutoLabel is always positioned to the left (or right if the parent control is RTL enabled) of the labeled control. - Replaces Left. - - - - - A derived class that lets you label any control with it. - - - Once a control is labeled by an instance of AutoLabel (through the property, - the label gets moved around as the labeled control moves around - automatically, preserving the relative positions. The relative positions can - also be configured to be left, top or custom through the property. - - Note that the manager will treat the label and its control as a - pair, always laying them out together as if they were one single control. - - - - - - Value for PreferredHeight adding when borders are present. - - - - - Value for PreferredHeight adding when borders are absent. - - - - - Font changed - - - - - Raises the PropertyChanged event. - - - An object containing data pertaining to this event. - - - The OnPropertyChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnPropertyChanged in a derived - class, be sure to call the base class's OnPropertyChanged method so that - registered delegates receive the event. - - - - - - - - - - - - - - - - - Updates the position of the AutoLabel when the parameters that affect - the relative positions have changed (like the LabeledControl's position, size, etc.). - - - - - Called when a new control is getting labeled (when set through the property. - - The control that is being labeled. - - - - Called when an exisiting label is getting unlabeled. - - The control that is being unlabeled. - - - - - - - Update the back color and forecolo of the control when the visual style is changed. - - - - - Processes Windows messages. - - The Windows System.Windows.Forms.Message to process. - - - - Paints the control. - - - - - Draw the border to the contol. - - - - - - - - Calculates the size of the label's text. - - Text for measuring. - Current font. - Size of the text. - - - - Fired when the LabeledControl, Gap and Position properties of this class changes. - - - - - Update the renderer for Office2016 style. - - - - - Gets or sets the VisualStyle to the . - - - - - Gets or sets a value indicating whether the control is automatically resized - to display its entire contents. - - - - - Gets or sets the control that is being labeled. - - A control instance. - - - - Gets / sets the relative position of the control and the AutoLabel. - - - - - Returns the preferred height of the control. - - - - - Gets or sets the horizontal and vertical gap to use when computing the relative position. - - - - - Gets or sets the effective horizontal distance between the left of the AutoLabel and its labeled control. - - When RightToLeft == Yes DX is the distance between the right of the labeled control - and the right of the AutoLabel. - - - - Gets or sets the effective vertical distance between the top of the AutoLabel and its labeled control. - - - - - Specifies the style with which some controls will appear and behave. - - - - - Classic appearance. - - - - - Office2016 Colorful - - - - - Office2016 White - - - - - Office2016 Black - - - - - Office2016 DarkGray - - - - - Gets the back color of the AutoLabel for office2016 colorful style. - - - - - Gets the Fore color of the AutoLabel for office2016 colorful style. - - - - - Gets the Fore color of the AutoLabel, when control is disabled. - - - - - Gets the Border color of the AutoLabel for office2016 colorful style. - - - - - Gets the back color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Fore color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Border color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Border color of the AutoLabel for office2016 colorful style. - - - - - Gets the back color of the AutoLabel for office2016Black style. - - - - - Gets the Fore color of the AutoLabel for office2016Black style. - - - - - Gets the Border color of the AutoLabel for office2016Black style. - - - - - Represents the layout manager that lays out the children along the borders and - at the center, very similar to the Windows Form's control docking behavior. - - - - This layout manager will dock up to five controls along the four borders and the - center. This is very similar to the control docking behavior exhibited by the - DockStyle setting of a control. - - The and methods - let you specify a for a child control and also - act as an extended property during design-time for the child controls. - Here are some of the differences between Windows Forms style docking and the - BorderLayout. - - - When using BorderLayout, there can be only a single control that - can be docked to a border. - - - When using BorderLayout and the setting, - the bounds for layout can be customized to be something different from the control's client - rectangle. - - - Just like our other s, you can layout non-control - based items when using the BorderLayout. - - - - - Here is some sample code that tells you how to initialize a CardLayout manager. - - // Binding a control to the CardLayout manager programmatically. - this.borderLayout1 = new BorderLayout(); - this.borderLayout1.ContainerControl = this; - - // Set the border-position of the button. - this.borderLayout1.SetPosition(this.btnNorth, BorderPosition.North); - this.borderLayout1.SetPosition(this.btnSouth, BorderPosition.South); - this.borderLayout1.SetPosition(this.btnCenter, BorderPosition.Center); - this.borderLayout1.SetPosition(this.btnEast, BorderPosition.East); - this.borderLayout1.SetPosition(this.btnWest, BorderPosition.West); - - ' Binding a Control to the CardLayout manager programmatically. - Me.borderLayout1 = New BorderLayout() - - Me.borderLayout1.ContainerControl = Me - - ' Set the border-position of the button. - Me.borderLayout1.SetPosition(Me.btnNorth, BorderPosition.North) - Me.borderLayout1.SetPosition(Me.btnSouth, BorderPosition.South) - Me.borderLayout1.SetPosition(Me.btnCenter, BorderPosition.Center) - Me.borderLayout1.SetPosition(Me.btnEast, BorderPosition.East) - Me.borderLayout1.SetPosition(Me.btnWest, BorderPosition.West) - Also, take a look at the project in Tools/Samples/Layout Manager Package/LayoutManagers for an example. - - - - - Defines the base class for Layout Managers. - - - The , , , and classes derive from this - base class. - Use one of the above classes to include layout management support in your forms / controls. - The layout manager can be configured to operate in different modes. By default, mode - layout will be automatically triggered when the fires a event. If not in - this mode, then you can call the method to trigger a layout. - By default, the ContainerControl's ClientRectangle will be used as the bounds for the - layout. But, if the property is set to a value other than Rectangle.Empty - then that rectangle area will be used as the layout bounds. - You can also lay out non-control based components as long as they derive from - the class. The LayoutItemBase derived object can be used in any - method call that expects a control instance because the LayoutItemBase has an implicit type-conversion operator - that can convert itself to a control (use the method in VB). - You can also specify / provide preferred and minimum sizes for the child components. - The default layout logic uses the component's preferred size to lay them out. - The LayoutManager also has the and methods - that will let you query for the corresponding sizes. - There are different ways in which you can provide the preferred and minimum sizes - for a component. The manager will first look for the interface - in your child component, which if found, will be used to obtain the sizes. Second, the - manager will throw a event for a specific child component, which if - handled will then be used to obtain the sizes, if provided. Third, the sizes provided - using the / method will be used to obtain the sizes. However - if SetPreferredSize / SetMinimumSize was never called, the framework will call them - with the current size of the component as the preferred / minimum size. - Take a look at the class documentation for sample code on how to - create non-control based classes that can participate in Layout management. - - - - - Raises the ContainerControlChanged event. - - An EventArgs that contains the event data. - - The OnContainerControlChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnContainerControlChanged in a derived - class, be sure to call the base class's OnContainerControlChanged method so that - registered delegates receive the event. - - - - - Sets the CustomLayoutBounds property to Rectangle.Empty. - - - - - Indicates whether the CustomLayoutBounds property is a value other than Rectangle.Empty. - - - - - - - - Constructor to be called by derived classes. - - - - - Starts designer initialization. - - - - - Ends designer initialization. - - - - - Retrieves the preferred size associated with the specified control. - - The control for which to retrieve the preferred size. - The preferred size for the specified control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Returns the preferred size provided with a call to SetPreferredSize. - - The control whose preferred size is to be known. - The size, if any, provided or the current control size. - - Unlike GetPreferredSize, this does not throw an event or look for IProvideLayoutInformation - in the child controls. - Calling this will in turn call SetPreferredSize with the current control size, if there is no size available. - - - - - Associates a preferred size with the specified control. - - The control to associate the preferred size with. - The preferred size of the control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Makes the current sizes of the child controls their minimum and preferred sizes. - - - - - Indicates whether the PreferredSize property is a value other than Rectangle.Empty. - - - - - Removes any custom preferred size set for the specified control. - - - - - Retrieves the minimum size associated with the specified control. - - The control for which to retrieve the minimum size. - The minimum size for the specified control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Returns the minimum size provided with a call to SetMinimumSize. - - The control whose minimum size is to be known. - The size, if any provided, or the current control size. - - Unlike GetMinimumSize, this does not throw an event or look for IProvideLayoutInformation - in the child controls. - Calling this will in turn call SetMinimumSize with the current control size, if there is no size available. - - - - - Associates a minimum size with the specified control. - - The control to associate the minimum size with. - The minimum size of the control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains, and you can specify, the preferred and minimum size information - for a child component. - - - - - Indicates whether the MinimumSize property is a value other than Rectangle.Empty. - - - - - Removes any custom minimum size set for the specified control. - - - - - Returns the dynamic preferred or minimum size of a child component. - - The child control. - The type of size required, preferred or minimum. - A reference value through which the size should be returned to the caller. - True to indicate a dynamic size was found and that the size argument has a valid value. False otherwise. - - This function will first check if the child control has an - interface and if so returns the size provided by that interface. - If not, it throws a to obtain the dynamic size. The handlers, - if any, for that event may provide the dynamic size which will be returned. - If none of the above cases succeeds then False will be returned. - - - - - Raises the event. - - A that contains the event data. - - The OnProvideLayoutInformation method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnProvideLayoutInformation in a derived - class, be sure to call the base class's OnProvideLayoutInformation method so that - registered delegates receive the event. - - - - - The handler for the container's ControlAdded event. - - The container into which a control was added. - An ControlEventArgs that contains the event data. - - This is an easy way for the derived classes to know when a child gets added to the ContainerControl. - - - - - The handler for the container's ControlRemoved event. - - The container into which a control was added. - An ControlEventArgs that contains the event data. - - This is an easy way for the derived classes to know when a child gets removed from the ContainerControl. - - - - - Adds a child component to the layout list with the specified constraints. - - The control to add to the list. - The associated constraints. - - The type of constraints to be passed varies based on the layout manager. - The for example expects a string type while the expects - a type. The and the do not expect anything - which means you can specify NULL. Take a look at the individual layout manager's documentation - for the type of constraints expected. The individual managers also provide custom type safe methods - to let you specify the appropriate constraints. - - You can also pass a derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to seamlessly participate - in the layout framework). In VB, use the method. - - - - - - Removes a child component from the layout list. - - The control to be removed. - - - You can also pass a LayoutItemBase derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to participate - in the layout framework seemlessly). In VB, use the LayoutItemBase.ToControl method. - - - - - - Removes any references to the container control and handlers for events in that - control. Will also remove references to the child control. - - - Will be called when the user sets the ContainerControl to NULL and from Dispose. - Make sure to call the base class to perform normal operations when you override - this method. - - - - - Returns the minimum size for the ContainerControl. - - A size value representing the minimum size required. - - This value is calculated based on the minimum size requirement for the child controls. - - - - - Returns the preferred size for the ContainerControl. - - A size value representing the preferred size. - - This value is calculated based on the preferred size requirement for the child controls. - - - - - Triggers a layout of the child components. - - - Use this when you want to manually trigger a layout. This will automatically - be called by the framework when is True and a Layout event occurs on the . - - - - - Returns the child components that participate in the layout. - - - The child control list. - - - The order of child controls in the returned list will take into account the - property value. - - - - - Returns the layout bounds within which to perform layout. - - The Rectangle specifying the layout bounds. - - This takes into account the value, if not empty. - If empty, the bounds are calculated based on the Container Control's ClientRectangle - and the margins specified. - - - - - Indicates the Visible state of the child control or LayoutItemBase. - - The control whose visibility is to be determined. - The visibility state. - - Use this instead of checking the Visible property of the control directly, because - if this control is a place-holder control for a LayoutItemBase, the Visibility - state will be stored elsewhere. - - - - - Indicates whether the layout manager is in a state where it can start laying out - components. - - True indicates its ready for layout; False otherwise. - - This will return True if it has a valid ContainerControl and at least one child component - to be laid out. - If you override this method, make sure to call the base class. - - - - - This event is triggered when the ContainerControl property is changed. - - - - - This event is triggered to obtain preferred size information for a child control - during layout. - - - - - Gets or sets the designer host. - - - - - Gets or sets the component designer. - - - - - Gets or sets the container control that this manager will lay out. - - A control object. - - Changing this property will raise the ContainerControlChanged event. - - - - - Gets or sets the custom layout bounds, if any, to be used for layout calculation - instead of the container control's ClientRectangle. - - A Rectangle specifying the custom bounds. Default is Rectangle.Empty. - - If this value is Rectangle.Empty, then the manager will use the container control's - ClientRectangle. If other than Rectangle.Empty, then that value will be used. - When using CustomLayoutBounds, you might have to disable in - most cases and instead manually reset CustomLayoutBounds and call in - the container control's Layout event handler. - - - - - Indicates whether the container control's - should be used as the order for laying out the child controls. - - True to use the ControlCollection order; False to use the order in which - the child components were added to the manager. - Default value is true. - - This property matters only when the corresponding layout manager relies on the - order of children in the child list in its layout logic. The FlowLayout, CardLayout - and the GridLayout managers rely on the order, while the GridBagLayout managers do not. - Note that if you have both control-based and -based child components - participating in the layout and this property is True, then the LayoutItemBase based - child components will always be at the bottom of the list when layout is performed. - In this case, if you want more control on the child order, set this property to False - and use the LayoutControls list to modify the exisiting order. - - - - - Returns the list of child components participating in layout. - - An ArrayList containing the child components. - - There are very specific cases when you have to access this list. - You should access this list to modify the position of the children in the child - components list only when property is False and - you are laying out both control-based and LayoutItemBase-based components in - the manager. Take a look at the UseControlCollectionPosition property documentation - for information on this issue. - However, you should only use this property to change the position of child - components, but never to effectively add or remove components (use the - methods provided by the respective managers). - - - - - Indicates whether the manager should lay out automatically on Layout event. - - True indicates auto layout; False otherwise. Default is True. - - If True, the manager will listen to the ContainerControl control's Layout event and perform layout - automatically. If False, you should call the manager's method to trigger - layout. - - - - - This method has been replaced by HorzNearMargin. Please use that instead. - - - - - Gets or sets the left margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - This method has been replaced by HorzFarMargin. Please use that instead. - - - - - Gets or sets the right margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Gets or sets the top margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Gets or sets the bottom margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Hashtable to maintain constraint to control mapping. - - - - - Overloaded. Creates an instance of the BorderLayout class and sets its defaults. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Sets the for a child component. - - The child component whose position is to be set. - The . - - - - Removes a child component from the layout list. - - - - - - Adds a child component to the layout list with the specified constraints. - - - - - - Returns the of a child component. - - The child component whose position is to be retrieved. - The . - - - - Retrieves the preferred size associated with the specified control. - - - - - - - - - Retrieves the minimum size associated with the specified control. - - - - - - Returns the preferred size for the ContainerControl. - - - - - - Returns the minimum size for the ContainerControl. - - - - - - Triggers a layout of the child components. - - - - - - Gets or sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Gets or sets the horizontal spacing between the layout border and the components. - - The horizontal space in pixels. - - - - Specifies the position and the manner in which the control will be laid out - by the . - - - - - The control is not laid out. - - - - - The control's top edge is docked to the top of its containing control. - - - - - The control's bottom edge is docked to the bottom of its containing control. - - - - - The control's left edge is docked to the left edge of its containing control. - - - - - The control's right edge is docked to the right edge of its containing control. - - - - - The control is resized to fit the area between the controls laid out in the other borders. - - - - - Specifies how the children will be laid out. - - - In Default mode, the CardLayout manager will center the control within the - layout rectangle based on its preferred size, when there is enough space available. - When the space available is less than the preferred size, it will simply show the - child from the top / left of the layout rectangle, shrinking the size to fit the - layout rectangle, not going below the minimum size. - In Fill mode, the preferred size of the control will be ignored and it will - be made to fill the entire client area of the parent, taking into consideration the - parent's DockPading parent(if the parent is a ScrollableControl). - - - - - The child control is laid out based on its preferred size. - - - - - The child control is laid out to fill the parent. - - - - - Represents the layout manager that lays out the children as "Cards". - - - Each child component is a "Card" with a name attached to it. - The CardLayout will display only one Card at a time, allowing you - to flip through it. Use the , , , , and methods to do so. - The property lets you specify whether to lay out the children based on their - preferred size or make them fill the parent's client rectangle. - The method will expect you to pass a string value - indicating the name of the Card as the constraint. - Setting the same Card name for more than one component will result in unforseen conflicts. - During design-time, you can change the order of the child controls being laid out by moving them around - using the "Bring to Front" and "Send to Back" verbs provided by the control designer. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - Here is some sample code that tells you how to initialize a CardLayout manager: - - // Binding a Control to the CardLayout manager programmatically. - this.cardLayout1 = new CardLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager and get default card names. - this.cardLayout1.ContainerControl = this.panel1; - // Set custom card names to replace default card names. - this.cardLayout1.SetCardName(this.label1, "MyCard1"); - - // To select a card manually, use the SelectedCard property. - this.cardLayout1.SelectedCard = "MyCard1"; - - // Or move through the cards like this: - this.cardLayout1.Next(); - this.cardLayout1.Previous(); - - ' Binding a Control to the CardLayout manager programmatically. - Me.cardLayout1 = New CardLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager and get default card names. - Me.cardLayout1.ContainerControl = Me.panel1 - ' Set custom card names to replace default card names. - Me.cardLayout1.SetCardName(Me.label1, "MyCard1") - ' To select a card manually, use the SelectedCard property. - Me.cardLayout1.SelectedCard = "MyCard1" - ' Or move through the cards like this: - Me.cardLayout1.Next - Me.cardLayout1.Previous - Also, take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Indicates the Base Name of the card. - - - - - Overloaded. Creates a new instance of the CardLayout class and sets its defaults. - - - - - Creates a new instance of the CardLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's container control. - - - - Creates a new instance of the CardLayout class and sets its ContainerControl. - - - - - Ends designer initialization. - - - - - Returns the Card name of a child component. - - The child component whose Card name is to be retrieved. - The Card name as string. - - - - Sets the Card name for a child component. - - The child component whose Card name is to be set. - The Card name as string. - Use this method to change the card name of a component - once set using . Setting a NULL or empty string - will also remove the component from the layout list. - - - - Returns the value for maintaining aspect ratio based on the control's PreferredSize. - - The control whose aspect ratio setting is to be known. - True if the aspect ratio should be maintained; false otherwise. - - - - Sets the value for maintaining aspect ratio based on the control's PreferredSize. - - The control to associate the aspect ratio setting. - True to maintain aspect ratio. False otherwise. - Use this method to specify whether or not the control will be drawn - maintaining its aspect ratio based on the control's PreferredSize. Applicable only - when the property is set to CardLayoutMode.Default. - - - - Overridden. See . - - - - - - - Generates a new unique name for a card that could be added to this CardLayout. - - A card name unique within this layout manager. - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Validates hidden states. - - - - - Overridden. See . - - - - - Returns the current active Card. - - The control representing the card. - - - - Shows the first Card. - - - - - Shows the next Card in the list. - - - - - Shows the previous Card in the list. - - - - - Shows the last Card in the list. - - - - - Shows a Card by name. - - The Card's name. - - - - Returns an array containing the Card names as strings. - - An ArrayList of Card names. - - - - Returns an associated control given a Card name. - - The card name whose control to retrieve. - A control associated with the card name. - - - - Gets or sets the layout mode. - - The current CardLayoutMode. Default is CardLayoutMode.Default. - - - - - - - - - Returns the index of the next card that will be shown when the method gets called. - - A valid index into the list returned by the method; -1 if - a next card is not available. - This property will return the first card if the currently selected card is the last card. - - - - Returns the index of the previous card that will be shown when the method gets called. - - A valid index into the list returned by the method; -1 if - a previous card is not available. - This property will return the last card if the currently selected card is the first card. - - - - Gets or sets the current Card's name. - - The current Card's name. - - - - This event is raised in LayoutContainer method before applying new bounds. - - - - - Represents the method that will handle the event of - the CardLayout. - - The source of the event. - A that contains the event data. - - - - Specifies the alignment of layout components in the direction of flow. - - - - - Center the components within the parent's width (if vertical layout) or - height (if horizontal layout). - - - - - Dock the components to the left border (if vertical layout) or - top border (if horizontal layout). - - - - - Dock the components to the right border (if vertical layout) or - bottom border (if horizontal layout). - - - - - Refer to the child's to determine the alignment and layout. - - - - - Specifies whether the children should be laid out horizontally or vertically. - - - - - Children will be laid out horizontally, left to right. - - - - - Children will be laid out vertically, top to bottom. - - - - - Specifies how child components will be positioned inside a container managed - by the manager. - - - Flow Layout constraints are a set of properties that determine how a - child component will be horizontally and vertically aligned when laid out in - rows or columns. - - - - - Returns a default FlowLayoutConstraints object (that is not empty). - - The default FlowLayoutConstraints object. - - - - Overloaded. Creates a new instance of the FlowLayoutConstraints class and sets its defaults. - - - - - Creates a new instance of the FlowLayoutConstraints class - with the specified values. - - True indicates this child should participate in layout; False otherwise. - The mode in which child should be laid out (when in horizontal flow mode). - The mode in which child should be laid out (when in vertical flow mode). - True indicates a line break when this child is encountered - while laying out. - True indicates that the width of the column the corresponding - child control occupies should be proportional to the laid out column's preferred width (when laid out vertically). - /// True indicates that the height of the row the corresponding - child control occupies should be proportional to the laid out row's preferred height (when laid out horizontally). - - - - Creates an exact copy of this FlowLayoutConstraints object. - - The cloned object. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - bool - - - - - Indicates whether the child should participate in layout. - - True to indicate this child should participate in layout; False otherwise. Default is True. - - - - Specifies the mode in which the child should be laid out within a row. - - A value. Default is HorzFlowAlign.Justify. - - - - Specifies the mode in which the child should be laid out within a column. - - A value. Default is VertFlowAlign.Center. - - - - Indicates whether this child should always be moved to the beginning of a new line when laid out. - - True to move to a new line; False otherwise. Default is False. - - - - Indicates whether the effective height of the row the corresponding child control occupies should be - proportional to the laid out rows' preferred heights, for horizontal layout mode. - - True for proportional height; False otherwise. Default is False. - - This property is in effect only when the layout mode is horizontal. When this property is on, the row - this control occupies will be deemed to take proportional height. Then the remaining vertical space - available will be split proportionally between such rows wanting proportional-height based on their preferred height. - - - - - Indicates whether the effective width of the column the corresponding child control occupies should be - proportional to the laid out columns' preferred widths, for vertical layout mode. - - True for proportional width; False otherwise. Default is False. - - This property is in effect only when the layout mode is vertical. When this property is on, the column - this control occupies will be deemed to take proportional width. Then the remaining horizontal space - available will be split proportionally between such columns wanting proportional-width based on their preferred width. - - - - - Gets / sets the FlowLayoutConstraints structure with its properties left uninitialized. - - - - - Specifies the alignment of child components within a row when horizontally laid out. - - - - - The child component is left aligned within the row. - - - - - The child component is right aligned within the row. - - - - - The child component is centered within the row. - - - - - The child component will be expanded (or shrunk up to the MinimumSize) to fill any available extra width. - - Justified components are positioned after the centered ones. - - - - Specifies the alignment of child components within a column when vertically laid out. - - - - - The child component is top aligned within the column. - - - - - The child component is bottom aligned within the column. - - - - - The child component is center aligned within the column. - - - - - The child component will be expanded to fill any available extra height. - - Justified components are positioned after the centered ones. - - - - Represents the layout manager that does a left to right or top to bottom - layout. - - - Arranges components horizontally (left to right) or vertically (top to bottom) - (As specified in the property). When there is no more space - in a line, it moves the components to the next line. - By default, each line is centered. You can change this justification using - the property. - You can also set on each component for more control - over the component's alignment and spacing within a row / column. - You can control the component spacing, in pixels, through the and properties. - When the FlowLayout's changes, it automatically assigns default FlowLayoutConstraints to the - children, for convenience sake, so that you don't - have to call for each child component. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - The following example shows you how to initialize a FlowLayout manager with a container control: - - // Binding a control to the FlowLayout manager programmatically: - this.flowLayout1 = new FlowLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.flowLayout1.ContainerControl = this.panel1; - - // Set some properties on the flowLayout manager: - this.flowLayout1.HGap = 20; - this.flowLayout1.Alignment = FlowAlignment.Near; - - // You can prevent one or more child controls from being laid out, like this (the first argument for FlowLayoutConstraints should be False). - // This will have the same effect as calling RemoveLayoutComponent: - this.flowLayout1.SetConstraints(this.label10, new FlowLayoutConstraints(false, HorzFlowAlign.Left, VertFlowAlign.Center, false, false, false)); - - // You can prevent automatic layout during the layout event. - // If you decide to do so, make sure to call flowLayout.LayoutContainer manually: - // this.flowLayout1.AutoLayout = false; - - ' Binding a control to the FlowLayout manager programmatically: - Me.flowLayout1 = New FlowLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.flowLayout1.ContainerControl = Me.panel1 - ' Set some properties on the flowLayout manager: - Me.flowLayout1.HGap = 20 - Me.flowLayout1.Alignment = FlowAlignment.Near - ' You can ignore one or more child controls from being laid out, like this (the first argument for FlowLayoutConstraints should be False). - ' This will have the same effect as calling RemoveLayoutComponent: - Me.flowLayout1.SetConstraints(Me.label10, New FlowLayoutConstraints(False, HorzFlowAlign.Center, VertFlowAlign.Center, False, False, False)) - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call flowLayout.LayoutContainer manually: - ' this.flowLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Overloaded. Creates a new instance of the FlowLayout component and sets its defaults. - - - - - Creates a new instance of the FlowLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's container control. - - - - Creates a new instance of the FlowLayout component and sets its . - - - - - Creates a new instance of the FlowLayout component and sets its , - layout mode and alignment. - - - - - Creates a new instance of the FlowLayout component and sets its , - layout mode, alignment, horizontal gap and vertical gap. - - - - - - - - - - - Specifies the constraints associated with the specified control. - - The control for which to set the constraints. - The constraints of the control. NULL to remove the control - from the layout list. - - Passing a NULL value will actually remove the component from the layout list. - - - - - Adds or removes the specified control from the layout list. - - The control to be added or removed. - True means the control will be added; False will remove it. - - This method will be removed in a future version. Instead, use the method passing in a - instance with its - property set to the appropriate value. - - - - - Indicates whether the component is in the layout list. - - The control whose participation needs to be verified. - True if it is in the layout list; False otherwise. - - This method will be removed in a future version. Use the method to get hold of the - associated with this control and then check its - property instead. - - - - - Returns a reference to the constraints associated with the specified control. - - The control with constraints to retrieve. - A reference to the actual constraints object. - This is the actual object where the manager stores the constraints for - the control. Hence, making changes to the returned object will affect the - layout logic. - - - - Returns the constraints associated with the specified control. - - The control with constraints to retrieve. - A clone of the stored constraints object. - - The returned value is a clone which can be used independently by itself. - The changes made to the returned instance will not have any effect on the stored - constraints. Use to get hold of the actual constraints object - that is used by the manager. - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - - - - Removes a child component from the layout list. - - The control to be removed. - - - You can also pass a LayoutItemBase derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to participate - in the layout framework seemlessly). In VB, use the LayoutItemBase.ToControl method. - - - - - - - Overridden. See . - - Returns the size with the preferred height (when laying out Horizontal) - or size with the preferred width (when laying out Vertical). - - - - Overridden. See . - - - - - Overridden. See . - - - - - Gets / sets the alignment of layout components in the direction of flow. - - A FlowAlignment value specifying the justification. - Default is FlowAlignment.Center. - - FlowAlignment.Near will be either left justified or top justified based on - whether the layout mode is vertical or horizontal. And similarly, - FlowAlignment.Far will be either right justified or top justified. - FlowAlignment.ChildConstraints will make the manager refer to the child's constraints. - - - - - Gets / sets the layout mode. - - The current FlowLayoutMode. Default is FlowLayoutMode.Horizontal. - - - - Indicates whether to lay out rows in the opposite direction (right to left or bottom to top). - - False for regular layout; True for reverse layout. Default is False. - - - - Gets / sets the horizontal spacing between the components. - - The horizontal space in pixels. - - - - Indicates whether the container control should automatically grow in height when - there is not enough space when in horizontal alignment mode. - - True to automatically increase the height; False otherwise. - - This applies only in horizontal alignment mode. - - - - - Gets / sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Occurs when property is changed. - - - - - Occurs when property is changed. - - - - - Specifies the inset padding, in pixels, for a component. Used by - the manager. - - - This is the extra space that the manager adds around a component's preferred bounds before - laying out the component. - - - - - Creates an instance on the Insets class. - - Number of pixels added to the left of the component. - Number of pixels added to the top of the component. - Number of pixels added to the right of the component. - Number of pixels added to the bottom of the component. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - Gets / sets the insets to the left of the component. - - - - - Gets / sets the insets to the right of the component. - - - - - Gets / sets the insets to the top of the component. - - - - - Gets / sets the insets to the bottom of the component. - - - - - Specifies how to resize a component when the component's - layout bounds are larger than its preferred size. - - - - - The component is not resized. - - - - - The component's width and height are both changed to fill the - entire available layout bounds. - - - - - The component's width is changed to fill its layout bounds - horizontally. - - - - - The component's height is changed to fill its layout bounds - vertically. - - - - - Specifies how a layout component anchors to the edges of its layout bounds when managed - by a . - - - A child component usually gets more space than its preferred size when being laid out. - These values specify how to align such components within the layout bounds. - - - - - The child component is anchored to the center of its layout bounds. - - - - - The child component is anchored to the North of its layout bounds. - - - - - The child component is anchored to the NorthEast of its layout bounds. - - - - - The child component is anchored to the East of its layout bounds. - - - - - The child component is anchored to the SouthEast of its layout bounds. - - - - - The child component is anchored to the South of its layout bounds. - - - - - The child component is anchored to the SouthWest of its layout bounds. - - - - - The child component is anchored to the West of its layout bounds. - - - - - The child component is anchored to the NorthWest of its layout bounds. - - - - - Specifies how components will be positioned inside a container managed - by the manager. - - - GridBagConstraints are a set of properties that determine how a - component will grow, shrink or reposition itself when its container is resized. - Each component has its own GridBagConstraints which means that there is potential for - unforseen size and boundary conflicts. Make sure to manually test the layout design - to determine that it behaves appropriately. - - - - - Relative positioning preference. - - - - - Makes the child component occupy the remainder of the row / column. - - - - - Returns a default GridBagConstraint object that is also empty. - - The default GridBagConstraints object. - - - - Overloaded. Creates a new instance of the GridBagConstraints class and sets its defaults. - - - - - Creates a new instance of the GridBagConstraints class - with the specified values. - - - - - Creates an exact copy of this GridBagConstraints object. - - The cloned object. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - Gets / sets the column in the virtual grid where the component's - layout bounds begin. - - A value specifying the beginning column. Can be -1. - Default is -1. - - When -1, the positioning is relative, which means the component will - be positioned immediately to the right of the component that was - most recently added to the container. - - - - - Gets / sets the row in the virtual grid where the component's - layout bounds begin. - - A value specifying the beginning row. Can be -1. - Default is -1(GridBagConstraints.Relative). - - When -1, the positioning is relative, which means the component will - be positioned immediately to the bottom of the component that was - most recently added to the container. - - - - - Gets / sets the number of columns this component should span in the - virtual grid. - - The number of columns to span, default is 1. Can be zero (GridBagConstraints.Remainder). - - When value is zero, the component will be the last one in its row. - - - - - Gets / sets the number of rows this component should span in the - virtual grid. - - The number of rows to span, default is 1. Can be zero (GridBagConstraints.Remainder). - - When value is zero, the component will be the last one in its column. - - - - - Gets / sets the weight of this component in obtaining the extra - horizontal space. - - A double value representing the weight. Default is zero. - - Specifies how to distribute extra horizontal space for a column. - The weight of a column is calculated as the maximum WeightX of all - the components in that column. - When there is extra horizontal space it is distributed to each column - based on its weight. A component that has zero weight receives no - extra space. - - - - - Gets / sets the weight of this component in obtaining the extra - vertical space. - - A double value representing the weight. Default is zero. - - Specifies how to distribute extra vertical space for a row. - The weight of a row is calculated as the maximum WeightY of all - the components in that row. - When there is extra vertical space it is distributed to each row - based on its weight. A component that has zero weight receives no - extra space. - - - - - Gets / sets the justification of a component within its available layout - bounds (a cell in the virtual grid). - - - One of the AnchorTypes values. Default is center. - - - - - Gets / sets the fill type to resize a component when the component's - layout bounds are larger than its preferred size. - - One of the FillType values. The default is none. - - - - Gets / sets the extra space that the manager adds around a component's preferred bounds before - laying out the component. - - An Inset's instance. Default is zero inset padding on all sides. - - - - Gets / sets the amount in pixels to add to the size of the component - when determining its overall width. - - The integer value representing the padding in pixels. - Default is zero. - - - - Gets / sets the amount in pixels to add to the size of the component - when determining its overall height. - - The integer value representing the padding in pixels. - Default is zero. - - - - Gets / sets the GridBagConstraints structure with its properties left uninitialized. - - - - - Represents the layout manager that performs GridBag layout. - - - The GridBagLayout manager creates and manages a grid within the - container's layout bounds. Each column and row in this grid can be - of different sizes and a component can span more than one cell. - Each component can be assigned weights to determine how to distribute - extra space between components. A component can also be anchored to a border / corner - of its virtual grid cell. It can also fill its cell. - - Note that if you want the child components to be laid out purely based on their weights, - set their preferred sizes to be (0,0), specify a non-zero weightX and weigthY, - and set their Fill mode to FillMode.Both. - - The GridBagConstraints structure specifies all the above constraints associated - with a component. Use the SetConstraints method to set the constraints for each component. - To exclude a component from layout, call SetConstraints with NULL constraints. - Each component has a constraint, which means that there is potential - for conflicts in size and boundaries between components. Make - sure to manually test the layout design to determine that it - behaves appropriately. - - - The following example shows you how to initialize a GridBagLayout manager with a container control and its children: - - // Binding a control to the GridBagLayout manager programmatically: - this.gridBagLayout1 = new GridBagLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.gridBagLayout1.ContainerControl = this.panel1; - - this.gridBagLayout1.SetConstraints( - this.button1, - new GridBagConstraints(0, 0, 3, 1, 1, 0.2, AnchorTypes.Center, FillType.Both, new Insets(0, 0, 0, 0), 0, 0, false) - ); - this.gridBagLayout1.SetConstraints( - this.button2, - new GridBagConstraints(0, 1, 1, 3, 0.2, 0.6, AnchorTypes.Center, FillType.Both, new Insets(0, 0, 0, 0), 0, 0, false) - ); - - // Exclude button3 from layout: - this.gridBagLayout1.SetConstraints(this.button3, GridBagConstraints.Empty); - - // Modify an exisiting constraint: - GridBagConstraints constraints1 = this.gridBagLayout1.GetConstraintsRef(this.button1); - constraints1.Fill = FillType.Horizontal; - - // You can prevent automatic layout during the layout event. - // If you decide to do so, make sure to call gridBagLayout1.LayoutContainer manually: - // this.gridBagLayout1.AutoLayout = false; - - ' Binding a Control to the GridBagLayout manager programmatically: - Me.gridBagLayout1 = New GridBagLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.gridBagLayout1.ContainerControl = Me.panel1 - Me.gridBagLayout1.SetConstraints(Me.button1, New GridBagConstraints(0, 0, 3, 1, 1, 0.2, AnchorTypes.Center, FillType.Both, New Insets(0, 0, 0, 0), 0, 0, false)) - Me.gridBagLayout1.SetConstraints(Me.button2, New GridBagConstraints(0, 1, 1, 3, 0.2, 0.6, AnchorTypes.Center, FillType.Both, New Insets(0, 0, 0, 0), 0, 0, false)) - ' Exclude button3 from layout: - Me.gridBagLayout1.SetConstraints(Me.button3, GridBagConstraints.Empty) - ' Modify an exisiting constraint: - Dim constraints1 As GridBagConstraints - constraints1 = Me.gridBagLayout1.GetConstraintsRef(Me.button1) - constraints1.Fill = FillType.Horizontal - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call gridBagLayout1.LayoutContainer manually: - ' this.gridBagLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Largest minimum width in each column. - - - - - Largest minimum height in each row. - - - - - Largest weight in each column. - - - - - Largest weight in each row. - - - - - Overloaded. Creates a new instance of the GridBagLayout class and sets its defaults. - - - - - Creates a new instance of the GridBagLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's ContainerControl. - - - - Creates a new instance of the GridBagLayout class and sets its ContainerControl. - - - - - - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Specifies the constraints associated with the specified control. - - The control for which to set the constraints. - The constraints of the control. Or NULL to remove the control - from the layout list. - - Passing a NULL value will actually remove the component from the layout list. - - - - - Overridden. See . - - - - - Returns the constraints associated with the specified control. - - The control whose constraints to retrieve. - A clone of the stored constraints object. - - The returned value is a clone which can be used independently by itself. - The changes made to the returned instance will not have any effect on the stored - constraints. Use to get hold of the actual constraints object - that is used by the manager. - - - - - Returns a reference to the constraints associated with the specified control. - - The control with constraints to retrieve. - A reference to the actual constraints object. - This is the actual object where the manager stores the constraints for - the control. Hence, making changes to the returned object will affect the - layout logic. - - - - Returns the top-left origin of the virtual grid in the current layout. - - A point representing the top-left position. - - - - Returns the row and column dimensions of the current layout. - - A 2D integer array containing the dimensions. - - - - Returns the row and column weights of the current layout. - - A 2D integer array containing the weights. - - - - Returns the cell in the virtual grid (as a point) given a location. - - The x coordinate of the location. - The y coordinate of the location. - A Point representing the virtual grid cell. - - - - Adds a component to the child layout list. - - The control to add to the layout list. - The GridBagConstraints associated with this component. - If the second argument is not a GridBagConstraints, an exception will be thrown. - - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Represents the layout manager that lays out the child components as a - grid consisting of rows and columns. - - - The layout manager divides the layout space into rows and columns based on the - Rows and Columns properties and assigns each similar sized cell to a child component. - You can control the component spacing, in pixels, through the HGap and VGap properties. - You can remove or add child controls through the SetParticipateInLayout - method. When the GridLayout's ContainerControl changes, it automatically includes all of its - children in the layout component list, for convenience sake, so that you don't - have to call SetParticipateInLayout for each child component. - The PreferredSize and MinimimumSize settings for the children are ignored by - the GridLayout during layout, however the and - methods do refer to the above settings to determine the sizes. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - The following example shows you how to initialize a GridLayout manager with a container control: - - // Binding a Control to the GridLayout manager programmatically: - this.gridLayout1 = new Syncfusion.Windows.Forms.Tools.GridLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.gridLayout1.ContainerControl = this.innerPanel; - // Set some properties on the flowLayout manager: - this.gridLayout1.Columns = 4; - this.gridLayout1.Rows = 5; - this.gridLayout1.HGap = 4; - this.gridLayout1.VGap = 4; - - // You can ignore one or more child Control from being laid out, like this. - // This will have the same effect as calling RemoveLayoutComponent: - //this.gridLayout1.SetParticipateInLayout(this.button1, false); - - // You can prevent automatic layout during the layout event: - // If you decide to do so, make sure to call gridLayout1.LayoutContainer manually: - // this.gridLayout1.AutoLayout = false; - - ' Binding a Control to the GridLayout manager programmatically: - Me.gridLayout1 = New Syncfusion.Windows.Forms.Tools.GridLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.gridLayout1.ContainerControl = Me.innerPanel - ' Set some properties on the flowLayout manager: - Me.gridLayout1.Columns = 4 - Me.gridLayout1.Rows = 5 - Me.gridLayout1.HGap = 4 - Me.gridLayout1.VGap = 4 - ' You can ignore one or more child Control from being laid out, like this. - ' This will have the same effect as calling RemoveLayoutComponent: - 'this.gridLayout1.SetParticipateInLayout(this.button1, false); - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call gridLayout1.LayoutContainer manually: - ' this.gridLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Overloaded. Creates an instance of the GridLayout class and sets its defaults. - - - - - Creates a new instance of the GridLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's ContainerControl. - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl, - rows and columns. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl, - rows, columns, horizontal gap and vertical gap. - - - - - Indicates whether the component is in the layout list. - - The control whose participation needs to be verified. - True if it is in the layout list; False otherwise. - - - - Adds or removes the specified control from the layout list. - - The control to be added or removed. - True means the control will be added; False will remove it. - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - - - - - - - - - Overridden. See . - - Returns the preferred layout size. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Gets / sets the number of rows in the grid. - - The number of rows. Default is 1. - At least one Row or Column property should be greater than zero. - If they are both set to zero, then the Rows property will be changed to 1. - If you try to set a negative value, this will instead be set to zero. - - - - Gets / sets the number of columns in the grid. - - The number of columns. Default is 1. - At least one Row or Column property should be greater than zero. - If they are both set to zero, then the Row property will be changed to 1. - If you try to set a negative value, this will instead be set to zero. - - - - Gets / sets the horizontal spacing between the layout border and the components. - - The horizontal space in pixels. - - - - Gets / sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Defines a mechanism through which dynamic size information can be provided. - - - When a layout component implements this interface, the layout manager will obtain - the size information through this interface whenever layout is performed. This allows - you to provide dynamic layout information. - - - - - Returns the preferred size of the component. - - - - - Returns the minimum size of the component. - - - - - - - - Represents a non-control based layout component. - - - Derive your non-control based components from this class if you want them to - participate in the layout management. - You can add such components to the manager using the same methods as the control - derived classes. You can pass a LayoutItemBase derived class to any method that - expects a control type argument since the LayoutItemBase has an implicit type-conversion operator - that can convert itself to a control. In VB, use the method to convert this instance to a control. - In your derived class, you can find out the size set by the layout manager - through the property and the visibility through the Visible property (listening - for the event should also help). You - should also provide the preferred size and minimum size of your component through - the and overrides. - - - This first example shows a sample LayoutItemBase derived class: - - public class MyRectangle : LayoutItemBase - { - public static Size PrefSize = new Size(0, 0); - protected Control parent; - protected Color color; - protected string text; - public MyRectangle(Control parent, Color color, string text) - { - this.parent = parent; - this.color = color; - this.text = text; - } - public void OnPaint( PaintEventArgs e) - { - e.Graphics.FillRectangle(new SolidBrush(color), this.Bounds); - StringFormat sf = new StringFormat(); - sf.Alignment = StringAlignment.Center; - sf.LineAlignment = StringAlignment.Center; - RectangleF r = new RectangleF(Bounds.Left, Bounds.Top, - Bounds.Width, Bounds.Height); - e.Graphics.DrawString(text, Control.DefaultFont, SystemBrushes.ControlText, r, sf); - } - // This override is a good place to repaint. - // Or you can listen to BoundsChanged event in LayoutItemBase. - protected override void OnBoundsChanged() - { - parent.Invalidate(new Rectangle(0, 0, this.parent.Width, this.parent.Height)); - } - - public override System.Drawing.Size MinimumSize - { - get { return MyRectangle.PrefSize; } - } - - public override System.Drawing.Size PreferredSize - { - get - { - return MyRectangle.PrefSize; - } - } - } - - Public Class MyRectangle - Inherits LayoutItemBase - Protected WithEvents parent As Control - Protected color As color - Protected [text] As String - Public Shared PrefSize As Size - 'Fields - 'Constructors - 'Events - 'Methods - Shared Sub New() - 'Warning: Implementation not found - End Sub - Public Sub New(ByVal parent As Control, ByVal color As color, ByVal [text] As String) - MyBase.New() - Me.parent = parent - Me.color = color - Me.text = [text] - - End Sub - Public Overrides ReadOnly Property MinimumSize() As Size - Get - - Return MyRectangle.PrefSize - - End Get - End Property - Public Overrides ReadOnly Property PreferredSize() As Size - Get - - Return MyRectangle.PrefSize - - End Get - End Property - Protected Overloads Overrides Sub OnBoundsChanged() - - parent.Invalidate(New Rectangle(0, 0, Me.parent.Width, Me.parent.Height)) - - End Sub - Public Sub OnPaint(ByVal e As PaintEventArgs) - - e.Graphics.FillRectangle(New SolidBrush(color), Me.Bounds) - Dim sf As StringFormat - sf = New StringFormat() - sf.Alignment = StringAlignment.Center - sf.LineAlignment = StringAlignment.Center - Dim r As RectangleF - r = New RectangleF(Me.Bounds.Left, Me.Bounds.Top, Me.Bounds.Width, Me.Bounds.Height) - e.Graphics.DrawString([text], Control.DefaultFont, SystemBrushes.ControlText, r, sf) - - End Sub - End Class - The above class can then participate in layout as follows. The example assumes - that there is a GridBagLayout manager that is already bound to a container. - - private void Form1_Load(object sender, System.EventArgs e) - { - this.SuspendLayout(); - // Current layout manager (Update every time you change the manager) - - // Layout Component 1: - this.myRect1 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(133, 191, 117), "Paint Area 1"); - this.myRect1.Bounds = new Rectangle(10, 10, 80, 20); - this.myRect1.Visible = true; - - // Layout Component 2: - this.myRect2 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(222, 100, 19), "Paint Area 2"); - this.myRect2.Bounds = new Rectangle(10, 40, 80, 20); - this.myRect2.Visible = true; - - // Layout Component 3: - this.myRect3 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(196, 214, 233), "Paint Area 3"); - this.myRect3.Bounds = new Rectangle(10, 70, 80, 20); - this.myRect3.Visible = true; - - - // Sample GridBagConstraints: - GridBagConstraints gbc1 = new GridBagConstraints(); - GridBagConstraints gbc2 = new GridBagConstraints(); - GridBagConstraints gbc3 = new GridBagConstraints(); - - gbc1.Fill = FillType.Both; - gbc1.WeightX = 0.2; - gbc1.WeightY = 0.5; - gbc1.GridPosX = 0; - gbc1.GridPosY = 0; - - gbc2.Fill = FillType.Both; - gbc2.WeightX = 0.2; - gbc2.WeightY = 0.5; - gbc2.GridPosX = 1; - gbc2.GridPosY = 0; - - gbc3.Fill = FillType.Both; - gbc3.WeightX = 0.4; - gbc3.WeightY = 0.5; - gbc3.GridPosX = 0; - gbc3.GridPosY = 1; - gbc3.CellSpanX = 2; - - // Add all the components that are to participate in Layout Management. - - // For GridBagLayouts pass gbcs for GridBagLayouts: - this.gridBagLayout1.SetConstraints(this.myRect1.ToControl(), gbc1); - this.gridBagLayout1.SetConstraints(this.myRect2.ToControl(), gbc2); - this.gridBagLayout1.SetConstraints(this.myRect3.ToControl(), gbc3); - - this.ResumeLayout(true); - } - - Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load - - Me.SuspendLayout() - ' Current layout manager (Update every time you change the manager) - ' Layout Component 1: - Me.myRect1 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(133, 191, 117), "Paint Area 1") - Me.myRect1.Bounds = New Rectangle(10, 10, 80, 20) - Me.myRect1.Visible = True - ' Layout Component 2: - Me.myRect2 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(222, 100, 19), "Paint Area 2") - Me.myRect2.Bounds = New Rectangle(10, 40, 80, 20) - Me.myRect2.Visible = True - ' Layout Component 3: - Me.myRect3 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(196, 214, 233), "Paint Area 3") - Me.myRect3.Bounds = New Rectangle(10, 70, 80, 20) - Me.myRect3.Visible = True - ' Sample GridBagConstraints: - Dim gbc1 As GridBagConstraints - gbc1 = New GridBagConstraints() - Dim gbc2 As GridBagConstraints - gbc2 = New GridBagConstraints() - Dim gbc3 As GridBagConstraints - gbc3 = New GridBagConstraints() - gbc1.Fill = FillType.Both - gbc1.WeightX = 0.2 - gbc1.WeightY = 0.5 - gbc1.GridPosX = 0 - gbc1.GridPosY = 0 - gbc2.Fill = FillType.Both - gbc2.WeightX = 0.2 - gbc2.WeightY = 0.5 - gbc2.GridPosX = 1 - gbc2.GridPosY = 0 - gbc3.Fill = FillType.Both - gbc3.WeightX = 0.4 - gbc3.WeightY = 0.5 - gbc3.GridPosX = 0 - gbc3.GridPosY = 1 - gbc3.CellSpanX = 2 - ' Add all the components that are to participate in Layout Management. - ' For GridBagLayouts pass gbcs for GridBagLayouts: - Me.gridBagLayout1.SetConstraints(Me.myRect1.ToControl, gbc1) - Me.gridBagLayout1.SetConstraints(Me.myRect2.ToControl, gbc2) - Me.gridBagLayout1.SetConstraints(Me.myRect3.ToControl, gbc3) - Me.ResumeLayout(True) - - End Sub - - - - - Creates an instance of the LayoutItemBase. - - - - - Returns the place holder control corresponding to the LayoutItemBase that lets - the LayoutItemBase participate in the LayoutManager framework. - - The LayoutItemBase object. - The corresponding place holder control. - - - - Returns the place holder control corresponding to this LayoutItemBase that lets - the LayoutItemBase participate in the LayoutManager framework. - - The corresponding place holder control. - - - - Called when the Bounds property changes. - - - - - Returns the preferred size of the component. - - - - - Returns the minimum size of the component. - - - - - Indicates whether the component should be drawn visible. - - True for visible; False for hidden. - - - - Gets / sets the bounds of the component in the corresponding layout manager's - ContainerControl's client co-ordinates. - - The rectangle within the parent control, in client co-ordinates. - - - - Specifies the type of size information requested. - - - - - The preferred size of the component. - - - - - The minimum size of the component. - - - - - Represents the method that will handle the event of - the LayoutManager. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - - - - Creates a new instance of the ProvideLayoutInformationEventArgs class. - - The control for which the layout information is requested. - The type of information requested. - - - - Returns the type of information requested. - - A enum. - - - - Returns the control for which the layout information is requested. - - A control instance. - - - - Gets / sets the size to be returned. - - A size value. - - - - Indicates whether this event was handled and a value provided. - - True to indicate a value was provided; False otherwise. - - - - Helps transform points from LTR to RTL co-ordinates and vice versa. - - - - - SR provides localized access to string resources specific - from the assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Specifies the category in which the property or event will be displayed in a visual designer. - - - This is a localized version of CategoryAttribute. The localized string will be loaded from the - assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Specifies a description for a property or event. - - - This is a localized version of DescriptionAttribute. The localized string will be loaded from the - assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Defines a interface. - - - - - Provides static methods and properties to localize the UI. - - - - - ResourceIdentifiers contains resource Ids specific to the Syncfusion.Shared.Base assembly. - - - - - The MaskedEditBox control provides restricted data input as well - as formatted data output. This control supplies visual cues about - the type of data being entered or displayed. - - - The MaskedEditBox is derived from - and is fully compatible with the textbox control. - - The MaskedEditBox control generally behaves as a textbox control with - enhancements for optional masked input and formatted output. If you do - not use an input mask, the MaskedEditBox control behaves much like a - textbox. - - - If you define an input mask using the Mask property, each character - position in the MaskedEditBox control maps to either a placeholder - of a specified type or a literal character. Literal characters, or - literals, can give visual cues about the type of data being used. - For example, the parentheses surrounding the area code of a telephone - number are literals: (919). - - - If you attempt to enter a character that conflicts with the input mask, - the control generates a ValidationError event. The input mask prevents - you from entering invalid characters into the control. - - - The MaskedEditBox control provides full support for the Windows Forms - designer and you can just drag-and-drop the control and set the properties. - - - The MaskedEditBox control provides full support for data binding. The - property has to be set to - when the MaskedEditBox's property is bound to a - DataColumn that only accepts numerical data. - - - The property provides the ability to break down the MaskedEditBox's content into different data groups. - The data groups can be defined through the designer and is defined by the length of the data group. For example, a mask of type - (###) ### - #### Ext 9999 representing a telephone number can be broken down into 3 data groups with the names "AreaCode", "PhoneNumber" - and "Extension" by setting the group lengths to be 5, 11, 9. You can access the DataGroups and the values they hold through an index based accessor or - name based accessor. - - - - - - - - // InitializeComponent - // Create the Masked edit box control: - this.maskedEditBox1 = new MaskedEditBox(); - - // Specifies if the prompt character can be entered: - this.maskedEditBox1.AllowPrompt = false; - - // The mask string: - this.maskedEditBox1.Mask = ">?<????????????"; - - // The max length is set based on the mask: - this.maskedEditBox1.MaxLength = 13; - - // The clip mode specifies if the literals are included: - this.maskedEditBox1.ClipMode = ClipModes.IncludeLiterals; - - // The date time format: - this.maskedEditBox1.TimeSeparator = ':'; - this.maskedEditBox1.DateSeparator = '-'; - - // The number format: - this.maskedEditBox1.DecimalSeparator = '.'; - this.maskedEditBox1.ThousandSeparator = ','; - - // Add the MaskedEditBox control to the form: - this.Controls.Add(this.maskedEditBox1); - - - - ' InitializeComponent - ' Create the Masked edit box control: - Me.maskedEditBox1 = New MaskedEditBox() - ' Specifies if the prompt character can be entered: - Me.maskedEditBox1.AllowPrompt = False - ' The mask string: - Me.maskedEditBox1.Mask = ">?<????????????" - ' The max length is set based on the mask: - Me.maskedEditBox1.MaxLength = 13 - ' The clip mode specifies if the literals are included: - Me.maskedEditBox1.ClipMode = ClipModes.IncludeLiterals - ' The date time format: - Me.maskedEditBox1.TimeSeparator = Microsoft.VisualBasic.ChrW(58) - Me.maskedEditBox1.DateSeparator = Microsoft.VisualBasic.ChrW(45) - ' The number format: - Me.maskedEditBox1.DecimalSeparator = Microsoft.VisualBasic.ChrW(46) - Me.maskedEditBox1.ThousandSeparator = Microsoft.VisualBasic.ChrW(44) - ' Add the MaskedEditBox control to the form: - Me.Controls.Add(Me.maskedEditBox1) - - - - - Indicates whether TextBox content is modified, when Mask is used. - - - - - The mask string that specifies the mask behavior. - - - - - The mask string to be displayed in the masked edit textbox. - - - - - The display string with the masks replaced. - - - - - The prompt character. - - - - - The prompt character when the control is in passive mode. - - - - - The padding character. - - - - - String for holding undo buffer. - - - - - String for holding redo buffer. - - - - - The insert mode. - - - - - Indicates whether the prompt character can input in a mask. - position - - - - - The static internal list of mask characters. - - - - - Used internally for holding the special masks that don't take up a - mask position in the string. - - - - - How to apply case sensitivity. - - - - - NumberFormatInfo object for handling globalization. - - - - - DateFormatInfo object for handling globalization. - - - - - The usage mode for the MaskedEditBox. - - - - - Indicaqtes whether the control has been clicked. - - - - - The maximum value that the control can take. - - - - - The minimum value that the control can take. - - - - - Internal variable to track if the control is setting the Text property - to a different value internally. In this case, the TextChanged event will - not be raised. This solves the problem with the TextChanged event being - fired even when the user has not made any changes. - - - - - The text that will be used to initailize the MaskedEdit. - - - - - The mask string for initialization. - - - - - The MaxLength for initialization. - - - - - Date separator value set during initialization. - - - - - Used to differentiate when the actual display string is different - from the internal display string (primarily because the prompt character - can be set to NULL). - - - - - SortedList with mappings of literal and mask characters between display - and internal strings. - - - - - Indicating whether the control use sequentially display mask's characters. - - - - - Used whenever the NULL character is the PromptCharacter. - - - - - Used whenever the NULL character is the PromptCharacter. - - - - - Internally holds the last used prompt character. - - - - - Manages the state of the MaskedEditBox. - - - - - The ClipMode to use when returning the contents of the textbox - (with or without literals). - - - - - The integer value to offset the mask characters by. - - - - - The context menu for the textbox. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Indicates whether the locale default values have to be used for the - NumberFormatInfo object. - - - - - The data groups collection. - - - - - The internal data groups collection. - - - - - The currently selected culture. - - - - - Modifier for the culture. - - - - - List of cultures that we consider to be RightToLeft. - - - - - Indicates whether the UseUserOverride value is to be set when creating - the CultureInfo. - - - - - Use this to check that the Focused property doesn't get - set when we handle OnEnter. - - - - - Internal bool to tell the FormattedText method to return just the Text without - any padding. This is used when there is a NULL prompt as the base.Text call fails - when the Text property returns a value longer (?) than the one being set. - - - - - Indicates whether the cursor is to be positioned near the decimal - when the control receives focus. - - - - - Hashtable to hold positions. - - - - - To enable KeyPress and KeyDown events to be handled - normally. - - - - - Pulls the Character on the next data position on delete, pays caution to the mask. - - - - - Input mode. - - - - - Support for culture initialization. - - - - - This method raises the ValidationError event. - - The text that was input. - The start position of the error. - - See the method for more information. - - - - - This method raises the MaskSatisfied event. - - - See the method for more information. - - - - - Invokes the ValidationError event. - A ValidationErrorEventArgs that contains the event data. - - The OnValidationError method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnValidationError in a derived - class, be sure to call the base class's OnValidationError method so that - registered delegates receive the event. - - - - - - - Invokes the MaskSatisfied event. - An EventArgs that contains the event data. - - The OnMaskSatisfied method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnMaskSatisfied in a derived - class, be sure to call the base class's OnMaskSatisfied method so that - registered delegates receive the event. - - - - - - - Creates an object of type MaskedEditBox and initializes it. - - - The default Mask is initialized to an empty string and this will - result in the MaskedEditBox acting the same as a text box initially. - - - - - Signals the object that the initialization is completed. - - - - - Static constructor for initialization. - - - - - Initializes the context menu. - - - - - Sets the internal state of the control. - - The new state of the control. - - - - Sets the internal state of the control. - - The new state of the control. - Indicates whether the display is to be updated. - - - - Handles the popup menu. - - The context menu. - The event information. - - - - Handles the Undo menu click. - - The undo menu. - The event data. - - - - Handles the Cut menu. - - Cut menu. - The event data. - - - - Handles the Copy menu. - - Copy menu. - The event data. - - - - Handles the Paste menu. - - Paste menu. - The event data. - - - - Handles the Delete menu. - - Delete menu. - The event data. - - - - Handles the Select All menu. - - Select All menu. - The event data. - - - - Invoke to initialize the masked edit control after - setting its properties. - - - - - Internal helper function for getting mask characters - that rely on globalized settings. - - The MaskCharType value. - Char representing the globalized value. - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Returns the last mask character. - - - - - - Internal helper function to set the maximum length. - - The new mask length. - - - - Raises the PropertyChanged event. - - The argument for the PropertyChanged event. - - - - Overrides and prevents the event from being raised if the control is - being initialized. - - The event args. - - - - Returns the clip text. - - The starting position for the selection. - The end position for the selection. - Returns the clip text. - - - - Overloaded. Returns the value of a DataGroup as a string. - - - - - Returns the value of a DataGroup as a string. - - - - - Returns the value for the DataGroup. - - The current data group collection. - The index of the DataGroup. - The current clipmode. - A string with the value of the DataGroup. - - - - Returns the text for the DataGroup. - - The current data group collection. - The index of the DataGroup. - The full text. - The text for the DataGroup. - - - - Returns the offset for the DataGroup from the beginning of the string. - - The current data group collection. - The index of the DataGroup. - The offset for the current DataGroup. - - - - Indicates whether the ThousandSeparator should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - Indicates whether the DateSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the TimeSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the DecimalSeparator should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - If the mask string is empty, we do not apply any rules. - This helper function checks whether the mask is active. - - True if the mask is active; False otherwise. - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Resets BackColor of the control to its default value. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Resets the MaskedEditBox control to its initial position. - - - Invoke this method when you need to reinitialize the MaskededitBox. - The Mask property will not be lost because of calling this method. - - - - - Refreshes the display based on the current display - characteristics. - - - Changes made to the Mask property or any other property that affects the - display of the formatted string will be picked up by invoking this method. - - - - - Returns the valid mapped position. - - The index in the full string. - The valid mapped position. - - - - Handles character deletion as MS MaskedTextBox. - - - - - - - - - - - - Returns the adjusted position when there is a NULL prompt. - - The current position. - The adjusted position. - - - - Indicates whether the in parameter is a literal character. - - The character to check. - True if the input character is a mask character. - - All characters that are accepted as input are subjected to - this check. - - - - - Looks up the mask character in the mask list and returns the - index so that the masking logic knows what to do with it. - - The character to be identified. - The index to the mask in the MaskedEditBox.maskList collection. - - This is a helper method that takes a character and looks up the character - in the list of recognized mask characters and returns the result. - - - - - Overrides the method. - - The event data. - - This method is overriden in order to refresh the display between the passive - and active prompt characters. - - - - - Overrides the OnClick method. - - - Position the cursor when the user clicks inside the control. - - The event data. - - - - Overrides the method. - - The event data. - - This method is overriden in order to refresh the display between the passive - and active prompt characters. - - - - - Applies RightToLeft based on the current culture. - - - - - Extracts the mask values from the mask string that was input by the user and initializes - the internal variables that will be used in applying the mask logic. - - The mask string input by the user. - The extracted mask string.] - - The mask string is split up into three different types of - characters for applying the masking logic - they are literals, special - masks (> and <) and other masks. - - > and < are treated as special masks because they do not occupy a - position by themselves but dictate the formatting of other adjoining characters. - - - - - - Refreshes the display with the current prompt character. - - - This method changes the display based on the new prompt character by replacing - the old prompt character with the new prompt character. - - - - - Applies the masking rules and prepares the display string - based on the mask string. - - The mask string. - The display string. - - You will not need to call this method directly. It is invoked by - by methods that need to refresh the display. - - - - - Moves the cursor position depending on the action. - - The current position of the cursor. - The direction which the cursor needs to be moved. - Boolean value specifying if there is selected text. - The position of the cursor after setting it. - - The MaskedEditBox control automatically adjusts its cursor position when - there is a change in the content of the text box. - - - - - This method is a helper method for getting the next available data entry - position. - - The current position. Checks from here onward. - Returns the next available position. - - - - Returns the index of the first empty position before the current position. - - Index of the first empty position. - - - - This method is a helper method for getting the next available data entry position(backward). - - The current position. Checks from here backward. - The next available position(backward). - - - - Returns the previous data entry position. - - The current position. - Indicates whether the new position has to be unfilled. - The new position. - - - - Sets the cursor and also selects text for the specified - length based on the parameters passed in. - - The beginning position for the selection. - The length of the selection. - - - - Returns the current PromptCharacter. - - The current prompt character. - - - - Inserts a new character into the displayed text. - - The start position to insert the character. - The new character to be inserted. - Indicates whether the display is to be updated. - The changed text. - - - - Inserts a new character into the displayed text. - - The current display text. - The start position to insert the character. - The new character to be inserted. - Indicates whether the display is to be updated. - The changed text. - - - - Applies the special masks to the current character - this is for the - upper case and lower case masks that are not part of the mask string. - - - - - - - - This method is invoked when the decimal key is pressed. - - True if the key is handled; False otherwise. - - The defined behavior for this key is to jump to the position immediately - after the decimal position. - - - - - Applies group alignment. - - - - - Applies the alignment logic and moves characters within the group if possible. - In the case that there is a NULL PromptCharacter, the DisplayString should be - adjusted before invoking this method for aligning. This method will assume that - the number of characters in the MaskString will be equal to the number of - characters in the DisplayString. SpecialMasks will have to be considered separately - in the case that they exist within a group. - - The current data groups collection. - The index of the group. - - - - Returns the first empty position. - - The start position. - The first empty position. - - - - Intercepts the Key messages. - - The message data. - True if the key is handled; False otherwise. - - - - Overrides to suppress KeyPress. Only the KeyPress event is raised - no other - processing is done. - - The message. - True if the message is a KeyPress; otherwise the base class handles this. - - - - Removes the text selected or specified by the parameters. - - The current string to be modified. - The start position of the selection. - The end position of the selection. - The modified string. - - - - Removes the text selected or specified by the parameters within a group. In this case, - a group is defined as an area separated by a DecimalSeparator, Date Separator or - Time Separator. - - The current string to be modified. - The start position of the selection. - The end position of the selection. - The modified string. - - - - Removes the selected text. - - The start position of the selection. - The end position of the selection. - The modified string. - - - - Indicates whether the backspace key has been pressed. - - - - - - Adjusts the DisplayString for internal manipulations when the PromptCharacter/ - PassivePromptCharacter is NULL. - - - - - Indicates whether the delete key has been pressed. - - - - - - Handles a character input. - - The character that was input. - True if the character was successfully inserted. - - - - Changes the character case according to the casingType passed in and - returns the character with the correct casing. Use with the special masks - for upper case and lower case. - - The current character. - The casing change to be applied. - - - - - Positions the cursor next to a decimal separator if present. - - - - - Positions the cursor at the first data position. - - - - - Applies the current CharacterCasing settings in effect for this - textbox. - - The current character. - The casing change to be applied. - The changed character. - - - - Raises the MaskCustomValidate event. - - The event data. - - - - Indicates whether the character is valid for this position based on the - mask. - - The current position. - The current character. - True if the character is acceptable; False otherwise. - - - - Returns the decimal value of the displayed text. - - The currently displayed text. - The decimal value. - - - - Returns the numeric text. - - The current text. - The numeric text. - - - - Sets external text from the - clipboard to the MaskedEditBox. - - The text to be pasted. - The beginning position. - Indicates whether the text is to be inserted. - Indicates whether to ignore prompt characters. - True if the text was set successfully; False otherwise. - - - - Internal helper for getting the PromptCharacter. - - The prompt character. - - - - Internal helper for getting the PassivePromptCharacter. - - The passive prompt character. - - - - This method will Undo the previous operation. - - - The MaskedEditBox maintains its own undo mechanism. - - - - - Copies the content of the MaskEditBox to the clipboard. - - - The ClipMode property dictates what gets copied. - For example, if the content of MaskedEditBox is (919)481 1974, the - following will be the strings copied to the clipboard depending - on the ClipMode property: - - ClipModes.IncludeLiterals - (919)481 1974 - ClipModes.ExcludeLiterals - 9194811974 - - - - - - Handles the pasting of data from the clipboard into the - MaskededitBox control. - - - The method takes into account the nature of the text in the clipboard - and tries to normalize the text. It will accomodate as much as possible - depending on the current length of the text and the total length allowed. - If text with acceptable and unacceptable characters are found in the - clipboard, the unacceptable data is omitted when the data is inserted. - - - - - Cuts data from the MaskedEditBox and pastes it into - the clipboard. - - - The MaskedEditBox deletes the selected text in this case and then - copies the deleted text to the clipboard. The ClipMode property dictates - whether the literal characters are copied to the clipboard or not. - - - - - Clears the mask edit back to its initial state. - - - - - - - Sets the text property of the MaskedEditBox without raising the - TextChanged event. - - The new text string. - - This method is provided as an alternative to being able to - set the Text property through the designer. - - - - - Internal helper function to directly set the base control Text property. - - The new value. - - - - Overrides method. - - The event data. - - Raises the event when there is unacceptable - text in the control. - - - - - Validates the control. - - Specifies if the validation error is to be raised. - - - - Returns the display string when the current prompt character is NULL. - - The internal text. - The new display string. - - - - Gets length of the clean text, text without , - and characters. - - - - - ValidationError event will be raised when an unacceptable - character is encountered as input. - - - This event can be handled and you can do your processing based - on the information provided. The ValidationErrorEventArgs object - will provide the invalid text that was input and also the position - within that text where the error occurred. - - - - - MaskSatisfied event will be raised when the required fields in - a mask have been satisfied after new text has been entered / the - text changes. - - - This event will be raised only when there are entries that - require input have been filled. This even can be used to move - to another control after the mask rules have been satisfied. - - - - - Handle this event to provide custom behavior to any of the - mask characters. - - This event is raised for each valid mask position that is - being filled. In the event that the event is not handled (by - setting the Handled property of the event information), the - normal logic will be used for validating input. - - - - Property changed event handler. - - - - - Indicates whether TextBox content is modified, when Mask is used. - - - - - Use this property to define the mask string for the MaskedEditBox - control. - - - - The control can - distinguish between numeric and alphabetic characters for - validation, but cannot check for valid content, such as the - correct month or time of day. - - - MaskDescription - Empty String(Default) No mask. Acts like a text box. - ##-???-##Medium date (US). Example: 17-Apr-02 - ##-##-##Short date (US). Example: 04-17-02 - ##:## ??Medium time. Example: 10:14 PM - ##:##Short time. Example: 22:14 - - - The input mask can consist of the following characters. - - - - Mask characterDescription - #Digit placeholder. - .Decimal placeholder. The actual character used is the one specified as the decimal placeholder in your international settings. This character is treated as a literal for masking purposes. - ,Thousands separator. The actual character used is the one specified as the thousands separator in your international settings. This character is treated as a literal for masking purposes. - :Time separator. The actual character used is the one specified as the time separator in your international settings. This character is treated as a literal for masking purposes. - /Date separator. The actual character used is the one specified as the date separator in your international settings. This character is treated as a literal for masking purposes. - \Treat the next character in the mask string as a literal. This allows you to include the '#', &, 'A', and '?' characters in the mask. This character is treated as a literal for masking purposes. - &Character placeholder. Valid values for this placeholder are ANSI characters in the following ranges: 32-126 and 128-255. - >Convert all the characters that follow to uppercase. - <Convert all the characters that follow to lowercase. - AAlphanumeric character placeholder (entry required). For example: a, z, A Z, 0, or 9. - aAlphanumeric character placeholder (entry optional). - 9Digit placeholder (entry optional). For example: 0, 9. - CCharacter or space placeholder (entry optional). This operates exactly like the & placeholder, and ensures compatibility with Microsoft Access. - ?Letter placeholder. For example: a z or A Z. - LiteralAll other symbols are displayed as literals; that is, as themselves. - - - - - - - Indicates whether the cursor is to be positioned at the decimal separator (if any) when the - control receives focus. - - The value will be False by default. - - - - Adjusts the MaxLength property based on the Mask string. - - - - - Gets / sets the display string. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled. - - - The default value for the prompt character is set to '-'. - - - - - Gets / sets the integer version of the PromptCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled when the Text property is accessed. - - - The default value for the prompt character is set to '-'. - - - - - Gets / sets the integer version of the PaddingCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Gets / sets the usage mode for the MaskedEditBox. - - - The UsageMode defines the behavior of the MaskedEditBox - to accomodate specialized input for numbers. - - - - - Gets / sets the input mode of the - control. - - - The InputMode defines the behavior of the MaskedEditBox - to accommodate specialized input for numbers etc. - - - - - Pulls the next data position on delete, pays attention to the mask. - - - - - Gets / sets the culture that is to be used for formatting the currency display. - - - - - Gets / sets the mode for the cultures. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled (when the control does not have the focus). - - - The default value for the prompt character is set to '\0'. - - - - - Gets / sets the integer version of the PassivePromptCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Returns the text in the MaskedEditBox control, excluding literal - characters of the input mask. - - - For example if the content of the MaskedEditBox is - 99-222-9999, the mask is ##-###-###, - the ClipText will return 992229999. - - - - - The MaskedEditBox can be defined to hold multiple data groups. - - - The DataGroups can be added through the designer. DataGroups are - defined by the length of the group. The value of the group can be - accessed by the index of the group or through the name of the group. - - A MaskedEditBox with a mask (###) ###-#### Ext 9999 representing a - US phone number and extension can be defined to have 3 groups - - representing the AreaCode, PhoneNumber, and Extension. The groups would - have lengths of 5, 11 and 9 in that order. - - - The DataGroup's value is affected by the property. - - - - - - Returns the formatted text with the formatting. - - - For example, if the text in the MaskedEditBox is (999)999-9999, the - FormattedText property will give (999)999-9999. - - - - - Gets / sets the format of the text that will be returned by the MaskedEditBox - control. The nature of the formatting is set through the type. - - - See the type for the possible values and more information. - - - - - Gets / sets the character to use when a thousands separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the character to use when a date separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the character to use when a time separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Indicates whether the individual globalization property changes - are to be ignored. If set to True, the individual values will - be ignored and the locale default will be used. - - - - - Gets / sets the character to use when a decimal separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the provides the - necessary globalization information for the properties that rely on these - settings. - - - This value is initially set from the - and can be changed based on your requirements. - - - - - Gets / sets the provides the - necessary globalization information for the properties that rely on the datetime - settings. - - - This value is initially set from the - and can be changed based on your requirements. - - - - - Indicates whether the prompt character can be allowed to be entered as an - input character. - - - Set the value to True if the prompt character can be entered by user. - - - - - Indicates whether the Undo operation is possible at this time. - - - The MaskedEditBox maintains its own undo mechanism and hence - needs to implement this method to be compatible with the Undo - mechanism. - - - - - Gets / sets the Maximum Value that can be set through the MaskedEditBox. - - - This value is enforced only if the property - is set to . The mask string - should be set to contain numeric characters. All literal characters - will be ignored while computing the value of the contents of the - MaskedEditBox. The default value is set to . - - - - - Gets / sets the Minimum Value that can be set through the MaskedEditBox. - - - This value is enforced only if the property - is set to . The mask string - should be set to contain numeric characters. All literal characters - will be ignored while computing the value of the contents of the - MaskedEditBox. The default value is set to . - - - - - Gets / sets the adjusted SelectionStart when the PromptCharacter or PassivePromptCharacter - is NULL. - - - - - Gets / sets the adjusted SelectionLength when the PromptCharacter or PassivePromptCharacter - is NULL. - - - - - Gets or sets a value indicating whether the control use sequentially display mask's characters. - - - - - Use this everywhere except in RefreshPromptCharacter. - - - - - Overrides the property. - - - This method is overriden in order to intercept and normalize - external text that is not in a format acceptable to the - MaskedEditBox. - This property value will not be persisted in the designer. Set the Text property - after initialization through code or use the SetInitialText method to set the - value without raising the TextChanged event. - - - - - The UseUserOverride parameter for CultureInfo. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - MaskedEditBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - This class is used to send event data for a - event. - - - The required pieces of information for the event - are the invalid text and the position of the error text within the invalid text. - - - - - The invalid text. - - - - - The start position of the error. - - - - - Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - - - - Returns the invalid text as it would have been if the error had not intercepted it. - - - - - Returns the location of the invalid input within the - invalid text. - - - - - The DataGroup that will specify the behavior and formatting of a - DataGroup within the MaskedEditBox control. - - - - - The text of the column header. - - - - - The minimum width for the column header. - - - - - The name of the Datagroup. - - - - - The string value of the DataGroup. - - - - - Collection of datagroups. - - - - - Overloaded. Initializes an object of type MaskedEditDataGroupInfo. - - - The MaskedEditDataGroupInfo class holds the information needed to intialize - a data group for the control. - - - - - Initializes an object of type MaskedEditDataGroupInfo. - - The name of the DataGroup. - The DataGroup size. - The DataGroup alignment. - - - - Raises the PropertyChanged event. - - - - - - Gets / sets the collection of datagroups. - - - - - PropertyChanged event handler. - - - - - Gets / sets the size of the DataGroup. - - - - - Returns the value of the DataGroup. - - - - - Gets / sets the name of the DataGroup. - - - - - Gets / sets the alignment of the DataGroup. - - - - - Collection of objects. Used in the - property of the - control. - - The MaskedEditDataGroupInfoCollection is a set of objects - each of which hold information required to create a data group in a - . - - - - Returns the index based on the name. - - The name of the data group. - Index value. - - - - Inserts the into the collection - at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Overrides OnInsert. - - - - - Overrides OnInsertComplete. - - - - - Overloaded. Creates an instance of the MaskedEditDataGroupInfoCollection class. - - The control that - contains this collection. - - - - Creates an instance of the MaskedEditDataGroupInfoCollection class. - - - - - Adds one object to the collection. - - The object to be added. - The count of the list items. - - - - Removes objects from the - collection. - - The MaskedEditDataGroupInfo object to remove. - - - - Indicates whether the collection contains a specific - MaskedEditDataGroupInfo entry. - - The MaskedEditDataGroupInfo to locate in the DataGroups. - True if the MaskedEditDataGroupInfo entry is found in the collection; false otherwise. - - - - Copies all the elements of the current one-dimensional array to the specified one-dimensional array - starting at the specified destination array index. - - The array. - The index. - - - - Returns the value of the DataGroup. - - String value of the DataGroup. - - - - Gets / sets the owner of this collection. - - - - - Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class. - - Get the object based on the index - in the collection. - - - - Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class. - - Get the object based on the index - in the collection. - - - - Provides data for an event that can be handled by a subscriber and overrides the events default behavior. - - - - - Feedback. - - - - - Values based on which event handler can set return values. - - - - - Overloaded. Initializes a new instance of the MaskCustomValidationArgs class with the Handled property set to False. - - - - - Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled and Accepted - properties set to the given value. - - - - - - - - - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Returns the current position. It will be a valid mask position. - - - - - Returns the current character. - - - - - Returns the current Mask Character. - - - - - Represents a method that handles a event of a - . - - - - - Specifies the internal state of the MaskedEditBox. - - - - - Normal State. - - - - - Edit State. - - - - - Initial State. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - Specifies different modes of input - for the MaskedEditBox control. - - - - - In this input mode, all input is entered in Overtype mode. - The INSERT key will not have any effect in this mode. - - - - - Operates in Insert mode and when the INSERT key is pressed, - changes to Overtype mode. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Treat as a normal masked edit that does not have any - special constraints with respect to the content. - - - - - Treat the contents of the MaskedEditBox as numeric. - - - - - Enumeration for the kind of case sensitivity to be applied - at a particular point of data input. - - - - - Convert to lower case or upper case depending on the mask. - - - - - Change to lower case only. - - - - - Change to upper case only. - - - - - The various valid masks supported by the control. - - - - - Digit placeholder '#'. Numeric and white space - - - - - Decimal placeholder '.' The actual character used is the - one specified as the decimal placeholder in your - international settings. This character is treated - as a literal for masking purposes. - - - - - Thousands separator ',' The actual character used is the - one specified as the thousands separator in your - international settings. This character is treated as a - literal for masking purposes. - - - - - Time separator ':' The actual character used is the one - specified as the time separator in your international - settings. This character is treated as a literal for masking - purposes. - - - - - Date separator '/' The actual character used is the one - specified as the date separator in your international - settings. This character is treated as a literal for - masking purposes. - - - - - Escape '\' Treat the next character in the mask string as a literal. - This allows you to include the '#', &, 'A', and '?' - characters in the mask. This character is treated as a - literal for masking purposes. - - - - - Character placeholder & Valid values for this placeholder - are ANSI characters in the following ranges: 32-126 and 128-255. - - - - - Uppercase > Convert all the characters that follow to uppercase. - - - - - Lowercase < Convert all the characters that follow to lowercase. - - - - - Alphanumeric character placeholder 'A' - (entry required). For example: a z, A Z, or 0 9. - - - - - Alphanumeric character placeholder (entry optional)'a' - - - - - Digit placeholder (entry optional). For example: 0 9. '9' - - - - - Character or space placeholder (entry optional) 'C' - This operates exactly like the & placeholder, and - ensures compatibility with Microsoft Access. - - - - - Letter placeholder. For example: a z or A Z '?' - - - - - Letter placeholder. For example: a z or A Z 'y' - - - - - Hexadecimal placeholder. For example: A9 EF - - - - - Hexadecimal placeholder. For example: A9EF - - - - - Provides the list of modes in which the MaskedEditBox can operate - when it does not have the focus. - - - - - Include all literals in the data that is - returned. - - - - - Exclude the literal characters. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Do not apply any alignment. - - - - - Left aligned. - - - - - Right aligned. - - - - - Center aligned. - - - - - The delegate for handling the ValidationError event. - - - Refer to the event for more information. - - - - - The ValidationErrorEventArgs class is used to send event data for a - event. - - - The required pieces of information for the event - are the invalid text and the position of the error text within the invalid text. - - - - - The invalid text. - - - - - The start position of the error. - - - - - The error message. - - - - - Overloaded. Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - - - - Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - The error message. - - - - Returns the invalid text as it would have been if the error had not intercepted it. - - - - - Returns the location of the invalid input within the - invalid text. - - - - - Returns the error message. - - - - - Color table to customize the buttons,captions and text color in MessageBoxAdv - - - - - Default constructor for MetroStyleColorTable - - - - - Variable for CaptionBarColor - - - - - Variable for CaptionForeColor - - - - - Variable for closeButtonColor - - - - - Variable for closeButtonHoverColor - - - - - Variable for BackColor - - - - - variable for ForeColor - - - - - Variable for BorderColor - - - - - Variable for OKButtonBackColor - - - - - Variable for OKButtonForeColor - - - - - Variable for Details Button ForeColor - - - - - Variable for Details Button BackColor - - - - - Variable for YesButtonBackColor - - - - - Variable for YesButtonForeColor - - - - - Variable for AbortButtonBackColor - - - - - Variable for AbortButtonForeColor - - - - - Variable for RetryButtonBackColor - - - - - Variable for RetryButtonForeColor - - - - - Variable for IgnoreButtonBackColor - - - - - Variable for IgnoreButtonForeColor - - - - - Variable for NoButtonBackColor - - - - - Variable for NoButtonForeColor - - - - - Variable for CancelButtonBackColor - - - - - Variable for CancelButtonForeColor - - - - - To serialize CaptionBarColor - - captionBarColor - - - - Reset CaptionBarColor - - - - - To serialize CaptionForeColor - - captionForeColor - - - - Reset CaptionForeColor - - - - - To serialize CloseButtonColor - - closeButtonColor - - - - Reset CloseButtonColor - - - - - To serialize CloseButtonHoverColor - - closeButtonHoverColor - - - - Reset CloseButtonHoverColor - - - - - To serialize BackColor - - backColor - - - - Reset BackColor - - - - - To serialize ForeColor - - foreColor - - - - Reset ForeColor - - - - - To serialize BorderColor - - borderColor - - - - Reset BorderColor - - - - - To serialize OKButtonBackColor - - okbuttonbackcolor - - - - Reset OKButtonBackColor - - - - - To serialize OKButtonForeColor - - okbuttonforecolor - - - - Reset OKButtonForeColor - - - - - To serialize YesButtonBackColor - - yesbuttonbackcolor - - - - Reset YesButtonBackColor - - - - - To serialize YesButtonForeColor - - yesbuttonforecolor - - - - Reset YesButtonForeColor - - - - - To serialize AbortButtonBackColor - - abortbuttonbackcolor - - - - Reset AbortButtonBackColor - - - - - To serialize AbortButtonForeColor - - abortbuttonforecolor - - - - Reset AbortButtonForeColor - - - - - To serialize IgnoreButtonBackColor - - ignorebuttonbackcolor - - - - Reset IgnoreButtonBackColor - - - - - To serialize IgnoreButtonForeColor - - ignorebuttonforecolor - - - - Reset IgnoreButtonForeColor - - - - - To serialize RetryButtonBackColor - - retrybuttonbackcolor - - - - Reset RetryButtonBackColor - - - - - To serialize RetryButtonForeColor - - retrybuttonforecolor - - - - Reset RetryButtonForeColor - - - - - To serialize NoButtonBackColor - - nobuttonbackcolor - - - - Reset NoButtonBackColor - - - - - To serialize NoButtonForeColor - - nobuttonforecolor - - - - Reset NoButtonForeColor - - - - - To serialize CancelButtonBackColor - - cancelbuttonbackcolor - - - - Reset CancelButtonBackColor - - - - - To serialize CancelButtonForeColor - - cancelbuttonforecolor - - - - Reset CancelButtonForeColor - - - - - Gets/sets the captionbarcolor - - - - - Gets/sets the captionforecolor. - - - - - Gets/sets the CloseButton color of MessageBoxAdv. - - - - - Gets/sets the CloseButtonHoverColor. - - - - - Gets/sets the backcolor. - - - - - Gets/sets the forecolor. - - - - - Gets/sets the bordercolor - - - - - Gets/sets the OKButtonBackColor - - - - - Gets/sets the OKButtonForeColor - - - - - Gets/sets the Details Button ForeColor - - - - - Gets/sets the Details Button BackColor - - - - - Gets/sets the YesButtonBackColor. - - - - - Gets/sets the YesButtonForeColor. - - - - - Gets/sets the AbortButtonBackColor. - - - - - Gets/sets the AbortButtonForeColor. - - - - - Gets/sets the RetryButtonBackColor - - - - - Gets/sets the RetryButtonForeColor - - - - - Gets/sets the IgnoreButtonBackColor. - - - - - Gets/sets the IgnoreButtonForeColor. - - - - - Gets/sets the NoButtonBackColor. - - - - - Gets/sets the NoButtonForeColor. - - - - - Gets/sets the CancelButtonBackColor - - - - - Gets/sets the CancelButtonForeColor - - - - - Displays a message box with Office2007 style that can contain text, buttons, and symbols that inform and instruct the user. - - - - - Initializes the s_office10theme variable. - - - - - Initializes the m_CaptionAlign variable. - - - - - Initializes the m_Size variable. - - - - - holds to Details Text - - - - - Variable for Style - - - - - Variable to notify MessageBox is Opened or not, Should be open only one MessageBoxAdv at a time. - - - - - Variable to specify the Shadow effect of the MessageBox. - - - - - Variable to specify the Layout of the MessageBoxAdv. - - - - - Variable to specify the Font for Button options - - - - - Variable to specify the Font for Message information. - - - - - Gets or sets the Message Font - - - - - Gets or sets the Details Font - - - - - Variable to specify the default backcolor of the MessageBoxAdv. - - - - - Variable for MetroColorTable - - - - - Initializes the s_office2013theme variable. - - - - - Initializes the s_Office2016Theme variable. - - - - - Gets or sets whehter to apply AeroTheme in Default MessageBoxStyle. - - - - - Displays a message box with specified text. - - The text to display in the message box. - - One of the values. - - - - - Displays a message box with specified text and caption. - - The text to display in the message box. - The text to display in the title bar of the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text. - - The owner. - The text. - - One of the values. - - - - - Displays a message box with specified text, caption, and buttons. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text and caption. - - An implementation of that will own the modal dialog box. - The text to display in the message box. - The text to display in the title bar of the message box. - - One of the values. - - - - - Displays a message box with specified text, caption, buttons, and icon. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - - One of the values. - - - - - Displays a message box with specified text, caption, buttons, and icon. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, and buttons. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - - One of the values. - - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Image to be displayed in MessageBoxAdv - Size of the Image - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Image to be displayed in MessageBoxAdv - Size of the Image - Selected Button Index - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Icon to be displayed in MessageBoxAdv - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Icon to be displayed in MessageBoxAdv - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - - - - To calculate the Index - - Parent Form - Message Text - Message Caption - Custom Buttons Collection - MessageIcon - Default Button - MessageBoxAdv Option - To show the help option - - - - - To calculate the Index - - Parent Form - Message Text - Message Caption - Custom Buttons Collection - MessageIcon - Default Button - MessageBoxAdv Option - To show the help option - To get the CancelEventHandler - - - - To display the MessageBoxAdv - - Parent Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons - MessageBoxAdv Icons - MessageBoxAdv Default Button - MessageBoxAdv Option - To show / hide the Help option - HelpButtonClickEventHandler - Image to be displayed in MessageBoxAdv - Size of image to be displayed in MessageBoxAdv - - - - - Displays a message box with the specified text, caption, buttons, icon, and default button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, and default button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. - - The owner. - The text. - The caption. - The buttons. - The icon. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. - - The owner. - The text. - The caption. - The buttons. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, and options. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, and options. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - The icon. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - true to show the Help button; otherwise, false. The default is false. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - true to show the Help button; otherwise, false. The default is false. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - The help button click handler. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - The help button click handler. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. - - The owner. - The text. - The caption. - The buttons. - The icon. - One of the values the specifies the default button for the message box. - The options. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. - - The owner. - The text. - The caption. - The buttons. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values the specifies the default button for the message box. - The options. - - One of the values. - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the title alignment of MessageBoxAdv. - - Default caption alignment is Left. - - This property is not applicaple when enabling ApplyAeroTheme property in Default Style. - - - - - Specifies the Maximum Size of MessageBoxAdv. - - - - - Specifies the Shadow effect of the MessageBox. - - - - - - Gets or sets a value indicating whether control's elements are aligned to Right-To-Left or Left-To-Right Layout - - - - - - Gets or sets the Button option Font - - - - - Gets or sets the Message Font - - - - - Gets or sets the Caption Font - - - - - Gets or sets the Details Font - - - - - Specifies the default backcolor of the MessageBoxAdv. - - - - - Gets or sets a value indicating the style used for drawing the control - - - - - Color table to customize the buttons,captions and text color in MessageBoxAdv - - - - - Gets or sets the Office2007 theme, which is used to show message boxes. - - The Office2007 theme. - - - - Gets or sets the Office2010 color theme. - - - - - Gets or sets the Office2013 color theme. - - - - - Gets or sets the Office2016 color theme. - - - - - Gets or sets whehter to apply AeroTheme in Default MessageBoxStyle. - - - - - Specifies the style in which controls will appear and behave. - - - - - Default appearance - - - - - Office2010Form appearance - - - - - Office2013 appearance - - - - - Metro appearance - - - - - Office2016 appearance - - - - - Normal font weight - - - - - Constructor for Office2007form with empty arguments - - - - - Variable to Gets or Set Value to Drop Shadow to the form. - - - - - Reset the value of the DropShadow - - - - - Serializing the value of the DropShadow - - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Gets/Sets touch enabled - - - - - applies the scaling - - - - - - applies the scaling - - - - - - Gets the closebox - - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To customize the image size - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if Office2007Scheme back color is used. - - - - - Occurs when property is changed. - - - - - - Resets the CaptionBarHeight back to its default value. - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Holds the value for Caption Height - - - - - - - - - - - - - - - CaptionText Color - - - - - Gets or Sets whether to enable Drop Shadow to the Office2007form - - - - - Gets the CreateParams for the Office2007 form. - - - - - Gets/sets if to disable Office2007 look and feel. - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2007Visual style is enabled. - - - If DisableOffice2007Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - Gets or Sets the AutoScroll value - - - - - Gets or sets the Office2010 colorscheme - - - - - - - - - - Gets or Sets the CaptionBar Height. - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets the colortable for Office2010 - - - - - - - - - - Gets whether right to left has been set - - - - - Gets or Sets the Selected button - - - - - Gets or Sets the pressed button - - - - - Gets or Sets the highlighted button - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - Gets the Maximize button - - - - - Gets the Minimize button - - - - - Gets the layout - - - - - Gets the caption height value - - - - - Gets/Sets touch enabled - - - - - Gets the value of title height - - - - - Gets whether the form is minimized - - - - - Gets whether the form is maximized - - - - - Gets whether the form is sizable - - - - - - Gets the screen rectangle - - - - - Gets the area to be painted - - - - - Gets the value of Isvisible property - - - - - Specifies whether current selected Office2007 scheme background color is used to fill form's backround is used. - If false is used. - - - - - Gets the caption font - - - - - Gets the system font - - - - - Gets the closebox value - - - - - DPI Scaling - - - - - Defines whether the DPI setting is enabled. - - - - - Defines the dpi scaling - - - - - To retrieve DPI Value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2007Form instance. - - - - - - - - - - - - - - - DeviceCap - - - - - Constructor for CaptionManager - - - - - - Provides information about a control that can be used by an accessibility application. - - - - - Office2007Form - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the number of children in the accessible object. - - Number of Child. - - - - Retrieves the accessible child corresponding to the index. - - Index - Child specified to the index - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Holds the Button height - - - - - - Custom Button Collection - - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Custom Button Size initialization - - - - - Returns the Button width - - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Extends the class to handle double input - and validation. - - - The DoubleTextBox is derived from textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting double input in a consistent format requires validation code - that needs to be built into the application when using the Windows Forms text box control. - The DoubleTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter double data. - - - The DoubleTextBox is also closely tied to the globalization settings of the - operating system for number related properties. Please refer to the - - class for a detailed explanation of globalization and number related attributes. - - - The DoubleTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms text box. - - - The DoubleTextBox also raises a event when - in appropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for number related issues. - - - - - - Extends the class to handle numeric input - and validation. - - - - The NumericTextBox is not to be used directly. - - - - - - For initialization of culture-related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the Culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - Overloaded. Creates an object of type NumericTextBox. - - - The NumericTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Indicates whether the NumberDecimalDigits should not be serialized if the UseLocaleDefault property is set. - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberDecimalSeparator should not be serialized if the UseLocaleDefault property is set. - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberGroupSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberGroupPattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberNegativePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Gets or sets the maximum number of digits for the decimal portion of the number. - - - If the number requires two decimal points to accommodate the smallest - denomination and this property will have the value 2 in this case. If there - is a need to have a different value based on the locale, it will be - automatically changed if the property - is True. - - - - - Gets or sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the grouping of NumberDigits in the NumberTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets a value indicating whether to delete selection when number is changed to negative. - - - true if [delete selection on negative]; otherwise, false. - - - - - The line of the null value. - - - - - The minimum value. - - - - - - - - - - - - - - - The maximum value. - - - - - The initial double value set in InitializeComponent. - - - - - The double value when the control gets the focus. Used when validating. - - - - - The double value that is set through the DoubleValue property. - - - - - Overloaded. Creates an object of type DoubleTextBox. - - - The DoubleTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - - - - - - - Formats the given text according to the current setting. - - - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the Max value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Raises the event. - - A that contains the event data. - - - - Overrides the method. - - The event data. - - Saves the current DoubleValue so that it can be compared - during validation. The DoubleValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Indicates whether the NULLString property will be used. - - - - - Gets or sets the double value of the control. This will be formatted and - displayed. - - - - - Gets or sets the maximum value that can be set through the DoubleTextBox. - - - - - Gets or sets the minimum value that can be set through the DoubleTextBox. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - DoubleTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Extends the class to handle integer input - and validation. - - - The IntegerTextBox is derived from textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting integer input in a consistent format requires validation code - that needs to be built into the application when using the Windows Forms textbox control. - The IntegerTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter double data. - - - The IntegerTextBox is also closely tied to the globalization settings of the - operating system for number related properties. Please refer to the - - class for a detailed explanation of globalization and number related attributes. - - - The IntegerTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - - The IntegerTextBox also raises a event when - inappropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for a number related issues. - - - - - - Specifies whether MinMaxValidation is being in progress. - - - - - The minimum value. - - - - - The maximum value. - - - - - The initial Int64 value set in InitializeComponent. - - - - - - - - - - - - - - - The integer value when the control gets the focus. Used when validating. - - - - - The text when the control gets the focus. Used when validating. - - - - - The Int64 value that is set through the IntegerValue property. - - - - - Indicates whether to allow insets zero in the beginning value. - - - - - Indicates whether NullString should be set if UseNullString is true. - - - - - Overloaded. Creates an object of type IntegerTextBox. - - - The IntegerTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the max value to the default. - - - - - Generates string format for use in Conver.Format. - - - - - - - - - Adds negative symbol. - - - - - - - - - Returns zero string as began sValue. - - - - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Overrides the method. - - The event data. - - Saves the current IntegerValue so that it can be compared - during validation. The IntegerValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - performs the Min/Max validation. - - - - - Indicates whether to serialize property value. - - - - - - Indicates whether to serialize property value - - - - - - - - - - - - Formats the given text according to the current setting. - - - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Gets / sets the integer value of the control. This will be formatted and - displayed. - - - - - Gets / sets the maximum value that can be set through the IntegerTextBox. - - - - - - - - Gets / sets the minimum value that can be set through the IntegerTextBox. - - - - - Indicates whether to allow insets zero in the beginning value. - - - - - Gets / sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the maximum number of digits for the decimal portion. - - - This property is always set to zero for the IntegerTextBox. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - IntegerTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Summary description for SpecialCultureValues. - - - Modifier for the currently selected culture. - - - - - No modifier for the selected culture. - - - - - Use the current culture on the system. - - - - - Use the current UI culture. - - - - - Use the current InstalledCulture. - - - - - Summary description for NumberClipModes. - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - Summary description for CurrencyClipModes. - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - The delegate for handling the SetNULL event. - - - Refer to the event for more information. - - - - - Provides data about a and - events of a , , - , or . - - - - - Initializes a new with event data. - - The NULL value. - - - - Returns the NULL value. - - - - - The delegate for handling the KeyValidate event. - - - Refer to the event for more information. - - - - - Cancellable event for - of , , - , or . - - - - - Returns the character key that was input by the user. - - - - - Returns the changed string that will be set as the text of the text box if this event is not cancelled. - - - - - Returns the unformatted changed string that will be set as the text of the text box if this event is not cancelled. - - - - - provides new value and old value after the validation. - - - - - - - - - - Initializes a new instance of the class. - - The new value. - The old value. - - - - Gets the new value. - - The new value. - - - - Gets the old value. - - The old value. - - - - Used to pass state between PrepareXXX and CompleteXXX methods during key processing. This allows for - raising the KeyValidate event to cancel any key. - - - - - Keeps the focus on the control if the validation fails - - - - - Sets NullString to the the control if the validation fails - - - - - Sets MinValue if Value is less than MinValue or MaxValue if greater thas MaxValue if the Validation fails - - - - - Extends the class to handle percentage input - and validation. - - - The PercentTextBox is derived from the textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting percentage input in a consistent format requires validation - that needs to be built into the application when using the Windows Forms textbox control. - The PercentTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter percentage data. - - The PercentTextBox is also closely tied to the globalization settings of the - operating system for pecentage-related properties. Please refer to the - - class for a detailed explanation of globalization and percent-related attributes. - - The PercentTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - The PercentTextBox also raises a event when - inappropriate data is entered into the control. - - All clipboard functions such as copy, paste, and cut are also supported with - special accomodations for percent-related issues. - - - - - - - - Specifies the control is in edit mode. - - - - - The minimum value. - - - - - The maximum value. - - - - - The internal value string. - - - - - - - - Indicates whether the mode has to be automatically switched - when the control receives focus. - - - - - The initial double value set in InitializeComponent. - - - - - The double value when the control gets the focus. Used when validating. - - - - - The double value that is set through the DoubleValue property. - - - - - For initialization of culture-related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The negative patterns. - - - - - Overloaded. Creates an object of type PercentTextBox. - - - The PercentTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - Clean up any resources being used. - - - - - - - - - Overrides . - - - - - - - - - - - - - - - - - - Indicates whether the PercentSymbol should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentPositivePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - - - - - - Indicates whether the PercentDecimalDigits should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentDecimalSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether PercentGroupSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentGroupPattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentNegativePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Overrides the method. - - The event data. - - Saves the current DoubleValue so that it can be compared - during validation. The DoubleValueChanged and TextChanged event - will only be raised if the value is different during validation. - Also switches mode if the property is set. - - - - - Overrides the method. - - - - - - Formats the given text according to the current setting. - - - - - - - - - - - - - - - - - - Override this to return PercentDecimalSeparator in PercentTextBox. - - - - - - - Override this to return PercentGroupSeparator in PercentTextBox. - - - - - - - Overrides . - - The text to be parsed. - True if the value is negative; false otherwise. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - - - - - - - Validates the control. - - Indicates whether the validation error is to be raised. - - - - - - - - - Overrides the base behavior to implement support for NumberMode. In this mode, the - base behavior of formatting each key is not followed. The key is validated internally to check for - Max and Min conditions and then displayed as is without the formatting. The key will be ignored if - the supressKeyPress value is not set to False. This is set to False when a valid key press is encountered. - - - - - - - - - - - - - - - - - - - - - - - Invoked when the negative key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to toggle the sign (negativity) - of the content of the CurrencyTextBox. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - A that contains the event data. - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - - - - - Returns the formatted text with the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - FormattedText property will give $45,000.00. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - - - - - - - - - - - - - - - - - - - - - Pastes the data in the clipboard into the PercentTextBox control. - - - The data will be formatted before being pasted into the text box. - - - - - Occurs when the property is changed. - - - - - Gets / sets the percent symbol to be used in the PercentTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the pattern to use when the value is positive. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the maximum number of digits for the decimal portion of the percentage. - - - If there is a need to have a different value based on the locale, it will be - automatically changed if the property - is True. - - - - - Gets / sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the grouping of PercentDigits in the PercentTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - The negative patterns. - - - - - Indicates whether the PercentTextBox should allow editing in numeric mode - when it receives focus. - - - - - Gets / sets the maximum value that can be set through the PercentTextBox. - - - - - - Gets / sets the minimum value that can be set through the PercentTextBox. - - - - - - Gets / sets the double value of the control. This will be formatted and - displayed. - - - - - Gets / sets the percent value of the control. This will be formatted and - displayed. - - - - - Wrapper property around the selected value. Use this property if you - want to be able to set the value of the control to NULL. - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Gets or sets the NULL string to be displayed. - - - - - Returns the clipped text without the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - ClipText property will give 45000.00. - - - - - - - - values are edited as percentage values. - - - - - values are edited as double values and then displayed using percentage formatting. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - PercentTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Summary description for ToolTipAdv. - - - Tooltip occurs if the TreeViewAdv control's width is shorter than the text length of some of the nodes and when the mouse pointer is hovered on - top of the texts of these nodes, a filled rectangle is displayed.The name of the tooltipAdv depends upon the text of the TreeNodeAdv. - By default tooltips will display ,if the user leaves the mouse pointer stationary over the node(whose text Length is greater than the width - of the tree)for a short period. - This example describes how to display Tooltips for the images's associated with the TreeNodeAdv. - The tooltips for the images ,associated with the nodes can be displayed by using Syncfusion.Windows.Forms.ToolTipAdv along with handling - treeViewAdv's MouseHoverEvent .The tooltips for the images are displayed in the same way as the tooltips for the nodes.Here PointToClient and - PointToNode methods are used in the treeViewAdv. - - private void treeViewAdv1_MouseHover(object sender, System.EventArgs e) - { - TreeNodeAdv node=new TreeNodeAdv(); - Point p=this.treeViewAdv1.PointToClient(Control.MousePosition); - node=this.treeViewAdv1.PointToNode(p); - Point mouseLoc=Control.MousePosition; - mouseLoc.Offset(10,10); - if(node==this.treeViewAdv1.Nodes[0]) - { - this.toolTipAdv1.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[1]) - { - this.toolTipAdv2.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[2]) - { - this.toolTipAdv3.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[3]) - { - this.toolTipAdv4.ShowPopup(mouseLoc); - } - } - - Private Sub treeViewAdv1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) - Dim node As TreeNodeAdv = New TreeNodeAdv() - Dim p As Point=Me.treeViewAdv1.PointToClient(Control.MousePosition) - node=Me.treeViewAdv1.PointToNode(p) - Dim mouseLoc As Point=Control.MousePosition - mouseLoc.Offset(10,10) - If node Is Me.treeViewAdv1.Nodes(0) Then - Me.toolTipAdv1.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(1) Then - Me.toolTipAdv2.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(2) Then - Me.toolTipAdv3.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(3) Then - Me.toolTipAdv4.ShowPopup(mouseLoc) - End If - End Sub - - This example describes the way for completely disabling the Tooltips in the TreeViewAdv and the way for disabling of tooltips for - some particular nodes. - The tooltip for some of the nodes which have HelpText can be disabled by handling ToolTipControl_BeforePopup event.Here in the treeViewAdv, for - some of the nodes e.Cancel property is set to true by getting the node's position in ToolTipControl's BeforePopup event handler in which the - tooltips for the respective nodes are disabled .The tooltips for the same nodes can be enabled by setting the e.Cancel=false in ToolTipControl's - BeforePopup Event. - - private void ToolTipControl_BeforePopup(object sender, CancelEventArgs e) - { - Point pt=this.treeViewAdv1.PointToClient(new Point(MousePosition.X,MousePosition.Y)); - TreeNodeAdv node=this.treeViewAdv1.GetNodeAtPoint(pt); - if(node!=null) - { - if(node.Text=="Node1" || node.Text=="Node3"||node.Text=="Node5"||node.Text=="Node7") - { - e.Cancel=true; - } - } - } - - Private Sub ToolTipControl_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - Dim pt As Point=Me.treeViewAdv1.PointToClient(New Point(MousePosition.X,MousePosition.Y)) - Dim node As TreeNodeAdv=Me.treeViewAdv1.GetNodeAtPoint(pt) - If Not node Is Nothing Then - If node.Text="Node1" OrElse node.Text="Node3" OrElse node.Text="Node5" OrElse node.Text="Node7" Then - e.Cancel=True - End If - End If - End Sub - - - - - - - - - - - - - - - - - - - - Required designer variable. - - - - - - - - - Clean up any resources being used. - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the before popup event, when popup is about to be shown - - - - - - Raised when the size of the label's text is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The background color, gradient and other styles can be set through - this property. - - - The ToolTipAdv control provides this property to enable specialized - custom gradient backgrounds. - - - - - Gets / sets the 2D border style. - - - - - Gets / sets the style of the 3D border. - - - - - Gets / sets the border style of the panel. - - - - - Gets or sets the maximum width of the tooltip control. It wraps text that flows beyond the - restricted width.To allow text to flow in a single line, set restricted width to zero. - - - - - Indicates if cursor of host control is used. - - - - - Indicates whether to ignore all keys. - - True to ignore all keys; False otherwise. Default is False. - - When the popup is showing, it will "swallow" all the WM_KEYDOWN and WM_CHAR - messages. To prevent it, set this property to True. - - - - - - - - Gets or sets a value indicating whether the Text is changed in ValueChanged event - - - - - Gets or sets a value indicating whether the ValueChanged event was handled. - - - - - ProgressBarAdv is an extension to the standard - progress bar with many styles to choose from. - - - - The ProgressBarAdv control has background, border and foreground styles. - The background styles are . - The border styles are . - The foreground styles are . - - - this.progressBarEx1 = new ProgressBarAdv(); - this.progressBarEx1.BackGradientEndColor = System.Drawing.SystemColors.ControlLightLight; - this.progressBarEx1.BackGradientStartColor = System.Drawing.SystemColors.ControlDark; - this.progressBarEx1.BackgroundStyle = ProgressBarBackgroundStyles.VerticalGradient; - this.progressBarEx1.BackSegments = false; - this.progressBarEx1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter; - this.progressBarEx1.FontColor = System.Drawing.SystemColors.HighlightText; - this.progressBarEx1.Location = new System.Drawing.Point(240, 8); - this.progressBarEx1.ProgressStyle = ProgressBarStyles.Tube; - this.progressBarEx1.SegmentWidth = 20; - this.progressBarEx1.Size = new System.Drawing.Size(400, 23); - this.progressBarEx1.TextShadow = false; - this.progressBarEx1.ThemesEnabled = false; - this.progressBarEx1.TubeEndColor = System.Drawing.SystemColors.Control; - this.progressBarEx1.TubeStartColor = System.Drawing.SystemColors.ControlDark; - this.progressBarEx1.Value = 79; - - - - - - A implementing the interface. - - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Fired when the ThemesEnabled property changes. - - - - - Indicates whether themes are enabled for this control. - - - - - Starts initialization mode. - - - - - Ends initialization mode and calls . - - - - - Implementation of the interface. - - Set this to False if you want to refresh brushes later. - - - - Constructor. - - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets/Sets the renderer of the ProgressBarAdv. - - - - - Paints the control. - - Event sender. - Event data. - - - - Paints the control by using Renderer class. - - Provides data for the Paint event. - The is helps to draw the progress. - - - - Font changed - - - - - - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - The graphics context. - The rectangle. - - Essential Grid calls this method to render the contents of the progress bar - within a cell's area. - - No border will be drawn around the control. - - The method will throw an InvalidOperationException if the control has a handle - and is visible. - - The method will reset the bounds and BorderStyle of this control. - This method only supports horizontal progress bars. We will add support for static drawing of vertical progress bars in the future. - - - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - The graphics context. - The rectangle. - Specifies if the progressbar should be drawn right to left. - - Essential Grid calls this method to render the contents of the progress bar - within a cell's area. - - No border will be drawn around the control. - - The method will throw an InvalidOperationException if the control has a handle - and is visible. - - The method will reset bounds and BorderStyle of this control. - This method only support horizontal progress bars. We will add support for static drawing of vertical progress bars in the future. - - - - - Holds the progress rectangle bounds - - - - - Gets or sets a value indicating whether the fore color is changed or not. - - - - - Gets or sets a value indicating whether the GradientStartColor is changed or not. - - - - - Gets or sets a value indicating whether GradientEndColor is changed or not. - - - - - Gets or sets a value indicating whether BackGradientStartColor is changed or not. - - - - - Gets or sets a value indicating whether BackGradientEndColor is changed or not. - - - - - Gets or sets a value indicating whether FontColor is changed or not. - - - - - Gets or sets a value indicating whether BorderColor is changed or not. - - - - - Serialize the gradient color - - - - - Resets the gradient color - - - - - Serialize the gradient color - - - - - Resets the gradient color - - - - - Initialize the whether the Marker imager is shown or not. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Display the marker image. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Specify the marker image size. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Serialize the borderstyle - - - - - Reset the border style - - - - - Serializes the bordercolor - - - - - Resets the bordercolor - - - - - Recreates the brushes used to draw the ProgressBar. - - - - - Draws the fill color of the ProgressBar when continuous is selected. - - - - - Draws segments in the given rectangle when system is selected. - - - The to draw the segments in. - - - - Draws the dual gradient of the ProgressBar when gradient is selected. - - - - - Draws the dual gradient color of the progress bar when office2016 theme is selected. - - - - - - - - - Draws the image of the ProgressBar when image is selected. - - - The to draw the image in. - The used to draw in the rectangle. - - - - Draws the dual tube of the ProgressBar when tube is selected. - - - - - Draws the multiple gradient of the ProgressBar when multiple gradient is selected. - - - - - Returns the region of the segments if segment mode is selected. - - The rectangle in which the segments are situated in. - Indicates the segments are offset. - The region containing the segments. - - - - - - - - - - - Indicates whether the ProgressBar is vertical. - - - - - - - Increments the Value property with the Step value. - - The success or failure of the Increment. It fails if the incremented value is bigger than the maximum. - - - - Decrements the Value property with the Step value. - - The success or failure of the Increment. It fails if the incremented value is smaller than minimum. - - - - Handle this event to set the text of the progressbar when the value changes. - Make sure the TextStyle property is set to Custom. - - - To set the text of the progressbar, set the and the to True. - - - - - Handle this event to draw a custom waiting render. - WaitingCustomRender must be set to True. - - - - - Gets/Sets the Renderer of the ProgressBarAdv. - - - - - Gets the Office2016 style colors respective to the ProgressBarAdv style - - - - - Gets / sets the value between minimum and maximum. - - - This value represents the progress state of the ProgessBar. For default if it is set to 50, minimum=0 and maximum=100 ( 50% ). - - - - - Gets / sets the lower boundary for the value. - - - By default, its value is zero which means that the value of the ProgressBar cannot take values lower than zero. - - - - - Gets / sets the upper boundary for the value. - - - By default, its value is 100 which means that the value of the ProgressBar cannot take values higher than 100. - - - - - Gets / sets the value to increment when Increment() and Decrement() methods. - - - By default, its value is 10 which means that when Increment() is called, the value of the ProgressBar is incremented by 10. - - - - - Indicates whether the waiting gradient will be replaced by another custom waiting render which is defaulted to segments. - To customize it, handle the DrawCustomWaitingRender event. - - - - - Gets / sets the width of the waiting gradient. - - - - - Indicates whether the waiting gradient is enabled. - - - - - Gets / sets the interval of the waiting gradient. - - - - - Indicates whether the foreground is segmented. - - - By default, its value is True which means that the foreground will be drawn segmented. - - - - - Indicates whether the multiple gradient is compressed if the value is smaller than the maximum. - - - By default, its value is True which means that if the value is less than the maximum, the multiple gradient is compressed. - - - - - Gets / sets the colors of the foreground multiple gradient when ForegroundStyle is multiple gradient. - - - By default, its value is an empty color array. You can add colors to multiple gradients by modifying this property. - - - - - Gets / sets the start color of the foreground gradient when ForegroundStyle is gradient. - - - - - Gets / sets the end color of the foreground gradient when ForegroundStyle is gradient. - - - - - Gets / sets the start color of the foreground tube when ForegroundStyle is Tube. - - - - - Gets / sets the end color of the foreground tube when ForegroundStyle is Tube. - - - - - Indicates whether the background is segmented. - - - By default, its value is False. - - - - - Gets / sets the colors of the background multiple gradients when BackgroundStyle is multiple gradient. - - - By default, its value is an empty array of colors. - - - - - Gets / sets the start color of the background gradient when BackgroundStyle is gradient or vertical gradient. - - - - - Gets / sets the end color of the background gradient when BackgroundStyle is gradient or vertical gradient. - - - - - Gets / sets the start color of the background tube when BackgroundStyle is Tube. - - - - - Gets / sets the end color of the background tube when BackgroundStyle is Tube. - - - - - Gets / sets the text alignment of the ProgressBarAdv. - - - - - Indicates whether the foreground image will be stretched. - - - By default, its value is True. - - - - - Gets / sets the image to draw on the foreground when ProgressStyle is Image. - - - - - Gets / sets the width of the segments. - - By default, its value is 12. - - - - Gets / sets the color of the font. - - - - - Gets / sets the color used to draw the foreground in segment mode and constant mode. - - - - - Indicates whether the text is visible. - - - - - Gets / sets the style of the text: - -Percentage - -Value (Ex: 70/150 ) - - - - - Gets / sets the orientation of the text. - - - - - Indicates whether the text shadow is visible. - - - - - Gets or sets the custom text for the ProgressBarAdv. - - The custom text. - - This value represents the CustomText of the ProgessBarAdv. The customText is returned only if we set the ProgressBarTextStyles.Custom - - - - - Gets / sets the style of the foreground: - -Constant - -Gradient - -Multiple gradient - -Tube - -Image - -System - -Office2016Colorful - -Office2016Black - -Office2016White - -Office2016DarkGray - - - By default, its value is constant. - - - - - Gets or sets whether the Marker image is shows on ProgressBar. - - - - - Gets / sets the marker image to draw on right side of the Progress. - - - - - Gets / sets the marker image size to draw on right side of the Progress. - - - - - Gets / sets the style of the foreground when ProgressStyle is System and the system can not support themes. - - - - - Gets / sets the style of the border when BorderStyle is Fixed3D. - - - By default, its value is Sunken. - - - - - Gets / sets the style of the border. It can be None, 3D or 2D. - - - By default, its value is Fixed3D. - - - - - Gets / sets the style of the border when BorderStyles is FixedSingle. - - - By default, its value is Solid. - - - - - Gets / sets the color of the border when BorderStyles is FixedSingle. - - - - - Gets / sets the style of the background. It can have the following values: - -Office2016Colorful - -Office2016Black - -Office2016White - -Office2016DarkGray - -Image - -Gradient - -Vertical gradient - -Tube - -Multiple gradient - -System - -None - - - By default, its value is None. - - - - - Gets / sets the style of the background when BackgroundStyle is set to System and the system cannot support themes. - - - By default, its value is None. - - - - - Gets / sets the horizontal or vertical style of the progress bar. - - - By default, its value is Horizontal. - - - - - Gets or sets value indicating whether progress rectangle bounds value - - - - - Interface used to customize the appearance and ProgressStyle of the ProgressBarAdv. - - - - - Draws the background of the ProgressBar. - - The object to draw the background. - Indicates whether the background is segmented. - - - - Draws the border of the ProgressBar. - - The object to draw the border. - The of the border. - - - - Draws the foreground of the ProgressBar. - - The object to draw background of the Progress. - The provide the control bounds. - The provides the progress rectangle. - - - - Draws the specified text string at the specified location. - - The object to draw the text. - The to draw in. - - - - Update the Renderer. - - Provides data for the Paint event. - The is helps to draw the progress. - - - - Default ProgressBarAdv Renderer - - - - - Initialize the ProgressBarAdv - - - - - Constructor of the Renderer class - - ProgressBarAdv - - - - Update the Renderer. - - Provides data for the Paint event. - The used to draw the progress - - - - Draws the background of the ProgressBar. - - The object to draw the background. - Indicates whether the background is segmented. - - - - Draws the foreground of the ProgressBar. - - The object to draw the progress. - The to draw the progress. - The used to draw the background of the progress - - - - Draws the border of the ProgressBar. - - The object to the border. - The of the border. - - - - Draws the specified text string at the specified location. - - The object to the text. - The of the ProgressBarAdv - - - - Gets the ProgressBarAdv - - - - - Gets or sets a value indicating whether the DrawWaitingCustomRender event was handled. - - - - - Gets the bounding rectangle. - - - - - Gets the Graphics used to paint. - - - - - The ProgressBarEx type will soon be replaced with the ProgressBarAdv for consistency in - control naming in our library. - Please replace all occurrences of ProgressBarEx with ProgressBarAdv in your application. - - - - - ProgressBarAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - ProgressBar Coded UI Accessiblity - - - - - Variable to hold ProgressBarAdv instance - - - - - Constructor - - - - - Gets the AccessibleRole - - - - - Gets the Description - - - - - Gets the name - - - - - Gets the Value - - - - - This class represents renderer class for Office2016 color support - - - - - Constructor for renderer class - - - - - - - Gets the ProgressBarAdv back color - - - - - Gets the ProgressBarAdv fore color - - - - - Gets the ProgressBarAdv border color - - - - - Gets the ProgressBarAdv font color - - - - - Gets the ProgressBarAdv progress font color - - - - - This class represents the rendered class for Office2016Colorful theme - - - - - Gets the ProgressBarAdv back color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv fore color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv border color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv font color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv progress font color for office2016colorful theme - - - - - This class represents the rendered class for Office2016Black theme - - - - - Gets the ProgressBarAdv back color for Office2016 Black theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 Black theme - - - - - Gets the ProgressBarAdv border color for Office2016 Black theme - - - - - Gets the ProgressBarAdv font color for Office2016 Black theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 Black theme - - - - - This class represents the rendered class for Office2016White theme - - - - - Gets the ProgressBarAdv back color for Office2016 White theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 White theme - - - - - Gets the ProgressBarAdv border color for Office2016 White theme - - - - - Gets the ProgressBarAdv font color for Office2016 White theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 White theme - - - - - This class represents the rendered class for Office2016DarKGray theme - - - - - Gets the ProgressBarAdv back color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv border color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv font color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 DarkGray theme - - - - - This enum represents the ProgressBarAdv foreground style - - - - - The foreground of the ProgressBar will be drawn with a constant color. - - - - - The foreground of the ProgressBar will be drawn with a gradient brush. - - - - - The foreground of the ProgressBar will be drawn with a multiple gradient brush. - - - - - The foreground of the ProgressBar will be drawn with a vertical tube-like gradient brush. - - - - - The foreground of the ProgressBar will be drawn with an image. - - - - - The foreground of the ProgressBar will be drawn by the system. - - - - - The foreground of the ProgressBar will be drawn with a moving gradient line. - - - - - The foreground of the ProgressBar will be drawn by Metro. - - - - - The foreground of the ProgressBar will be drawn by using the CustomRender class which is inherited from "IProgressBarRenderer" interface. - - - - - This option represents the Office2016Colorful foreground style - - - - - This option represents the Office2016White foreground style - - - - - This option represents the Office2016Black foreground style - - - - - This option represents the Office2016DarkGray foreground style - - - - - This enum represents the ProgressBarAdv text styles - - - - - The text of the ProgressBar will be a percentage value. Ex: 75% - - - - - The text of the ProgressBar will be the value of the format: ProgressBar / the maximum value. Ex 75/200 - - - - - The text of the ProgressBar will be asked through the ValueChanged event. - - - - - This enum represents the ProgressBarAdv background styles - - - - - The background is drawn with an image. - - - - - The background is drawn with a gradient brush. - - - - - The background is drawn with a vertical gradient brush. - - - - - The background is drawn with a vertical tube-like gradient brush. - - - - - The background is drawn with a multiple gradient brush. - - - - - The background is drawn by the system. - - - - - This option represents the Office2016Colorful background style - - - - - This option represents the Office2016Black background style - - - - - This option represents the Office2016White background style - - - - - This option represents the Office2016DarkGray background style - - - - - The background is drawn with the Backcolor. - - - - - Specifies the arrow button that should be shown in an arrow bar. - - - - - Don't show buttons. - - - - - Show up and down buttons. - - - - - Show up, down, move first and move last buttons. - - - - - This control is used by and - to display arrow buttons. - - - - - ButtonBar is a base class for displaying several buttons in one bar. It is used by - and . - - - - - Raises the event. - - A that contains the event data. - - - - Initializes a new button bar. - - - - - - - - Suspends updating the bar. - - - - - Resumes updating the bar. - - - Resumes updating the bar and refreshes it. - - - - - Resumes updating the bar and optionally refreshes it. - - Indicates whether button bar should be refreshed; if False button will only be refreshed when it is marked dirty. - - - - - - - - - - - - - - - - - - - Raises the event. - - Event data. - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - Returns the bounds for the button bar. - - A indicating where the bar should be drawn. - - - - Creates an instance of the and initializes it with the layout information. - - The initialized . - - - - - - - Reinitializes and hides ToolTips. - - - - - Raises the event. - - Event data. - - - - Occurs when a WM_CANCELMODE is received. - - - - - Occurs when is changed. - - - - - Occurs before the event is raised. - - - - - Indicates whether was called. - - - - - Returns the default size of the control. - - - - - Gets or sets a that holds an array of buttons. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on them. - - - - - Gets or sets the button look for the arrow buttons. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Gets / sets the color of arrows in enabled buttons. - - - - - Gets / sets the color of arrows in disabled buttons. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Occurs when the specified button is clicked or the mouse is pressed down on the button. - - The source of the event. - - - - - - - - - - - - - Initializes a new . - - - - - Raises the event. - - An that contains the event data. - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Occurs when the specified button was clicked or the mouse is pressed down on the button. - - The source of the event. - - - - Initializes the the arrow bar. - - - - - Resets to default. - - - - - Resets to default. - - - - - Occurs when the user clicks on an arrow button. - - - - - Occurs when Arrow button is changed. - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - Gets or sets the number of Milliseconds to wait before firing scroll event. - - - - - Gets or sets the Shortest interval for firing scroll event. - - - - - Gets or sets the arrow buttons to be shown in an arrow bar. - - - - - Gets or sets the buttons to show enabled. Other buttons are disabled. - - - - - Gets or sets the color of arrows in enabled buttons. - - - - - Gets or sets the color of arrows in disabled buttons. - - - - - Returns an array with buttons to show when is . - - - - - Returns an array with buttons to show when is . - - - - - Returns an array with buttons to show when is . - - - - - An identifier for various arrow buttons in a . - - - - - None. - - - - - The "previous item" button. - - - - - The "next item" button. - - - - - The "first item" button. - - - - - The "last item" button. - - - - - The "AddNew item" button for items in a table. - - - - - All buttons. - - - - - Helper routines for drawing arrow buttons. - - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the specified bitmap substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixel to offset the bitmap from its origin point. - The Bitmap to be drawn on the screen. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Loads the bitmap from manifest and paints it substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - The type of button to draw. - A Point that specifies pixels to offset the bitmap from its origin point. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The DrawArrow routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - This is a specialized version of the that draws an arrow. Used by in - and . - - - - - InternalButton are buttons that are displayed inside a . - - - - - - - - - - - - - - - - - - - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - Specifies office 2007 color scheme. - - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new with a specified size. - - The initial size of the button. - - - - Initializes a new with a cookie. - - The cookie for the button. - - - - Initializes a new with an owner and cookie. - - The owner of the button. - The cookie for the button. - - - - Initializes a new with a owner, cookie and ToolTip text. - - The owner of the button. - The cookie for the button. - The ToolTip text. - - - - Initializes a new with a owner, cookie, ToolTip text and size. - - The owner of the button. - The cookie for the button. - The ToolTip text. - The initial size of the button. - - - - Initializes a new with a owner, cookie, ToolTip text, size and a value that - indicates whether this control should look like a button or if just a centered text should be drawn. - - The owner of the button. - The cookie for the button. - The ToolTip text. - The initial size of the button - A value indicating if this should look like a button or if just a centered text should be drawn. - - - - - - - Returns the preferred size of button. - - The maximum allowed size. - The preferred size based on text, button type. - - - - Recalculates the best size for the button and resizes it. - - - - - - - - - - The for this button. - - True if flat button; False if normal button. - The . - - - - Reinitializes and hides the ToolTip. - - - - - Initializes ToolTip area at the specified bounds. - - - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the button. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - True if flat looking button; False if normal. - A Rectangle which contains the boundary data of the parent bar rectangle. - - - - Called when is changed. - - - - - Called when is changed. - - - - - Called when state is changed. - - - - - Called when is changed. - - - - - - - - Gets or sets the visual style of the control. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets / sets the owner of this button. - - - - - Some external state (e.g. button type or command id). - - - - - Gets / sets the ToolTip text for this button. - - - - - Gets / sets the bounds of this button. - - - - - Gets / sets the size of this button. - - - - - - - - Indicates whether button is hidden. - - - - - Indicates whether this button supports repeated clicking when the user holds down the mouse button. - - - - - Indicates whether it is a Dirty flag. - - - - - Indicates the Enabled state. - - - - - Indicates the Hovered state. - - - - - Indicates the Pushed state. - - - - - Indicates the Checked state. - - - - - Indicates the DragTarget state. - - - - - Initializes a new . - - - Initializes a new and specifies the for the button. - - Specifies the arrow to be drawn in the button. - - - - Initializes a new and specifies the for the button and owner. - - The owner of this button. - Specifies the arrow to be drawn in the button. - - - - Initializes a new and specifies the for the button, owner, and ToolTip. - - The owner of this button. - Specifies the arrow to be drawn in the button. - The ToolTip for this button. - - - - - - - - - - - - - Returns the arrow to draw. - - - - - Provides event data for the event of - a , or - object. - - - - - Initializes a new object with event data. - - Specifies the arrow button that was clicked. - - - - Gets / sets the arrow button that was clicked. - - - - - Handles the event. - - - - - Returns the values of a record navigation bar. - - - - - Returns the minimum record. - - - - - Returns the maximum record. - - - - - Indicates whether adding new records is enabled. - - - - - To capture the ESC key. - - - - - The record navigation bar displays arrow buttons and current record fields. - - - - - Initializes a new . - - - - - - - - Initializes the record field textbox. - - True if focus should be set to the textbox. - - - - - - - - - - - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - - - - Sets the current record position to first record. - - - - - Sets the current record position to the next record. - - - - - Sets the current record position to the previous record. - - - - - Sets the current record position to the last record. - - - - - Occurs when the specified button was clicked or the mouse is pressed down on the button. - - The source of the event. - - - - - - - Sets the current record position. - - - Sets the current record position. - - The new record index. - Indicates whether record should be applied to text box even if - is not changed. - - - - Sets the current record position and lets you specify if - and events should be raised. - - The new record index. - Indicates whether record should be applied to text box even if - is not changed. - Specifies if - and events should be raised. - - - - Thread safe method that applies all settings at once. - - The minimum record position. - The maximum record position. - The label to be displayed before the record field text box. - Indicates whether adding new records is enabled. - The current record position. - - - - - - - Raises the event. - - The new record index. - - - - - - - Raises the event. - - The new record index. - - - - Calculates corrected Y location of numbers. - - Grapchics object. - Output text. - Corrected Y coordinate. - - - - Occurs when the current record is changing. - - - - - Occurs when the current record is changed. - - - - - Indicates whether the step for increasing the record position should be increased - when the user holds down the mouse on a record navigation button for a longer period. - - - - - - - - - - - - - - Gets or sets the current record position. - - - - - Gets or sets the minimum record position. - - - - - Gets or sets the maximum record position. - - - - - Indicates whether adding new records is enabled. - - - - - Gets or sets . - - - - - Gets or sets the label to be displayed before the record field textbox. - - - - - Gets or sets an optional maximum label (e.g. "of 1000"). - - - - - Gets or sets the textbox where users can enter record indexes manually. - - - - - RecordNavigationBar Action List class for SmartTag. - - - - - Initializes the action list to be added. - - - - - Gets/Sets the name of the control - - - - - Label to be displayed before the record field textbox - - - - - Specifies arrow button to be shown in an arrow bar - - - - - Designer class for RecordNavigation bar - - - - - Collection of designer action list object. - - - - - Collection of designer action list object. - - - - - Provides data about a and events of a . - - - - - Initializes a new . - - The record index. - - - - Gets / sets the record index. - - - - - Handles a event of a . - - - - - Handles a event of a . - - - - - A RecordNavigationControl is a splitter frame with a on the bottom left scrollbar. - - - - - A splitter control provides support for dynamic splitting of the viewable area. - - - The controls shown inside the splitter control must implement - the interface. Additionally, these controls need to have built-in logic - that allows displaying one set of data in different views. - The interface should be implemented if scrollbars of the child - pane should be shared with the parent splitter frame. - The controls in the pane should also implement . This allows the control - to create new panes and initialize them when an additional row or column is opened in the splitter control. - If a control does not implement , the splitter control will call the - of the . - Essential Grid's GridControlBase is a control that provides all of this logic and can be dropped into a - splitter control and be dynamically split by an end user. - also provides part of the logic to be used inside a splitter frame, but - you still need to implement the logic for displaying one set of data in different views in your derived controls. - - See the SplitterControlDemo and TabBarSplitterControlDemo samples for examples on how to use - in a form. - - - - - Provides notification methods when the user drags the vertical - or horizontal splitter bar. - - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moves the splitter bar. - - The source of the event. - - - - Repaints the splitter bar. - - The source of the event. - - - - Gets / sets the cursor to display. - - - - - Implement this interface if you want to add support for shared scrollbars. - - - - - Returns a scrollbar object that implements a horizontal scrollbar. - - - - - Returns a scrollbar object that implements a vertical scrollbar. - - - - - Indicates whether the specified control is activated. - - - - - Defines an interface for a control that supports splitting the view into - several row panes and column panes. - - - Both and - implement this interface. This gives client controls a one stop interface - to get all splitter functionality no matter if they are embedded inside - a or inside a . - - - - - Indicates whether the rows were split at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether the columns were split horizontally at the specified x coordinate. - - The horizontal position in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Deletes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Deletes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Returns the splitter pane at the specified row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the row and column index for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - Gets / sets a value indicating what split behavior is supported. Rows, Columns or Both. - - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Gets / sets the active pane in the splitter control. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Default size of the control - - - - - Initializes a new splitter control. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Font changed - - - - - - - - - Indicates whether the rows were split at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether the columns were split horizontally at the specified x coordinate. - - The horizontal position in in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Deletes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Deletes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a pane will be created on demand with a call to . - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a null reference will be returned. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Disposes the specified pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Creates a new control for the specified splitter pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control in the first splitter pane. - A new instance of the control. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Returns the row and column indices for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - - - - Overridden method. - - - - - - Returns the scrollbar for the specified control. - - The control for which you want to get the scrollbar. - - - - - Indicates whether the scrollbar belongs to the active pane. - - The control associated with the scrollbar. - Specifies the vertical or horizontal scrollbar. - True if active; False otherwise. - - - - - ScrollControl checks IsActive to find out if it is the target of a HScroll event. - - protected virtual void OnHScroll(object sender, ScrollEventArgs se) - { - try - { - IScrollBarFrame sbf = GetScrollBarFrameOfComponent(this); - if (sbf != null && !sbf.IsActive(this, ScrollBars.Horizontal)) - return; - - ... - - - - - - Returns the horizontal scrollbar associated with the control. - - A child pane. - The scrollbar for the pane. - - - - Returns the vertical scrollbar associated with the control. - - A child pane. - The scrollbar for the pane. - - - - - - - Raises the event. - - A that contains the event data. - - - - Handles the WM_SETCURSOR message. - - - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Raises the event. - - Event Data. - - - - - - - Reinitializes and hides ToolTips. - - - - - - - - - - - Raises the event. - - Event data. - - - - Returns either an that has a reference to a scrollbar or creates a scrollbar. - - Indicates horizontal or vertical scrollbar. - The zero-based row or column index of the scrollbar. - A control that is derived from or implements . - - - - Creates a scrollbar for the specified row or column index. - - Indicates horizontal or vertical scrollbar. - The zero-based row or column index of the scrollbar. - A . - - - - - - - - - - Indicates whether the specified control is activated . - - The to be activated. - True if the control is successfully activated; false otherwise. - - The control must be a child of the container control. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Indicates whether this control contains focus. If - implements , the - method is called on the . - - True if the control or any child control has focus; False otherwise. - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls gets focus and it - is not called when focus is moved within child controls of this control. - - - - - Cancels any prior calls for child controls that implement . - - - - - Raises the event. This method is called when the control - or any child control loses focus and the new focused control is not a child of this control. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - - - - Resets the property to its default value. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - Raises the event. - - Event data. - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moves the splitter bar. - - The source of the event. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Resets the to default. - - - - - Raises the event. - - A that contains the event data. - - - - Get or Set of Skin Manager Interface - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event - - Office scrollbar type - - - - Reset the GridOfficeScrollBars - - - - - - Serializes the GridOfficeScrollBars - - - - - - Reset the Style of the Splitter control - - - - - - Serializes the Style of the Splitter control - - - - - - Occurs when the style changes - - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the ThemesEnabled property changes. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Occurs after the control to be displayed in a new pane has been created. Use this - event to implement additional initialization for the new control. - - - PaneCreated is an ideal hook to add handler for events in the new control. - - - - - Occurs after a row or column is hidden and before the control that is displayed in the pane - is disposed. Use this event to implement additional clean up for the control before - is called. - - - PaneClosing is an ideal hook to unwire event handlers from the control. - - - - - Gets or sets the active pane in the splitter control. - - - - - Returns the default size of the control. - - - - - - - - Gets or sets the border style of the Splitter Control. - - - - - Indicates whether themes are enabled for this control. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on - them. - - - - - Gets or sets the button look for the arrow buttons. - - - - - holds information about the current vertical and horizontal split positions. - - - - - Gets or sets the Active control. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Occurs when both and occur. - - - - - Gets or sets a value indicating what split behavior is supported. Rows, Columns or Both. - - - - - Gets or sets the horizontal splitter position in percentages of the splitter control's width. - - - - - Gets or sets the vertical splitter position in percentages of the splitter control's height. - - - - - Gets or sets the that holds information about current vertical and horizontal split positions. - - - - - Gets or sets the border style of the RecordNavigationControl. - - - - - Occurs when property has changed. - - - - - Toggles between standard and flat scrollbars. - - - - - Gets or sets the style of flat scrollbars. - - - - - Gets or sets the size factor of this tab bar - - - - - Gets or sets the Backcolor for flat scrollbars. - - - - - Gets or sets the Office2016Scrollbar. - - - - - Toggles between standard and Office2007 scrollbars. - - - - - Gets or sets the style of Office2007 scroll bars - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Gets or sets the Office like scrollbars. - - - - - Gets or sets the style of Office2010 scroll bars. - - - - - Gets or sets the style of Office2016 scroll bars. - - - - - Gets/Sets the Style of the Splitter control - - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Toggles visibility of the vertical scrollbar. - - - - - Toggles visibility of the Horizontal scrollbar. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Provides the data about event of a . - - - - - Initializes a new . - - The record index. - - - - Gets or sets the Office scroll bars - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Initializes a new . - - - - - - - - - - - - - - - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - Resets to default. - - - - - Resets to default. - - - - - Resets to default. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - - - - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs when the current record is changed. - - - - - Occurs when the current record is changing. - - - - - Occurs when the user clicks an arrow button. - - - - - - - - Returns the with record information and scroll buttons. - - - - - Gets / sets the current record position. - - - - - Gets or sets the minimum record position. - - - - - Gets or sets the maximum record position. - - - - - Indicates whether adding new records is enabled. - - - - - Gets or sets the label to be displayed before the record field textbox. - - - - - Gets or sets an optional maximum label (e.g. "of 1000"). - - - - - Gets / sets the number of Milliseconds to wait before repeatedly firing scroll event. - - - - - Gets / sets the shortest interval for firing scroll event. - - - - - Gets or sets the arrow button that should be shown in an arrow bar. - - - - - Gets or sets the backcolor of the navigation bar. - - - - - Gets or sets the width of the navigation bar. - - - - - Gets or sets the color of arrows in enabled buttons. - - - - - Gets or sets the color of arrows in disabled buttons. - - - - - RecordNavigationControl Action List class for SmartTag. - - - - - Initializes the action list to be added. - - - - - Gets/Sets the name of the control - - - - - Specifies the style for the RecordNavigationControl - - - - - Specifies arrow button to be shown in an arrow bar - - - - - Specifies the splitter behavior of the control - - - - - Sets the Office like scroll bars - - - - - A designer for the . - - - - - Initializes a new . - - - - - - - - - - - Collection of designer action list object. - - - - - Collection of designer action list object. - - - - - RecordNavigationScrollBar is a with a scrollbar contained in one control. - displays this control in the bottom left corner of the frame. - - - - - Returns a reference to a scrollbar contained in a user control. - - - Splittercontrol and Workbookcontrol check for the IScrollBarContainer to get the - scrollbar. This enables you to replace the shared scrollbar with any user control - that also has a scrollbar. An example is the . - - - - - Gets / sets the contained scrollbar in a user control. - - - - - - - - Initializes a new with a shared scroll bar control. - - The control that either hosts a scrollbar (a ) or is itself a scrollbar. - - - - - - - - - - - - - - - - Gets / sets the preferred width of this control. - - - - - Encapsulates a type's name and exposes it to the class. - - - - - Initializes a new . - - - Creates a new TypeName class with empty type name. - - - - - Creates a new TypeName class and sets its type name. - - The full name of the type. - - - - Occurs when the TypeFullName property has changed. - - - - - Gets / sets the type's full name. - - - - - Lets you specify a list of s and invoke a member in those types. - - - - This class is used in Essential Tools to load certain types in memory. - - - Once you add the types to load into this list, you can call the - method to specify a member in those types to invoke and then also call - later to repeat the invoke. - - - - - - - - - - - - Returns the argument at the specified index, that will be used during invoking. - - The argument index. - The argument at the specified index. NULL if index is out of range. - - - - Call this method to provide information for the member invoke. - - - - - - - - - - Take a look at method for information - on these parameters. This method will also call . - - - - - Invokes the member specified using on the - specified types in this list. - - - - - Invokes the member specified using on the - specified types in this list. - - - - - Invokes the member on each type. - - The on which to invoke. - - - - Gets / sets the indexer for this list. - - Specifies the object at this index. - - - - Returns the number of arguments to be used in the method call when invoked. - - - This will be zero if invoking a property. Call - to reset this property. - - - - - Returns the static member name to invoke. - - - - - Fired when a type to invoke is not found. - - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - - - - Creates a new instance of the TypeNotFoundEventArgs. - - The that was not found. - - - - Returns the that was not found. - - - - - - This component lets you load custom types into the design time. - - - You can specify the static member name you want invoked through the InvokeMemberName property. This will load the types and - invoke the specified member every time you load the designer. - - - - - Initializes a new . - - - Creates a new instance of the TypeLoader class. - - - - - Creates a new instance of the TypeLoader class and adds itself to the container specified. - - The container to add to. - - - - Handler for the event. - - The sender of this event. - Data for this event. - - If in design mode, this method shows a message box with appropriate information. - - - - - Returns the static member name to invoke. - - - Call - to reset this property. - - - - - Specifies the containing the list of s - to load. - - - - - Handles the NcPaint event of an ScrollControl object. - - - - - Provides data for the NCPaint event of an ScrollControl object. - - - - - Initializes a new instance of the NCPaintEventArgs class. - - - - - - - - - - - - - - - - Bounds an ScrollControl. - - - - - Bounds of an ScrollControl in screen coordinates. - - - - - Clipping region of an ScrollControl. - - - - - Gets or sets bounds an ScrollControl. - - - - - Gets or sets bounds of an ScrollControl in screen coordinates. - - - - - Gets or sets clipping region of an ScrollControl. - - - - - - - - - - - - - - - - - - - Retrieves Office2010 scroll bars - - - - Office2016 style - - - - - Metro style - - - - - Characterize zone which contain mouse down position. - Order of enum's elements can not be changed, because ScrollBarCustomDraw - uses enum's indexes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Characterize Office2010 scroll bar color scheme. - - - - Office2010 blue. - - - Office2010 silver. - - - Office2010 black. - - - Office2010 default color. - - - - Defines the constants that specify color schemes for the Office 2016 theme. - - - - Office2016 black. - - - Office2016 white. - - - Office2016 dark gray. - - - Office2016 colorful color. - - - - Characterize MS-Office scroll bars. - - - - Office2007 Scrollbars. - - - Office2010 Scrollbars. - - - Metro Scrollbars. - - - Office2016 Scrollbars - - - Ordinary Scrollbars. - - - - Characterize zone which contain mouse position. - Order of enum's elements can not be changed, because ScrollBarCustomDraw - uses enum's indexes. - - - - - - - - - - - - - - - - - - - - - - - Specifies the layout and colors for scrollbars. - - - - - - - - - - - - - - Specifies behaviour of size gripper for scrollable frame controls. - - - - - Gripper is visible when both horizontal and vertical scrollbars are visible. - - - - - Gripper is always visible. - - - - - Gripper is always hidden. - - - - - - - Reference on parent control - - - - Initializes new instance of ControlsCollectionBase class - - Reference on parent control. Can not be NULL. - - - - Initializes new instance of ControlsCollectionBase class - - Reference on parent control. Can not be NULL. - Attach event handler to ConfigureControl event on initialize. - - - Occurs when collection changed. - - - - - - - - - Add Control object to collection. - - - - - - - - - - - Removes control from collection. - - - - - - Insert control in position with index value is index. - - - - - - - - - - - - - - Includes/exclude controls from parent controls collection. - - If true - excludes, else includes controls in parent controls collection. - - - - - - - - - - - - - - - - - - - - - - Reference on parent control/container. - - - Typed version of indexer. - - - - - - - - - Message class that contains reference on control that - required configuration. - - - Storage of control reference. - - - Default constructor. - - - - Get reference on Control. - - - - - - - - We specify that only buttons can be created in design time in collection. - In runtime developer will have more freedom. - - - Default constructor. - - - - Allow creation only of buttons in designe time. - Allowed types for creation. - - - - Represents a standard Windows horizontal scroll bar. - - - Most controls that need scroll bars already provide them and do not require this - control. This is true of a multi-line control, - a and a , - for example. - You can use this control to implement scrolling in containers that do not provide their - own scroll bars, such as a or for user input of numeric data. - The numeric data may be displayed in a control or utilized in code. - The and properties - determine the range of values the user can select. The property determines the effect of - clicking within the scroll bar but outside the scroll box. The property determines the effect of - clicking the scroll arrows at each end of the control. - - - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - Defines an interface that provides all properties to configure a scrollbar. - - - - - Updates the scrollbar with latest changes to current position and scrollable range. - - - - - Gets or sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets or sets the upper limit of values of the scrollable range. - - - - - Gets or sets the lower limit of values of the scrollable range. - - - - - Gets or sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets or sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets or sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Enables or disables thumbtrack feature for the scrollbar. - - - - - Indicates whether the scrollbar is in thumb drag mode. - - - - - Indicates whether ScrollTips should be shown for the scrollbar. - - - - - Creates the handler. Overridden to help set up scrollbar information. - - - - - - - - - - - - - - - - - Resets the backcolor of the scroll bar. - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - - - - Indicates whether the associated control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - checks this property to determine if ScrollTips should be displayed. - - - - - Indicates whether the scroll bar is currently in thumb drag mode. - - - - - Gets / sets the effect of clicking within the scroll bar but outside the scroll box. - - - - - Gets / sets the maximum range of the scroll bar. Default is 100. - - - - - Gets / sets the minimum range of the scroll bar. Default is zero. - - - - - Gets / sets the effect of clicking the scroll arrows at each end of the control. - - - - - Gets / sets the starting value of the scroll bar. - - - - - Gets / sets the background color of this scrollbar. - - - - - Gets / sets the scroll bar style. Default is Flat style. - - - - - Constructor. - - - - - - - - - - Returns the parameters needed to create the handler. Inheriting classes - can override this to provide extra functionality. They should not, - however, forget to call base.getCreateParams() first to get the structure - filled up with the basic info. - - - - - - - Represents a standard Windows vertical scroll bar. - - - Most controls that need scroll bars already provide them - and do not require this control. This is true of a multi-line - control, a - and a , for example. - You can use this control to implement scrolling in - containers that do not provide their own scroll bars, such as - a or for user input - of numeric data. The numeric data may be displayed in a control or utilized in - code. The and - properties determine the range of values the user can select. The property - determines the effect of clicking within the scroll bar but outside the scroll - box. The property - determines the effect of clicking the scroll arrows at each end of the control. - - - - - - - Constructor. - - - - - - - - - - Returns the parameters needed to create the handler. Inheriting classes - can override this to provide extra functionality. They should not, - however, forget to call base.getCreateParams() first to get the structure - filled up with the basic info. - - - - - - - - - - - - - - - Base class for scrollers control that support visual styles. - - - - - - Key for LargeChangeChanged event. - - - Key for MaximumChanged event. - - - Key for MinimumChanged event. - - - Key for SmallChangeChanged event. - - - Key for ValueChanged event. - - - Key for VisualStyleChanged event. - - - Key for ColorSchemeChanged event. - - - Key for ThemeEnabledChanged event. - - - - Used by threading timer. - - - - - A value to be added to or subtracted from the System.Windows.Forms.ScrollBar.Value - property when the scroll box is moved a large distance. - - - - - Cached m_largeChange - - - - - The upper limit of values of the scrollable range. - - - - - The lower limit of values of the scrollable range. - - - - - A value to be added to or subtracted from the Syncfusion.Windows.Forms.ScrollBarCustomDraw.Value - property when the scroll box is moved a small distance. - - - - - A numeric value that represents the current position of the - scroll box on the scroll bar control. - - - - - Visual style of the ScrollBarCustomDraw. - - - - - Indicates whether to use visual styles. - - - - - Indicates whether thumb is disabled. - - - - - Indicates whether minimum arrow is disabled. - - - - - Indicates whether maximum arrow is disabled. - - - - - Collection of controls that locates above the minimum arrow. - - - - - Collection of controls that locates under the maximum arrow. - - - - - True - say control to keep System settings instead of user defined, otherwise False. - - - - - Renderer which draws the control. - - - - - Array of rectangles that represents regions of the ScrollBarCustomDraw. - - - - - Used when user holds the arrow button clicked. - - - - - Position where was last click. - - - - - Zone where was last click . - - - - - Zone where mouse is over. - - - - - Cached m_selectedZone. - - - - - Zone where is mouse position. - - - - - False if all states is default? in other case value is false. - - - - - Color scheme that used in Rendering. - - - - - Color scheme that used in Rendering. - - - - - Color scheme for Office2016 that used in Rendering. - - - - - Color scheme for Office2010 that used in Rendering. - - - - - Instance of ContextMenu provider. - - - - - To avoid compile error CS0197 in VS2002. - - - - - To prevent validation controls visibility in - and in . - - - - - Indicates whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - Scroll bar's owner. - - - - - Metro color table for metro visual style. - - - - - Office2016 black color table for Office2016 visual style. - - - - - Office2016 white color table for Office2016 visual style. - - - - - Office2016 darkgray color table for Office2016 visual style. - - - - - Office2016 colorful color table for Office2016 visual style. - - - - - Apply Office2016Black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - - - - - - - - - - - - - Initialize the context menu. - - - - - - - - - - - - - - Override. Force recalculation of Scroller elements. - Layout arguments. - To force Layout logic call . - - - - Forces the laying out of combobox elements. - - - Advanced method. You do not have to call this directly. - - - - If outside code will work with collection instead - of our collections and , - then this method will help us in synchronization. - - - - If outside code will work with collection instead - of our collections and , - then this method will help us in synchronization. - - - - - Overridden. See . - - - - - - Occurs when control size changed. - - The event data. - - - - Reset control Width or Heigh to system settings - - - - - Raises the OnLargeChangeChanged event. - - The event data. - - - - Raises the OnSmallChangeChanged event. - - The event data. - - - - Raises the OnMaximumChanged event. - - The event data. - - - - Raises the OnMinimumChanged event. - - The event data. - - - - Raises the OnVisualStyleChanged event. - - The event data. - - - - - Raises the OnMinimumChanged event. - - The event data. - - - - Raises the OnValueChanged event. - - The event data. - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - - - - Overridden. See . - - - - - - Redraws scroll control when RightToLeft is changed. - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Occurs when mouse down and cursor change position. - - - - - - - Gets min button. Possible variants: Left or Down. - - - - - - Gets max button. Possible variants: Right or Up. - - - - - - Defines pressed zone. - - - - - - - - Recalculates bounds of the ScrollBarCustomDraw. - - - - - Recalculates bounds of the arrow buttons. - - - - - Recalculates bounds of the thumb. - - - - - If scroll contain all controls than controls is visible, in other case value is false. - - - - - - Gets DockStyle of afterControls. - - - - - - Gets DockStyle of beforeControls. - - - - - - used for calculates thumb offset. - - - - - - - - - - - - - - - - - - Utility API that open to user opportunity to destroy handle in runtime. - Very usefull for runtime resource cleanup. - - - - - Sets small change if value is less than large change; otherwise sets small change to large change. - - Value to set. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Method accumulate width and height of the controls in - specified collection. - - Method accumulate width and height of the controls in - specified collection. - collection of controls. - Accumulated values. - - - - Excludes/includes controls in collection. - - If true - excludes, else includes controls in collection. - - - - - - - - X coordinate of mouse. - Y coordinate of mouse. - - - - Sets value, but OnValueChanged don't raise. - - - - - - Dispose controls of ScrollBarCustomDraw. - - Collection of controls to be disposed. - - - - Creates and displays the context menu for the control. - - - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Gets or sets a value to be added to or subtracted from the System.Windows.Forms.ScrollBar.Value - property when the scroll box is moved a large distance. - - - - - Gets or sets the upper limit of values of the scrollable range. - - - - - Gets or sets the lower limit of values of the scrollable range. - - - - - Gets or sets a value to be added to or subtracted from the Syncfusion.Windows.Forms.ScrollBarCustomDraw.Value - property when the scroll box is moved a small distance. - - - - - Gets or sets a numeric value that represents the current position of the - scroll box on the scroll bar control. - - - - - Gets or sets the text associated with this control. - - - - - Visual style of the ScrollBarCustomDraw. - - - - - Gets or sets a value that indicates whether to use visual styles. - - - - - Gets or sets a value that indicates whether thumb is disabled. - - - - - Gets or sets a value that indicates whether minimum arrow is disabled. - - - - - Gets or sets a value that indicates whether maximum arrow is disabled. - - - - - Collection of controls that locates above the minimum arrow. - - - - - Collection of controls that locates under the maximum arrow. - - - - - True - say control to keep System settings instead of user defined, otherwise False. - - - - - Gets or sets the renderer which draws the control. - - - - - Returns the value that indicates whether RightToLeft is RightToLeft.Yes - - - - - Hide Controls collection from CodeDom serialization. - - - - - Gets or sets the metro color table. - - - - - Gets or sets the color table for Office2016 Black theme scrollbar. - - - - - Gets or sets the color table for Office2016 white theme scrollbar. - - - - - Gets or sets the color table for Office2016 dark gray theme scrollbar. - - - - - Gets or sets the color table for Office2016 colorful theme scrollbar. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Metro color scheme should be user defined color. - - - - - Gets or sets whether the Office2010 color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Office2016 color scheme should be Black or White or DarkGray or Colorful. - - - This is applicable for both the horizontal and vertical scrollbar. - - - - - Gets / sets the menu provider object that will implement the 's contextmenu. - - - The ScrollBarCustomDraw control automatically initializes this property depending on the presence - of the Syncfusion Essential Tools library. If Essential Tools is available, then the menu provider - object will be an instance of the - type. If not, the class is used for - implementing the standard .NET context menu.

The ScrollersFrame's automatic initialization - should suffice for most applications and you should explicitly set this property only when you - want to override the default menu provider assignment.

- A implementation; the default - is . -
- - - Gets or sets value indicating whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Flag, if true than controls visivble in other case not visible. - - - - - Default size of the horizontal scroolbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - Occurs when control size changed. - - - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - TODO: place correct comment here - - - - - Reset horizontal scrollbar to default height. - - - - - Gets dockStyle for controls which situated before scroll. - - - - - - Gets dockStyle for controls which situated after scroll. - - - - - - Gets value by cursor position - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculates bounds of thumb for scroll control. - - - - - Calculating bounds for leftThumb and rightThumb zones for scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - Implements support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. has built-in support for this call. You only have - to enable . - - - The following code enables support for IntelliMouseDragScroll: - - public bool EnableIntelliMouse - { - get - { - return imm != null and imm.Enabled; - } - set - { - if (value != EnableIntelliMouse) - { - if (imm == null) - { - imm = new IntelliMouseDragScroll(this, true); - imm.AllowScrolling = ScrollBars.Both; - imm.DragScroll += new IntelliMouseDragScrollEventHandler(IntelliMouseDragScrollEvent); - } - imm.Enabled = value; - } - } - } - - void IntelliMouseDragScrollEvent(object sender, IntelliMouseDragScrollEventArgs e) - { - int dy = e.Dy; - int dx = e.Dx; - - this.disableAutoScroll = true; - if (Math.Abs(dy) > Math.Abs(dx)) - { - VScrollBar.SendScrollMessage(dy > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement); - } - else - { - HScrollBar.SendScrollMessage(dx > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement); - } - this.disableAutoScroll = false; - } - - - - - - Initializes the object. - - The control to add this functionality to. - - - - Initializes the object. - - The control to add this functionality to. - True if should listen for MouseDown event; - False if dragging should be started manually by calling StartDrag. - - - - - - - Starts the IntelliMouse dragging at the given screen coordinates. - - Screen coordinates, e.g. Control.MousePosition. - - - - Stops the Intelli-Mouse dragging. - - - - - Returns the bitmap from manifest. Red background in bitmap will be made transparent. - - - - - - - Occurs when the user has dragged the mouse outside the scrolling bitmap. - - - - - Returns the active object, if any. - - - - - Gets / sets the scrolling direction. - - - - - Indicates whether the user is dragging. - - - - - Indicates whether to toggle the Intelli-Mouse feature on or off. - - - - - Returns the cursor to be displayed. - - - - - Handles the DragScroll event of an IntelliMouseDragScroll object. - - - - - Provides data for the DragScroll event of an IntelliMouseDragScroll object. - - - - - Initializes a new instance of the IntelliMouseDragScrollEventArgs class. - - The distance in pixels the mouse pointer has been moved horizontally. - The distance in pixels the mouse pointer has been moved vertically. - - - - Gets / sets the distance in pixels the mouse pointer has been moved horizontally. - - - - - Gets / sets the distance in pixels the mouse pointer has been moved vertically. - - - - - Set this to True if you scrolled and do not want default scrolling behavior. - - - - - Handles the MouseWheelZoom events. - - - - - Provides data for the MouseWheelZoom event. - - - - - Initializes a with a given delta. - - The number of rows or columns to scroll. - - - - Returns the number of rows or columns to scroll. - - - - - - - - - - - True if scroll bar is currently in thumb drag mode. - - - - - Indicates whether the associated control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - Checks this property to determine if ScrollTips should be displayed. - - - - - Gets / sets a value to be added to or subtracted from to the Value property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets a value to be added to or subtracted from to the Value property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - Design time helper class. Do not allow resizing of scrollers - when set KeepSystmeMetrics property to TRUE value. - - - Typed version of control reference extracting. - - - Override selection rule only in case of KeepSystemMetrics value set to True. - - - - Defines an interface that provides all properties to configure a scrollbar. - - - - - Gets / sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - ScrollbarWrapper manages scrollbars for a control and hides details about the scrollbar - from the control that utilizes ScrollBarWrapper. This allows you to replace the concrete - ScrollBar with , , - or any custom scrollbar implementation. - - - - - Overloaded. Initializes a new instance of the class. - - The parent control. - The scrollbar type: horizontal or vertical. - - - - Initializes a new instance of the class. - - The parent control. - The scrollbar type: horizontal or vertical. - The scrollbar object to be managed by this instance. - - - - Implements the method and releases all managed resource for this object. - - - - - Copies all information to another object. - - The to receive all copied information. - - - - Raises the event. - - . - An that contains the event data. - - - - Suspends updating the scrollbar until is called. - - - - - Resumes updating the scrollbar after a call. - - - - - Fetches scrollbar information from the managed scrollbar object and updates the information - in the object. - - - - - Applies scrollbar information to the managed scrollbar object based on the information - in the current object. - - - - - Call this for reflected scrollbars from your parent control's method if you - want to support reflected scrollbars (those window scrollbars that you enable with WS_VSCROLL and - WS_HSCROLL window styles). - - The that was passed as argument to . - - - - Sends or emulates a scroll event. - - - - - - Occurs when the scroll box has been - moved by either a mouse or keyboard action. - - - - - Occurs when the property has changed, either by a - event or programmatically. - - - - - Indicates whether the control should scroll while the user is dragging a scrollbar's thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - Checks this property to determine if ScrollTips should be displayed. - - - - - Gets / sets a reference to the scrollbar that is contained in this wrapper class. - - - - - True if this is a Reflecting scrollbar; False if it is a simple scrollbar. - - - - - True if this is a flat scrollbar; False if it is a simple scrollbar. - - - - - True if scroll bar is currently in thumb drag mode. - - - - - True if this is a Reflecting scrollbar; False if it is a simple scrollbar. - - - - - Indicates whether updating is locked. See . - - - - - Gets / sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Returns a reference to the parent control. - - - - - Manages the theme handle given a control and exposes some basic themed Drawing methods. - - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - - - - - Creates a new instance of the class. - - Pointer to a string that contains a semicolon-separated list of classes, as expected - in the OpenThemeData API. - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - This is necessary in order that this class can refresh its handles when themes - settings are updated. - - You can get the part and state ids required for the DrawXXX methods from the tmschema.h file (that comes with - Platform SDK) or refer to the undocumented and incomplete ThemeParts and ThemeStates classes - in our shared library (in the ThemeDefines.cs file). - - - - - Creates a new instance of the class. - - Pointer to a string that contains a semicolon-separated list of classes, as expected - in the OpenThemeData API. - Owning component. - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - This is necessary in order that this class can refresh its handles when themes - settings are updated. - - You can get the part and state ids required for the DrawXXX methods from the tmschema.h file (that comes with - Platform SDK) or refer to the undocumented and incomplete ThemeParts and ThemeStates classes - in our shared library (in the ThemeDefines.cs file). - If owning component is not null, automatically unregisters itself from - on component disposing. - - - - - Overridden. See . - - - - - - Called to create a theme handle, given the specified control and classList. - - - - - Closes the currently open theme handle. - - - - - Closes the current theme handle. - - - - - Closes the current theme handle and tries to open a new one. - - - - - Overloaded. Draws the specified theme background. - - A object. - An integer specifying the part. - An integer specifying the state. - The background . - - See for information on how to get the part and state IDs. - This method uses the VisibleClipRegion in the Graphics object to obtain the clip rect. - - - - - Draws the specified theme background. - - A object. - An integer specifying the part. - An integer specifying the state. - The background . - The clip rect to be used. - - See for information on how to get the part and state IDs. - Use this function to provide custom clip bounds. - - - - - Overloaded. Draws the specified theme text. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to be drawn. - The layout bounds within which to draw. - Refers to the DrawThemeText function in the Windows API. - Refers to the DrawThemeText function in the Windows API. - - - - Draws the specified theme text. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to be drawn. - The layout bounds within which to draw. - Refers to the DrawThemeText function in the Windows API. - Refers to the DrawThemeText function in the Windows API. - - - - Returns the size for the specified part. - - A object. - An integer specifying the part. - An integer specifying the state. - The size type. - The requested size. - - - - Calculates the size and location of the specified text when rendered in the theme font. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to draw. - The layout bounds. - See GetThemeTextExtent method documentation in Windows API. - The rectangle representing the extent. - - - - Returns the current theme handle used to render the parts. - - - - - - - - - - - - - - Blend 30% of menu selection color. - - - - - - - - - - - - - - - - - Gets / sets ScrollButton highlighted state. - - - - - Gets / sets for correctly GradientBrush creation, so that background - is same as Parent's background. - - - - - A ScrollTip window is a top-level window that gives feedback about the - current scroll position when the user grabs a scrollbar thumb and drags it. - - - - - - - - - - - Initializes a new . - - - - - - - - - - Raises the event and refreshes the contents of the window. - - The with event data. - - - - - - - - - Returns the optimal size for the window to fit the given text. - - The text that should fit into the window. - A with the window size of the ScrollTip. - - - - - - - Gets / sets the border style of the control. - - - - Gets / sets the text layout information for the text in the ScrollTip. - - - - - Specifies the current ScrollTip state when a event was raised. - - - - - The user has grabbed the thumb. The ScrollTip should be shown. - - - - - The user has released the thumb. The ScrollTip should be hidden. - - - - - The user is dragging the thumb. The ScrollTip text should be updated. - - - - - Handles the event. - - - - - - - - Provides data for the event. - - - - - - - - Constructs a object. - - The exception that was cached. - - - - Returns the exception that was cached. - - - - - Handles the ScrollTip event. - - - - - - - - Provides data for the event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the scrollbar that is the source of this event. - - - - - Returns a value that specifies the user action that led to this event. - - - - - Returns the new scroll position. - - - - - Gets / sets the text to display in the ScrollTip. You can change this text in your event handler during - a Scroll action. - - - - - Gets / sets the size of the ScrollTip window. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the location of the ScrollTip window. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the font to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the text color to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the backcolor to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the border style to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the text layout information for the text in the ScrollTip. - - - - - BeginUpdateOptions details which drawing operations should be performed during a batch of updates. - - - - - The control suspends any drawing and invalidation and will do a complete refresh when EndUpdate is called. - - - - - Regions that need to be redrawn afterward should be marked invalid by calling the controls Invalidate method. - - - - - ScrollWindow will scroll the window. - - - - - Scrollbars should be synchronized with the current scroll position. - - - - - Allows invalidating regions, scrolling and synchronizes the scrollbar thumb. - - - - - Contains data for the WindowScrolling and WindowScrolled event. - - - ScrollWindow will raise a WindowScrolling event before it scrolls the window and a WindowScrolled event after the scrolling. - - - - - - - - - - - - - - - - - - - - Initializes a new . - - The horizontal scroll distance in pixel. - The vertical scroll distance in pixel. - The bounds of the rectangle that is scrolled. - Clipping rectangle. - The rectangle that was scrolled into view. - - - - - - - - - Returns the horizontal scroll distance in pixels. - - - - - Returns the vertical scroll distance in pixels. - - - - - Returns the bounds of the rectangle that is scrolled. - - - - - Returns the Clipping rectangle. - - - - - Returns the rectangle that was scrolled into view. - - - - - Handles the scroll window event. - - - - - - - - Provides a global hook for exceptions that have been cached inside the framework and gives you - the option to provide specialized handling of the exception. You can also temporarily suspend and resume - caching exceptions. - - - The Syncfusion framework notifies about exceptions that - are cached by calling or . - The method will raise the - event. By handling the event, your code can analyze the exception that was cached - and optionally let it bubble up by rethrowing the exception. - Your code can also temporarily suspend and resume caching exceptions. This is useful if you want to provide your - own exception handling. Just call to disable handling exceptions and - to resume caching exceptions. - You also have the options to disable caching exceptions altogether by setting to True. - Note: All static settings for this class are thread local. - - - // The following example demonstrates temporarily suspending exception caching when calling a base class version - // of a method. - protected override void OnMouseDown(MouseEventArgs e) - { - ExceptionManager.SuspendCatchExceptions(); - try - { - base.OnMouseDown(e); - ExceptionManager.ResumeCatchExceptions(); - } - catch (Exception ex) - { - ExceptionManager.ResumeCatchExceptions(); - // Notify exception manager about the catched exception and - // give it a chance to optionally rethrow the exception if necessary - // (e.g. if this OnMouseDown was called from another class that - // wants to provide its own exception handling). - if (!ExceptionManager.RaiseExceptionCatched(this, ex)) - throw ex; - // handle exception here - MessageBox.Show(ex.ToString()); - } - } - - - // This code sample shows how exceptions are handled within the framework: - try - { - CurrentCell.Refresh(); - } - catch (Exception ex) - { - TraceUtil.TraceExceptionCatched(ex); - if (!ExceptionManager.RaiseExceptionCatched(this, ex)) - throw ex; - } - - - - - - - - - - - - - - - - - Temporarily suspends caching exceptions. - - - - - Temporarily resumes caching exceptions. - - - - - Indicates whether exceptions should be cached or if they should bubble up. - calls this method. - - - - - - Raises the event. - - - Raises the event. If caching exceptions has been disabled - by a call or if has been set to True, - the exception is rethrown. - - A that contains the event data. - - - - - - Raises the event. If caching exceptions has been disabled - by a call or if has been set to True, - the exception is rethrown. - - A that was cached. - - - - - - - - - Occurs when an exception was cached within the framework and was notified. - - - - - Lets you disable caching exceptions altogether by setting to True. - - - - Specifies the acceleration behavior for scrollbars. - - - - - Disable scrollbar acceleration. - - - - - Default, moderate acceleration after the user scrolled 60 increments. - - - - - Acceleration after the user scrolled 20 increments. - - - - - Immediate acceleration after the user scrolled 4 increments. - - - - - Specifies the type of autoscrolling, either scrollbar acceleration or mouse dragging outside window bounds. - - - - - The user held down a scrollbar button. - - - - - The user has dragged the mouse outside the autoscroll bounds. - - - - - The user is moving the mouse over the control during OLE drag-and-drop operation. - - - - - Handles the event. - - - - - - - - Provides data for the event which is called - when accelerated scrollbar scrolling or mouse drag-scrolling starts. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the type of autoscrolling, either scrollbar acceleration or mouse dragging outside window bounds. - - - - - Returns the scroll bar direction: vertical, horizontal, or both. - - - - - Gets / sets the interval that is initially assigned to the timer for recurring scrolling. - - - - - Gets / sets the interval step that the timer should be decreased from time to time. - - - - - Gets / sets the minimum interval for the fastest scroll speed. - - - - - - - - - - - - - - - - - - - - Internal Variable for ScrollControl - - - - - - - - - - - - - - - - - - - - Apply the scrollbar background color for scroll control. - - Graphics for scroll control - Bacground color for scroller background. - Border color for scroll control - - - - - - - - - - - - - - - Handles a cancellable event. - - The source of the event. - An that contains the event data. - - - - - - Provides data about the cancellable event. - - - ShowContextMenuEventArgs is a custom event argument class used by the - event when the user right-clicks inside - the control. - - You can cancel showing a context menu when - you assign True to . - - - - - - - Initializes a new object. - - The mouse location in screen coordinates. - - - - Returns the mouse location in screen coordinates. - - - - - Custom scrollbars with various VisualStyles and provision to add buttons to it. - - - - - - - - To check whether the ScrollersFrame is applied properly, when parent is DockHost - - - - Subclasser that helps us to monitor control changes. - - - Reference on control to which we attach scrollers. - - - - - - - - - - - - - - - - - - - - - Color scheme that used in Rendering. - - - Color scheme that used in Rendering. - - - Color scheme that used in Rendering. - - - Office2016 color scheme that used in Rendering. - - - Gripper visibility behavior. - - - - win8 style scroll behavior - - - - - Indicates if a Parent control is in dragging mode. - - - - - Indicates if left mouse button is pressed. - - - - - Enables delayed scrollbar updates. Default value is true. - - - - - - - - Collection of all attached controls and corresponding components. - - - - - LargeIcon View Scroller Increment Value - - - - - SmallIcon View Scroller Increment Value - - - - - Tile View Scroller Increment Value - - - - - Details View Scroller Increment Value - - - - - List View Scroller Increment Value - - - - - Holds Metro thumb size - - - - - Holds whether to show Metro Arrow Button - - - - - - - - - - - - - - - Applies the color table based on the scrollbar styles. - - Get the scroll control details - Get the scrollbar styles. - - - - Apply Office2016 black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Get or Set of Skin Manager Interface - - - - Horizontal scroller instance. - - - Vertical scroller instance. - - - Size gripper control instance. - - - - Required designer variable. - - - - Default constructor. - - - Component oriented constructor. Mostly used by Windows Forms - designer. - reference on container that will control - class life time. - - - - Clean up any resources being used. - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Indicates whether the current value of the OfficeColorScheme property is to be serialized. - - - - - - Resets the office color scheme. - - - - - Indicates whether the current value of the OfficeColorScheme property is to be serialized. - - - - - - Indicates whether the current value of the Office2010ColorScheme property is to be serialized. - - a boolean value. - - - - Resets the office color scheme. - - - - - Resets the office2010 color scheme. - - - - Method called when parent control create own window handle. - reference on parent control. - Event arguments. - - - Method called when control destroy own window handle. - reference on parent control. - Event arguments. - - - Method called when detected parent RightToLeft property value changes. - reference on parent control. - Event arguments. - - - - To check whether the ScrollersFrame is applied properly, when parent is DockHost - - - - - - - - - Method called when detected changes in parent-child hierarchy. - reference on parent control. - Event arguments. - - - Method attach scroller frame to the specified control. Previously - attaches to the controls will be released. - Reference on windows forms control. Can not be NULL. - - - - To update the Small Increment speed when ScrollersFrame is attached with ListView control - - - - Detach scrollers frame from previously attached control. - - - Refresh scroller frames internal settings and repaint. - - - Internal scrollers attaching algorithm. - - - Internal scrollers detaching algorithm. - - - Reflect Right to Left settings from parent control with respect to internal logic. - change RTL before SetParent calls. RTL force re-creation of the scroller handle!!! - - - Method reassign parents for scrollers when needed. - - - Method synchronize settings with parent wihdow and scrollers. - - - - If parent is being dragged, scrollers get invisible. - - - - - Method synchronize our scrollers with parent scollers. By parameter - specified source of data. - - True - source is window, otherwise False. - - - Method updates enable states from structs specified by user. - Horizontal scroller struct. - Vertical scroller struct. - - - - Utility method. Copy settings value to scrollbar control. - - reference on scroller instance. - Window WIN32 API struct settings of which we reflect. - - - Vise versa operation to method. - Destination of settings reflection. - ScrollBra instance which settings we reflect. - - - - Method create special container windows that will host attached control. - - NOT implemented. Reserved for future enhancements. But can be overrided - and implemented by user. - - - Method process WM_NSCALCSIZE message. - - - - - Method process WM_WINDOWPOSCHANGED message. - - - - - Method process WM_STYLECHANGED message. - - - - - - Method process a WM_MOVE message. - - - - - - Method process a WM_MOUSEMOVE message. - - - - - Method filter parent control messages and according to - them set scroller frame settings. - Windows message. - True - allow forward of message, otherwise False. - - - - Updates visibility of gripper. - - - - - Gets visibility of the size gripper. - - true if gripper should be shown; otherwise false. - - - - - - - - - Verifies if is owned by attched to control. - - Control to verify. - - - - - Reference on control to which we assign our custom scrollers. - - - Reference on configurable Horizontal Scroller control. - - - Reference on configurable Vertical Scroller control. - - - - Gets or sets visibility of size gripper. - - - - - Gets/Sets the size of Metro Scroller Thumb - - - - - Gets/Sets whether to display Metro scroller buttons - - - - - Gets or Sets whether to set the win 8 style scroll behavior - - - - True - horizontal scroller is visible to user, otherwise False. - - - True - vertical scroller is visible to user, otherwise False. - - - Specifies the style of appearance. - - - - Gets or sets custom color to MetroScroller. - - - - - Gets or sets the custom color for Office2016 black scrollbar. - - - - - Gets or sets the custom color for Office2016 white scrollbar. - - - - - Gets or sets the custom color for Office2016 colorful scrollbar. - - - - - Gets or sets the custom color for Office2016 dark gray scrollbar. - - - - - Gets or sets whether the Metro color scheme should be User defined colors. - - - - - Gets or sets Office2016 color scheme for horizontal and vertical scrollbars. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets the value to be added to or subtracted from the Value property when the horizontal scroll box is moved a small distance. - - - - - Gets or sets the value to be added to or subtracted from the Value property when the vertical scroll box is moved a small distance. - - - - - Gets or sets whether delayed scrollbar updates must be updated. - - - - - Gets or sets value indicating whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - Gets or Sets custom renderer to customize the scroll bars - - - - - - - The scroll bar itself. - - - The top or right arrow button. - - - The page up or page right region. - - - The scroll box (thumb). - - - The page down or page left region. - - - The bottom or left arrow button. - - - Special Size Gripper class that supports RTL. - - - Publish for user Handle destroy functionality. Usefull for resource - cleanup in runtime. - - - - - - - - Size gripper advanced. - - - - - - - - - - - Instance of ScrollersFrame. - - - - - Indicates whether grip marking should be drawn. If set to false, just background is filled. - - - - Default constructor. - reference on scroller frame. Can not be NULL. - - - Implemented visual styles support. - Paint event arguments. - - - - Releases the unmanaged resources used by the and its child controls and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - - - - - - - - - Gets or sets value indicating whether grip marking should be drawn. If set to false, just background is filled. - - - - Design time change of property visibility. Office 2007 visual style support. - - - Show/Hide OfficeColorScheme property for user in runtime. - - - - - - Class Attaching better design time support for FM2.0 and higher. - In older version class have no influences on design time. - - - - - - - Designer helper lass. Do not allow attaching of root - components by . - - - Default constructor. - - - - Method filter that chech is attaching allowed or not. - filter context. - property value that requesting check operation. - True - if attaching allowed, otherwise False. - - - - ProgressBarAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - - - - - - - Distance from thumb Y position to mouse down Y position. - - - - - Flag, if true than controls visivble in other case not visible. - - - - - Default size of the vertical scroolbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - Occurs when control size changed. - - - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - - - - Reset vertical scrollbar to default width. - - - - - Gets dockStyle for controls which situated before scroll. - - - - - - Gets dockStyle for controls which situated after scroll. - - - - - - Gets value by cursor position - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculating bounds for leftThumb and rightThumb zones for scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Retrieves color table according to style and scheme. - - Office2007 style. - Office2007 color scheme. - Color table. - - - - Registers color table within internal collection. - - Office2007 style. - Office2007 scheme. - Color table itself. - - - - - - - - - - - - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Called when is risen. - - - - - - - - - - - - - - Registered color tables. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of Office2007Renderer - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Right office arrow. - - - - - - Left office arrow. - - - - - - Down office arrow. - - - - - - Up office arrow. - - - - - - Right Normal office arrow. - - - - - - Left Normal office arrow. - - - - - - Down Normal office arrow. - - - - - - Up Normal office arrow. - - - - - - Vertical thumb lines. - - - - Horizontal thumb lines. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WindowsXP Blue Style renderer implementation. - - - - - - - Angle for horizontal gradient brush. - - - - - Angle for vertical gradient brush. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - Height for brush. - - - - - Default radius truncation corners. - - - - - Count of lines on the thumb. - - - - - Height of lines on the thumb. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The color scheme that the renderer will render. - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Sets WindowsXP color scheme for the control. - - - - - - Sets the color scheme for the button based on the current XP Scheme. - - - - - Initializes edges of specified rectangle. - - Bounds of the rectangle. - - - - - - - - Gets rounded path with specified radius for the rectangle. - - - - - - - - Gets vertical gradient brush. - - - - - - - - - Gets horizontal gradient brush. - - - - - - - - - Gets gradient brush with 53 angle. - - - - - - - - - Draws background lines. - - Graphics object to use. - Bounds of the background. - Color of the lines. - - - - Draws shadow for the arrow button. - - The graphics object to use. - Bounds of the arrow button. - - - - - - - Draws shadow for the thumb. - - The graphics object to use. - Bounds of the thumb. - - - - - Draws middle lines on the thumb. - - Graphics object to use. - Bounds of the thumb. - - - - - - Fill Rectangle with ControlLightLight color. - - Graphics objects to use. - Bounds of the rectangle. - - - - Draws disabled arrowButton. - - Graphics object to use. - Bounds of the button. - Type of the button. - - - - Draws disabled background. - - Graphics object to use. - Bounds of the button. - - - - Draws disabled thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws up arrow on the button. - - The graphics object to use. - Bounds of the button. - - - - - - Draws two lines in specified points. - - - - - - - - - - Rotate shape on specified angle around center p. - - Array of points that represents shape to rotate. - Angle in radians to rotate. - Point to rotate around. - - - - The color scheme that the renderer will render. - - - - - Blend for the default and selected arrow button. - - - - - Blend for the pushed arrow button. - - - - - Blend for the thumb. - - - - - Blend for the thumb with height < 17. - - - - - Blend for the border of arrow button. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Gets path that represents left and top lines. - - - - - - - - Gets path that represents bottom and right lines. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws selected arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws selected thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws rounded path for the rectangle of thumb with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - Color to draw. - - - - Draws rounded path for the rectangle of arrow button with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - Color to draw. - - - WindowsXP OliveGreen Style renderer implementation. - - - - Blend for the default and selected arrow button. - - - - - Blend for the default and selected arrow button. - - - - - Blend for the thumb. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws selected arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws selected thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws rounded path for the rectangle of arrow button with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - - - WindowsXP Silver Style renderer implementation. - - - - Blend for the default and selected arrow button. - - - - - Blend for the pushed arrow button. - - - - - Blend for the thumb. - - - - - Blend for the pushed thumb. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws borders for the arrow buttons and thumbs. - - The graphics object to use. - Bounds of the arrow button. - - - - Draws internal borders for the arrow buttons and thumbs. - - The graphics object to use. - Bounds of the arrow button. - - - - Defines constants for specifying the persistence medium to be used for serialization. - - - The SerializeMode enumeration defines constants for specifying the persistence medium. - This enum is used by the class as well as by several other - Syncfusion components. - - - - - The IsolatedStorage is used for reading / writing the state information. - - - - - A Binary file is used for reading / writing the state information. - - - - - A .XML file is used for reading / writing the state information. - - - - - The Win32 WindowsRegistry is used for reading / writing the state information. - - - - - An externally provided Stream is used for reading / writing the state information in an XML format. - - - - - An externally provided Stream is used for reading / writing the state information in a binary format. - - - - - Provides a mechanism for coordinating the serialization behavior of multiple components. - - - The AppStateSerializer class is a serialization utility that allows multiple components - in an application to access a common disk I/O medium for state persistence. Using - the same storage medium for persisting the state information across components, without overtly - tying them together, helps avoid the file clutter that is bound to occur by components - using distinct files. Though primarily developed for use by Syncfusion products, the - AppStateSerializer is generic enough to be availed of by other components as well. - - The AppStateSerializer supports serializing into the system's Isolated Storage, Windows Registry, an XML file, - a binary file or to an externally provided Stream. Take a look at the enumeration for more information on - these different supported modes. - - - To use the services of this class, you can create a new instance or use the global Singleton instance. - These two usage patterns are explained below: - - - 1) Using the Singleton: The AppStateSerializer class provides you a singleton instance - (through the ) using which you can persist all your - app. info into a single medium. This singleton, by default, is configured to persist in the - Isolated Storage (with the scope IsolatedStorageScope.Assembly|IsolatedStorageScope.Domain|IsolatedStorageScope.User). - This usage pattern is akin to creating an instance of this class and using the same instance to persist - all your app information. But, note that this Singleton is also used by the Controls and Components in - Essential Tools to persist their information. The default Storage medium of this Singleton instance - can also be customized using the static method. In short, use - the Singleton whenever you want all your persistence information to be stored in a single medium (along - with the persistence information of the Controls and Components in Essential Tools). - - - 2) Using an instance: As an alternative you could create a custom instance - of this class, configuring it to use one of the above storage mediums and persist - one or more information into it. You can use this in tandem with the above Singleton instance - if you wish. Make sure to call method when you are done writing into the serializer. - - - In both the above cases use the - method's and - to persist or depersist from the storage medium set for that instance. - - - Note that the AppStateSerializer class uses "Simple" type names (not strongly typed) to - serialize types. This is necessary to enable usage of persisted information across different - but compatible versions of an assembly. This will however cause the deserialization - process to convert the serialized data to the type from the latest version of the assembly installed in the GAC, - instead of the version that your app is linking to. You can overcome this by - using the method. - - - - - Serializing using an instance: - - // To Save - AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "myfile"); - serializer.SerializeObject("MyLabel", mydata); - serializer.PersistNow(); - // To Load - AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "myfile"); - object loadedObj = serializer.DeserializeObject("MyLabel"); - if(loadedObj != null && loadedObj is MyData) - { - MyData myData = (MyData)loadedObj; - } - - - ' To Save - Dim serializer As New AppStateSerializer(SerializeMode.XMLFile, "myfile") - serializer.SerializeObject("MyLabel", mydata) - serializer.PersistNow() - ' To Load - Dim serializer As New AppStateSerializer(SerializeMode.XMLFile, "myfile") - Dim loadedObj As Object = serializer.DeserializeObject("MyLabel") - If TypeOf loadedObj Is MyData Then - Dim myData As MyData = CType(loadedObj, MyData) - End If - - - - Serializing using Singleton: - - // To Save - AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true); - // To Load - object loadedObj = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel"); - - - ' To Save - AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true) - ' To Load - Dim loadedObj As Object = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel") - - - - - - - Overloaded. Creates an instance of the AppStateSerializer class. - - The in which to create. - The persistence path to be used for this mode. See remarks for more info. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write, and Seek capability. - - - If using the IsolatedStorage mode, then the default isolated storage scope (Domain | Assembly | User) will be used. - Use the three argument constructor to specify a custom scope. - - - - - - Creates an instance of the AppStateSerializer class. - - The in which to create. - The persistence path to be used for this mode. See remarks for more info. - The to be used if the mode is set to SerializeMode.IsolatedStorage. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write, and Seek capability. - - - The scope parameter will be referred to if using the IsolatedStorage mode. - - - - - - Returns a reference to the unique instance. - - The AppStateSerializer instance. - - This method will be removed in a future version. Please use the GetSingleton method instead. - - - - - Returns a reference to the unique instance. - - The AppStateSerializer instance. - - - - Controls the binding of an assembly name to a specific . - - The assembly name string. - The corresponding Assembly to bind to. - - - The AppStateSerializer class, by default, uses "Simple" assembly names (not strongly typed) to serialize types. This - renders the deserialization process unpredictable because the resultant type of an object after - deserialization is dependent upon the latest version of that assembly installed in the GAC, if any. - This will usually result in casting errors during the deserialization process when the app is linking to an older version of the - assembly and when a newer version of the assembly is installed in the GAC. - - - This method allows you to overcome this limitation by associating a "Simple" assembly name with a - specific . - - - - - This example will bind the - assembly that the app is linking to, to the "Simple" assembly name. Do this from the static - constructor of the class that uses the AppStateSerializer - class: - - static MyType() - { - AppStateSerializer.SetBindingInfo("MyNameSpace.MyType", typeof(MyType).Assembly); - } - - - 'In type MyType: - Shared Sub New() - AppStateSerializer.SetBindingInfo("MyNameSpace.MyType", Type.GetType(MyType).Assembly) - End Sub - - - - - - - Binds a type in the specified assembly to the same type in a different assembly. Typically useful - in supporting backward compatibility. - - The assembly name string. - The type name string. - The corresponding Assembly to bind to. - - - This method is useful when you renamed your assembly and you want to map the old types to the - new types in the new assembly. If you didn't rename the assembly, then just consider using the - method. - - - - - - Binds the oldtypename type to the newtypename type. This method comes in handy when serialized types have - undergone a name change and backward compatibility is to be retained. - - The old name of the type. - The new name of the type. - - - - Sets the persistence mode and persistence path for the singleton instance of . - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to the method. - You can force the serializer to clear its serialization map by using the - method. - - This method will be removed in a future version. Please use the InitializeSingleton method instead. - - - A value. - An object that represents the persistence medium. - The IsolatedStorageScope to be used. - - - - Overloaded. Sets the persistence mode and persistence path for the singleton instance of . - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to method. - You can force the serializer to clear its serialization map by using the - method. - - A value. - An object that represents the persistence medium. - The IsolatedStorageScope to be used. Referred only when the mode is IsolatedStorage. - - - - Sets the persistence mode and persistence path for the singleton instance of . - - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to the method. - You can force the serializer to clear its serialization map by using the - method. - - If the mode is set to Isolated Storage, then the default isolated storage scope will be used. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write and Seek capability. - - - - - - public Form1() - { - // To make the singleton use an XML file: - AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile, "GlobalState"); - - InitializeComponent(); - } - - - Public Sub New() - { - ' To make the singleton use an XML file: - AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile, "GlobalState") - - InitializeComponent() - } - - - A value. - An object that represents the persistence medium. - - - - Clears the serialization map and deletes the persistent store. - - If the persistent store is an external stream, then FlushSerializer just clears the - serialization map and returns without affecting the stream. - - - - - - Overloaded. Writes the object to persistent storage under the specified tag. - - A descriptor tag for the object. - The object to be persisted. If NULL, an existing object is removed from the serialization map. - - If the is False, then this method will not serialize. - - - - - Writes the object to persistent storage under the specified tag. - - A descriptor tag for the object. - The object to be persisted. Use NULL to remove an existing object from the serialization map. - When this parameter is True, the object is serialized only at - the point when it is being written to the persistent storage medium. This usually - happens only when the serializer is being finalized. - - If the is False, then this method will not serialize. - - - - - Deserializes the object from the persistent store. - - The object descriptor. - The deserialized object. - - If the is False, then this method will not deserialize. - - - - - Overloaded. Serializes the object to the specified persistence medium. - - A value describing the persistence medium. - Represents the persistence medium. - A string descriptor for the object. - The object to be serialized. Use NULL to delete the object's store. - - If is False, then this method will not serialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and - methods to persist information. Make sure to call when done persisting. - - - - - - Serializes the object to Isolated Storage. - - The name of the IsolatedStorageFile. - The IsolatedStorageScope to be used. - A string descriptor for the object. - The object to be serialized. Use NULL to delete the object's store. - - If is False, then this method will not serialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and - methods to persist information. Make sure to call when done persisting. - - - - - - Overloaded. Deserializes an object from the specified persistent store. - - A value describing the persistence medium. - Represents the persistence medium. - A string descriptor for the object. - The deserialized object. - - If is False, then this method will not deserialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and . - - - - - - Deserializes an object from Isolated Storage. - - The name of the IsolatedStorageFile. - The IsolatedStorageScope to be used. - A string descriptor for the object. - The deserialized object. - - If is False, then this method will not deserialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and . - - - - - - Writes the 's contents to the persistent storage. - - - If is False, then this method will not persist. - - - - - Gets or sets a bool value to indicate whether the exception should throw while reading the file from stream or not. - - - true if it should throw the exception to handle it while reading the file stream; otherwise, false. - - - - - Returns the persistence mode set for the . - - A value. - - - - Returns the persistence path set for the . - - - The persistence path is contextual and is interpreted based on the property value. - - An object of type varying based on the the SerializationMode. - - - - Returns the IsolatedStorageScope used by the . - - An value. - - This property is used only if the mode is set to SerializeMode.IsolatedStorage. - - - - - Indicates whether serialization and deserialization is enabled. - - True to enable serialization; false otherwise. This property is set to True by default. - - This property allows you to temporarily enable / disable serialization. - - - - - - Returns the version of the application (got through the Application.ProductVersion property) - whose state has now been deserialized. - - The version as string if available. String.Empty otherwise. - This gives you some information about the state of the deserialized information - - as to which version of the application it belonged to. - - - - Occurs just before the contents of the are persisted. - - - - - Provides event data for the various ProvidePersistenceID events. - - - - - Gets / sets a unique ID. - - - - - Represents a method that lets you specify a unique ID usually distinguishing different - instances of a control type. - - - - - Specifies the look of the arrow buttons should be drawn. - - - - - Draw normal buttons. - - - - - Draw flat buttons. - - - - - Used by the to allow its content to create a control if it implements this interface. - - - - - Creates a new . - - A new instance. - - - - Provides a method to create a copy of an existing splitter pane or window. - - - - - Creates a copy of an existing splitter pane or window. - - The row in a . - The column in a . - A reference to the parent control, e.g a splitter frame. - A new instance of a control. - - - - Defines split behavior for a . - - - - - No dynamic splitter. - - - - - Split rows vertically. - - - - - Split columns horizontally. - - - - - Allow both splitting the view vertically and horizontally. - - - - - Specifies the current state of the button. - - - - - Button is in normal state. - - - - - Button is disabled. - - - - - Mouse is hovering over button. - - - - - Button is pushed. - - - - - Button is checked. - - - - - Button is considered a drop target of a drag-and-drop operation. - - - - - A mask for the drawing state of the button without behavioral options (without Checked, DropTarget). - - - - - - - - - - - - - - - - - Helper class for . Manages items. - - - - - Initializes an and attaches it to a control. - - The parent control. - - - - - - - Called when a button is clicked. - - The that was clicked. - - Called by OnMouseDownEvent. - - - - - Called from parent control to draw this bar. - - A Graphics object. - - - - Checks if mouse is over a button and returns the zero-based button index or -1. - - X-coordinate of mouse pointer. - Y-coordinate of mouse pointer. - Zero-based button index; -1 if not over a button. - - - - Initializes ToolTips boundaries. - - - - - Reinitializes and hides ToolTips. - - - - - Recalculates boundaries of child buttons. - - True if ToolTips should be initialized too. - - - - Cancels current action. - - - - - Repaints only if marked dirty. - - - - - - - - - - - - - - - - - - - - Resets hovered state for all buttons. - - - - - Resets pushed state for all buttons. - - - - - Gets / sets the button array. - - - - - Indicates whether a button is currently pressed. - - - - - Gets / sets the boundaries of this bar. - - - - - Gets / sets the default size for buttons in this bar. - - - - - Indicates whether it is flat look for buttons. - - - - - Indicates whether any button is dirty or sets all buttons dirty. - - - - - Indicates whether any button is enabled or sets all buttons enabled / disabled. - - - - - Indicates whether any button is in hovered state. - - - - - Indicates whether any button is in pushed state. - - - - - Gets / sets the delay until the button starts firing click events - when the user holds down the mouse button. - - - - - Gets / sets the minimum delay between clicks when scrolling is accelerated. - - - - - Gets/Sets whether AddNewButton needs to drawn in TabBar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the visual style of the tabBarSplitterControl. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Interface for Spreadsheet Tabpage - - - - - Gets the bool value - - - - - Handles the or the events. - - - - - Provides event data for the - or the event. - - - - - Returns the control inside the specified pane. - - - - - Returns the zero-based row number of the pane. - - - - - Returns the zero-based column number of the pane. - - - - - Returns a reference to the control at the top-left pane. - - - - - Defines an interface that provides methods for creating and hiding controls for - a splitter pane inside a . - - - - - Creates a new control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the first splitter pane. - A new instance of a control. - - - - Hides / disposes the control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the splitter pane that should be hidden. - - - - This is the default implementation of the and manages - creating and hiding of controls for - a splitter pane inside a . - - - You can get or replace this object with the property - of a control. - - - - Creates a new control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the first splitter pane. - A new instance of a control. - - - - Hides / disposes the control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the splitter pane that should be hidden. - - - - Specifies the style Control - - - - - Specifies the Default style of the control - - - - - Specifies the Metro style of the Control - - - - - Specifies the Office2016 style of the Control - - - - - holds information about the current vertical and horizontal split positions. - - - - - Gets / sets the horizontal splitter position in pixels. - - - - - Gets / sets the vertical splitter position in pixels. - - - - - Provides style identity information for nested expandable objects of the GridStyleInfo and TreeStyleInfo classes. - - - - - Provides style identity information for subobjects. - - - - - This is an abstract base class that provides identity information - for objects. - - - - - Loops through all base styles until it finds a style that has a specific property initialized. - - - A that identifies the property to operate on. - A that has the property initialized. - - - - Releases all resources used by the component. - - - - - Loops through all base styles until it finds an expandable - that has one or more properties initialized. - - The style object. - A that identifies the property to operate on. - A that has the property initialized. - - - - Returns an array with base styles for the specified style object. - - The style object. - An array of style objects that are base styles for the current style object. - - - - Occurs when a property in the has changed. - - The instance that has changed. - A that identifies the property to operate on. - - - - Occurs before a property in the is changing. - - The instance that is changed. - A that identifies the property to operate on. - - - - Gets / sets another identity object to be used for determining base styles. - GetBaseStyle will call InnerIdentity.GetBaseStyle if this object is not NULL. - - - - - Gets or sets a value indicating whether this object is disposable. - - - true if this object is disposable; otherwise, false. - - - - - Releases all the resources used by the component. - - - - - Instantiates a new for a - given owner and . - - The owner style of the sub object. - The identifier of the subobject in the owner object. - - - - Returns an array with base styles for the specified style object. - - The style object. - - An array of style objects that are base styles for the current style object. - - - - - Returns the owner style of the subobject. - - - - - Returns the identifier of the subobject in the owner object. - - - - - Creates a new object and associates it with a . - - The that owns this subobject. - The descriptor for this expandable subobject. - - - - - - - - - - Looks for an entry that contains the given key, null is returned if the - key is not found. - - - - - A routine used by enumerators that need a sorted map - - - - - A routine used by enumerators to iterate through the map - - - - - A routine used to iterate through all the entries in the map - - - - - Promotes the key/value pairs in the current collection to the next larger - and more complex storage model. - - - - - Size of this data store - - - - - A simple class to handle a single key/value pair - - - - - A simple class to handle a single object with 3 key/value pairs. The pairs are stored unsorted - and uses a linear search. Perf analysis showed that this yielded better memory locality and - perf than an object and an array. - - - This map inserts at the last position. Any time we add to the map we set _sorted to false. If you need - to iterate through the map in sorted order you must call Sort before using GetKeyValuePair. - - - - - A simple class to handle a single object with 6 key/value pairs. The pairs are stored unsorted - and uses a linear search. Perf analysis showed that this yielded better memory locality and - perf than an object and an array. - - - This map inserts at the last position. Any time we add to the map we set _sorted to false. If you need - to iterate through the map in sorted order you must call Sort before using GetKeyValuePair. - - - - - A simple class to handle an array of between 6 and 12 key/value pairs. It is unsorted - and uses a linear search. Perf analysis showed that this was the optimal size for both - memory and perf. The values may need to be adjusted as the CLR and Avalon evolve. - - - - - FrugalMapIterationCallback - - - - - Allows you to specify a custom name for the StaticData field - in a . - - - - - Specifies the default field name as "staticDataStore". - - - - - Initializes a new instance of the class. - - - - - - - - - - - - - - Returns the field name in the class - that identifies the static data store. - - - - - Provides data for the event. - - - - - Initializes the object with the property that has changed. - - Identifies the property that has changed. - - - - Returns the property that has changed. - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - - - - Defines an interface implemented both by and - that allows you to check the state of the object, read and write specific property and execute - style operations with the . method. - - - - - Compares all properties with another style object and indicates whether - the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Merges two styles. Resets all properties that differ among the two style object - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Parses a given string and applies the results to affected properties in this style object. - - The string to be interpreted. - - consumes strings previously generated with - a method call. - - - - - Indicates whether a specific property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether the style is empty. - - - - - Indicates whether any properties for this object have changed since it was applied last time. - - - - - Returns the object that holds all the data for this style object. - - - - - defines an interface for classes - used as sub-objects in a . - - - implements this interface. - - - - - Makes an exact copy of the current object. - - The new owner style object for the copied object. - The identifier for this object. - A copy of the current object and registered with the new owner style object. - - - - Returns a unique identifier for this sub object in the owner style object. - - - - - Returns a reference to the owner style object. - - - - - Returns the data for this object. This is the StyleInfoStore from the constructor. - - - - - Provides a wrapper object for the object with type - safe access to all properties stored in the style object. - - Style objects provide a very user friendly way to modify data. It is very much like in Excel VBA. - For example, to change the bold setting for a cell, you simply call grid[5,2].Font.Bold = True. - - - The is a wrapper around the . - It provides type safe accessor properties to modify data of the underlying - data store and can hold temporary information about the style object that - does not need to be persisted. - - In Essential Grid for the example, the GridStyleInfo class holds extensive identity - information about a style object such as cached base styles, row and column index, - a reference to the grid model, and more. This is all the information that can be discarded - when the style is no longer used (because maybe the cell is not visible anymore). Only - the part needs to be kept alive. - - Style objects only exist temporarily and will be created as a weak reference in a - volatile data store. Once Garbage Collection kicks in smart style objects that are not - referenced any more will be garbage collected. The volatile data cache can also be - cleared manually. - - Because Style objects know their identity they can notify their owner of changes or - load base style information when the user interacts with the style object. This allows - you to make changes to a style object directly, such as Cell.Font.Bold = True; - - Style objects support property inheritance from parent styles, e.g. in a grid a cell - can inherit properties from a parent row, column, table or a collection of names styles - in a base styles map. - - Style objects support subobjects. Subobjects can support inheritance (e.g. a Font.Bold - can be inherited). Immutable subobjects like BrushInfo don't support inheritance of - individual properties. - - allows you to register any number of properties but keeps the data - very memory efficient. Only properties that are actually used for a style - object will be allocated for an object. The StyleObjectStore handles the storage of the object. - For short integers, enums and Boolean values, the data will be stored in a BitVector32 - structure to save even more memory. - - Programmers can derive their own style classes from - and add type-safe (and intellisense) - supported custom properties to the style class. If you write, for example, your own - SpinButton class that needs individual properties, simply add a �CellSpinButtonInfo� - class as subobject. If you derive CellSpinButtonInfo from StyleInfoSubObjectBase, - your new object will support property inheritance from base styles. - - Style objects can be written into a string (see ) and later be recreated - using the method. When writing the string you have the option to show - default values (use the �d� format). Subobjects will be identified with a dot - �.�, e.g. �Font.Bold� - - Style object support several operations how to combine information from two styles. Style operations - include: apply changes, apply initialized properties, override initialized properties, exclude properties. - See the method. - - Style objects integrate with . The property grid - displays values that belong to a style object in bold. Values that are inherited from parent - styles will be displayed as default values. The user can select several cells in a grid and - the operation will show common settings in the property grid as bold. - - Style objects support BeginUpdate, EndUpdate mechanism. This allows users to batch several operations - on a style object into one transaction. - - - The following example shows how you can use the GridFontInfo class in Essential Grid: - - standard.Font.Facename = "Helvetica"; - model[1, 3].Font.Bold = true; - string faceName = model[1, 3].Font.Facename; // any cell inherits standard style - Console.WriteLIne(faceName); // will output "Helvetica" - Console.WriteLIne(model[1, 3].Font.Bold); // will output "true" - Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False" - - - - - - - - Serializes the contents of this object into an XML stream. - - Represents the XML stream. - - - - Not implemented and returns NULL. - - - - - - Deserializes the contents of this object from an XML stream. - - Represents the XML stream. - - - - - - - - - - - - - Sets the object that holds all the data for this style object. - - - - - - Clears the cache. - - - - - Overloaded. Initializes a new style object with no identity and data initialized. - - - - - Initalizes a new object and associates it with an existing . - - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initalizes a new object and associates it with an existing and . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initalizes a new object and associates it with an existing and . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - if set to true the style the resulting value of a property when inherited from a basestyle - so that the property does not have to be evaluated multiple times when called repeatedly. - - - - Releases all resources used by the component. - - - - - Indicates whether two style objects are equal. Identity is left out with this comparison, - only the data () are compared. - - The other style object to compare the current object with. - True if both objects have equal data; false otherwise. - - - - Compares two objects for equality. Works also with NULL references. - - The first object to compare. - The second object to compare. - True if both objects are equal. - - - - Returns a hash code which is based on values inside the . - - An integer hash code. - - - - Overloaded. Creates a formatted string for this style object. This string can - later be consumed by . - - A string with formatted style information. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string, you have the option to show default values - (use the �d� format). - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Creates a formatted string for this style object. This string can - later be consumed by . You can specify - "d" as format if you want to write out default values inherited from a base style. - - Use "d" if default values should be included; "G" and NULL are default. - A string with formatted style information. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string you have the option to show default values - (use the "d" format) or not. - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Creates a formatted string for this style object. This string can - later be consumed by . You can specify - "d" as format if you want to write out default values inherited from a base style. - - Use "d" if default values should be included; "G" and NULL are default. - A string with formatted style information. - An to be used - for the operation. Can be NULL. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string you have the option to show default values - (use the "d" format) or not. - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Parses a given string and applies it's results to affected properties in this style object. - - The string to be parsed. - - consumes strings previously generated with - a method call. - - - - - Suspends raising events until is called - and will not change the state of this object. - - - - - Resumes raising events and resets the state of this object. - - - - - Suspends raising events until is called. - - - - - Suspends raising events and if changes were - made before the call, it will raise a changed - notification immediately. - - - - - Override this method to return a default style object for your derived class. - - A default style object. - - You should cache the default style object in a static field. - - - - - Override this method to create a product-specific identity object for a sub object. - - An identity object for a subobject of this style. - - The following code is an example how Essential Grid creates GridStyleInfoSubObjectIdentity: - - public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) - { - return new GridStyleInfoSubObjectIdentity(this, sip); - } - - - - - - Locates the in the list of base styles that - provides a specific property. - - Identifies the property to look for. - The style store object that has the specified property. - - - - Locates the base style that has the specified property and returns its instance. - - Identifies the property to look for. - The style object that has the specified property. - - - - - - - Notifies the associated identity object that a specific property - was changed and raises a event. - - Identifies the property to look for. - - - - Notifies the associated identity object that a specific property - will be changed and raises a event. - - Identifies the property to look for. - - - - Compares all properties with another style object and indicates - whether the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Copies properties from another style object. This method raises Changing and Changed - notifications if the other object differs. (ModifyStyle does not raise these events). - - The style object to be applied on the current object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - - - - Merges two styles. Resets all properties that differ among the two style objects - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Indicates whether the specified property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether the specified property has been modified for the current object. - - A that identifies the property to operate on. - - - - Marks the specified property as uninitialized for the current object. - - A that identifies the property to operate on. - - - - - - - Queries the value for the specified property that has been initialized for the current object - or locates it in a base style. - - A that identifies the property to operate on. - - - - Gets the default value from a base style. - - The sip. - - - - - Queries the value for the specified property that has been initialized for the current object - or locates it in a base style. - - A that identifies the property to operate on. - - - - Overloaded. Initializes the value for the specified property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Initializes the value for the specified property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Gets / sets the identity information for the current . - - - - - The object that holds all the data for this style object. - - - - - - - - Gets or sets a value indicating whether this instance should cache values for resolved base style properties. - - true if instance should cache values; otherwise, false. - - - - Occurs when a property in the style object or in a sub object is changed. - - - - - A list of listeners that will be referenced using a WeakReference. The - listeners must implement the interface. When - this style object method is called it - will then loop through all objects in this list and call each objects - method. - - - - - Occurs before a property in the style object or in a sub object is changed. - - - - - Indicates whether was called for this object. - - - - - Indicates whether the style is empty. - - - - - Indicates whether any properties for this object have changed since it was applied last time. - - - - - Specifies whether a property should be serialized. - - - - - - Specifies that a property should be serialized. - This field is Read-only. - - - - - Specifies that a property should not be serialized. - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be serialized; otherwise. The default is . - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A - True if property has a ; False otherwise. - - - - Indicates whether a property is shown in the ToString result. - - - - - Specifies whether a property should be cloned. - - - - - - Specifies that a property should be cloned if the assigned object implements ICloneable. - This field is Read-only. - - - - - Specifies that a property should never be cloned even if the assigned object implements ICloneable - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be should be cloned if the assigned object implements ICloneable; otherwise. The default is - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A - True if property has a ; false otherwise. - - - - Indicates whether a property should be cloned if the assigned object implements ICloneable. - - - - - Specifies whether a property should be disposed. - - - - - - Specifies that a property should be disposed if the assigned object implements IDisposeable. - This field is Read-only. - - - - - Specifies that a property should never be disposed even if the assigned object implements IDisposeable - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be should be disposed if the assigned object implements IDisposeable; otherwise. The default is - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; false otherwise. - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; false otherwise. - - - - Indicates whether a property should be disposed if the assigned object implements IDisposeable. - - - - - Implement this interface if you want to assign this class to a object's - property and you need to control whether the object should be cloned. - - - This interface is only considered if the of - of the is True. - (This is the default.) - - - - - - - Clones this object. - - A reference to a clone of this object. - - - - Disposes this object. - - - - - Returns True if this object should be cloned if you assign it to a object's - property; false otherwise. - - True if this object should be cloned if you assign it to a object's - property; false otherwise. - - - - Returns True if this object should be disposed if it is reset in a object's - property; false otherwise. - - True if this object should be disposed if it is reset in a object's - property; false otherwise. - - - - Implements the method which is called from - of a - if the object is in - collection. - - - - - Called from of a - object. - - The instance containing the event data. - - - - Provides a type converter to convert expandable objects to and from various - other representations. - - - - - Indicates whether this object supports properties using the - specified context. - - - - - Indicates whether this converter can - convert an object to the given destination type using the specified context. - - - - - Converts the given value object to - the specified destination type using the specified context and arguments. - - - - - Returns a collection of properties for - the type of array specified by the value parameter using the specified context and - attributes. - - - - - A form that displays a with Apply and OK buttons. - - - - - - - Initializes a new with an object whose properties should be displayed. - - The object for which properties should be displayed. - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Returns the apply button. You should set up a listener for a Click event. - - - - - - - - Provides a unique identifier for a property in a style object and stores - information about the associated property. - - - is allocated once on the global heap for each - property in a style object. Type safe wrappers make - use of StyleInfoProperty to query, set or reset specific properties. - - Holds information about the property: PropertyType, Name, how to load and save - its state in StyleInfoStore, attributes, etc. - - - - - The type of the component this property is bound to. - - - - - The type of the property. - - - - - The name of the property. - - - - - Represents a method that creates a Subobject of this type and associates it with a parent style object. - - - - - Indicates whether this is an object derived from . - - - - - Indicates whether this object supports being serialized. The value can be set - with a in your class implementation. - - - - - Indicates whether this object should call ICloneable.Clone when an assigned object implements - the ICloneable or interface. The value can be set - with a in your class implementation. - - - - - Indicates whether this object should call ICloneable.Clone when an assigned object implements - the IDisposable or interface. The value can be set - also with a in your class implementation. - - - - - If property is marked with Browsable(true), custom attribute of this flag allows you - to specify whether the property should appear in PropertyGrid. If property is marked - with Browsable(false), then this setting will have no effect. Default is true. - - - - - Indicates whether type information should be included when is called. Use - this if PropertyType is System.Obbject and you want to be able to parse written values. - An example is GridStyleInfo.CellValue. Default is false. - - - - - Indicates whether type information should be converted to Base64 if associated - Type converter supports converting value to and from Base64. An example is a bitmap assigned to GridStyleInfo.CellValue. - If IsConvertibleToBase64String is true, then the grid will convert the bitmap to a Base64 string - and write out the information in the GridStyleInfo.ToString() method and also in the WriteXml method. Default is false. - - - - - Defines how to serialize property when style data is serialized to or from an XML stream - with . - - - - - Returns the of this property. - - Property info of this property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Method to dispose StyleInfoProperty object - - - - - Initializes a new StyleInfoProperty. - - - - - - - - Formats a given value that is of the same type as the . - - The value to be formatted. - A string with formatted text. - calls this method. - - The event lets you customize the formatting of this property but care - should be taken that the formatted text can be consumed by the - method. - - - - - Overloaded. Parses a given value that is of the same type as the . - - The string to be parsed. - An object of the same type as the created from the parsed string information. - - calls this method. - - The event lets you customize the parsing of this property. - - - - - Parses a given value and converts it to a requested . - - The string to be parsed. - The for the resulting object. - A format provider. - An object of type "resultType" created from the parsed string information. - - The event lets you customize the parsing of this property. - - - - - Handles parse requests for this property. - - - - - Handles formatting requests for this property. - - - - - Handles requests to serialize this property to an XML stream during an - operation of the - class. - - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream, you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Handles requests to deserialize this property from an XML stream during an - operation of the - class. - - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Defines how to serialize property when style data is serialized to or from an XML stream. - with . - - - - - Default. Serialize as string when type is simple. Using XmlSerializer for complex types - or properties where the actual type is not known at compile-time (e.g. CellValue). - - - - - Skip this property. Do not serialize. - - - - - Serialize this property as string using and - . - - - - - Serialize this property using . - - - - - Provides data for the and events. - - - The is used to format and unformat values represented by - a property in a object. The Format event occurs whenever a property - is written out as string and the Parse event occurs whenever the value is read back in from a string. - - If you handle this event, store the resulting value into and - set to True. - - - - - Initializes a new instance of the class. - - An Object that contains the value of the current property. - The Type of the value. - - - - Gets / sets the value of the object. - - - - - Returns the data type of the desired value. - - - The DesiredType property enables you to check the type of the property that the value is being converted to. - - - - - Handles the or event. - - - - - Handles the event of . - - - - - Provides data for the event. - - - The is used to serialize a property of a - object. The WriteXml event occurs whenever a property - is serialized to an XML stream during an operation - of the class. - - If you handle this event, you set to True. - Handling this event allows you to customize the way the object is serialized or skip - serialization. - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects' DataSource property). With such a scenario, you could write out a - identifier and when the property is deserialized from an XML stream, you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Initializes a new object. - - The for the XML stream. - The style object that is being serialized. - The property that is being serialized. - - - - Returns the for the XML stream. - - - - - Returns the style object that is being serialized. - - - - - Returns the property that is being serialized. Call of - the to get the value for this property. - - - - - Handles the event of . - - - - - Provides data for the event. - - - The is used to deserialize a property of a - object. The ReadXml event occurs whenever a property - is deserialized from an XML stream during an - operation of the class. - - If you handle this event, you set to True. - Call of - the to save the value for this property into the style object. - Handling this event allows you to customize the way the object is deserialized or skip - serialization. - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Initializes a new object. - - The for the XML stream. - The style object that is deserialized. - The property that is being deserialized. - - - - Returns the for the XML stream. - - - - - Returns the style object that is deserialized. - - - - - Returns the property that is being deserialized. Call of - the to save the value for this property into the style object. - - - - - - Indicates whether the component will allow its value to be reset. - - The component to reset. - - True if the component supports resetting of its value. - - - - - - - Retrieves the value of the property for the given component. This will - throw an exception if the component does not have this property. - - The component. - - The value of the property. This can be cast - to the property type. - - - - - - - Resets the value of this property on the specified component to the default value. - - The component whose property is to be reset. - - - - - - Sets the value of this property on the specified component. - - The component whose property is to be set. - The new value of the property. - - - - - - Indicates whether this property should be persisted. A property is - to be persisted if it is marked as persistable through a - PersistableAttribute and if the property contains something other - than the default value. Note, however, that this method will - return True for design-time properties as well, so callers - should also check to see if a property is design-time only before - persisting to run-time storage. - - The component on which the property resides. - - True if the property should be persisted to either - design-time or run-time storage. - - - - - - Retrieves the type of the component this PropertyDescriptor is bound to. - - - The type of component. - - - - - - Retrieves the display name of the property. This is the name that will - be displayed in a property browser. This will be the same as the property - name for most properties. - - - A string containing the name to display in the property browser. - - - - - - - Indicates whether the property can be written to. - - - True if the property can be written to. - - - - - - - Retrieves the data type of the property. - - - A class representing the data type of the property. - - - - - - provides conversion routines for values - to convert them to another type and routines for formatting values. - - - - - Converts value from one type to another using an optional . - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - The new value in the target type. - - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - Indicates whether exceptions should be avoided or catched and return value should be DBNull if - it cannot be converted to the target type. - The new value in the target type. - - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - Format string. - Indicates whether exceptions should be avoided or catched and return value should be DBNull if - it cannot be converted to the target type. - The new value in the target type. - - - - Overloaded. Parses the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - The new value in the target type. - - - - Parses the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A format string used in a call. Right now - format is only interpreted to enable roundtripping for formatted dates. - - The new value in the target type. - - - - Parse the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A format string used in a call. Right now - format is only interpreted to enable roundtripping for formatted dates. - - Indicates whether DbNull should be returned if value cannot be parsed. Otherwise an exception is thrown. - The new value in the target type. - - - - Parse the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A string array holding permissible formats used in a call. Right now - formats is only interpreted to enable roundtripping for formatted dates. - - Indicates whether DbNull should be returned if value cannot be parsed. Otherwise an exception is thrown. - The new value in the target type. - - - - Generates display text using the specified format, culture info and number format. - - The value to format. - The value type on which formatting is based. The original value will first be converted to this type. - The format like in ToString(string format). - The for formatting the value. - The for formatting the value. - The string with the formatted text for the value. - - - - Returns a representative value for any given type. Is useful to preview the - result of a format in . See - - The . - A value with the specified type. - - - - Overloaded. Parses the given string including type information. String can be in format %lt;type> 'value' - - - - - - - - Parses the given string including type information. String can be in format %lt;type> 'value' - - - - Indicates whether TypeConverter should be checked whether the type to be - parsed supports conversion to/from byte array (e.g. an Image) - - - - - Indicates whether the TypeConverter associated with the type supports conversion to/from a byte array (e.g. an Image). - If that is the case the string is converted to a byte array from a base64 string. - - - - - - - - - Overloaded. Formats the given value as string including type information. String will be in format %lt;type> 'value' - - - - - - - Formats the given value as string including type information. String will be in format %lt;type> 'value' - - - Indicates whether TypeConverter should be checked whether the type to be - parsed supports conversion to/from byte array (e.g. an Image) - - - - - Indicates whether the TypeConverter associated with the type supports conversion to/from a byte array (e.g. an Image). - If that is the case the string is converted to a base64 string from a byte array. - - - - - - - Returns the type name. If type is not in mscorlib, the assembly name is appended. - - - - - - - Returns the type from the specified name. If an assembly name is appended the list of currently loaded - assemblies in the current AppDomain are checked. - - - - - - - Indicates whether string is null or empty. - - - - - - - Indicates whether should trim whitespace characters from - the end of the formatted text. - - - - - StyleInfoPropertyGrid is a that will reset a specific property when the user right-clicks on the item. - - - - - - - - Holds all StyleInfoProperties used by derived classes. - This should go in a product specific StaticData. - The concrete Style class could provide a static memory StaticData that belongs - to the process and library. - - - - - Method to dispose static data object internally for disposing Chart styles. - - - - - Initializes a new object with information about the parent style class. - - - Will be used to access the PropertyInfo and its custom attributes for a property. - - - - - - - - - - - Registers a for the specified property. - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - Specifies options for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - Specifies options for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - Specifies options for the property. - The component type that hosts the property. - The StyleInfoProperty with information about the property. - - - - Gets type of StyleInfo which is parent of store with current staticdata - - - - - Returns a collection with objects. - - - - - - - - Indicates whether properties have been registered. Returns True if not registered; False otherwise. - - - - - Provides storage for the object. - - - You cannot instantiate a class directly. You have - to derive a concrete class from this class that you can instantiate. - In derived classes of , you always need to - implement a / - pair. The holds all the data that are specific - to the style object and should be persisted. - The is a wrapper around the . - It provides type safe accessor properties to modify data of the underlying - data store and can hold temporary information about the style object that - does not need to be persisted. - - In Essential Grid for example, the GridStyleInfo class holds extensive identity - information about a style object such as cached base styles, row and column index, - a reference to the grid model and more. These are all the information that can be discarded - when the style is no longer used (because maybe the cell is not visible anymore). Only - the part needs to be kept alive. - - allows you to register any number of properties but keeps the data - very memory efficient. Only properties that are actually used for a style - object will be allocated for an object. The StyleObjectStore handles the storage of objects. - For short integers, enums and Boolean values the data will be stored in a BitVector32 - structure to save even more memory. - - See the overview for for further discussion about style objects. - - - - - - - Searches the with the given name. - - The name of the property to look for. - A that is associated with the specified name. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Initializes an empty . - - - - - Creates an exact copy of the current object. - - A with same data as the current object. - - - - Copies all properties to another . - - The target to copy all properties to. - - - - Releases all the resources used by the component. - - - - - - - - - - - - - - Resets all "Changed" bits that mark certain properties as modified. - - - - - Clears out all properties for this . - - - - - Indicates whether a specific property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether a specific property has been modified for the current object. - - A that identifies the property to operate on. - - - - Marks a specific property as modified or unmodified for the current object. - - A that identifies the property to operate on. - The new value. - - - - Marks a specific property as uninitialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Overloaded. Initializes the value for a specific property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Initializes the value for a specific property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Gets sip from current storage by sip from another store - - - - - - - Checks SIP belonging to current store. If current store doesn't contain SIP than returns SIP from current store with identical PropertyName. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Compares all properties with another style object and determines - if the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Applies changes to a style object as specified with . If a property is modified - its Changed flag is set so that the parent style object can identify modified properties in a subsequent Changed notification. - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Merges two styles. Resets all properties that differ among the two style objects - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Applies changes to a style object as specified with - - The other style object this style object should inherit with. - Style operation - - - - Modifieds property from different stores - - - - - - - - Assigns property with sipInfo from style - - - - - - - if sipSrc is different store with current store than find StyleInfoProperty in current store with identical PropertyName and reset property - - sip from some store - - - - Modifies expanded property - - sip from another storage - style source - operation - - - - Allows customization of serializing the StyleInfoProperty. Returns True if you override - this method and do not want default serialization behavior for this property. - - - - - Allows customization of serializing the StyleInfoProperty. Returns True if you override - this method and do not want default serialization behavior for this property. - - - - - Serializes all properties of this object to XML. - - - - - Registers the XmlSerializer for a specific type. This XmlSerializer will - be used when a object of the specified type is read back in from an xml stream. - You can for example register an "ImageHolder" serializer for a custom ImageHolder type - and have that serializer be used when GridStyleInfo.CellValue contains an ImageHolder object. - - - - - - XmlSerializer imageHolderSerializer = new XmlSerializer(typeof(object), new Type[] { typeof(ImageHolder) }); - GridStyleInfoStore.RegisterXmlSerializer(typeof(ImageHolder), imageHolderSerializer); - - - - - - Serializes all properties of this object from XML. - - - - - - - - Returns a collection with objects. - - - - - Static data must be declared static in derived classes (this avoids collisions - when StyleInfoStore is used in the same project for different types of style - classes). - - - - - The class checks this property - to find out about the sort order of the properties in this . - - - - - Indicates whether this is an empty object and no properties have been initialized. - - - - - Indicates whether any properties have been changed. - - - - - Specifies the options for style properties. - - - - - None. - - - - - The property supports serialization. - - - - - The property should be cloned when the parent style object is copied. - - - - - The property should be disposed when the parent style object is disposed. - - - - - The property should be disposed when the parent style object is disposed - and cloned when the parent style object is copied. - - - - - All of the above. - - - - - is an abstract base class for classes - to be used as subobjects in a . - - - is derived from - and thus provides the same easy way to provide properties that can inherit values - from base styles at run-time. - The difference is that supports this inheritance - mechanism as a subobject from a . A subobject needs to - have knowledge about its parent object and be able to walk the base styles from the - parent object. - Examples for implementation of are the font and border - classes in Essential Grid. - Programmers can derive their own style classes from - and add type-safe (and Intelli-sense) - supported custom properties to the style class. If you write your own - SpinButton class that needs individual properties, simply add a "CellSpinButtonInfo" - class as subobject. If you derive CellSpinButtonInfo from StyleInfoSubObjectBase, - your new object will support property inheritance from base styles. - - See the overview for for further discussion about style objects. - - The following example shows how you can use the GridFontInfo class in Essential Grid: - - standard.Font.Facename = "Helvetica"; - model[1, 3].Font.Bold = true; - string faceName = model[1, 3].Font.Facename; // any cell inherits standard style - Console.WriteLIne(faceName); // will output "Helvetica" - Console.WriteLIne(model[1, 3].Font.Bold); // will output "true" - Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False" - - - - - - Overloaded. Initializes a new object and associates it with an existing . - - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initializes a new object and associates it with an existing . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Releases all the resources used by the component. - - - - - - - - Locates the base style that has the specified property and returns its instance. - - Identifies the property to look for. - The style object that has the specified property. - - - - Makes an exact copy of the current object. - - The new owner style object for the copied object. - The identifier for this object. - A copy of the current object registered with the new owner style object. - - - - Returns the with identity information about this object. - - - - - Returns a unique identifier for this subobject in the owner style object. - - - - - Returns the data for this object. This is the StyleInfoStore from the constructor. - - - - - Returns a reference to the owner style object. - - - - - StyleModifyType defines style operations for . - - - - - Copies all initialized properties. - - - - - Copies only properties that have not been initialized in the target style object. - - - - - Copies all properties and resets properties in the target style. - - - - - Resets properties in the target style that have been marked as initialized in the source style. - - - - - Clears out all properties. - - - - - Copies and resets all properties in the target style when the property has been marked as changed in the source style. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required designer variable. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required designer variable. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets the assiciated with this dialog. - - - - - Cannot create default instance of SpellCheckerDialog. - - - - - Handles this event to change the text while double clicking the item in LBox_Suggestions. - - - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Cannot create default instance of SpellCheckerDialog. - - - - - Handles this event to change the text while double clicking the item in LBox_Suggestions. - - - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Utility class for performing soundex algorithm. - - - - - Initializing the soundex object. - - - - - Return the soundex code for a given string. - - - - - Transform the A-Z alphabetic characters to the appropriate soundex code. - . - String - Soundex code for the given word. - - - - - Compute Levenshtein distance. - - String 1 - String 2 - Distance between the two strings. - The larger the number, the bigger the difference. - - - - - Gets the next word from the alphabet list. - - - - - - Specifies the path of the dictionary. - - - - - Specifies the path of the custom dictionary. - - - - - ArrayList to hold the wrong words. - - - - - Specifies whether to ignore internet address during spell check. - - - - - Specifies to ignore email address during spell check. - - - - - Specifies to ignore html tags during spell check. - - - - - Specifies to ignore file names during spell check. - - - - - Specifies to ignore words in mixed case during spell check. - - - - - Specifies to ignore words in upper case during spell check. - - - - - Specifies to ignore words with number during spell check. - - - - - Specifies to ignore words repeated words during spell check. - - - - - Allows to customize the number of suggestions to be displayed in the suggestion list. - - - - - Specifies to ignore special symbols during spell check. - - - - - Stream that contains the dictionary. - - - - - Serializing the ChangeAllText property - - - - - - Serializing the IsSpreadsheetLikeSpellChecker property - - - - - - Serializing the CloseReason property - - - - - - Reset the ChangeAllText property - - ChangeAllText - - - - Serializing the Reset property - - IsSpreadsheetLikeSpellChecker - - - - Performs the spell check operation. - - - - - Converts the dictionary entries to array list. - - - - - Converts the dictionary entries to array list. - - - - - Gets the items from the dictionary list. - - - - - Gets the items from the dictionary list. - - - - - Gets the Soundex code. - - - - - Checks for the Upper case. - - - - - Checks for the First letter captial. - - - - - Finds the casing for the given word. - - - - - - Generates the word list by deleting a single alphabet and interchanging the adjacent alphabets every time - - - - - Splits the retrieved sentence into words. - - - - - Checks whether the word is present in the dictionary. - - - - - Checks the dictinary, to identify the misspelled words. - - ArrayList - wrongWords - - - - - Checks the dictionary to generate the suggestion list. - - ArrayList - String - suggest_list - - - - - Chnages the string in the suggestion list as per the casing in the Error word - - - - - - Gets the suggestion list generated using the Soundex Alogrithm. - - ArrayList - String - - - - To customize the number of suggestions to be displayed. - - ArrayList - errror_string - - - - - Raises the events. - - - - - - Checks the text of the for misspellings with . - - IEditor whose text is to be checked for misspellings. - - - - Shows the . - - Form that owns this dialog. - - - - Shows the . - - Form that owns this dialog. - - - - Deletes the contents of the dictionary file by overwritting. - - File path whose content to be deleted. - - - - Deletes the specified word from the customdictionary. - - Specifies the path of the dictionay file. - Specifies the word to be deleted. - - - - Writes the specified word to the dictionary. - - Specifies the path of the dictionay file. - Specifies the word to be added to the dictionary. - - - - Overwrites the specified wordlist to the dictionary. - - Specifies the path of the dictionay file. - List of words to overrite the dictionary. - - - - SpellCheckerDialog. - - - - - Gets/Sets the status of the dialog window - - - - - Gets or Sets a value specifying whether to ignore repeated words during spell check. - - - - - Gets or Sets a value specifying whether to ignore words in mixed case during spell check. - - - - - Gets or Sets a value specifying whether to ignore words in upper case during spell check. - - - - - Gets or Sets a value specifying whether to ignore words with number during spell check. - - - - - Gets or Sets a value specifying the number of suggestions to be displayed in the suggestion list. - - - - - Gets or Sets a value specifying whether to ignore special symbols during spell check. - - - - - Gets or Sets a value specifying whether to ignore file names during spell check. - - - - - Gets or Sets a value specifying whether to ignore internet address during spell check. - - - - - Gets or Sets a value specifying the path of the dictionary. - - - - - Gets or Sets a value specifying the path of the custom dictionary. - - - - - Gets or Sets a value specifying whether to ignore email address during spell check. - - - - - Gets or Sets a value specifying whether to ignore html tags during spell check. - - - - - Holds the list of misspelled words. - - - - - Gets/Sets the value to indendify the type of the SpellChecker. - - - - - Holds the string of the change all. - - - - - Gets or sets the stream that contains the dictionary. - - - - - Checks for the Upper case. - - - - - Checks for the First letter captial. - - - - - Raised when there is an exception in the . - - - - - Defines a interface that provides methods to interact with the editor. - - - - - Selects the word specified by the index. - - Zero based index of the word on the Text. - length of the word to be selected. - - - - Gets or sets the whose is to be spell checked. - - - - - Gets or sets the current misspelled word. - - - - - Gets or sets the Text to be spell checked by the - - - - - Implements interface to interact with instance of . - - - - - Initializes a new instance of class that hosts the control. - - - - - - Selects the word specified by the index. - - Zero based index of the word on the Text. - length of the word to be selected. - - - - Gets or sets the whose is to be spell checked. - - - - - Gets or sets the current misspelled word. - - - - - Gets or sets the Text to be spell checked by the - - - - - - - - Initializes a new instance of the class. - - The instance subclasses . - - - - - - - Invokes the default window procedure associated with this window. - - A that is associated with the current Windows message. - - - - - - - - - - - - - - - - - - - - - - Instance of TextBoxExt - - - - - Initializes a new instance of the class. - - - - - Initializes the designer with the specified component. - - The to associate the designer with. This component must always be an instance of, or derive from, . - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Returns a representing the bounds of this control. - - A value that specifies the selection state. - - A . - - - - - Raises the TextAlignChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the TextChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the ForeColorChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the CharacterCasingChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the BackColorChanged event. - - The TextBox control that sends the event. - The event data. - - - - Gets the design-time action lists supported by the component associated with the designer. - - - - The design-time action lists supported by the component associated with the designer. - - - - - Gets the selection rules that indicate the movement capabilities of a component. - - - - A bitwise combination of values. - - - - - Glyph for representation. - - - - - Initializes a new instance of the class. - - The bounds. - The cursor. - The related component. - The designer. - - - - Indicates whether a mouse click at the specified point should be handled by the . - - A point to hit test. - - A if the is associated with ; otherwise, null. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - TextBoxExt - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Specifies the style with which some controls will appear and behave. - - - Every control that incorporates these styles will define the styles differently, - so take a look at the individual control for more information. - - - - - Classic appearance. - - - - - Office XP-like appearance. - - - - - Office 2003-like appearance. - - - - - Visual Studio 2005-like appearance. - - - - - Office 2007-like appearance. - - - - - Office 2007 Outlook-like appearance. - - - - - Office 2010-like appearance. - - - - - Visual Studio 2010-like appearance. - - - - - Metro-like appearance. - - - - - Office2016 Colorful - - - - - Office2016 White - - - - - Office2016 Black - - - - - Office2016 DarkGray - - - - - Provides static properties to access the colors used by different components in the XPMenus framework. - - - - The primary objective of this class is to let you specify custom colors for the different - regions of the XPMenus components. When no colors are provided, this class returns the default - colors usually synthesized from the System Colors. If you have to reset a property that you set before, - simply set it to be Color.Empty; the next time the property is queried, it will return the default color. - - - If you are a consumer of the colors in this class, then note that the colors returned - by properties in this class need to be reinitialized when the system color changes. - This class doesn't listen to the system color change event, instead it expects the consumer to notify it - when the system color changes. To avoid redundant updates by multiple consumers, a unique notification pattern - is recommended. - - - To notify system color changes, you should listen to the - event and call the method. The SysColorsChanged method will let you specify whether to - update the colors immediately or later with a call to . You should - choose to update immediately if you will use the new colors to update certain properties in your control (Backcolor, for example). - On the other hand, if you use the colors within and only within your Paint event, then update the colors later in - the beginning of your Paint method with a call to UpdateMenuColors. Note that the - UpdateMenuColors method will actually update the colors only if necessary, letting you call it multiple times - without performance hit. - - - There is also a event that gets fired whenever colors - are updated, either due to change in System Colors (notified using the above pattern) or when a custom color is set on any of the properties. - - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - Initializes the default colors. - - - - - Call this method to indicate that the system colors have changed. - - Indicates whether to update colors immediately or later with a call to . - - Take a look at the MenuColors class reference for the recommended system color change notification pattern. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Gets / sets the selected color for a menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected text color for an item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a drop-down menu. - - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the color for the left aligned strip in a drop-down menu where images and check boxes are shown. - - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected-pressed color for a menu item in a toolbar. - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected color for a checked menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color for a selected menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color for a drop-down menu. - - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for a toolbar / commandbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for the main-menu bar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for the Status Bar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the Caption background color for a floating toolbar / commandbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the Backcolor for the expanded, - left-aligned menu strip region. This is the region you see when a partial menu - gets expanded to show all the menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the alpha-blend factor to use to shade the inactive menu item's icons. (255 for no alpha-blending; 0 will completely hide the item) - - A value in the range 1 to 255; -1 will reset to default value. Default is 175. - - 255 will draw the icon without any alpha blending; 1 will almost hide the icons. This setting will be ignored when XPThemes is turned on. - - - - - Gets / sets the text color base for the text in the disabled menu items. - - The default value is derived from a system color. - - When you specify a custom color, ControlPaint.LightLight will be applied on it before using that color. - - - - - Gets / sets the text color base for the text in the disabled toolbar items. - - The default value is derived from a system color. - - - - Gets / sets the text color of the menu and toolbar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color, the next time it is queried. - - - - - Gets / sets the active text color of the menu and toolbar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - Initializes the default colors. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the light color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets color of the separator BarItem. - - - - - Gets or sets light color of the DockBar. - - - - - Gets or sets dark color of the DockBar. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - - - - - - Call this method to indicate that the system colors have changed. - - Indicates whether to update colors immediately or later with a call to . - - Follow the same system color change notification pattern as explained in the class reference. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Gets / sets the selected color for a menu item in a drop-down menu. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the pressed-selected color for a menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a selected check box in the drop-down menu margin or a checked item in the toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a check box in the drop-down menu margin or a checked item in the toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color of a menu item selection in the drop-down menus and toolbars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color of a drop-down menu. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the left-gradient color of the drop-down menu margin. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the right-gradient color of the drop-down menu margin. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the left-gradient color of the drop-down menu margin of the expanded menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the right-gradient color of the drop-down menu margin of the expanded menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the right-gradient color of docked bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the left-gradient color of docked bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the color of the gripper. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient border color of bars. - - - - - Gets or sets the dark-gradient border color of bars. - - - - - Gets or sets the light-gradient color of menu item for hot-tracking. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of menu item for hot-tracking. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of quick customize button when it is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of quick customize button when it is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the caption background color of floating bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the color for the floating command bar item which is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of quick customize dropdown button. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of quick customize dropdown button. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient highlight color of groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient highlight color of groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient highlight color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient highlight color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of groupBar header. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of groupBar header. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the color of the text in a GroupBar item. - - - - - Gets / sets the highlight color to be used for the selected text of the GroupBar item. - - - - - Gets / sets the color of the separator line between the bar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Initializes colors based on Windows XP color scheme. - - - - - Used for drawing the tabControlAdv tabPanel background. - - - - - Used for drawing the active tabPage. - - - - - Used for drawing the active tabPage. - - - - - Used for drawing the inactive tabPage. - - - - - Used for drawing the inactive tabPage. - - - - - Used for drawing the highlighted tabPage. - - - - - Used for drawing the highlighted tabPage. - - - - - Used for drawing the borders of tabPages. - - - - - Used for drawing the borders of tabPages. - - - - - Used for drawing the borders of tabPages. - - - - - Provides colors for Office2007 visual style. - - - - - Colors for blue colorscheme of the Office2007 visual style. - - - - - Colors for silver colorscheme of the Office2007 visual style. - - - - - Colors for black colorscheme of the Office2007 visual style. - - - - - - - - - - Default colorscheme for office2007 visual style. - - - - - Base color for managed scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for Office2007 visual style. - - - - - Gets or sets default colorscheme for office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the dark color for highlighted item of the menu. - - - - - Gets or sets the light color for highlighted item of the menu. - - - - - Gets or sets the border color for highlighted item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the separator color for column of the menu. - - - - - Gets or sets the light color for arrow of the menu item. - - - - - Gets or sets the dark color for arrow of the menu item. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the background color for check mark of the menu. - - - - - Gets or sets the color for border check mark of the menu. - - - - - Gets or sets the border color for TextBox item of the menu. - - - - - Gets or sets the background color for TextBox item of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the light color for highlighted ComboButton of the menu. - - - - - Gets or sets the dark color for highlighted ComboButton of the menu. - - - - - Gets or sets the color for arrow ComboButton of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets background color of the DockBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets border color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed close button of the floating CommandBar. - - - - - Gets or sets color for pressed close button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Gets or sets color for separator line of the CommandBar. - - - - - Gets or sets color for pressed border of the BarItem. - - - - - Gets or sets color for highlighted border of the BarItem. - - - - - Gets or sets light color for background of the BarItem. - - - - - Gets or sets dark color for background of the BarItem. - - - - - Gets or sets light color for background of the DropDownBarItem. - - - - - Gets or sets dark color for background of the DropDownBarItem. - - - - - Gets or sets color for border of the DropDownBarItem. - - - - - Gets or sets light color for background of the checked BarItem. - - - - - Gets or sets dark color for background of the checked BarItem. - - - - - Gets or sets color for border of the checked BarItem. - - - - - Gets or sets color for flash of the checked BarItem. - - - - - Gets or sets color for flash of the pressed BarItem. - - - - - Gets or sets color for flash of the selected BarItem. - - - - - Gets or sets back color for the TextBoxBarItem. - - - - - Gets or sets color for border of the TextBoxBarItem. - - - - - Gets or sets color for border of the highlight TextBoxBarItem. - - - - - Gets or sets light color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the highlighted ComboBoxBarItem. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the arrow start color for UpDownButtons. - - - - - Gets the arrow end color for UpDownButtons. - - - - - Gets the border color for UpDownButtons in normal state. - - - - - Gets the background color for UpDownButtons in normal state. - - - - - Gets the background start color for UpDownButtons in normal state. - - - - - Gets the background end color for UpDownButtons in normal state. - - - - - Gets the border color for UpDownButtons in hot state. - - - - - Gets the inner border start color for UpDownButtons in hot state. - - - - - Gets the inner border end color for UpDownButtons in hot state. - - - - - Gets the border color for UpDownButtons in pressed state. - - - - - Gets the inner border start color for UpDownButtons in pressed state. - - - - - Gets the inner border end color for UpDownButtons in pressed state. - - - - - Gets the background start color for UpDownButtons in disabled state. - - - - - Gets the background end color for UpDownButtons in disabled state. - - - - - Gets the border color for UpDownButtons in disabled state. - - - - - Gets the background top start color for UpDownButtons in hot state. - - - - - Gets the background top end color for UpDownButtons in hot state. - - - - - Gets the background bottom start color for UpDownButtons in hot state. - - - - - Gets the background bottom end color for UpDownButtons in hot state. - - - - - Gets the background top start color for UpDownButtons in pressed state. - - - - - Gets the background top end color for UpDownButtons in pressed state. - - - - - Gets the background bottom start color for UpDownButtons in pressed state. - - - - - Gets the background bottom end color for UpDownButtons in pressed state. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Provides colors for blue colorscheme of the Office2007 visual style. - - - - - Initialize colors for Blue colorscheme of the Office2007 visual style. - - - - - Provides colors for silver colorscheme of the Office2007 visual style. - - - - - Initialize colors for Silver colorscheme of the Office2007 visual style. - - - - - Provides colors for black colorscheme of the Office2007 visual style. - - - - - Initialize colors for Black colorscheme of the Office2007 visual style. - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the color for check mark border of the menu. - - - - - Gets or sets the color for selected check mark border of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets light color for CombobBox button. - - - - - Gets or sets dark color for CombobBox button. - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the color for check mark border of the menu. - - - - - Gets or sets the color for selected check mark border of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets light color for CombobBox button. - - - - - Gets or sets dark color for CombobBox button. - - - - - Provides colors for blue colorscheme of the Office2010 visual style. - - - - - Provides colors for Office2010 visual style. - - - - - Colors for blue colorscheme of the Office2010 visual style. - - - - - Colors for silver colorscheme of the Office2010 visual style. - - - - - Colors for black colorscheme of the Office2010 visual style. - - - - - - - - - - Default colorscheme for office2010 visual style. - - - - - Base color for managed scheme. - - - - - Gets color table for Office2010 visual style. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Office2010 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for Office2010 visual style. - - - - - Gets or sets default colorscheme for office2010 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the dark color for highlighted item of the menu. - - - - - Gets or sets the light color for highlighted item of the menu. - - - - - Gets or sets the border color for highlighted item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the separator color for column of the menu. - - - - - Gets or sets the light color for arrow of the menu item. - - - - - Gets or sets the dark color for arrow of the menu item. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the background color for check mark of the menu. - - - - - Gets or sets the color for border check mark of the menu. - - - - - Gets or sets the border color for TextBox item of the menu. - - - - - Gets or sets the background color for TextBox item of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the light color for highlighted ComboButton of the menu. - - - - - Gets or sets the dark color for highlighted ComboButton of the menu. - - - - - Gets or sets the color for arrow ComboButton of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets background color of the DockBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets border color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed close button of the floating CommandBar. - - - - - Gets or sets color for pressed close button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Gets or sets color for separator line of the CommandBar. - - - - - Gets or sets color for pressed border of the BarItem. - - - - - Gets or sets color for highlighted border of the BarItem. - - - - - Gets or sets light color for background of the BarItem. - - - - - Gets or sets dark color for background of the BarItem. - - - - - Gets or sets light color for background of the DropDownBarItem. - - - - - Gets or sets dark color for background of the DropDownBarItem. - - - - - Gets or sets color for border of the DropDownBarItem. - - - - - Gets or sets light color for background of the checked BarItem. - - - - - Gets or sets dark color for background of the checked BarItem. - - - - - Gets or sets color for border of the checked BarItem. - - - - - Gets or sets color for flash of the checked BarItem. - - - - - Gets or sets color for flash of the pressed BarItem. - - - - - Gets or sets color for flash of the selected BarItem. - - - - - Gets or sets back color for the TextBoxBarItem. - - - - - Gets or sets color for border of the TextBoxBarItem. - - - - - Gets or sets color for border of the highlight TextBoxBarItem. - - - - - Gets or sets light color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the highlighted ComboBoxBarItem. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the arrow start color for UpDownButtons. - - - - - Gets the arrow end color for UpDownButtons. - - - - - Gets the border color for UpDownButtons in normal state. - - - - - Gets the background color for UpDownButtons in normal state. - - - - - Gets the background start color for UpDownButtons in normal state. - - - - - Gets the background end color for UpDownButtons in normal state. - - - - - Gets the border color for UpDownButtons in hot state. - - - - - Gets the inner border start color for UpDownButtons in hot state. - - - - - Gets the inner border end color for UpDownButtons in hot state. - - - - - Gets the border color for UpDownButtons in pressed state. - - - - - Gets the inner border start color for UpDownButtons in pressed state. - - - - - Gets the inner border end color for UpDownButtons in pressed state. - - - - - Gets the background start color for UpDownButtons in disabled state. - - - - - Gets the background end color for UpDownButtons in disabled state. - - - - - Gets the border color for UpDownButtons in disabled state. - - - - - Gets the background top start color for UpDownButtons in hot state. - - - - - Gets the background top end color for UpDownButtons in hot state. - - - - - Gets the background bottom start color for UpDownButtons in hot state. - - - - - Gets the background bottom end color for UpDownButtons in hot state. - - - - - Gets the background top start color for UpDownButtons in pressed state. - - - - - Gets the background top end color for UpDownButtons in pressed state. - - - - - Gets the background bottom start color for UpDownButtons in pressed state. - - - - - Gets the background bottom end color for UpDownButtons in pressed state. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Initialize colors for Blue colorscheme of the Office2010 visual style. - - - - - Provides colors for silver colorscheme of the Office2010 visual style. - - - - - Initialize colors for Silver colorscheme of the Office2010 visual style. - - - - - Provides colors for black colorscheme of the Office2010 visual style. - - - - - Initialize colors for Black colorscheme of the Office2010 visual style. - - - - - Colors for silver colorscheme of the metro visual style. - - - - - Colors for black colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - /// - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - - - Base color for managed scheme. - - - - - Gets color table for Metro Color. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Metro visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for metro visual style. - - - - - Gets or sets default colorscheme for metro visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Provides colors for Magenta colorscheme of the Metro visual style. - - - - - Initialize colors for Magenta colorscheme of the Metro visual style. - - - - - Provides colors for Orange colorscheme of the Metro visual style. - - - - - Initialize colors for Blue colorscheme of the Metro visual style. - - - - - Provides colors for Teal colorscheme of the Metro visual style. - - - - - Initialize colors for Teal colorscheme of the Metro visual style. - - - - - Provides colors for Brown colorscheme of the Metro visual style. - - - - - Initialize colors for Brown colorscheme of the Metro visual style. - - - - - Provides colors for Lime colorscheme of the Metro visual style. - - - - - Initialize colors for Lime colorscheme of the Metro visual style. - - - - - Provides colors for Purple colorscheme of the Metro visual style. - - - - - Initialize colors for Purple colorscheme of the Metro visual style. - - - - - Provides colors for Pink colorscheme of the Metro visual style. - - - - - Initialize colors for Pink colorscheme of the Metro visual style. - - - - - Provides colors for Blue colorscheme of the Metro visual style. - - - - - Initialize colors for Blue colorscheme of the Metro visual style. - - - - - Provides colors for Red colorscheme of the Metro visual style. - - - - - Initialize colors for Red colorscheme of the Metro visual style. - - - - - Provides colors for Green colorscheme of the Metro visual style. - - - - - Initialize colors for Green colorscheme of the Metro visual style. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Draws a themed button. - - - - - Value for reduce ClientRectangle. - - - - - Value for shift image rectangle. - - - - - Image for draw foreground. - - - - - Indicate wether the image for button - is stretched or shrunk to fit the size of the button. - - - - - Indicates whether mouse positionin is over control. - - - - - - - - Initializes a new object. - - - - - Draws the text. - - The graphics object. - - - - Draws the button themed. - - Graphics object. - The button state. - The checked state. - - - - Draws the button without themes. - - Graphics object. - The button state. - The checked state. - - - - Draws the styled button without themes. - - Graphics object. - The button state. - The checked state. - - - - Gets or sets image for draw foreground. - - - - - Indicates whether mouse positionin is over control. - - - - - Indicate wether the image for button - is stretched or shrunk to fit the size of the button. - - - - - Occurs when is changed. - - - - - Occurs when is changed. - - - - - Gets / sets the flatcolor of the themed button. - - - - - Gets or sets the visual style of the themed button. - - - - - Indicates the Office2007 theme used for drawing the control. - - - - - Indicates the Office2010 theme used for drawing the control. - - - - - Indicates whether to draw the button text. - - - - - Gets / sets the text alignment. - - - - - Gets / sets the checked state. - - - - - Gets / sets the default button state. - - - - - Draws a themed check button. - - - - - MetroColor - - - - - Disposes all resources. - - - - - - Initializes a new object. - - - - - - - - - - - Indicates the checked state of the button. - - - - - Gets or setsthe metrocolor. - - - - Cached version of themed controls instances. Class will - return NULL instead of instance if OS does not support XP Themes. - - - Thread synchronization object. Used for instance clear and create - operations locks. - - - Edit control. - - - Button control. - - - Tree control. - - - Reset static class cache. All internal static resources will be released. - Operation is thread safe. - - - - - - - - - - - - - Specifies the theme size type requested using . - - - - - Requesting the minimum size. - - - - - Requesting the size of the theme part that will best fit the available space. - - - - - Requesting the size that the theme manager uses to draw a part. - - - - - Draws a themed scroll button. - - - - - Initializes a new object. - - - - - Disposes all resources being used. - - - - - - - - - - - - Returns the color for paint control background. - - - - - - - Gets / sets the type of scroll arrow. - - - - - Implement this interface to support skins across the Grid. Exposes some themed drawing methods. - - - - - Draws the Header skins. - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Header style color of Grid - - Header color - hover color - pressed color - true - - - - header style text color - - Normal text color - hover text color - pressed text color - true - - - - Gets the current VisualStyles. - - - - - Implements the Metro look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Header style color of Grid - - Header color - hover color - pressed color - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies Whether the button is Intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the skin collection for ofice2016 theme(Black, White, DarkGray and Colorful). - - - - - Initialize a new instance of class. - - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Intialize the skin collection based on the grid visual styles. - - - - - Describes the Office2016 theme colors. - - - - - Implement the SkinCollection for GridMetroColors - - - - - Collecction initialize - - - - - get / set Header color collection - - - - - get / set Header text color collection - - - - - get /set grop drop area color - - - - - get / set sort icon color collection - - - - - get / set collection of check box color - - - - - get/ set combo box color collection - - - - - get / set spin button color collection - - - - - get /set push button color collection - - - - - get or set radio button color collection - - - - - gets or sets header botom border color - - - - - Gets/Sets the header botom border weight. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 Colorful theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 Black theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 White theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 DarkGray theme. - - - - - Initialize a new instance of the class. - - - - - Specifies the weight of a header bottom border class. - None option is used to Show / hide the bottom border. - - - - - A line with 0.25 point. - - - - - A line with 0.5 point. - - - - - A line with 1 point. - - - - - A line with 1.5 points. - - - - - A line with 2.0 points. - - - - - A line with 3.0 points. - - - - - This hide the header bottom border. - - - - - Collectionn of Header color - - - - - Get / set the Header Color in normal mode - - - - - Get / set the Header Color in mouse Hover - - - - - Get / set the header Color in mouse pressed - - - - - Collection of Header text color - - - - - grt /set normal header text color - - - - - get / set hover text color of header - - - - - get /set header pressed color - - - - - Collection of sort icon color - - - - - Get / set the sort icon Color in normal - - - - - Get / set the sort icon Color in hover - - - - - Collection of Check box Color - - - - - Get / set the border color of checkbox - - - - - Get / set the back color of check box - - - - - Get / set the check marker color - - - - - Collection of GridCombobox color - - - - - Get / set the combobox - - - - - Get / set the combobox NormalBorderColor - - - - - Get / set the hoverBackColor - - - - - Get / set the HoverBorderColor - - - - - Get / set the pressedBackColor - - - - - Get / set the presedBorderColor - - - - - Collection of Grid spin button colors - - - - - Get / set spin button normal back color - - - - - Get / set spin button normal border color - - - - - Get / set spin button hover back color - - - - - Get / set spin button hover border color - - - - - Get / set spin button pressed back color - - - - - Get / set spin button pressed border color - - - - - Collection of grid push button colors - - - - - Get / set normal push button color - - - - - Get / set bush button hover color - - - - - Get / set push button back color - - - - - Collection of radio button color - - - - - Get / set radio button color - - - - - Get / set radio button checked color - - - - - collection of Group drop area color - - - - - Get / set group srop area back color - - - - - Get / set grid gropu drop are border top color - - - - - Get / set group drop area border left color - - - - - Implements the Office 2010 look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Header style color of Grid - - Header color - hover color - pressed color - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the Office 2007 Blue look and feel. - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the Office 2007 Black look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current visual style. - - - - - Implements the Office 2007 Silver look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is in intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current visual style. - - - - - Implements the Office 2003 look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Dispose the resources being used. - - - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyle. - - - - - Implements the SystemTheme for grid components. - - - - - Disposes all resources being used. - - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyle. - - - - - Specifies the VisualStyle with which various components across the grid will appear and behave. - - - - - Represents the colors for Office2003 style. - Provides static members to access the colors used by different grid elements. - - - - - Represents the colors for Office2007 style. - Provides static members to access the colors used by different grid elements. - - - - - Gets an array of colors used for Office2007Blue style. - - - - - Gets an array of colors used to represent Hot State color. - - - - - Gets an array of colors used to represent Pressed State color. - - - - - Represents the colors for Office2010style. - Provides static members to access the colors used by different grid elements. - - - - - Gets an array of colors used to represent Hot State color. - - - - - Gets an array of colors used to represent Pressed State color. - - - - - Specifies the VisualStyle with which various components across the grid will appear and behave. - - - - - Provides some information regarding themes support and state in the OS. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Used to unwire the ThemeChangeListenerForm class. - - - - - - - - Returns the theme file name with the path. - - - - - Returns the current theme color scheme name. - - - - - Indicates whether the default blue theme is on. - - - - - Indicates whether the Olive Green theme is on. - - - - - Indicates whether the Silver theme is on. - - - - - Indicates whether this OS has themes support built-in. - - True if themes are supported; False otherwise. - This property returns True for Windows XP and later versions. - - - - Indicates whether themes are enabled in the current OS. - - - - - Indicates whether the current application is themed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Class for automatic subscription management of event. - - - - - Initializes a new instance of the class. - - The target. - - - - Handles theme change. - - The sender. - The instance containing the event data. - - - - Gets or sets the object (the target) referenced by the current object. - - - null if the object referenced by the current object has been garbage collected; otherwise, a reference to the object referenced by the current object. - - - The reference to the target object is invalid. This exception can be thrown while setting this property if the value is a null reference or if the object has been finalized during the set operation. - - - - - Specifies the information required by the class to enable auto appending - in a control. - - - Take a look at for a usage example. - - - - - - Creates a new instance of this class and initializes it with these values. - - Indicates whether to turn on AutoAppend; False if not. - The Category to which the contents in this control belong to. - The reference to an IList which will get the new items entered by the user. - The maximum number of items in the list. - - - - Indicates whether to turn on AutoAppend. - - True to turn on auto appending; False to turn off. - - Take a look at for a usage example. - - - - - Gets / sets the Category Name to which the contents of the list belong to. - - The category name. - - Take a look at for a usage example. - - - - - Gets / sets the IList into which new entries will be appended. - - A reference to an IList instance. - - Take a look at for a usage example. - - - - - Gets / sets the desired maximum number of items in the list. - - The maximum count. - If the count exceeds the maximum count, then AutoAppend will keep - discarding the older entries. - Take a look at for a usage example. - - - - - The AutoAppend class provides choice-list auto-append capabilities for editable combo boxes, etc. - - - - Often editable combo boxes in your applications can benefit from reusing - previously user supplied entries in their choice-list, as in IE's address bar combo box and - in the "Find" combo box in VS.NET. - - - The AutoAppend class will easily enable this functionality in an associated combo box. - In fact, this class is more abstract in that - it can take any control and an IList reference and enable "AutoAppend" logic on - them as described below. - - - Associate your control with this class through the structure. - The structure will let you associate a control with an IList - reference and a Category string to an AutoAppend instance. - - Once you set up this association, the AutoAppend instance listens to the Validated event - thrown by the control - and inserts the new entry on top of the supplied IList or if - already in the list, moves the entry to top of the list. When the control gets disposed, - it persists these entries in the registry in a key based on the corresponding Category string. - The next time the control is created and associated, the AutoAppend instance will pick up - the persisted information corresponding to the Category and apply that information - to the IList instance. - - - Persistance is done in the registry under the HKLU key making the entries specific to the - user and global to the machine (usable across applications). Due to the previous behavior, - the very first instantiation of the above control will set the control's text and the IList - to be empty. - - Note: Also make sure your control's Dispose() gets called before the ApplicationExit event - thrown by the Application object. Otherwise, the control's state will not be persisted. This - would normally be the case, unless the control gets "orphaned" (detached from the parent control) and the - Dispose method never gets called until it is garbage collected. - - You can make any number of associations with one AutoAppend instance. - - - This is how you would associate a combo box with an instance of the AutoAppend class: - - this.autoAppend = new AutoAppend(); - this.autoAppend.SetAutoAppend(this.comboBox1, new AutoAppendInfo(true, "HttpAddress", this.comboBox1.Items, 30)); - // To disassociate call this: - this.autoAppend.SetAutoAppend(this.comboBox1, new AutoAppendInfo(false, String.Empty, null, 30)); - - - Me.autoAppend = New AutoAppend() - Me.autoAppend.SetAutoAppend(Me.comboBox1, New AutoAppendInfo(True, "HttpAddress", Me.comboBox1.Items, 30)) - ' To disassociate call this: - Me.autoAppend.SetAutoAppend(Me.comboBox1, New AutoAppendInfo(False, [String].Empty, Nothing, 30)) - - - - - - Creates a new instance of the AutoAppend class. - - - - - This member overrides Object.Finalize. - - - - - Releases all setup associations. - - - This will also persist the exisiting information before releasing the associations. - - - - - Override this to release the unmanaged resources used by the control and optionally releases the managed resources. - - True to release both managed and unmanaged resources; False to release only unmanaged resources. - - - - Returns the AutoAppendInfo associated with a control. - - The control whose AutoAppend info is required. - The corresponding AutoAppendInfo value. If this control is not associated - yet, then an AutoAppendInfo with its AutoAppend value set to False will be returned. - - - - Associates a control with this instance by providing its AutoAppendInfo. - - The control in which to AutoAppend. - The AutoAppendInfo. - - Calling this will enable behavior in the control. Take a look at the AutoAppend - class reference for detailed information on this behavior. - To disassociate a control from the AutoAppend instance, call this method with the - AutoAppendInfo's AutoAppend value set to False. - - - - - Forces an entry into the control's AutoAppend list. - - The control whose AutoAppend list is to be updated. - The value that is to be appended to the list. - - The AutoAppend instance automatically inserts entries into the list when the user - enters a new value and leaves the control (when Validated will be fired). - However, you might want new entries to be added when, for example, the user hits - the Enter key. You do so by calling this method with the new value which will - insert the new value into the list. - - - - - Provides data for a cancelable mouse event. - - - - - Initializes a new with data from a . - - The data for this event. - - - - - - - The data for this event. - - - - - Handles a cancelable mouse event. - - - - - An advanced combo box control. - - - - This advanced combo box control provides a lot of improvements over the standard - control. The improvements are as follows: - - - Plug in any derived class as the list for the list portion of the combo box - using the property. - - - Provides a mode for regular, flat or themed drawing. - - - Written using native .NET controls, this control lets you customize everything in the combo box from the textbox to the drop-down window. - - - - - This control requires the plugged in ListControl to implement the Items property returning - a valid instance. The ListControl can - optionally implement an IndexFromPoint method that will take a single argument of type and - a TopIndex property of type int. The semantics of these above properties and methods are similar to - that of a 's implementation. - - Implementing IndexFromPoint and TopIndex will enable QuickSelection capability for the combo box, wherein - the user can click on the drop-down button and start selecting items in the list, all this - without releasing the mouse. - - - - - - Default windows message for gesture support. - - - - - Default windows message for Mouse captured. - - - - - Default size of the control - - - - - User Size changed - - - - - Default font style of the control - - - - - Font which stored after changed in design - - - - - Indicates whether to perform case sensitive search. - - - - - The width of the drop-down button. - - - - - Collects the boolean value if Control is selected by Touch or Mouse control. - - - - - Indicates whether theme BackColor is painted or ignored and BackColor of control is painted. - - - - - Cached BackColor of ComboBox. - - - - - Indicates whether to suppress the DropDown Event - - - - - Used to draw office 2007 scroller. - - - - - Used to draw office 2007 backcolors in ActiveMode when DropDownList style set. - - - - - Used to draw metro backcolors in ActiveMode when DropDownList style set. - - - - - - Office 2007 color scheme. - - - - - Office 2010 color scheme. - - - - - Metro color scheme. - - - - - Variable to detect whether the event has been hooked. - - - - - Variable to detect whether the click event has been hooked. - - - - - Creates a new instance of the ComboDropDown class. - - - - - To show/display the touch keyboard - - - - - - To hide the touch keyboad. - - - - - Overridden. See . - - - - - - Called once to create a - that will host the drop-down list. - - A new instance of a . - - Override this method to provide a custom implementation of the PopupControlContainer. - - - - - - Called to initialize the drop-down container. - - - - This method is called once to initialize the drop-down container that hosts the - drop-down list. Use the property to get a reference to - the from inside an override of this method. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Called once to create a - for the editable text portion of the combo. - - A new instance of a . - - Override this method to provide a custom implementation of a text box. - - - - - - Called once to create a - for the drop-down button portion of the combo. - - A new instance of a . - - Override this method to provide a custom implementation of a DropDownButton. - - - - - - Called to initialize the used in the drop-down button portion of the combo. - - - - This method is called once to initialize the DropDownButton used to draw the - drop-down portion of the combo. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Called to initialize the used in the editable text portion. - - - - This method is called once to initialize the text box used to draw the - editable portion of the combo. Use the property to get a reference to - the text box from inside a override of this method. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Releases all resources used by the control. - - - - - - Updates the attached 's parent-child relationship. - - - If in ComboBoxStyle.Simple mode, the base class implementation - parents the Popup Control to the combo itself. Otherwise, it parents the - to the Popup Control. - - - - - Resets the property to its default value. - - - - - - - - - - - - - - Resets the property's value to its default. - - - - - Indicates whether the property's value is the default. - - True if the value is not the default; false otherwise. - - - - Get or Set of Skin Manager Interface - - - - - - - - Metrocolor. - - - - - Serialize metrocolor. - - - - - Resets the metrocolor. - - - - - - - - - - - - - - Updates the property based on the PopupControl's selected value. - - Indicates whether the event should be fired if the text is changed. - True if the event was fired; False otherwise. - You normally do not have to call this method. However when you - programmatically update the SelectedValue of a plug in the list control, - you might have to call this method to update the combo's text based on that new value. - - - - Indicates whether another change was made except text changing - in control. - - True if changes were detected; false otherwise. - - - - Raises the BorderSidesChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderSidesChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OmBorderSidesChanged - in a derived class, be sure to call the base class's - OnBorderSidesChanged method so that registered - delegates receive the event. - - - - - Raises the Border3DStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorder3DStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorder3DStyleChanged - in a derived class, be sure to call the base class's - OnBorder3DStyleChanged method so that registered - delegates receive the event. - - - - - Raises the Drop-Down event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnDropDown method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDown - in a derived class, be sure to call the base class's - OnDropDown method so that registered - delegates receive the event. - - - - - Raises the SelectionChangeCommitted event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnSelectionChangeCommitted method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnSelectionChangeCommitted - in a derived class, be sure to call the base class's - OnSelectionChangeCommitted method so that registered - delegates receive the event. - - - - - Raises the event. - - - The event will be fired usually when - the user commits selection change. You could use this method to raise an event manually for a - custom scenario. - - - - - Raises the DropDownStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see "Raising - an Event". The DropDownStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDownStyleChanged - in a derived class, be sure to call the base class's - OnDropDownStyleChanged method so that registered - delegates receive the event. - - - - - Raises the ReadOnlyChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see "Raising - an Event". The ReadOnlyChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnReadOnlyChanged - in a derived class, be sure to call the base class's - OnReadOnlyChanged method so that registered - delegates receive the event. - - - - - Performs auto complete in the text area. - - The arguments of the KeyPress event. - - - - Check whether the ComboBox is ComboDropDown or ComboBoxAdv - - - - - Event will be triggered when TextBox lost its Focus - - - - - - - Event will be triggered while clicking on the TextBox control of the ComboBox. - - - - - - - - Verifies whether new text is allowed to be entered from native message. - - The message. - True if the message is handled. - - - - - - - - - - - - - - - - Forwards the key message to the attached . - - The message id. - The first message parameter. - The second message parameter. - - - - Called when the popup is closed. - - - - - Updates the attached popup control based on the current property. - - - Call this method to update the popup list box, for example, with the latest text - value that the user might have entered. This is useful when you enable auto completion - in the text area and force the list box's SelectedValue to be updated to the - latest text value in this control's Validated event. - - - - - Called before the popup gets dropped down. - - - - - Shows the drop-down. - - - - - Hides the drop-down list box. - - - - - - - - - - - - Forces laying out of the combo elements within the next Paint Message handler. - - True to force; False to prevent layout. - - - - Determines the heights of certain portions of this control. - - A object. - A reference variable through which to return the height for the text area. - - - Make sure to call the base class when you override this method. - - - This method expects you to return a height for the text area through the reference variable, - set the height of this control (if not in ComboBoxStyle.Simple mode) and the height - of the drop-down button (). - - - - - - Updates the internal textbox's bounds and visibility based on the . - - The height of the text area. - - - - Returns the width for the combo box drop-down button. - - The button width. - - - - Returns the width for the combo box drop-down button when office style is on. - - The button width. - - - - Updates the bounds of the drop-down button bounds. - - - Sets the bounds based on the value returned by the - method. - - - - - Updates the attached 's bounds. - - - The base class updates the PopupControl's bounds and visibility based on the - settings. - - - - - Overloaded. The bounds for the control that is associated with this popup when in DropDownStyle.Simple mode. - - The height of the combo control. - The bounds for the embedded control. - - - - The bounds for the control that is associated with this popup when in DropDownStyle.Simple mode. - - The bounds for the embedded control. - - - - - - - Called from the Paint event handler to draw the text portion. - - The from the Paint event. - - This method calls the method - to draw the edit portion only when in ComboBoxStyle.DropDownList mode - or when in design-mode. - - - - - Called from to draw the text area when in ComboBoxStyle.DropDownList mode. - - The from the Paint event. - The background color for the highlight. - The text color for the highlight. - Indicates whether to draw a focus rectangle. - - - - Called from the Paint event handler to draw the drop-down button. - - The from the Paint event. - - - - Called from the Paint event handler to draw the edit portion's border and background. - - The from the Paint event. - - This method calls the method with the appropriate - dimension to draw the border around the text portion. - - - - - Draws the border and background of the control. - - The context. - The within which to draw. - - - This method is used to draw the border around the text area (when called from - method) and around the list box area (when in - ComboBoxStyle.Simple mode and called from the method). - - This method uses themes to draw if necessary or calls and - to draw the background and border. - - - - - Draws the unthemed border of this control. - - The context. - The within which to draw. - - Called by to draw the border when - not in themes mode. - - - - - Serialize MetroBorderColor. - - - - - Reset the MetroBorderColor. - - - - - Draws the unthemed background of this control. - - The context. - The within which to draw. - - Called by to draw the background when - not in themes mode. - - - - - Called from the Paint event handler to draw the list portion. - - The from the Paint event. - - This method draws the list portion when in ComboBoxStyle.Simple mode. - - - - - Refreshes the BackColor of the control after changing 'IgnoreThemeBackground' property. - - Value of 'IgnoreThemeBackground' property. - - - - Creates new instance of the scrollersFrame. - - - - - Attaches scrollersFrame to the PopupControl. - - - - - Detaches scrollersFrame from the PopupControl. - - - - - Inits the scrollers frame. - - - - - - - - Processes mouse moves on the combo-box and textbox area. - - The event args of the MouseMove event. - Indicates whether this was called due to mouse move in the text area or combo. - - - - Gets the Isactive state - - - - - - - - - - - - - - Sends the specified message to the default windows procedure. - - - - - - - - - Moves the current selection in the attached . - - Indicates whether to move up. - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Font chnaged - - - - - - - - - Fired when an IMe message is received. - - Event sender. - Event data. - - - - Gets a value indicating whether this instance is initializing. - - - - - Indicates whether to suppress the DropDown Event - - - - - Gets or sets a value indicating whether [use office2007 colors in active mode]. - - - true if [use office2007 colors in active mode]; otherwise, false. - - - - - Gets or sets a value indicating whether [use metro colors in active mode]. - - - true if [use metro colors in active mode]; otherwise, false. - - - - - - Indicates whether the search in autocomplete is case-sensitive. - - - - - Specifies whether the control is focused. (overridden property) - - - - - Gets or sets a value indicating whether control's elements are aligned to - support locales using right-to-left fonts. - - - - - This property defines the autocomplete behavior in DropDownList mode. - - This property is used when the DropDownStyle is set to DropDownList only. - - - - The that will be used in the drop-down portion. - - A derived instance. - - - - Gets or sets the back color. (overridden property) - - - - - Indicates whether users should be forced to enter numbers. - - True to force numbers; False otherwise. - - - - Indicates whether the text in the edit portion can be changed. - - If True, the edit portion is not editable by the user; False otherwise. - - - - Specifies the ComboBoxBase control modifies the case of characters as they are typed. - - - One of the enumeration values that specifies whether the ComboBoxBase control modifies the case of characters. The default is CharacterCasing.Normal. - - - - - Indicates whether the control will ignore the theme`s background color and draw the BackColor instead. - - - - - Gets or sets the alignment of text in this control. - - - One of the enumeration - values that specifies how text is aligned in the control. - The default is HorizontalAlignment.Left. - - - You can use this property to align the text within a ComboBoxBase - to match the layout of text on your form. For example, if your controls - are all located on the right side of the form, you can set the TextAlign - property to HorizontalAlignment.Right and the text will be aligned - along the right side of the control instead of the default left alignment. - - - - - Gets or sets the ContextMenu. (overridden property) - - - - - Gets or sets the ForeColor. (overridden property) - - - - - Gets or sets the 3D border style for the control. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the border sides for which you want the 3D border style applied. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the flat style appearance of the combo box control. - - - One of the values. The default value is Standard. - - - - When you specify and the application is run - in Windows XP, themes will be used to draw this control. - - - Use and - to determine - if themes are on during run-time. - - - - - - Gets or sets an advanced appearance and behavior for this control. - - One of the values. - Default is VisualStyle.Default. - - When a non-default style is specified here, it will override the - other settings of the control such as and . - The is used to draw the borders for the office styles, when - the control is not active. - - The Office2003 style behaves the same as OfficeXP in non-XP systems. - - - - - - Indicates whether the combo box is displaying its drop-down portion. - - True if the drop-down portion is displayed; False otherwise. The default is False. - - - - Returns the used to host the drop-down list. - - - - - - - - Returns the used to draw the editable text portion of the combo. - - - - - Returns the used to draw the drop-down portion of the combo. - - - - - Gets or sets the height of the drop-down button. - - - - - Gets or sets the height of the edit portion. - - - - - Indicates whether the Height property of the control can be changed. - - True to prevent height change; False otherwise . - - Note that this property will be frequently set and reset within the control layout. - You can use this temporarily to force a particular height on the control. - - - - - Gets or sets the text associated with this control. - - - When in DropDownList mode, setting this property will also validate the - new value against the attached popup control. - - - - - Gets or sets the maximum number of characters allowed in the editable portion of a combo box. - - The maximum number of characters the user can enter. - Default value is 32767. - - - - Gets or sets the drop-down's width. - - - - The value provided here will be used to determine the width of the drop-down portion. - If you do not set a value explicitly, the width of this control will be used as the preferred width. - - To reset your settings on this property, call the method. - - - - - Gets or sets the style of the combo box. - - - One of the values. - The default is . - - - The DropDownStyle property controls the interface that is presented - to the user. You can enter a value that allows for a simple drop-down list box, - where the list always displays a drop-down list box, where the text portion is - not editable and you must select an arrow to view the drop-down, - or the default drop-down list box where the text portion is editable and the - user must press the arrow key to view the list. - - - - - Gets or sets the color with which the flat border should be drawn. - - - A color value. Default is SystemColors.ControlDark. - - - This is also the color used to draw the border when the - property is set to OfficeXP or Office2003. - - - - - Specifies the BackgroundImage.(overridden property) - - - - - Gets or sets background image layout. - - - - - Gets or sets a value indicating if quick selction on mouse move is on. - - - - - Gets or sets a value indicating to show the Gary BackColor on ReadOnly is set. - - - - - Gets or sets a value to have effect of BackColor - - - - - Gets or sets office 2007 color theme. - - - - - Gets or sets office 2010 color theme. - - - - - Gets or sets the metrocolor. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Office2010 visual style. - - - - - Update the renderer for Office2016 style. - - - - - Gets or sets a value indicating whether selection changing can be done using mouse wheel rotation. - - - true if seelction can be changed using mouse wheel; otherwise, false. - - - Instead of handling mouse wheel event and handling it, user can set this bool property as per the needs. - This property is used to work when the dropdown is not shown and changing selection through mouse wheel. - - - - - Fired when BorderSides are changed. - - - - - Occurs when border's 3D style is changed. - - - - - Occurs before the drop-down portion is shown. - - - - - Occurs when the user selects a new text for the combo in one of many possible ways. - - - This event will be fired for the following cases: - - - - When the user selects a new item in the list box by clicking or pressing Enter. - - - - - When the user Tabs out of the combo after changing the current text and Validation was successful. - - - - - - - - Occurs when the of the combo changes. - - - - - Occurs when the property of the combo changes. - - - - - - - - Check whether the ComboBox is ComboDropDown or ComboBoxAdv - - - - - Indicates whether the layout method needs to be called to layout the combo - elements. - - - Internal method. You will not have to call this property explicitly. - - - - - Gets or sets the BorderColor for metro style - - - - - Fired when the ThemesEnabled property changes. - - - - - Indicates whether themes are enabled for this control. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Indicating whether the control uses AutoComplete. - - - - - Creates a new instance of the ComboBoxBase class. - - - - Initializing this ComboBoxBase also requires you to set the - property of this combo box. - - - - - - Raises the DropDownCloseOnClick event. - - A that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnDropDownCloseOnClick method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDownCloseOnClick - in a derived class, be sure to call the base class's - OnDropDownCloseOnClick method so that registered - delegates receive the event. - - - - - Fires event. - - - - - Returns the text representation of the specified item in PopUpControl. - - The index. - - - - Indicate whether ListControl contains item with such index. - - The index. - True - if there is such item, otherwise - false. - - - - Called to find a matching item in the attached given - the prefix of the item. - - The prefix string. - Indicates whether to change the selection in the list when a match occurs. - The index within each list item-string, where the search begins. - Indicates whether to ignore case. - The index of the matching item; -1 otherwise. - - - - Returns the interface representing the item's - collection of the attached . - - An IList interface. - - The base class version looks for the "Items" property in the attached ListControl. - - - - - Moves the current selection in the attached . - - Indicates whether to move up. - - - - Raises the Validating event. - - - - - Called to update selection before validate. - - - This is useful when you enable auto completion - in the text area and force the list box's SelectedValue to be updated to the - latest text value in this control's Validated event. - - - - - Called before the popup gets dropped down. - - - - - Sets the popup text. - - The value. - Compares the new PopUpText and resets if a match is not found. - - - - Handles the PopupCloseType of PopUpContainer based on SelectedIndex. - - - - - Indicates whether the attached ListControl has an "IndexFromPoint" - method. - - True if such a method is available; False otherwise. - - This control relies on the attached ListControl providing this method - to support quick-selection mode. This is the mode where the user can click on the - drop-down arrow and start selecting in the drop-down list even before mouse up. - - - - - Returns the index of the item at the specified point. - - A in screen coordinates. - The zero based index; -1 if the point is not over an item. - - - - Called when a new gets attached - to this ComboBoxBase using the property. - - - When you override this method, make sure to call the base class for proper initialization. - - - - - Called when an attached is being - detached from this combo. - - Indicates whether this method is called from Dispose. - - - - Called when the user clicks on the associated list box. - - The MouseEventArgs from the list box's MouseUp event. - - - - Processes the mouse move over the PopupControl. - - - - - Processes mouse move over the list. - - The control source of the MouseMove event. - The event args of the MouseMove event. - - This method moves the selection of the attached in some - cases when the mouse moves over it and also to change the Top Index of the list control appropriately - when QuickSelection is on. - - - - - Indicates whether the supplied text is a valid entry in the attached . - - The text to validate. - True if valid; False otherwise. - - - - Correct popup control location. - - - - - - - Gets or sets the that will be used in the drop-down portion. - - A derived instance. - - - Take a look at the class description for more information - on requirements and usage of this list control. - - - - - - This will be used in the drop-down portion. - - - - - Indicates whether the selection in the list control should be updated - with the new text entered by the user when the control loses focus. - - This property is typically used only when the list mode is set to editable (DropDown). - - - - Gets a value indicating whether the control uses AutoComplete. - - - - - Occurs when the user clicks in the list box in the drop-down to let you - cancel the subsequent drop-down close. - - - - - Occurs when the selected Index of list is about to be changed. - Can be canceled to avoid selection of the specific item. - - - - - Risen by method. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboBoxBase - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Handles a cancelable mouse-click event. - - - - - Provides data for a cancelable mouse click event. - - - - - Creates a new instance of the MouseClickCancelEventArgs. - - The point in screen coordinates where the click occurred. - True to cancel the event; False otherwise. - - - - Returns the point in screen coordinates where the click occurred. - - - - - - - - - - ComboDropDown Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - The ComboBoxExt type will soon be replaced with the ComboBoxBase for consistency in - control naming in our library. - Please replace all occurrences of ComboBoxExt with ComboBoxBase in your application. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets Readonly. - - - - - Gets or sets Readonly. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the Office2007 color scheme. - - The Office2007 color scheme. - - - - Gets or sets the Office2010 color scheme. - - The Office2010 color scheme. - - - - Gets or sets the Border style. - - The style. - - - - Gets or sets the Dropdown style. - - The style. - - - - Specifies the appearance of the control. - - - - This enumeration is used by the property. - - - Use and - to determine - if Themes are on during run-time. - - - - - - The control and the button appear flat. - - - - - The control and the button appear three-dimensional. - - - - - The appearance is determined by the user's operating system. - - - If XP, then themes will be used to draw this control. For other operating systems, - the behavior will be that of the style. This - setting will also use XP Themes to draw the combo when an XP Theme is loaded in the OS. - - - - - This class used for additional handling messages, that are sent - to DropDown's child controls. - - - - - ComboDropDown control, listen to messages for. - - - - - Default Constructor. - - - - - - Fired when IME messages are received - - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboDropDown - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Class that represents the drop-down portion of a . - - - - - Creates an instance of the DropDownButton class. - - The control that is using this class to draw the drop-down portion. - - - - Reset MetroArrowColor - - - - - To serialize MetroArrowColor - - - - - - Gets the touchmode value. - - - - - Raises the MouseDown event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The MouseDown method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMouseDown - in a derived class, be sure to call the base class's - OnMouseDown method so that registered - delegates receive the event. - - - - - Invalidates the specified portion in the underlying control. - - The area to invalidate. - - - - Call this method from the control's OnPaint method. - - The Graphics context using which to draw the button. - - - - Cancels any mouse tracking. - - - - - Call this method from the control's OnMouseMove to inform this class of mouse move events. - - The MouseEventArsg in the OnMouseMove method. - Indicates whether the full control bounds should be considered - part of the button. Useful in a combo in list mode. - - - - Call this method from the control's OnMouseLeave to inform this class of mouse leave events. - - The EventArsg in the OnMouseLeave method. - - - - Call this method from the control's OnMouseDown to inform this class of mouse down events. - - The MouseEventArsg in the OnMouseDown method. - Indicates whether the full control bounds should be considered - part of the button. Useful in a combo in list mode. - - - - Call this method from the control's OnMouseUp to inform this class of mouse up events. - - The MouseEventArsg in the OnMouseUp method. - - - - Gets/Sets Metro Arrow Color - - - - - Fired when the user performs a mouse down in the drop-down area. - - - - - Indicates whether themes is currently enabled for this control. - - This property doesn't check whether themes are currently enabled in the OS. - - - - Indicates whether owner control is active. - - - true if this instance is control active; otherwise, false. - - - - - Set the bounds for the dropdown button. You typically should do this from the control's Layout event / method. - - - - - Indicates whether the button is active. Will be referred to when drawn hot with office style. - - - - - Indicates whether the drop-down is showing. Will be referred to when drawn hot with office style. - - - - - Indicates whether the button should be drawn hot. - - - - - Gets or sets the ComboFlatStyle with which to draw. - - - - - Gets or sets the VisualStyle with which to draw. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Metro visual style. - - - - - Indicates whether the buttons should be drawn enabled. - - - - - Indicates whether the button is currently pushed. - - - - - Gets or sets a value indicating whether invalidating of owner control is suspended. - - - - - The Class that represents the TextBox placed inside the ComboBox - - - - - Constructor - - - - - Gets or sets a value indicating whether the height of the TextBoxExt automatically - adjusts when the font assigned to the control is changed. - - true if the height of the control automatically adjusts when the font is changed; otherwise, false. The default is true. - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboText - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - ComboDropDown Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets Readonly. - - - - - Gets or sets Readonly. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the Office2007 color scheme. - - The Office2007 color scheme. - - - - Gets or sets the Office2010 color scheme. - - The Office2010 color scheme. - - - - Gets or sets the Border style. - - The style. - - - - Gets or sets the Dropdown style. - - The style. - - - - Summary description for ComboDropDownWeakContainer. - - - - - DelayedWaitCursor listens to OperationFeedback events and changes - the cursor if a certain number of ticks have elapsed since the start - of the operation. - - - - - Overloaded. Initializes a new instance. - - - - - Initializes a new instance. - - An object that implements the interface. - - - Adds an that this object will listen to and - provide user feedback for. - - - - - Overriden. Displays a wait cursor. - - An that contains the event data. - - - - DelayedStatusDialog listens to OperationFeedback events and displays - a modeless status dialog if a certain number of ticks have elapsed since the start - of the operation. - - - - - Overloaded. Initializes a new instance. - - - - - Initializes a new instance. - - An object that implements the interface. - - - Adds an that this object will listen to and - provide user feedback for. - - - - - - - - Overriden. Displays a dialog or wait cursor during progress and closes the dialog when operation is finished. - - An that contains the event data. - - - - The progress percentage value to be used for displaying a dialog bar. A dialog bar - is displayed when the operation's progress in percentage is less than the specified value - at the time progress should be displayed. - - - Typical values are 25 for - and 75 for . - - In this example, if the operation takes longer than two seconds and after two seconds - only 10% of the operation have completed, a dialog is displayed. If on the other side - after two seconds more than 25% have been completed and less than 75%, a wait cursor is displayed. - If more than 75% have been completed, no visual feedback at all will be given. - - - - - - The progress percentage value to be used for displaying a wait cursor. A wait cursor - is shown when the operation's progress in percentage is less than the specified value - at the time progress should be displayed. - - - is ignored if - is false. - - Typical values are 25 for - and 75 for . - - In this example, if the operation takes longer than two seconds and after two seconds - only 10% of the operation have completed, a dialog is displayed. If on the other side - after two seconds more than 25% have been completed and less than 75%, a wait cursor is displayed. - If more than 75% have been completed, no visual feedback at all will be given. - - - - - - Indicates whether wait cursors should be shown. - - - is ignored if - is False. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - - - - - - - - - - - - - - - Cursor of the parent object. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Parent control supporting Drag operation. - - - - - Indicates whether shift value is calculated. - - - - - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - Gets / sets the parent control supporting drag operation. - - - - - Interface for implementing by parent control supporting Drag operation. - Methods of this interface invoke corresponding drag methods of parent control. - - - - - Provides data for the event. - - - - - The last selected index for the edited row in the list. - - - - - Creates a new instance of the ListBoxTextChangingEventArgs class. - - The new text after the change. - Last selected index. - - - - Creates a new instance of the ListBoxTextChangingEventArgs class. - - The new text after the change. - - - - Returns the new text for the edited row in the list. - - - - - Gets the last selected index for the edited row in the list. - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - A that provides you an editable - with a and - on the current row. - - - - During design-time (and in code) you can access the list box, text box and button components of this - control using the , and - properties. You can add certain items to the list and set some properties on the textbox and button. - - - The event is thrown when the user clicks the button - and event is thrown when the user completes editing an item. - - - - - - Holds ScrollerFrame for ListBox - - - - - Holds MetroColorTable for ScrollerFrame - - - - - The used by the control. - - - - - The used by the control. - - - - - The used by the control. - - - - - Index of the item, that is being edited. - - - - - - Required designer variable. - - - - - Default size of the control - - - - - Default height of the ListBoxItem - - - - - Default height of the ListBoxItem - - - - - Creates a new instance of the control. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - Holds the Visual Style of EditableList - - - - - Gets or sets the Visual Style for the EditableList - - - - - Represents the Variable assiged with the default value. - - - - - Reset the Style - - - - - - Serializes the Style - - - - - - Represents the Variable with Bool Contraint. - - - - - Gets or sets an advanced appearance for the EditableList. - - - - - Indicates, whether property value should be serialized. - - - - - Resets the property to the default value. - - - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Called just before a row goes into editing mode. - - - - - Called just after a row comes out of editing mode. - - - - - Raises the ItemChanging event. - - A that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnItemChanging method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnItemChanging - in a derived class, be sure to call the base class's - OnItemChanging method so that registered - delegates receive the event. - - - - - Raises the BeforeListItemEdit event. - - An that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBeforeListItemEdit method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBeforeListItemEdit - in a derived class, be sure to call the base class's - OnBeforeListItemEdit method so that registered - delegates receive the event. - - - - - Raises the ButtonClick event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnButtonClick method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnButtonClick - in a derived class, be sure to call the base class's - OnButtonClick method so that registered - delegates receive the event. - - - - - Fired when the user clicks on the button. - - - - - Fired when the user completes editing a row. - - - - - Raised before a list item is edited. - - - - - Raised when a list item is to be drawn. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the associated with this control. - - - To access the list box to add items to it. - - - - - Returns the associated with this control. - - - Represents the textbox used in the editable current row. - - - - - Returns the associated with this control. - - - Represents the button drawn at the right of the current row. - - - - - Indicates whether you want the button to be shown to the right while editing. - - True if button should be shown; False otherwise. Default is True. - - - - Gets the theme colors for the Visual style. - - - - - Gets or Sets the colorschemes for the EditableList. - - - - - Represents the property to set the Style. - - - - - Gets or Sets whether to draw focus when item is selected. - - - - - Indicates whether the current row is being edited. - - - True to indicate its being edited; False otherwise. - - - - - Gets or sets the list box text alignment. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - EditableList - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - FolderBrowser Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Draws the Background Color using renderer file - - - - - - - Draws the text. - - The instance containing the event data. - - - - Represents the variable to store the Back color. - - - - - Represents the variable to store Style change state. - - - - - represents if stylechanged is true. - - - - - - Method to Draw Item. - - - - - - - - - - - Gets/Sets whether to draw focus when item is selected. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Gets or sets Name. - - - - - Gets or sets the Text - - - - - Gets or sets the border style. - - The style. - - - - Gets or sets the auoscroll. - - The style. - - - - Gets or sets listbox text alignment - - The style. - - - - Editablelistrenderer Class contains all the color properties which are required for Office 2016 Colorful theme. - - - - - Represents the Color values for Back color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Fore color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Back color during Selected state in Office 2016 Colorful - - - - - Represents the Color values for Back color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Back color for Button in Office 2016 Colorful - - - - - Gets the color table according to the theme. - - - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 Black EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Back color during Normal state in Office 2016 Black - - - - - Represents the Color values for Fore color during Normal state in Office 2016 Black - - - - - Represents the Color values for Back color during Selected state in Office 2016 Black - - - - - Represents the Color values for Back color during Normal state in Office 2016 Black - - - - - Represents the Color values for Back color for Button in Office 2016 Black - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 White EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Back color during Normal state in Office 2016 White - - - - - Represents the Color values for Fore color during Normal state in Office 2016 White - - - - - Represents the Color values for Back color during Selected state in Office 2016 White - - - - - Represents the Color values for Back color during Normal state in Office 2016 White - - - - - Represents the Color values for Back color for Button in Office 2016 White - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 DarkGray EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Fore color during Normal state in Office 2016 DarkGray - - - - - Represents the Color values for Fore color during Normal state in Office 2016 DarkGray - - - - - Represents the Color values for Back color during Selected state in Office 2016 DarkGray - - - - - Represents the Color values for Back color during Normal state in Office 2016 DarkGray - - - - - - Represents the Color values for Back color for Button in Office 2016 DarkGray - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - The FolderBrowser component provides a convenient and easy to use object oriented wrapper for the - Win32 Shell folder browser API. - - - The FolderBrowser class completely abstracts the various complex Shell API functions, - structures and callback routines required for invoking the folder selection dialog and allows - you to work with a more .NET-centric programming model consisting of aptly named properties, methods and - events. Most convenient of all, you no longer need to allocate PIDLs as specifying - the location of the rootfolder; browsing is now a simple task of setting the - FolderBrowser.StartLocation property from one of the values provided in the FolderBrowserFolder - enumeration. Using the FolderBrowser class to browse the Shell folders is simple and - to the .NET developer a completely familiar issue of instantiating the FolderBrowser - component, setting the appropriate properties and events on it and invoking the - method. For more detailed information on the Shell APIs refer - to the Platform SDK documentation on the SHBrowseForFolder method. - - - The following code creates an instance of the FolderBrowser component, sets the folder dialog start location - and styles and invokes the FolderBrowser.ShowDialog() method: - - - private void ShowFolderBrowserDialog() - { - // Create the FolderBrowser component: - this.folderBrowser1 = new Syncfusion.Windows.Forms.FolderBrowser(); - - // Initialize the FolderBrowser component: - this.folderBrowser1.Description = "Syncfusion FolderBrowser"; - this.folderBrowser1.StartLocation = Syncfusion.Windows.Forms.FolderBrowserFolder.Desktop; - this.folderBrowser1.Style = - ( Syncfusion.Windows.Forms.FolderBrowserStyles.RestrictToFilesystem | - Syncfusion.Windows.Forms.FolderBrowserStyles.BrowseForComputer ); - - // Provide a handler for the FolderBrowserCallback validation event: - this.folderBrowser1.FolderBrowserCallback += new Syncfusion.Windows.Forms.FolderBrowserCallbackEventHandler(this.folderBrowser1_BrowseCallback); - - // Display the folderbrowser dialog: - if (this.folderBrowser1.ShowDialog() == DialogResult.OK) - this.selectedFolder = this.folderBrowser1.DirectoryPath; - } - - - // Event handler for the FolderBrowser.FolderBrowserCallback validation event. - // This handler is functionally equivalent of the Win32 BrowseCallbackProc callback function: - private void folderBrowser1_BrowseCallback(object sender, Syncfusion.Windows.Forms.FolderBrowserCallbackEventArgs e) - { - this.label1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path); - - if (e.FolderBrowserMessage == FolderBrowserMessage.ValidateFailed) - { - e.Dismiss = e.Path != "NONE"; - } - } - - - - Private Sub ShowFolderBrowserDialog() - - ' Create an instance of the FolderBrowser component: - Me.folderBrowser1 = New Syncfusion.Windows.Forms.FolderBrowser(Me.components) - - ' Set the descriptor text that will appear on the folder dialog: - Me.folderBrowser1.Description = "Syncfusion FolderBrowser" - - ' Specify the start location: - Me.folderBrowser1.StartLocation = Syncfusion.Windows.Forms.FolderBrowserFolder.Desktop - - ' Specify the styles for the folder browser dialog: - Me.folderBrowser1.Style = Syncfusion.Windows.Forms.FolderBrowserStyles.RestrictToFilesystem Or Syncfusion.Windows.Forms.FolderBrowserStyles.BrowseForComputer - - ' Provide a handler for the FolderBrowserCallback validation event: - AddHandler Me.folderBrowser1.FolderBrowserCallback, New Syncfusion.Windows.Forms.FolderBrowserCallbackEventHandler(AddressOf folderBrowser1_BrowseCallback) - - ' Show the folder browser dialog: - Try - If folderBrowser1.ShowDialog() = DialogResult.OK Then - Me.label1.Text = [String].Concat("Selection: ", folderBrowser1.DirectoryPath) - End If - Catch ex As Exception - Console.WriteLine(ex.ToString()) - End Try - - End Sub - - - ' Event handler for the FolderBrowser.FolderBrowserCallback validation event. - ' This handler is functionally equivalent of the Win32 BrowseCallbackProc callback function: - Private Sub folderBrowser1_BrowseCallback(ByVal sender As Object, ByVal e As FolderBrowserCallbackEventArgs) - - Me.label1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path) - If (e.FolderBrowserMessage = FolderBrowserMessage.ValidateFailed) Then - e.Dismiss = (e.Path Is "NONE") = False - End If - - End Sub - - - - - - Overloaded. Creates a new instance of the component. - - - - - Creates a new instance of the and initializes it with the container. - - An object implementing IContainer that will host this instance - of the FolderBrowser component. - - - - Validates the procedure. - - - - - - - - - - Raises the event. - - A value that contains the event data. - - - - Overloaded. Displays the folder browser dialog with a default owner. - - DialogResult.OK if the user clicks OK in the folder dialog; DialogResult.Cancel otherwise. - - - - Displays the folder browser dialog with the specified owner. - - A top-level window that will serve as the owner for the dialog. - DialogResult.OK if the user clicks OK in the folder dialog; DialogResult.Cancel otherwise. - - - - Occurs when an event within the folder browser dialog triggers a call to the validation callback. - - - - - - - - Gets or sets the options for the folder browser dialog. - - A value. - - - - Retrieves the location of the selected folder. - - A String value. - - - - Gets or sets the start location for the folder browser dialog. - - - The StartLocation property is the functional equivalent of the Win32 PIDLs. - - A value. - - - - Gets or sets custom start location for showing dialog. - - - - - Gets or sets selected location for showing dialog. - - - - - Gets or sets the text displayed above the tree control in the folder browser dialog. - - A String value. - - - - Defines constants used by the component. - - - The FolderBrowserMessage enumeration specifies constants that define the event that - triggered the event to occur. - - - - - Indicates that the browse dialog box has finished initializing. - - - - - Indicates that the selection has changed. - - - - - Indicates that the user typed an invalid name into the edit box. - - - - - Handles the component's event. - - The source of the event. - A value that contains the event data. - - - - Specifies constants that defines the folderbrowser dialog state. - - - Enumeration used for setting the folderbrowser dialog's state from the event handler. - For detailed information on the folder browser callback function, refer to the Platform SDK - documentation on the BrowseCallbackProc function. - - - - - Default State. - - - - - Enables the OK button. - - - - - Disables the OK button. - - - - - Specifies a path to expand in the Browse dialog box. The path can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Sets the text to be displayed on the OK button. The text can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Selects the specified folder. The folder's path can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Sets the text to be displayed on the OK button. The text can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. This state is inapplicable - with the new dialog style. - - - - - FolderBrowser Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Provides data for the component's FolderBrowserCallback event. - - - The event occurs when an event within the folder browser dialog - triggers a call to the validation callback. Handling this event allows you to implement the - functional equivalent of the BrowseCallbackProc application-defined callback function. - The FolderBrowserCallbackEventArgs properties provide information specific to the event. - - - - - Initializes a new instance of the class. - - A NativeWindow value that represents the window handle of the folderbrowser dialog. - A value that identifies the event. - A String value that specifies the valid / invalid folder name. - - - - Returns the window handle of the browse dialog box. - - A NativeWindow value. - - - - Returns the valid / invalid folder name. - - A String value. - - - - Returns a value identifying the event. - - A value. - - - - Indicates whether the dialog is either dismissed or retained depending on this value. - - - - - Gets / sets the folder browser dialog's state. - - A value. - - - - Gets / sets the contextual string depending upon the value of the property. - - A String value. - - - - Specifies constants that define the location of the root folder in the folder browser dialog. - - - The FolderBrowserFolder enumeration specifies the location of the root folder from which - the component will start browsing. Only the specified folder - and folders beneath it in the namespace hierarchy will appear in the dialog. This - enumerator provides a simple way to set the ITEMIDLIST structure (PIDL) for the folder - browser dialog. For more information on the functional significance of these values - please refer to the Platform SDK documentation on the Shell API and the CSIDL Values. - - - - - Windows desktop virtual folder that is the root of the name space. - - - - - Virtual folder that represents the Internet. - - - - - File system directory that contains the user's program groups. - - - - - Virtual folder that contains icons for Control Panel applications. - - - - - Virtual folder that contains installed printers. - - - - - File system directory that serves as a common repository for documents. - - - - - File system directory that serves as a common repository for the user's favorite items. - - - - - File system directory that corresponds to the user's Startup program group. - - - - - File system directory that contains the user's most recently used documents. - - - - - File system directory that contains Send To menu items. - - - - - Virtual folder that contains the objects in the user's Recycle Bin. - - - - - File system directory that contains Start Menu items. - - - - - Virtual folder that contains the objects in the user's My Documents folder. - - - - - File system directory that serves as a common repository for music files. - - - - - File system directory that serves as a common repository for video files. - - - - - File system directory used to physically store file objects on the desktop. - - - - - My Computer virtual folder that contains everything on the local computer: storage devices, printers and Control Panel. - - - - - Network Neighborhood virtual folder that represents the root of the network namespace hierarchy. - - - - - A file system folder that contains the link objects that can exist in the My Network Places virtual folder. - - - - - Virtual folder that contains fonts. - - - - - File system directory that serves as a common repository for document templates. - - - - - My Pictures folder. - - - - - Program files folder - - - - - File system directory that contains documents that are common to all users. - - - - - File system directory that contains administrative tools for all users. - - - - - File system directory used to store administrative tools for an individual user. - - - - - Virtual folder that contains network and dial-up connections. - - - - - My Music folder for all users. - - - - - My Pictures folder for all users. - - - - - My Video folder for all users. - - - - - System resource directory. - - - - - Localized resource directory. - - - - - Folder containing links to OEM specific applications for all users. - - - - - File system folder used to hold data for burning to a CD. - - - - - Computers Near Me folder. - - - - - Use custom start folder (). - - - - - Combine this flag with the desired CSIDL_ value to indicate per-user initialization. - - - - - Combine this flag with the desired CSIDL_ value to force a non-alias version of the PIDL. - - - - - Combine this flag with the desired CSIDL_ value to return an unverified folder path. - - - - - Combine this flag with the desired CSIDL_ value to force the creation of the associated folder. - - - - - Mask for all possible CSIDL flag values. - - - - - Specifies constants that define the styles for the folder browser dialog. - - - The enumeration specifies the options for the folder browser dialog. - For more detailed information, refer to the Platform SDK documentation on the - Win32 BROWSEINFO structure. - This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values. - - - - - Restricts selection to file system directories. - - - - - Excludes network folders below the domain level. - - - - - Includes a status area in the dialog box. The status text can be specified in the FolderBrowserCallback event handler. - This style does not apply to the new style dialog. - - - - - Returns only file system ancestors. - - - - - Displays a textbox control in the folder browser dialog. - - - - - Typing an invalid name in the textbox will trigger the FolderBrowser's FolderBrowserCallback event. - - - - - Uses the new resizable folder selection dialog. - - - - - Adds a usage hint to the folder dialog. Valid only with the NewDialogStyle flag. - - - - - Displays URLs. The NewDialogStyle and BrowseForEverything values must be set along - with this flag. - - - - - Displays only computers. - - - - - Displays only printers. - - - - - Displays files as well as folders. - - - - - Displays shareable resources existing on remote systems. - - - - - Displays administrative shares existing on remote systems. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Gets or sets the options style. - - The style. - - - - Gets or sets the start location - - The style. - - - - Implements a list box that can be displayed in a drop-down window for - a combo box or dropdown menus. It lets you select items and scroll the - listbox without setting the focus to the listbox. - - - - - Initializes a new control. - - - - - Handles the event of an internal - timer that is started when the user has pressed the mouse down. - - The source of the event.> - The with event data. - - - - - - - - - - - - - - - - Sends WM_SETREDRAW message to the window. - - - - - - Implements the list box that can be displayed in a drop-down window for - a combo box. Handles autoscrolling and resize to fit contents. - - - - - Initializes a new control. - - - - - Handles the event of an internal - timer that is started when the user has pressed the mouse down. - - The source of the event.> - The with event data. - - - - - - - Overloaded. Calculates optimal width for this list box based on current items. - - The width in pixels large enough so that no item text needs to be clipped. - - - - Calculates optimal width for this list box based on current items using a - provided object. - - The width in pixels large enough so that no item text needs to be clipped. - - - - - - - - - - - - - - - - Gets / sets the preferred number of visible rows. - - - - - - - - IMouseController defines the interface for mouse controllers to be used with MouseControllerDispatcher. - - - Any mouse controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest, the mouse controller should determine whether your - controller wants to handle the mouse events based current context. - See MouseControllerDispatcher for further discussion. - - - - - MouseHoverEnter is called when this controller signaled in HitTest that it wants to handle mouse events. MouseHoverEnter - is called before the MouseHover is called for the first time. - - - - - MouseHover is called when this controller signaled in HitTest that it wants to handle mouse events. MouseHover - is called after MouseHoverEnter. - - - - - MouseHoverLeave is called when hovering ends either because user dragged mouse out of the hit-test area or - when context changes (e.g. user pressed the mouse button). - - - - - MouseDown is called when this controller signaled in HitTest that it wants to handle mouse events and the - user pressed the mouse button. - - - MouseDown is called and this controller will become the active controller and receive all subsequent mouse messages - until the mouse button is released or the mouse operation is cancelled. - - - - - - MouseMove is called for the active controller after a MouseDown message when the user moves the mouse pointer. - - - - - - MouseUp is called for the active controller after a MouseDown message when the user releases the mouse button. - - - - - - CancelMode is called for the active controller after a MouseDown message when the mouse operation is cancelled. - - - - - HitTest is called to determine whether your controller wants to handle the mouse events based current context. - - - The current winner of the vote is specified through the controller parameter. Your implementation of HitTest - can decide if it wants to override the existing vote or leave it. - - - - - - - - Returns the name of this mouse controller. - - - - - Returns the cursor to be displayed. - - - - - The IContextMenuProvider interface provides Essential Studio controls with a high-level API for creating and - working with context menus. Subscribing to this interface allows the Essential Studio controls to - seamlessly switch between the standard .NET and the - classes depending on whether the - Essential Tools library is available or not. - - - - - - - - Creates a new instance of the context menu object managed by this provider. - - - If the provider contains a previously initialized context menu, then the existing menu will be disposed - before creating the new menu. - - - - - Gets the Menu items count. - - - - - - Indicates whether "Add or Remove buttons" is needed. - - - - - - Sets the visual style for the context menu. - - A value. - - - - Creates a new top-level menu item. - - A value representing the menu item. - The that will handle the menu item Click event. - - - - Creates a new menu item and adds it to the specified parent menu item. - - A value representing the parent menu item. - A value representing the menu item. - The that will handle the menu item Click event. - - - - Sets the menu item image. - - A value representing the menu item. - The containing the image. - The zero-based image index. - - - - Sets a shortcut key for the menu item. - - A value representing the menu item. - The key for the menu item. - - - - Returns the menu item's shortcut key. - - A value representing the menu item. - A key value. - - - - Sets the menu item's Checked property to the specified value. - - A value representing the menu item. - The boolean value to be set. - - - - Gets the menu item's Checked property. - - A value representing the menu item. - A boolean value. - - - - Sets the menu item's Enabled property to the specified value. - - A value representing the menu item. - The boolean value to be set. - - - - Indicates the state of the menu item's Enabled property. - - A value representing the menu item. - A boolean value. - - - - Inserts or removes a separator before the specified menu item's position. - - A value representing the menu item. - True to insert a new separator; False to remove an existing separator. - - - - Removes the specified context menu item. - - A value representing the menu item. - - - - Displays the context menu at the specified position. - - A object that specifies the control with which this context menu is associated. - A object that specifies the coordinates at which to display the menu. - - - - Disposes the context menu associated with this provider. - - - - - Clears all menu items. - - - - - Occurs when menu is popped up. - - - - - Occurs when menu is collapsed. - - - - - The ContextMenuItem class is used by the Essential Studio menu providers - classes implementing the - interface - for providing information to the context menu - command handler about the menu item that triggered the Click event. - - - - - - - Creates an instance of the class. - - A instance representing the menu provider. - A value representing the context menu item. - - - - Returns the menu provider instance. - - A instance. - - - - Returns the text representing the context menu item. - - A value. - - - - Factory class for creating the context menu provider. If the Syncfusion Essential Tools library is present, the MenuProviderFactory will - create an instance of the type and if not it returns an instance of - the class. - - - - - - Creates the standard or XPMenus context menu provider. - - A instance. - - - - The StandardMenusProvider class implements the interface and - serves as the menu provider for the standard .NET context menus. Controls that have a - object set as their menu provider will display a instance. - - - - - - - Creates an instance of the class. - - - - - Gets the ContextMenu items Count. - - - - - - Indicates whether "Add or Remove buttons" is needed. - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Clears all menu items. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets context menu instance. - - - - - Occurs when menu is popped up. - - - - - Occurs when menu is collapsed. - - - - - MouseControllerDispatcher coordinates mouse events among competing mouse controllers. Based on - the position of the mouse and context of the control every registered controller's HitTest method - is called to determine the best controller for the following mouse action. This controller will then - receive mouse events. - - - Any Mouse Controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest, the mouse controller should determine whether your - controller wants to handle the mouse events based current context. - MouseControllerDispatcher will call HitTest for each Mouse Controller that has been registered with - Add(IMouseController). The Mouse Controller that wins the vote will receive all Mouse hovering events - like MouseHoverEnter, MouseHover and MouseHoverLeave as long as its HitTest method indicates that it wants to - handle the mouse event. A MouseHoverLeave notification is guaranteed after MouseHoverEnter has been called. - When the user presses the mouse, a MouseDown will be sent to the controller. All subsequent mouse events - will then go to that specific controller until the user releases the mouse or the mouse operations is cancelled. - A call to either MouseUp or CancelMode is guaranteed after a controller MouseDown method was called. - Mouse controllers are registered by calling the Add method. - If the control that MouseControllerDispatcher should be associated with is derived from ScrollControl, - you should use ScrollControllMouseControllerDispatcher because it will automatically hook itself up - with mouse events from ScrollControl. - Otherwise if you want to attach MouseControllerDispatcher to a different type of Control, you need to - delegate mouse events to MouseControllerDispatcher. MouseControllerDispatcher provides ProcessXYZ methods - for every mouse event that should be forwarded. Simply call these methods from your mouse event handlers in - your control. - - - - - Initializes a new MouseControllerDispatcher object and associates it with the parent control. - - - - - - Resets the dispatcher and calls Dispose for any registered mouse controller and unregisters all mouse controllers. - - - - - - Registers a mouse controller. - - - - - - Removes a mouse controller. - - - - - - Indicates whether a mouse controller has previously been registered. - - - - - - - Search a mouse controller by comparing with the name returned from IMouseController.Name. - - - - - - - Changes the active controller and raises an ActiveControllerChanged event. - - - - - - Sets the controller that will receive mouse hovering messages. If the controller is changed, - MouseHoverLeave and MouseHoverEnter calls are made. - - - - - - - Raises the event. - - A that contains the event data. - - - - HitTest loops through all controllers and calls HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The result identifying the hit-test context. - - The current result of the vote gets passed to the next mouse controller. If a controller wants - to handle mouse events, it can decide based on the existing vote if it has higher priority for it - to handle mouse messages than the existing vote. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - The result identifying the hit-test context. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - A placeholder where a reference to the winning - is returned. - The result identifying the hit-test context. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - 1 for single-click; 2 for double click. - A placeholder where a reference to the winning - is returned. - The result identifying the hit-test context. - - - - - Call this method from your control's MouseMove handler. - - - - - - Call this method from your control MouseDown handler. - - - - - - Call this method from your control's MouseUp handler. - - - - - - Call this method from your control's CancelMode handler. - - - - - - - - Resets support for mouse tracking. - - Call this method after a user interaction that should switch the control back into - normal mouse behavior. For example, when the control gets the focus or when the user clicks a scrollbar. - - - - - Raises the event. - - A that contains the event data. - - - - Indicates that the active controller has changed. - - - Active controller is the controller that is receiving MouseDown, MouseMove and MouseUp messages when the user - has pressed a mouse button. - - - - Returns a reference to the active mouse controller that is receiving MouseDown, MouseMove and MouseUp messages when the user - has pressed a mouse button. - - - - - Returns the controller that currently receives mouse hovering messages. - - - - - Returns the last HitTest value returned that was non-zero. Check this property - if you need to make decision on your mouse controller's HitTest. - - - - - Property AllowDoubleClickTimer (bool). - - - - - Returns the cursor to be displayed. - - - - - Returns a reference to the associated control. - - - - - Enables support for mouse tracking. - - - Specify the bounds where the mouse tracking should start. As soon as the user moves the mouse - over the specified region, MouseControllerDispatcher will simulate a mouse down event. When the user presses - any mouse button MouseControllerDispatcher will simulate a mouse up and resets the mouse tracking mode. After - the initial click on a mouse button, mouse processing will work as usual. - Mouse tracking lets you easily simulate the behavior of windows combo boxes. - - This example enables Mouse Tracking after the drop-down has been shown. - - public override void DropDownContainerShowedDropDown(object sender, EventArgs e) - { - this.ListControlPart.grid.MouseControllerDispatcher.TrackMouse = - this.ListControlPart.grid.RangeInfoToRectangle(GridRangeInfo.Rows( - this.ListControlPart.grid.TopRowIndex, - this.ListControlPart.grid.RowCount)); - } - - - - - - Indicates that the value of the TrackMouse property has changed. - - - - - ScrollControllMouseControllerDispatcher is a specialized version of MouseControllerDispatcher - that automatically wires itself up with a ScrollControl. - - - If the control that MouseControllerDispatcher should be associated with is derived from ScrollControl, - you should use ScrollControllMouseControllerDispatcher because it will automatically hook itself up - with mouse events from ScrollControl. - No initialization is necessary. - You can register MouseControllers with: - - resizeCellsController = new GridResizeCellsMouseController(this); - MouseControllerDispatcher.Add(resizeCellsController); - - See ScrollControl.MouseControllerDispatcher property. - - - - - Initializes a object and associates it with a . - - The this object is associated with. - - - - - - - Provides designer-like context menu support for the PropertyGrid during run-time. - - -

This derived menu has a "Reset" menu item, which automatically - provides the property-resetting service with the ContextMenu of - a during run-time. It also - includes a "Description" menu item to let you show / hide the description portion of the property grid. - Just as in the VS.NET property grid.

-

- To use this component, just create it passing the PropertyGrid in the constructor. - The context menu will then start appearing for that PropertyGrid. There is no - design-time support for this component. -

-
-
- - - Creates a new instance of the PropertyGridContextMenu. - - The to which - this will be made a context menu. - - - - - - - - - - - - - Sets / resets the specified styles on the control. - - The control on which to set / reset the styles. - The style to set / reset. - Indicates whether to set / reset the style. True to set, False to reset. - This method uses reflection to call the protected SetStyle - method on the specified control. - - - - Makes the specified control and all its parent controls the ActiveControl of its parent container. - - The control that needs to be made the ActiveControl of its parent. - - - - Returns the first PropertyGrid encountered in the container control's controls collection. Will recur. - - The instance to a ContainerControl. - A PropertyGrid instance, if found; NULL otherwise. - - - - Updates the designer generated datasource full path to a different one based - on the provided info. - - The Connection object whose ConnectionString will be updated. - The directory name that will be sought after up in the exe's hierarchy (typically the "Data" dir). - A file in the above directory (typically an .mdb file). - - The designer generated path to the "Data" directory could have been changed if the user - installed the product to a non-default directory. - This routine will parse up the dir hierarchy from the exe file and try to find - the "Data" dir and use it instead. - - - - - Finds a file of the given name in the current directory or sibling "Data" directory. - If file is not found, the parent folder is checked until the file is found. This method - is used by our samples when they load data from a separate "Data" folder. - - The name of the "Data" folder. - The filename to be searched. - The full path of the file that was found; an empty string is returned if file is not found. - - - - Returns the preferred size to be used for an empty cell. - - The context of the canvas. - The to be used. - The of the string "Wg;". - - - - Gets / sets the string used when doing a resize to fit for cells with empty text. - - - - - Defines a mechanism for letting others know that you let others cancel your operation. - - - The class relies on this interface. - - - - - To let you know that any current operation should be cancelled. - - - - - A listener class that will listen to and notify Escape key press. - - - As soon as you create this class, it starts listening for the Esc key press using Application.AddMessageFilter. - As soon as it encounters the Escape key, it notifies the source (ICanCancel implementor) and - stops listening to further Escape presses. The Release method will make it stop listening at any point. - - - - - Creates a new instance of the CancelListener class. - - The instance that will be notified on Escape key press. - - - - Makes this instance stop listening for Escape key press. - - - - - - - - - - - Wrapper class for setting the current 's . - - - - - Handles the CultureChanged event raised by the settings form. - - The settings form. - The event data. - - - - Sets the current thread's CurrentCulture. - - The culture to be set. - - - - Raises the CultureChanged event. - - The previous culture's LCID. - The new culture's LCID. - - - - Raises the event. - - Object raising the event. - The event data. - - - - Event raised when the ThreadCulture is changed or the system settings - changed the culture. - - - - - The form used for listening to the WM_SETTINGCHANGE messages. - - - - - Static constructor for ThreadCultureSystem class. - - - - - Form derived class that is registered to receive WM_SETTINGCHANGE messages. - - - - - Overrides to handle the WM_SETTINGCHANGE - message. - - The message. - - - - Overrides to always set the location to be - outside the screen bounds. - - - - - Raises the event. - - The event data. - - - - Event raised when the form senses that the culture has been changed. - - - - - Handles the locale changed event. - - - - - Provides data for the event. - - - - - Returns the LCID of the new culture that has been applied. - - - - - Returns the LCID of the previous culture. - - - - - Returns the reason for the CultureChange. - - - - - CultureChangedReason is used by the to denote - what action initiated the culture change. - - - - - A System level setting change resulted in the culture change. - - - - - Thread level culture change resulted in the culture change. - - - - - Specifies information about the originating action of SheetMoved event. - - - - - None specified. - - - - - Sheet was moved. - - - - - Sheet was inserted. - - - - - Sheet was removed. - - - - - All sheets were removed. - - - - - Handles a event of a . - - - - - Provides data about a event of a . - - - - - Initializes a SheetMovedEventArgs with event data. - - The sheet index. - The destination sheet index. - The originating action for this event. - - - - Returns the sheet index. - - - - - Returns the destination sheet index. - - - - - Returns the originating action for this event. - - - - - Handles a and events of a . - - - - - Provides data about a and events of a . - - - - - Initializes a new with event data. - - The selected index. - The tab associated with the index. - - - - Returns the selected index. - - - - - Returns the tab associated with the index. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Returns Graphics object, font and delta between tabs. - - Graphics object. - Font. - Delta between tabs. - - - - Returns , brush, text color, font and delta between tabs. - - Tab object. - Brush for drawing the tab background. - Text color. - Font used to draw text. - Delta between tabs. - - - - Disposes any temporary drawing object. - - - - - Returns the image list that these tabs get images from. - - - - - Indicates the visual style of the tabBar. - - - - - InternalTab draws tabs inside a in a . - - - - - Renderer used to draw the tab. - - - - - Initializes a new . - - - Initializes a new . - - - - - Gets or sets the visibility of the control. - - - - - Initializes a new with a label. - - The label to display in the tab. - - - - Initializes a new with a cookie. - - The cookie associated with this tab. - - - - Initializes a new with a cookie and a label. - - The cookie associated with this tab. - The owner of this tab. - - - - - - - - - - - - - Recalculates the best size for the button and resizes it. - - - Recalculates the best size for the button and resizes it. - - Graphics object. - Font. - Delta between tabs. - - - - - - - Creates and initializes a bitmap for this tab. - - The size of the bitmap. - Indicates the flat look status. - The bitmap where the button is drawn into. - - When you drag a tab, this function is called to create the dragging button image. - - - - - - - - Gets or sets the visibility of the control. - - - - - Gets / sets the label to display in the tab. - - - - - Gets / sets the index of the image to display in this tab. - - - - - Gets the region that contains the tab bounds. - - - - - Gets the renderer that renders the tab. - - - - - An interface for hosting objects. - - - - - Indicates whether the specified tab is being dragged. - - The tab index. - Current target. - True if tab can be dropped; False otherwise. - - - - Indicates that a tab has been dragged. - - The tab index. - Current target - - - - Indicates whether the scroll button has been pressed. - - Indicates which type of arrow button. - The number of pixels to scroll. - True if scrolled; False otherwise. - - - - Scrolling finished. - - - - - Gets / sets the cursor to display. - - - - - Provides data about a or events of a . - - - - - Initializes a . - - The original tab index. - The destination tab index. - - - - Gets / sets the original tab index. - - - - - Gets / sets the destination tab index. - - - - - Class to Draw the AddNewPage rectangle in TabBar - - - - - Gets/Sets the Hover color for AddButton. - - - - - Resets the PlusHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - To Draw Add symbol in TabBarPage. - - - - - - - Handles the or events of an - - - - - Specifies scroll behavior for a tab bar. - - - - - Scroll pixels. - - - - - Scroll tabs. - - - - - Helper class for . Manages items. - - - - - Holds the MouseHover value - - - - To check whether the tab is double clicked. - - - - To draw the Plus symbol near the Tab Bounds - - - - - To Get the bounds of the AddNewPage button. - - - - - Initializes an and attaches it to a control. - - The parent control. - - - - - - - Called from parent control to draw this bar. - - A Graphics object. - The delta in pixels between tabs. - - - - Called when a button is clicked. - - The that was clicked. - - Called by OnMouseDownEvent. - - - - - - - - - - - - - - - - - Checks if mouse is over a button and returns the zero-based button index or -1. - - X-coordinate of mouse pointer. - Y-coordinate of mouse pointer. - Zero-based button index; -1 if not over a button. - - - - - - - Repaints only if marked dirty. - - - - - Returns the index for the specified button. - - The button to search. - - - - Returns the index for a button with the specified cookie. - - The cookie to search for. - - - - Cancels current action. - - - - - - - - - - - - - - - - - - - - Scrolls a specified tab into view. - - - Scrolls a specified tab into view. - - The tab that should be made visible. - - - - Scrolls a specified tab into view. - - The index of the tab that should be made visible. - - - - - - - - - - Scrolls the tabs in the specified direction. - - - Scrolls the tabs in the specified direction. - - The direction to scroll. - - - - Overloaded. Scrolls the tabs in the specified direction with the specified number of pixels. - - The direction to scroll. - The pixels to scroll. - - - - Scrolls the tabs in the specified direction with the number of pixels. - - The direction to scroll. - The pixels to scroll. - Indicates whether scrolling should abort when last button is visible and you scroll further. - - - - Initializes ToolTips boundaries. - - - - - Reinitializes and hides ToolTips. - - - - - Resets hovered state for all buttons. - - - - - Resets pushed state for all buttons. - - - - - Resets checked state for all buttons. - - - - - Resets DragTarget state for all buttons. - - - - - Refreshes the current tab and optionally scrolls it into view. - - True if current tab should be scrolled into view. - - - - Occurs when a tab has been moved. - - - - - Occurs before a tab is moved. - - - - - Indicates whether a button is currently pressed. - - - - - Returns a value that indicates which buttons to show enabled. Other buttons are disabled. - - - - - Gets / sets the button list. - - - - - Gets / sets the boundaries of this bar. - - - - - Indicates the flat look status for buttons. - - - - - Indicates whether any button is dirty or sets all buttons dirty. - - - - - Indicates whether any button is enabled or sets all buttons enabled / disabled. - - - - - Indicates whether any button is in hovered state. - - - - - Indicates whether any button is in pushed state. - - - - - Indicates whether any button is in checked state. - - - - - Indicates whether any button is in DragTarget state or sets DragTarget state for the specified index. - - - - - Gets / sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets / sets the current tab. - - - - - Gets / sets the total logical width of this button bar including all buttons. If the logical - width is greater than the actual width, the tab bar lets the user scroll it. - - - - - Gets / sets the current scroll position. - - - - - Indicates whether the user is in the process of dragging a tab. - - - - - A collection OF items. - - - - - Initializes a and associates it with an owner. - - The owner. - - - - Adds an array of InternalTab into the list. - - An InternalTab array. - Available to enable serialization using AddRange in designer. - - - - Adds an to the list. - - The to be added. - The index of the added value. - - - - Inserts an at the specified index. - - The to be added. - The index of the added value. - - - - Returns the index of the specific tab. - - The tab to search for. - The index of the tab; -1 if not found. - - - - Indicates whether the specified object is a member of this collection. - - The object to search for. - True if is a member; False otherwise. - - - - Removes an from the collection. - - The to be removed. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Gets / sets the at the specified index. - - - - - - - - - - - - - - - Special graphics for text measuring. - - - - - Default tab font. - - - - - Indent from borders to the text. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets tab preferred size. - - - - - - - Returns the overlapped size of the tabs. - - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Measures the text. - - The text to be measured. - The font of the text. - Size of the text. - - - - Draws the text. - - - - - Draw text by native GDI API. - - - - - Returns the parent. - - - - - Bounds of the tab. - - - - - Gets the region which contains tab bounds. - - - - - Gets the tab. - - - - - Text of the tab. - - - - - Font of the active tab. - - - - - Font of the active tab. - - - - - Color used to draw the text of the tab. - - - - - Get special measure graphics that allowing measuring without control creation. - - - - - Gets metro highight color - - - - - Gets metronormal color. - - - - - - - - - - - Gets or sets metrohighlight color - - - - - Gets or sets metro normal color. - - - - - Office2016Colorful Renderer - - - - - Holds the Visualstyle - - - - - Constructor - - - - - - Gets highight color - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - Override - - - - - - - Override - - - - - - - - - Static method has VisualStyles - - - - - - - - - Gets or sets highlight color - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016WhiteTabsRenderer - - - - - Constructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016DarkGrayTabsRenderer - - - - - Contructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016DarkGrayTabsRenderer - - - - - Constructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Blend used to draw the tab. - - - - - Blend used to draw the tab. - - - - - Blend used to draw the tab. - - - - - - - - - - - - A control for creating Tabbed Dialogs or Excel workbook type - windows. This control provides a row of tabs that the - user can select from one at a time. After each selection, a notification - is provided that allows for changing of UI. - The tab bar can share the row with an associated scrollbar. The - user can adjust the width of the tab bar and increase the scrollbar's - size by dragging a splitter found in the middle of the row. - - - - - Default size of the control - - - - - Indicates whether TabBar is mouse pointed or not - - - - - Specifies AddNewPageButton Image rendering bound - - - - - Holds the TabBarSplitter Visualastyle - - - - - Creates the ToolTip. - - - - - Creates the text box during edit - - - - - - - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - To get the Bounds of the AddNewButton. - - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new with a scrollbar. - - The scrollbar to be displayed to the right of the tab bar. - - - - Indicates whether edit custom control lost its focus. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - Assign the text to the TabBar - - - - - To Specify EditOnTabPage to be serialized or not - - - - - Occurs when the user clicks on a tab. - - The tab that was clicked. - - Sets the . - - - - - Raises the event. - - A that contains the event data. - - - - Occurs when the users drags the splitbar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moved the splitter bar. - - The source of the event. - - - - Raises the event. - - Event data. - - - - Repaints the splitter bar. - - The source of the event. - - - - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - - - - Resets the AddButtonHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - - - - - - - - - - Calculates the boundaries of the tab bar (both tabs and arrows) within the current control. - - The boundaries of the tab bar. - - Will return unless overriden in derived class. - - - - - Calculates the boundaries of the tab bar child (without arrow bar) within the current control. - - The size of the tab bar. - The boundaries of the inner tab bar. - - - - Calculates the boundaries of the arrow bar within the current control. - - The boundaries of the arrow bar. - - - - - - - Creates the inner tab bar that displays the tabs. - - The for the inner tabs. - - - - - - - Creates an instance of the and initializes it with the layout information. - - The initialized . - - - - - - - - - - - - - - - Finds and returns the tab that holds the specified item as cookie. - - - - - Removes the tab that holds the specified item as cookie. - - - - - - - - Removes all tabs. - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - The new tab index. - The object for the tab. - False if cancelled; True if successful. - - - - Raises the event. - - The new tab index. - The object for the tab. - - - - - - - Occurs after the selected tab index has changed. - - - - - Occurs before the selected tab index is changing. - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Enable the edit mode in TabBarPage - - - - - Occurs when a tab is dragged by the user. You can set e.Cancel = True - to prevent dragging a tab. - - - - public Form1() - { - InitializeComponent(); - - this.tabControl1.Bar.DraggingTab += new TabMovedEventHandler(Bar_DraggingTab); - } - - private void Bar_DraggingTab(object sender, TabMovedEventArgs e) - { - Console.WriteLine("Bar_DraggingTab {0}, {1}", e.Tab, e.DestTab); - e.Cancel = true; // Do not allow dragging the tab - } - - - - - Occurs when the property has changed. - - - - - Gets/Sets whether to show/hide AddNewButton Image - - - - - Gets/Sets the Hover color for AddButton. - - - - - Gets/Sets AddNewTabBarOption Image in TabBarSplitterControl - - - - - Gets/Sets TabBarPage which is being mouse pointed - - - - - Gets / sets the delta used for drawing the tabs. - - - - - Gets / sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets / sets the inner tab bar that displays the tabs. - - - - - Gets or sets a that holds an array of buttons. - - - - - Gets or sets a that holds an array of buttons. - - - - - - - - Gets / sets the width of the tab bar relative to the width of the client bounds. - - - - - Gets / sets the index of the currently selected tab in the strip, if there - is one. If the value is -1, there is currently no selection. If the - value is 0 or greater, then the value is the index of the currently - selected tab. - - - - - Enables / disables the resizing of tab bar. - - - - - Returns the list of tabs displayed in the tab bar. - - - - - Gets or sets the visual style of the tabBar. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - - Returns the imageList the control points at. This is where tabs that have imageIndex - set will get their images from. - - - An image list control. - - - - - Occurs when the has changed. - - - - - Gets / sets the cookie of the current selected tab or sets the tab with the specified cookie. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on - them. - - - - - Returns the number of tabs in the strip. - - - - - - - - Class to derive the TextBox to Edit - - - - - - Provides design-time functionality for the . - - - provides a way to add and remove - tabs at design-time, as well as tab hit testing logic at design-time. - - - - - - - - - - - - - - - - - Called when the current selection changes. Here we check to - see if the newly selected component is one of our tabs. If it - is, we make sure that the tab is the currently visible tab. - - - - - Called when the tab property changes. We just set a flag here to - indicate to the later index changed event that the change was the - result of a property change, so there is no need to update the - selection. - - - - - Called when the selected tab changes. This accesses the design - time selection service to surface the new tab as the current - selection. - - - - - Accessor method for the property on - . - - - The selected index. - - - This property is shadowed at design-time. - - - - - TabPage implements a single page of a tab bar control. It is essentially - a panel that can host other child controls. The TabBarSplitterControl will - display the text property of this control as a label in the associated tab. - - - - - The size of the GESTURECONFIG. - - - - - The size of the GESTUREINFO. - - - - - The starting Gesture points - - - - - The ending gesture point. - - - - - Initialize the last vertical scroll value. - - - - - Initialize the last horizontal scroll value. - - - - - Handles the gesture information. - - The Messagge - - - - Back color for TabBarPage Tab. - - - - - - - - Holds TabBar back color - - - - - To Reset TabBarColor - - - - - Indicate whether to serialize TabBarColor - - - - - Indicates whether we can split the rows at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether we can split the columns horizontally at the specified x coordinate. - - The horizontal position in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Closes the specified pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Closes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Closes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Indicates whether the scrollbar belongs to the active pane. - - The control associated with the scrollbar. - Specifies the vertical or horizontal scrollbar. - True if active; False otherwise. - - - - - ScrollControl checks IsActive to find out if it is target of a HScroll event - - protected virtual void OnHScroll(object sender, ScrollEventArgs se) - { - try - { - IScrollBarFrame sbf = GetScrollBarFrameOfComponent(this); - if (sbf != null && !sbf.IsActive(this, ScrollBars.Horizontal)) - return; - - ... - - - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a pane will be created on demand with a call to . - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a null reference will be returned. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the row and column index for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by the row and column indices. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - Occurs when the user drags the splitterbar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user has moved the splitter bar. - - The source of the event. - - - - Repaints the splitter bar. - - The source of the event. - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - - - - - - - Initializes a new TabBarPage. - - - Constructs a TabBarPage with text for the tab. - - - The text for this tab. - - - - - Initializes a new TabBarPage. - - - - - - - - Given a component, this retrieves the tab page that it is parented to or - NULL if it is not parented to any tab page. - - - The component to check. - - - A TabBarPage that the component is parented to or NULL if - no such page exists. This will return the component if it - is an instance of TabBarPage. - - - - - - - - - - - Raises the event. - - Event data. - - - - Gets or sets the visibility of the control. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Raises the event. - - Event data. - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Activates a specified control. - - The being activated. - True if the control is successfully activated; False otherwise. - - The control must be a child of the container control. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Indicates whether this control contains focus. If - implements , the - method is called on the . - - True if the control or any child control has focus; False otherwise. - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls get focus and it - is not called when focus is moved within child controls of this control. - - - - - Raises the event. This method is called when the control - or any child control loses focus and the newly focused control is not a child of this control. - - - Inheriting classed should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Returns the parent splitter frame. - - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Occurs after the control to be displayed in a new pane has been created. Use this - event to implement additional initialization for the new control. - - - PaneCreated is an ideal hook to add handler for events in the new control. - - - - - Occurs after a row or column is hidden and before the control that is displayed in the pane - is disposed. Use this event to implement additional clean up for the control before - is called. - - - PaneClosing is an ideal hook to unwire event handlers from the control. - - - - - Gets / sets the active pane in the splitter control. - - - - - - - - - - - Enables / disables this page in a . - - - - - Gets or set the value indicating whether the TabBarPage is enabled or not - - - - - - - - - - - - - - Gets / sets the ToolTip text for the tab that will appear when the mouse hovers - over the tab and the TabBarSplitterControl's showToolTips property is True. - - - - - Sets the Maximum width for the TabBarPage - - - - - Gets or sets the visibility of the control. - - - - - Gets / sets a value indicating what split behavior is supported. Rows, columns or both. - - - - - Gets / sets the horizontal splitter position in percentages of the splitter control's width. - - - - - Gets / sets the vertical splitter position in percentages of the splitter control's height. - - - - - Gets / sets the that holds information about current vertical and horizontal split positions. - - - - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the has been called. resets this flag. - - - - - Indicates whether both has been called. resets this flag. - - - - - Indicates whether both has been called. resets this flag. - - - - - Occurs when both and occurs. - - - - - Gets / sets the icon displayed on the tab. - - An Icon value. - - - - Gets or sets back color for TabBarPage Tab. - - - - - Creates a new TabBarPageControlCollection. - - - The owner of this collection. This is the control whose child - controls we are to represent. - - - - - Adds a child control to this control. The control becomes the last control - in the child control list. If the control is already a child of another - control, it is first removed from that control. The tab page overrides - this method to ensure that child tab pages are not added to it, as these - are illegal. - - The child control to be added. - If the specified control is a toplevel control or if a circular control reference would result. - - - - Provides design-time functionality for - controls. - - - - - - - - - - - - - - TabBarPageAdding Event DelegateHandler - - - - - TabBarPageAdding event arguement class - - - - - TabBarPageAdding event arguement class initializer - - - - - LabelEditing Event DelegateHandler - - - - - LabelEditing event arguement class - - - - - LabelEdit ends event arguement class initializer - - - - - Cancel args - - - - - Gets the TabBarText - - - - - Cancel the selection - - - - - LabelEditing Event DelegateHandler - - - - - LabelEditing event arguement class - - - - - LabelEdit ends event arguement class initializer - - - - - Gets the TabBarText - - - - - TabBarMouseEventArgs event delegate handler - - - - - TabBarMouseEventArgs class - - - - - Holds button instances. - - - - - Holds TabBarPage which is selected. - - - - - Holds bar location. - - - - - TabBarSelectionArgs class initializer - - - - - Gets the Mouse Button - - - - - Gets the selected TabBarPage. - - - - - Gets the TabBounds bounds. - - - - - Gets Mouse Pointer Location - - - - - Provides functionality for displaying several controls - in an Excel-like workbook control. Each might optionally - support splitting its view with a dynamic splitter frame. - - - - - Variable for TabBar page is in EditMode - - - - - Reset the Office2013Style on StyleChange - - - - - Lock Window On style Change - - - - - - - Default size of the control - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - Used to move the TabBarPage in TabBarSplitterControl - - - - - Initializes a new . - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - - - - - - - - - Overridden method of refresh. - - - - - Overridden method of Tostring() - - - - - - Called when the user is dragging a tab. - - The source of the event. - Event data. - - - - Called when the user finishes dragging a tab. - - The source of the event. - Event data. - - - - - - - - - Get or Set of Skin Manager Interface - - - - - - - To raise TabBarPageAdding Event - - - - - - To raise LabelEditEnds Event - - - - - - Cancels the editable state of the Tabpage. - - - - - To raise LabelEditBegin Event - - - - - - To raise TabBarMouseDown Event - - - - - - Indicates whether to Serialize ActivePageBorderColor API - - - - - - Resets the ActivePageBorderColor. - - - - - Indicates whether to Serialize ShowMetroSeperator - - - - - - Resets the ShowMetroSeperator. - - - - - Indicates whether to Serialize EnableOffice2013Style API - - - - - - Resets the EnableOffice2013Style. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Resets to default. - - - - - Resets to default. - - - - - - - - - - - Creates the . - - The new . - - - - - - - - - - - - - - - - - - - - - - Move the Tabbarpage with respect to given pages. - - - - - - - Move Tabbarpage with respect to given index. - - - - - - - Hides the . - - - - - - Activates the next or previous page. - - True if previous pane should be activated; False if next pane should be activated. - - - - - - - - - - - - - To reset LabelEdit - - - - - To Specify LabelEdit to be serialized or not - - - - - To reset EditOnTab - - - - - To Specify EditOnTab to be serialized or not - - - - - Resets the AddButtonHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - - - - - - - - - - - Occurs after the active page has changed. - - - - - Occurs before the active page is changed. - - - - - Occurs when the TabBarPage is show or Hide or Add or Remove. - - - - - Occurs when Mouse pointer rest on TabBarPage bounds - - - - - Occurs when Mouse pointer leave TabBarPage bounds - - - - - Occurs when Mouse pointer leave TabBarPage bounds - - - - - Occurs after edting the TabBarPage. - - - - - Occurs before edting the TabBarPage. - - - - - Triggers mouse down occurs on TabBar - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the tab bar. - - - - - Indicates whether Icons should be displayed in the tabs. - - - - - Gets the Office16themes Colors - - - - - Gets or sets the visual style of the tabBarSplitterControl. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets or sets office 2007 style scroll bars. (overridden property) - - - - - Gets or sets office 2007 scroll bars colorScheme. (overridden property) - - - - - - - - Gets or sets the index of the active page. - - - - - Specifies the color with which the ActivePageBorder bottom border should be drawn. - - - - - Gets or sets whether to show/hide the Seperator in MetroStyle - - - - - Gets or sets value to enable or disable the EnableOffice2013Style in MetroStyle - - - - - Gets or sets the currently visible TabBarPage. - - - - - Gets or sets the number of milliseconds to wait before repeatedly firing scroll event. - - - - - Gets or sets the color of the arrows in the enabled buttons. - - - - - Gets or sets the color of the arrows in the disabled buttons. - - - - - Returns the list of TabBarPages displayed in the TabBar. Each TabBarPage - will have a tab associated with it. - - - - - Gets or sets the delta used for drawing the tabs. - - - - - Gets or sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets or sets the size factor with that TabBar size to be increased - - - - - Gets/Sets whether to display AddNewPageTabBarPage Option or not - - - - - Enable the edit mode when Double Click on TabBarPage - - - - - Enable the edit mode in Selected TabBar - - - - - Gets/Sets background image for AddNewTabBarPageButton - - - - - Gets/Sets the Hover color for AddButton. - - - - - Gets or sets the width of the tab bar relative to the width of the client bounds. - - - - - Enables or disables the resizing of tab bar. - - - - - Gets or sets the arrow buttons to be shown in an arrow bar. - - - - - A collection of objects. - - - You can access this collection with the of a . - - - - - Initializes a new and - associates it with a . - - The that manages this collection. - - - - Returns an enumerator that lets you enumerate through the list of items. - - An enumerator. - - - - Removes an item at the specified index. - - The item index. - - - - Clears all entries from the list. - - - - - Inserts a at the specified index. - - The index where the page should be inserted. - The page to be inserted. - - - - Adds a to the collection. - - The page to be added. - - - - Adds an array of to this collection. - - The pages to be added. - - - - Indicates whether the specified belongs to this collection. - - The page to be tested. - True if page belongs to collection; False otherwise. - - - - Returns the index of the specified page to be queried. - - The page to look up. - The zero-based index of the page; -1 if not found. - - - - Removes a page from the collection. - - The page to remove. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Returns the number of pages. - - - - - Returns False. - - - - - Gets / sets the at the specified index. - - - - - Specifies the style with which tabBarSplitterControl will appear. - - - - - Default appearance. - - - - - Office 2007-like appearance. - - - - - Metro like appearance. - - - - - Office2016Colorful like appearance. - - - - - Office2016White like appearance. - - - - - Office2016DarkGray like appearance. - - - - - - - Provides design-time functionality for the . - - - provides a way to add and remove - tabs at design-time, as well as tab hit testing logic at design-time. - - - - - Initializes a new TabBarSplitterControlDesigner. - - - - - - Indicates whether the - specified point was within the bounds of the component. - - - - - - - - Given a component, this retrieves the tab page that it is parented to or - NULL if it is not parented to any tab page. - - - The component to check. - - - A TabPage that the component is parented to or NULL if - no such page exists. This will return the component if it - is an instance of TabPage. - - - - - - - - Initializes the designer using the specified component. - - The component to associate this designer with. This must always be an instance of the control. - - - - - Called in response to a verb to add a tab. This adds a new - tab with a default name. - - - - - This is called in response to a verb to remove a tab. It removes - the current tab. - - - - - Called when the current selection changes. Here we check to - see if the newly selected component is one of our tabs. If it - is, we make sure that the tab is the currently visible tab. - - - - - Called when the tab property changes. We just set a flag here to - indicate to the later index changed event that the change was the - result of a property change, so there is no need to update the - selection. - - - - - Called when the selected tab changes. This accesses the design - time selection service to surface the new tab as the current - selection. - - - - - Gets / sets the persisted active page index. - - - - - Indicates whether to draw a grid for the control. - - - if a grid should be drawn; - otherwise. - - - - - - Gets / sets the design-time verbs supported by the component associated with the designer. - - - An array of objects. - - - The verbs returned by this method are typically displayed in a right-click - menu by the design-time environment. The return value may be NULL if the - component has no design-time verbs. When a user selects one of the verbs, the - performVerb() method is invoked with the the corresponding DesignerVerb object. - NOTE: A design-time environment will typically provide a "Properties..." entry - on a component's right-click menu. The getVerbs() method should therefore not - include such an entry in the returned list of verbs. - - - - - This class fully encapsulates the painting logic for a tab in a TabBarSplitterControl. - - - - - - - - - - - - - - Draws text by native GDI API. - - Graphics object which ised for drawing. - Font of the text. - Color of the text. - Bounds of tge text. - Text which has to be drawn. - - - - A form that hosts a . The fills the whole form. - - - - public class NewWorkbookFile : BasicAction - { - int windowCount = 0; - WorkbookModel workbook; - public override void InvokeAction(object sender, EventArgs e) - { - windowCount++; - workbook = new WorkbookModel("Workbook"); - GridModel sheet1 = new GridModel(); - SampleGrid.SetupGridModel(sheet1); - GridModel sheet2 = new GridModel(); - SampleGrid.SetupGridModel(sheet2); - - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 1", sheet1)); - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 2", sheet2)); - - WorkbookForm doc = new WorkbookForm(workbook); - doc.Text = workbook.Name + windowCount; - doc.MdiParent = MainWindow; - doc.Show(); - } - } - - - - - - Overloaded. Initializes a new and associates it with a . - - The view to be displayed in the form. - - - - Initializes a new and associates it with a new default - that is created for the specified . - - The model for the workbook view to be displayed in the form. - - - - Initializes a new . - - - - - Cleans up any resources being used. - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Gets / sets the view that is displayed in the form. - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - Provides the data / model part for an Excel-like Workbook display. A has a - with multiple s to display in the workbook. - - - This class can be serialized into a serialization stream. - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in this object. - - - - - Initializes a new . - - - Initializes a new and sets a name for the workbook. - - The name of this workbook. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - - - - Occurs when the has changed. - - - - - Occurs when the has changed. - - - - - Returns the collection with items. - - - - - Gets / sets the active for this model. - - - - - Gets / sets the name for this workbook. - - - - - Provides functionality for displaying several controls in an Excel-like workbook. - - - A is associated with a . The - has a collection. For each of the objects in - the collection of the , a - is created and displayed in this . - - - - public class NewWorkbookFile : BasicAction - { - int windowCount = 0; - WorkbookModel workbook; - public override void InvokeAction(object sender, EventArgs e) - { - windowCount++; - workbook = new WorkbookModel("Workbook"); - GridModel sheet1 = new GridModel(); - SampleGrid.SetupGridModel(sheet1); - GridModel sheet2 = new GridModel(); - SampleGrid.SetupGridModel(sheet2); - - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 1", sheet1)); - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 2", sheet2)); - - WorkbookForm doc = new WorkbookForm(workbook); - doc.Text = workbook.Name + windowCount; - doc.MdiParent = MainWindow; - doc.Show(); - } - } - - - - - - Initializes a new for the specified . - - The which holds data to be displayed in this view. - - - - - - - - - - Creates the . - - The new . - - - - - - - Occurs when the view is activated. - - - - - Returns the which holds data to be displayed in this view. - - - - - A collection of items. - - - You access this collection with the property of - a . - - - - - Initializes a new and - associates it with a . - - The that manages this collection. - - - - - - - Provides the data / model part for a worksheet in an Excel-like Workbook display. A is a member of the - collection of a . - - - This class can be serialized into a serialization stream. - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in a . - - - - - Initializes a new . - - - Initializes a new and associates it with a . - - The this sheet belongs to. - The name of this sheet. - - - - Initializes a new and associates it with a . - - The this sheet belongs to. - The name of this sheet. - The object with data to be displayed in this control, e.g. a Syncfusion.Windows.Forms.Grid.GridModel - with grid data. The object should implement the interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - - - - Creates the that knows how to display the in a form. - - The to be displayed in the - - - The object should implement interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Raises the event. - - EventArgs.Empty. - - - - Occurs when the property is changed. - - EventArgs.Empty. - - - - Raises the event. - - - - - - Raises the event. - - EventArgs.Empty. - - - - Occurs when the is changed. - - - - - Occurs when the is changed. - - - - - Occurs when the property is changed. - - - - - Occurs when the property is changed. - - - - - Gets / sets the name of this worksheet. - - - - - Gets / sets the object with data to be displayed in this control, e.g. a Syncfusion.Windows.Forms.Grid.GridModel - with grid data. The object should implement interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Gets / sets the ToolTip text for the tab that will appear when the mouse hovers - over the tab and the TabBarSplitterControl's showToolTips property is True. - - - - - Indicates whether this worksheet is visible in the parent workbook. - - - - - Returns the this sheet is associated with. - - - - - Represents a collection of objects. - - - - - Initializes a new instance of the class. - - - Initializes a new instance of the class. - - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Releases any resources used. - - - - - Initializes a new instance of the class containing the - elements of the specified source collection. - - A with which to initialize the collection. - - - - Initializes a new instance of the class containing the specified array of objects. - - An array of objects with which to initialize the collection. - - - - Returns the index of a sheet with the specified name. - - The name of the sheet to find. - The index of the sheet with the specified name; -1 if not found. - - - - Adds the specified to the collection. - - The to add. - - The index at which the new element was inserted. - - - - - Overloaded. Copies the elements of the specified array to the - end of the collection. - - An array of type containing the objects to add to the collection. - - - - Adds the contents of another to the end of the collection. - - A containing the objects to add to the collection. - - - - Indicates whether the collection contains the specified . - - The to search for in the collection. - - - if the collection contains the specified object; - otherwise. - - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Returns the index in the collection of the specified , if it exists in the - collection. - - The to locate in the collection. - - The index in the collection of the specified object, if found; -1 otherwise. - - - - - Inserts the specified into the collection at the specified index. - - The zero-based index where the specified object should be inserted. - The to insert. - - - - Removes the specified from the collection. - - The to remove from the collection. - - - - Moves a worksheet from one position to another. - - The original index of the worksheet. - The new index of the worksheet. - - - - Called when the order of the worksheet has changed. - - The original index of an affected worksheet. - The new index of an affected worksheet - The reason for the change. - - - - - - - - - - - - - - - - - - - Suspend updating the display. - - - - - Resumes updating the display. - - - - - Creates a new empty and names it "Sheet #". - - The this new sheet is added to. - The new . - - - - Occurs when the order of sheets has been changed. - - - - - Gets / sets the at the specified index. - - - - - Indicates whether was called. - - - - - WorksheetView implements a single page in a . It is essentially a panel that hosts a child control - that is created from the of a . - - - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in a object. - - - - - Initializes a new for an existing and a - that displays this sheet. - - The that manages the data for this view. - The that displays this sheet as a page. - - - - - - - - - - - - - - - - Returns the that displays this sheet as a page. - - - - - Returns the that manages the data for this view. - - - - - Interface for XmlSerializationReader children. - - - - - Returns deserialized object. - - Deserialized object. - - - - Interface for XmlSerializationWriter children. - - - - - Serializes given object. - - - - - Inherits XmlSerializer and uses manual Xml reader and writer. - - - - - Serialization reader. Used in overriden CreateReader() method. - - - - - Serialization writer. Used in overriden CreateWriter() method. - - - - - Creates new instance of SerialiserWrapper. - - Serialization reader. - Serialization writer. - - - - Forces using of manual reader. - - Xml serialization reader to use. - - - - Forces using of manual writer. - - Xml serialization writer to use. - - - - Serialization. - - - - - - - Deserialization. - - - - - - - Class for managing custom Xml serializers. - - - - - Gets serializer for given type. - - Type to get serializer for. - Custom serializer instance or standard XmlSerializer instance if it canot be found. - - - - Creates files with code of XmlSerializationReader and XmlSerializationWriter derived classes - for manual serialization of sepcified types. - - - - - Temporary subdirectory for storing temporary files. - - - - - Mask for searching .cs files. - - - - - String that should be removed from created code. - - - - - Initial namespace. - - - - - Place in code where writer base type is defined. - - - - - Place in code where reader base type is defined. - - - - - Expression for implementing IXmlSerializationWriter. - - - - - Expression for implementing IXmlSerializationReader. - - - - - Name of Xml reading method in reader class. - - - - - Name of Xml writing method in reader class. - - - - - Initial name of reader class. - - - - - Initial name of writer class. - - - - - Ouput path to store .cs files. - - - - - Namespace of output classes. - - - - - List of names of types to create serializer classes for. - - - - - XmlSerializer.tempAssembly field info. - - - - - XmlSerializer.methodIndex field info. - - - - - TempAssembly.methods field info. - - - - - TempAssembly.TempMethod.readMethod field info. - - - - - TempAssembly.TempMethod.writeMethod field info. - - - - - Creates new instance of XmlSerializersCreator. - - Ouput path to store .cs files. - Namespace of output classes. - List of names of types to create serializer classes for. - - - - Static constructor. Initializes data for reflexion. - - - - - API function for setting value to environment variable. - - Name of variable. - New value. - True if succeeded, otherwise false. - - - - Creates needed files with required classes. - - - - - Gets names of Xml reading and writing methods from given Xml serializer. - - Xml serializer instance to extract data from. - Array of two strings with required names. - - - - Changes classes names and saves code to files. - - Generated text with code. - Name of type to create serializers for. - Path to the directory where result files should be stored. - - - - Adds interfaces implementation to code. - - String with code to modifie. - String with corrected code. - - - - Start gradient color. - - - - - End gradient color. - - - - - Gradient style. - - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Create gradient brush. - - Rectangle it sketch. - Gradient brush. - - - - - - - Occurs when start color changed. - - - - - Occurs when end color changed. - - - - - Occurs when gradient mode changed. - - - - - Get or set start gradient color. - - - - - Get or set end gradient color. - - - - - Get or set gradient style. - - - - - Occurs when this class changed. - - - - - Occurs when start color changed. - - - - - Occurs when end color changed. - - - - - Occurs when gradient mode changed. - - - - - - - - - - - - - - String format outputing text. - - - - - This component style. - - - - - Skip all evants if QuietMode runing. - - - - - User icon size thumbnail. - - - - - User icon as default mode. - - - - - User icon as select mode. - - - - - Order of the drawing button. - - - - - User name. - - - - - User help. - - - - - Active mode as mouse overhead component. - - - - - Select mode as user password enter. - - - - - GraphicsPath for rectangle in user icon. - - - - - GraphicsPath for rectangle in user TextBox. - - - - - Images List. image can be choosed from this list and be displayed as - menu item icon. - - - - - Image index from image list. - - - - - Image index from image list. - - - - - Regions user icon. - - - - - Neeeded recalculate layout graphics element. - - - - - Regions for user name. - - - - - Regions for user help. - - - - - Collection of Buttons - - - - - Button to enter password. - - - - - TextBox for password enter. - - - - - TextBox layout. - - - - - Icon button password enter. - - - - - Text Rendering Hint. - - - - - Auto hide text box as control lost focus. - - - - - Auto reset password as text box show. - - - - - Constructor this component. - - - - - - - - - - Begin initialize. - - - - - Begin initialize. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when quiet mode changed. - - - - - Occurs when thumbnail size changed. - - - - - - Occurs when default icon changed. - - - - - - Occurs when select icon changed. - - - - - - Occurs when user name changed. - - - - - - Occurs when help string changed. - - - - - - Occurs when image list changed. - - - - - - Occurs when default image index changed. - - - - - - Occurs when password box changed. - - - - - Occurs when button enter icon changed. - - - - - - - - Occurs when user enter password. - - - - - Occurs when component style changed. - - - - - - - Occurs when text rendering hint changed. - - - - - Occurs when text box create. - - - - - Occurs when text box initialize. - - - - - Text box constructor. - - - - - Occurs when auto hide text box changed. - - - - - Occurs when auto reset password changed. - - - - - Draw rounded rectangle. - - X - coordinate of rectangle. - Y - coordinate of rectangle. - Width rectangle. - Heigth rectangle. - Radius evening-out. - GraphicsPath rounded rectangle. - - - - Calculate layout graphics element. - - - - - Calculate user name layout. - - - - - - - - - Calculate user help layout. - - - - - - - - - Calculate text box layout. - - - - - - - Calculate buttons layout. - - - - - - - Draw icon shadow. - - Graphics for paint. - - - - Retrieves object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - Retrieves the child object at the specified screen coordinates. - - - - Retrieves object at the specified screen coordinates. - - Screen coordinate - Retrieves object at the specified screen coordinates. - - - - Mirror RectangleF for RigthToLeft representation. - - RectangleF as mirror. - - - - Mirror Region for RigthToLeft representation. - - Region as mirror. - - - - - Mirror GraphicsPath for RigthToLeft representation. - - GraphicsPath as mirror. - - - - Mirror all graphics element for RigthToLeft representation. - - - - - - Get or set component style. - - - - - Get or set user icon size. - - - - - Get or set image list user icons. - - - - - Get or set user icon index from image list. - - - - - Get or set user icon index from image list. - - - - - Get or set default user icon. - - - - - Get or set select user icon. - - - - - Get or set user icon as select mode. - - - - - Get or set user name. - - - - - Get or set user help. - - - - - True - do not raise any events, otherwise False. - - - - - Get active mode as mouse overhead component. - - - - - Get select mode. - - - - - Get password box. - - - - - Get or set Text Rendering Hint. - - - - - Get or set auto hide text box as control lost focus. - - - - - Get or set auto reset password as text box show. - - - - - Collection of buttons. - - - - - Occurs when quiet mode changed. - - - - - Occurs when thumbnail size changed. - - - - - Occurs when default icon changed. - - - - - Occurs when select icon changed. - - - - - Occurs when user name changed. - - - - - Occurs when help string changed. - - - - - Occurs when image list changed. - - - - - Occurs when default image index changed. - - - - - Occurs when password box changed. - - - - - Occurs when button enter icon changed. - - - - - Occurs when when user enter password. - - - - - Occurs when text rendering hint changed. - - - - - Occurs when auto hide text box changed. - - - - - Occurs when auto reset password changed. - - - - - Get user icon for drawing this time. - - - - - Button name. - - - - - Backgroundcolor color of the highlighted button. - - - - - Backgroundcolor color of the pressed button. - - - - - Represent bounds of the button. - - - - - Transparent color of the button's image. - - - - - Index of the button. - - - - - Shows type of the button. - - - - - Indicate whether the button is enabled. - Default value is true. - - - - - Indicate whether the button is Visible. - Default value is true. - - - - - Name of the button. - - - - - Represent button's image. - Default value is null. - - - - - Indicate button's state. - - - - - Draws grayed image. - - - - - Gets or set button bounds. - - - - - Gets or sets transparent image color. - - - - - Gets or sets index of the button. - - - - - Gets or sets type of the button. - - - - - Gets or sets if button is enabled. - - - - - Gets or sets if button is Visible. - - - - - Gets or sets button's name. - - - - - Gets or sets image of the button. - - - - - Gets or sets button' state. - - - - - Class component style. - - - - - Skip events for quiet mode. - - - - - User name text font for active mode. - - - - - User name text color for default mode. - - - - - User name text color for active mode. - - - - - User name text font for default mode. - - - - - Background gradient style. - - - - - Gradient style rectangle in user icon for default mode. - - - - - Gradient style rectangle in user icon for active mode. - - - - - User name text font for active mode. - - - - - User help text font for default mode. - - - - - User name text color for active mode. - - - - - User name text color for default mode. - - - - - Radius rounded rectangle in icon. - - - - - Radius rounded icons. - - - - - Draw shadow rectangle in icon. - - - - - Shadow size at pixel. - - - - - Constructor this class. - - - - - Draw image rounded rectangle. - - Graphics for paint. - GraphicsPath rounded rectangle. - Active mode. - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Occurs when quiet mode changed. - - - - - Occurs when active font changed. - - - - - - Occurs when RectColorDefault �hanged. - - - - - - Occurs when RectColorActive �hanged. - - - - - - Occurs when user name color default changed. - - - - - - Occurs when user name color active changed. - - - - - - Occurs when font changed. - - - - - Occurs when background start color changed. - - - - - Occurs when background end color changed. - - - - - Occurs when background gradient changed. - - - - - Occurs when active user help font changed. - - - - - Occurs when default user help font changed. - - - - - Occurs when user help color active changed. - - - - - Occurs when user help color default changed. - - - - - Occurs when RectRadius changed. - - - - - Occurs when icon radius changed. - - - - - Occurs when draw shadow changed. - - - - - Occurs when shadow size changed - - - - - Occurs when StyleGradientObject changed. - - - - - - - Get or set user name text font for default mode. - - - - - Get or set user name text font for active mode. - - - - - Get or set help name text color for active mode. - - - - - Get or set help name text color for default mode. - - - - - Get or set background gradient style. - - - - - Get or set gradient style rectangle in user icon for default mode. - - - - - Get or set gradient style rectangle in user icon for active mode. - - - - - User name text font for default mode. - - - - - Get or set User name text font for active mode. - - - - - Get or set user name text color for active mode. - - - - - Get or set user name text color for default mode. - - - - - Get or set radius rounded rectangle in icon. - - - - - Get or set radius rounded icons. - - - - - Get or set draw shadow rectangle in icon. - - - - - Get or set shadow size at pixel. - - - - - True - do not raise any events, otherwise False. - - - - - Occurs when quiet mode changed. - - - - - Occurs when StyleGradientObject changed. - - - - - Occurs when active font changed. - - - - - Occurs when RectColorDefault �hanged. - - - - - Occurs when RectColorActive �hanged. - - - - - Occurs when user name color default changed. - - - - - Occurs when user name color active changed. - - - - - Occurs when font changed. - - - - - Occurs when background start color changed. - - - - - Occurs when background end color changed. - - - - - Occurs when background gradient changed. - - - - - Occurs when active user help font changed. - - - - - Occurs when default user help font changed. - - - - - Occurs when user help color active changed. - - - - - Occurs when user help color default changed. - - - - - Occurs when RectRadius changed. - - - - - Occurs when icon radius changed. - - - - - Occurs when draw shadow changed. - - - - - Occurs when shadow size changed - - -
-
diff --git a/DPM2016/bin/Debug/Syncfusion.Shared.Windows.dll b/DPM2016/bin/Debug/Syncfusion.Shared.Windows.dll deleted file mode 100644 index 7af9357..0000000 Binary files a/DPM2016/bin/Debug/Syncfusion.Shared.Windows.dll and /dev/null differ diff --git a/DPM2016/bin/Debug/Syncfusion.Shared.Windows.xml b/DPM2016/bin/Debug/Syncfusion.Shared.Windows.xml deleted file mode 100644 index ac0bb16..0000000 --- a/DPM2016/bin/Debug/Syncfusion.Shared.Windows.xml +++ /dev/null @@ -1,1380 +0,0 @@ - - - - Syncfusion.Shared.Windows - - - - - - This class holds the name of the Syncfusion.Shared.Windows assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - The full name of this assembly without version information: "Syncfusion.Shared.Windows" - - - - - A reference to the for the grid assembly. - - - - - The root namespace of this assembly. Used internally for locating resources within the assembly. - - - - - This delegate helps with resolving types and can be used as a eventhandler - for a event. - - The source of the event. - The event data with information about the type. - A reference to the assembly where the type is located. - - Use this handler when reading back types from a serialization stread - saved with an earlier version of this assembly. - - - - public static GridModel LoadSoap(Stream s) - { - try - { - AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver); - SoapFormatter b = new SoapFormatter(); - b.AssemblyFormat = FormatterAssemblyStyle.Simple; - GridModel t = b.Deserialize(s) as GridModel; - t.Modified = false; - return t; - } - finally - { - AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver); - } - } - - - - - - - - Wrapper object for menu actions - - - - - Creates an ActionInfo object - - - - Fully qualified name of Event that will be fired - - - - - Parent form/object that contains the menu that item is in - - - - - The menu item tied to the event (e.g. MenuItem, ToolbarItem, etc) - - - - - - Adds the action to the parent object's list of ActionItems. The parent object must have a "RegisterAction" method. - - - - Parent form/object - - - - - - - - - - - - - - - - - - - A collection that stores 'ActionInfo' objects. - - - - - Initializes a new instance of 'ActionInfoCollection'. - - - - - Initializes a new instance of 'ActionInfoCollection' based on an already existing instance. - - - A 'ActionInfoCollection' from which the contents is copied - - - - - Initializes a new instance of 'ActionInfoCollection' with an array of 'ActionInfo' objects. - - - An array of 'ActionInfo' objects with which to initialize the collection - - - - - Adds a 'ActionInfo' item with the specified value to the 'ActionInfoCollection' - - - The 'ActionInfo' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ActionInfoCollection'. - - - An array of 'ActionInfo' objects to add to the collection. - - - - - Adds the contents of another 'ActionInfoCollection' at the end of this instance. - - - A 'ActionInfoCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ActionInfoCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ActionInfoCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ActionInfo' object in the collection. - - - The 'ActionInfo' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ActionInfo' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ActionInfoCollection'. - - - - - Removes a specific item from the 'ActionInfoCollection'. - - - The item to remove from the 'ActionInfoCollection'. - - - - - TODO: Describe what custom processing this method does - before setting an item in the collection - - - - - TODO: Describe what custom processing this method does - before insering a new item in the collection - - - - - Represents the 'ActionInfo' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ActionInfoCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - This class is the common base class for actions such as - MenuActions, Editactions or plugins - - - - - Inheriting actions must overwrite this method, it is called, when the action - occurs. - - - - - - - - - - - - - Derived classes must implement to create a object. - - - Derived classes must implement to create a object. - - - - - - - - - - - Summary description for WinFormsMenuFactory. - - - - - - Abstract base class for menu implementation - - - - - - - - - - Derived classes must override. - - - - returns a Shortcut based on the string representation (e.g. CtrlN) - - - - the string to convert into a Shortcut - - - - A System.Windows.Forms.Shortcut value... - - - - - - - - - - - - Toolbar to be used by default WinForms MenuFactory - - - - - - Abstract class used to provide implementation of ToolBars - - - - - - - - - - Derived classes must override. - - - - - Implementation class for standard WinForms menu. - - - - - - Summary description for XMLToolBarImp. - - - - - Type of menus to add - - - - Standard WinForms menus - - - - XPMenus from Essential Tools if available - - - - New Whidbey menus - - - - - MenuLoader contains static implementation of MenuFactories - - - - - Creates a MenuFactory - - - - Type of factory to create - - - - - The fully qualified namespace that contains the menu actions - - - - - String array of qualified names for toolbar resources that contain ToolbarDefinitions - - - - - String array of qualified names for menu resources that contain MenuDefinitions - - - - - The ResourceManager that contains the image/icon information - - - - - The parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Resource in parent assembly that contains a ToolbarItemStructCollection - - - - - Resource in parent assembly that contains a MenuItemStructCollection - - - - - ResourceManager that contains the icon/image resources - - - - - The parent form/object that contains the menu. - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Stream that contains the ToolbarItemStructCollection - - - - - Stream that contains the MenuItemStructCollection - - - - - ResourceManager containing the icon/image resources for the menu - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace containing the action items - - - - - The ToolbarItemStructCollection to create - - - - - The MenuItemStructCollection to create - - - - - The ResourceManager that contains the icon/image resources - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Array of ToolBarItemStructCollections to create multiple toolbars - - - - - Array of MenuItemStructCollections to create multiple menus - - - - - ResourceManager containing the image resources - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates the MenuFactory based on toolbar/menu items provided by the public constructors - - - - The type of MenuFactory to create. - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Constructs a MenuItemStructCollection[] based on MenuDefinition resources in the parent's assembly - - - - Qualified resource name that contains the MenuDefinitions - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuItemStructCollection[] value... - - - - - Constructs a ToolBarItemStructCollection[] based on ToolBarDefinition resources in the parent's assembly - - - - Qualified resource name that contains the ToolBarDefinitions - - - - A Syncfusion.Windows.Forms.InternalMenus.ToolBarItemStructCollection[] value... - - - - - Returns an ArrayList of either MenuItemStructCollections or ToolBarItemStructCollections - - - - The resources in the parent's assembly - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A System.Collections.ArrayList value... - - - - - Returns either a MenuItemStructCollection or a ToolBarItemStructCollection - - - - The stream to read the collection from - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A object value... - - - - - Returns either a MenuItemStructCollection or a ToolBarItemStructCollection - - - - The fully qualified resource name in the parent's assembly - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A object value... - - - - - - Wrapper object that controls the images used in the menu and toolbar implementations - - - - - Adds an image to the internal image list from the internal imageCollection at the specified index - - - - - - - - - A collection that stores 'ImageStruct' objects. - - - - - Initializes a new instance of 'ImageStructCollection'. - - - - - Initializes a new instance of 'ImageStructCollection' based on an already existing instance. - - - A 'ImageStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'ImageStructCollection' with an array of 'ImageStruct' objects. - - - An array of 'ImageStruct' objects with which to initialize the collection - - - - - Adds a 'ImageStruct' item with the specified value to the 'ImageStructCollection' - - - The 'ImageStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ImageStructCollection'. - - - An array of 'ImageStruct' objects to add to the collection. - - - - - Adds the contents of another 'ImageStructCollection' at the end of this instance. - - - A 'ImageStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ImageStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Gets a value indicating the index within 'ImageStructCollection' of an ImageStruct with the specified resource name. - - - The value to locate. - - - True to add the image if it does not exist - - - The Resource Manager that contains the image - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ImageStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ImageStruct' object in the collection. - - - The 'ImageStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ImageStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ImageStructCollection'. - - - - - Removes a specific item from the 'ImageStructCollection'. - - - The item to remove from the 'ImageStructCollection'. - - - - - Represents the 'ImageStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ImageStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - Defines a Menu by a name and MenuItemStructCollection - - - - - Creates an empty MenuDefinition - - - - - Constructs a MenuDefinition given the Name and MenuItemStructCollection - - - - Name of the menu - - - - - The MenuItemStructCollection used to create the menu - - - - - - Name of the contained menu - - - - - Collection of objects defining the contained menu items. - - - - - - Defines a Toolbar by name and ToolBarItemStructCollection - - - - - Creates an empty ToolBarDefinition - - - - - Creates a ToolBarDefinition given the name and ToolBarItemStructCollection - - - - Name of the menu - - - - - ToolBarItemStructCollection used to create the toolbar - - - - A void value... - - - - - Name of the defined Toolbar - - - - - Collection of objects that defines the items in the toolbar. - - - - - Internal structure used for menu items - - - - Text to display - - - - Resource of the icon - - - - Tooltip information - - - - obsolete - - - - obsolete - - - - String format of Shortcut. e.g. CtrlN - - - - Name of the event handler - - - - Children of the menu item - - - - Internal structure used for toolbar items - - - - Resource of the icon - - - - Tooltip information - - - - Text to display - - - - Name of the event handler - - - - Availabe styles are Button,ToggleButton,Radio,CheckBox,TextBox and ComboBox - - - - - Width of the button if custom drawn - - - - Height of the button if custom drawn - - - - - A collection that stores 'MenuItemStruct' objects. - - - - - Initializes a new instance of 'MenuItemStructCollection'. - - - - - Initializes a new instance of 'MenuItemStructCollection' based on an already existing instance. - - - A 'MenuItemStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'MenuItemStructCollection' with an array of 'MenuItemStruct' objects. - - - An array of 'MenuItemStruct' objects with which to initialize the collection - - - - - Adds a 'MenuItemStruct' item with the specified value to the 'MenuItemStructCollection' - - - The 'MenuItemStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'MenuItemStructCollection'. - - - An array of 'MenuItemStruct' objects to add to the collection. - - - - - Adds the contents of another 'MenuItemStructCollection' at the end of this instance. - - - A 'MenuItemStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'MenuItemStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'MenuItemStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'MenuItemStruct' object in the collection. - - - The 'MenuItemStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'MenuItemStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'MenuItemStructCollection'. - - - - - Removes a specific item from the 'MenuItemStructCollection'. - - - The item to remove from the 'MenuItemStructCollection'. - - - - - Name of the menu - - - - Represents the 'MenuItemStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'MenuItemStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - A collection that stores 'ToolBarItemStruct' objects. - - - - - Initializes a new instance of 'ToolBarItemStructCollection'. - - - - - Initializes a new instance of 'ToolBarItemStructCollection' based on an already existing instance. - - - A 'ToolBarItemStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'ToolBarItemStructCollection' with an array of 'ToolBarItemStruct' objects. - - - An array of 'ToolBarItemStruct' objects with which to initialize the collection - - - - - Adds a 'ToolBarItemStruct' item with the specified value to the 'ToolBarItemStructCollection' - - - The 'ToolBarItemStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ToolBarItemStructCollection'. - - - An array of 'ToolBarItemStruct' objects to add to the collection. - - - - - Adds the contents of another 'ToolBarItemStructCollection' at the end of this instance. - - - A 'ToolBarItemStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ToolBarItemStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ToolBarItemStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ToolBarItemStruct' object in the collection. - - - The 'ToolBarItemStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ToolBarItemStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ToolBarItemStructCollection'. - - - - - Removes a specific item from the 'ToolBarItemStructCollection'. - - - The item to remove from the 'ToolBarItemStructCollection'. - - - - - Name of the toolbar - - - - Represents the 'ToolBarItemStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ToolBarItemStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - diff --git a/DPM2016/bin/Debug/app.publish/DPM2018.exe b/DPM2016/bin/Debug/app.publish/DPM2018.exe index f5416a6..db276db 100644 Binary files a/DPM2016/bin/Debug/app.publish/DPM2018.exe and b/DPM2016/bin/Debug/app.publish/DPM2018.exe differ diff --git a/DPM2016/bin/Debug/keyfile.key b/DPM2016/bin/Debug/keyfile.key index 5ebcf9d..10256b3 100644 Binary files a/DPM2016/bin/Debug/keyfile.key and b/DPM2016/bin/Debug/keyfile.key differ diff --git a/DPM2016/bin/Release/DPM2018.application b/DPM2016/bin/Release/DPM2018.application index be60d38..b59b419 100644 --- a/DPM2016/bin/Release/DPM2018.application +++ b/DPM2016/bin/Release/DPM2018.application @@ -7,14 +7,14 @@ - + - r9I4JOe32LBVFgcdaPPlVcvHP7zP2iJj3sPA+I9vPcc= + gf1BCnIKCun70zLCXqaCdMzAAaNu/bkJUcIA8o8jiNM= diff --git a/DPM2016/bin/Release/DPM2018.exe b/DPM2016/bin/Release/DPM2018.exe index fce22a5..ff8dd9f 100644 Binary files a/DPM2016/bin/Release/DPM2018.exe and b/DPM2016/bin/Release/DPM2018.exe differ diff --git a/DPM2016/bin/Release/DPM2018.exe.manifest b/DPM2016/bin/Release/DPM2018.exe.manifest index 7070bbf..7e18817 100644 --- a/DPM2016/bin/Release/DPM2018.exe.manifest +++ b/DPM2016/bin/Release/DPM2018.exe.manifest @@ -42,16 +42,6 @@ - - - - - - - - - - @@ -161,50 +151,50 @@ - + - DRVR9BQmgKOelVyXVGVk5RXJfYpVrspq+CA4+XOfI/A= + ivy3xzEwUYSdYoFaEXNMVn827lH0WJ9amM5GtoA4+t0= - - + + - Q4G0ogKvbQzRIJzuroDUiWIrdBwZD46FuFb1mHdASHw= + YAf8e3ucgCHDEwPA3fc/SOplq1xZf3ZTVBu4wThvScc= - - + + - x6TKeRADnpG8iL/70WnGw1xisC+RBP+9WmhHQbG017E= + 87cKk42NVnZOUHZGYzqYbyOFQjptSR0B+bF66eUtXL8= - - + + - ybdrHZO0BacH/7QbqvtfSecWyzFfJXyRv3MInd4Z/f0= + JGMlbhgez57QxT811uoBJwieYZwmnt4ToEGbmbFle7I= @@ -317,98 +307,182 @@ - - + + - o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + o7uNKkCPWlpIPT3q2xKzifMRcunxI4Ky/bElVbVHWaU= - - + + - g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + 70vYni89hl8KEmP5ZGGnL4VHtavroZmHcWsmE7P5qCI= - - + + - geK4YQkCftVr3r0piMztFkKxuUV5k7IzQBSnapnZCEk= + Uv+ZAtv89LSuYAVmpIjK+G5Z2mbRqXF/l8WYJhaveoQ= - - + + - 1ScUcT75tiLzlA5I53HBMuMTekq02JWjxr3wQOXFprI= + az2ZzaDPDmQsLyAOI2gQf+1JyjuhvQr0RLEN7NwKA/c= - - + + - tWGgFCYEHEmx57z5BHjSmQg4wak3EfSKmXhAPC099TY= + 7X56fvOHJrUmIfy6vUPlmFiqboysSBDNBPyqQgkaesA= - - + + - IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= + OS0StxZPf9WpfactpCk1R9QvfEZ91sd/c3D5XZUqSyY= - - + + - THgqsOP8jM1MWtCbJSY8B94/YKQ4l8cDzNSu+SP7HdU= + qOeonQf/zIy44t0zdulKEQFv6wbNfwtf+2veMnHs2yQ= - - + + - Brwtr52FiQEEmKQX3ygNODbMfR2HklOGYyA+bmRkdAo= + 8/Z5ezUxuoo3x4BDdK5YD296JUs5ni25jlIgWCJYWWA= + + + + + + + + + + + + YroZpkn+ylpTTzd8/wU4IqvB7svEKuD2K2vqPgvVqgY= + + + + + + + + + + + + o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + + + + + + + + + + + + updVzBVQHuepY38OPgyOorWRbE8dlOAxLUGhDi153cg= + + + + + + + + + + + + g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + + + + + + + + + + + + PqGSYEmfTjtZh0kCZwaAteRDsA4e6nEuTd25X/JYt40= + + + + + + + + + + + + 1xEEyKAhxpWXiCJNDjzueoHEZPjMX322lKsIH72xkUQ= + + + + + + + + + + + + IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= diff --git a/DPM2016/bin/Release/DPM2018.pdb b/DPM2016/bin/Release/DPM2018.pdb index f46d77e..2b24576 100644 Binary files a/DPM2016/bin/Release/DPM2018.pdb and b/DPM2016/bin/Release/DPM2018.pdb differ diff --git a/DPM2016/bin/Release/FastReport.Bars.dll b/DPM2016/bin/Release/FastReport.Bars.dll index f2adc16..876e869 100644 Binary files a/DPM2016/bin/Release/FastReport.Bars.dll and b/DPM2016/bin/Release/FastReport.Bars.dll differ diff --git a/DPM2016/bin/Release/FastReport.Editor.dll b/DPM2016/bin/Release/FastReport.Editor.dll index f0ccf5a..63ba217 100644 Binary files a/DPM2016/bin/Release/FastReport.Editor.dll and b/DPM2016/bin/Release/FastReport.Editor.dll differ diff --git a/DPM2016/bin/Release/FastReport.dll b/DPM2016/bin/Release/FastReport.dll index 313dcb7..faf0410 100644 Binary files a/DPM2016/bin/Release/FastReport.dll and b/DPM2016/bin/Release/FastReport.dll differ diff --git a/DPM2016/bin/Release/FastReport.xml b/DPM2016/bin/Release/FastReport.xml index e7e2360..a79463c 100644 --- a/DPM2016/bin/Release/FastReport.xml +++ b/DPM2016/bin/Release/FastReport.xml @@ -4,37251 +4,37455 @@ FastReport - + - The FastReport.dll assembly initializer. + The class for representing visible digital signature in the report. - - - Registers all core objects, wizards, export filters. + The class for representing visible digital signature in the report. - + - The FastReport.dll assembly initializer. + FastReport json connection - + - Registers all standard objects, wizards, export filters. + Name of json object table - + - Base class for all bands. + Initialize a new instance - + - + - + - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - + - + - + - + - + - + - + - + - + - + - + - This event occurs before the band layouts its child objects. + Represents the JsonDataConnection connection string builder. + + Use this class to parse connection string returned by the JsonDataConnection class. + - + - This event occurs after the child objects layout was finished. + Gets or sets json data - + - Gets or sets a value indicating that the band should be printed from a new page. + Gets or sets json schema - - New page is not generated when printing very first group or data row. This is made to avoid empty - first page. - - + - Gets or sets a value indicating that the first row can start a new report page. + Gets or sets json url encoding - - Use this property if is set to true. Normally the new page - is not started when printing the first data row, to avoid empty first page. - - + - Gets or sets a value indicating that the band should be printed on the page bottom. + Initializes a new instance of the class with default settings. - + - Gets or sets a value indicating that the band should be printed together with its child band. + Initializes a new instance of the class with + specified connection string. + The connection string. - + - Gets or sets an outline expression. + JsonTableDataSource present a json array object - - - Outline is a tree control displayed in the preview window. It represents the prepared report structure. - Each outline node can be clicked to navigate to the item in the prepared report. - - - To create the outline, set this property to any valid expression that represents the outline node text. - This expression will be calculated when band is about to print, and its value will be added to the - outline. Thus, nodes' hierarchy in the outline is similar to the bands' hierarchy - in a report. That means there will be the main and subordinate outline nodes, corresponding - to the main and subordinate bands in a report (a report with two levels of data or with groups can - exemplify the point). - - - + - Gets or sets a child band that will be printed right after this band. + Gets or sets value for force update schema on init schema - - Typical use of child band is to print several objects that can grow or shrink. It also can be done - using the shift feature (via property), but in some cases it's not possible. - - + + + + + + + + + + + + + + + + + + + - Gets a collection of report objects belongs to this band. + This class represents a single data column in a . - + + + + - Gets a value indicating that band is reprinted on a new page. + Gets or sets the business object property name which this column is bound to. - - This property is applicable to the DataHeaderBand and GroupHeaderBand only. - It returns true if its RepeatOnAllPages property is true and band is - reprinted on a new page. - - + - Gets or sets a script event name that will be fired before the band layouts its child objects. + Gets or sets the business object property descriptor which this column is bound to. - + - Gets or sets a script event name that will be fired after the child objects layout was finished. + Gets or sets the type of data supplied by this column. - - + + + Gets or sets a value that specifies the type of a control that will be created + when you drop this column on a report page. + + + If you need to specify the custom type, use the property instead. + - - + + + Gets or sets a name of custom bindable control. + + + Use this property if you want to bind a column to custom object type. You need to + specify the type name of your object; that object must be registered in FastReport using the + RegisteredObjects.Add method. + - + - Gets or sets collection of guide lines for this band. + Gets or sets the format of this column. + + This property is used when you drag a column from the Data window to the report page. + FastReport will create a "Text" object and set its "Format" property to the corresponding format. + By default, this property is set to Auto. It means that the format will be determined + automatically depending on the property. + - + - Gets a row number (the same value returned by the "Row#" system variable). + Gets or sets expression of the calculated column. - This property can be used when running a report. It may be useful to print hierarchical - row numbers in a master-detail report, like this: - 1.1 - 1.2 - 2.1 - 2.2 - To do this, put the Text object on a detail data band with the following text in it: - [Data1.RowNo].[Data2.RowNo] + This property is used if the property is true. - + - Gets an absolute row number (the same value returned by the "AbsRow#" system variable). + Gets or sets a value that indicates whether this column is calculated. + + You should specify the property for calculated columns. + - + - Gets a value indicating that this is the first data row. + Gets the collection of child columns. - + - Gets a value indicating that this is the last data row. + Gets or sets the tag value. - + - + - + - + - + - + - + - + - + - + - - + + + Initializes a new instance of the Column class with default settings. + - - + + + + - - + + + Initialize a new instance + - - + + + + + - - + + + + + - - + + + Required designer variable. + - - - This method fires the BeforeLayout event and the script code connected to the BeforeLayoutEvent. + + + Clean up any resources being used. - Event data. + true if managed resources should be disposed; otherwise, false. - - - This method fires the AfterLayout event and the script code connected to the AfterLayoutEvent. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - Event data. - + - Initializes a new instance of the class with default settings. + Required designer variable. - + - The base class for 2D-barcodes such as PDF417 and Datamatrix. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Generates the Intelligent Mail (USPS) barcode. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the value indicating that quiet zone must be shown. + Required designer variable. - - - - - - - + - Initializes a new instance of the class with default settings. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Generates the 2D MaxiCode barcode. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Sets the MaxiCode mode to use. Only modes 2 to 6 are supported. + The base class for all connection editors. This control is used when you edit + the connection in the Data Wizard. - + - Initializes a new instance of the class with default settings. + Gets or sets a connection string. - - - - - Implements MaxiCode according to ISO 16023:2000. - - MaxiCode employs a pattern of hexagons around a central 'bulls-eye' - finder pattern. Encoding in several modes is supported, but encoding in - Mode 2 and 3 require primary messages to be set. Input characters can be - any from the ISO 8859-1 (Latin-1) character set. - - TODO: Add ECI functionality. - - @author Robin Stuart - @author Daniel Gredler - - - MaxiCode module sequence, from ISO/IEC 16023 Figure 5 (30 x 33 data grid). - - - ASCII character to Code Set mapping, from ISO/IEC 16023 Appendix A. - 1 = Set A, 2 = Set B, 3 = Set C, 4 = Set D, 5 = Set E. - 0 refers to special characters that fit into more than one set (e.g. GS). - - - ASCII character to symbol value, from ISO/IEC 16023 Appendix A. - - - Sets the MaxiCode mode to use. Only modes 2 to 6 are supported. - - @param mode the MaxiCode mode to use - - - Returns the MaxiCode mode being used. Only modes 2 to 6 are supported. - - @return the MaxiCode mode being used - - - If this MaxiCode symbol is part of a series of MaxiCode symbols appended in a structured format, this method sets the - position of this symbol in the series. Valid values are 1 through 8 inclusive. - - @param position the position of this MaxiCode symbol in the structured append series - - - Returns the position of this MaxiCode symbol in a series of symbols using structured append. If this symbol is not part of - such a series, this method will return 1. - - @return the position of this MaxiCode symbol in a series of symbols using structured append - - - If this MaxiCode symbol is part of a series of MaxiCode symbols appended in a structured format, this method sets the total - number of symbols in the series. Valid values are 1 through 8 inclusive. A value of 1 indicates that this symbol is not - part of a structured append series. - - @param total the total number of MaxiCode symbols in the structured append series - - - Returns the size of the series of MaxiCode symbols using structured append that this symbol is part of. If this symbol is - not part of a structured append series, this method will return 1. - - @return size of the series that this symbol is part of - - - Sets the primary data. Should only be used for modes 2 and 3. Must conform to the following structure: - - - - - - -
CharactersMeaning
1-9Postal code data which can consist of up to 9 digits (for mode 2) or up to 6 - alphanumeric characters (for mode 3). Remaining unused characters should be - filled with the SPACE character (ASCII 32).
10-12Three-digit country code according to ISO-3166.
13-15Three digit service code. This depends on your parcel courier.
- - @param primary the primary data -
- - Returns the primary data for this MaxiCode symbol. Should only be used for modes 2 and 3. - - @return the primary data for this MaxiCode symbol - - - {@inheritDoc} - - - Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message - codewords. - - @return the primary message codewords - - - Returns the primary message codewords for mode 2. - - @param postcode the postal code - @param country the country code - @param service the service code - @return the primary message, as codewords - - - Returns the primary message codewords for mode 3. - - @param postcode the postal code - @param country the country code - @param service the service code - @return the primary message, as codewords - - - Formats text according to Appendix A, populating the {@link #set} and {@link #character} arrays. - - @return true if the content fits in this symbol and was formatted; false otherwise - - - Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in - lower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default - value returned is the first value from the valid set. - - @param index the current index - @param Length the maximum Length to look at - @param valid the valid sets for this index - @return the best set to use at the specified index - - - Moves everything up so that the specified shift or latch character can be inserted. - - @param position the position beyond which everything needs to be shifted - @param c the latch or shift character to insert at the specified position, after everything has been shifted - - - Returns the error correction codewords for the specified data codewords. - - @param codewords the codewords that we need error correction codewords for - @param ecclen the number of error correction codewords needed - @return the error correction codewords for the specified data codewords - - - {@inheritDoc} - - - {@inheritDoc} - - + - Generates the Pharmacode barcode. + This method should construct the connection string from values entered by user. + The connection string. - + - Gets or sets the value indicating that quiet zone must be shown. + This method should parse the connection string and fill the user interface elements. + The connection string. - - - - + - Initializes a new instance of the class with default settings. + This method is called when form layout is complete. - - - - + - Specifies the Datamatrix encoding. + Initializes a new instance of the class with default settings. - - - Specifies the auto encoding. + + + Required designer variable. - - - Specifies the ASCII encoding. + + + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - Specifies the C40 encoding. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the text encoding. + Required designer variable. - + - Specifies the binary encoding. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the X12 encoding. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Edifact encoding. + Required designer variable. - + - Specifies the Datamatrix symbol size. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the auto size. - - - - - Specifies the 10x10 size. - - - - - Specifies the 12x12 size. - - - - - Specifies the 8x8 size. - - - - - Specifies the 14x14 size. - - - - - Specifies the 8x32 size. - - - - - Specifies the 16x16 size. - - - - - Specifies the 12x26 size. - - - - - Specifies the 18x18 size. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the 20x20 size. + Required designer variable. - + - Specifies the 12x36 size. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the 22x22 size. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the 16x36 size. + Required designer variable. - + - Specifies the 24x24 size. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the 26x26 size. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the 16x48 size. + Represents a connection to xml file-based database. + This example shows how to add a new connection to the report. + + Report report1; + XmlDataConnection conn = new XmlDataConnection(); + conn.XmlFile = @"c:\data.xml"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); + + - - - Specifies the 32x32 size. - + + - - - Specifies the 36x36 size. - + + - - - Specifies the 40x40 size. - + + - - - Specifies the 44x44 size. - + + - + - Specifies the 48x48 size. + Gets or sets the path to .xsd file. - + - Specifies the 52x52 size. + Gets or sets the path to .xml file. - - - Specifies the 64x64 size. - + + - - - Specifies the 72x72 size. - + + - - - Specifies the 80x80 size. - + + - - - Specifies the 88x88 size. - + + - - - Specifies the 96x96 size. - + + - - - Specifies the 104x104 size. - + + - - - Specifies the 120x120 size. - + + - + - Specifies the 132x132 size. + Initializes a new instance of the class with default settings. - + - Specifies the 144x144 size. + Represents a total that is used to calculate aggregates such as Sum, Min, Max, Avg, Count. - - - Generates the 2D Data Matrix barcode. - + + - + - Gets or sets the symbol size. + Gets or sets the total type. - + - Gets or sets the encoding mode. + Gets or sets the expression used to calculate the total. - + - Gets or sets the code page used for text conversion. + Gets or sets the evaluator databand. - Use this property to encode non-ASCII characters. For example, set this - property to 1251 to use Window CP1251. + The total will be calculated for each row of this band. - + - Gets or sets the size of the pixel. + This property is kept for compatibility only. - - - - + - Initializes a new instance of the class with default settings. + Gets or sets the band to print the total on. + + The total will be resetted after the specified band has been printed. + - + - Specifies the error correction level used for PDF417 barcode. + Gets or sets a value that determines whether the total should be resetted after print. - + - Indicates that correction level should be calculated automatically. + Gets or sets a value that determines whether the total should be resetted if printed + on repeated band (i.e. band with "RepeatOnEveryPage" flag). - + - Specifies level 0. + Gets or sets the condition which tells the total to evaluate. - + - Specifies level 1. + Gets or sets a value that determines if invisible rows of the Evaluator should + be included into the total's value. - + - Specifies level 2. + This property is not relevant to this class. - + - Specifies level 3. + Gets the value of total. - - - Specifies level 4. - + + - - - Specifies level 5. - + + - - - Specifies level 6. - + + - - - Specifies level 7. - + + - + - Specifies level 8. + Initializes a new instance of the class with default settings. - + - Specifies the compaction mode used for PDF417 barcode. + Represents a datasource based on DataTable class. + This example shows how to add a new table to the existing connection: + + Report report1; + DataConnectionBase conn = report1.Dictionary.Connections.FindByName("Connection1"); + TableDataSource table = new TableDataSource(); + table.TableName = "Employees"; + table.Name = "Table1"; + conn.Tables.Add(table); + + - - - Indicates that compaction mode should be calculated automatically. - + + - + - Specifies the text compaction mode. + Gets or sets the underlying DataTable object. - + - Specifies the numeric compaction mode. + Gets or sets the table name. - + - Specifies the binary compaction mode. + Gets or sets SQL "select" command. + + If this command contains parameters, you should specify them in the + property. + - + - Generates the 2D PDF417 barcode. + Gets a collection of parameters used by "select" command. - This example shows how to configure the BarcodeObject to display PDF417 barcode. + + You must set up this property if the SQL query that you've specified in the + property contains parameters. + You can pass a value to the SQL parameter in two ways. + The right way is to define a report parameter. You can do this in the + "Data" window. Once you have defined the parameter, you can use it to pass a value + to the SQL parameter. To do this, set the SQL parameter's Expression property + to the report parameter's name (so it will look like [myReportParam]). + To pass a value to the report parameter from your application, use the + method. + The other way (unrecommended) is to find a datasource object and set its parameter from a code: - BarcodeObject barcode; - ... - barcode.Barcode = new BarcodePDF417(); - (barcode.Barcode as BarcodePDF417).CompactionMode = PDF417CompactionMode.Text; + TableDataSource ds = report.GetDataSource("My DataSource Name") as TableDataSource; + ds.Parameters[0].Value = 10; - + This way is not good because you hardcode the report object's name. + - + - Gets or sets the barcode aspect ratio. + Gets or sets the parent object. - - A ratio or 0.5 will make the barcode width twice as large as the height. - - + - Gets or sets the number of barcode data columns. + Gets or sets a value that determines whether it is necessary to store table data in a report file. - - To calculate the necessary number of columns and rows, set the - and properties to 0. In this case, the property - should be set to desired aspect ratio. - - + - Gets or sets the number of barcode data rows. + Gets or sets the table data. - To calculate the necessary number of columns and rows, set the - and properties to 0. In this case, the property - should be set to desired aspect ratio. + This property is for internal use only. - + - Gets or sets the error level correction used for the barcode. + If set, ignores the Connection (always returns null). Needed when we replace the + existing connection-based datasource with datatable defined in an application. - + - Gets or sets the code page used for text conversion. + Gets or sets the query builder schema. - Use this property to encode non-ASCII characters. For example, set this - property to 1251 to use Window CP1251. + This property is for internal use only. - - - Gets or sets the compaction mode. - + + - - - Gets or sets the size of the pixel. - + + - - Paints the barcode. If no exception was thrown a valid barcode is available. + + - + - + - Initializes a new instance of the class with default settings. + Refresh the table schema. - - - Generates the Plessey barcode. - + + - - - Appends the given pattern to the target array starting at pos. - - encode black/white pattern into this array - position to start encoding at in target - lengths of black/white runs to encode - starting color - false for white, true for black - the number of elements added to target. + + - - - Specifies the QR code error correction level. - + + - - - L = ~7% correction. - + + - - - M = ~15% correction. - + + - - - Q = ~25% correction. - + + - - - H = ~30% correction. - + + - + - Specifies the QR Code encoding. + Initializes a new instance of the class with default settings. - + - UTF-8 encoding. + Represents a master-detail relation between two data sources. + + To setup a relation, you must specify parent and child datasources. For a parent datasource, + you must specify set of key columns; for child datasource, you must specify set of columns that + relate to the parent key columns. + This example shows how to create relation between Customers and Orders tables: + + Report report1; + DataSourceBase customersTable = report1.Dictionary.DataSources.FindByAlias("Customers"); + DataSourceBase ordersTable = report1.Dictionary.DataSources.FindByAlias("Orders"); + Relation rel = new Relation(); + rel.Name = "customersOrders"; + rel.ParentDataSource = customersTable; + rel.ChildDataSource = ordersTable; + rel.ParentColumns = new string[] { "CustomerID" }; + rel.ChildColumns = new string[] { "CustomerID" }; + report1.Dictionary.Relations.Add(rel); + + + - - - ISO 8859-1 encoding. - + + - + - Shift_JIS encoding. + Gets or sets the parent datasource. - + - Windows-1251 encoding. + Gets or sets the child datasource. - + - cp866 encoding. + Gets or sets an array of parent datasource columns. + + Note: both and must have the + same number of elements. + - + - Generates the 2D QR code barcode. + Gets or sets an array of child datasource columns. + + Note: both and must have the + same number of elements. + - + + + + - Gets or sets the error correction. + Compares this relation with another one. + Another relation to compare with. + true if both relations are equal; false otherwise. - + - Gets or sets the encoding used for text conversion. + Initializes a new instance of the class with default settings. - + - Gets or sets the value indicating that quiet zone must be shown. + Represents a connection to any OLE DB database. + This example shows how to add a new connection to the report. + + Report report1; + OleDbDataConnection conn = new OleDbDataConnection(); + conn.ConnectionString = "your_connection_string"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); + + - + - - - Initializes a new instance of the class with default settings. - + + - + + + + + + + + + + + + + + + + + + + + + + - Represents a barcode object. - Represents a barcode object. + Represents a connection to any database through ODBC. - - The instance of this class represents a barcode. Here are some common - actions that can be performed with this object: - - - To select the type of barcode, use the property. - - - - To specify a static barcode data, use the property. - You also may use the or properties - to specify dynamic value for a barcode. - - - - To set a barcode orientation, use the property. - - - - To specify the size of barcode, set the property - to true and use the property to zoom the barcode. - If property is set to false, you need to specify the - size using the Width and - Height properties. - - - - - This example shows how to configure the BarcodeObject to display PDF417 barcode. + This example shows how to add a new connection to the report. - BarcodeObject barcode; - ... - barcode.Barcode = new BarcodePDF417(); - (barcode.Barcode as BarcodePDF417).CompactionMode = CompactionMode.Text; + Report report1; + OdbcDataConnection conn = new OdbcDataConnection(); + conn.ConnectionString = "your_connection_string"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); - + - + - + - + - + - - - Gets or sets the barcode type. - + + - + + + + + + + + + + - Gets or sets the symbology name. + Represents a connection to MS SQL database. - - The following symbology names are supported: - - "2/5 Interleaved" - "2/5 Industrial" - "2/5 Matrix" - "Codabar" - "Code128" - "Code39" - "Code39 Extended" - "Code93" - "Code93 Extended" - "EAN8" - "EAN13" - "MSI" - "PostNet" - "UPC-A" - "UPC-E0" - "UPC-E1" - "Supplement 2" - "Supplement 5" - "PDF417" - "Datamatrix" - "QRCode" - - - + This example shows how to add a new connection to the report. - barcode.SymbologyName = "PDF417"; - (barcode.Barcode as BarcodePDF417).CompactionMode = CompactionMode.Text; + Report report1; + MsSqlDataConnection conn = new MsSqlDataConnection(); + conn.ConnectionString = "your_connection_string"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); - - - Gets or sets the angle of barcode, in degrees. - + + - - - Gets or sets a value that determines whether the barcode should handle its width automatically. - + + - - - Gets or sets a data column name bound to this control. - - - Value must be in the form "Datasource.Column". - + + - - - Gets or sets an expression that contains the barcode data. - + + - - - Enable or disable of using an expression in Text - + + - - - Gets or sets brackets for using in expressions - + + - - - Gets or sets a value that indicates if the barcode should display a human-readable text. - + + - - - Gets or sets the barcode data. - + + - - - Gets or sets padding within the BarcodeObject. - + + - + - Gets or sets a zoom of the barcode. + Represents a connection to MS Access database (.mdb file). + This example shows how to add a new connection to the report. + + Report report1; + MsAccessDataConnection conn = new MsAccessDataConnection(); + conn.DataSource = @"c:\data.mdb"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); + + - + + + + + + + - Gets or sets a value that determines whether it is necessary to hide the object if the - barcode data is empty. + Gets or sets the datasource file name. - + - Gets or sets the text that will be displayed if the barcode data is empty. + Gets or sets the user name. - + - Gets or sets values for forced use of a bitmap image instead of a vector + Gets or sets the password. - - - - + - + - + - + - + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. - + - + The base class for all data connection components such as . + This example shows how to add a new MS Access connection to the report. + + Report report1; + MsAccessDataConnection conn = new MsAccessDataConnection(); + conn.DataSource = @"c:\data.mdb"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); + + - + + + + - + Gets a string that will identify a connection in the Data Wizard. + The string that contains the connection type and some meaningful information. - + - The base class for linear (1D) barcodes. + Gets the default type for a new parameter. + The integer representation of a parameter type. - + - Gets or sets a value that determines if the barcode object should calculate - the check digit automatically. + Gets a control that will be used to edit the connection properties. + The editor's control. - + + + + - Gets or sets a relative width of wide bars in the barcode. + Tests the connection. + + If test connection is not successful, this method throws an exception. Catch this exception to + show an error message. + - + - Gets the value indicating that the barcode is numeric. + Gets an internal DataSet object that contains all data tables. - + - Gets or sets a value indicating that leading/trailing whitespaces must be trimmed. + Gets a collection of data tables in this connection. - - true if trim; otherwise, false. - + + To add a table to the connection, you must either create a new TableDataSource and add it + to this collection or call the method which will add + all tables available in the database. + - - + + + Gets or sets a connection string that contains all connection parameters. + + + To modify some parameter of the connection, use respective + ConnectionStringBuilder class. + Security note: the connection string may contain a user name/password. + This information is stored in a report file. By default, it is crypted using the standard + FastReport's password. Since FastReport's source code is available to anyone who paid for it, + it may be insecure to use the standard password. For more security, you should use own + password. To do this, specify it in the Crypter.DefaultPassword property. + + This example demonstrates how to change a connection string: + + OleDbConnectionStringBuilder builder = new OleDbConnectionStringBuilder(oleDbConnection1.ConnectionString); + builder.PersistSecurityInfo = false; + oleDbConnection1.ConnectionString = builder.ToString(); + + - + - Initializes a new instance of the class with default settings. + Gets or sets an expression that returns a connection string. + + Use this property to set the connection string dynamically. + The recommended way to do this is to define a report parameter. You can do this in the + "Data" window. Once you have defined the parameter, you can use it to pass a value + to the connection. Set the ConnectionStringExpression property of the + connection object to the report parameter's name (so it will look like [myReportParam]). + To pass a value to the report parameter from your application, use the + method. + + Once you set value for this property, the property will be ignored + when report is run. + + - + - Generates the 2D Aztec barcode. + Gets or sets a value indicates if this connection is SQL-based. - + - Gets or sets the error correction percent. + Gets or sets a value indicating whether a login dialog appears immediately before opening a connection. + + Set LoginPrompt to true to provide login dialog when establishing a connection. If this + property is false (by default), you should provide login information (user name and password) + in the property. Though that property is stored in a crypted form, + this may be insecure. + Another way to pass login information to the connection is to use + property that is bound to the report parameter. In that + case you supply the entire connection string from your application. + - + - Initializes a new instance of the class with default settings. + Gets or sets the command timeout, in seconds. - + - + - Aztec 2D code representation + Initializes a DataSet instance. - Rustam Abdullaev + The DataSet object. + + This method is used to support FastReport infrastructure. You don't need to use it. + - + - Compact or full symbol indicator + Disposes a DataSet. + + This method is used to support FastReport infrastructure. You don't need to use it. + - + - Size in pixels (width and height) + Sets the connection string. + New connection string. + + Use this method if you need to perform some actions when the connection string is set. + - + - Number of levels + Gets a connection string that contains username and password specified. + User name. + Password. + + Override this method to pass login information to the connection. Typical implementation + must get the existing , merge specified login information into it + and return the new value. + - - - Number of data codewords - + + - - - The symbol image - + + - + + + + + + + + + + + + + + + + - The class holds the available options for the AztecWriter + Fills the collection with all tables available in the database. + + This method does not read the table data; to do this, call the + method of each table. + - + - Representing the minimal percentage of error correction words. - Note: an Aztec symbol should have a minimum of 25% EC words. + Fills the collection with all tables available in the database. + Set to true to initialize each table's schema. - + - Specifies the required number of layers for an Aztec code: - a negative number (-1, -2, -3, -4) specifies a compact Aztec code - 0 indicates to use the minimum number of layers (the default) - a positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code + Creates the relations between tables. Applies to XmlDataConnection only. - + - A simple, fast array of bits, represented compactly by an array of ints internally. + Gets an array of table names available in the database. - Sean Owen + An array of strings. - - Flips bit i. - + + + Returns a type of connection. - bit to set - + Type instance. + + You should override this method if you developing a new connection component. + If your connection component does not use data connection, you need to override + the and methods instead. + + Here is the example of this method implementation: + + public override Type GetConnectionType() + { + return typeof(OleDbConnection); + } + + - + - Gets the next set. + Returns a connection object. - first bit to check - index of first bit that is set, starting from the given index, or size if none are set - at or beyond this given index + The DbConnection instance. + Either creates a new DbConnection instance of type provided by the + method, or returns the application connection if set + in the Config.DesignerSettings.ApplicationConnection. - + - see getNextSet(int) + Opens a specified connection object. - index to start looking for unset bit - index of next unset bit, or if none are unset until the end + Connection to open. + + Use this method to open a connection returned by the method. + This method displays a login dialog if your connection has the + property set to true. Once you have entered an user name and password in + this dialog, it will remeber the entered values and will not used anymore in this report session. + - - Sets a block of 32 bits, starting at bit i. - + + + Disposes a connection. - first bit to set - - the new value of the next 32 bits. Note again that the least-significant bit - corresponds to bit i, the next-least-significant to i+1, and so on. - + The connection to dispose. - + - Sets a range of bits. + Returns a object that is specific to this connection. - start of range, inclusive. - end of range, exclusive - - - Clears all bits (sets to false). + The SQL command used to fetch a table data rows. + The connection object. + The select command parameters. + The DbDataAdapter object. + + You should override this method if you are developing a new connection component. In this method, + you need to create the adapter and set its SelectCommand's parameters. + If your connection does not use data adapter, you need to override + the and methods instead. + + Here is the example of this method implementation: + + public override DbDataAdapter GetAdapter(string selectCommand, DbConnection connection, + CommandParameterCollection parameters) + { + OleDbDataAdapter adapter = new OleDbDataAdapter(selectCommand, connection as OleDbConnection); + foreach (CommandParameter p in parameters) + { + OleDbParameter parameter = adapter.SelectCommand.Parameters.Add(p.Name, (OleDbType)p.DataType, p.Size); + parameter.Value = p.Value; + } + return adapter; + } + + - - Efficient method to check if a range of bits is set, or not set. - + + + Gets the type of parameter that is specific to this connection. - start of range, inclusive. - - end of range, exclusive - - if true, checks that bits in range are set, otherwise checks that they are not set - - true iff all bits are set or not set in range, according to value argument - - IllegalArgumentException if end is less than or equal to start + The parameter's type. + + This property is used in the report designer to display available data types when you edit the + connection parameters. For example, the type of OleDbConnection parameter is a OleDbType. + - + - Appends the bit. + Quotes the specified DB identifier such as table name or column name. - The bit. - - - underlying array of ints. The first element holds the first 32 bits, and the least - significant bit is bit 0. - + Identifier to quote. + The opened DB connection. + The quoted identifier. - + - Appends the least-significant bits, from value, in order from most-significant to - least-significant. For example, appending 6 bits from 0x000001E will append the bits - 0, 1, 1, 1, 1, 0 in that order. + Fills the table schema. - containing bits to append - bits from value to append + DataTable to fill. + The SQL select command. + SQL parameters. + + Usually you don't need to use this method. Internally it uses the and + methods to fill the table schema. If you create own connection component + that does not use nor connection or adapter, then you need to override this method. + - + - Toes the bytes. + Fills the table data. - first bit to start writing - array to write into. Bytes are written most-significant byte first. This is the opposite - of the internal representation, which is exposed by BitArray - position in array to start writing - how many bytes to write - - - Reverses all bits in the array. + DataTable to fill. + The SQL select command. + SQL parameters. + + Usually you don't need to use this method. Internally it uses the and + methods to fill the table data. If you create own connection component + that does not use nor connection or adapter, then you need to override this method. + - + - Determines whether the specified is equal to this instance. + Creates table. + For internal use only. - The to compare with this instance. - - true if the specified is equal to this instance; otherwise, false. - - + - Returns a hash code for this instance. + Deletes table. + For internal use only. - - A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. - - + + + + + + + - Returns a that represents this instance. + Initializes a new instance of the class with default settings. - - A that represents this instance. - - + - Erstellt ein neues Objekt, das eine Kopie der aktuellen Instanz darstellt. + The base class for all data components such as data sources, columns. - - Ein neues Objekt, das eine Kopie dieser Instanz darstellt. - - + + + + -

Represents a 2D matrix of bits. In function arguments below, and throughout the common - module, x is the column position, and y is the row position. The ordering is always x, y. - The origin is at the top-left.

-

Internally the bits are represented in a 1-D array of 32-bit ints. However, each row begins - with a new int. This is done intentionally so that we can copy out a row into a BitArray very - efficiently.

-

The ordering of bits is row-major. Within each int, the least significant bits are used first, - meaning they represent lower x values. This is compatible with BitArray's implementation.

+ Gets or sets alias of this object.
- Sean Owen - dswitkin@google.com (Daniel Switkin) -
- - The width of the matrix - + + Alias is a human-friendly name of this object. It may contain any symbols (including + spaces and national symbols). + - - The height of the matrix - + + + Gets or sets a value indicates that object is enabled and thus can be used in a report. + + + This property is used to hide an object from the Data Dictionary window. Hidden + objects are still accessible in the "Data|Choose Data Source..." menu. + - - This method is for compatibility with older code. It's only logical to call if the matrix - is square, so I'm throwing if that's not the case. - + + + Gets or sets a name of the data object. - row/column dimension of this matrix - + + This property is used to support FastReport.Net infrastructure. Do not use it directly. + - -

Gets the requested bit, where true means black.

- + + + Gets or sets a reference to the data object. - The horizontal component (i.e. which column) - - The vertical component (i.e. which row) - - value of given bit in matrix - + + This property is used to support FastReport.Net infrastructure. Do not use it directly. + - -

Flips the given bit.

- + + + Gets a value indicates that this object has an alias. - The horizontal component (i.e. which column) - - The vertical component (i.e. which row) - - - Clears all bits (sets to false). + + - -

Sets a square region of the bit matrix to true.

- -
- The horizontal position to begin at (inclusive) - - The vertical position to begin at (inclusive) - - The width of the region - - The height of the region - + + - - A fast method to retrieve one row of data from the matrix as a BitArray. - + + + + + + Initializes the object before running a report. - The row to retrieve - - An optional caller-allocated BitArray, will be allocated if null or too small - - The resulting BitArray - this reference should always be used even when passing - your own row - + + This method is used by the report engine, do not call it directly. + - + - Sets the row. + Initializes a new instance of the class with default settings. - row to set - {@link BitArray} to copy from - + - Modifies this {@code BitMatrix} to represent the same but rotated 180 degrees + Represents a connection to csv file-based database. + This example shows how to add a new connection to the report. + + Report report1; + CsvDataConnection conn = new CsvDataConnection(); + conn.CsvFile = @"c:\data.csv"; + report1.Dictionary.Connections.Add(conn); + conn.CreateAllTables(); + + - + + + + + + + + + + + + + - This is useful in detecting the enclosing rectangle of a 'pure' barcode. + The default field name. - {left,top,width,height} enclosing rectangle of all 1 bits, or null if it is all white - + - This is useful in detecting a corner of a 'pure' barcode. + Gets or sets the path to .csv file. - {x,y} coordinate of top-left-most 1 bit, or null if it is all white - + - These are a set of hints that you may pass to Writers to specify their behavior. + Gets or sets the codepage of the .csv file. - dswitkin@google.com (Daniel Switkin) - + - Specifies the width of the barcode image - type: + Gets or sets the separator of the .csv file. - + - Specifies the height of the barcode image - type: + Gets or sets the value indicating that field names should be loaded from the first string of the file. - + - Don't put the content string into the output image. - type: + Gets or sets the value indicating that quotation marks should be removed. - + - Specifies what character encoding to use where applicable. - type: + Gets or sets the value indicating that field types fhould be converted. - + - Specifies margin, in pixels, to use when generating the barcode. The meaning can vary - by format; for example it controls margin before and after the barcode horizontally for - most 1D formats. - type: + Initializes a new instance of the class. - + + + + + + + + + + + + + + + + + + + + + + - Specifies whether to use compact mode for PDF417. - type: + Obsolete. Specifies a set of flags used to convert business objects into datasources. - + - Don't append ECI segment. - That is against the specification of QR Code but some - readers have problems if the charset is switched from - ISO-8859-1 (default) to UTF-8 with the necessary ECI segment. - If you set the property to true you can use UTF-8 encoding - and the ECI segment is omitted. - type: + Specifies no actions. - + - if true, don't switch to codeset C for numbers + Allows using the fields of a business object. - + - Specifies the required number of layers for an Aztec code: - a negative number (-1, -2, -3, -4) specifies a compact Aztec code - 0 indicates to use the minimum number of layers (the default) - a positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code + Allows using properties of a business object with BrowsableAttribute only. - + - Generates Aztec 2D barcodes. + Specifies a kind of property. - Rustam Abdullaev - + - Encodes the given binary content as an Aztec symbol + Specifies the property of a simple type (such as integer). - input data string - Aztec symbol matrix with metadata - + - Encodes the given binary content as an Aztec symbol + Specifies the complex property such as class with own properties. - input data string - minimal percentage of error check words (According to ISO/IEC 24778:2008, - a minimum of 23% + 3 words is recommended) - if non-zero, a user-specified value for the number of layers - - Aztec symbol matrix with metadata - - + - Defines an container for encoder options + Specifies the property which is a list of objects (is of IEnumerable type). - + - Gets the data container for all options + Represents a datasource based on business object of IEnumerable type. + + Do not use this class directly. To register a business object, use the + Report.RegisterData method. + - + - Specifies the height of the barcode image + Occurs when FastReport engine loads data source with data from a business object. + + Use this event if you want to implement load-on-demand. Event handler must load the data into + your business object. + - + + + + + + + + + + + + + + + + - Specifies the width of the barcode image + Represents the method that will handle the LoadBusinessObject event. + The source of the event. + The event data. - + - Don't put the content string into the output image. + Provides data for event. - + - Specifies margin, in pixels, to use when generating the barcode. The meaning can vary - by format; for example it controls margin before and after the barcode horizontally for - most 1D formats. + Parent object for this data source. - + - Initializes a new instance of the class. + Specifies the format for the column value. - + -

This class contains utility methods for performing mathematical operations over - the Galois Fields. Operations use a given primitive polynomial in calculations.

-

Throughout this package, elements of the GF are represented as an {@code int} - for convenience and speed (but at the cost of memory). -

+ The format will be determined automatically depending on the column's DataType.
- Sean Owen
- + - Create a representation of GF(size) using the given primitive polynomial. + Specifies the General format (no formatting). - irreducible polynomial whose coefficients are represented by - * the bits of an int, where the least-significant bit represents the constant - * coefficient - the size of the field - the factor b in the generator polynomial can be 0- or 1-based - * (g(x) = (x+a^b)(x+a^(b+1))...(x+a^(b+2t-1))). - * In most cases it should be 1, but for QR code it is 0. - + - Builds the monomial. + Specifies the Number format. - The degree. - The coefficient. - the monomial representing coefficient * x^degree - + - Implements both addition and subtraction -- they are the same in GF(size). + Specifies the Currency format. - sum/difference of a and b - + - Exps the specified a. + Specifies the Date format. - 2 to the power of a in GF(size) - + - Logs the specified a. + Specifies the Time format. - A. - base 2 log of a in GF(size) - + - Inverses the specified a. + Specifies the Percent format. - multiplicative inverse of a - + - Multiplies the specified a with b. + Specifies the Boolean format. - A. - The b. - product of a and b in GF(size) - + - Gets the size. + Specifies the type of an object that will be created when you drop the + data column on a report page. - + - Gets the generator base. + The column will create the object. - + - Returns a that represents this instance. + The column will create the object. - - A that represents this instance. - - + -

Represents a polynomial whose coefficients are elements of a GF. - Instances of this class are immutable.

-

Much credit is due to William Rucklidge since portions of this code are an indirect - port of his C++ Reed-Solomon implementation.

+ The column will create the object.
- Sean Owen
- + - Initializes a new instance of the class. + The column will create the object. - the {@link GenericGF} instance representing the field to use - to perform computations - coefficients as ints representing elements of GF(size), arranged - from most significant (highest-power term) coefficient to least significant - if argument is null or empty, - or if leading coefficient is 0 and this is not a - constant polynomial (that is, it is not the monomial "0") - + - degree of this polynomial + The column will create the custom object, specified in the + property. - + - Gets a value indicating whether this is zero. + Represents the collection of objects. - true iff this polynomial is the monomial "0" - + - coefficient of x^degree term in this polynomial + Gets or sets a column. - The degree. - coefficient of x^degree term in this polynomial + The index of a column in this collection. + The column with specified index. - + - evaluation of this polynomial at a given point + Finds a column by its name. - A. - evaluation of this polynomial at a given point + The name of a column. + The object if found; otherwise null. - + - This produces nearly optimal encodings of text into the first-level of - encoding used by Aztec code. - It uses a dynamic algorithm. For each prefix of the string, it determines - a set of encodings that could lead to this prefix. We repeatedly add a - character and generate a new set of optimal encodings until we have read - through the entire input. - @author Frank Yellin - @author Rustam Abdullaev + Finds a column by its alias. + The alias of a column. + The object if found; otherwise null. - + - Convert the text represented by this High Level Encoder into a BitArray. + Returns an unique column name based on given name. - text represented by this encoder encoded as a + The base name. + The unique name. - + - Implements Reed-Solomon encoding, as the name implies. + Returns an unique column alias based on given alias. - Sean Owen - William Rucklidge + The base alias. + The unique alias. - + - State represents all information about a sequence necessary to generate the current output. - Note that a state is immutable. + Sorts the collection of columns. - + - Create a new state representing this state with a latch to a (not - necessary different) mode, and then a code. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Create a new state representing this state, with a temporary shift - to a different mode to output a single value. + Represents the comparer class that used for sorting the collection of columns. - - - Create a new state representing this state, but an additional character - output in Binary Shift mode. - + + - + - Create the state identical to this one, but we are no longer in - Binary Shift mode. + This class represents a single parameter to use in the "select" command. - + - Returns true if "this" state is better (or equal) to be in than "that" - state under all possible circumstances. + Gets or sets the parameter's data type. - + - Contains conversion support elements such as classes, interfaces and static methods. + Gets or sets the size of parameter's data. + + This property is used if the property is set to String. + - + - Copies an array of chars obtained from a String into a specified array of chars + Gets or sets an expression that returns the parameter's value. - The String to get the chars from - Position of the String to start getting the chars - Position of the String to end getting the chars - Array to return the chars - Position of the destination array of chars to start storing the chars - An array of chars + + If this property is not set, the property will be used + to obtain a parameter's value. + - + - Sets the capacity for the specified List + Gets or sets a default value for this parameter. - The List which capacity will be set - The new capacity value + + This value is used when you designing a report. Also it is used when report is running + in case if you don't provide a value for the property. + - + - Converts a string-Collection to an array + Gets or sets the parameter's value. - The strings. - - + - Joins all elements to one string. + This property is not relevant to this class. - - The separator. - The values. - - - - Fills the specified array. - (can't use extension method because of .Net 2.0 support) - - - The array. - The value. + + - + + + + - Fills the specified array. - (can't use extension method because of .Net 2.0 support) + Initializes a new instance of the class with default settings. - - The array. - The start index. - The end index. - The value. - + - Generates the Codabar barcode. + Represents the collection of objects. + + This class is used to store the list of parameters defined in the datasource. See the + property for more details. + - - - - + - Initializes a new instance of the class with default settings. + Gets or sets a parameter. + The index of a parameter in this collection. + The parameter with specified index. - + - The base class for all barcodes. + Finds a parameter by its name. + The name of a parameter. + The object if found; otherwise null. - + - Gets the name of barcode. + Returns an unique parameter name based on given name. + The base name. + The unique name. - + - Gets or sets the color of barcode. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Creates the exact copy of this barcode. + Represents the collection of objects. - The copy of this barcode. - + - Assigns properties from other, similar barcode. + Gets or sets a data connection. - Barcode object to assign properties from. + The index of a data connection in this collection. + The data connection with specified index. - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Generates the Code128 barcode. + Represents the CsvDataConnection connection string builder. - This barcode supports three code pages: A, B and C. You need to set appropriate code page - in the barcode text, or use the auto encode feature. See the property - for more details. + Use this class to parse connection string returned by the CsvDataConnection class. - This example shows how to configure the BarcodeObject to display Code128 barcode. - - BarcodeObject barcode; - ... - barcode.Barcode = new Barcode128(); - (barcode.Barcode as Barcode128).AutoEncode = false; - - - + - Gets or sets a value that determines whether the barcode should automatically - use appropriate encoding. + Gets or sets the path to .csv file. - - You may use this property to encode data automatically. If you set it to false, - you must specify the code page inside the data string. The following control codes are available: - - - Sequence - Code128 control code - - - &A; - START A / CODE A - - - &B; - START B / CODE B - - - &C; - START C / CODE C - - - - &S; - SHIFT - - - &1; - FNC1 - - - &2; - FNC2 - - - &3; - FNC3 - - - &4; - FNC4 - - - The following example shows how to specify control codes: - - BarcodeObject barcode; - barcode.Barcode = new Barcode128(); - (barcode.Barcode as Barcode128).AutoEncode = false; - barcode.Text = "&C;1234&A;ABC"; - - - - - - - - - + - Initializes a new instance of the class with default settings. + Gets or sets the codepage of .csv file. - + - Generates the Code39 barcode. + Gets or sets the separator. - - - - + - Initializes a new instance of the class with default settings. + Gets or sets the value indicating that field names should be loaded from the first string of the file. - + - Generates the Code39 extended barcode. + Gets or sets the value indicating that quotation marks should be removed. - + - Generates the Code93 barcode. + Gets or sets the value indicating that field types should be converted. - - - - + - Generates the Code93 extended barcode. + Initializes a new instance of the class. - + - The base class for EAN barcodes. + Initializes a new instance of the class with a specified connection string. + The connection string. - + - Initializes a new instance of the class with default settings. + Base class for all CubeSources such as . - + - Generates the EAN8 barcode. + - + - Generates the EAN13 barcode. + - + - Initializes a new instance of the class with default settings. + - + - Generates the GS1-128 (formerly known as UCC-128 or EAN-128) barcode. + - + - Initializes a new instance of the class with default settings. + - + - Generates the MSI barcode. + - + - Generates the PostNet barcode. + - + - Generates the "2/5 Interleaved" barcode. + - + - Initializes a new instance of the class with default settings. + - + - Generates the "2/5 Industrial" barcode. + - + - Generates the "2/5 Matrix" barcode. + - + - Initializes a new instance of the class with default settings. + - + - Generates the UPC E0 barcode. + - + - Initializes a new instance of the class with default settings. + - + - Generates the UPC E1 barcode. + - + - Generates the UPC A barcode. + - + - Generates the 2-digit supplement barcode. + - + + + + + + + - Initializes a new instance of the class with default settings. + - + - Generates the 5-digit supplement barcode. + Initializes a new instance of the class with default settings. - + - Specifies an origin where the new objects inserted from. + Represents the collection of objects. - + - Specifies that a new object was inserted from the "Objects" toolbar or "Insert" menu. + Gets or sets a data source. + The index of a data source in this collection. + The data source with specified index. - + - Specifies that a new object was dragged from the "Dictionary" window. + Finds a CubeSource by its name. + The name of a CubeSource. + The object if found; otherwise null. - + - Specifies that a new object was pasted from the clipboard. + Finds a CubeSource by its alias. + The alias of a CubeSource. + The object if found; otherwise null. - + - Represents the root class of the FastReport object's hierarhy. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Gets a value indicating whether the object is selected in the designer. + Base class for all datasources such as . - + - Gets a value indicating whether one of the object's parent is selected in the designer. + Occurs when the FastReport engine loads data source with data. + + Use this event if you want to implement load-on-demand. Event handler must load the data + into the data object which this datasource is bound to (for example, the + TableDataSource uses data from the DataTable object bound to + the Table property). + - + - Deletes the object in the designer. + Gets a number of data rows in this datasource. - This method is called when you delete the object in the designer. - Typically this method calls the method to delete the object and all - its children. You may override it to delete the object only, and keep children. + You should initialize the datasource by the Init method before using this property. - + - Called before inserting a new object in the designer. + Gets a value indicating that datasource has more rows, that is the + is less than the . - Do not call this method directly. You may override it if you are developing a - new component for FastReport. - - Some objects are registered in the designer several times with the same object - type, but different flags. For example, the - represents different shapes: rectangle, roundrect, ellipse and so on. All these - shapes are registered in the designer using flags (the last parameter in this - code): - - RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 108, "Objects,Shapes,Rectangle", 0); - RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 109, "Objects,Shapes,RoundRectangle", 1); - RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 110, "Objects,Shapes,Ellipse", 2); - - When we put the "Ellipse" object on a band, the designer creates the - ShapeObject instance and calls its OnBeforeInsert method with - flags value set to 2. In turn, the OnBeforeInsert method converts the - int value of the flags to the shape kind: - - public override void OnBeforeInsert(int flags) + You should initialize the datasource by the Init method before using this property. + Usually this property is used with the following code block: + + dataSource.Init(); + while (dataSource.HasMoreRows) { - FShape = (ShapeKind)flags; + // do something... + dataSource.Next(); } - - Object's flags. - + - Called after the new object was inserted in the designer. + Gets the current data row. - Do not call this method directly. You may override it if you are developing a new component - for FastReport. - This method is called when new object is inserted, pasted from clipboard or dragged from - "Dictionary" window. You may override this method if you need to perform some actions when object - is inserted. Typical implementation invokes the object's editor if "Edit after insert" flag is set - in the designer options. + This property is updated when you call the method. - The insertion source. - + - Called when the user selects another object in the designer. + Gets an index of current data row. - This method is typically used by the in-place object's editor to check if selection was changed and close - the editor. + You should initialize the datasource by the Init method before using this property. + This property is updated when you call the method. - + - Gets the object's context menu. + Gets data stored in a specified column. - Null reference if object does not have a menu. + Alias of a column. + The column's value. - Do not call this method directly. You may override it if you are developing a new component - for FastReport. - You may use base menu classes such as , - to create own context menus. + You should initialize the datasource by the Init method before using this property. - + - Gets or sets the name of the object. + Gets data stored in a specified column. + The column. + The column's value. - Name of the report object must contain alpha, digit, underscore symbols only. - Data objects such as Variable, TableDataSource - etc. can have any characters in they names. Each component must have unique - name. + You should initialize the datasource by the Init method before using this property. - The following code demonstrates how to find an object by its name: - - TextObject text1 = report1.FindObject("Text1") as TextObject; - - - Another object with such name exists. - Rename an object that was introduced in the ancestor report. - + - Gets or sets the flags that restrict some actions in the designer. + Forces loading of data for this datasource. - Use this property to restrict some user actions like move, resize, edit, delete. For example, if - Restriction.DontMove flag is set, user cannot move the object in the designer. + This property is false by default. Set it to true if you need to reload data + each time when the datasource initialized. Note that this may slow down the performance. - + - Gets the flags that allow some functionality in the designer. + This property is not relevant to this class. - - Use this property only if you developing a new FastReport object. - - + - Gets or sets the parent of the object. + This property is not relevant to this class. - - Each report object must have a parent in order to appear in the report. Parent must be able to - contain objects of such type. - Another way (preferred) to set a parent is to use specific properties of the parent object. - For example, the object has the collection. - To add a new page to the report, use the following code: report1.Pages.Add(new ReportPage()); - - - - Report report1; - ReportPage page = new ReportPage(); - page.Parent = report1; - - Parent object cannot contain this object. - + - The base part of the object's name. + This property is not relevant to this class. - - This property is used to automatically create unique object's name. See - - + - Gets the short type name. + This property is not relevant to this class. - - Returns the short type name, such as "TextObject". - - + - Gets reference to the parent object. + This property is not relevant to this class. - + - Gets reference to the parent object. + This property is not relevant to this class. - + - Gets the collection of this object's child objects. + Gets the additional filter settings. - - This property returns child objects that belongs to this object. For example, Report.ChildObjects - will return only pages that contains in the report, but not page childs such as bands. To return all - child objects, use property. - - + - Gets the collection of all child objects. + Gets data stored in a specified column. + + The column alias. + An object that contains the data. + + + + Gets data stored in a specified column. + + The column. + An object that contains the data. + + + + Initializes the datasource schema. - This property returns child objects that belongs to this object and to child objects of this object. - For example, Report.AllObjects will return all objects that contains in the report - such as - pages, bands, text objects. + This method is used to support the FastReport.Net infrastructure. Do not call it directly. - + - Gets or sets the Z-order of the object. + Loads the datasource with data. - The Z-order is also called "creation order". It is the index of an object in the parent's objects list. - For example, put two text objects on a band. First object will have ZOrder = 0, second = 1. Setting the - second object's ZOrder to 0 will move it to the back of the first text object. + This method is used to support the FastReport.Net infrastructure. Do not call it directly. + Rows to fill with data. - + - Gets a value indicating whether the object was introduced in the ancestor report. + Initializes this datasource. + + This method fills the table with data. You should always call it before using most of + datasource properties. + - + - Gets a value indicating whether the object is in the design state. + Initializes this datasource and applies the specified filter. + The filter expression. - + - Gets a value indicating whether the object is currently printing. + Initializes this datasource, applies the specified filter and sorts the rows. + The filter expression. + The collection of sort descriptors. - + - Gets a value indicating whether the object is currently processed by the report engine. + Initializes this datasource and filters data rows according to the master-detail relation between + this datasource and parentData. + Parent datasource. + + To use master-detail relation, you must define the object that describes + the relation, and add it to the Report.Dictionary.Relations collection. + - + - Gets an original component for this object. + Initializes this datasource and filters data rows according to the master-detail relation between + this datasource and parentData. Also applies the specified filter and sorts the rows. + Parent datasource. + The filter expression. + The collection of sort descriptors. - This property is used in the preview mode. Each object in the prepared report is bound to its - original (from the report template). This technique is used to minimize the prepared report's size. + To use master-detail relation, you must define the object that describes + the relation, and add it to the Report.Dictionary.Relations collection. - + - Helper method, helps to set a reference-type value to the property. + Initializes this datasource and filters data rows according to the master-detail relation. + Also applies the specified filter and sorts the rows. - Old property value. - New property value. + The master-detail relation. + The filter expression. + The collection of sort descriptors. - This method is used widely to set a new value to the property that references another FastReport object. - Method deals with the property. + To use master-detail relation, you must define the object that describes + the relation, and add it to the Report.Dictionary.Relations collection. - This is example of the DataBand.Header property: - public DataHeaderBand Header - { - get { return FHeader; } - set - { - SetProp(FHeader, value); - FHeader = value; - } - } - - + - Checks if two float values are different. + Initializes the data source if it is not initialized yet. + + + + + Navigates to the first row. - First value. - Second value. - true if values are not equal. - This method is needed to compare two float values using some precision (0.001). It is useful - to compare objects' locations and sizes for equality. + You should initialize the datasource by the Init method before using this method. - + - Deserializes nested object properties. + Navigates to the next row. - Reader object. - Typically the object serializes all properties to the single xml item: - - <TextObject Name="Text2" Left="18.9" Top="37.8" Width="283.5" Height="28.35"/> - - Some objects like have child objects that serialized in subitems: - - <DataBand Name="Data1" Top="163" Width="718.2" Height="18.9"> - <TextObject Name="Text3" Left="18.9" Top="37.8" Width="283.5" Height="28.35"/> - </DataBand> - - To read such subitems, the DeserializeSubItems method is used. Base - implementation reads the child objects. You may override it to read some specific subitems. + You should initialize the datasource by the Init method before using this method. - The following code is used to read report's styles: - - protected override void DeserializeSubItems(FRReader reader) - { - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else - base.DeserializeSubItems(reader); - } - - - + - Replaces the macros in the given string and returns the new string. + Navigates to the prior row. - The text containing macros. - The text with macros replaced with its values. + + You should initialize the datasource by the Init method before using this method. + - + - + + + + + + + - Set object's flags. + Initializes a new instance of the class with default settings. - Flag to set. - true to set the flag, false to reset. - + - Sets the reference to a Report. + Represents the collection of objects. - Report to set. - + - Sets the object's name. + Gets or sets a data source. - - This method is for internal use only. It just sets a new name without any checks - (unlike the property setter). - - Name Property - New name. + The index of a data source in this collection. + The data source with specified index. - + - Sets the object's parent. + Finds a datasource by its name. - - This method is for internal use only. You can use it if you are developing a new - component for FastReport. Override it to perform some actions when the parent of an - object is changing. This method checks that parent can contain a child. - - Parent object cannot contain this object. - New parent. + The name of a datasource. + The object if found; otherwise null. - + - Sets the object's parent. + Finds a datasource by its alias. - New parent. - - This method is for internal use only. You can use it if you are developing a new component for FastReport. - This method does not perform any checks, it just sets the new parent. - + The alias of a datasource. + The object if found; otherwise null. - + - Searches for an object with given name. + Sorts data sources by theirs names. - Name of the object to find. - Returns a null reference if object is not found - The following code demonstrates how to find an object by its name: - - TextObject text1 = report1.FindObject("Text1") as TextObject; - if (text1 != null) - { - // object found - } - - - + - Creates the unique object's name. + Initializes a new instance of the class with default settings. - - Note: you have to set object's parent before calling this method. Method uses the - property to create a name. - Note: this method may be very slow on a report that contains lots of objects. Consider - using own naming logic in this case. - - - - TextObject textObj = new TextObject(); - dataBand1.Objects.Add(textObj); - textObj.CreateUniqueName(); - - + The owner of this collection. - + - Clears the object's state. + Represents the comparer class that used for sorting the collection of data sources. - - This method also disposes all object's children. - - + + + + - Serializes the object. + Determines how to filter the data value. - Do not call this method directly. You should override it if you are - developing a new component for FastReport. - This method is called when the object needs to save the state. It may happen - when: - - - saving the report to the file or stream; - - - saving the report to the designer's undo buffer; - - - - assigning the object to another object using the - or AssignAll methods; - - - - saving the object to the designer's clipboard; - - - saving the object to the preview (when run a - report). - - + The "Data value" is a value contained in the datasource which you filter. + The "Selected value" is a value you have entered or selected in the dialog control. - Writer object. - + - Deserializes the object. + Data value is equal to selected value. - - Do not call this method directly. You should override it if you are - developing a new component for FastReport. - This method is called when the object needs to restore the state. It may - happen when: - - - loading the report from a file or stream; - - - loading the report from the designer's undo - buffer; - - - assigning another object to this object using the - or AssignAll methods; - - - loading the object from the designer's - clipboard; - - loading the object from the preview pages. - - - Reader object. - + - Assigns values from another source. + Data value is not equal to selected value. - - Note: this method is relatively slow because it serializes - an object to the xml and then deserializes it. - - Source to assign from. - - Copies the contents of another, similar object. - - Call Assign to copy the properties from another object of the same type. - The standard form of a call to Assign is - destination.Assign(source); - - which tells the destination object to copy the contents of the - source object to itself. In this method, all child objects are - ignored. If you want to copy child objects, use the - AssignAll method. - - - - Report report1; - Report report2 = new Report(); - // copy all report settings, do not copy report objects - report2.Assign(report1); - - AssignAll Method - Source object to copy the contents from. + + + Data value is less than selected value. + - - Copies the contents (including children) of another, similar object. - - - This method is similar to method. It copies child - objects as well. - - - - Report report1; - Report report2 = new Report(); - // copy all report settings and objects - report2.AssignAll(report1); - - - Source object to copy the state from. + + + Data value is less than or equal to selected value. + - + - Gets a value indicating whether the object has the specified parent in its parent hierarhy. + Data value is greater than selected value. - Parent object to check. - Returns true if the object has given parent in its parent hierarhy. - + - Gets a value indicating whether the object has a specified flag in its property. + Data value is greater than or equal to selected value. - Flag to check. - true if Flags property contains specified flag. - + - Gets a value indicating whether the object has a specified restriction - in its property. + Data string contains selected value. - Restriction to check. - true if Restrictions property contains specified restriction. - + - Invokes script event. + Data string does not contain selected value. - Name of the event to invoke. - Event parameters. - - Do not call this method directly. You should use it if you are developing a new component - for FastReport. - Use this method to call an event handler that is located in the report's script. - - Example of the OnBeforePrint method: - public void OnBeforePrint(EventArgs e) - { - if (BeforePrint != null) - BeforePrint(this, e); - InvokeEvent(BeforePrintEvent, e); - } - - + - Called after all report objects were loaded. + Data string starts with selected value. - - Do not call this method directly. You may override it if you are developing a new component - for FastReport. - - + - Gets all expressions contained in the object. + Data string does not start with selected value. - Array of expressions or null if object contains no expressions. - - Do not call this method directly. You may override it if you are developing a - new component for FastReport. - - This method is called by FastReport each time before run a report. FastReport - do this to collect all expressions and compile them. For example, - GetExpressions method of the class - parses the text and returns all expressions found in the text. - - - + - Returns a custom code that will be added to the report script before report is run. + Data string ends with selected value. - A custom script text, if any. Otherwise returns null. - - This method may return any valid code that may be inserted into the report script. Currently it is - used in the TableObject to define the following script methods: Sum, Min, Max, Avg, Count. - - - Note: you must take into account the current script language - C# or VB.Net. You may check it via - Report.ScriptLanguage property. - - - + - Used to extract macros such as "TotalPages#" in the preview mode. + Data string does not end with selected value. - - This method is used mainly by the TextObject to extract macros and replace it with - actual values passed in the pageIndex and totalPages parameters. This method - is called automatically when the object is being previewed. - - + - Used to get information of the need to convertation if the function returns true, then the GetConvertedObjects function is called + This class stores all report data items such as datasources, connections, relations, parameters, + system variables. - The export or the object, that call this method - By default returns false - The functions IsHaveToConvert and GetConvertedObjects allow you to convert objects from one to another, - for example the export will convert object before adding it to the file and convert recursive, - i.e. If the new object has the ability to convert, - it will be converted again but limit is 10 times. - At the time of export it is called, only on objects inside the band, - the child objects of converted object will be returned, and the child objects of old object will be ignored. + You can access the report dictionary via Report.Dictionary property. - + - Used to get an enumeration of the objects to which this object will be converted, before calling this function, the IsHaveToConvert function will be called + Gets a collection of connection objects available in a report. - By default returns this object - - The functions IsHaveToConvert and GetConvertedObjects allow you to convert objects from one to another, - for example the export will convert object before adding it to the file and convert recursive, - i.e. If the new object has the ability to convert, - it will be converted again but limit is 10 times. - At the time of export it is called, only on objects inside the band, - the child objects of converted object will be returned, and the child objects of old object will be ignored. - - + - Gets the collection of all child objects, converts objects if necessary + Gets a collection of datasources available in a report. - the object or export, that call this convertation + + Usually you don't need to use this property. It contains only datasources + registered using the RegisterData method. All other datasources are contained + in connection objects and may be accessed via property. + - + - Initializes a new instance of the Base class with default settings. + Gets a collection of relations. - + - Represents a text object which draws each symbol of text in its own cell. + Gets a collection of parameters. - The text may be aligned to left or right side, or centered. Use the - property to do this. The "justify" align is not supported now, as well as vertical alignment. - The cell size is defined in the and properties. - These properties are 0 by default, in this case the size of cell is calculated automatically based - on the object's Font. - To define a spacing (gap) between cells, use the and - properties. + Another way to access parameters is to use the Report.Parameters property + which is actually a shortcut to this property. You also may use the Report.GetParameter + and Report.GetParameterValue methods. - + - Gets or sets the width of cell, in pixels. + Gets a collection of system variables like Date, PageNofM etc. - If zero width and/or height specified, the object will calculate the cell size - automatically based on its font. + Another way to access a system variable is to use the Report.GetVariableValue method. - + - Gets or sets the height of cell, in pixels. + Gets a collection of totals. - If zero width and/or height specified, the object will calculate the cell size - automatically based on its font. + Another way to get a total value is to use the Report.GetTotalValue method. - + - Gets or sets the horizontal spacing between cells, in pixels. + Gets a collection of cubesources available in a report. + + Usually you don't need to use this property. It contains only cubesources + registered using the RegisterData method. + - + - Gets or sets the vertical spacing between cells, in pixels. + Gets a list of registered items. + + This property is for internal use only. + - - - - + - - + + + Registers a DataView. + + The DataView to register. + The name of the data object. + Determines wheter to enable the object or not. + + This method is for internal use only. + - - + + + Registers a business object. + + The business object. + The name of the object. + Maximum level of data nesting. + Determines wheter to enable the object or not. + + This method is for internal use only. + - + - Initializes a new instance of the class with the default settings. + Registers a CubeLink. + The CubeLink to register. + The name of the data object. + Determines wheter to enable the object or not. + + This method is for internal use only. + - + - This property is not relevant to this class. + Registers a data object. + The object to register. + The name of the object. + Determines wheter to enable the object or not. + + This method is for internal use only. + - + - This property is not relevant to this class. + Unregisters the previously registered data. + The application data. - + - This property is not relevant to this class. + Unregisters the previously registered data. + The application data. + The name of the data. + + You must specify the same data and name as when you call RegisterData. + - + - This property is not relevant to this class. + Re-registers the data registered before. + + This method is for internal use only. + - + - This property is not relevant to this class. + Re-registers the data registered before. + - + - This property is not relevant to this class. + Clears all registered data. - + - This property is not relevant to this class. + Enables or disables relations between data tables. + + Call this method if you create master-detail report from code. This method enables + relation between two data tables which Enabled flag is set to true. Relations + whose parent and child tables are disabled, gets disabled too. + - + - This property is not relevant to this class. + Creates unique name for data item such as connection, datasource, relation, parameter or total. + The base name. + The new unique name. + + Use this method to create unique name of the data item. It is necessary when you create new + items in code to avoid conflicts with existing report items. + This example show how to add a new parameter: + + Report report1; + Parameter par = new Parameter(); + par.Name = report1.Dictionary.CreateUniqueName("Parameter"); + report1.Parameters.Add(par); + + + - + - This property is not relevant to this class. + Creates unique alias for data item such as connection, datasource or relation. + The base alias. + The new unique alias. + + Use this method to create unique alias of the data item. It is necessary when you create new + items in code to avoid conflicts with existing report items. + This example show how to add a new table: + + Report report1; + DataConnectionBase conn = report1.Dictionary.Connections.FindByName("Connection1"); + TableDataSource table = new TableDataSource(); + table.TableName = "Employees"; + table.Name = report1.Dictionary.CreateUniqueName("EmployeesTable"); + table.Alias = report1.Dictionary.CreateUniqueAlias("Employees"); + conn.Tables.Add(table); + + + - + - This property is not relevant to this class. + Finds a data item such as connection, datasource, relation, parameter or total by its name. + The item's name. + The data item if found; otherwise, null. - + - This property is not relevant to this class. + Finds a data item such as connection, datasource or relation by its alias. + The item's alias. + The data item if found; otherwise, null. - + - This property is not relevant to this class. + Finds a datasource that matches the specified DataTable. + The DataTable object to check. + The DataSourceBase object if found. + + This method is for internal use only. + - + - This property is not relevant to this class. + Finds a data component that matches the specified reference name. + The name to check. + The DataComponentBase object if found. + + This method is for internal use only. + - + + + + + + + - This property is not relevant to this class. + Saves the dictionary to a stream. + Stream to save to. - + - This property is not relevant to this class. + Saves the dictionary to a file. + The name of a file to save to. - + - This property is not relevant to this class. + Loads the dictionary from a stream. + The stream to load from. - + - This property is not relevant to this class. + Loads the dictionary from a file. + The name of a file to load from. - + - This property is not relevant to this class. + Merges this dictionary with another Dictionary. + Another dictionary to merge the data from. - + - + - - - Represents a check box object. - + + - + - + - + - + + + + - Gets or set a value indicating whether the check box is in the checked state. + Initializes a new instance of the class with default settings. - + - Gets or sets a symbol that will be displayed when the check box is in the checked state. + Represents the item registered in a dictionary. - + - Gets or sets a symbol that will be displayed when the check box is in the unchecked state. + Gets the item data. - + - Gets or sets a color of the check symbol. + Gets the item name. - + - Gets or sets a data column name bound to this control. + Represents a report parameter that is used to pass user data to a report. - Value must be in the form "[Datasource.Column]". + See for details about using parameters. - + - Gets or sets an expression that determines whether to show a check. + Gets or sets the name of parameter. - + - Gets or sets the check symbol width ratio. + Gets or sets the type of parameter. + + + + + Gets or sets the value of parameter. - Valid values are from 0.2 to 2. + You may specify the static value in this property. Note: if the + property is not empty, it will be calculated and its value will be returned. - + - Gets or sets a value determines whether to hide the checkbox if it is in the unchecked state. + Gets or sets value of the parameter as a string. - + - Gets or sets editable for pdf export + Gets or sets an expression of the parameter. + + This expression will be calculated each time you access a parameter's Value. + - + + + Gets or sets the description of a parameter. + + + + + Gets a collection of nested parameters. + + + Parameters can have child (nested) parameters. To get or set a nested + parameter's value, use the method. + + + + + Gets the full name of the parameter. This is useful to get the nested parameter's full name. + + + + + This property is not relevant to this class. + + + - + - + - + - + - - - Initializes a new instance of the CheckBoxObject class with default settings. - + + - - - This class represents a child band. - - - Typical use of child band is to print several objects that can grow or shrink. It also can be done - using the shift feature (via property), but in some cases it's not possible. - + + - + - + - - - Gets or sets a value indicating that band will be used to fill unused space on a page. - - - If you set this property to true, the band will be printed several times to fill - unused space on a report page. - + + - + - Gets or sets a value that determines the overall number of data rows printed by the data band. + Initializes a new instance of the class with default settings. - - Using this property, you may complete the data band upto N data rows. - If the data band has less number of rows, this band will be used to print empty rows. - - + - Gets or sets a value indicating that the band will be printed if its parent databand is empty. + Initializes a new instance of the class with specified name. - - The child band with this property set to true, connected to a databand can be used to print "No data" - text if the databand has no rows. - - - - - - - - + - Box cloud storage client. + Represents the collection of objects. - + - Gets or sets the client info. + Gets or sets a parameter. + The index of a parameter in this collection. + The parameter with specified index. - + - Gets or sets the authorization code. + Finds a parameter by its name. + The name of a parameter. + The object if found; otherwise null. - + - Gets or sets the access token. + Returns an unique parameter name based on given name. + The base name. + The unique name. - + - Initializes a new instance of the class. + Copies the parameters from other collection. + Parameters to copy from. - + - Initializes a new instance of the class. + Initializes a new instance of the class with default settings. - The storage client info. + The owner of this collection. - + - Gets the authorization URL. + Represents the collection of objects. - The authorization URL stirng. - + - Gets the access token. + Gets or sets a relation. - The access token string. - - - + The index of a relation in this collection. + The relation with specified index. - + - Represents form of Box storage client. + Finds a relation by its name. + The name of a relation. + The object if found; otherwise null. - - - Initializes a new instance of the class. - - - + - Initializes a new instance of the class. + Finds a relation by its alias. - The information about Box client application. - The report template. - - - - - - - - - - - - + The alias of a relation. + The object if found; otherwise null. - + - Required designer variable. + Finds a relation that is equal to specified one. + Another relation to compare with. + The object if found; otherwise null. - + - Clean up any resources being used. + Initializes a new instance of the class with default settings. - true if managed resources should be disposed; otherwise, false. + The owner of this collection. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents a datasource based on DataView class. + + This class is used to support FastReport.Net infrastructure, do not use it directly. + If you want to use data from DataView object, call the + method of the Report. + - + - Represents the Client Info diabolg form. + Represents the collection of system variables. - + - Gets the client ID. + Represents the base class for system variables. - + - Gets the client secret. + This property is not relevant to this class. - + - Initializes a new instance of the class. + This property is not relevant to this class. - + - + - Required designer variable. + Returns date and time of the report's start. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Returns current page number. - - - Represents form of the web browser. - + + - + - Gets obtained authorization code. + Returns total number of pages in the report. To use this variable, you need + to enable the report's double pass. - + - - - Required designer variable. - - - + - Clean up any resources being used. + Returns a string containing the current page number in a form "Page N". - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - + - FastCloud storage client. + Returns a string containing the current page number and total pages in a form "Page N of M". + To use this variable, you need to enable the report's double pass. - - - Gets or sets the access token. - + + - + - Gets the report URL that can be used to download report from cloud. + Returns data row number inside the group. This value is reset at the start of a new group. - - - Initializes a new instance of the class. - + + - + - Gets the access token. + Returns absolute number of data row. This value is never reset at the start of a new group. - The access token string. - + - + - Represents form of FastCloud storage client. + Returns current page number. + This variable is actually a macro. Its value is substituted when the component is viewed in + the preview window. That means you cannot use it in an expression. - - - Initializes a new instance of the class. - + + - + - Initializes a new instance of the class. + Returns the number of total pages in the report. + This variable is actually a macro. Its value is substituted when the component is viewed in + the preview window. That means you cannot use it in an expression. - The report template. - - - - - - - - - - + - + - Required designer variable. + Returns the name of the printed copy. + This variable is actually a macro. Its value is substituted when the component is viewed in + the preview window. That means you cannot use it in an expression. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Returns a level of hierarchy in the hierarchical report. - - - Represents form of FastCloud storage client. - + + - + - Initializes a new instance of the class. + Returns the row number like "1.2.1" in the hierarchical report. - + + + + - Initializes a new instance of the class. + Represents the collection of objects. - The report template. - + - Checks is the string numeric. + Gets or sets a data table. - The checking string. - True if string is numeric, otherwise false. + The index of a data table in this collection. + The data table with specified index. - + - Gets the proxy settings. + Initializes a new instance of the class with default settings. - The proxy settings. - - - + The owner of this collection. - + - Required designer variable. + Specifies the total type. - + - Clean up any resources being used. + The total returns sum of values. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + The total returns minimal value. - + - FTP storage client. + The total returns maximal value. - + - Gets or sets the FTP server. + The total returns average value. - + - Gets or sets the username. + The total returns number of values. - + - Gets or sets the password. + Represents the collection of objects. - + - Initializes a new instance of the class. + Gets or sets a total. + The index of a total in this collection. + The total with specified index. - + - Initializes a new instance of the class. + Finds a total by its name. - The FTP server. - The username. - The password. + The name of a total. + The object if found; otherwise null. - + - Saves the report to FTP storage. + Returns an unique total name based on given name. - The report template that should be saved. - The export filter that should export template before. - True if report has been successfully saved. - + The base name. + The unique name. - + - Represents form of the FTP storage client. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Initializes a new instance of the class. + Represents a datasource based on DataView class. + + This class is used to support FastReport.Net infrastructure, do not use it directly. + If you want to use data from DataView object, call the + method of the Report. + - + - Initializes a new instance of the class. + Gets the underlying DataView object. - The FTP server. - The username. - The password. - The report template. - + - + - + - + - + - Required designer variable. + Represents the XmlDataConnection connection string builder. + + Use this class to parse connection string returned by the XmlDataConnection class. + - + - Clean up any resources being used. + Gets or sets the path to .xml file. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the path to .xsd file. - + - The base class for all cloud storage clients. + Initializes a new instance of the class with default settings. - + - Gets or sets the filename. + Initializes a new instance of the class with + specified connection string. + The connection string. - + - Gets or set the information is user authorized or not. + Allows working with JsonObject - + - Gets or sets the proxy settings of a client. + Returns child object for JsonArray + + - + - Initializes a new instance of the class. + Returns child object for JsonObject + + - + - Prepares report before it will be saved to cloud storage. + Returns count of child object - The report template. - The export filter. - Memory stream that contains prepared report. - + - Saves the report to cloud storage. + Returns true if this object is JsonArray - The report template that should be saved. - The export filter that should export template before. - - + - Represents form of Dropbox storage client. + Returns true if this object is JsonObject - + - Gets or sets the report template. + Returns list of JsonObject keys - + - Gets or sets the list of exports. + Pars json text string and return a new JsonBase Object + + - + - Initializes a new instance of the class. + returns true + + - + - Initializes a new instance of the class. + Serialize this object to sb - The report template. + + + indent in space, 0 = without indent - + - Initializes the list of exports. + Contains some configuration properties and settings that will be applied to the FastReport.Net + environment, including Report, Designer and Preview components. - - - Gets the proxy settings. + Contains some configuration properties and settings that will be applied to the FastReport.Net + environment, including Report, Designer and Preview components. - The proxy settings. - + - Initializes the component. + Gets the autosaved report - + - Checks is the string numeric. + Gets the atuosaved report path - The checking string. - True if string is numeric, otherwise false. - + - Finishes the form work. + Gets the folder to store auto save files - Returns true if work has been successfully finished, otherwise false. - - - - + - SelectedIndexChanged event handler for ComboBox File Type. + Gets or sets the settings for the report designer window. - Event sender. - Event args. - + - Click event handler for Button Settings. + Gets a value indicating that the ASP.NET hosting permission level is set to full trust. - Event sender. - Event args. - + - FormClosing event handler for CloudStorageClientForm. + Gets or sets a value indicating whether SplashScreen should be displayed while loading designer - Event sender. - Event args. - + - Click event handler for button OK. + Gets or sets the UI style. - Event sender. - Event args. + + This property affects both designer and preview windows. + - + - Required designer variable. + Gets or sets a value indicating whether the Ribbon UI should be used - + - Clean up any resources being used. + Gets or sets a value that determines whether to disable some functionality to run in web mode. - true if managed resources should be disposed; otherwise, false. + + Use this property if you use FastReport in ASP.Net. Set this property to true before + you access any FastReport.Net objects. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether Welcome window feature enabled. + If false, interface elements associated with the Welcome window will not be visible. - + - Page File. + Gets or sets a value indicating whether Welcome window shoud be displayed on startup - + - Page Proxy. + Restores the form state from the configuration file. + The form to restore. - + - ComboBox File Type. + Saves the form state to the configuration file. + The form to save. - + - Label File Type. + Saves the form state to the configuration file. + The name of the form. + True if the form is in maximized state. + True if the form is in minimized state. + The location of the form. + The size of the form. - + - Buttons Settings. + Is necessary to process abort and some other events in parallel - + - Label Colon. + Checks the visibility of rectangle area on currently connected screens with small gap. + Rectanle area for checking. + True for visible rect. - + - Label Password. + Gets or sets the settings for the preview window. - + - Label Username. + Gets or sets the optimization of strings. Is experimental feature. - + - Label Server. + Enable or disable the compression in files with prepared reports (fpx). - + - TextBox Username. + Gets the application folder. - + - TextBox Port. + Gets an english culture information for localization purposes - + - TextBox Server. + Gets or sets the path used to load/save the configuration file. + + By default, the configuration file is saved to the application local data folder + (C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\). + Set this property to "" if you want to store the configuration file in the application folder. + - + - TextBox Password. + Gets or sets the path used to font.list file. + + By default, the font.list file is saved to the FastReport.config folder + If WebMode enabled (or config file path is null), then file is saved in the application folder. + - + - PageControl. + Gets or sets the settings for the Report component. - + - Represents the Application Info diabolg form. + Gets or sets a value indicating whether RTL layout should be used. - + - Gets the access token. + Gets or sets a value indicating whether hotkeys should be disabled. - + - Initializes a new instance of the class. + Gets the root item of config xml. - - - - + - Required designer variable. + Gets or sets the path to the temporary folder used to store temporary files. + + The default value is null, so the system temp folder will be used. + - + - Clean up any resources being used. + Gets the path to the system temporary folder used to store temporary files. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets FastReport version. - + - Dropbox cloud storage client. + Gets or sets the settings for the "Send Email" window. - + - The base URL for files_put command. + Get access to font collection - + - Gets or sets the application access token. + Holds the information about the registered object. - + - Initializes a new instance of the class. + Image. - + - Initializes a new instance of the class. + Image index. - The Dropbox application access token. - - - - + - Represents form of Dropbox storage client. + Button index. - + - Initializes a new instance of the class. + Name of object or category. - The Dropbox access token. - The report template. - - - - + - Required designer variable. + The registered object. - + - Clean up any resources being used. + The registered function. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Tooltip text. - + - Represents the Client Info diabolg form. + Flags that will be used to create an object instance in the designer. - + - Gets the client ID. + Indicates whether this object can be inserted several times simultaneously. + + This is applied to Line object only. + - + - Gets the client secret. + Gets or sets the enabled flag for the object. - + - Initializes a new instance of the class. + List of subitems. - - - - + - Required designer variable. + Enumerates all objects. + List that will contain enumerated items. - + - Clean up any resources being used. + - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + - + - Google Drive cloud storage client. + - + - Gets or sets the client info. + Contains all registered report items such as objects, export filters, wizards. + + Use this class to register own components, wizards, export filters or another items that + need to be serialized to/from a report file. + + + + // register own wizard + RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); + // register own export filter + RegisteredObjects.AddExport(typeof(MyExport), "My Export"); + // register own report object + RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); + + - + - Gets or sets the authorization code. + Registers a new cloud storage client. + Type of cloud storage client. + Text for cloud storage client's menu item. + + The obj must be of type. + + + + // register own cloud storage client + RegisteredObjects.AddCloud(typeof(MyCloud), "My Cloud"); + + - + - Gets or sets the access token. + Registers a new messenger. + Type of messenger. + Text messenger's menu item. + + The obj must be of type. + + + + // register own messenger + RegisteredObjects.AddMessenger(typeof(MyMessenger), "My Messenger"); + + - + - Initializes a new instance of the class. + Registers a new wizard. + Type of wizard. + Image for wizard item. + Text for wizard item. + true if this wizard creates some items in existing report. + + The obj must be of type. + + This example shows how to register own wizard that is used to create some items in the + current report. If you want to register a wizard that will be used to create a new report, + set the isReportItemWizard to false. + + // register own wizard + RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); + + - - - Initializes a new instance of the class. - - The storage client info. + + + + + + + - + - Gets the authorization URL. + Root object for all registered objects. - The authorization URL stirng. - + - Gets the access token. + Checks whether the specified type is registered already. - The access token string. - - - + Type to check. + true if such type is registered. - + - Represents form of Google Drive storage client. + Registers a category that may contain several report objects. + Category name. + Image for category button. + Text for category button. + + Category is a button on the "Objects" toolbar that shows context menu with nested items + when you click it. Consider using categories if you register several report objects. It can + save space on the "Objects" toolbar. For example, FastReport registers one category called "Shapes" + that contains the LineObject and different types of ShapeObject. + The name of category must starts either with "ReportPage," or "DialogPage," depending on + what kind of controls do you need to regiter in this category: report objects or dialog controls. + After the comma, specify the category name. So the full category name that you need to specify + in the name parameter, must be something like this: "ReportPage,Shapes". + + When register an object inside a category, you must specify the full category name in the + category parameter of the Add method. + - + - Initializes a new instance of the class. + Register Export category. + Category name. + Category text. - + - Initializes a new instance of the class. + Registers a new export filter. - The information about Google Drive client application. - The report template. - - - - - - - - - - - - + Type of export filter. + Text for export filter's menu item. + + The obj must be of type. + + + + // register own export filter + RegisteredObjects.AddExport(typeof(MyExport), "My Export"); + + - + - Required designer variable. + - + - Clean up any resources being used. + Registers data connection. - true if managed resources should be disposed; otherwise, false. + Type of connection. + + The obj must be of type. + + + + // register data connection + RegisteredObjects.AddConnection(typeof(MsSqlDataConnection)); + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Registers custom data connection. + Type of connection. + Name of connection. + + The obj must be of type. + + + + // register data connection + RegisteredObjects.AddConnection(typeof(MyDataConnection), "My Data Connection"); + + - + - Represents form of the web browser. + Registers an object in the specified category. + Type of object to register. + Name of category to register in. + Index of image for object's button. - + - Gets obtained authorization code. + Registers an object in the specified category. + Type of object to register. + Name of category to register in. + Index of image for object's button. + Index of object's button in toolbar. - - - - + - Required designer variable. + Registers an object in the specified category with button's image and text. + Type of object to register. + Name of category to register in. + Image for object's button. + Text for object's button. + + You must specify either the page type name or existing category name in the category parameter. + The report objects must be registered in the "ReportPage" category or custom category that is + registered in the "ReportPage" as well. The dialog controls must be registered in the "DialogPage" + category or custom category that is registered in the "DialogPage" as well. + If you want to register an object that needs to be serialized, but you don't want + to show it on the toolbar, pass empty string in the category parameter. + + + + + // register the report object + RegisteredObjects.Add(typeof(MyReportObject), "ReportPage", myReportObjectBmp, "My Report Object"); + // register the dialog control + RegisteredObjects.Add(typeof(MyDialogControl), "DialogPage", myDialogControlBmp, "My Dialog Control"); + // add a category and register an object inside it + RegisteredObjects.AddCategory("ReportPage,MyCategory", myCategoryBmp, "My Category"); + // register another report object in MyCategory + RegisteredObjects.Add(typeof(MyReportObject), "ReportPage,MyCategory", + anotherReportObjectBmp, "Another Report Object"); + + - + - Clean up any resources being used. + Registers an object in the specified category with button's image, text and object's flags. - true if managed resources should be disposed; otherwise, false. + Type of object to register. + Name of category to register in. + Image for object's button. + Text for object's button. + Integer value that will be passed to object's OnBeforeInsert method. + + See the method for more details. + To learn about flags, see the method. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Registers an object in the specified category with button's image, text, object's flags and multi-insert flag. + Type of object to register. + Name of category to register in. + Image for object's button. + Text for object's button. + Integer value that will be passed to object's OnBeforeInsert method. + Specifies whether the object may be inserted several times until you + select the "arrow" button or insert another object. + + See the method for more details. + To learn about flags, see the method. + - + - Represents form of the web browser. + Adds a new function category. + Short name of category. + Display name of category. + + Short name is used to reference the category in the subsequent + method call. It may be any value, for example, "MyFuncs". Display name of category is displayed + in the "Data" window. In may be, for example, "My Functions". + The following standard categories are registered by default: + + + "Math" + + + "Text" + + + "DateTime" + + + "Formatting" + + + "Conversion" + + + "ProgramFlow" + + + + + This example shows how to register a new category: + + RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); + + - + + + Adds a new function into the specified category. + + MethodInfo containing all necessary information about the function. + The name of category to register the function in. + + Your function must be a static, public method of a public class. + The following standard categories are registered by default: + + + "Math" + + + "Text" + + + "DateTime" + + + "Formatting" + + + "Conversion" + + + "ProgramFlow" + + + You may use one of the standard categories, or create a new category by the + method call. + FastReport uses XML comments to display your function's description. + To generate XML comments, enable it in your project's properties + ("Project|Properties..." menu, "Build" tab, enable the "XML documentation file" checkbox). + + + The following example shows how to register own functions: + + public static class MyFunctions + { + /// <summary> + /// Converts a specified string to uppercase. + /// </summary> + /// <param name="s">The string to convert.</param> + /// <returns>A string in uppercase.</returns> + public static string MyUpperCase(string s) + { + return s == null ? "" : s.ToUpper(); + } + + /// <summary> + /// Returns the larger of two 32-bit signed integers. + /// </summary> + /// <param name="val1">The first of two values to compare.</param> + /// <param name="val2">The second of two values to compare.</param> + /// <returns>Parameter val1 or val2, whichever is larger.</returns> + public static int MyMaximum(int val1, int val2) + { + return Math.Max(val1, val2); + } + + /// <summary> + /// Returns the larger of two 64-bit signed integers. + /// </summary> + /// <param name="val1">The first of two values to compare.</param> + /// <param name="val2">The second of two values to compare.</param> + /// <returns>Parameter val1 or val2, whichever is larger.</returns> + public static long MyMaximum(long val1, long val2) + { + return Math.Max(val1, val2); + } + } + + // register a category + RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); + + // obtain MethodInfo for our functions + Type myType = typeof(MyFunctions); + MethodInfo myUpperCaseFunc = myType.GetMethod("MyUpperCase"); + MethodInfo myMaximumIntFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(int), typeof(int) }); + MethodInfo myMaximumLongFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(long), typeof(long) }); + + // register simple function + RegisteredObjects.AddFunction(myUpperCaseFunc, "MyFuncs"); + + // register overridden functions + RegisteredObjects.AddFunction(myMaximumIntFunc, "MyFuncs,MyMaximum"); + RegisteredObjects.AddFunction(myMaximumLongFunc, "MyFuncs,MyMaximum"); + + + + - Gets obtained authorization code. + Finds the registered object's info. + The type of object to find. + The object's info. + This method can be used to disable some objects, for example: + RegisteredObjects.FindObject(typeof(PDFExport)).Enabled = false; + - - - - + - Required designer variable. + Register and override the method with method name in the type. + For property use the property name and _Get or _Set suffix. + Type for registering method + Name of method fir registering + Method for registering - + - Clean up any resources being used. + Gets the method or null if method is not found - true if managed resources should be disposed; otherwise, false. + Type for method finding + Name for method finfing + Use True value for inheritance the method from base type, use false for get the method only from the this type + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Used to get localized values from the language resource file. + + The resource file used by default is english. To load another locale, call + the method. It should be done at application start + before you use any FastReport classes. + - + - Represents the information about SkyDrive application. + Gets the standard images used in FastReport as an ImageList. + ImageList object that contains standard images. + + FastReport contains about 240 truecolor images of 16x16 size that are stored in one + big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + - + - Gets or sets the client name. + Gets an image with specified index. + Image index (zero-based). + The image with specified index. + + FastReport contains about 240 truecolor images of 16x16 size that are stored in one + big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + - + - Gets or sets the client ID. + Gets an image with specified index and converts it to Icon. + Image index (zero-based). + The Icon object. - + - Gets or sets the client secret. + Gets or set the folder that contains localization files (*.frl). - + - Initializes a new instance of the class. + Returns the current UI locale name, for example "en". - The client name. - The client ID. - The client secret. - + - Represents the Client Info diabolg form. + Loads the locale from a file. + The name of the file that contains localized strings. - + - Gets the client ID. + Loads the locale from a stream. + The stream that contains localized strings. - + - Gets the client secret. + Loads the english locale. - + - Initializes a new instance of the class. + Gets a string with specified ID. + The resource ID. + The localized string. + + Since the locale file is xml-based, it may contain several xml node levels. For example, + the file contains the following items: + + <Objects> + <Report Text="Report"/> + <Bands Text="Bands"> + <ReportTitle Text="Report Title"/> + </Bands> + </Objects> + + To get the localized "ReportTitle" value, you should pass the following ID + to this method: "Objects,Bands,ReportTitle". + - - - - + - Required designer variable. + Get builtin string. + + - + - Clean up any resources being used. + Replaces the specified locale string with the new value. - true if managed resources should be disposed; otherwise, false. + Comma-separated path to the existing locale string. + The new string. + + Use this method if you want to replace some existing locale value with the new one. + + + + Res.Set("Messages,SaveChanges", "My text that will appear when you close the designer"); + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Tries to get a string with specified ID. + The resource ID. + The localized value, if specified ID exists; otherwise, the ID itself. - + - Represents form of SkyDrive storage client. + Tries to get builtin string with specified ID. + + - + - Initializes a new instance of the class. + Checks if specified ID exists. - The SkyDrive client info. - The report template. - - - + The resource ID. + true if specified ID exists. - + - Required designer variable. + Resource loader class. - + - Clean up any resources being used. + Gets a bitmap from specified assembly resource. - true if managed resources should be disposed; otherwise, false. + Assembly name. + Resource name. + Bitmap object. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets a bitmap from specified FastReport assembly resource. + Resource name. + Bitmap object. - + - SkyDrive cloud storage client. + Gets a cursor from specified assembly resource. + Assembly name. + Resource name. + Cursor object. - + - Gets or sets the client info. + Gets a cursor from specified FastReport assembly resource. + Resource name. + Cursor object. - + - Gets or sets the authorization code. + Gets an icon from specified assembly resource. + Assembly name. + Resource name. + Icon object. - + - Gets or sets the access token. + Gets an icon from specified FastReport assembly resource. + Resource name. + Icon object. - + - Initializes a new instance of the class. + Gets a stream from specified assembly resource. + Assembly name. + Resource name. + Stream object. - + - Initializes a new instance of the class. + Gets a stream from FastReport assembly resource. - The client info. + Resource name. + Stream object. - + - Gets the authorization URL. + Gets a stream from specified assembly resource and unpacks it. - The authorization URL string. + Assembly name. + Resource name. + Stream object. - + - Gets the access token. + Gets a stream from specified FastReport assembly resource and unpacks it. - The access token value. - - - + Resource name. + Stream object. - + - Represents the base form for cloud storage web browsers. + The style of FastReport user interface. - + - Gets or sets the url string. + Specifies the Microsoft Office 2003 style (blue). - + - Initizlizes a new instance of the class. + Specifies the Microsoft Office 2007 style (blue). - + - Initializes a new instance of the class. + Specifies the Microsoft Office 2007 style (silver). - The url string. - + - Handle the web browser form shown event. + Specifies the Microsoft Office 2007 style (black). - The event sender. - The event args. - + - Required designer variable. + Specifies the Office 2010 (Blue) style. - + - Clean up any resources being used. + Specifies the Office 2010 (Silver) style. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Specifies the Office 2010 (Black) style. - + - The web browser component. + Specifies the Office 2013 style. - + - Represents an HTTP request method. + Specifies the Microsoft Visual Studio 2005 style. - + - GET request method. + Specifies the Visual Studio 2010 style. - + - POST request method. + Specifies the Visual Studio 2012 (Light) style. - + - PUT request method. + Specifies the Microsoft Vista style (black). - + - Static class that contains HTTP utilities. + Contains conversion methods between FastReport's UIStyle to various enums. - + - Encodes the URL string. + Contains visual style names. - The URL string. - The encoded URL string. - + - Encodes the dictionary with URL parameters. + Converts FastReport's UIStyle to eDotNetBarStyle. - The dictionary with parameters. - The encoded string. + Style to convert. + Value of eDotNetBarStyle type. - + - Decodes the URL string. + Converts FastReport's UIStyle to eTabStripStyle. - The URL string. - The decoded URL string. + Style to convert. + Value of eTabStripStyle type. - + - Represents the consumer. + Converts FastReport's UIStyle to eTabStripStyle. + Style to convert. + Value of eTabStripStyle type. - + - Gets the consumer key. + Converts FastReport's UIStyle to eOffice2007ColorScheme. + Style to convert. + Value of eOffice2007ColorScheme type. - + - Gest the consumer secret. + Converts FastReport's UIStyle to eColorSchemeStyle. + Style to convert. + Value of eColorSchemeStyle type. - + - Gets the consumer's signature method. + Returns app workspace color for the given style. + UI style. + The color. - + - Initializes a new instance of the class. + Returns control color for the given style. - The consumer key. - The consumer secret. + UI style. + The color. - + - Represents parser for parse OAuth responses. + Contains methods to call common editors. + + Use this class if you are writing a new component for FastReport. + - + - Parses token information in stream. + Invokes the expression editor. - The stream for parse. - The OAuth token. + A reference to the report. + The expression to edit. + The new expression. - + - Parses token information in stream for SkyDrive. + Invokes the border editor. - The stream for parse. - The SkyDrive access token. + The Border to edit. + The new border. - + - Parses token information in stream for Google Drive. + Invokes the data band columns editor. - The stream for parse. - The Google Drive access token. + The data band columns to edit. + - + - Parses token information in stream for FastCloud. + Invokes the fill editor. - The stream for parse. - The FastCloud access token. + The fill to edit. + The new fill. - + - Represents the service provider. + Invokes the outline editor. + The outline to edit. + The new outline. - + - Gets the request token URL. + Provides the message functions. - + - Gets the user authorization URL. + Shows the Message Box with error message. + - + - Gets the callback URL. + Shows Message Box with confirmation. + + + - + - Gets the access token URL. + Shows information Message Box. + - + - Initializes a new instance of the class with a specified parameters. + The profiler. - The request token URL. - The user authorization URL. - The callback URL. - The access token URL. - + - Represents the OAuth token credentials. + Starts the profiler. - + - Gets the token key. + Finishes the profiler and displays results. - + - Gets the token secret. + Base class for plugin's assembly initializer. + + FastReport has an open architecture. That means you can extend it with own classes + such as report objects, wizards, export filters. Usually such classes are + placed in separate dlls (plugins). FastReport has mechanism to load plugin dlls. You can specify + which plugins to load at first start, in the FastReport configuration file (by default it is located in the + C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\FastReport.config file). + To do this, add an xml item with your plugin name inside the <Plugins> item: + + <?xml version="1.0" encoding="utf-8"?> + <Config> + <Plugins> + <Plugin Name="c:\Program Files\MyProgram\MyPlugin.dll"/> + </Plugins> + </Config> + + When you run your application and use the Report object first time, all plugins will be loaded. + To register objects contained in a plugin, FastReport searches for classes of type + AssemblyInitializerBase and instantiates them. + Use this class to register custom report objects, controls, wizards, exports that + are contained in the assembly. To do this, make your own class of the AssemblyInitializerBase + type and override its default constructor. In the constructor, call RegisteredObjects.Add + methods to register all necessary items. + - + - Initializes a new instance of the class. + Registers plugins contained in this assembly. - The token key. - The token secret. + + This constructor is called automatically when the assembly is loaded. + + This example show how to create own assembly initializer to register own items. + + public class MyAssemblyInitializer : AssemblyInitializerBase + { + public MyAssemblyInitializer() + { + // register own wizard + RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); + // register own export filter + RegisteredObjects.AddExport(typeof(MyExport), "My Export"); + // register own report object + RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); + } + } + + - + - Represents the user. + Source of image, only for inline img tag - + - API for OAuth protocol. + Class for ACMYK color conversions - + - Builds signed URL. + Alpha transparency 0..255 - The base token URL. - The HTTP method. - The consumer context. - The request token. - Signed URL. - + - Represents the signature method. + Cyan 0..100 - + - Signature method PLAINTEXT. + Magenta 0..100 - + - Signature method HMAC-SHA1. + Yellow 0..100 - + - Signature method RSA-SHA1. + Black 0..100 - + - Represents proxy settings of the cloud storage. + Returns ACMYK as string. + - + - Gets or sets the type of proxy. + Gets CMYKA from string. + - + - Gets or sets the proxy server. + Converts Color value to ACMYK + - + - Gets or sets the port number of proxy server. + Converts separate ARGB values in ACMYK + + + + - + - Gets or sets the username. + Returns ARGB color value + - + - Gets or sets the user's password. + Creates CMYKColor from ARGB values + + + + - + - Initializes a new instance of the class. + Creates CMYKColor from ACMYK values - The type of proxy. - The proxy server. - The port number of server. - The username. - The user's password. + + + + + - + - Represents the type of rpoxy. + Creates CMYKColor from string (comma separated values) + - + - The HTTP proxy type. + Creates CMYKColor from Color value + - + - The SOCKS4 proxy type. + Color Utilities - + - The SOCKS5 proxy type. + Return true for CMYK Jpeg image + + - + - Provides utils for the web request. + Contains methods that peform string to object and vice versa conversions. - + - Sets proxy settings for web request. + Converts an object to a string. - The web request. - The cloud proxy settings. + The object to convert. + The string that contains the converted value. - + - Represents the parameter of http request. + Converts a value to a string using the specified converter. + The object to convert. + The type of converter. + The string that contains the converted value. - + - Gets the name of a request parameter. + Converts a string value to the specified data type. + The data type to convert to. + The string to convert from. + The object of type specified in the type parameter that contains + a converted value. - + - Gets the value of a request parameter. + Converts a string to an object using the specified converter. + The string to convert. + The type of converter. + The object that contains the converted value. - + - Initializes a naw instance of the class with a specified parameters. + Converts a string containing special symbols to the xml-compatible string. - The name of a request parameter. - The value of a request paramter. + The string to convert. + The result string. + + This method replaces some special symbols like <, > into xml-compatible + form: &lt;, &gt;. To convert such string back to original form, use the + method. + - + - Comparer class for comparing request parameters. + Converts a string containing special symbols to the xml-compatible string. + The string to convert. + Determines whether it is necessary to convert cr-lf symbols to xml form. + The result string. - - - - + - This class is used to pass find arguments to some methods of the CodeUtils class. + Converts a value to xml-compatible string. + The value to convert. + The result string. - + - The start position of the search. After the search, this property points to - the begin of an expression. + Convert the xml-compatible string to the regular one. + The string to convert. + The result string. + + This is counterpart to the method. + - + - After the search, this property points to the end of an expression. + Decreases the precision of floating-point value. + The initial value. + The number of decimal digits in the fraction. + The value with lesser precision. - + - The char sequence used to find the expression's begin. + Converts a string value to the float. + The string value to convert. + The float value. + + Both "." or "," decimal separators are allowed. + - + - The char sequence used to find the expression's end. + Converts a string value to the float. + The string value to convert. + Indicates whether to ignore non-digit symbols. + The float value. - + - The text with embedded expressions. + Converts a string value to the float. + The string value to convert. + Decimal separator. + The float value. - + - The last found expression. + Converts a string value to the float. + The string value to convert. + Decimal separator. + Indicates whether to ignore non-digit symbols. + The float value. - + - This static class contains methods that may be used to find expressions embedded - in the object's text. + Converts the string containing several text lines to a collection of strings. + The string to convert. + The collection instance. - + - Returns expressions found in the text. + Converts a collection of strings to a string. - Text that may contain expressions. - The char sequence used to find the start of expression. - The char sequence used to find the end of expression. - Array of expressions if found; otherwise return an empty array. + The collection to convert. + The string that contains all lines from the collection. - + - Gets first expression found in the text. + Converts null value to 0, false, empty string, depending on type. - Object with find arguments. - Indicates whether to skip strings. - The expression if found; otherwise, returns an empty string. + The data type. + The value of the type data type. - + - Class that implements some object's properties such as location, size and visibility. + Converts string value to byte[]. + The string to convert + The value of the byte[] data type. - + - Corrects the object's size and sizing point if the size becomes negative. + Converts a string to NameValueCollection. - Current mouse state. - Typically you don't need to use or override this method. - This method is called by the FastReport designer to check if the object's size becomes negative - when resizing the object by the mouse. Method must correct the object's size and/or position to - make it positive, also change the sizing point if needed. + The string to convert. + The NameValueCollection that contains the name/value pairs. - + - Checks if the object is inside its parent. + Convert &amp;&Tab;&quot; etc to symbol and return result as string - if true, check now independent of any conditions. - - Typically you don't need to use or override this method. - When you move an object with the mouse, it may be moved outside its parent. If so, this method - must find a new parent for the object and correct it's Left, Top and Parent - properties. If immediately parameter is false, you can optimize the method - to search for new parent only if the object's bounds are outside parent. If this parameter is - true, you must skip any optimizations and search for a parent immediately. - + String for processing + Position for processing + Result of processing + True if successful - + - Draws the object. + Convert &amp;&Tab;&quot; etc to symbol and return result as string - Paint event args. - - This method is widely used in the FastReport. It is called each time when the object needs to draw - or print itself. - In order to draw the object correctly, you should multiply the object's bounds by the scale - parameter. - cache parameter is used to optimize the drawing speed. It holds all items such as - pens, fonts, brushes, string formats that was used before. If the item with requested parameters - exists in the cache, it will be returned (instead of create new item and then dispose it). - + String for processing + Position for processing + Append result of processing to FastString + True if successful - + - Draw the frame around the object to indicate that it accepts the drag&drop operation. + Calc the Crc32 checksum - Paint event args. - The color of frame. - + - Draw the selection points. + Caclulate Streams checksum. - Paint event args. - - This method draws a set of selection points returned by the method. - + + - - + + + Calculate byte array checksum. + + + - + - Gets the preferred size of an object. + Calculate string checksum. - Preferred size. - - This method is called by the FastReport designer when you insert a new object. - + + - + - Returns a "smart tag" menu. + Begin the checksum - - "Smart tag" is a little button that appears near the object's top-right corner when we are in the - designer and move the mouse over the object. When you click that button you will see a popup window - where you can set up some properties of the object. FastReport uses smart tags to quickly choose - the datasource (for a band) or data column (for objects). - + - + - Handles double click event in the designer. + Update the checksum - - This method is called when the user doubleclicks the object in the designer. Typical implementation - invokes the object's editor (calls the InvokeEditor method) and sets the designer's - Modified flag. - + + + + + - + - Handles the DragDrop event in the designer. + End the checksum. - Current mouse state. - - This method is called when the user drops an item from the Data Tree window into this object. - This method should copy the information from the e.DraggedObject object and set the - e.Handled flag to true to complete the drag operation. - + + - + - Handles the DragOver event in the designer. + Contains methods used to crypt/decrypt a data. - Current mouse state. - - This method is called when the user drags an item from the Data Tree window. This method should - check that the mouse (e.X, e.Y) is inside the object, then set the e.Handled flag - to true if an item can be dragged into this object. - - + - Handles KeyDown event in the designer. + Sets the password that is used to crypt connection strings stored in a report. - The designer's workspace. - Keyboard event parameters. - This method is called when the user presses any key in the designer. Typical implementation - does nothing. + See the property for more details. - + - Handles MouseDown event that occurs when the user clicks the mouse in the designer. + Crypts a stream using specified password. + The destination stream that will receive the crypted data. + The password. + The stream that you need to write to. - This method is called when the user press the mouse button in the designer. - The standard implementation does the following: - - checks if the mouse pointer is inside the object; - add an object to the selected objects list of the designer; - sets the e.Handled flag to true. - + Pass the stream you need to write to, to the dest parameter. Write your data to the + stream that this method returns. When you close this stream, the dest stream will be + closed too and contains the crypted data. - Current mouse state. - + - Handles MouseMove event that occurs when the user moves the mouse in the designer. + Decrypts a stream using specified password. + Stream that contains crypted data. + The password. + The stream that contains decrypted data. - This method is called when the user moves the mouse in the designer. Typical - use of this method is to change the mouse cursor to SizeAll when it is over - an object. The standard implementation does the following: - - checks if the mouse pointer is inside the object; - changes the cursor shape (e.Cursor property); - sets the e.Handled flag to true. - + You should read from the stream that this method returns. - Current mouse state. - + - Handles MouseMove event that occurs when the user moves the mouse in the designer. + Checks if the stream contains a crypt signature. - - This method is called when the user moves the mouse in the designer. The - standard implementation does the following: - - - if mouse button is not pressed, check that mouse pointer is inside one of - the selection points returned by the - method and set the e.SizingPoint member to the corresponding sizing - point; - - if mouse button is pressed, and e.SizingPoint member is not - SizingPoint.None, resize the object. - - - Current mouse state. + Stream to check. + true if stream is crypted. - + - Handles MouseUp event that occurs when the user releases the mouse button in the designer. + Encrypts the string using the default password. + String to encrypt. + The encrypted string. - This method is called when the user releases the mouse button in the - designer. The standard implementation does the following: - - if e.Mode is WorkspaceMode2.SelectionRect, checks if object - is inside the selection rectangle and sets e.Handled flag if so; - - checks that object is inside its parent (calls the - method). - - + The password used to encrypt a string can be set via property. + You also may use the method if you want to + specify another password. - Current mouse state. - + - Handles mouse wheel event. + Encrypts the string using specified password. - Current mouse state. + String to encrypt. + The password. + The encrypted string. - + - Checks if given point is inside the object's bounds. + Decrypts the string using the default password. - point to check. - true if point is inside the object's bounds. + String to decrypt. + The decrypted string. - You can override this method if your objectis not of rectangular form. + The password used to decrypt a string can be set via property. + You also may use the method if you want to + specify another password. - + - Draws the selection point. + Decrypts the string using specified password. - Paint event args. - object. - object. - Left coordinate. - Top coordinate. + String to decrypt. + The password. + The decrypted string. - + - Gets the object's selection points. + Computes hash of specified stream. Initial position in stream will be saved. - Array of objects. - - Selection point is a small square displayed at the object's sides when object is selected - in the designer. You can drag this square by the mouse to change the object's size. For example, - the TextObject has eight selection points to change its width and height by the mouse. - If you are developing a new component for FastReport, you may override this method - if your object has non-standard set of selection points. For example, if an object has something like - "AutoSize" property, it would be good to disable all selection points if that property is true, - to disable resizing of the object by the mouse. - + Initial stream + - + - Gets a value indicating that given point is inside selection point. + Computes hash of specified array. - point's x coordinate. - point's y coordinate. - selection point. - true if (x,y) is inside the point + Initial array + - + - Gets the absolute bottom coordinate of the object. + Computes hash of specified array. + Initial array + - + - Gets the absolute bounding rectangle of the object. + MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. + It was created by Austin Appleby in 2008 and is currently hosted on Github along with its test suite named 'SMHasher'. + It also exists in a number of variants, all of which have been released into the public domain. + The name comes from two basic operations, multiply (MU) and rotate (R), used in its inner loop. + https://en.wikipedia.org/wiki/MurmurHash + Implementation of Murmur3 Hash by Adam Horvath + http://blog.teamleadnet.com/2012/08/murmurhash3-ultra-fast-hash-algorithm.html - + - Gets the absolute left coordinate of the object. + READ_SIZE - + - Gets the absolute right coordinate of the object. + ComputeHash function + + - + - Gets the absolute top coordinate of the object. + Gets the Hash - + - Gets or sets the edges of the container to which a control is bound and determines how a control - is resized with its parent. + Used to draw a text with non-standard angle or justification. - - Use the Anchor property to define how a control is automatically resized as its parent control - is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the - same position relative to the edges of the parent control when the parent control is resized. - You can anchor a control to one or more edges of its container. For example, if you have a band - with a TextObject whose Anchor property value is set to Top, Bottom, the TextObject is stretched to - maintain the anchored distance to the top and bottom edges of the band as the height of the band - is increased. - - + - Gets the bottom coordinate of the object in relation to its container. + Draws a string. - - To change the bottom coordinate, change the and/or properties. - + String to draw. + Graphics object to draw on. + Font that used to draw text. + Brush that determines the color and texture of the drawn text. + RectangleF structure that specifies the location of the drawn text. + StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. + Horizontal alignment of the text. + Width ratio of the font used to draw a string. + Line height, in pixels. + Angle of the text, in degrees. + Indicates whther to draw string close to the printout. + Force justify for the last line. - + - Gets or sets the bounding rectangle of the object. + Initializes a new instance of the DrawText class with default settings. - - Assigning a value to this property is equal to assigning values to the , - , , properties. - - + - Gets or sets the size of client area of the object. + The exception that is thrown when the user tried to set object's name that is already exists. - - This property is used in the class. - - + - Gets or sets which control borders are docked to its parent control and determines how a control - is resized with its parent. + The exception that is thrown when the user tried to rename an object that is introduced in the ancestor report. - - Use the Dock property to define how a control is automatically resized as its parent control is - resized. For example, setting Dock to DockStyle.Left causes the control to align itself with the - left edges of its parent control and to resize as the parent control is resized. - A control can be docked to one edge of its parent container or can be docked to all edges and - fill the parent container. - - + - Gets or sets a group index. + The exception that is thrown when loading bad formed xml report file. - - Group index is used to group objects in the designer (using "Group" button). When you select - any object in a group, entire group becomes selected. To reset a group, set the GroupIndex - to 0 (default value). - - + - Gets or sets the height of the object. + The exception that is thrown when loading an encrypted report with wrong password. - - This property value is measured in the screen pixels. Use class to - convert a value to desired units. - - The following example demonstrates how to convert between pixels and units: - TextObject text1; - // set Height to 10mm - text1.Height = Units.Millimeters * 10; - // convert a value to millimeters - MessageBox.Show("Height = " + (text1.Height / Units.Millimeters).ToString() + "mm"); - - + - Gets or sets the left coordinate of the object in relation to its container. + The exception that is thrown if there is an error in the report's script code. - - - This property value is measured in the screen pixels. Use - class to convert a value to desired units. - - - To obtain absolute coordinate, use property. - - - The following example demonstrates how to convert between pixels and units: - TextObject text1; - // set Left to 10mm - text1.Left = Units.Millimeters * 10; - // convert a value to millimeters - MessageBox.Show("Left = " + (text1.Left / Units.Millimeters).ToString() + "mm"); - - + - Gets the right coordinate of the object in relation to its container. + The exception that is thrown when trying to set an object's Parent property to + an object that not accepts children of this type. - - To change the right coordinate, change the and/or properties. - - + - Gets or sets the Tag string for this component. + The exception that is thrown when trying to load a report file that contains reference to an + unknown object type. - + - Gets or sets the top coordinate of the object in relation to its container. + The exception that is thrown when initializing a table datasource which + TableName or Alias is not set properly. - - - This property value is measured in the screen pixels. Use - class to convert a value to desired units. - - - To obtain absolute coordinate, use property. - - - The following example demonstrates how to convert between pixels and units: - TextObject text1; - // set Top to 10mm - text1.Top = Units.Millimeters * 10; - // convert a value to millimeters - MessageBox.Show("Top = " + (text1.Top / Units.Millimeters).ToString() + "mm"); - - + - Gets or sets a value indicating whether the object is displayed in the preview window. + The exception that is thrown when trying to access a row of a datasource that is not initialized yet. - - Setting this property to false will hide the object in the preview window. - - The following report script will control the Text1 visibility depending on the value of the - data column: - private void Data1_BeforePrint(object sender, EventArgs e) - { - Text1.Visible = [Orders.Shipped] == true; - } - - + - Gets or sets the width of the object. + The exception that is thrown if an error occurs in the TableObject.ManualBuild event. - - This property value is measured in the screen pixels. Use class to - convert a value to desired units. - - The following example demonstrates how to convert between pixels and units: - TextObject text1; - // set Width to 10mm - text1.Width = Units.Millimeters * 10; - // convert a value to millimeters - MessageBox.Show("Width = " + (text1.Width / Units.Millimeters).ToString() + "mm"); - - + - Initializes a new instance of the class with default settings. + The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. - - - - - - - + - TreeView control with multiselect support. + The exception that is thrown if a report object's Name property is set to wrong value. - - This control is for internal use only. - - + - Creates a new instance of the TreeViewMultiSelect control. + The exception that is thrown if an unknown value is supplied to some methods dealing with totals, variables etc. - + - Gets a copy of list of selected nodes. + throws this exception if an error occurs in the SaveReport method. + See inner exception for detailed information. - - - - - - - - - - - - - - - - + - Represents the combobox used to select a data column. + The exception that is thrown when the Group Header has no group condition. - + - Occurs when the text portion of the combobox is changed. + The helper class used to create unique component names using the fastest method. + + Note: you can create unique component's name using its CreateUniqueName method. + However, it is very slow and can't be used in some situations (when you create a report + layout in a code and have a lot of objects on a page). + + This example demonstrates how to use this class. + + FastNameCreator nameCreator = new FastNameCreator(Report.AllObjects); + foreach (Base c in Report.AllObjects) + { + if (c.Name == "") + nameCreator.CreateUniqueName(c); + } + + - - - - + - Gets or sets the data source. + Creates the unique name for the given object. + The object to create name for. - + - Gets or sets the Report. + Initializes a new instance of the FastNameCreator class with collection of + existing report objects. + The collection of existing report objects. - - - - - - - - - - - - - + - Initializes a new instance of the class. + Fast alternative of StringBuilder. - + - Specifies how text in a is horizontally aligned. + Gets the Length of string. - + - The text is aligned to the left. + Gets or sets the chars of string. + + Char value - + - The text is aligned to the right. + Gets StringBuilder - + - The text is aligned in the center. + Initialize the new array for chars. + Length of initial array. - + - The text is justified. + Checks the empty array. + True if string is empty. - + - Gets or sets the alignment to apply to the current - selection or insertion point. + Converts the array in string. - - Replaces the SelectionAlignment from . - + String value. - + - Convert between screen pixels and twips (1/1440 inch, used by Win32 API calls) + Clears the string. - Value in screen pixels - Value in twips + FastString object. - + - Convert between screen pixels and twips (1/1440 inch, used by Win32 API calls) + Appends the string by string value. - Value in twips - Value in screen pixels + String value. + FastString object. - + - Calculate or render the contents of RichTextBox for printing + Appends the string by string value. - Graphics object - Graphics object to measure richtext for - Bonding rectangle of the RichTextBox - Index of first character to be printed - Index of last character to be printed - If true, only the calculation is performed, - otherwise the text is rendered as well - (Index of last character that fitted on the page) + 1 + String value. + FastString object. - + - Calculate or render the contents of RichTextBox for printing + Append formatted string. - Graphics object - Graphics object to measure richtext for - Bonding rectangle of the RichTextBox - Index of first character to be printed - Index of last character to be printed - If true, only the calculation is performed, - otherwise the text is rendered as well - The calculated text height - (Index of last character that fitted on the page) + 1 + + + - + - This is an internal enum that represents the selected datatree item type. + Appends new line. + FastString object. - + - Nothing selected. + Appends the string by char value. + Char value. + FastString object. - + - Data column selected. + Appends the another FastString object. + FastString object. + FastString object. - + - Total selected. + Appends the string by object data. + Object value. + FastString object. - + - Parameter selected. + Copies the substring in char array. + Start index in source. + Destination array. + Destination index. + Count of chars - + - Function selected. + Removes substring. + Start index of removed string. + Length of removed string. + FastString object. - + - Dialog control selected. + Inserts string. + Start index in existing string. + Value of inserting string. + FastString object. - + - This is an internal control that represents the data tree. + Replacing the substring on other. - - This control is for internal use only. - + Old string value. + New string value. + FastString object. - + - DataSource property + Index of substring. + Substring for search. + Sarting position for search. + Position of substring. - + - SelectedItem property + Compare of substring in position. + Starting index for comparsion. + Value for compare. + True if substring is identical in position. - + - SelectedItemType property + Returns the substring. + Starting index. + Length of substring. + Substring. - + - + Creates the new FastString object with initial capacity. + Initial capacity. - + - + Creates the new FastString object with default capacity. - + - + Creates the new FastString object from initial string. + - + - + Represents a collection of float values. - + - + Gets or sets the value at the specified index. + Index of a value. + The value at the specified index. - + - + Adds the specified values to the end of this collection. + - + - + Adds a value to the end of this collection. + Value to add. + Index of the added value. - + - + Inserts a value into this collection at the specified index. + The zero-based index at which value should be inserted. + The value to insert. - + - + Removes the specified value from the collection. + Value to remove. - + - + Returns the zero-based index of the first occurrence of a value. + The value to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - + Determines whether a value is in the collection. + The value to locate in the collection. + true if value is found in the collection; otherwise, false. - + - + Copies values from another collection. + Collection to copy from. - + - + Represents a collection of FastReport base objects. - - + - Creates a new instance of the DataTreeView control. + Gets an owner of this collection. - + - Represents a control that may contain several pages. It is similar to the TabControl - but contains no tabs. This control is widely used in wizards. + Adds the specified elements to the end of this collection. + Range of elements. - + - Occurs when page is selected. + Adds the specified elements to the end of this collection. + Collection of elements. - + - Gets or sets a value that determines whether the selector area is visible or not. + Adds an object to the end of this collection. + Object to add. + Index of the added object. - + - Gets or sets the height of selector tab. + Inserts an object into this collection at the specified index. + The zero-based index at which value should be inserted. + The object to insert. - + - This property is not relevant to this class + Removes the specified object from the collection. + Object to remove. - + - Gets or sets the active page. + Returns the zero-based index of the first occurrence of an object. + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - Gets or sets the index of active page. + Determines whether an element is in the collection. + The object to locate in the collection. + true if object is found in the collection; otherwise, false. - + - Gets or sets the highlighted page index. + Returns an array of collection items. + - + - Gets the collection of pages. + Determines whether two collections are equal. + The collection to compare with. + true if collections are equal; false otherwise. - - + + + Copies the content to another collection. + + The collection to copy to. - + - + - + - + - Gets tab at specified mouse point. + Initializes a new instance of the FRCollectionBase class with default settings. - The mouse point. - Index of tab under mouse; -1 if mouse is outside tab area. - + - Selects the next page. + Initializes a new instance of the FRCollectionBase class with specified owner. + The owner of this collection. - + - Selects the previous page. + Specifies the main mode of the designer's workspace. - + - Initializes a new instance of the class with default settings. + Specifies selection mode. - + - This class represents a single page of the control. + Specifies insertion mode. - + - Gets or sets the page caption text. + Specifies drag-drop mode. - + - Represents the control that combines a textbox and a button. + Specifies the additional mode of the designer's workspace. - + - Occurs when the textbox is changed. + Specifies default mode. - + - Occurs when the button is clicked. + Indicates that user moves the selected objects. - - - - + - Gets or sets the button's image. + Indicates that user resizes the selected objects. - - - - - - - - - - + - Initializes a new instance of the class. + Indicates that user draw the selection rectangle. - + - Represents a combobox that allows to choose a color. + Specifies a custom mode handled by the object. - - This control may be useful if you write own components for FastReport. - - + - This event is raised when you select a color. + Provides a data for mouse events. - + - Gets or sets the selected color. + The X mouse coordinate. - + - Gets or sets value indicating whether it is necessary to show a color name in a combobox. + The Y mouse coordinate. - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Current state of mouse buttons. - + - Represents a drop-down control that allows to choose a color. + Current keyboard state. - - This control may be useful if you write own components for FastReport. - - + - This event is raised when you select a color. + Indicates that current object was handled the mouse message. - + - Gets or sets the selected color. + The delta of the mouse movement. - + - Initializes a new instance of the class with default settings. + The mouse wheel delta. - + - Represents a popup window that alows to choose a color. + Current cursor shape. - - This control may be useful if you write own components for FastReport. - - + - This event is raised when you select a color. + Additional mode of the designer's workspace. - + - Gets or sets the selected color. + Current sizing point if Mode is set to Size. - + - Initializes a new instance of the class with default settings. + Current selection rectangle if mode is set to SelectionRect. - The main form that owns this popup control. - + - Represents the label with line. + Active object that handles the mouse event. - - - - + - Initializes a new instance of the class. + The source object of drag-drop operation. - + - Represents a popup form. + Multiple sources objects of drag-drop operation. - - Use this form if you want to show some controls in non-modal borderless form that - behaves like other standard popup controls such as context menu. This form does not - move a focus from the parent form. - - + - Shows the form. + The target object of drag-drop operation. - The control which location is used as a reference for pt parameter. - The location relative to the ctl control. - + - Shows the form. + The message to show when drag source is over the object. - The control which location is used as a reference for x, y parameters. - The x position relative to the ctl control. - The y position relative to the ctl control. - + - Shows the form. + Additional data supplied and handled by report objects. - The absolute screen location. - + - Initializes a new instance of the class with default settings. + Specifies the sizing point used to resize an object by mouse. - The main form that owns this popup form. - + - Handler which allows to prevent canceling of popup window + No sizing point. - Popup helper - Event arguments - + - Contains event information for a PopupClosed event. + Specifies left-top sizing point. - + - The popup form. + Specifies left-bottom sizing point. - + - Gets the popup form which is being closed. + Specifies right-top sizing point. - + - Constructs a new instance of this class for the specified - popup form. + Specifies right-bottom sizing point. - Popup Form which is being closed. - + - Arguments to a PopupCancelEvent. Provides a - reference to the popup form that is to be closed and - allows the operation to be cancelled. + Specifies top-center sizing point. - + - Whether to cancel the operation + Specifies bottom-center sizing point. - + - Mouse down location + Specifies left-center sizing point. - + - Popup form. + Specifies right-center sizing point. - + - Constructs a new instance of this class. + Specifies a selection point used to resize an object. - The popup form - The mouse location, if any, where the - mouse event that would cancel the popup occured. - + - Gets the popup form + The X coordinate of the point. - + - Gets the location that the mouse down which would cancel this - popup occurred + The Y coordinate of the point. - + - Gets/sets whether to cancel closing the form. Set to - true to prevent the popup from being closed. + The size mode. - + - Represents the method which responds to a PopupClosed event. + Initializes a new instance of the SelectionPoint class with specified location and size mode. + The X coordinate. + The Y coordinate. + Size mode. - + - Represents the method which responds to a PopupCancel event. + Provides a data for paint event. - + - A class to assist in creating popup windows like Combo Box drop-downs and Menus. - This class includes functionality to keep the title bar of the popup owner form - active whilst the popup is displayed, and to automatically cancel the popup - whenever the user clicks outside the popup window or shifts focus to another - application. + Gets a Graphics object to draw on. - + - Event Handler to detect when the popup window is closed + Gets the X scale factor. - + - Message filter to detect mouse clicks anywhere in the application - whilst the popup window is being displayed. + Gets the Y scale factor. - + - The popup form that is being shown. + Gets the cache that contains graphics objects. - + - The owner of the popup form that is being shown: + Initializes a new instance of the FRPaintEventArgs class with specified settings. + Graphics object to draw on. + X scale factor. + Y scale factor. + Cache that contains graphics objects. - + - Whether the popup is showing or not. + The reader used to deserialize object's properties from a report file. - + - Whether the popup has been cancelled, notified by PopupCancel, - rather than closed. + Gets a string that contains errors occured during the load. - + - Raised when the popup form is closed. + Gets the current item name. - + - Raised when the Popup Window is about to be cancelled. The - property can be - set to true to prevent the form from being cancelled. + Gets or sets a value indicating whther is necessary to read the object's children. - + - Shows the specified Form as a popup window, keeping the - Owner's title bar active and preparing to cancel the popup - should the user click anywhere outside the popup window. - Typical code to use this message is as follows: - - frmPopup popup = new frmPopup(); - Point location = this.PointToScreen(new Point(button1.Left, button1.Bottom)); - popupHelper.ShowPopup(this, popup, location); - - Put as much initialisation code as possible - into the popup form's constructor, rather than the System.Windows.Forms.Load - event as this will improve visual appearance. + Returns Root element for this reader - Main form which owns the popup - Window to show as a popup - Location relative to the screen to show the popup at. - + - Responds to the - event from the popup form. + Gets or sets target of serialization. - Popup form that has been closed. - Not used. - + - Subclasses the owning form's existing Window Procedure to enables the - title bar to remain active when a popup is show, and to detect if - the user clicks onto another application whilst the popup is visible. + Reads the specified object. - Window Procedure Message + The object to read. + + The object must implement the interface. This method + invokes the Deserialize method of the object. + + This example demonstrates the use of ReadProperties, ReadChildren, + NextItem, Read methods. + + public void Deserialize(FRReader reader) + { + // read simple properties like "Text", complex properties like "Border.Lines" + reader.ReadProperties(this); + + // moves the current reader item + while (reader.NextItem()) + { + // read the "Styles" collection + if (String.Compare(reader.ItemName, "Styles", true) == 0) + reader.Read(Styles); + else if (reader.ReadChildren) + { + // if read of children is enabled, read them + Base obj = reader.Read(); + if (obj != null) + obj.Parent = this; + } + } + } + + - + - Called when the popup is being hidden. + Reads an object from current xml node. + The object. + + This method creates an instance of object described by the current xml node, then invokes + its Deserialize method. + + This example demonstrates the use of ReadProperties, ReadChildren, + NextItem, Read methods. + + public void Deserialize(FRReader reader) + { + // read simple properties like "Text", complex properties like "Border.Lines" + reader.ReadProperties(this); + + // moves the current reader item + while (reader.NextItem()) + { + // read the "Styles" collection + if (String.Compare(reader.ItemName, "Styles", true) == 0) + reader.Read(Styles); + else if (reader.ReadChildren) + { + // if read of children is enabled, read them + Base obj = reader.Read(); + if (obj != null) + obj.Parent = this; + } + } + } + + - + - Raises the event. + Reads properties of specified object. - describing the - popup form that is being closed. + The object to read. + + This method reads simple properties like "Text", "Border.Lines" etc. for specified object. + To read nested properties like collections, you should override the + method of an object. + + This example demonstrates the use of ReadProperties, ReadChildren, + NextItem, Read methods. + + public void Deserialize(FRReader reader) + { + // read simple properties like "Text", complex properties like "Border.Lines" + reader.ReadProperties(this); + + // moves the current reader item + while (reader.NextItem()) + { + // read the "Styles" collection + if (String.Compare(reader.ItemName, "Styles", true) == 0) + reader.Read(Styles); + else if (reader.ReadChildren) + { + // if read of children is enabled, read them + Base obj = reader.Read(); + if (obj != null) + obj.Parent = this; + } + } + } + + - + - Raises the event. + Moves the current xml item. - describing the - popup form that about to be cancelled. + false if there is no more items to move on; true otherwise. + + This method is used to read child objects. + + This example demonstrates the use of ReadProperties, ReadChildren, + NextItem, Read methods. + + public void Deserialize(FRReader reader) + { + // read simple properties like "Text", complex properties like "Border.Lines" + reader.ReadProperties(this); + + // moves the current reader item + while (reader.NextItem()) + { + // read the "Styles" collection + if (String.Compare(reader.ItemName, "Styles", true) == 0) + reader.Read(Styles); + else if (reader.ReadChildren) + { + // if read of children is enabled, read them + Base obj = reader.Read(); + if (obj != null) + obj.Parent = this; + } + } + } + + - + - Default constructor. + Checks if current item has specified property. - Use the - method to attach this class to the form you want to show popups from. + The property name to check. + true if current item has specified property. - + - A Message Loop filter which detect mouse events whilst the popup form is shown - and notifies the owning class when a mouse - click outside the popup occurs. + Reads the string property. + Name of property. + Property value. - + - Raised when the Popup Window is about to be cancelled. The - property can be - set to true to prevent the form from being cancelled. + Reads the boolean property. + Name of property. + Property value. - + - The popup form + Reads the integer property. + Name of property. + Property value. - + - The owning object. + Reads the float property. + Name of property. + Property value. - + - Constructs a new instance of this class and sets the owning - object. + Reads the double property. - The object - which owns this class. + Name of property. + Property value. - + - Gets/sets the popup form which is being displayed. + Reads the enum property. + Name of property. + Type of property. + Property value. - + - Checks the message loop for mouse messages whilst the popup - window is displayed. If one is detected the position is - checked to see if it is outside the form, and the owner - is notified if so. + Reads the standalone property value. - Windows Message about to be processed by the - message loop - true to filter the message, false otherwise. - This implementation always returns false. + Property value. - + - Checks the mouse location and calls the OnCancelPopup method - if the mouse is outside the popup form. + Disposes the reader, fixups the property references. - + - Raises the event. + Loads the xml items from a stream. - The associated - with the cancel event. + The stream to load from. - + - + Initializes a new instance of the FRReader class with specified report. + Reference to a report. - + - + Initializes a new instance of the FRReader class with specified report and xml item with + contents to read. + Reference to a report. + Xml item with contents to read. - + - + Specifies the target for the serialize operation. - + - + Serialize to the report file. - + - + Serialize to the preview pages. - + - + Serialize to the source pages of a preview. - + - + Serialize to the designer's clipboard. - + - + Serialize to the designer's undo/redo buffer. - + - + The writer used to serialize object's properties to a report file. - + - + Gets or sets current xml item name. - - - + - Represents interface of the source for object. + Gets or sets target of serialization. - + - + Gets the ethalon object to compare with. - + - + Gets or sets a value that determines whether is necessary to serialize child objects. - + - + Gets or sets a value that determines whether is necessary to add xml header. - + - + Serializes the specified object. + The object to serialize. + + The object must implement the interface. This method + invokes the Serialize method of the object. + + This example demonstrates the use of writer. + + public void Serialize(FRWriter writer) + { + // get the etalon object. It will be used to write changed properties only. + Base c = writer.DiffObject as Base; + + // write the type name + writer.ItemName = ClassName; + + // write properties + if (Name != "") + writer.WriteStr("Name", Name); + if (Restrictions != c.Restrictions) + writer.WriteValue("Restrictions", Restrictions); + + // write child objects if allowed + if (writer.SaveChildren) + { + foreach (Base child in ChildObjects) + { + writer.Write(child); + } + } + } + + - + - + Serializes the object using specified etalon. + The object to serialize. + The etalon object. - + - + Writes a string property. + Property name. + Property value. - + - + Writes a boolean property. + Property name. + Property value. - + - + Writes an integer property. + Property name. + Property value. - + - + Writes a float property. + Property name. + Property value. - + - + Writes a double property. + Property name. + Property value. - + - + Writes an enumeration property. + Property name. + Property value. - + - + Writes an object reference property. + Property name. + Property value. - + - + Writes a standalone property value. + Name of property. + Property value. + + This method produces the following output: + <PropertyName>PropertyValue</PropertyName> + - + - + Determines if two objects are equal. + The first object. + The second object. + true if objects will be serialized to the same value. - + - + Disposes the writer. - + - Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. + Saves the writer output to a stream. + Stream to save to. - + - Represents the crossview object that is used to print cube slice or slicegrid. + Initializes a new instance of the FRWriter class with default settings. - + - This property is not relevant to this class. + Initializes a new instance of the FRWriter class with specified xml item that will + receive writer's output. + The xml item that will receive writer's output. - + - This property is not relevant to this class. + The interface for unifying methods for drawing objects into different graphics - + - This property is not relevant to this class. + in this case if a baseline is needed, it will not be calculated - + - This property is not relevant to this class. + Works with polygons only + + - + - This property is not relevant to this class. + Add rectangle to the graphics path + + - + - This property is not relevant to this class. + the interface for saving and restoring state - + - This property is not relevant to this class. + Drawing objects to a standard image in Bitmap - - - - - - - - - - - - - + - Allows to modify the prepared matrix elements such as cells, rows, columns. + baseLine is ignored - + - Gets or sets a value indicating whether to show a title row. + Drawing objects to a svg string - + - Gets or sets a value indicating whether to show a X Axis fields Caption. + For setting namespace, clear all attributes on setting, therefore use this property before setting other svg options - + - Gets or sets a value indicating whether to show a Y Axis fields Caption. + Initialize a new Graphics for SVG, it's rendered to xml, layer by layer, not one image, + set the Size of this graphics in Size property - + - Gets or sets a matrix style. + Returns splited string + text for splitting + index of first character of second string + second part of string + returns true if ends on enter + first part of string - + - Gets or sets a script method name that will be used to handle the - event. + Check the line, and if last word is able to move next line, move it. + e.g. white space won't move to next line. + If word is not moved return current line. + else return new line - - See the event for more details. - + the paragraph for lines + the line with extra words + the index of start last word in this line + width to place words + ref to current line width + - + - + Represents character placement. - + - + Be care generates dictionary only one time - + - + Return true if read char + - + - + Represents a style used in HtmlTags mode. Color does not affect the equals function. - + - Gets or sets a cube source. + returns true if objects realy equals + + - + - Gets the object that holds data of Cube + Used to access to resource IDs inside the specified branch. - See the class for more details. + Using the method, you have to specify the full path to your resource. + Using this class, you can shorten the path: + + // using the Res.Get method + miKeepTogether = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,KeepTogether")); + miResetPageNumber = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,ResetPageNumber")); + miRepeatOnEveryPage = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,RepeatOnEveryPage")); + + // using MyRes.Get method + MyRes res = new MyRes("ComponentMenu,HeaderBand"); + miKeepTogether = new ToolStripMenuItem(res.Get("KeepTogether")); + miResetPageNumber = new ToolStripMenuItem(res.Get("ResetPageNumber")); + miRepeatOnEveryPage = new ToolStripMenuItem(res.Get("RepeatOnEveryPage")); + + - - - - - - - - - - + - Creates or updates the matrix template. + Gets a string with specified ID inside the main branch. - - Call this method after you modify the matrix descriptors using the - object's properties. - - - - - - - + The resource ID. + The localized value. - - + + + Initializes a new instance of the class with spevified branch. + + The main resource branch. - - + + + Localized CategoryAttribute class. + - + - + - This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Initializes a new instance of the SRCategory class. - Event data. + The category name. - + - Initializes a new instance of the class. + Advanced text renderer is used to perform the following tasks: + - draw justified text, text with custom line height, text containing html tags; + - calculate text height, get part of text that does not fit in the display rectangle; + - get paragraphs, lines, words and char sequence to perform accurate export to such + formats as PDF, TXT, RTF + Here is how one may operate the renderer items: + + foreach (AdvancedTextRenderer.Paragraph paragraph in renderer.Paragraphs) + { + foreach (AdvancedTextRenderer.Line line in paragraph.Lines) + { + foreach (AdvancedTextRenderer.Word word in line.Words) + { + if (renderer.HtmlTags) + { + foreach (AdvancedTextRenderer.Run run in word.Runs) + { + using (Font f = run.GetFont()) + using (Brush b = run.GetBrush()) + { + g.DrawString(run.Text, f, b, run.Left, run.Top, renderer.Format); + } + } + } + else + { + g.DrawString(word.Text, renderer.Font, renderer.Brush, word.Left, word.Top, renderer.Format); + } + } + } + } + + - + - The descriptor that is used to describe one CrossView data cell. + The scale for font tag - - The class is used to define one data cell of the CrossView. - To set visual appearance of the data cell, use the - property. - The collection of descriptors used to represent the CrossView data cells is stored - in the CrossViewObject.Data.Cells property. - - + - Gets a value indicating that this is the "GrandTotal" element on X axis. + Paragraph represents single paragraph. It consists of one or several . - + - Gets a value indicating that this is the "GrandTotal" element on Y axis. + Line represents single text line. It consists of one or several . + Simple line (that does not contain tabs, html tags, and is not justified) has + single which contains all the text. - + - Gets a value indicating that this is the "Total" element on X axis. + Word represents single word. It may consist of one or several , in case + when HtmlTags are enabled in the main class. - + - Gets a value indicating that this is the "Total" element on Y axis. + Represents character placement. - + - Gets the name of field in X axis. + Represents a style used in HtmlTags mode. - + - Gets the name of field in Y axis. + Represents sequence of characters that have the same . - + - Gets the name of measure in cube. + Represents inline Image. - + - Gets the x coordinate. + Standard text renderer uses standard DrawString method to draw text. It also supports: + - text rotation; + - fonts with non-standard width ratio. + In case your text is justified, or contains html tags, use the + class instead. - + - Gets the y coordinate. + Cache for rendering img tags in textobject. + You can use only HTTP[s] protocol with absolute urls. - - - - - - - + - Initializes a new instance of the class + Is serialized - The Field Name in X axis. - The Field Name in Y axis. - The Measure Name. - Indicates the "XTotal" element. - Indicates the "YTotal" element. - Indicates the "XGrandTotal" element. - Indicates the "YGrandTotal" element. - + - Initializes a new instance of the class + Get or set WebClient for downloading imgs by url - + - Represents a collection of CrossView data descriptors used in the . + Occurs before image load - + - Gets or sets the element at the specified index. + Occurs after image load - Index of an element. - The element at the specified index. - + - Adds the specified descriptors to the end of this collection. + Enumerates all values - Array of descriptors to add. + - + - Adds a descriptor to the end of this collection. + Return CacheItem by src - Descriptor to add. - Index of the added descriptor. + Src attribute from img tag + - - - Inserts a descriptor into this collection at the specified index. - - The zero-based index at which value should be inserted. - The descriptor to insert. + + + + + + - + - Removes the specified descriptor from the collection. + Set CacheItem by src - Descriptor to remove. + Src attribute from img tag + CacheItem + - + - Returns the zero-based index of the first occurrence of a descriptor. + Validate src attribute from image - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. + Src attribute from img tag + return true if src is valid - + + + + - Determines whether a descriptor is in the collection. + - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. - + - Copies the elements of this collection to a new array. + Item of image cache Dictionary - An array containing copies of this collection elements. - - - - - - - - - - - - + - Contains a set of properties and methods to hold and manipulate the CrossView descriptors. + Get Base64 string - - This class contains three collections of descriptors such as , - and . Descriptors are filled from FastCube Slice. - - + - + Return true if has some error with Image - + - + Get Image - + - + Get byte array - + - + Return error image and set true to error property + - + - + Set value for cache item + Image encoded base64 string - + - + Set value for cache item + Image - + - + Set value for cache item + Image - + + - + - + WebClientEventArgs - + - + Gets a cache - + - + Gets or sets a value indicating whether the event was handled. - + - + Gets or sets a url from src attribue of img tag - + + - + - Gets a collection of column descriptors. + The report page units. - - Note: after you change something in this collection, call the - method to refresh the CrossView. - - + - Gets a collection of row descriptors. + Specifies the units measured in millimeters. - - Note: after you change something in this collection, call the - method to refresh the CrossView. - - + - Gets a collection of data cell descriptors. + Specifies the units measured in centimeters. - - Note: after you change something in this collection, call the - method to refresh the CrossView. - - + - The base class for matrix element descriptors such as and - . + Specifies the units measured in inches. - + - Gets or sets an expression which value will be used to fill the matrix. + Specifies the units measured in hundreths of inch. - - Expression may be any valid expression. Usually it's a data column: - [DataSource.Column]. - - + - Gets or sets the template column bound to this descriptor. + Defines the constants used to convert between report units and screen pixels. - This property is for internal use; usually you don't need to use it. + To convert pixels to millimeters, use the following code: + valueInMillimeters = valueInPixels / Units.Millimeters; + To convert millimeters to pixels, use the following code: + valueInPixels = valueInMillimeters * Units.Millimeters; - + - Gets or sets the template row bound to this descriptor. + The number of pixels in one millimeter. - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template cell bound to this descriptor. + The number of pixels in one centimeter. - - Using this property, you may access the matrix cell which is bound to - this descriptor. It may be useful to change the cell's appearance. - - Before using this property, you must initialize the matrix descriptors by - calling the method. - - - - - CrossViewObject crossView; - // change the fill color of the first matrix cell - crossView.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); - - - + - Assigns values from another descriptor. + The number of pixels in one inch. - Descriptor to assign values from. - - - - - - - + - Represents a collection of CrossView header descriptors used in the . + The number of pixels in 1/10 of ich. - + - Gets or sets the element at the specified index. + The number of pixels in 1/100 of inch. - Index of an element. - The element at the specified index. - + - Adds the specified descriptors to the end of this collection. - - Array of descriptors to add. + Represents a xml property.///
- + - Adds a descriptor to the end of this collection. + Represents a property key. - Descriptor to add. - Index of the added descriptor. - + - Inserts a descriptor into this collection at the specified index. + Represents a property value. - The zero-based index at which value should be inserted. - The descriptor to insert. - + - Removes the specified descriptor from the collection. + Creates new property and assigns value - Descriptor to remove. + Property key + Property value - + - Returns the zero-based index of the first occurrence of a descriptor. + Represents a xml node. - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. - + - Determines whether a descriptor is in the collection. + Gets a number of children in this node. - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. - + - Copies the elements of this collection to a new array. + Gets a list of children in this node. - An array containing copies of this collection elements. - - - - - - - + - + Gets a child node with specified index. + Index of node. + The node with specified index. - + - The descriptor that is used to describe one element of the CrossView header. + Gets or sets the node name. - The class is used to define one header element of the CrossView - (either the column element or row element). - To set visual appearance of the element, use the - property. - The collection of descriptors used to represent the CrossView header is stored - in the CrossViewObject.Data.Columns and CrossViewObject.Data.Rows properties. + This property will return "Node" for a node like <Node Text="" Left="0"/> - + - Gets a value indicating that this is the "GrandTotal" element. + Gets or sets a list of properties in this node. - + - Gets a value indicating that this is the "Total" element. + Gets or sets the parent for this node. - + - Gets a value indicating that this is the "Measure" element. + Gets or sets the node value. + + This property will return "ABC" for a node like <Node>ABC</Node> + - + - Gets the name of field in cube. + Gets the root node which owns this node. - + - Gets the name of measure in cube. + Clears the child nodes of this node. - + - Gets the cell coordinate. + Adds a new child node to this node. + The new child node. - + - Gets the size in cell coordinate. + Adds a specified node to this node. + The node to add. - + - Gets the level coordinate. + Inserts a specified node to this node. + Position to insert. + Node to insert. - + - Gets the size in level coordinate. + Finds the node with specified name. + The name of node to find. + The node with specified name, if found; null otherwise. - - - - - - - + - Initializes a new instance of the class + Finds the node with specified name. - The Field Name. - The Measure Name. - Indicates the "Total" element. - Indicates the "GrandTotal" element. - Indicates the "Measure" element. + The name of node to find. + The node with specified name, if found; the new node otherwise. + + This method adds the node with specified name to the child nodes if it cannot find the node. + Do not dispose items, which has been created by this method + - + - Initializes a new instance of the class + Gets the index of specified node in the child nodes list. + The node to find. + Zero-based index of node, if found; -1 otherwise. - + - This class represents a single data column in a . + Gets a property with specified name. + The property name. + The value of property, if found; empty string otherwise. + + This property will return "0" when you request the "Left" property for a node + like <Node Text="" Left="0"/> + - - - - + - Gets or sets the business object property name which this column is bound to. + Removes all properties. - + - Gets or sets the business object property descriptor which this column is bound to. + Sets the value for a specified property. + The property name. + Value to set. + + For example, you have a node like <Node Text="" Left="0"/>. When you set the + "Text" property to "test", the node will be <Node Text="test" Left="0"/>. + If property with specified name is not exist, it will be added. + - + - Gets or sets the type of data supplied by this column. + Removes a property with specified name. + The property name. + Returns true if property is removed, false otherwise. - + - Gets or sets a value that specifies the type of a control that will be created - when you drop this column on a report page. + Disposes the node and all its children. - - If you need to specify the custom type, use the property instead. - - + - Gets or sets a name of custom bindable control. + Initializes a new instance of the XmlItem class with default settings. - - Use this property if you want to bind a column to custom object type. You need to - specify the type name of your object; that object must be registered in FastReport using the - RegisteredObjects.Add method. - - + - Gets or sets the format of this column. + Represents a xml document that contains the root xml node. - This property is used when you drag a column from the Data window to the report page. - FastReport will create a "Text" object and set its "Format" property to the corresponding format. - By default, this property is set to Auto. It means that the format will be determined - automatically depending on the property. + Use Load and Save methods to load/save the document. To access the root node + of the document, use the property. - + - Gets or sets expression of the calculated column. + Gets or sets a value indicating whether is necessary to indent the document + when saving it to a file/stream. - - This property is used if the property is true. - - + - Gets or sets a value that indicates whether this column is calculated. + Gets or sets a value indicating whether is necessary to add xml header. - - You should specify the property for calculated columns. - - + - Gets the collection of child columns. + Gets the root node of the document. - + - Gets or sets the tag value. + Clears the document. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the Column class with default settings. + Saves the document to a stream. + Stream to save to. - + - Base class for all CubeSources such as . + Saves the document to a string. + Writer to save to. - + - + Loads the document from a stream. + Stream to load from. - + - + Saves the document to a file. + The name of file to save to. - + - + Loads the document from a file. + The name of file to load from. - + - + Disposes resources used by the document. - + - + Initializes a new instance of the XmlDocument class with default settings. - - - - + + - + - + - + Clear all files in archive. - + - + Check for exisiting file in archive. + + - + - + Adds the file form disk to the archive. + - + - + Adds all files from directory (recursive) on the disk to the archive. + - + - + Adds the stream to the archive. + + - + - + Creates the zip and writes it to rhe Stream + - + - + Creates the ZIP archive and writes it to the file. + - + - + Gets or sets the Root Folder. - + - + Gets or sets the errors. - + - + Gets or sets the commentary to the archive. - - - - - - - + - + Gets count of files in archive. - + - Initializes a new instance of the class with default settings. + Creates the new zip archive. - + - Represents the collection of objects. + Class helper for compile source code with path of assemblies - + - Gets or sets a data source. + Generate a assembly in memory with some source code and several path for additional assemblies - The index of a data source in this collection. - The data source with specified index. + + + - + - Finds a CubeSource by its name. + The FastReport.dll assembly initializer. - The name of a CubeSource. - The object if found; otherwise null. - + - Finds a CubeSource by its alias. + Registers all standard objects, wizards, export filters. - The alias of a CubeSource. - The object if found; otherwise null. - + - Initializes a new instance of the class with default settings. + Base class for all bands. - The owner of this collection. - + + + + + + + + + + - Represents a datasource based on DataView class. + This property is not relevant to this class. - - This class is used to support FastReport.Net infrastructure, do not use it directly. - If you want to use data from DataView object, call the - method of the Report. - - + - Represents a connection to xml file-based database. + This property is not relevant to this class. - This example shows how to add a new connection to the report. - - Report report1; - XmlDataConnection conn = new XmlDataConnection(); - conn.XmlFile = @"c:\data.xml"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); - - - - - - - - - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - + - Gets or sets the path to .xsd file. + This property is not relevant to this class. - + - Gets or sets the path to .xml file. + This property is not relevant to this class. - + - + - + - + - + - + - + - - - Initializes a new instance of the class with default settings. - + + - - - Represents a total that is used to calculate aggregates such as Sum, Min, Max, Avg, Count. - + + - + - + - Gets or sets the total type. + This event occurs before the band layouts its child objects. - + - Gets or sets the expression used to calculate the total. + This event occurs after the child objects layout was finished. - + - Gets or sets the evaluator databand. + Gets or sets a value indicating that the band should be printed from a new page. - The total will be calculated for each row of this band. + New page is not generated when printing very first group or data row. This is made to avoid empty + first page. - + - This property is kept for compatibility only. + Gets or sets a value that determines the number of repetitions of the same band. - + - Gets or sets the band to print the total on. + Gets or sets a value indicating that the first row can start a new report page. - The total will be resetted after the specified band has been printed. + Use this property if is set to true. Normally the new page + is not started when printing the first data row, to avoid empty first page. - + - Gets or sets a value that determines whether the total should be resetted after print. + Gets or sets a value indicating that the band should be printed on the page bottom. - + - Gets or sets a value that determines whether the total should be resetted if printed - on repeated band (i.e. band with "RepeatOnEveryPage" flag). + Gets or sets a value indicating that the band should be printed together with its child band. - + - Gets or sets the condition which tells the total to evaluate. + Gets or sets an outline expression. + + + Outline is a tree control displayed in the preview window. It represents the prepared report structure. + Each outline node can be clicked to navigate to the item in the prepared report. + + + To create the outline, set this property to any valid expression that represents the outline node text. + This expression will be calculated when band is about to print, and its value will be added to the + outline. Thus, nodes' hierarchy in the outline is similar to the bands' hierarchy + in a report. That means there will be the main and subordinate outline nodes, corresponding + to the main and subordinate bands in a report (a report with two levels of data or with groups can + exemplify the point). + + - + - Gets or sets a value that determines if invisible rows of the Evaluator should - be included into the total's value. + Gets or sets a child band that will be printed right after this band. + + Typical use of child band is to print several objects that can grow or shrink. It also can be done + using the shift feature (via property), but in some cases it's not possible. + - + - This property is not relevant to this class. + Gets a collection of report objects belongs to this band. - + - Gets the value of total. + Gets a value indicating that band is reprinted on a new page. + + This property is applicable to the DataHeaderBand and GroupHeaderBand only. + It returns true if its RepeatOnAllPages property is true and band is + reprinted on a new page. + - - - - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Gets or sets a script event name that will be fired before the band layouts its child objects. - + - Represents a datasource based on DataTable class. + Gets or sets a script event name that will be fired after the child objects layout was finished. - This example shows how to add a new table to the existing connection: - - Report report1; - DataConnectionBase conn = report1.Dictionary.Connections.FindByName("Connection1"); - TableDataSource table = new TableDataSource(); - table.TableName = "Employees"; - table.Name = "Table1"; - conn.Tables.Add(table); - - - + - - - Gets or sets the underlying DataTable object. - - - - - Gets or sets the table name. - + + - + - Gets or sets SQL "select" command. + Gets or sets collection of guide lines for this band. - - If this command contains parameters, you should specify them in the - property. - - + - Gets a collection of parameters used by "select" command. + Gets a row number (the same value returned by the "Row#" system variable). - You must set up this property if the SQL query that you've specified in the - property contains parameters. - You can pass a value to the SQL parameter in two ways. - The right way is to define a report parameter. You can do this in the - "Data" window. Once you have defined the parameter, you can use it to pass a value - to the SQL parameter. To do this, set the SQL parameter's Expression property - to the report parameter's name (so it will look like [myReportParam]). - To pass a value to the report parameter from your application, use the - method. - The other way (unrecommended) is to find a datasource object and set its parameter from a code: - - TableDataSource ds = report.GetDataSource("My DataSource Name") as TableDataSource; - ds.Parameters[0].Value = 10; - - This way is not good because you hardcode the report object's name. + This property can be used when running a report. It may be useful to print hierarchical + row numbers in a master-detail report, like this: + 1.1 + 1.2 + 2.1 + 2.2 + To do this, put the Text object on a detail data band with the following text in it: + [Data1.RowNo].[Data2.RowNo] - - - Gets or sets the parent object. - - - + - Gets or sets a value that determines whether it is necessary to store table data in a report file. + Gets an absolute row number (the same value returned by the "AbsRow#" system variable). - + - Gets or sets the table data. + Gets a value indicating that this is the first data row. - - This property is for internal use only. - - + - If set, ignores the Connection (always returns null). Needed when we replace the - existing connection-based datasource with datatable defined in an application. + Gets a value indicating that this is the last data row. - - - Gets or sets the query builder schema. - - - This property is for internal use only. - + + - + - + - + - + - - - Refresh the table schema. - + + - + - + - + - + - + - + - + - - - Initializes a new instance of the class with default settings. - + + - - - Represents a master-detail relation between two data sources. - - - To setup a relation, you must specify parent and child datasources. For a parent datasource, - you must specify set of key columns; for child datasource, you must specify set of columns that - relate to the parent key columns. - This example shows how to create relation between Customers and Orders tables: - - Report report1; - DataSourceBase customersTable = report1.Dictionary.DataSources.FindByAlias("Customers"); - DataSourceBase ordersTable = report1.Dictionary.DataSources.FindByAlias("Orders"); - Relation rel = new Relation(); - rel.Name = "customersOrders"; - rel.ParentDataSource = customersTable; - rel.ChildDataSource = ordersTable; - rel.ParentColumns = new string[] { "CustomerID" }; - rel.ChildColumns = new string[] { "CustomerID" }; - report1.Dictionary.Relations.Add(rel); - - - + + - + - + - Gets or sets the parent datasource. + This method fires the BeforeLayout event and the script code connected to the BeforeLayoutEvent. + Event data. - + - Gets or sets the child datasource. + This method fires the AfterLayout event and the script code connected to the AfterLayoutEvent. + Event data. - + - Gets or sets an array of parent datasource columns. + Initializes a new instance of the class with default settings. - - Note: both and must have the - same number of elements. - - + - Gets or sets an array of child datasource columns. + Represents a barcode object. + Represents a barcode object. - Note: both and must have the - same number of elements. + The instance of this class represents a barcode. Here are some common + actions that can be performed with this object: + + + To select the type of barcode, use the property. + + + + To specify a static barcode data, use the property. + You also may use the or properties + to specify dynamic value for a barcode. + + + + To set a barcode orientation, use the property. + + + + To specify the size of barcode, set the property + to true and use the property to zoom the barcode. + If property is set to false, you need to specify the + size using the Width and + Height properties. + + + - - - - - - - Compares this relation with another one. - - Another relation to compare with. - true if both relations are equal; false otherwise. - - - - Initializes a new instance of the class with default settings. - - - - - Represents a connection to any OLE DB database. - - This example shows how to add a new connection to the report. + This example shows how to configure the BarcodeObject to display PDF417 barcode. - Report report1; - OleDbDataConnection conn = new OleDbDataConnection(); - conn.ConnectionString = "your_connection_string"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); + BarcodeObject barcode; + ... + barcode.Barcode = new BarcodePDF417(); + (barcode.Barcode as BarcodePDF417).CompactionMode = CompactionMode.Text; - + - + - + - + - + - - - - - - - - - - - - - + - Represents a connection to any database through ODBC. + Gets or sets the barcode type. - This example shows how to add a new connection to the report. - - Report report1; - OdbcDataConnection conn = new OdbcDataConnection(); - conn.ConnectionString = "your_connection_string"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Represents a connection to MS SQL database. + Gets or sets the symbology name. - This example shows how to add a new connection to the report. + + The following symbology names are supported: + + "2/5 Interleaved" + "2/5 Industrial" + "2/5 Matrix" + "Codabar" + "Code128" + "Code39" + "Code39 Extended" + "Code93" + "Code93 Extended" + "EAN8" + "EAN13" + "MSI" + "PostNet" + "UPC-A" + "UPC-E0" + "UPC-E1" + "Supplement 2" + "Supplement 5" + "PDF417" + "Datamatrix" + "QRCode" + + + - Report report1; - MsSqlDataConnection conn = new MsSqlDataConnection(); - conn.ConnectionString = "your_connection_string"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); + barcode.SymbologyName = "PDF417"; + (barcode.Barcode as BarcodePDF417).CompactionMode = CompactionMode.Text; - - - - - - - - + + + Gets or sets the angle of barcode, in degrees. + - - + + + Gets or sets a value that determines whether the barcode should handle its width automatically. + - - + + + Gets or sets a data column name bound to this control. + + + Value must be in the form "Datasource.Column". + - - + + + Gets or sets an expression that contains the barcode data. + - - + + + Enable or disable of using an expression in Text + - - + + + Gets or sets brackets for using in expressions + - - + + + Gets or sets a value that indicates if the barcode should display a human-readable text. + - + - Represents a connection to MS Access database (.mdb file). + Gets or sets the barcode data. - This example shows how to add a new connection to the report. - - Report report1; - MsAccessDataConnection conn = new MsAccessDataConnection(); - conn.DataSource = @"c:\data.mdb"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); - - - - + + + Gets or sets padding within the BarcodeObject. + - - + + + Gets or sets a zoom of the barcode. + - + - Gets or sets the datasource file name. + Gets or sets a value that determines whether it is necessary to hide the object if the + barcode data is empty. - + - Gets or sets the user name. + Gets or sets the text that will be displayed if the barcode data is empty. - + - Gets or sets the password. + Gets or sets values for forced use of a bitmap image instead of a vector - + - + - + - + - + - + - + + + + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. - + - The base class for all data connection components such as . + - This example shows how to add a new MS Access connection to the report. - - Report report1; - MsAccessDataConnection conn = new MsAccessDataConnection(); - conn.DataSource = @"c:\data.mdb"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); - - - - - - + - Gets a string that will identify a connection in the Data Wizard. + - The string that contains the connection type and some meaningful information. - + - Gets the default type for a new parameter. + Aztec 2D code representation - The integer representation of a parameter type. + Rustam Abdullaev - + - Gets a control that will be used to edit the connection properties. + Compact or full symbol indicator - The editor's control. - - - - + - Tests the connection. + Size in pixels (width and height) - - If test connection is not successful, this method throws an exception. Catch this exception to - show an error message. - - + - Gets an internal DataSet object that contains all data tables. + Number of levels - + - Gets a collection of data tables in this connection. + Number of data codewords - - To add a table to the connection, you must either create a new TableDataSource and add it - to this collection or call the method which will add - all tables available in the database. - - + - Gets or sets a connection string that contains all connection parameters. + The symbol image - - To modify some parameter of the connection, use respective - ConnectionStringBuilder class. - Security note: the connection string may contain a user name/password. - This information is stored in a report file. By default, it is crypted using the standard - FastReport's password. Since FastReport's source code is available to anyone who paid for it, - it may be insecure to use the standard password. For more security, you should use own - password. To do this, specify it in the Crypter.DefaultPassword property. - - This example demonstrates how to change a connection string: - - OleDbConnectionStringBuilder builder = new OleDbConnectionStringBuilder(oleDbConnection1.ConnectionString); - builder.PersistSecurityInfo = false; - oleDbConnection1.ConnectionString = builder.ToString(); - - - + - Gets or sets an expression that returns a connection string. + The class holds the available options for the AztecWriter - - Use this property to set the connection string dynamically. - The recommended way to do this is to define a report parameter. You can do this in the - "Data" window. Once you have defined the parameter, you can use it to pass a value - to the connection. Set the ConnectionStringExpression property of the - connection object to the report parameter's name (so it will look like [myReportParam]). - To pass a value to the report parameter from your application, use the - method. - - Once you set value for this property, the property will be ignored - when report is run. - - - + - Gets or sets a value indicates if this connection is SQL-based. + Representing the minimal percentage of error correction words. + Note: an Aztec symbol should have a minimum of 25% EC words. - + - Gets or sets a value indicating whether a login dialog appears immediately before opening a connection. + Specifies the required number of layers for an Aztec code: + a negative number (-1, -2, -3, -4) specifies a compact Aztec code + 0 indicates to use the minimum number of layers (the default) + a positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code - - Set LoginPrompt to true to provide login dialog when establishing a connection. If this - property is false (by default), you should provide login information (user name and password) - in the property. Though that property is stored in a crypted form, - this may be insecure. - Another way to pass login information to the connection is to use - property that is bound to the report parameter. In that - case you supply the entire connection string from your application. - - + - Gets or sets the command timeout, in seconds. + A simple, fast array of bits, represented compactly by an array of ints internally. + Sean Owen - - + + Flips bit i. + + + bit to set + - + - Initializes a DataSet instance. + Gets the next set. - The DataSet object. - - This method is used to support FastReport infrastructure. You don't need to use it. - + first bit to check + index of first bit that is set, starting from the given index, or size if none are set + at or beyond this given index - + - Disposes a DataSet. + see getNextSet(int) - - This method is used to support FastReport infrastructure. You don't need to use it. - + index to start looking for unset bit + index of next unset bit, or if none are unset until the end - - - Sets the connection string. + + Sets a block of 32 bits, starting at bit i. + - New connection string. - - Use this method if you need to perform some actions when the connection string is set. - + first bit to set + + the new value of the next 32 bits. Note again that the least-significant bit + corresponds to bit i, the next-least-significant to i+1, and so on. + - + - Gets a connection string that contains username and password specified. + Sets a range of bits. - User name. - Password. - - Override this method to pass login information to the connection. Typical implementation - must get the existing , merge specified login information into it - and return the new value. - - - - - - - - - - - - - - - - - - - + start of range, inclusive. + end of range, exclusive - - + + Clears all bits (sets to false). - - - Fills the collection with all tables available in the database. + + Efficient method to check if a range of bits is set, or not set. + - - This method does not read the table data; to do this, call the - method of each table. - + start of range, inclusive. + + end of range, exclusive + + if true, checks that bits in range are set, otherwise checks that they are not set + + true iff all bits are set or not set in range, according to value argument + + IllegalArgumentException if end is less than or equal to start - + - Fills the collection with all tables available in the database. + Appends the bit. - Set to true to initialize each table's schema. + The bit. - + + underlying array of ints. The first element holds the first 32 bits, and the least + significant bit is bit 0. + + + - Creates the relations between tables. Applies to XmlDataConnection only. + Appends the least-significant bits, from value, in order from most-significant to + least-significant. For example, appending 6 bits from 0x000001E will append the bits + 0, 1, 1, 1, 1, 0 in that order. + containing bits to append + bits from value to append - + - Gets an array of table names available in the database. + Toes the bytes. - An array of strings. + first bit to start writing + array to write into. Bytes are written most-significant byte first. This is the opposite + of the internal representation, which is exposed by BitArray + position in array to start writing + how many bytes to write - + + Reverses all bits in the array. + + - Returns a type of connection. + Determines whether the specified is equal to this instance. - Type instance. - - You should override this method if you developing a new connection component. - If your connection component does not use data connection, you need to override - the and methods instead. - - Here is the example of this method implementation: - - public override Type GetConnectionType() - { - return typeof(OleDbConnection); - } - - + The to compare with this instance. + + true if the specified is equal to this instance; otherwise, false. + - + - Returns a connection object. + Returns a hash code for this instance. - The DbConnection instance. - Either creates a new DbConnection instance of type provided by the - method, or returns the application connection if set - in the Config.DesignerSettings.ApplicationConnection. + + A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table. + - + - Opens a specified connection object. + Returns a that represents this instance. - Connection to open. - - Use this method to open a connection returned by the method. - This method displays a login dialog if your connection has the - property set to true. Once you have entered an user name and password in - this dialog, it will remeber the entered values and will not used anymore in this report session. - + + A that represents this instance. + - + - Disposes a connection. + Erstellt ein neues Objekt, das eine Kopie der aktuellen Instanz darstellt. - The connection to dispose. + + Ein neues Objekt, das eine Kopie dieser Instanz darstellt. + - + - Returns a object that is specific to this connection. +

Represents a 2D matrix of bits. In function arguments below, and throughout the common + module, x is the column position, and y is the row position. The ordering is always x, y. + The origin is at the top-left.

+

Internally the bits are represented in a 1-D array of 32-bit ints. However, each row begins + with a new int. This is done intentionally so that we can copy out a row into a BitArray very + efficiently.

+

The ordering of bits is row-major. Within each int, the least significant bits are used first, + meaning they represent lower x values. This is compatible with BitArray's implementation.

- The SQL command used to fetch a table data rows. - The connection object. - The select command parameters. - The DbDataAdapter object. - - You should override this method if you are developing a new connection component. In this method, - you need to create the adapter and set its SelectCommand's parameters. - If your connection does not use data adapter, you need to override - the and methods instead. - - Here is the example of this method implementation: - - public override DbDataAdapter GetAdapter(string selectCommand, DbConnection connection, - CommandParameterCollection parameters) - { - OleDbDataAdapter adapter = new OleDbDataAdapter(selectCommand, connection as OleDbConnection); - foreach (CommandParameter p in parameters) - { - OleDbParameter parameter = adapter.SelectCommand.Parameters.Add(p.Name, (OleDbType)p.DataType, p.Size); - parameter.Value = p.Value; - } - return adapter; - } - - + Sean Owen + dswitkin@google.com (Daniel Switkin)
- - - Gets the type of parameter that is specific to this connection. + + The width of the matrix + + + + The height of the matrix + + + + This method is for compatibility with older code. It's only logical to call if the matrix + is square, so I'm throwing if that's not the case. + - The parameter's type. - - This property is used in the report designer to display available data types when you edit the - connection parameters. For example, the type of OleDbConnection parameter is a OleDbType. - + row/column dimension of this matrix + - - - Quotes the specified DB identifier such as table name or column name. + +

Gets the requested bit, where true means black.

+
- Identifier to quote. - The opened DB connection. - The quoted identifier. + The horizontal component (i.e. which column) + + The vertical component (i.e. which row) + + value of given bit in matrix +
- - - Fills the table schema. + +

Flips the given bit.

+
- DataTable to fill. - The SQL select command. - SQL parameters. - - Usually you don't need to use this method. Internally it uses the and - methods to fill the table schema. If you create own connection component - that does not use nor connection or adapter, then you need to override this method. - + The horizontal component (i.e. which column) + + The vertical component (i.e. which row) +
- - - Fills the table data. + + Clears all bits (sets to false). + + +

Sets a square region of the bit matrix to true.

+
- DataTable to fill. - The SQL select command. - SQL parameters. - - Usually you don't need to use this method. Internally it uses the and - methods to fill the table data. If you create own connection component - that does not use nor connection or adapter, then you need to override this method. - + The horizontal position to begin at (inclusive) + + The vertical position to begin at (inclusive) + + The width of the region + + The height of the region +
- - - Creates table. - For internal use only. + + A fast method to retrieve one row of data from the matrix as a BitArray. + + The row to retrieve + + An optional caller-allocated BitArray, will be allocated if null or too small + + The resulting BitArray - this reference should always be used even when passing + your own row + - + - Deletes table. - For internal use only. + Sets the row. + row to set + {@link BitArray} to copy from - - - - - - - + - Initializes a new instance of the class with default settings. + Modifies this {@code BitMatrix} to represent the same but rotated 180 degrees - + - The base class for all data components such as data sources, columns. + This is useful in detecting the enclosing rectangle of a 'pure' barcode. + {left,top,width,height} enclosing rectangle of all 1 bits, or null if it is all white - - - - + - Gets or sets alias of this object. + This is useful in detecting a corner of a 'pure' barcode. - - Alias is a human-friendly name of this object. It may contain any symbols (including - spaces and national symbols). - + {x,y} coordinate of top-left-most 1 bit, or null if it is all white - + - Gets or sets a value indicates that object is enabled and thus can be used in a report. + These are a set of hints that you may pass to Writers to specify their behavior. - - This property is used to hide an object from the Data Dictionary window. Hidden - objects are still accessible in the "Data|Choose Data Source..." menu. - + dswitkin@google.com (Daniel Switkin) - + - Gets or sets a name of the data object. + Specifies the width of the barcode image + type: - - This property is used to support FastReport.Net infrastructure. Do not use it directly. - - + - Gets or sets a reference to the data object. + Specifies the height of the barcode image + type: - - This property is used to support FastReport.Net infrastructure. Do not use it directly. - - + - Gets a value indicates that this object has an alias. + Don't put the content string into the output image. + type: - - - - - - - - - - + - Initializes the object before running a report. + Specifies what character encoding to use where applicable. + type: - - This method is used by the report engine, do not call it directly. - - + - Initializes a new instance of the class with default settings. + Specifies margin, in pixels, to use when generating the barcode. The meaning can vary + by format; for example it controls margin before and after the barcode horizontally for + most 1D formats. + type: - + - Represents a connection to csv file-based database. + Specifies whether to use compact mode for PDF417. + type: - This example shows how to add a new connection to the report. - - Report report1; - CsvDataConnection conn = new CsvDataConnection(); - conn.CsvFile = @"c:\data.csv"; - report1.Dictionary.Connections.Add(conn); - conn.CreateAllTables(); - - - - - - - - - - - - - - - + - The default field name. + Don't append ECI segment. + That is against the specification of QR Code but some + readers have problems if the charset is switched from + ISO-8859-1 (default) to UTF-8 with the necessary ECI segment. + If you set the property to true you can use UTF-8 encoding + and the ECI segment is omitted. + type: - + - Gets or sets the path to .csv file. + if true, don't switch to codeset C for numbers - + - Gets or sets the codepage of the .csv file. + Specifies the required number of layers for an Aztec code: + a negative number (-1, -2, -3, -4) specifies a compact Aztec code + 0 indicates to use the minimum number of layers (the default) + a positive number (1, 2, .. 32) specifies a normal (non-compact) Aztec code - + - Gets or sets the separator of the .csv file. + Generates Aztec 2D barcodes. + Rustam Abdullaev - + - Gets or sets the value indicating that field names should be loaded from the first string of the file. + Encodes the given binary content as an Aztec symbol + input data string + Aztec symbol matrix with metadata - + - Gets or sets the value indicating that quotation marks should be removed. + Encodes the given binary content as an Aztec symbol + input data string + minimal percentage of error check words (According to ISO/IEC 24778:2008, + a minimum of 23% + 3 words is recommended) + if non-zero, a user-specified value for the number of layers + + Aztec symbol matrix with metadata + - + - Gets or sets the value indicating that field types fhould be converted. + Defines an container for encoder options - + - Initializes a new instance of the class. + Gets the data container for all options - - - - - - - - - - - - - - - - - - - - - - + - Required designer variable. + Specifies the height of the barcode image - + - Clean up any resources being used. + Specifies the width of the barcode image - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Don't put the content string into the output image. - + - Required designer variable. + Specifies margin, in pixels, to use when generating the barcode. The meaning can vary + by format; for example it controls margin before and after the barcode horizontally for + most 1D formats. - + - Clean up any resources being used. + Initializes a new instance of the class. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. +

This class contains utility methods for performing mathematical operations over + the Galois Fields. Operations use a given primitive polynomial in calculations.

+

Throughout this package, elements of the GF are represented as an {@code int} + for convenience and speed (but at the cost of memory). +

+ Sean Owen
- + - The base class for all connection editors. This control is used when you edit - the connection in the Data Wizard. + Create a representation of GF(size) using the given primitive polynomial. + irreducible polynomial whose coefficients are represented by + * the bits of an int, where the least-significant bit represents the constant + * coefficient + the size of the field + the factor b in the generator polynomial can be 0- or 1-based + * (g(x) = (x+a^b)(x+a^(b+1))...(x+a^(b+2t-1))). + * In most cases it should be 1, but for QR code it is 0. - + - Gets or sets a connection string. + Builds the monomial. + The degree. + The coefficient. + the monomial representing coefficient * x^degree - + - This method should construct the connection string from values entered by user. + Implements both addition and subtraction -- they are the same in GF(size). - The connection string. + sum/difference of a and b - + - This method should parse the connection string and fill the user interface elements. + Exps the specified a. - The connection string. + 2 to the power of a in GF(size) - + - This method is called when form layout is complete. + Logs the specified a. + A. + base 2 log of a in GF(size) - + - Initializes a new instance of the class with default settings. + Inverses the specified a. + multiplicative inverse of a - - - Required designer variable. + + + Multiplies the specified a with b. + A. + The b. + product of a and b in GF(size) - - - Clean up any resources being used. + + + Gets the size. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Gets the generator base. - + - Required designer variable. + Returns a that represents this instance. + + A that represents this instance. + - + - Clean up any resources being used. +

Represents a polynomial whose coefficients are elements of a GF. + Instances of this class are immutable.

+

Much credit is due to William Rucklidge since portions of this code are an indirect + port of his C++ Reed-Solomon implementation.

- true if managed resources should be disposed; otherwise, false. + Sean Owen
- + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the class. + the {@link GenericGF} instance representing the field to use + to perform computations + coefficients as ints representing elements of GF(size), arranged + from most significant (highest-power term) coefficient to least significant + if argument is null or empty, + or if leading coefficient is 0 and this is not a + constant polynomial (that is, it is not the monomial "0") - + - Required designer variable. + degree of this polynomial - + - Clean up any resources being used. + Gets a value indicating whether this is zero. - true if managed resources should be disposed; otherwise, false. + true iff this polynomial is the monomial "0" - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + coefficient of x^degree term in this polynomial + The degree. + coefficient of x^degree term in this polynomial - + - Required designer variable. + evaluation of this polynomial at a given point + A. + evaluation of this polynomial at a given point - + - Clean up any resources being used. + This produces nearly optimal encodings of text into the first-level of + encoding used by Aztec code. + It uses a dynamic algorithm. For each prefix of the string, it determines + a set of encodings that could lead to this prefix. We repeatedly add a + character and generate a new set of optimal encodings until we have read + through the entire input. + @author Frank Yellin + @author Rustam Abdullaev - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Convert the text represented by this High Level Encoder into a BitArray. + text represented by this encoder encoded as a - + - Required designer variable. + Implements Reed-Solomon encoding, as the name implies. + Sean Owen + William Rucklidge - + - Clean up any resources being used. + State represents all information about a sequence necessary to generate the current output. + Note that a state is immutable. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Create a new state representing this state with a latch to a (not + necessary different) mode, and then a code. - + - Represents the CsvDataConnection connection string builder. + Create a new state representing this state, with a temporary shift + to a different mode to output a single value. - - Use this class to parse connection string returned by the CsvDataConnection class. - - + - Gets or sets the path to .csv file. + Create a new state representing this state, but an additional character + output in Binary Shift mode. - + - Gets or sets the codepage of .csv file. + Create the state identical to this one, but we are no longer in + Binary Shift mode. - + - Gets or sets the separator. + Returns true if "this" state is better (or equal) to be in than "that" + state under all possible circumstances. - + - Gets or sets the value indicating that field names should be loaded from the first string of the file. + Contains conversion support elements such as classes, interfaces and static methods. - + - Gets or sets the value indicating that quotation marks should be removed. + Copies an array of chars obtained from a String into a specified array of chars + The String to get the chars from + Position of the String to start getting the chars + Position of the String to end getting the chars + Array to return the chars + Position of the destination array of chars to start storing the chars + An array of chars - + - Gets or sets the value indicating that field types should be converted. + Sets the capacity for the specified List + The List which capacity will be set + The new capacity value - + - Initializes a new instance of the class. + Converts a string-Collection to an array + The strings. + - + - Initializes a new instance of the class with a specified connection string. + Joins all elements to one string. - The connection string. + + The separator. + The values. + - + - Obsolete. Specifies a set of flags used to convert business objects into datasources. + Fills the specified array. + (can't use extension method because of .Net 2.0 support) + + The array. + The value. - + - Specifies no actions. + Fills the specified array. + (can't use extension method because of .Net 2.0 support) + + The array. + The start index. + The end index. + The value. - + - Allows using the fields of a business object. + Generates the Code128 barcode. + + This barcode supports three code pages: A, B and C. You need to set appropriate code page + in the barcode text, or use the auto encode feature. See the property + for more details. + + This example shows how to configure the BarcodeObject to display Code128 barcode. + + BarcodeObject barcode; + ... + barcode.Barcode = new Barcode128(); + (barcode.Barcode as Barcode128).AutoEncode = false; + + - + - Allows using properties of a business object with BrowsableAttribute only. + Gets or sets a value that determines whether the barcode should automatically + use appropriate encoding. + + You may use this property to encode data automatically. If you set it to false, + you must specify the code page inside the data string. The following control codes are available: + + + Sequence + Code128 control code + + + &A; + START A / CODE A + + + &B; + START B / CODE B + + + &C; + START C / CODE C + + + + &S; + SHIFT + + + &1; + FNC1 + + + &2; + FNC2 + + + &3; + FNC3 + + + &4; + FNC4 + + + The following example shows how to specify control codes: + + BarcodeObject barcode; + barcode.Barcode = new Barcode128(); + (barcode.Barcode as Barcode128).AutoEncode = false; + barcode.Text = "&C;1234&A;ABC"; + + - + + + + + + + - Specifies a kind of property. + Initializes a new instance of the class with default settings. - + - Specifies the property of a simple type (such as integer). + The base class for 2D-barcodes such as PDF417 and Datamatrix. - + - Specifies the complex property such as class with own properties. + Generates the "2/5 Interleaved" barcode. - + - Specifies the property which is a list of objects (is of IEnumerable type). + Initializes a new instance of the class with default settings. - + - Represents a datasource based on business object of IEnumerable type. + Generates the "2/5 Industrial" barcode. - - Do not use this class directly. To register a business object, use the - Report.RegisterData method. - - + - Occurs when FastReport engine loads data source with data from a business object. + Generates the "2/5 Matrix" barcode. - - Use this event if you want to implement load-on-demand. Event handler must load the data into - your business object. - - - - - - - - - + + + Initializes a new instance of the class with default settings. + - - + + + Generates the Code39 barcode. + - + - + - Represents the method that will handle the LoadBusinessObject event. + Initializes a new instance of the class with default settings. - The source of the event. - The event data. - + - Provides data for event. + Generates the Code39 extended barcode. - + - Parent object for this data source. + Generates the Code93 barcode. - + + + + - Determines how to filter the data value. + Generates the Code93 extended barcode. - - The "Data value" is a value contained in the datasource which you filter. - The "Selected value" is a value you have entered or selected in the dialog control. - - + - Data value is equal to selected value. + Generates the 2D Aztec barcode. - + - Data value is not equal to selected value. + Gets or sets the error correction percent. - + - Data value is less than selected value. + Initializes a new instance of the class with default settings. - + + + + - Data value is less than or equal to selected value. + The base class for all barcodes. - + - Data value is greater than selected value. + Gets the name of barcode. - + - Data value is greater than or equal to selected value. + Gets or sets the color of barcode. - + - Data string contains selected value. + Creates the exact copy of this barcode. + The copy of this barcode. - + - Data string does not contain selected value. + Assigns properties from other, similar barcode. + Barcode object to assign properties from. - + - Data string starts with selected value. + Initializes a new instance of the class with default settings. - + - Data string does not start with selected value. + Generates the Codabar barcode. - + + + + - Data string ends with selected value. + Initializes a new instance of the class with default settings. - + - Data string does not end with selected value. + Specifies the Datamatrix encoding. - + - Specifies the total type. + Specifies the auto encoding. - + - The total returns sum of values. + Specifies the ASCII encoding. - + - The total returns minimal value. + Specifies the C40 encoding. - + - The total returns maximal value. + Specifies the text encoding. - + - The total returns average value. + Specifies the binary encoding. - + - The total returns number of values. + Specifies the X12 encoding. - + - Represents the collection of objects. + Specifies the Edifact encoding. - + - Gets or sets a total. + Specifies the Datamatrix symbol size. - The index of a total in this collection. - The total with specified index. - + - Finds a total by its name. + Specifies the auto size. - The name of a total. - The object if found; otherwise null. - + - Returns an unique total name based on given name. + Specifies the 10x10 size. - The base name. - The unique name. - + - Initializes a new instance of the class with default settings. + Specifies the 12x12 size. - The owner of this collection. - + - Represents a datasource based on DataView class. + Specifies the 8x8 size. - - This class is used to support FastReport.Net infrastructure, do not use it directly. - If you want to use data from DataView object, call the - method of the Report. - - + - Gets the underlying DataView object. + Specifies the 14x14 size. - - - - - - - - - - - - - + - Represents the XmlDataConnection connection string builder. + Specifies the 8x32 size. - - Use this class to parse connection string returned by the XmlDataConnection class. - - + - Gets or sets the path to .xml file. + Specifies the 16x16 size. - + - Gets or sets the path to .xsd file. + Specifies the 12x26 size. - + - Initializes a new instance of the class with default settings. + Specifies the 18x18 size. - + - Initializes a new instance of the class with - specified connection string. + Specifies the 20x20 size. - The connection string. - + - Represents the collection of system variables. + Specifies the 12x36 size. - + - Represents the base class for system variables. + Specifies the 22x22 size. - + - This property is not relevant to this class. + Specifies the 16x36 size. - + - This property is not relevant to this class. + Specifies the 24x24 size. - - - - + - Returns date and time of the report's start. + Specifies the 26x26 size. - - - - + - Returns current page number. + Specifies the 16x48 size. - - - - + - Returns total number of pages in the report. To use this variable, you need - to enable the report's double pass. + Specifies the 32x32 size. - - - - + - Returns a string containing the current page number in a form "Page N". + Specifies the 36x36 size. - - - - + - Returns a string containing the current page number and total pages in a form "Page N of M". - To use this variable, you need to enable the report's double pass. + Specifies the 40x40 size. - - - - + - Returns data row number inside the group. This value is reset at the start of a new group. + Specifies the 44x44 size. - - - - + - Returns absolute number of data row. This value is never reset at the start of a new group. + Specifies the 48x48 size. - - - - + - Returns current page number. - This variable is actually a macro. Its value is substituted when the component is viewed in - the preview window. That means you cannot use it in an expression. + Specifies the 52x52 size. - - - - + - Returns the number of total pages in the report. - This variable is actually a macro. Its value is substituted when the component is viewed in - the preview window. That means you cannot use it in an expression. + Specifies the 64x64 size. - - - - + - Returns the name of the printed copy. - This variable is actually a macro. Its value is substituted when the component is viewed in - the preview window. That means you cannot use it in an expression. + Specifies the 72x72 size. - - - - + - Returns a level of hierarchy in the hierarchical report. + Specifies the 80x80 size. - - - - + - Returns the row number like "1.2.1" in the hierarchical report. + Specifies the 88x88 size. - - - - + - Represents the collection of objects. + Specifies the 96x96 size. - + - Gets or sets a data connection. + Specifies the 104x104 size. - The index of a data connection in this collection. - The data connection with specified index. - + - Initializes a new instance of the class with default settings. + Specifies the 120x120 size. - The owner of this collection. - + - This class represents a single parameter to use in the "select" command. + Specifies the 132x132 size. - + - Gets or sets the parameter's data type. + Specifies the 144x144 size. - + - Gets or sets the size of parameter's data. + Generates the 2D Data Matrix barcode. - - This property is used if the property is set to String. - - + - Gets or sets an expression that returns the parameter's value. + Gets or sets the symbol size. - - If this property is not set, the property will be used - to obtain a parameter's value. - - + - Gets or sets a default value for this parameter. + Gets or sets the encoding mode. - - This value is used when you designing a report. Also it is used when report is running - in case if you don't provide a value for the property. - - + - Gets or sets the parameter's value. + Gets or sets the code page used for text conversion. + + Use this property to encode non-ASCII characters. For example, set this + property to 1251 to use Window CP1251. + - + - This property is not relevant to this class. + Gets or sets the size of the pixel. - - - - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. - + - Represents the collection of objects. + The base class for EAN barcodes. - - This class is used to store the list of parameters defined in the datasource. See the - property for more details. - - + - Gets or sets a parameter. + Initializes a new instance of the class with default settings. - The index of a parameter in this collection. - The parameter with specified index. - + - Finds a parameter by its name. + Generates the EAN8 barcode. - The name of a parameter. - The object if found; otherwise null. - + - Returns an unique parameter name based on given name. + Generates the EAN13 barcode. - The base name. - The unique name. - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. - The owner of this collection. - + - Represents the collection of objects. + Generates the GS1-128 (formerly known as UCC-128 or EAN-128) barcode. - + - Gets or sets a data table. + Initializes a new instance of the class with default settings. - The index of a data table in this collection. - The data table with specified index. - + - Initializes a new instance of the class with default settings. + Generates the Intelligent Mail (USPS) barcode. - The owner of this collection. - + - Represents a report parameter that is used to pass user data to a report. + Gets or sets the value indicating that quiet zone must be shown. - - See for details about using parameters. - - - - Gets or sets the name of parameter. - + + - - - Gets or sets the type of parameter. - + + - + - Gets or sets the value of parameter. + Initializes a new instance of the class with default settings. - - You may specify the static value in this property. Note: if the - property is not empty, it will be calculated and its value will be returned. - - + - Gets or sets value of the parameter as a string. + Generates the 2D MaxiCode barcode. - + - Gets or sets an expression of the parameter. + Sets the MaxiCode mode to use. Only modes 2 to 6 are supported. - - This expression will be calculated each time you access a parameter's Value. - - + - Gets or sets the description of a parameter. + Initializes a new instance of the class with default settings. - - - Gets a collection of nested parameters. - - - Parameters can have child (nested) parameters. To get or set a nested - parameter's value, use the method. - + + - - - Gets the full name of the parameter. This is useful to get the nested parameter's full name. - + + Implements MaxiCode according to ISO 16023:2000. + + MaxiCode employs a pattern of hexagons around a central 'bulls-eye' + finder pattern. Encoding in several modes is supported, but encoding in + Mode 2 and 3 require primary messages to be set. Input characters can be + any from the ISO 8859-1 (Latin-1) character set. + + TODO: Add ECI functionality. + + @author Robin Stuart + @author Daniel Gredler - - - This property is not relevant to this class. - + + MaxiCode module sequence, from ISO/IEC 16023 Figure 5 (30 x 33 data grid). - - + + ASCII character to Code Set mapping, from ISO/IEC 16023 Appendix A. + 1 = Set A, 2 = Set B, 3 = Set C, 4 = Set D, 5 = Set E. + 0 refers to special characters that fit into more than one set (e.g. GS). - - + + ASCII character to symbol value, from ISO/IEC 16023 Appendix A. - - + + Sets the MaxiCode mode to use. Only modes 2 to 6 are supported. + + @param mode the MaxiCode mode to use - - + + Returns the MaxiCode mode being used. Only modes 2 to 6 are supported. + + @return the MaxiCode mode being used - - + + If this MaxiCode symbol is part of a series of MaxiCode symbols appended in a structured format, this method sets the + position of this symbol in the series. Valid values are 1 through 8 inclusive. + + @param position the position of this MaxiCode symbol in the structured append series - - + + Returns the position of this MaxiCode symbol in a series of symbols using structured append. If this symbol is not part of + such a series, this method will return 1. + + @return the position of this MaxiCode symbol in a series of symbols using structured append - - + + If this MaxiCode symbol is part of a series of MaxiCode symbols appended in a structured format, this method sets the total + number of symbols in the series. Valid values are 1 through 8 inclusive. A value of 1 indicates that this symbol is not + part of a structured append series. + + @param total the total number of MaxiCode symbols in the structured append series - - + + Returns the size of the series of MaxiCode symbols using structured append that this symbol is part of. If this symbol is + not part of a structured append series, this method will return 1. + + @return size of the series that this symbol is part of - - + + Sets the primary data. Should only be used for modes 2 and 3. Must conform to the following structure: + + + + + + +
CharactersMeaning
1-9Postal code data which can consist of up to 9 digits (for mode 2) or up to 6 + alphanumeric characters (for mode 3). Remaining unused characters should be + filled with the SPACE character (ASCII 32).
10-12Three-digit country code according to ISO-3166.
13-15Three digit service code. This depends on your parcel courier.
+ + @param primary the primary data
- - + + Returns the primary data for this MaxiCode symbol. Should only be used for modes 2 and 3. + + @return the primary data for this MaxiCode symbol - + + {@inheritDoc} + + + Extracts the postal code, country code and service code from the primary data and returns the corresponding primary message + codewords. + + @return the primary message codewords + + + Returns the primary message codewords for mode 2. + + @param postcode the postal code + @param country the country code + @param service the service code + @return the primary message, as codewords + + + Returns the primary message codewords for mode 3. + + @param postcode the postal code + @param country the country code + @param service the service code + @return the primary message, as codewords + + + Formats text according to Appendix A, populating the {@link #set} and {@link #character} arrays. + + @return true if the content fits in this symbol and was formatted; false otherwise + + + Guesses the best set to use at the specified index by looking at the surrounding sets. In general, characters in + lower-numbered sets are more common, so we choose them if we can. If no good surrounding sets can be found, the default + value returned is the first value from the valid set. + + @param index the current index + @param Length the maximum Length to look at + @param valid the valid sets for this index + @return the best set to use at the specified index + + + Moves everything up so that the specified shift or latch character can be inserted. + + @param position the position beyond which everything needs to be shifted + @param c the latch or shift character to insert at the specified position, after everything has been shifted + + + Returns the error correction codewords for the specified data codewords. + + @param codewords the codewords that we need error correction codewords for + @param ecclen the number of error correction codewords needed + @return the error correction codewords for the specified data codewords + + + {@inheritDoc} + + + {@inheritDoc} + + - Initializes a new instance of the class with default settings. + Generates the MSI barcode. - + - Initializes a new instance of the class with specified name. + Specifies the error correction level used for PDF417 barcode. - + - Represents the collection of objects. + Indicates that correction level should be calculated automatically. - + - Gets or sets a parameter. + Specifies level 0. - The index of a parameter in this collection. - The parameter with specified index. - + - Finds a parameter by its name. + Specifies level 1. - The name of a parameter. - The object if found; otherwise null. - + - Returns an unique parameter name based on given name. + Specifies level 2. - The base name. - The unique name. - + - Copies the parameters from other collection. + Specifies level 3. - Parameters to copy from. - + - Initializes a new instance of the class with default settings. + Specifies level 4. - The owner of this collection. - + - Represents the collection of objects. + Specifies level 5. - + - Gets or sets a relation. + Specifies level 6. - The index of a relation in this collection. - The relation with specified index. - + - Finds a relation by its name. + Specifies level 7. - The name of a relation. - The object if found; otherwise null. - + - Finds a relation by its alias. + Specifies level 8. - The alias of a relation. - The object if found; otherwise null. - + - Finds a relation that is equal to specified one. + Specifies the compaction mode used for PDF417 barcode. - Another relation to compare with. - The object if found; otherwise null. - + - Initializes a new instance of the class with default settings. + Indicates that compaction mode should be calculated automatically. - The owner of this collection. - + - Represents the collection of objects. + Specifies the text compaction mode. - + - Gets or sets a data source. + Specifies the numeric compaction mode. - The index of a data source in this collection. - The data source with specified index. - + - Finds a datasource by its name. + Specifies the binary compaction mode. - The name of a datasource. - The object if found; otherwise null. - + - Finds a datasource by its alias. + Generates the 2D PDF417 barcode. - The alias of a datasource. - The object if found; otherwise null. + This example shows how to configure the BarcodeObject to display PDF417 barcode. + + BarcodeObject barcode; + ... + barcode.Barcode = new BarcodePDF417(); + (barcode.Barcode as BarcodePDF417).CompactionMode = PDF417CompactionMode.Text; + + - + - Initializes a new instance of the class with default settings. + Gets or sets the barcode aspect ratio. - The owner of this collection. + + A ratio or 0.5 will make the barcode width twice as large as the height. + - + - Specifies the format for the column value. + Gets or sets the number of barcode data columns. + + To calculate the necessary number of columns and rows, set the + and properties to 0. In this case, the property + should be set to desired aspect ratio. + - + - The format will be determined automatically depending on the column's DataType. + Gets or sets the number of barcode data rows. + + To calculate the necessary number of columns and rows, set the + and properties to 0. In this case, the property + should be set to desired aspect ratio. + - + - Specifies the General format (no formatting). + Gets or sets the error level correction used for the barcode. - + - Specifies the Number format. + Gets or sets the code page used for text conversion. + + Use this property to encode non-ASCII characters. For example, set this + property to 1251 to use Window CP1251. + - + - Specifies the Currency format. + Gets or sets the compaction mode. - + - Specifies the Date format. + Gets or sets the size of the pixel. - + + Paints the barcode. If no exception was thrown a valid barcode is available. + + + + + - Specifies the Time format. + Initializes a new instance of the class with default settings. - + - Specifies the Percent format. + Generates the Pharmacode barcode. - + - Specifies the Boolean format. + Gets or sets the value indicating that quiet zone must be shown. - + + + + - Specifies the type of an object that will be created when you drop the - data column on a report page. + Initializes a new instance of the class with default settings. - + + + + - The column will create the object. + Generates the Plessey barcode. - + - The column will create the object. + Appends the given pattern to the target array starting at pos. + encode black/white pattern into this array + position to start encoding at in target + lengths of black/white runs to encode + starting color - false for white, true for black + the number of elements added to target. - + - The column will create the object. + Generates the PostNet barcode. - + - The column will create the object. + Specifies the QR code error correction level. - + - The column will create the custom object, specified in the - property. + L = ~7% correction. - + - Represents the collection of objects. + M = ~15% correction. - + - Gets or sets a column. + Q = ~25% correction. - The index of a column in this collection. - The column with specified index. - + - Finds a column by its name. + H = ~30% correction. - The name of a column. - The object if found; otherwise null. - + - Finds a column by its alias. + Specifies the QR Code encoding. - The alias of a column. - The object if found; otherwise null. - - - Returns an unique column name based on given name. - - The base name. - The unique name. - - - - Returns an unique column alias based on given alias. - - The base alias. - The unique alias. - - - - Initializes a new instance of the class with default settings. - - The owner of this collection. - - + - This class stores all report data items such as datasources, connections, relations, parameters, - system variables. + UTF-8 encoding. - - You can access the report dictionary via Report.Dictionary property. - - + - Gets a collection of connection objects available in a report. + ISO 8859-1 encoding. - + - Gets a collection of datasources available in a report. + Shift_JIS encoding. - - Usually you don't need to use this property. It contains only datasources - registered using the RegisterData method. All other datasources are contained - in connection objects and may be accessed via property. - - + - Gets a collection of relations. + Windows-1251 encoding. - + - Gets a collection of parameters. + cp866 encoding. - - Another way to access parameters is to use the Report.Parameters property - which is actually a shortcut to this property. You also may use the Report.GetParameter - and Report.GetParameterValue methods. - - + - Gets a collection of system variables like Date, PageNofM etc. + Generates the 2D QR code barcode. - - Another way to access a system variable is to use the Report.GetVariableValue method. - - + - Gets a collection of totals. + Gets or sets the error correction. - - Another way to get a total value is to use the Report.GetTotalValue method. - - + - Gets a collection of cubesources available in a report. + Gets or sets the encoding used for text conversion. - - Usually you don't need to use this property. It contains only cubesources - registered using the RegisterData method. - - + - Gets a list of registered items. + Gets or sets the value indicating that quiet zone must be shown. - - This property is for internal use only. - - + - - - Registers a DataView. - - The DataView to register. - The name of the data object. - Determines wheter to enable the object or not. - - This method is for internal use only. - - - + - Registers a business object. + Initializes a new instance of the class with default settings. - The business object. - The name of the object. - Maximum level of data nesting. - Determines wheter to enable the object or not. - - This method is for internal use only. - - + - Registers a CubeLink. + Generates the UPC E0 barcode. - The CubeLink to register. - The name of the data object. - Determines wheter to enable the object or not. - - This method is for internal use only. - - + - Registers a data object. + Initializes a new instance of the class with default settings. - The object to register. - The name of the object. - Determines wheter to enable the object or not. - - This method is for internal use only. - - + - Unregisters the previously registered data. + Generates the UPC E1 barcode. - The application data. - + - Unregisters the previously registered data. + Generates the UPC A barcode. - The application data. - The name of the data. - - You must specify the same data and name as when you call RegisterData. - - + - Re-registers the data registered before. + Generates the 2-digit supplement barcode. - - This method is for internal use only. - - + - Re-registers the data registered before. + Initializes a new instance of the class with default settings. - - + - Clears all registered data. + Generates the 5-digit supplement barcode. - + - Enables or disables relations between data tables. + The base class for linear (1D) barcodes. - - Call this method if you create master-detail report from code. This method enables - relation between two data tables which Enabled flag is set to true. Relations - whose parent and child tables are disabled, gets disabled too. - - + - Creates unique name for data item such as connection, datasource, relation, parameter or total. + Gets or sets a value that determines if the barcode object should calculate + the check digit automatically. - The base name. - The new unique name. - - Use this method to create unique name of the data item. It is necessary when you create new - items in code to avoid conflicts with existing report items. - This example show how to add a new parameter: - - Report report1; - Parameter par = new Parameter(); - par.Name = report1.Dictionary.CreateUniqueName("Parameter"); - report1.Parameters.Add(par); - - - - + - Creates unique alias for data item such as connection, datasource or relation. + Gets or sets a relative width of wide bars in the barcode. - The base alias. - The new unique alias. - - Use this method to create unique alias of the data item. It is necessary when you create new - items in code to avoid conflicts with existing report items. - This example show how to add a new table: - - Report report1; - DataConnectionBase conn = report1.Dictionary.Connections.FindByName("Connection1"); - TableDataSource table = new TableDataSource(); - table.TableName = "Employees"; - table.Name = report1.Dictionary.CreateUniqueName("EmployeesTable"); - table.Alias = report1.Dictionary.CreateUniqueAlias("Employees"); - conn.Tables.Add(table); - - - - + - Finds a data item such as connection, datasource, relation, parameter or total by its name. + Gets the value indicating that the barcode is numeric. - The item's name. - The data item if found; otherwise, null. - + - Finds a data item such as connection, datasource or relation by its alias. + Gets or sets a value indicating that leading/trailing whitespaces must be trimmed. - The item's alias. - The data item if found; otherwise, null. + + true if trim; otherwise, false. + - - - Finds a datasource that matches the specified DataTable. - - The DataTable object to check. - The DataSourceBase object if found. - - This method is for internal use only. - + + - + - Finds a data component that matches the specified reference name. + Initializes a new instance of the class with default settings. - The name to check. - The DataComponentBase object if found. - - This method is for internal use only. - - - - - - - - + - Saves the dictionary to a stream. + Specifies an origin where the new objects inserted from. - Stream to save to. - + - Saves the dictionary to a file. + Specifies that a new object was inserted from the "Objects" toolbar or "Insert" menu. - The name of a file to save to. - + - Loads the dictionary from a stream. + Specifies that a new object was dragged from the "Dictionary" window. - The stream to load from. - + - Loads the dictionary from a file. + Specifies that a new object was pasted from the clipboard. - The name of a file to load from. - + - Merges this dictionary with another Dictionary. + Represents the root class of the FastReport object's hierarhy. - Another dictionary to merge the data from. - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Gets a value indicating whether the object is selected in the designer. - + - Represents the item registered in a dictionary. + Gets a value indicating whether one of the object's parent is selected in the designer. - + - Gets the item data. + Deletes the object in the designer. + + This method is called when you delete the object in the designer. + Typically this method calls the method to delete the object and all + its children. You may override it to delete the object only, and keep children. + - + - Gets the item name. + Called before inserting a new object in the designer. + + Do not call this method directly. You may override it if you are developing a + new component for FastReport. + + Some objects are registered in the designer several times with the same object + type, but different flags. For example, the + represents different shapes: rectangle, roundrect, ellipse and so on. All these + shapes are registered in the designer using flags (the last parameter in this + code): + + RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 108, "Objects,Shapes,Rectangle", 0); + RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 109, "Objects,Shapes,RoundRectangle", 1); + RegisteredObjects.Add(typeof(ShapeObject), "ReportPage,Shapes", 110, "Objects,Shapes,Ellipse", 2); + + When we put the "Ellipse" object on a band, the designer creates the + ShapeObject instance and calls its OnBeforeInsert method with + flags value set to 2. In turn, the OnBeforeInsert method converts the + int value of the flags to the shape kind: + + public override void OnBeforeInsert(int flags) + { + FShape = (ShapeKind)flags; + } + + + + Object's flags. - + - Base class for all datasources such as . + Called after the new object was inserted in the designer. + + Do not call this method directly. You may override it if you are developing a new component + for FastReport. + This method is called when new object is inserted, pasted from clipboard or dragged from + "Dictionary" window. You may override this method if you need to perform some actions when object + is inserted. Typical implementation invokes the object's editor if "Edit after insert" flag is set + in the designer options. + + The insertion source. - + - Occurs when the FastReport engine loads data source with data. + Called when the user selects another object in the designer. - Use this event if you want to implement load-on-demand. Event handler must load the data - into the data object which this datasource is bound to (for example, the - TableDataSource uses data from the DataTable object bound to - the Table property). + This method is typically used by the in-place object's editor to check if selection was changed and close + the editor. - + - Gets a number of data rows in this datasource. + Gets the object's context menu. + Null reference if object does not have a menu. - You should initialize the datasource by the Init method before using this property. + Do not call this method directly. You may override it if you are developing a new component + for FastReport. + You may use base menu classes such as , + to create own context menus. - + - Gets a value indicating that datasource has more rows, that is the - is less than the . + Gets or sets the name of the object. - You should initialize the datasource by the Init method before using this property. - Usually this property is used with the following code block: + Name of the report object must contain alpha, digit, underscore symbols only. + Data objects such as Variable, TableDataSource + etc. can have any characters in they names. Each component must have unique + name. + + The following code demonstrates how to find an object by its name: - dataSource.Init(); - while (dataSource.HasMoreRows) - { - // do something... - dataSource.Next(); - } + TextObject text1 = report1.FindObject("Text1") as TextObject; - + + Another object with such name exists. + Rename an object that was introduced in the ancestor report. - + - Gets the current data row. + Gets or sets the flags that restrict some actions in the designer. - This property is updated when you call the method. + Use this property to restrict some user actions like move, resize, edit, delete. For example, if + Restriction.DontMove flag is set, user cannot move the object in the designer. - + - Gets an index of current data row. + Gets the flags that allow some functionality in the designer. - You should initialize the datasource by the Init method before using this property. - This property is updated when you call the method. + Use this property only if you developing a new FastReport object. - + - Gets data stored in a specified column. + Gets or sets the parent of the object. - Alias of a column. - The column's value. - You should initialize the datasource by the Init method before using this property. + Each report object must have a parent in order to appear in the report. Parent must be able to + contain objects of such type. + Another way (preferred) to set a parent is to use specific properties of the parent object. + For example, the object has the collection. + To add a new page to the report, use the following code: report1.Pages.Add(new ReportPage()); + + + Report report1; + ReportPage page = new ReportPage(); + page.Parent = report1; + + Parent object cannot contain this object. - + - Gets data stored in a specified column. + The base part of the object's name. - The column. - The column's value. - You should initialize the datasource by the Init method before using this property. + This property is used to automatically create unique object's name. See - + - Forces loading of data for this datasource. + Gets the short type name. - This property is false by default. Set it to true if you need to reload data - each time when the datasource initialized. Note that this may slow down the performance. + Returns the short type name, such as "TextObject". - + - This property is not relevant to this class. + Gets reference to the parent object. - + - This property is not relevant to this class. + Gets reference to the parent object. - + - This property is not relevant to this class. + Gets the collection of this object's child objects. + + This property returns child objects that belongs to this object. For example, Report.ChildObjects + will return only pages that contains in the report, but not page childs such as bands. To return all + child objects, use property. + - + - This property is not relevant to this class. + Gets the collection of all child objects. + + This property returns child objects that belongs to this object and to child objects of this object. + For example, Report.AllObjects will return all objects that contains in the report - such as + pages, bands, text objects. + - + - This property is not relevant to this class. + Gets or sets the Z-order of the object. + + The Z-order is also called "creation order". It is the index of an object in the parent's objects list. + For example, put two text objects on a band. First object will have ZOrder = 0, second = 1. Setting the + second object's ZOrder to 0 will move it to the back of the first text object. + - + - This property is not relevant to this class. + Gets a value indicating whether the object was introduced in the ancestor report. - + - Gets the additional filter settings. + Gets a value indicating whether the object is in the design state. - + - Gets data stored in a specified column. + Gets a value indicating whether the object is currently printing. - The column alias. - An object that contains the data. - + - Gets data stored in a specified column. + Gets a value indicating whether the object is currently processed by the report engine. - The column. - An object that contains the data. - + - Initializes the datasource schema. + Gets an original component for this object. - This method is used to support the FastReport.Net infrastructure. Do not call it directly. + This property is used in the preview mode. Each object in the prepared report is bound to its + original (from the report template). This technique is used to minimize the prepared report's size. - + - Loads the datasource with data. + Helper method, helps to set a reference-type value to the property. + Old property value. + New property value. - This method is used to support the FastReport.Net infrastructure. Do not call it directly. + This method is used widely to set a new value to the property that references another FastReport object. + Method deals with the property. - Rows to fill with data. + This is example of the DataBand.Header property: + public DataHeaderBand Header + { + get { return FHeader; } + set + { + SetProp(FHeader, value); + FHeader = value; + } + } + - + - Initializes this datasource. + Checks if two float values are different. + First value. + Second value. + true if values are not equal. - This method fills the table with data. You should always call it before using most of - datasource properties. + This method is needed to compare two float values using some precision (0.001). It is useful + to compare objects' locations and sizes for equality. - + - Initializes this datasource and applies the specified filter. + Deserializes nested object properties. - The filter expression. + Reader object. + + Typically the object serializes all properties to the single xml item: + + <TextObject Name="Text2" Left="18.9" Top="37.8" Width="283.5" Height="28.35"/> + + Some objects like have child objects that serialized in subitems: + + <DataBand Name="Data1" Top="163" Width="718.2" Height="18.9"> + <TextObject Name="Text3" Left="18.9" Top="37.8" Width="283.5" Height="28.35"/> + </DataBand> + + To read such subitems, the DeserializeSubItems method is used. Base + implementation reads the child objects. You may override it to read some specific subitems. + + The following code is used to read report's styles: + + protected override void DeserializeSubItems(FRReader reader) + { + if (String.Compare(reader.ItemName, "Styles", true) == 0) + reader.Read(Styles); + else + base.DeserializeSubItems(reader); + } + + - + - Initializes this datasource, applies the specified filter and sorts the rows. + Replaces the macros in the given string and returns the new string. - The filter expression. - The collection of sort descriptors. + The text containing macros. + The text with macros replaced with its values. - + + + + - Initializes this datasource and filters data rows according to the master-detail relation between - this datasource and parentData. + Set object's flags. - Parent datasource. - - To use master-detail relation, you must define the object that describes - the relation, and add it to the Report.Dictionary.Relations collection. - + Flag to set. + true to set the flag, false to reset. - + - Initializes this datasource and filters data rows according to the master-detail relation between - this datasource and parentData. Also applies the specified filter and sorts the rows. + Sets the reference to a Report. - Parent datasource. - The filter expression. - The collection of sort descriptors. - - To use master-detail relation, you must define the object that describes - the relation, and add it to the Report.Dictionary.Relations collection. - + Report to set. - + - Initializes this datasource and filters data rows according to the master-detail relation. - Also applies the specified filter and sorts the rows. + Sets the object's name. - The master-detail relation. - The filter expression. - The collection of sort descriptors. - To use master-detail relation, you must define the object that describes - the relation, and add it to the Report.Dictionary.Relations collection. + This method is for internal use only. It just sets a new name without any checks + (unlike the property setter). + Name Property + New name. - + - Initializes the data source if it is not initialized yet. + Sets the object's parent. + + This method is for internal use only. You can use it if you are developing a new + component for FastReport. Override it to perform some actions when the parent of an + object is changing. This method checks that parent can contain a child. + + Parent object cannot contain this object. + New parent. - + - Navigates to the first row. + Sets the object's parent. + New parent. - You should initialize the datasource by the Init method before using this method. + This method is for internal use only. You can use it if you are developing a new component for FastReport. + This method does not perform any checks, it just sets the new parent. - + - Navigates to the next row. + Searches for an object with given name. - - You should initialize the datasource by the Init method before using this method. - + Name of the object to find. + Returns a null reference if object is not found + The following code demonstrates how to find an object by its name: + + TextObject text1 = report1.FindObject("Text1") as TextObject; + if (text1 != null) + { + // object found + } + + - + - Navigates to the prior row. + Creates the unique object's name. - You should initialize the datasource by the Init method before using this method. + Note: you have to set object's parent before calling this method. Method uses the + property to create a name. + Note: this method may be very slow on a report that contains lots of objects. Consider + using own naming logic in this case. + + + TextObject textObj = new TextObject(); + dataBand1.Objects.Add(textObj); + textObj.CreateUniqueName(); + + - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Clears the object's state. + + This method also disposes all object's children. + - + - Represents the RDL import plugin. + Serializes the object. + + Do not call this method directly. You should override it if you are + developing a new component for FastReport. + This method is called when the object needs to save the state. It may happen + when: + + + saving the report to the file or stream; + + + saving the report to the designer's undo buffer; + + + + assigning the object to another object using the + or AssignAll methods; + + + + saving the object to the designer's clipboard; + + + saving the object to the preview (when run a + report). + + + + Writer object. - + - Initializes a new instance of the class. + Deserializes the object. + + Do not call this method directly. You should override it if you are + developing a new component for FastReport. + This method is called when the object needs to restore the state. It may + happen when: + + + loading the report from a file or stream; + + + loading the report from the designer's undo + buffer; + + + assigning another object to this object using the + or AssignAll methods; + + + loading the object from the designer's + clipboard; + + loading the object from the preview pages. + + + Reader object. - + - Initializes a new instance of the class with a specified designer. + Assigns values from another source. - The report designer. + + Note: this method is relatively slow because it serializes + an object to the xml and then deserializes it. + + Source to assign from. - - + + Copies the contents of another, similar object. + + Call Assign to copy the properties from another object of the same type. + The standard form of a call to Assign is + destination.Assign(source); + + which tells the destination object to copy the contents of the + source object to itself. In this method, all child objects are + ignored. If you want to copy child objects, use the + AssignAll method. + + + + Report report1; + Report report2 = new Report(); + // copy all report settings, do not copy report objects + report2.Assign(report1); + + AssignAll Method + Source object to copy the contents from. - - + + Copies the contents (including children) of another, similar object. + + + This method is similar to method. It copies child + objects as well. + + + + Report report1; + Report report2 = new Report(); + // copy all report settings and objects + report2.AssignAll(report1); + + + Source object to copy the state from. - + - The RDL Size units. + Gets a value indicating whether the object has the specified parent in its parent hierarhy. + Parent object to check. + Returns true if the object has given parent in its parent hierarhy. - + - Specifies the units measured in millimeters. + Gets a value indicating whether the object has a specified flag in its property. + Flag to check. + true if Flags property contains specified flag. - + - Specifies the units measured in centimeters. + Gets a value indicating whether the object has a specified restriction + in its property. + Restriction to check. + true if Restrictions property contains specified restriction. - + - Specifies the units measured in inches. + Invokes script event. + Name of the event to invoke. + Event parameters. + + Do not call this method directly. You should use it if you are developing a new component + for FastReport. + Use this method to call an event handler that is located in the report's script. + + Example of the OnBeforePrint method: + public void OnBeforePrint(EventArgs e) + { + if (BeforePrint != null) + BeforePrint(this, e); + InvokeEvent(BeforePrintEvent, e); + } + - + - Specifies the units measured in points. + Called after all report objects were loaded. + + Do not call this method directly. You may override it if you are developing a new component + for FastReport. + - + - Specifies the units measured in picas. + Gets all expressions contained in the object. + Array of expressions or null if object contains no expressions. + + Do not call this method directly. You may override it if you are developing a + new component for FastReport. + + This method is called by FastReport each time before run a report. FastReport + do this to collect all expressions and compile them. For example, + GetExpressions method of the class + parses the text and returns all expressions found in the text. + + - + - Defines the constants used to convert between RDL Size and pixels. + Returns a custom code that will be added to the report script before report is run. + A custom script text, if any. Otherwise returns null. - To convert pixels to inches, use the code: - inches = pixels / SizeUnitsP.Inch; - To convert inches to pixels, use the code: - pixels = inches * SizeUnitsP.Inch; + This method may return any valid code that may be inserted into the report script. Currently it is + used in the TableObject to define the following script methods: Sum, Min, Max, Avg, Count. + + + Note: you must take into account the current script language - C# or VB.Net. You may check it via + Report.ScriptLanguage property. + - + - The number of pixels in one millimeter. + Used to extract macros such as "TotalPages#" in the preview mode. + + This method is used mainly by the TextObject to extract macros and replace it with + actual values passed in the pageIndex and totalPages parameters. This method + is called automatically when the object is being previewed. + - + - The number of pixels in one centimeter. + Used to get information of the need to convertation if the function returns true, then the GetConvertedObjects function is called + The export or the object, that call this method + By default returns false + + The functions IsHaveToConvert and GetConvertedObjects allow you to convert objects from one to another, + for example the export will convert object before adding it to the file and convert recursive, + i.e. If the new object has the ability to convert, + it will be converted again but limit is 10 times. + At the time of export it is called, only on objects inside the band, + the child objects of converted object will be returned, and the child objects of old object will be ignored. + - + - The number of pixels in one inch. + Used to get an enumeration of the objects to which this object will be converted, before calling this function, the IsHaveToConvert function will be called + By default returns this object + + The functions IsHaveToConvert and GetConvertedObjects allow you to convert objects from one to another, + for example the export will convert object before adding it to the file and convert recursive, + i.e. If the new object has the ability to convert, + it will be converted again but limit is 10 times. + At the time of export it is called, only on objects inside the band, + the child objects of converted object will be returned, and the child objects of old object will be ignored. + - + - The number of pixels in one point. + Gets the collection of all child objects, converts objects if necessary + the object or export, that call this convertation - + - The number of pixels in one pica. + Initializes a new instance of the Base class with default settings. - + - Defines the constants used to convert between RDL Size and millimeters. + Represents a text object which draws each symbol of text in its own cell. - To convert millimeters to inches, use the code: - inches = millimeters / SizeUnitsM.Inch; - To convert inches to millimeters, use the code: - millimeters = inches * SizeUnitsM.Inch; + The text may be aligned to left or right side, or centered. Use the + property to do this. The "justify" align is not supported now, as well as vertical alignment. + The cell size is defined in the and properties. + These properties are 0 by default, in this case the size of cell is calculated automatically based + on the object's Font. + To define a spacing (gap) between cells, use the and + properties. - + - The number of millimeters in one centimeter. + This property is not relevant to this class. - + - The number of millimeters in one inch. + This property is not relevant to this class. - + - The number of millimeters in one point. + This property is not relevant to this class. - + - The number of millimeters in one pica. + This property is not relevant to this class. - + - The RDL units converter. + This property is not relevant to this class. - + - Converts the RDL Boolean to bool value. + This property is not relevant to this class. - The RDL Boolean value. - The bool value. - + - Converts the RDL Color to Color. + This property is not relevant to this class. - The RDL Color value. - The Color value. - + - Converts the RDL Size to float value. + This property is not relevant to this class. - The RDL Size value. - The RDL Size units measure. - The float value of RDL Size. - + - Converts the RDL Size to int value. + This property is not relevant to this class. - The RDL Size value. - The RDL Size units measure. - The int value of RDL Size. - + - Converts the RDL Size to millimeters. + This property is not relevant to this class. - The RDL Size value. - The float value of RDL Size in millimeters. - + - Converts the RDL Size to pixels. + This property is not relevant to this class. - The RDL Size value. - The float value of RDL Size in pixels. - + - Converts the RDL FontStyle to FontStyle. + This property is not relevant to this class. - The RDL FontStyle value. - The FontStyle value. - + - Converts the RDL FontSize to float. + This property is not relevant to this class. - The RDL FontSize value. - The float value of RDL FontSize in points. - + - Converts the RDL TextAlign to HorzAlign. + This property is not relevant to this class. - The RDL TextAlign value. - The HorzAlign value. - + - Converts the RDL TextAlign to VerticalAlign. + This property is not relevant to this class. - The RDL VerticalAlign value. - The VertAlign value. - + - Converts the RDL WritingMode to Angle. + This property is not relevant to this class. - The RDL WritingMode value. - The int value of RDL WritingMode in degree. - + - Converts the RDL TextAlign to StringAlignment. + This property is not relevant to this class. - The RDL TextAling value. - The StringAlignment value. - + - Converts the RDL TextAlign and VerticalAlign to ContentAlignment. + This property is not relevant to this class. - The RDL TextAlign value. - The RDL VerticalAlign value. - The ContentAlignment value. - - - Converts the RDL BorderStyle to LineStyle. - - The RDL BorderStyle value. - The LineStyle value. + + - - - Converts the RDL Sizing to PictureBoxSizeMode. - - The RDL Sizing value. - The PictureBoxSizeMode value. + + - + - Converts the RDL GradientType to GradientStyle. + Gets or sets the width of cell, in pixels. - The RDL GradientType value. - The GradientStyle value. + + If zero width and/or height specified, the object will calculate the cell size + automatically based on its font. + - + - Converts the RDL Chart.Type to SeriesChartType. + Gets or sets the height of cell, in pixels. - The RDL Chart.Type value. - The SeriesChartType value. + + If zero width and/or height specified, the object will calculate the cell size + automatically based on its font. + - + - Converts the RDL Chart.Palette to ChartColorPalette. + Gets or sets the horizontal spacing between cells, in pixels. - The RDL Chart.Palette value. - The RDL ChartColorPalette value. - + - Converts the RDL Chart.Legend.Position to Legend.Docking and Legend.Alignment. + Gets or sets the vertical spacing between cells, in pixels. - The RDL Chart.Legend.Position value. - The Legend instance to convert to. - - - Converts the RDL Chart.Legend.Layout to LegendStyle. - - The RDL Chart.Legend.Layout value. - The LegendStyle value. + + - - - Converts the RDL BorderStyle to ChartDashStyle. - - The RDL BorderStyle value. - The ChartDashStyle value. + + - - - Converts the RDL Axis.Visible to AxisEnabled. - - The RDL Axis.Visible value. - The AxisEnabled value. + + - - - Converts the RDL TickMarkStyle to TickMarkStyle. - - The RDL TickMarkStyle value. - The TickMarkStyle value. + + - + - Converts the RDL Shading to LightStyle. + Initializes a new instance of the class with the default settings. - The RDL Shading value. - The LightStyle value. - + - The components factory. + Represents a check box object. - - - Creates a ReportPage instance in the specified Report. - - The Report instance. - The ReportPage instance. + + - - - Creates a ReportTitleBand instance in the specified ReportPage. - - The ReportPage instance. - The ReportTitleBand instance. + + - - - Creates a ReportSummaryBand instance in the specified ReportPage. - - The ReportPage instance. - The ReportSummaryBand instance. + + - + - Creates a PageHeaderBand instance in the specified ReportPage. + Gets or set a value indicating whether the check box is in the checked state. - The ReportPage instance. - The PageHeaderBand instance. - + - Creates a PageFooterBand instance in the specified ReportPage. + Gets or sets a symbol that will be displayed when the check box is in the checked state. - The ReportPage instance. - The PageFooterBand instance. - + - Creates a ColumnHeaderBand instance in the specified ReportPage. + Gets or sets a symbol that will be displayed when the check box is in the unchecked state. - The ReportPage instance. - The ColumnHeaderBand instance. - + - Creates a ColumnFooterBand instance in the specified ReportPage. + Gets or sets a color of the check symbol. - The ReportPage instance. - The ColumnFooterBand instance. - + - Creates a DataHeaderBand instance in the specified DataBand. + Gets or sets a data column name bound to this control. - The DataBand instance. - The DataHeaderBand instance. + + Value must be in the form "[Datasource.Column]". + - + - Creates a DataBand instance in the specified ReportPage. + Gets or sets an expression that determines whether to show a check. - The ReportPage instance. - The DataBand instance. - + - Creates a DataFooterBand instance in the specified DataBand. + Gets or sets the check symbol width ratio. - The DataBand instance. - The DataFooterBand instance. + + Valid values are from 0.2 to 2. + - + - Creates a GroupHeaderBand instance in the specified ReportPage. + Gets or sets a value determines whether to hide the checkbox if it is in the unchecked state. - The ReportPage instance. - The GroupHeaderBand instance. - + - Creates a GroupFooterBand instance in the cpecified ReportPage. + Gets or sets editable for pdf export - The ReportPage instance. - The GroupFooterBand instance. - - - Creates a ChildBand instance in the specified BandBase. - - The BandBase instance. - The ChildBand instance. + + - + + + + + + + + + + + + + - Creates an OverlayBand in the specified ReportPage. + Initializes a new instance of the CheckBoxObject class with default settings. - The ReportPage instance. - The OverlayBand instance. - + - Creates a TextObject instance with specified name and parent. + This class represents a child band. - The name of the TextObject instance. - The parent of the TextObject instance. - The TextObject instance. + + Typical use of child band is to print several objects that can grow or shrink. It also can be done + using the shift feature (via property), but in some cases it's not possible. + - + + + + + + + - Creates a PictureObject instance with specified name and parent. + Gets or sets a value indicating that band will be used to fill unused space on a page. - The name of the PictureObject instance. - The parent of the PictureObject instance. - The PictureObject instance. + + If you set this property to true, the band will be printed several times to fill + unused space on a report page. + - + - Creates a LineObject instance with specified name and parent. + Gets or sets a value that determines the overall number of data rows printed by the data band. - The name of the LineObject instance. - The parent of the LineObject instance. - The LineObject instance. + + Using this property, you may complete the data band upto N data rows. + If the data band has less number of rows, this band will be used to print empty rows. + - + - Creates a ShapeObject instance with specified name and parent. + Gets or sets a value indicating that the band will be printed if its parent databand is empty. - The name of the ShapeObject instance. - The parent of the ShapeObject instance. - The ShapeObject instance. + + The child band with this property set to true, connected to a databand can be used to print "No data" + text if the databand has no rows. + - + + + + + + + - Creates a PolyLineObject instance with specified name and parent. + Box cloud storage client. - The name of the PolyLineObject instance. - The parent of the PolyLineObject instance. - The PolyLineObject instance. - + - Creates a PolygonObject instance with specified name and parent. + Gets or sets the client info. - The name of the PolygonObject instance. - The parent of the PolygonObject instance. - The PolygonObject instance. - + - Creates a SubreportObject instance with specified name and parent. + Gets or sets the authorization code. - The name of the SubreportObject instance. - The parent of the SubreportObject instance. - The SubreportObject instance. - + - Creates a CheckBoxObject instance with specified name and parent. + Gets or sets the access token. - The name of the CheckBoxObject instance. - The parent of the CheckBoxObject instance. - The CheckBoxObject instance. - + - Creates a HtmlObject instance with specified name and parent. + Initializes a new instance of the class. - The name of the HtmlObject instance. - The parent of the HtmlObject instance. - The HtmlObject instance. - + - Creates a TableObject instance with specified name and parent. + Initializes a new instance of the class. - The name of the TableObject instance. - The parent of the TableObject instance. - The TableObject instance. + The storage client info. - + - Creates a MatrixObject instance with specified name and parent. + Initializes a new instance of the class. - The name of the MatrixObject instance. - The parent of the MatrixObject instance. - The MatrixObject instance. + Client ID. + Client Secret. - + - Creates a BarcodeObject instance with specified name and parent. + Gets the authorization URL. - The name of the BarcodeObject instance. - The parent of the BarcodeObject instance. - The BarcodeObject instance. + The authorization URL stirng. - + - Creates a RichObject instance with specified name and parent. + Gets the access token. - The name of the RichObject instance. - The parent of the RichObject instance. - The RichObject instance. + The access token string. - + + + + + + + - Creates a MSChartObject instance with specified name and parent. + Represents form of Box storage client. - The name of the MSChartObject instance. - The parent of the MSChartObject instance. - The MSChartObject instance. - + - Creates a SparklineObject instance with specified name and parent. + Initializes a new instance of the class. - The name of the SparlineObject instance. - The parent of the SparlineObject instance. - - + - Creates a ZipCodeObject instance with specified name and parent. + Initializes a new instance of the class. - The name of the ZipCodeObject instance. - The parent of the ZipCodeObject instance. - The ZipCodeObject instance. + The information about Box client application. + The report template. - + + + + + + + + + + + + + - Creates a CellularTextObject instance with specified name and parent. + Required designer variable. - The name of the CellularTextObject instance. - The parent ot the CellularTextObject instance. - The CellularTextObject instance. - + - Creates a MapObject instance with specified name and parent. + Clean up any resources being used. - The name of the MapObject instance. - The parent of the MapObject instance. - The MapObject instance. + true if managed resources should be disposed; otherwise, false. - + - Creates a LinearGauge instance with specified name and parent. + Required method for Designer support - do not modify + the contents of this method with the code editor. - The name of the LinearGauge instance. - The parent of the LinearGauge instance. - The LinearGauge instance. - + - Creates a SimpleGauge instance with specified name and parent. + Represents the Client Info diabolg form. - The name of the SimpleGauge instance. - The parent of the SimpleGauge instance. - The SimpleGauge instance. - + - Represents the DevExpess import plubin. + Gets the client ID. - + - Initializes a new instance of the class. + Gets the client secret. - + - Initializes a new instance of the class with a specified designer. + Initializes a new instance of the class. - The report designer. - + - + - The DevExpress units converter. + Required designer variable. - + - Converts SizeF to pixels. + Clean up any resources being used. - SizeF value as string. - The value in pixels. + true if managed resources should be disposed; otherwise, false. - + - Converts DevExpress Color. + Required method for Designer support - do not modify + the contents of this method with the code editor. - The DevExpress Color value as string. - The Color value. - + - Converts DevExpress BackColor. + Represents form of the web browser. - The DevExpress BackColor value as string. - The Color value. - + - Converts the DevExpress BorderDashStyle to LineStyle. + Gets obtained authorization code. - The DevExpress BorderDashStyle value. - The LineStyle value. - - - Converts the DevExpress LineStyle to LineStyle. - - The DevExpress LineStyle value. - The LineStyle value. + + - + - Converts the DevExpress TextAlignment to HorzAlignment. + Required designer variable. - The DevExpress TextAlignment value. - The HorzAlign value. - + - Converts the DevExpress TextAlignment to VertAlignment. + Clean up any resources being used. - The DevExpress TextAlignment value. - The VertAlign value. + true if managed resources should be disposed; otherwise, false. - + - Converts the DevExpress ImageSizeMode to PictureBoxSizeMode. + Required method for Designer support - do not modify + the contents of this method with the code editor. - The ImageSizeMode value as string. - The PictureBoxSizeMode value. - + - Converts the DevExpress Shape to ShapeKind. + FastCloud storage client. - The DevExpress Shape value as string. - The ShapeKind value. - + - Converts the DevExpress Barcode.Symbology to Barcode.Barcode. + Gets or sets the access token. - The DevExpress Barcode.Symbology value as string. - The BarcodeObject instance. - + - Represents the List and Label import plugin. + Gets the report URL that can be used to download report from cloud. - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Initializes a new instance of the class with a specified designer. + Gets the access token. - The report designer. + The access token string. - + - + - + - The List and Label units converter. + Represents form of FastCloud storage client. - + - Converts List and Label units to millimeters. + Initializes a new instance of the class. - The List and Label unit as string. - The value in millimeters. - + - Converts List and Label units to pixels. + Initializes a new instance of the class. - The List and Label unit as string. - The value in pixels. + The report template. - + + + + + + + + + + + + + - Converts List and Label paper orientation. + Required designer variable. - The List and Label paper orientation value as string. - Returns true if orientation is landscape. - + - Converts List and Label bool. + Clean up any resources being used. - The List and Label bool value as string. - A bool value. + true if managed resources should be disposed; otherwise, false. - + - Converts List and Label text Align. + Required method for Designer support - do not modify + the contents of this method with the code editor. - The List and Label text Align value as string. - A HorzAlign value. - + - Convert List and Label LineType to LineStyle. + Represents form of FastCloud storage client. - The List and Label LineType value as string. - A LineStyle value. - + - Converts List and Label rounding to float. + Initializes a new instance of the class. - The List and Label rounding value as string. - A float value. - + - The base class for all designer commands. + Initializes a new instance of the class. + The report template. - + - Gets a value indicating that the command is enabled. + Checks is the string numeric. - - If you use own controls that invoke designer commands, use this property to refresh - the Enabled state of a control that is bound to this command. - - - - - Defines a custom action for this command. - - - Using custom action, you can override the standard behavior of this designer's command. - - - This example demonstrates how to override the "New..." command behavior. - - // add an event handler that will be fired when the designer is run - Config.DesignerSettings.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); - - void DesignerSettings_DesignerLoaded(object sender, EventArgs e) - { - // override "New..." command behavior - (sender as Designer).cmdNew.CustomAction += new EventHandler(cmdNew_CustomAction); - } - - void cmdNew_CustomAction(object sender, EventArgs e) - { - // show the "Label" wizard instead of standard "Add New Item" dialog - Designer designer = sender as Designer; - LabelWizard wizard = new LabelWizard(); - wizard.Run(designer); - } - - + The checking string. + True if string is numeric, otherwise false. - + - Gets a value for the Enabled property. + Gets the proxy settings. - true if command is enabled. + The proxy settings. - + + + + - Invokes the command. + Required designer variable. - + - Invokes the command with specified sender and event args. + Clean up any resources being used. - Sender. - Event args. - - This method is compatible with standard and can be passed - to the event handler constructor directly. - + true if managed resources should be disposed; otherwise, false. - + - Represents the "File|New" command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - - + - Represents the "New Page" toolbar command. + FTP storage client. - - - - - - - + - Represents the "New Dialog" toolbar command. + Gets or sets the FTP server. - - - - - - - + - Represents the "File|Open..." command. Also can be used for loading a file - from the recent files list. + Gets or sets the username. - - - - - + + + Gets or sets the password. + - + - Loads a specified report file. + Initializes a new instance of the class. - File to load. - + - Represents the "File|Save" command. + Initializes a new instance of the class. + The FTP server. + The username. + The password. - - + + + Saves the report to FTP storage. + + The report template that should be saved. + The export filter that should export template before. + True if report has been successfully saved. + - + - + - Represents the "File|Save As..." command. + Represents form of the FTP storage client. - - - - - + + + Initializes a new instance of the class. + - + - Represents the "File|Save All" command. + Initializes a new instance of the class. + The FTP server. + The username. + The password. + The report template. - + - + - - - Represents the "File|Close" command. - - - + - + - + - Represents the "Window|Close All" command. + Required designer variable. - - - - + - Represents the "File|Preview..." command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - - - - + - Represents the "File|Page Setup..." command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - + + + The base class for all cloud storage clients. + - + - Represents the "Report|Options..." command. + Gets or sets the filename. - - + + + Gets or set the information is user authorized or not. + - - + + + Gets or sets the proxy settings of a client. + - + - Represents the "File|Printer Setup..." command. + Initializes a new instance of the class. - - + + + Prepares report before it will be saved to cloud storage. + + The report template. + The export filter. + Memory stream that contains prepared report. - - + + + Creates a MemoryStream instance using a Stream instance. + + The Stream instance that should be converted. + The MemoryStream instance. - + - Represents the "Edit|Undo" command. + Saves the report to cloud storage. + The report template that should be saved. + The export filter that should export template before. + - - + + + Saves the stream to cloud storage. + + The stream that contains report. + The filename in which stream will be saved in cloud. - - + + + Represents form of Dropbox storage client. + - + - Undo several actions. + Gets or sets the report template. - Number of actions to undo. - + - Represents the "Edit|Redo" command. + Gets or sets the list of exports. - - + + + Initializes a new instance of the class. + - - + + + Initializes a new instance of the class. + + The report template. - + - Redo several actions. + Initializes the list of exports. - Number of actions to redo. - + - Represents the "Edit|Cut" command. + Gets the proxy settings. + The proxy settings. - - + + + Initializes the component. + - - + + + Checks is the string numeric. + + The checking string. + True if string is numeric, otherwise false. - + - Represents the "Edit|Copy" command. + Finishes the form work. + Returns true if work has been successfully finished, otherwise false. - + - + - Represents the "Edit|Copy Page" command. + SelectedIndexChanged event handler for ComboBox File Type. + Event sender. + Event args. - - + + + Click event handler for Button Settings. + + Event sender. + Event args. - - + + + FormClosing event handler for CloudStorageClientForm. + + Event sender. + Event args. - + - Represents the "Edit|Paste" command. + Click event handler for button OK. + Event sender. + Event args. - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - + - Represents the "Format Painter" toolbar command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + + + Page File. + - - + + + Page Proxy. + - + - Represents the "Edit|Delete" command. + ComboBox File Type. - - + + + Label File Type. + - - + + + Buttons Settings. + - + - Represents the "Edit|Delete Page" command. + Label Colon. - - + + + Label Password. + - - + + + Label Username. + - + - Represents the "Edit|Select All" command. + Label Server. - - + + + TextBox Username. + - - + + + TextBox Port. + - + - Represents the "Edit|Group" command. + TextBox Server. - - + + + TextBox Password. + - - + + + PageControl. + - + - Represents the "Edit|Ungroup" command. + Represents the Application Info diabolg form. - - + + + Gets the access token. + - + - Represents the "Edit" command. + Initializes a new instance of the class. - + - - + + + Required designer variable. + - + - Represents the "Edit|Find..." command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - - + + + Dropbox cloud storage client. + - + - Represents the "Edit|Replace..." command. + The base URL for files_put command. - + - Represents the "Bring To Front" context menu command. + Gets or sets the application access token. - + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class. + + The Dropbox application access token. + + - + - + - Represents the "Send To Back" context menu command. + Represents form of Dropbox storage client. - - - - + - Represents the "Insert" command. + Initializes a new instance of the class. - - This command has no default action associated with it. Check the Enabled property - to see if the insert operation is enabled. - + The Dropbox access token. + The report template. - + - + - Represents the "Insert Band" command. + Required designer variable. - - This command has no default action associated with it. Check the Enabled property - to see if the insert operation is enabled. - - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - + - Represents the "Data|Add Data Source..." command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + + + Represents the Client Info diabolg form. + - - + + + Gets the client ID. + - + - Represents the "Data|Choose Report Data..." command. + Gets the client secret. - - + + + Initializes a new instance of the class. + - + - + - Represents the "Recent Files" command. + Required designer variable. - - This command has no default action associated with it. Check the Enabled property - to see if the recent files list is enabled. - - - - - + - Represents the "File|Select Language..." command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Represents the "View|Options..." command. + Google Drive cloud storage client. - - + + + Gets or sets the client info. + - + - Represents the "View|Start Page" command. + Gets or sets the authorization code. - - + + + Gets or sets the access token. + - - + + + Initializes a new instance of the class. + - + - Represents the "Report|Styles..." command. + Initializes a new instance of the class. + The storage client info. - - + + + Initializes a new instance of the class. + + Client ID. + Client Secret. - - + + + Gets the authorization URL. + + The authorization URL stirng. - + - Represents the "Help|Help Contents..." command. + Gets the access token. + The access token string. - + - + - + - Represents the "Help|About..." command. + Represents form of Google Drive storage client. - - + + + Initializes a new instance of the class. + - + - Represents the "Show welcome window..." command. + Initializes a new instance of the class. + The information about Google Drive client application. + The report template. - + - + - + + + + + + + - Represents the report's designer control. + Required designer variable. - - Usually you don't need to create an instance of this class. The designer can be called - using the method of - the instance. - This control represents pure designer surface + Objects toolbar. If you need - standard menu, statusbar, toolbars and tool windows, use the - control instead. Also you may - decide to use a designer's form () - instead of a control. - To run a designer, you need to attach a Report instance to it. This can be done via - the property. - To call the designer in MDI (Multi-Document Interface) mode, use the - property. - To set up some global properties, use the static class - or component that you can use in the Visual Studio IDE. - - + - Occurs when designer's UI state changed. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the edited report. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - To initialize the designer, you need to pass a Report instance to this property. - This will create the designer's surface associated with the report. - - Designer designer = new Designer(); - designer.Parent = form1; - designer.Report = report1; - - - + - Gets active report object. + Represents form of the web browser. - - May be null if Start Page selected, or no reports opened. - - + - Gets a collection of global plugins such as menu, properties window, etc. + Gets obtained authorization code. - + + + + - Gets a collection of objects on the active page of the active report. + Required designer variable. - + - Gets a collection of selected objects on the active page of the active report. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets a collection of selected objects of the ComponentBase type. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets a collection of selected objects of the ReportComponentBase type. + Represents form of the web browser. - + - Gets a collection of selected objects of the TextObject type. + Gets obtained authorization code. - + + + + - Gets or sets a value indicating that the report was modified. + Required designer variable. - + - Gets or sets a value that determines whether to ask user to save changes when closing the designer. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets the designer restrictions. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets a value indicating that designer is run in MDI mode. + Represents the information about SkyDrive application. - - To call the designer in MDI (Multi-Document Interface) mode, use the following code: - - DesignerControl designer = new DesignerControl(); - designer.MdiMode = true; - designer.ShowDialog(); - - - + - Gets or sets the visual style. + Gets or sets the client name. - + - Gets a value indicating that designer is used to edit a preview page. + Gets or sets the client ID. - + - The "File|New" command. + Gets or sets the client secret. - + - The "New Page" toolbar command. + Initializes a new instance of the class. + The client name. + The client ID. + The client secret. - + - The "New Dialog" toolbar command. + Represents the Client Info diabolg form. - + - The "File|Open..." command. + Gets the client ID. - + - The "File|Save" command. + Gets the client secret. - + - The "File|Save As..." command. + Initializes a new instance of the class. - + + + + - The "File|Save All" command. + Required designer variable. - + - The "File|Close" command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The "Window|Close All" command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The "File|Preview..." command. + Represents form of SkyDrive storage client. - + - The "File|Printer Setup..." command. + Initializes a new instance of the class. + The SkyDrive client info. + The report template. - + + + + - The "File|Page Setup..." command. + Required designer variable. - + - The "Data|Add New Data Source..." command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The "Data|Choose Report Data..." command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The "Edit|Undo" command. + SkyDrive cloud storage client. - + - The "Edit|Redo" command. + Gets or sets the client info. - + - The "Edit|Cut" command. + Gets or sets the authorization code. - + - The "Edit|Copy" command. + Gets or sets the access token. - + - The "Edit|Paste" command. + Initializes a new instance of the class. - + - The "Format Painter" toolbar command. + Initializes a new instance of the class. + The client info. - + - The "Edit|Delete" command. + Initializes a new instance of the class. + Client ID. + Client Secret. - + - The "Edit|Copy Page" command. + Gets the authorization URL. + The authorization URL string. - + - The "Edit|Delete Page" command. + Gets the access token. + The access token value. - + + + + + + + - The "Edit|Select All" command. + Represents the base form for cloud storage web browsers. - + - The "Edit|Group" command. + Gets or sets the url string. - + - The "Edit|Ungroup" command. + Initizlizes a new instance of the class. - + - The "Edit" command. + Initializes a new instance of the class. + The url string. - + - The "Edit|Find..." command. + Handle the web browser form shown event. + The event sender. + The event args. - + - The "Edit|Replace..." command. + Required designer variable. - + - The "Bring To Front" command. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The "Send To Back" command. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The "Insert" command. + The web browser component. - + - The "Insert Band" command. + Represents an HTTP request method. - + - The "Recent Files" command. + GET request method. - + - The "File|Select Language..." command. + POST request method. - + - The "View|Start Page" command. + PUT request method. - + - The "Report|Options..." command. + Static class that contains HTTP utilities. - + - The "View|Options..." command. + Encodes the URL string. + The URL string. + The encoded URL string. - + - The "Report|Styles..." command. + Encodes the dictionary with URL parameters. + The dictionary with parameters. + The encoded string. - + - The "Help|Help Contents..." command. + Decodes the URL string. + The URL string. + The decoded URL string. - + - The "Help|About..." command. + Represents the consumer. - + - The "Show welcome window..." command. + Gets the consumer key. - + - Gets or sets the layout state of the designer. + Gest the consumer secret. - - This property is used to store layout in Visual Studio design time. You may also use - it to save and restore the designer's layout in your code. However, consider using the - and methods that use FastReport - configuration file. - - + - Fires when the layout is changed. + Gets the consumer's signature method. - - This event is for internal use only. - - + - Initializes designer plugins such as toolbars and toolwindows. + Initializes a new instance of the class. + The consumer key. + The consumer secret. - - - - + - Cancels paste mode. + Represents parser for parse OAuth responses. - + - AutoSave system initialization. + Parses token information in stream. + The stream for parse. + The OAuth token. - + - Stops the AutoSave system. + Parses token information in stream for SkyDrive. + The stream for parse. + The SkyDrive access token. - + - Call this method if you change something in the report. + Parses token information in stream for Google Drive. - - This method adds the current report state to the undo buffer and updates all plugins. - + The stream for parse. + The Google Drive access token. - + - Call this method if you change something in the report. + Parses token information in stream for FastCloud. - The object that was modified. - The undo action name. - - This method adds the current report state to the undo buffer and updates all plugins. - + The stream for parse. + The FastCloud access token. - + - Call this method if you change something in the report. + Represents the service provider. - The object that was modified. - The undo action name. - The name of modified object. - + - Call this method to tell the designer that current selection is changed. + Gets the request token URL. - The plugin that changes the selection (may be null). - + - Locks all plugins. + Gets the user authorization URL. - - This method is usually called when we destroy the report to prevent unexpected - errors - such as trying to draw destroyed objects. - - + - Unlocks all plugins. + Gets the callback URL. - - Call this method after the Lock. - - + - Call this method to refresh all plugins' content. + Gets the access token URL. - The plugin that we don't need to refresh. - + - Saves config to a FastReport configuration file. + Initializes a new instance of the class with a specified parameters. + The request token URL. + The user authorization URL. + The callback URL. + The access token URL. - + - Restores config from a FastReport configuration file. + Represents the OAuth token credentials. - - Call this method to restore the designer's layout. You need to do this after the - designer's control is placed on a form. - - + - Refresh the designer's toolbars and toolwindows layout. + Gets the token key. - - Call this method if you use - DesignerControl. To restore - the layout that you've created in VS design time, you need to call this method in the form's - Load event handler. If you don't do this, tool windows like Properties, Data, Report Tree - will not be available. - - - - - - - - + - Initializes the workspace after the new report is loaded. + Gets the token secret. - + - Tries to create a new empty report. + Initializes a new instance of the class. - true if report was created successfully; false if user cancels the action. + The token key. + The token secret. - + - Displays a message in the "Messages" window. + Represents the user. - Message text. - + - Clears the "Messages" window. + API for OAuth protocol. - + - Shows the selected object's information in the designer's statusbar. + Builds signed URL. - Object's location. - Object's size. - Textual information about the selected object. + The base token URL. + The HTTP method. + The consumer context. + The request token. + Signed URL. - + - Close all opened reports, ask to save changes. + Represents the signature method. - true if all tabs closed succesfully. - - Use this method to close all opened documents and save changes when you closing the main form - that contains the designer control. To do this, create an event handler for your form's FormClosing - event and call this method inside the handler. If it returns false, set e.Cancel to true. - - + - Initializes a new instance of the class with default settings. - - - - - Required designer variable. + Signature method PLAINTEXT. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Signature method HMAC-SHA1. - + - Base class for all export plugins. + Signature method RSA-SHA1. - + - Gets or sets the name of plugin. + Represents proxy settings of the cloud storage. - + - Gets or sets the filter string used in the "Save File" dialog. + Gets or sets the type of proxy. - + - Gets or sets reference to the designer. + Gets or sets the proxy server. - + - Gets or sets reference to the report. + Gets or sets the port number of proxy server. - + - Initializes a new instance of the class with default settings. + Gets or sets the username. - + - Initializes a new instance of the class with a specified designer. + Gets or sets the user's password. - The report designer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Returns a file filter for a save dialog. + Initializes a new instance of the class. - String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" + The type of proxy. + The proxy server. + The port number of server. + The username. + The user's password. - + - Saves the specified report into specified file. + Represents the type of rpoxy. - Report object. - File name. - + - Represents the FR3 export plugin. + The HTTP proxy type. - + - Initializes a new instance of the class. + The SOCKS4 proxy type. - + - Initializes a new instance of the class with a specified designer. + The SOCKS5 proxy type. - The report designer. - - - - - - - + - The FR3 units converter. + Provides utils for the web request. - + - Converts Color to TColor. + Sets proxy settings for web request. - Color value. - String that contains TColor value. + The web request. + The cloud proxy settings. - + - Converts font style. + Represents the parameter of http request. - FontStyle value. - String that contains converted value. - + - Converts horizontal alignment of text. + Gets the name of a request parameter. - HorzAlign value. - String that contains converted value. - + - Converts vertical alignment of text. + Gets the value of a request parameter. - VertAlign value. - String that contains coverted value. - + - Converts font size to delphi font height. + Initializes a naw instance of the class with a specified parameters. - Font size value. - String that contains font height value. + The name of a request parameter. + The value of a request paramter. - + - Convert line style to frame style. + Comparer class for comparing request parameters. - Line style value. - String that contains converted value. - + + + + - Converts barcode type. + This class is used to pass find arguments to some methods of the CodeUtils class. - BarcodeBase instance. - String that contains converted value. - + - Converts BorderLines value. + The start position of the search. After the search, this property points to + the begin of an expression. - BorderLines instance. - String that contains converted value. - + - Converts CheckedSymbol value. + After the search, this property points to the end of an expression. - CheckeSymbol instance. - String that contains converted value. - + - Converts ScaleDock value. + The char sequence used to find the expression's begin. - ScaleDock instance. - String that contains converted value. - + - Converts DashStyle value. + The char sequence used to find the expression's end. - DashStyle instance. - String that contains converted value. - + - Converts TotalType value. + The text with embedded expressions. - TotalType instance. - String that contains converted value. - + - Converts MapLabelKind value. + The last found expression. - MapLabelKind instance. - String that contains converted value. - + - Converts MapPalette value. + This static class contains methods that may be used to find expressions embedded + in the object's text. - MapPalette instance. - String that contains converted value. - + - Converts ShapeKind value. + Returns expressions found in the text. - ShapeKind instance. - String that contains coverted value. + Text that may contain expressions. + The char sequence used to find the start of expression. + The char sequence used to find the end of expression. + Array of expressions if found; otherwise return an empty array. - + - Represents the RDL export plugin. + Gets first expression found in the text. + Object with find arguments. + Indicates whether to skip strings. + The expression if found; otherwise, returns an empty string. - + - Initializes a new instance of the class. + Class that implements some object's properties such as location, size and visibility. - + - Initializes a new instance of the class with a specified designer. + Corrects the object's size and sizing point if the size becomes negative. - The report designer. - - - - - - + Current mouse state. + Typically you don't need to use or override this method. + This method is called by the FastReport designer to check if the object's size becomes negative + when resizing the object by the mouse. Method must correct the object's size and/or position to + make it positive, also change the sizing point if needed. - + - The FR units converter. + Checks if the object is inside its parent. + if true, check now independent of any conditions. + + Typically you don't need to use or override this method. + When you move an object with the mouse, it may be moved outside its parent. If so, this method + must find a new parent for the object and correct it's Left, Top and Parent + properties. If immediately parameter is false, you can optimize the method + to search for new parent only if the object's bounds are outside parent. If this parameter is + true, you must skip any optimizations and search for a parent immediately. + - + - Converts the float size in pixels to string value in millimeters. + Draws the object. - The float value in pixels. - The string value in millimeters. + Paint event args. + + This method is widely used in the FastReport. It is called each time when the object needs to draw + or print itself. + In order to draw the object correctly, you should multiply the object's bounds by the scale + parameter. + cache parameter is used to optimize the drawing speed. It holds all items such as + pens, fonts, brushes, string formats that was used before. If the item with requested parameters + exists in the cache, it will be returned (instead of create new item and then dispose it). + - + - Converts the float size in millimeters to string value in millimeters. + Draw the frame around the object to indicate that it accepts the drag&drop operation. - The float value in millimeters. - The string value in millimeters. + Paint event args. + The color of frame. - + - Converts the bool value to string. + Draw the selection points. - The bool value. - The string value. + Paint event args. + + This method draws a set of selection points returned by the method. + - + + + + - Converts the int size in pixels to string value in pt. + Gets the preferred size of an object. - The int value in pixels. - The string value in pt. + Preferred size. + + This method is called by the FastReport designer when you insert a new object. + - + - Converts the Color value to string. + Returns a "smart tag" menu. - The Color value. - The string representation of Color value. + + "Smart tag" is a little button that appears near the object's top-right corner when we are in the + designer and move the mouse over the object. When you click that button you will see a popup window + where you can set up some properties of the object. FastReport uses smart tags to quickly choose + the datasource (for a band) or data column (for objects). + - + - Converts the LineStyle value to RDL BorderStyle value. + Handles double click event in the designer. - The LineStyle value. - The string with RDL BorderStyle value. + + This method is called when the user doubleclicks the object in the designer. Typical implementation + invokes the object's editor (calls the InvokeEditor method) and sets the designer's + Modified flag. + - + - Converts the GradientStyle value to RDL GradientType value. + Handles the DragDrop event in the designer. - The GradientStyle value. - The string with RDL GradientType value. + Current mouse state. + + This method is called when the user drops an item from the Data Tree window into this object. + This method should copy the information from the e.DraggedObject object and set the + e.Handled flag to true to complete the drag operation. + - + - Converts the FontStyle value to RDL FontStyle value. + Handles the DragOver event in the designer. - The FontStyle value. - The string with RDL FontStyle value. - - - - Converts the FontFamily value to RDL FontFamily value. - - The FontFamily value. - The string with RDL FontFamily value. + Current mouse state. + + This method is called when the user drags an item from the Data Tree window. This method should + check that the mouse (e.X, e.Y) is inside the object, then set the e.Handled flag + to true if an item can be dragged into this object. + - + - Converts the HorzAlign value to RDL TextAlign value. + Handles KeyDown event in the designer. - The HorzAlign value. - The string with RDL TextAling value. + The designer's workspace. + Keyboard event parameters. + + This method is called when the user presses any key in the designer. Typical implementation + does nothing. + - + - Converts the VertAling value to RDL VerticalAling value. + Handles MouseDown event that occurs when the user clicks the mouse in the designer. - The VertAling value. - The string with RDL VerticalAlign value. + + This method is called when the user press the mouse button in the designer. + The standard implementation does the following: + + checks if the mouse pointer is inside the object; + add an object to the selected objects list of the designer; + sets the e.Handled flag to true. + + + Current mouse state. - + - Converts the Angle value to RDL WritingMode value. + Handles MouseMove event that occurs when the user moves the mouse in the designer. - The Angle value. - The string with RDL WritingMode value. + + This method is called when the user moves the mouse in the designer. Typical + use of this method is to change the mouse cursor to SizeAll when it is over + an object. The standard implementation does the following: + + checks if the mouse pointer is inside the object; + changes the cursor shape (e.Cursor property); + sets the e.Handled flag to true. + + + Current mouse state. - + - Converts the FontSize value to RDL FontSize value. + Handles MouseMove event that occurs when the user moves the mouse in the designer. - The FontSize value. - The string with RDL FontSize value. + + This method is called when the user moves the mouse in the designer. The + standard implementation does the following: + + + if mouse button is not pressed, check that mouse pointer is inside one of + the selection points returned by the + method and set the e.SizingPoint member to the corresponding sizing + point; + + if mouse button is pressed, and e.SizingPoint member is not + SizingPoint.None, resize the object. + + + Current mouse state. - + - Converts the PictureBoxSizeMode value to RDL Sizing value. + Handles MouseUp event that occurs when the user releases the mouse button in the designer. - The PictureBoxSizeMode value. - The string with RDL Sizing value. + + This method is called when the user releases the mouse button in the + designer. The standard implementation does the following: + + if e.Mode is WorkspaceMode2.SelectionRect, checks if object + is inside the selection rectangle and sets e.Handled flag if so; + + checks that object is inside its parent (calls the + method). + + + + Current mouse state. - + - Converts the SeriesChartType value to RDL Chart.Type value. + Handles mouse wheel event. - The SeriesChartType value. - The string with RDL Chart.Type value. + Current mouse state. - + - Converts the ChartColorPalette value to RDL Chart.Palette value. + Checks if given point is inside the object's bounds. - The ChartColorPalette value. - The string with RDL Chart.Palette value. + point to check. + true if point is inside the object's bounds. + + You can override this method if your objectis not of rectangular form. + - + - Converts the Legend.Docking and Legend.Alignment values to RDL Chart.Legend.Position value. + Draws the selection point. - The Legend.Docking value. - The Legend.Alignment value. - The string with RDL Chart.Legend.Position value. + Paint event args. + object. + object. + Left coordinate. + Top coordinate. - + - Converts the LegendStyle value to Chart.Legend.Layout value. + Gets the object's selection points. - The LegendStyle value. - The string with RDL Chart.Legend.Layout value. + Array of objects. + + Selection point is a small square displayed at the object's sides when object is selected + in the designer. You can drag this square by the mouse to change the object's size. For example, + the TextObject has eight selection points to change its width and height by the mouse. + If you are developing a new component for FastReport, you may override this method + if your object has non-standard set of selection points. For example, if an object has something like + "AutoSize" property, it would be good to disable all selection points if that property is true, + to disable resizing of the object by the mouse. + - + - Converts the LightStyle value to RDL Shading value. + Gets a value indicating that given point is inside selection point. - The LightStyle value. - The string with RDL Shading value. + point's x coordinate. + point's y coordinate. + selection point. + true if (x,y) is inside the point - + - Converts the ChartDashStyle value to RDL BorderStyle value. + Gets the absolute bottom coordinate of the object. - The ChartDashStyle value. - The string with RDL ChartDahsStyle value. - + - Converts the ContentAlignment value to RDL TextAlign value. + Gets the absolute bounding rectangle of the object. - The ContentAlignment value. - The string with RDL TextAlign value. - + - Converts the ContentAlignment value to RDL VerticalAlign value. + Gets the absolute left coordinate of the object. - The ContentAlignment value. - The string with RDL VerticalAlign value. - + - Converts the AxisEnabled value to RDL Axis.Visible value. + Gets the absolute right coordinate of the object. - The AxisEnabled value. - The string with RDL Axis.Visible value. - + - Converts the TickMarkStyle value to RDL TickMarkStyle value. + Gets the absolute top coordinate of the object. - The TickMarkStyle value. - The string with RDL TickMarkStyle value. - + - Converts the StringAlignment value to RDL TextAlign value. + Gets or sets the edges of the container to which a control is bound and determines how a control + is resized with its parent. - The StringAlignment value. - The string with RDL TextAlign value. + + Use the Anchor property to define how a control is automatically resized as its parent control + is resized. Anchoring a control to its parent control ensures that the anchored edges remain in the + same position relative to the edges of the parent control when the parent control is resized. + You can anchor a control to one or more edges of its container. For example, if you have a band + with a TextObject whose Anchor property value is set to Top, Bottom, the TextObject is stretched to + maintain the anchored distance to the top and bottom edges of the band as the height of the band + is increased. + - + - Represents the standard report designer. + Gets the bottom coordinate of the object in relation to its container. - This control extends the control with - standard menu, status bar, and toolbars. - To choose toolbars and tool windows in design-time, click the "View" menu - in this control and select what you want to see. Toolbars can be reordered using the mouse. - To restore the designer layout at runtime, you need to call the - RefreshLayout method in your - form's Load event handler. + To change the bottom coordinate, change the and/or properties. - + - Gets the main menu. + Gets or sets the bounding rectangle of the object. + + Assigning a value to this property is equal to assigning values to the , + , , properties. + - + - Gets or sets a value indicating whether the main menu should be displayed or not. + Gets or sets the size of client area of the object. + + This property is used in the class. + - + - Gets or sets a value indicating whether the status bar should be displayed or not. + Gets or sets which control borders are docked to its parent control and determines how a control + is resized with its parent. + + Use the Dock property to define how a control is automatically resized as its parent control is + resized. For example, setting Dock to DockStyle.Left causes the control to align itself with the + left edges of its parent control and to resize as the parent control is resized. + A control can be docked to one edge of its parent container or can be docked to all edges and + fill the parent container. + - - - - - - - + - Initializes a new instance of the class with default settings. + Gets or sets a group index. + + Group index is used to group objects in the designer (using "Group" button). When you select + any object in a group, entire group becomes selected. To reset a group, set the GroupIndex + to 0 (default value). + - + - Initializes a new instance of the class for compatibility with new statusbar and using with ribbon UI. + Gets or sets the height of the object. + + This property value is measured in the screen pixels. Use class to + convert a value to desired units. + + The following example demonstrates how to convert between pixels and units: + TextObject text1; + // set Height to 10mm + text1.Height = Units.Millimeters * 10; + // convert a value to millimeters + MessageBox.Show("Height = " + (text1.Height / Units.Millimeters).ToString() + "mm"); + - + - Required designer variable. + Gets or sets the left coordinate of the object in relation to its container. + + + This property value is measured in the screen pixels. Use + class to convert a value to desired units. + + + To obtain absolute coordinate, use property. + + + The following example demonstrates how to convert between pixels and units: + TextObject text1; + // set Left to 10mm + text1.Left = Units.Millimeters * 10; + // convert a value to millimeters + MessageBox.Show("Left = " + (text1.Left / Units.Millimeters).ToString() + "mm"); + - + - Clean up any resources being used. + Gets the right coordinate of the object in relation to its container. - true if managed resources should be disposed; otherwise, false. + + To change the right coordinate, change the and/or properties. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the Tag string for this component. - + - Represents standard designer's form. + Gets or sets the top coordinate of the object in relation to its container. - This form contains the . Use the - property to get access to this control. - Usually you don't need to create an instance of this class. The designer can be called - using the method of - the instance. - If you decided to use this class, you need: - - - create an instance of this class; - - - set the Designer.Report property to report that you need to design; - - - call either ShowModal or Show methods to display a form. - - + + This property value is measured in the screen pixels. Use + class to convert a value to desired units. + + + To obtain absolute coordinate, use property. + + The following example demonstrates how to convert between pixels and units: + TextObject text1; + // set Top to 10mm + text1.Top = Units.Millimeters * 10; + // convert a value to millimeters + MessageBox.Show("Top = " + (text1.Top / Units.Millimeters).ToString() + "mm"); + - + - Gets a reference to the control which is actually a designer. + Gets or sets a value indicating whether the object is displayed in the preview window. + + Setting this property to false will hide the object in the preview window. + + The following report script will control the Text1 visibility depending on the value of the + data column: + private void Data1_BeforePrint(object sender, EventArgs e) + { + Text1.Visible = [Orders.Shipped] == true; + } + - + - Gets a list of File menu buttons + Gets or sets a value that determines if the object can be printed on the printer. + + Object with Printable = false is still visible in the preview window, but not on the printout. + If you want to hide an object in the preview, set the property to false. + - + - Creates a new instance of the class with default settings. + Gets or sets the width of the object. + + This property value is measured in the screen pixels. Use class to + convert a value to desired units. + + The following example demonstrates how to convert between pixels and units: + TextObject text1; + // set Width to 10mm + text1.Width = Units.Millimeters * 10; + // convert a value to millimeters + MessageBox.Show("Width = " + (text1.Width / Units.Millimeters).ToString() + "mm"); + - + - Creates a new instance of the class with default settings. + Initializes a new instance of the class with default settings. - enables welcome window - + - + - - + + + Split Container Control + - - + + + Constructor + - - + + + TreeView control with multiselect support. + + + This control is for internal use only. + - + + + Creates a new instance of the TreeViewMultiSelect control. + + + + + Gets a copy of list of selected nodes. + + + - + - + - + - + - + - Required designer variable. + Represents the combobox used to select a data column. - + - Clean up any resources being used. + Occurs when the text portion of the combobox is changed. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - + - Represents the designer's main menu. + Gets or sets the data source. - - To get this menu, use the following code: - - Designer designer; - DesignerMenu menu = designer.Plugins.FindType("DesignerMenu") as DesignerMenu; - - - + - The "File" menu. + Gets or sets the Report. - - - The "File|New..." menu. - + + - - - The "File|Open..." menu. - + + - + + + + + + + - The "File|Close" menu. + Initializes a new instance of the class. - + - The "File|Save" menu. + Specifies how text in a is horizontally aligned. - + - The "File|Save as..." menu. + The text is aligned to the left. - + - The "File|Save All" menu. + The text is aligned to the right. - + - The "File|Page Setup..." menu. + The text is aligned in the center. - + - The "File|Printer Setup..." menu. + The text is justified. - + - The "File|Preview..." menu. + Gets or sets the alignment to apply to the current + selection or insertion point. + + Replaces the SelectionAlignment from . + - + - The "File|Select Language" menu. + Convert between screen pixels and twips (1/1440 inch, used by Win32 API calls) + Value in screen pixels + Value in twips - + - The "File|Exit" menu. + Convert between screen pixels and twips (1/1440 inch, used by Win32 API calls) + Value in twips + Value in screen pixels - + - The "Edit" menu. + Calculate or render the contents of RichTextBox for printing + Graphics object + Graphics object to measure richtext for + Bonding rectangle of the RichTextBox + Index of first character to be printed + Index of last character to be printed + If true, only the calculation is performed, + otherwise the text is rendered as well + (Index of last character that fitted on the page) + 1 - + - The "Edit|Undo" menu. + Calculate or render the contents of RichTextBox for printing + Graphics object + Graphics object to measure richtext for + Bonding rectangle of the RichTextBox + Index of first character to be printed + Index of last character to be printed + If true, only the calculation is performed, + otherwise the text is rendered as well + The calculated text height + (Index of last character that fitted on the page) + 1 - + - The "Edit|Redo" menu. + This is an internal enum that represents the selected datatree item type. - + - The "Edit|Cut" menu. + Nothing selected. - + - The "Edit|Copy" menu. + Data column selected. - + - The "Edit|Paste" menu. + Total selected. - + - The "Edit|Delete" menu. + Parameter selected. - + - The "Edit|Copy Page" menu. + Function selected. - + - The "Edit|Delete Page" menu. + Dialog control selected. - + - The "Edit|Select All" menu. + This is an internal control that represents the data tree. + + This control is for internal use only. + - + - The "Edit|Group" menu. + DataSource property - + - The "Edit|Ungroup" menu. + SelectedItem property - + - The "Edit|Find..." menu. + SelectedItemType property - + - The "Edit|Replace..." menu. + - + - The "View" menu. + - + - The "View|Toolbars" menu. + - + - The "View|Start Page" menu. + - + - The "View|Options..." menu. + - + - The "Insert" menu. + - + - The "Report" menu. + - + - The "Report|Options..." menu. + - + - The "Data" menu. + - + - The "Data|Choose Report Data..." menu. + - + - The "Data|Add Data Source..." menu. + - + - The "Data|Show Data Dictionary" menu. + - + - The "Window" menu. + + - + - The "Window|Close All" menu. + Creates a new instance of the DataTreeView control. - + - The "Help" menu. + Represents a control that may contain several pages. It is similar to the TabControl + but contains no tabs. This control is widely used in wizards. - + - The "Help|Help Contents..." menu. + Occurs when page is selected. - + - The "Help|About..." menu. + Gets or sets a value that determines whether the selector area is visible or not. - - + + + Gets or sets the height of selector tab. + - - + + + This property is not relevant to this class + - - + + + Gets or sets the active page. + - - + + + Gets or sets the index of active page. + - - + + + Gets or sets the highlighted page index. + - - + + + Gets the collection of pages. + - + - + - + - + - + - Creates a new menu item. + Gets tab at specified mouse point. - New menu item. + The mouse point. + Index of tab under mouse; -1 if mouse is outside tab area. - + - Creates a new menu item. + Selects the next page. - Click handler. - New menu item. - + - Creates a new menu item. + Selects the previous page. - Item's image. - Click handler. - New menu item. - + - Creates a new menu item. + Initializes a new instance of the class with default settings. - Item's text. - Click handler. - New menu item. - + - Creates a new menu item. + This class represents a single page of the control. - Item's image. - Item's text. - Click handler. - New menu item. - + - Initializes a new instance of the class with default settings. + Gets or sets the page caption text. - The report designer. - + - Represents the designer's statusbar. + Represents the control that combines a textbox and a button. - - - - - - - - - - - + + + Occurs when the textbox is changed. + - - + + + Occurs when the button is clicked. + - + - - + + + Gets or sets the button's image. + - + - + - + - + - Updates the information about location and size. + Initializes a new instance of the class. - The location. - The size. - + - Updates the name and text information. + Represents a combobox that allows to choose a color. - The text. + + This control may be useful if you write own components for FastReport. + - + - Initializes a new instance of the class with default settings. + This event is raised when you select a color. - The report designer. - + - Base class for all designer toolbars. + Gets or sets the selected color. - - Use this class to write own designer's toolbar. To do this: - - in the constructor, set the Name property and create toolbar buttons. - The Name will be used to restore toolbar's state; - - override the SelectionChanged method. This method is called when current selection - is changed. In this method, you should update buttons state to reflect the current selection. - Selected objects can be accessed via Designer.SelectedObjects property; - - override the UpdateContent method. This method is called when the report - content was changed. Typically you need to do the same actions in SelectionChanged and - UpdateContent methods; - - to register a toolbar, add its type to the global collection: - - DesignerPlugins.Add(typeof(MyToolbar)); - - - - + - Gets the report designer. + Gets or sets value indicating whether it is necessary to show a color name in a combobox. - - - - - - - - - - - - - - - - - - - - - - + - + - + - - - Creates a new button. - - Button's name. - Button's image. - Click handler. - New button. - - + - Creates a new button. + Initializes a new instance of the class with default settings. - Button's name. - Button's image. - Button's tooltip text. - Click handler. - New button. - + - Initializes a new instance of the class with default settings. + Represents a drop-down control that allows to choose a color. - The report designer. - You don't need to call this constructor. The designer will do this automatically. + This control may be useful if you write own components for FastReport. - + - Provides a data for the designer ReportLoaded event. + This event is raised when you select a color. - + - The current report. + Gets or sets the selected color. - + - Represents the method that will handle the designer ReportLoaded event. + Initializes a new instance of the class with default settings. - The source of the event. - The event data. - + - Provides a data for the designer ObjectInserted event. + Represents a popup window that alows to choose a color. + + This control may be useful if you write own components for FastReport. + - + - Gets the inserted object. + This event is raised when you select a color. - + - Gets the source where the object is inserted from. + Gets or sets the selected color. - + - Represents the method that will handle the designer ObjectInserted event. + Initializes a new instance of the class with default settings. - The source of the event. - The event data. + The main form that owns this popup control. - + - Provides a data for the designer's custom dialog events. + Represents the label with line. - + + + + - Gets or sets a file name. + Initializes a new instance of the class. - - This property contains the location of a report. If you work with files (like the - standard "Open" and "Save" dialogs do), treat this property as a file name. - - + - Gets or sets a value indicating that the dialog was cancelled. + Represents a popup form. - This property is used to tell the designer that the user was cancelled the dialog. + Use this form if you want to show some controls in non-modal borderless form that + behaves like other standard popup controls such as context menu. This form does not + move a focus from the parent form. - + - Gets or sets the custom data that is shared across events. + Shows the form. - - You may set the Data in the OpenDialog event and use it later in the OpenReport event. - + The control which location is used as a reference for pt parameter. + The location relative to the ctl control. - + - Gets a report designer. + Shows the form. + The control which location is used as a reference for x, y parameters. + The x position relative to the ctl control. + The y position relative to the ctl control. - + - Represents the method that will handle the designer's custom dialogs event. + Shows the form. - The source of the event. - The event data. + The absolute screen location. - + - Provides a data for the designer's custom dialog events. + Initializes a new instance of the class with default settings. + The main form that owns this popup form. - + - Gets a report. + Handler which allows to prevent canceling of popup window - - Use this report in the load/save operations. - + Popup helper + Event arguments - + - Gets a file name. + Contains event information for a PopupClosed event. - - This property contains the location of a report that was selected by the user in the - open/save dialogs. If you work with files (like the standard "Open" and "Save" dialogs do), - treat this property as a file name. - - + - Gets the custom data that was set in the OpenDialog event. + The popup form. - + - Represents the method that will handle the designer's custom dialogs event. + Gets the popup form which is being closed. - The source of the event. - The event data. - + - Provides data for the FilterConnectionTables event. + Constructs a new instance of this class for the specified + popup form. + Popup Form which is being closed. - + - Gets the Connection object. + Arguments to a PopupCancelEvent. Provides a + reference to the popup form that is to be closed and + allows the operation to be cancelled. - + - Gets the table name. + Whether to cancel the operation - + - Gets or sets a value that indicates whether this table should be skipped. + Mouse down location - + - Represents the method that will handle the FilterConnectionTables event. + Popup form. - The source of the event. - The event data. - + - Provides data for the CustomQueryBuilder event. + Constructs a new instance of this class. + The popup form + The mouse location, if any, where the + mouse event that would cancel the popup occured. - + - Gets the Connection object. + Gets the popup form - + - Gets or sets the query text. + Gets the location that the mouse down which would cancel this + popup occurred - + - Gets or sets the query parameters. + Gets/sets whether to cancel closing the form. Set to + true to prevent the popup from being closed. - + - Represents the method that will handle the CustomQueryBuilder event. + Represents the method which responds to a PopupClosed event. - The source of the event. - The event data. - + - This class contains settings that will be applied to the report designer. + Represents the method which responds to a PopupCancel event. - + - Occurs when the designer is loaded. + A class to assist in creating popup windows like Combo Box drop-downs and Menus. + This class includes functionality to keep the title bar of the popup owner form + active whilst the popup is displayed, and to automatically cancel the popup + whenever the user clicks outside the popup window or shifts focus to another + application. - - Use this event if you want to customize some aspects of the designer, for example, - to hide some menu items. - - - This example demonstrates how to hide the "File|Select Language..." menu item. - - Config.DesignerSettings.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); - - void DesignerSettings_DesignerLoaded(object sender, EventArgs e) - { - (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; - } - - - + - Occurs when the designer is closed. + Event Handler to detect when the popup window is closed - + - Occurs when the report is loaded. + Message filter to detect mouse clicks anywhere in the application + whilst the popup window is being displayed. - + - Occurs when a report page or a dialog form is added to the report. + The popup form that is being shown. - - Use this event if you want to customize the page properties. - - - This example demonstrates how to change the default page margins. - - Config.DesignerSettings.PageAdded += new EventHandler(DesignerSettings_PageAdded); - - void DesignerSettings_PageAdded(object sender, EventArgs e) - { - if (sender is ReportPage) - (sender as ReportPage).TopMargin = 0; - } - - - + - Occurs when object is inserted. + The owner of the popup form that is being shown: - + - Occurs when the report designer is about to show the "Open" dialog. - - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will open the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Whether the popup is showing or not. + - + - Occurs when the report designer is about to show the "Save" dialog. - - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will save the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Whether the popup has been cancelled, notified by PopupCancel, + rather than closed. +
- + - Occurs when the report designer is about to load the report. - - This event is used together with the event. - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - load the e.Report from the location specified in the e.FileName property. - For example, if you work with files: e.Report.Load(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Raised when the popup form is closed. +
- + - Occurs when the report designer is about to save the report. - - This event is used together with the event. - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - save the e.Report to the location specified in the e.FileName property. - For example, if you work with files: e.Report.Save(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Raised when the Popup Window is about to be cancelled. The + property can be + set to true to prevent the form from being cancelled. +
- + - Occurs when previewing a report from the designer. - - - Use this event to show own preview window. - - + Shows the specified Form as a popup window, keeping the + Owner's title bar active and preparing to cancel the popup + should the user click anywhere outside the popup window. + Typical code to use this message is as follows: - Config.DesignerSettings.CustomPreviewReport += new EventHandler(MyPreviewHandler); - - private void MyPreviewHandler(object sender, EventArgs e) - { - Report report = sender as Report; - using (MyPreviewForm form = new MyPreviewForm()) - { - report.Preview = form.previewControl1; - report.ShowPreparedReport(); - form.ShowDialog(); - } - } + frmPopup popup = new frmPopup(); + Point location = this.PointToScreen(new Point(button1.Left, button1.Bottom)); + popupHelper.ShowPopup(this, popup, location); - + Put as much initialisation code as possible + into the popup form's constructor, rather than the System.Windows.Forms.Load + event as this will improve visual appearance. +
+ Main form which owns the popup + Window to show as a popup + Location relative to the screen to show the popup at.
- + - Occurs when getting available table names from the connection. + Responds to the + event from the popup form. - - Use this handler to filter the list of tables returned by the connection object. - - - This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. - - Config.DesignerSettings.FilterConnectionTables += DesignerSettings_FilterConnectionTables; - - private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) - { - if (e.TableName == "Table 1") - e.Skip = true; - } - - + Popup form that has been closed. + Not used. - + - Occurs when the query builder is called. + Subclasses the owning form's existing Window Procedure to enables the + title bar to remain active when a popup is show, and to detect if + the user clicks onto another application whilst the popup is visible. - - Subscribe to this event if you want to replace the embedded query builder with your own one. - + Window Procedure Message - + - Gets or sets the icon for the designer window. + Called when the popup is being hidden. - + - Gets or sets the default font used in a report. + Raises the event. + describing the + popup form that is being closed. - + - Gets or sets a value indicating whether the designer window is displayed in the Windows taskbar. + Raises the event. + describing the + popup form that about to be cancelled. - + - Gets the designer restrictions flags. + Default constructor. + Use the + method to attach this class to the form you want to show popups from. - + - Gets or sets the title text for the designer window. + A Message Loop filter which detect mouse events whilst the popup form is shown + and notifies the owning class when a mouse + click outside the popup occurs. - - If no text is set, the default text "FastReport -" will be used. - - + - Gets or sets application-defined DbConnection object that will be used in the designer - to create a new datasource. + Raised when the Popup Window is about to be cancelled. The + property can be + set to true to prevent the form from being cancelled. - - The application connection object is used in the "Data Wizard" to create new datasources. - In this mode, you can't create any other connections in the wizard; only application - connection is available. You still able to choose tables or create a new queries inside - this connection. The connection information (ConnectionString) is not stored in the report file. - - + - Gets the toolstrip renderer. + The popup form - + - Adds a custom connection used in the "Data Wizard" window. + The owning object. - - Use this method to provide own connection strings for the "Data Wizard" dialog. To do this, you need - to pass the type of connection object and connection string associated with it. You must use one of the - connection objects registered in FastReport that inherit from the - class. - To clear the custom connections, use the method. - - - This example shows how to add own connection string. - - Config.DesignerSettings.AddCustomConnection(typeof(MsAccessDataConnection), @"Data Source=c:\data.mdb"); - - - + - Clears the custom connections added by the AddCustomConnection method. + Constructs a new instance of this class and sets the owning + object. + The object + which owns this class. - + - Initializes a new instance of the class. + Gets/sets the popup form which is being displayed. - + - Base class for all import plugins. + Checks the message loop for mouse messages whilst the popup + window is displayed. If one is detected the position is + checked to see if it is outside the form, and the owner + is notified if so. + Windows Message about to be processed by the + message loop + true to filter the message, false otherwise. + This implementation always returns false. - + - Gets or sets the name of plugin. + Checks the mouse location and calls the OnCancelPopup method + if the mouse is outside the popup form. - + - Gets or sets the filter string used in the "Open File" dialog. + Raises the event. + The associated + with the cancel event. - + - Gets or sets reference to the designer. + Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. - + - Gets or sets reference to the report. + Represents the crossview object that is used to print cube slice or slicegrid. - - + + + This property is not relevant to this class. + - + - Initializes a new instance of the class with default settings. + This property is not relevant to this class. - + - Initializes a new instance of the class with a specified designer. + This property is not relevant to this class. - The report designer. - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - + - + - + - + - - + + + Allows to modify the prepared matrix elements such as cells, rows, columns. + - + - Returns a file filter for a open dialog. + Gets or sets a value indicating whether to show a title row. - String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - Loads the specified file into specified report. + Gets or sets a value indicating whether to show a X Axis fields Caption. - Report object. - File name. - + - Represents a set of designer's restrictions. + Gets or sets a value indicating whether to show a Y Axis fields Caption. - + - Gets or sets a value that enables or disables the "Open" action. + Gets or sets a matrix style. - + - Gets or sets a value that enables or disables the "Save/Save as" actions. + Gets or sets a script method name that will be used to handle the + event. + + See the event for more details. + - + - Gets or sets a value that enables or disables the "New..." action. + - + - Gets or sets a value that enables or disables the "Preview" action. + - + - Gets or sets a value that enables or disables the recent files list. + - + - Gets or sets a value that enables or disables the "Code" tab. + - + - Gets or sets a value that enables or disables the "Data" menu. + Gets or sets a cube source. - + - Gets or sets a value that enables or disables the "Data|Add New Data Source..." menu. + Gets the object that holds data of Cube + + See the class for more details. + - + + + + + + + + + + - Gets or sets a value that enables or disables the "Report|Options..." menu. + Creates or updates the matrix template. + + Call this method after you modify the matrix descriptors using the + object's properties. + - + + + + + + + + + + + + + + + + - Gets or sets a value that enables or disables insertion of objects. + This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Event data. - + - Gets or sets a value that enables or disables the insertion of bands. + Initializes a new instance of the class. - + - Gets or sets a value that enables or disables the "Delete Page" action. + - + - Gets or sets a value that enables or disables the creation of report/dialog pages. + - + - Gets or set a value that enables or disbles the "Copy Page" action. + - + - Gets or sets a value that enables or disables the "Page Setup" action. + - + - Copies the contents of another, similar object. + - Source object to copy the contents from. - + - Creates exact copy of this object. + - The copy of this object. - + - Represents the "Messages" window. + - - To get this window, use the following code: - - Designer designer; - MessagesWindow window = designer.Plugins.FindType("MessagesWindow") as MessagesWindow; - - - - + + + + - + - Clears the message list. + - + - Adds a new message. + - The message text. - The name of object related to a message. + + - + - Adds a new script-related message. + Represents interface of the source for object. - The message text. - The line of the script. - The column of the script. - + - Initializes a new instance of the class with default settings. + - The report designer. - + - Represents the "Data Dictionary" window. + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - + - Initializes a new instance of the class with default settings. + - The report designer. - + - Describes an item dragged from the "Data Dictionary" window. + - + - The dragged object. + - + - The text of dragged object. + - + - Collection of dragged items. + - + - Represents the "Properties" window. + - - + + + + - - + + + The descriptor that is used to describe one CrossView data cell. + + + The class is used to define one data cell of the CrossView. + To set visual appearance of the data cell, use the + property. + The collection of descriptors used to represent the CrossView data cells is stored + in the CrossViewObject.Data.Cells property. + - - + + + Gets a value indicating that this is the "GrandTotal" element on X axis. + - - + + + Gets a value indicating that this is the "GrandTotal" element on Y axis. + - - + + + Gets a value indicating that this is the "Total" element on X axis. + - - + + + Gets a value indicating that this is the "Total" element on Y axis. + - - + + + Gets the name of field in X axis. + - + - Initializes a new instance of the class with default settings. + Gets the name of field in Y axis. - The report designer. - + - Represents the "Report Tree" window. + Gets the name of measure in cube. - - + + + Gets the x coordinate. + - + + + Gets the y coordinate. + + + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class - The report designer. + The Field Name in X axis. + The Field Name in Y axis. + The Measure Name. + Indicates the "XTotal" element. + Indicates the "YTotal" element. + Indicates the "XGrandTotal" element. + Indicates the "YGrandTotal" element. - + - Base class for all tool windows such as "Properties", "Data Dictionary" etc. + Initializes a new instance of the class - - Use this class to create own tool window. To do this: - - in the constructor, set the Name and Image properties and create necessary controls. - The Name will be used to restore window's state; - - override the SelectionChanged method. This method is called when current selection - is changed. In this method, you should update buttons state to reflect the current selection. - Selected objects can be accessed via Designer.SelectedObjects property; - - override the UpdateContent method. This method is called when the report - content was changed. Typically you need to do the same actions in SelectionChanged and - UpdateContent methods; - - to register a toolwindow, add its type to the global collection: - - DesignerPlugins.Add(typeof(MyToolWindow)); - - - - + - Gets the report designer. + Represents a collection of CrossView data descriptors used in the . - + - Gets a value indicating that window is locked. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Gets or sets shortcut keys used to show this toolwindow. + Adds the specified descriptors to the end of this collection. + Array of descriptors to add. - - - - + - Gets or sets a value indicating that the toolwindow can be closed by the x button. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Gets a parent control that contains all controls. + Inserts a descriptor into this collection at the specified index. - - Add your control to the parent control Controls collection. - - - - + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Shows the toolwindow. + Removes the specified descriptor from the collection. + Descriptor to remove. - + - Hides the toolwindow. + Returns the zero-based index of the first occurrence of a descriptor. + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - - - - - - - - + + + Determines whether a descriptor is in the collection. + + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - - + + + Copies the elements of this collection to a new array. + + An array containing copies of this collection elements. - + - + - - + + + + - + - Implements method. + Contains a set of properties and methods to hold and manipulate the CrossView descriptors. - The options page, if implemented; otherwise, null. - - - + + This class contains three collections of descriptors such as , + and . Descriptors are filled from FastCube Slice. + - + - Initializes a new instance of the class with default settings. + - The report designer. - - You don't need to call this constructor. The designer will do this automatically. - - + - Represents collection of designer plugins. + - - This class is used in the Designer.Plugins property. - To register own plugin, add its type to the global collection: - - DesignerPlugins.Add(typeof(MyToolbar)); - - - - + - Finds a plugin by its name. + - The plugin's name. - The plugin, if found; otherwise, null. - This example shows how to find a plugin. - - MessagesWindow window = designer.Plugins.Find("MessagesWindow") as MessagesWindow; - - - + - Finds a plugin by its type name. + - The plugin's type name. - The plugin, if found; otherwise, null. - This example shows how to find a plugin. - - MessagesWindow window = designer.Plugins.FindType("MessagesWindow") as MessagesWindow; - - - + - Represents list of registered design plugins. + - + - Adds a new plugin's type. + - The type of a plugin. - + - Provides functionality required for report designer plugins such as toolbars and toolwindows. + - + - Gets the plugin name. + - + - Saves the plugin state. + - This example shows how to save the state: - - public void SaveState() - { - XmlItem xi = Config.Root.FindItem("Designer").FindItem(Name); - xi.SetProp("ShowGrid", DialogWorkspace.ShowGrid ? "1" : "0"); - } - - - + - Restores the plugin state. + - This example shows how to restore the state: - - public void RestoreState() - { - XmlItem xi = Config.Root.FindItem("Designer").FindItem(Name); - DialogWorkspace.ShowGrid = xi.GetProp("ShowGrid") != "0"; - } - - - + - Updates plugin state when current selection was changed. + + + + + + + + + + + + + + + + Gets a collection of column descriptors. - Typically you need to do the same work in the and - methods. + Note: after you change something in this collection, call the + method to refresh the CrossView. - + - Updates plugin state when the report was modified. + Gets a collection of row descriptors. - Typically you need to do the same work in the and - methods. + Note: after you change something in this collection, call the + method to refresh the CrossView. - + - Locks the plugin. + Gets a collection of data cell descriptors. - This method is called by the designer when report is loading. It may be needed to disable - some operations (like painting) that use the report. + Note: after you change something in this collection, call the + method to refresh the CrossView. - + - Unlocks the plugin. + The base class for matrix element descriptors such as and + . - This method is called by the designer when report is loaded. It follows the Lock - method call and must reset the lock. - + - Localizes the plugin. + Gets or sets an expression which value will be used to fill the matrix. - This method is called by the designer when current localization is changed. + Expression may be any valid expression. Usually it's a data column: + [DataSource.Column]. - + - Gets an options page that will be used in the Designer Options dialog to edit the plugin options. + Gets or sets the template column bound to this descriptor. - The options page, if implemented; otherwise, null. + + This property is for internal use; usually you don't need to use it. + - + - Updates UI style of the plugin. + Gets or sets the template row bound to this descriptor. - The plugin should update its style according to the designer's UIStyle property. + This property is for internal use; usually you don't need to use it. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Represents a Windows CheckBox. - Wraps the control. + Gets or sets the template cell bound to this descriptor. + + Using this property, you may access the matrix cell which is bound to + this descriptor. It may be useful to change the cell's appearance. + + Before using this property, you must initialize the matrix descriptors by + calling the method. + + + + + CrossViewObject crossView; + // change the fill color of the first matrix cell + crossView.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); + + - - - - + - Occurs when the value of the Checked property changes. - Wraps the event. + Assigns values from another descriptor. + Descriptor to assign values from. - - - Gets an internal CheckBox. - + + - + + + + - Gets or sets the value that determines the appearance of a CheckBox control. - Wraps the property. + Represents a collection of CrossView header descriptors used in the . - + - Gets or sets the horizontal and vertical alignment of the check mark on a CheckBox control. - Wraps the property. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Gets or set a value indicating whether the CheckBox is in the checked state. - Wraps the property. + Adds the specified descriptors to the end of this collection. + Array of descriptors to add. - + - Gets or sets the state of the CheckBox. - Wraps the property. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Gets or sets a value indicating whether the CheckBox will allow three check states rather than two. - Wraps the property. + Inserts a descriptor into this collection at the specified index. + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Gets or sets a script method name that will be used to handle the - event. + Removes the specified descriptor from the collection. + Descriptor to remove. - - - - - - - - - - - - - + - This method fires the CheckedChanged event and the script code connected to the CheckedChangedEvent. + Returns the zero-based index of the first occurrence of a descriptor. - Event data. + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - + - Initializes a new instance of the CheckBoxControl class with default settings. + Determines whether a descriptor is in the collection. + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - + - Represents a Windows combo box control. - Wraps the control. + Copies the elements of this collection to a new array. + An array containing copies of this collection elements. - - - - + - + - + - Occurs after the selection has been changed. - Wraps the event. + - + - Occurs each time an owner-drawn ComboBox item needs to be drawn and - when the sizes of the list items are determined. - Wraps the event. + The descriptor that is used to describe one element of the CrossView header. + + The class is used to define one header element of the CrossView + (either the column element or row element). + To set visual appearance of the element, use the + property. + The collection of descriptors used to represent the CrossView header is stored + in the CrossViewObject.Data.Columns and CrossViewObject.Data.Rows properties. + - + - Occurs when a visual aspect of an owner-drawn ComboBox changes. - Wraps the event. + Gets a value indicating that this is the "GrandTotal" element. - + - Gets an internal ComboBox. + Gets a value indicating that this is the "Total" element. - + - Gets or sets a value indicating whether your code or the operating system will handle drawing of elements in the list. - Wraps the property. + Gets a value indicating that this is the "Measure" element. - + - Gets or sets a value specifying the style of the combo box. - Wraps the property. + Gets the name of field in cube. - + - Gets or sets the width of the of the drop-down portion of a combo box. - Wraps the property. + Gets the name of measure in cube. - + - Gets or sets the height in pixels of the drop-down portion of the ComboBox. - Wraps the property. + Gets the cell coordinate. - + - Gets or sets the height of an item in the combo box. - Wraps the property. + Gets the size in cell coordinate. - + - Gets a collection of the items contained in this ComboBox. - Wraps the property. + Gets the level coordinate. - + - Gets or sets the maximum number of items to be shown in the drop-down portion of the ComboBox. - Wraps the property. + Gets the size in level coordinate. - - - Gets or sets a value indicating whether the items in the combo box are sorted. - Wraps the property. - + + - - - Gets or sets the string that contains all items text. - + + - + - Gets or sets the index specifying the currently selected item. - Wraps the property. + Initializes a new instance of the class + The Field Name. + The Measure Name. + Indicates the "Total" element. + Indicates the "GrandTotal" element. + Indicates the "Measure" element. - + - Gets or sets currently selected item in the ComboBox. - Wraps the property. + Initializes a new instance of the class - + - Gets or sets a script method name that will be used to handle the - event. + Represents the RDL import plugin. - + - Gets or sets a script method name that will be used to handle the - event. + Initializes a new instance of the class. - + - Gets or sets a script method name that will be used to handle the - event. + Initializes a new instance of the class with a specified designer. + The report designer. - - - - - - - - - - - - - + - + - + - This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. + The RDL Size units. - Event data. - + - This method fires the MeasureItem event and the script code connected to the MeasureItemEvent. + Specifies the units measured in millimeters. - Event data. - + - This method fires the DrawItem event and the script code connected to the DrawItemEvent. + Specifies the units measured in centimeters. - Event data. - + - Initializes a new instance of the ComboBoxControl class with default settings. + Specifies the units measured in inches. - + - Implements base behavior of button controls. + Specifies the units measured in points. - + - This property is not relevant to this class. + Specifies the units measured in picas. - + - Gets or sets a value that indicates whether the control resizes based on its contents. - Wraps the property. + Defines the constants used to convert between RDL Size and pixels. + + To convert pixels to inches, use the code: + inches = pixels / SizeUnitsP.Inch; + To convert inches to pixels, use the code: + pixels = inches * SizeUnitsP.Inch; + - + - Gets or sets the image that is displayed on a button control. - Wraps the property. + The number of pixels in one millimeter. - + - Gets or sets the alignment of the image on the button control. - Wraps the property. + The number of pixels in one centimeter. - + - Gets or sets the alignment of the text on the button control. - Wraps the property. + The number of pixels in one inch. - + - Gets or sets the position of text and image relative to each other. - Wraps the property. + The number of pixels in one point. - - - - - - - + - Represents a Windows button control. - Wraps the control. + The number of pixels in one pica. - - - - - - - + - This property is not relevant to this class. + Defines the constants used to convert between RDL Size and millimeters. + + To convert millimeters to inches, use the code: + inches = millimeters / SizeUnitsM.Inch; + To convert inches to millimeters, use the code: + millimeters = inches * SizeUnitsM.Inch; + - + - This property is not relevant to this class. + The number of millimeters in one centimeter. - + - This property is not relevant to this class. + The number of millimeters in one inch. - + - This property is not relevant to this class. + The number of millimeters in one point. - + - Gets an internal Button. + The number of millimeters in one pica. - + - Gets or sets a value that is returned to the parent form when the button is clicked. - Wraps the property. + The RDL units converter. - - - - + - Initializes a new instance of the ButtonControl class with default settings. + Converts the RDL Boolean to bool value. + The RDL Boolean value. + The bool value. - + - Displays a ListBox in which a check box is displayed to the left of each item. - Wraps the control. + Converts the RDL Color to Color. + The RDL Color value. + The Color value. - + - This property is not relevant to this class. + Converts the RDL Size to float value. + The RDL Size value. + The RDL Size units measure. + The float value of RDL Size. - + - This property is not relevant to this class. + Converts the RDL Size to int value. + The RDL Size value. + The RDL Size units measure. + The int value of RDL Size. - + - Occurs after item's check state was changed. - Wraps the event. + Converts the RDL Size to millimeters. + The RDL Size value. + The float value of RDL Size in millimeters. - + - Gets an internal CheckedListBox. + Converts the RDL Size to pixels. + The RDL Size value. + The float value of RDL Size in pixels. - + - Gets or sets a value indicating whether the check box should be toggled when an item is selected. - Wraps the property. + Converts the RDL FontStyle to FontStyle. + The RDL FontStyle value. + The FontStyle value. - + - Collection of checked indexes in this CheckedListBox. - Wraps the property. + Converts the RDL FontSize to float. + The RDL FontSize value. + The float value of RDL FontSize in points. - + - Collection of checked items in this CheckedListBox. - Wraps the property. + Converts the RDL TextAlign to HorzAlign. + The RDL TextAlign value. + The HorzAlign value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the RDL TextAlign to VerticalAlign. + The RDL VerticalAlign value. + The VertAlign value. - - - - - - - - - - - - - - - - + - This method fires the ItemCheck event and the script code connected to the ItemCheckEvent. + Converts the RDL WritingMode to Angle. - Event data. + The RDL WritingMode value. + The int value of RDL WritingMode in degree. - + - Initializes a new instance of the CheckedListBoxControl class with default settings. + Converts the RDL TextAlign to StringAlignment. + The RDL TextAling value. + The StringAlignment value. - + - Displays a hierarchical collection of labeled items, each represented by a TreeNode. - Wraps the control. + Converts the RDL TextAlign and VerticalAlign to ContentAlignment. + The RDL TextAlign value. + The RDL VerticalAlign value. + The ContentAlignment value. - + - This property is not relevant to this class. + Converts the RDL BorderStyle to LineStyle. + The RDL BorderStyle value. + The LineStyle value. - - - - - - - + - Occurs after the tree node is selected. - Wraps the event. + Converts the RDL Sizing to PictureBoxSizeMode. + The RDL Sizing value. + The PictureBoxSizeMode value. - + - Gets an internal TreeView. + Converts the RDL GradientType to GradientStyle. + The RDL GradientType value. + The GradientStyle value. - + - Gets or sets a value indicating whether check boxes are displayed next to the tree nodes in the tree view control. - Wraps the property. + Converts the RDL Chart.Type to SeriesChartType. + The RDL Chart.Type value. + The SeriesChartType value. - + - Gets or sets a value indicating whether lines are drawn between tree nodes in the tree view control. - Wraps the property. + Converts the RDL Chart.Palette to ChartColorPalette. + The RDL Chart.Palette value. + The RDL ChartColorPalette value. - + - Gets or sets a value indicating whether lines are drawn between the tree nodes that are at the root of the tree view. - Wraps the property. + Converts the RDL Chart.Legend.Position to Legend.Docking and Legend.Alignment. + The RDL Chart.Legend.Position value. + The Legend instance to convert to. - + - Gets or sets the ImageList that contains the Image objects used by the tree nodes. - Wraps the property. + Converts the RDL Chart.Legend.Layout to LegendStyle. + The RDL Chart.Legend.Layout value. + The LegendStyle value. - + - Gets the collection of tree nodes that are assigned to the tree view control. - Wraps the property. + Converts the RDL BorderStyle to ChartDashStyle. + The RDL BorderStyle value. + The ChartDashStyle value. - + - Gets or sets the tree node that is currently selected in the tree view control. - Wraps the property. + Converts the RDL Axis.Visible to AxisEnabled. + The RDL Axis.Visible value. + The AxisEnabled value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the RDL TickMarkStyle to TickMarkStyle. + The RDL TickMarkStyle value. + The TickMarkStyle value. - - - - - - - - - - + - This method fires the AfterSelect event and the script code connected to the AfterSelectEvent. + Converts the RDL Shading to LightStyle. - Event data. + The RDL Shading value. + The LightStyle value. - + - Initializes a new instance of the class with default settings. + The components factory. - + - Represents a Windows text box control. - Wraps the control. + Creates a ReportPage instance in the specified Report. + The Report instance. + The ReportPage instance. - - - - - - - - - - - - - + - Gets an internal TextBox. + Creates a ReportTitleBand instance in the specified ReportPage. + The ReportPage instance. + The ReportTitleBand instance. - + - Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form. - Wraps the property. + Creates a ReportSummaryBand instance in the specified ReportPage. + The ReportPage instance. + The ReportSummaryBand instance. - + - Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order. - Wraps the property. + Creates a PageHeaderBand instance in the specified ReportPage. + The ReportPage instance. + The PageHeaderBand instance. - + - Gets or sets whether the TextBox control modifies the case of characters as they are typed. - Wraps the property. + Creates a PageFooterBand instance in the specified ReportPage. + The ReportPage instance. + The PageFooterBand instance. - + - Gets or sets the maximum number of characters the user can type or paste into the text box control. - Wraps the property. + Creates a ColumnHeaderBand instance in the specified ReportPage. + The ReportPage instance. + The ColumnHeaderBand instance. - + - Gets or sets a value indicating whether this is a multiline TextBox control. - Wraps the property. + Creates a ColumnFooterBand instance in the specified ReportPage. + The ReportPage instance. + The ColumnFooterBand instance. - + - Gets or sets a value indicating whether text in the text box is read-only. - Wraps the property. + Creates a DataHeaderBand instance in the specified DataBand. + The DataBand instance. + The DataHeaderBand instance. - + - Gets or sets which scroll bars should appear in a multiline TextBox control. - Wraps the property. + Creates a DataBand instance in the specified ReportPage. + The ReportPage instance. + The DataBand instance. - + - Gets or sets how text is aligned in a TextBox control. - Wraps the property. + Creates a DataFooterBand instance in the specified DataBand. + The DataBand instance. + The DataFooterBand instance. - + - Gets or sets a value indicating whether the text in the TextBox control should appear as the default password character. - Wraps the property. + Creates a GroupHeaderBand instance in the specified ReportPage. + The ReportPage instance. + The GroupHeaderBand instance. - + - Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary. - Wraps the property. + Creates a GroupFooterBand instance in the cpecified ReportPage. + The ReportPage instance. + The GroupFooterBand instance. - - - - - - - - - - + - Initializes a new instance of the TextBoxControl class with default settings. + Creates a ChildBand instance in the specified BandBase. + The BandBase instance. + The ChildBand instance. - + - Enables the user to select a single option from a group of choices when paired with other RadioButton controls. - Wraps the control. + Creates an OverlayBand in the specified ReportPage. + The ReportPage instance. + The OverlayBand instance. - - - - + - Occurs when the value of the Checked property changes. - Wraps the event. + Creates a TextObject instance with specified name and parent. + The name of the TextObject instance. + The parent of the TextObject instance. + The TextObject instance. - + - Gets an internal RadioButton. + Creates a PictureObject instance with specified name and parent. + The name of the PictureObject instance. + The parent of the PictureObject instance. + The PictureObject instance. - + - Gets or sets the location of the check box portion of the RadioButton. - Wraps the property. + Creates a LineObject instance with specified name and parent. + The name of the LineObject instance. + The parent of the LineObject instance. + The LineObject instance. - + - Gets or sets a value indicating whether the control is checked. - Wraps the property. + Creates a ShapeObject instance with specified name and parent. + The name of the ShapeObject instance. + The parent of the ShapeObject instance. + The ShapeObject instance. - + - Gets or sets a script method name that will be used to handle the - event. + Creates a PolyLineObject instance with specified name and parent. + The name of the PolyLineObject instance. + The parent of the PolyLineObject instance. + The PolyLineObject instance. - - - - - - - - - - - - - + - This method fires the CheckedChanged event and the script code connected to the CheckedChangedEvent. + Creates a PolygonObject instance with specified name and parent. - Event data. + The name of the PolygonObject instance. + The parent of the PolygonObject instance. + The PolygonObject instance. - + - Initializes a new instance of the RadioButtonControl class with default settings. + Creates a SubreportObject instance with specified name and parent. + The name of the SubreportObject instance. + The parent of the SubreportObject instance. + The SubreportObject instance. - + - Represents a Windows picture box control for displaying an image. - Wraps the control. + Creates a CheckBoxObject instance with specified name and parent. + The name of the CheckBoxObject instance. + The parent of the CheckBoxObject instance. + The CheckBoxObject instance. - + - This property is not relevant to this class. + Creates a HtmlObject instance with specified name and parent. + The name of the HtmlObject instance. + The parent of the HtmlObject instance. + The HtmlObject instance. - - - - + - Gets an internal PictureBox. + Creates a TableObject instance with specified name and parent. + The name of the TableObject instance. + The parent of the TableObject instance. + The TableObject instance. - + - Indicates the border style for the control. - Wraps the property. + Creates a MatrixObject instance with specified name and parent. + The name of the MatrixObject instance. + The parent of the MatrixObject instance. + The MatrixObject instance. - + - Gets or sets the image that the PictureBox displays. - Wraps the property. + Creates a BarcodeObject instance with specified name and parent. + The name of the BarcodeObject instance. + The parent of the BarcodeObject instance. + The BarcodeObject instance. - + - Indicates how the image is displayed. - Wraps the property. + Creates a RichObject instance with specified name and parent. + The name of the RichObject instance. + The parent of the RichObject instance. + The RichObject instance. - - - - + - Initializes a new instance of the PictureBoxControl class with default settings. + Creates a MSChartObject instance with specified name and parent. + The name of the MSChartObject instance. + The parent of the MSChartObject instance. + The MSChartObject instance. - + - Base class for controls that may contain child controls. + Creates a SparklineObject instance with specified name and parent. + The name of the SparlineObject instance. + The parent of the SparlineObject instance. + - - - - - - - - - - - - - + - Gets the collection of child controls. + Creates a ZipCodeObject instance with specified name and parent. + The name of the ZipCodeObject instance. + The parent of the ZipCodeObject instance. + The ZipCodeObject instance. - - - - - - - - - - - - - - - - - + + + Creates a CellularTextObject instance with specified name and parent. + + The name of the CellularTextObject instance. + The parent ot the CellularTextObject instance. + The CellularTextObject instance. - - + + + Creates a MapObject instance with specified name and parent. + + The name of the MapObject instance. + The parent of the MapObject instance. + The MapObject instance. - + - Initializes a new instance of the ParentControl class with default settings. + Creates a LinearGauge instance with specified name and parent. + The name of the LinearGauge instance. + The parent of the LinearGauge instance. + The LinearGauge instance. - + - Used to group collections of controls. - Wraps the control. + Creates a SimpleGauge instance with specified name and parent. + The name of the SimpleGauge instance. + The parent of the SimpleGauge instance. + The SimpleGauge instance. - + - This property is not relevant to this class. + Represents the DevExpess import plubin. - + - Gets an internal Panel. + Initializes a new instance of the class. - + - Indicates the border style for the control. - Wraps the property. + Initializes a new instance of the class with a specified designer. + The report designer. - + - - + + + The DevExpress units converter. + - + - Initializes a new instance of the PanelControl class with default settings. + Converts SizeF to pixels. + SizeF value as string. + The value in pixels. - + - Represents a Windows spin box (also known as an up-down control) that displays numeric values. - Wraps the control. + Converts DevExpress Color. + The DevExpress Color value as string. + The Color value. - + - This property is not relevant to this class. + Converts DevExpress BackColor. + The DevExpress BackColor value as string. + The Color value. - - - - - - - - - - + - Occurs when the Value property has been changed in some way. - Wraps the event. + Converts the DevExpress BorderDashStyle to LineStyle. + The DevExpress BorderDashStyle value. + The LineStyle value. - + - Gets an internal NumericUpDown. + Converts the DevExpress LineStyle to LineStyle. + The DevExpress LineStyle value. + The LineStyle value. - + - Gets or sets the number of decimal places to display in the up-down control. - Wraps the property. + Converts the DevExpress TextAlignment to HorzAlignment. + The DevExpress TextAlignment value. + The HorzAlign value. - + - Gets or sets a value indicating whether the up-down control should display the value it contains in hexadecimal format. - Wraps the property. + Converts the DevExpress TextAlignment to VertAlignment. + The DevExpress TextAlignment value. + The VertAlign value. - + - Gets or sets the value to increment or decrement the up-down control when the up or down buttons are clicked. - Wraps the property. + Converts the DevExpress ImageSizeMode to PictureBoxSizeMode. + The ImageSizeMode value as string. + The PictureBoxSizeMode value. - + - Gets or sets the maximum value for the up-down control. - Wraps the property. + Converts the DevExpress Shape to ShapeKind. + The DevExpress Shape value as string. + The ShapeKind value. - + - Gets or sets the minimum value for the up-down control. - Wraps the property. + Converts the DevExpress Barcode.Symbology to Barcode.Barcode. + The DevExpress Barcode.Symbology value as string. + The BarcodeObject instance. - + - Gets or sets a value indicating whether a thousands separator is displayed in the up-down control when appropriate. - Wraps the property. + Represents the List and Label import plugin. - + - Gets or sets the value assigned to the up-down control. - Wraps the property. + Initializes a new instance of the class. - + - Gets or sets a script method name that will be used to handle the - event. + Initializes a new instance of the class with a specified designer. + The report designer. - - - - - - - - - - + - + - + - This method fires the ValueChanged event and the script code connected to the ValueChangedEvent. + The List and Label units converter. - Event data. - + - Initializes a new instance of the NumericUpDownControl class with default settings. + Converts List and Label units to millimeters. + The List and Label unit as string. + The value in millimeters. - + - Represents a Windows control that enables the user to select a date using a visual monthly calendar display. - Wraps the control. + Converts List and Label units to pixels. + The List and Label unit as string. + The value in pixels. - - - - - - - - - - - - - + - Occurs when the date selected in the MonthCalendar changes. - Wraps the event. + Converts List and Label paper orientation. + The List and Label paper orientation value as string. + Returns true if orientation is landscape. - + - Gets an internal MonthCalendar. + Converts List and Label bool. + The List and Label bool value as string. + A bool value. - + - Gets or sets the number of columns and rows of months displayed. - Wraps the property. + Converts List and Label text Align. + The List and Label text Align value as string. + A HorzAlign value. - + - Gets or sets the first day of the week as displayed in the month calendar. - Wraps the property. + Convert List and Label LineType to LineStyle. + The List and Label LineType value as string. + A LineStyle value. - + - Gets or sets the maximum allowable date. - Wraps the property. + Converts List and Label rounding to float. + The List and Label rounding value as string. + A float value. - + - Gets or sets the maximum number of days that can be selected in a month calendar control. - Wraps the property. + The base class for all designer commands. - + - Gets or sets the minimum allowable date. - Wraps the property. + Gets a value indicating that the command is enabled. + + If you use own controls that invoke designer commands, use this property to refresh + the Enabled state of a control that is bound to this command. + - - - Gets or sets a value indicating whether the date represented by the TodayDate property is displayed at the bottom of the control. - Wraps the property. - + + + Defines a custom action for this command. + + + Using custom action, you can override the standard behavior of this designer's command. + + + This example demonstrates how to override the "New..." command behavior. + + // add an event handler that will be fired when the designer is run + Config.DesignerSettings.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); + + void DesignerSettings_DesignerLoaded(object sender, EventArgs e) + { + // override "New..." command behavior + (sender as Designer).cmdNew.CustomAction += new EventHandler(cmdNew_CustomAction); + } + + void cmdNew_CustomAction(object sender, EventArgs e) + { + // show the "Label" wizard instead of standard "Add New Item" dialog + Designer designer = sender as Designer; + LabelWizard wizard = new LabelWizard(); + wizard.Run(designer); + } + + - + - Gets or sets a value indicating whether today's date is circled. - Wraps the property. + Gets a value for the Enabled property. + true if command is enabled. - + - Gets or sets a value indicating whether the month calendar control displays week numbers (1-52) to the left of each row of days. - Wraps the property. + Invokes the command. - + - Gets or sets the value that is used by MonthCalendar as today's date. - Wraps the property. + Invokes the command with specified sender and event args. + Sender. + Event args. + + This method is compatible with standard and can be passed + to the event handler constructor directly. + - + - Gets or sets the array of DateTime objects that determines which annual days are displayed in bold. - Wraps the property. + Represents the "File|New" command. - - - Gets or sets the array of DateTime objects that determines which nonrecurring dates are displayed in bold. - Wraps the property. - + + - - - Gets or sets the array of DateTime objects that determine which monthly days to bold. - Wraps the property. - + + - + - Gets or sets the end date of the selected range of dates. - Wraps the property. + Represents the "New Page" toolbar command. - - - Gets or sets the selected range of dates for a month calendar control. - Wraps the property. - + + - - - Gets or sets the start date of the selected range of dates. - Wraps the property. - + + - + - Gets or sets a script method name that will be used to handle the - event. + Represents the "New Dialog" toolbar command. - + - + - - + + + Represents the "File|Open..." command. Also can be used for loading a file + from the recent files list. + - + - - - This method fires the DateChanged event and the script code connected to the DateChangedEvent. - - Event data. + + - + - Initializes a new instance of the MonthCalendarControl class with default settings. + Loads a specified report file. + File to load. - + - Uses a mask to distinguish between proper and improper user input. - Wraps the control. + Represents the "File|Save" command. - + - + - + + + Represents the "File|Save As..." command. + + + - + - + - Gets an internal MaskedTextBox. + Represents the "File|Save All" command. - - - Gets or sets the input mask to use at run time. - Wraps the property. - + + - - - Gets or sets a value indicating whether the user is allowed to reenter literal values. - Wraps the property. - + + - + - Gets or sets how text is aligned in a masked text box control. - Wraps the property. + Represents the "File|Close" command. - - - - + - + - + - Initializes a new instance of the MaskedTextBoxControl class with default settings. + Represents the "Window|Close All" command. - - - Represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views. - Wraps the control. - + + - + - This property is not relevant to this class. + Represents the "File|Preview..." command. - + - + - + - Occurs when the checked state of an item changes. - Wraps the event. + Represents the "File|Page Setup..." command. - - - Occurs when the index of the selected item in the list view control changes. - Wraps the event. - + + - - - Gets an internal ListView. - + + - + - Gets or sets a value indicating whether a check box appears next to each item in the control. - Wraps the property. + Represents the "Report|Options..." command. - - - Gets or sets a value indicating whether multiple items can be selected. - Wraps the property. - + + - - - Gets or sets a value indicating whether items are displayed in groups. - Wraps the property. - + + - + - Gets or sets how items are displayed in the control. - Wraps the property. + Represents the "File|Printer Setup..." command. - - - Gets or sets a script method name that will be used to handle the - event. - + + - - - Gets or sets a script method name that will be used to handle the - event. - + + - + - Gets the indexes of the currently checked items in the control. - Wraps the property. + Represents the "Edit|Undo" command. - - - Gets the currently checked items in the control. - Wraps the property. - + + - - - Gets the collection of all column headers that appear in the control. - Wraps the property. - + + - + - Gets the collection of ListViewGroup objects assigned to the control. - Wraps the property. + Undo several actions. + Number of actions to undo. - + - Gets a collection containing all items in the control. - Wraps the property. + Represents the "Edit|Redo" command. - - - Gets or sets the ImageList to use when displaying items as large icons in the control. - Wraps the property. - + + - - - Gets the indexes of the selected items in the control. - Wraps the property. - + + - + - Gets the items that are selected in the control. - Wraps the property. + Redo several actions. + Number of actions to redo. - + - Gets or sets the ImageList to use when displaying items as small icons in the control. - Wraps the property. + Represents the "Edit|Cut" command. - - - - + - + - + - This method fires the ItemChecked event and the script code connected to the ItemCheckedEvent. + Represents the "Edit|Copy" command. - Event data. - - - This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. - - Event data. + + - + - Initializes a new instance of the ListViewControl class with default settings. + Represents the "Edit|Copy Page" command. - - - Base class for list box controls such as ListBoxControl, CheckedListBoxControl. - + + - + + + + - This property is not relevant to this class. + Represents the "Edit|Paste" command. - + - + - + - Occurs when the SelectedIndex property has changed. - Wraps the event. + Represents the "Format Painter" toolbar command. - - - Occurs when an owner-drawn ListBox is created and the sizes of the list items are determined. - Wraps the event. + + + + + + + + + Represents the "Edit|Delete" command. - + + + + + + + - Occurs when a visual aspect of an owner-drawn ListBox changes. - Wraps the event. + Represents the "Edit|Delete Page" command. - + + + + + + + - Gets or sets the width of columns in a multicolumn ListBox. - Wraps the property. + Represents the "Edit|Select All" command. - + + + + + + + - Gets or sets the drawing mode for the control. - Wraps the property. + Represents the "Edit|Group" command. - + + + + + + + - Gets or sets the height of an item in the ListBox. - Wraps the property. + Represents the "Edit|Ungroup" command. - + + + + - Gets the items of the ListBox. - Wraps the property. + Represents the "Edit" command. - + + + + + + + - Gets or sets a value indicating whether the ListBox supports multiple columns. - Wraps the property. + Represents the "Edit|Find..." command. - + + + + + + + - Gets or sets the method in which items are selected in the ListBox. - Wraps the property. + Represents the "Edit|Replace..." command. - + - Gets or sets a value indicating whether the items in the ListBox are sorted alphabetically. - Wraps the property. + Represents the "Bring To Front" context menu command. - + + + + + + + - Gets or sets a value indicating whether the ListBox can recognize and expand tab characters when drawing its strings. - Wraps the property. + Represents the "Send To Back" context menu command. - + + + + - Gets or sets the string that contains all items text. + Represents the "Insert" command. + + This command has no default action associated with it. Check the Enabled property + to see if the insert operation is enabled. + - + + + + - Gets or sets the zero-based index of the currently selected item in a ListBox. - Wraps the property. + Represents the "Insert Band" command. + + This command has no default action associated with it. Check the Enabled property + to see if the insert operation is enabled. + - + + + + - Gets a collection that contains the zero-based indexes of all currently selected items in the ListBox. - Wraps the property. + Represents the "Data|Add Data Source..." command. - + + + + + + + - Gets or sets the currently selected item in the ListBox. - Wraps the property. + Represents the "Data|Sort Data Sources" command. - + + + + + + + - Gets a collection containing the currently selected items in the ListBox. - Wraps the property. + Represents the "Data|Choose Report Data..." command. - + + + + + + + - Gets or sets a script method name that will be used to handle the - event. + Represents the "Recent Files" command. + + This command has no default action associated with it. Check the Enabled property + to see if the recent files list is enabled. + - + + + + - Gets or sets a script method name that will be used to handle the - event. + Represents the "File|Select Language..." command. - + + + + - Gets or sets a script method name that will be used to handle the - event. + Represents the "View|Options..." command. - + - + + + Represents the "View|Start Page" command. + + + - + - + + + Represents the "Select polygon move" command. + + + - + + + + - This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. + Represents the "Report|Styles..." command. - Event data. - + + + + + + + - This method fires the MeasureItem event and the script code connected to the MeasureItemEvent. + Represents the "Help|Help Contents..." command. - Event data. - + + + + + + + - This method fires the DrawItem event and the script code connected to the DrawItemEvent. + Represents the "Help|About..." command. - Event data. - + + + + - Represents a standard Windows label. - Wraps the control. + Represents the "Show welcome window..." command. - + - + + + + - Gets an internal Label. + Represents the report's designer control. + + Usually you don't need to create an instance of this class. The designer can be called + using the method of + the instance. + This control represents pure designer surface + Objects toolbar. If you need + standard menu, statusbar, toolbars and tool windows, use the + control instead. Also you may + decide to use a designer's form () + instead of a control. + To run a designer, you need to attach a Report instance to it. This can be done via + the property. + To call the designer in MDI (Multi-Document Interface) mode, use the + property. + To set up some global properties, use the static class + or component that you can use in the Visual Studio IDE. + - + - Gets or sets a value indicating whether the control is automatically resized to display its entire contents. - Wraps the property. + Occurs when designer's UI state changed. - + - Gets or sets the alignment of text in the label. - Wraps the property. + Gets or sets the edited report. + + To initialize the designer, you need to pass a Report instance to this property. + This will create the designer's surface associated with the report. + + Designer designer = new Designer(); + designer.Parent = form1; + designer.Report = report1; + + - - + + + Gets active report object. + + + May be null if Start Page selected, or no reports opened. + - + - Initializes a new instance of the LabelControl class with default settings. + Gets a collection of global plugins such as menu, properties window, etc. - + - Displays data in a customizable grid. - Wraps the control. + Gets a collection of objects on the active page of the active report. - + - This property is not relevant to this class. + Gets a collection of selected objects on the active page of the active report. - + - This property is not relevant to this class. + Gets a collection of selected objects of the ComponentBase type. - + - This property is not relevant to this class. + Gets a collection of selected objects of the ReportComponentBase type. - - + + + Gets a collection of selected objects of the TextObject type. + - + - Gets an internal DataGridView. + Gets or sets a value indicating that the report was modified. - + - Gets or sets the data source that the DataGridView is displaying data for. + Gets or sets a value that determines whether to ask user to save changes when closing the designer. - + - Gets or sets a value indicating whether the option to add rows is displayed to the user. - Wraps the property. + Gets the designer restrictions. - + - Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView. - Wraps the property. + Gets or sets a value indicating that designer is run in MDI mode. + + To call the designer in MDI (Multi-Document Interface) mode, use the following code: + + DesignerControl designer = new DesignerControl(); + designer.MdiMode = true; + designer.ShowDialog(); + + - + - Gets or sets the default cell style applied to odd-numbered rows of the DataGridView. - Wraps the property. + Gets or sets the visual style. - + - Gets or sets a value indicating how column widths are determined. - Wraps the property. + Gets a value indicating that designer is used to edit a preview page. - + - Gets or sets a value indicating how row heights are determined. - Wraps the property. + The "File|New" command. - + - Gets or sets the background color of the DataGridView. - Wraps the property. + The "New Page" toolbar command. - + - Gets or sets the border style for the DataGridView. - Wraps the property. + The "New Dialog" toolbar command. - + - Gets the cell border style for the DataGridView. - Wraps the property. + The "File|Open..." command. - + - Gets the border style applied to the column headers. - Wraps the property. + The "File|Save" command. - + - Gets or sets the default column header style. - Wraps the property. + The "File|Save As..." command. - + - Gets or sets the height, in pixels, of the column headers row. - Wraps the property. + The "File|Save All" command. - + - Gets or sets a value indicating whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. - Wraps the property. + The "File|Close" command. - + - Gets or sets a value indicating whether the column header row is displayed. - Wraps the property. + The "Window|Close All" command. - + - Gets the collection of objects that represents the grid columns. + The "File|Preview..." command. - + - Gets or sets the default cell style to be applied to the cells in the DataGridView if no other cell style properties are set. - Wraps the property. + The "File|Printer Setup..." command. - + - Gets or sets the color of the grid lines separating the cells of the DataGridView. - Wraps the property. + The "File|Page Setup..." command. - + - Gets or sets a value indicating whether the user is allowed to select more than one cell, row, or column of the DataGridView at a time. - Wraps the property. + The "Data|Add New Data Source..." command. - + - Gets a value indicating whether the user can edit the cells of the DataGridView control. - Wraps the property. + The "Data|Sort Data Sources" command. - + - Gets or sets the border style of the row header cells. - Wraps the property. + The "Data|Choose Report Data..." command. - + - Gets or sets the default style applied to the row header cells. - Wraps the property. + The "Edit|Undo" command. - + - Gets or sets a value indicating whether the column that contains row headers is displayed. - Wraps the property. + The "Edit|Redo" command. - + - Gets or sets the width, in pixels, of the column that contains the row headers. - Wraps the property. + The "Edit|Cut" command. - + - Gets or sets a value indicating whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. - Wraps the property. + The "Edit|Copy" command. - + - Gets or sets the default style applied to the row cells of the DataGridView. - Wraps the property. + The "Edit|Paste" command. - + - Gets or sets the type of scroll bars to display for the DataGridView control. - Wraps the property. + The "Format Painter" toolbar command. - + - Gets or sets a value indicating how the cells of the DataGridView can be selected. - Wraps the property. + The "Edit|Delete" command. - - + + + The "Edit|Copy Page" command. + - - + + + The "Edit|Delete Page" command. + - - + + + The "Edit|Select All" command. + - - + + + The "Edit|Group" command. + - - + + + The "Edit|Ungroup" command. + - - + + + The "Edit" command. + - - + + + The "Edit|Find..." command. + - - + + + The "Polygon move command" command. + - - + + + The "Polygon point move" command. + - - + + + The "Polygon add new point" command. + - - + + + The "Polygon berier" command. + - - - - + - Initializes a new instance of the GridControl class with default settings. + The "Polygon remove point" command. - + - Represents the special kind of report page that wraps the - and used to display dialog forms. + The "Edit|Replace..." command. - - Use the property to add/remove controls to/from a dialog form. - If you set the Visible property to false, this dialog form will be - skippen when you run a report. - - This example shows how to create a dialog form with one button in code. - - DialogPage form = new DialogPage(); - // set the width and height in pixels - form.Width = 200; - form.Height = 200; - form.Name = "Form1"; - // create a button - ButtonControl button = new ButtonControl(); - button.Location = new Point(20, 20); - button.Size = new Size(75, 25); - button.Text = "The button"; - // add the button to the form - form.Controls.Add(button); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Occurs before a form is displayed for the first time. - Wraps the event. + The "Bring To Front" command. - + - Occurs after the form is closed. - Wraps the event. + The "Send To Back" command. - + - Occurs before the form is closed. - Wraps the event. + The "Insert" command. - + - Occurs whenever the form is first displayed. - Wraps the event. + The "Insert Band" command. - + - Occurs when the form is resized. - Wraps the event. + The "Recent Files" command. - + - Occurs when the form is redrawn. - Wraps the event. + The "File|Select Language..." command. - + - Gets an internal Form. + The "View|Start Page" command. - + - Gets or sets an active state in Web application. + The "Report|Options..." command. - + - Gets or sets the button on the form that is clicked when the user presses the ENTER key. - Wraps the property. + The "View|Options..." command. - + - Gets or sets the button control that is clicked when the user presses the ESC key. - Wraps the property. + The "Report|Styles..." command. - + - Gets or sets the background color for the form. - Wraps the property. + The "Help|Help Contents..." command. - + - Gets or sets the font of the text displayed by the control. - Wraps the property. + The "Help|About..." command. - + - Gets or sets the border style of the form. - Wraps the property. + The "Show welcome window..." command. - + - Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. - Wraps the property. + Gets or sets the layout state of the designer. + + This property is used to store layout in Visual Studio design time. You may also use + it to save and restore the designer's layout in your code. However, consider using the + and methods that use FastReport + configuration file. + - + - Gets or sets the text associated with this form. - Wraps the property. + Fires when the layout is changed. + + This event is for internal use only. + - + - Gets or sets a script method name that will be used to handle the - event. + Initializes designer plugins such as toolbars and toolwindows. - + + + + - Gets or sets a script method name that will be used to handle the - event. + Cancels paste mode. - + - Gets or sets a script method name that will be used to handle the - event. + AutoSave system initialization. - + - Gets or sets a script method name that will be used to handle the - event. + Stops the AutoSave system. - + - Gets or sets a script method name that will be used to handle the - event. + Call this method if you change something in the report. + + This method adds the current report state to the undo buffer and updates all plugins. + - + - Gets or sets a script method name that will be used to handle the - event. + Call this method if you change something in the report. + The object that was modified. + The undo action name. + + This method adds the current report state to the undo buffer and updates all plugins. + - + - Gets the collection of controls contained within the form. + Call this method if you change something in the report. + The object that was modified. + The undo action name. + The name of modified object. - - - - - - - - - - - + + + Call this method to tell the designer that current selection is changed. + + The plugin that changes the selection (may be null). - - + + + Locks all plugins. + + + This method is usually called when we destroy the report to prevent unexpected + errors - such as trying to draw destroyed objects. + - - + + + Unlocks all plugins. + + + Call this method after the Lock. + - - + + + Call this method to refresh all plugins' content. + + The plugin that we don't need to refresh. - - + + + Saves config to a FastReport configuration file. + - - + + + Restores config from a FastReport configuration file. + + + Call this method to restore the designer's layout. You need to do this after the + designer's control is placed on a form. + - - + + + Refresh the designer's toolbars and toolwindows layout. + + + Call this method if you use + DesignerControl. To restore + the layout that you've created in VS design time, you need to call this method in the form's + Load event handler. If you don't do this, tool windows like Properties, Data, Report Tree + will not be available. + - + - + - - + + + Initializes the workspace after the new report is loaded. + - + - Shows the form as a modal dialog box with the currently active window set as its owner. - Wraps the method. + Tries to create a new empty report. - One of the DialogResult values. + true if report was created successfully; false if user cancels the action. - + - This method fires the Load event and the script code connected to the LoadEvent. + Displays a message in the "Messages" window. - Event data. + Message text. - + - This method fires the FormClosed event and the script code connected to the FormClosedEvent. + Clears the "Messages" window. - Event data. - + - This method fires the FormClosing event and the script code connected to the FormClosingEvent. + Shows the selected object's information in the designer's statusbar. - Event data. + Object's location. + Object's size. + Textual information about the selected object. - + - This method fires the Shown event and the script code connected to the ShownEvent. + Close all opened reports, ask to save changes. - Event data. + true if all tabs closed succesfully. + + Use this method to close all opened documents and save changes when you closing the main form + that contains the designer control. To do this, create an event handler for your form's FormClosing + event and call this method inside the handler. If it returns false, set e.Cancel to true. + - + - This method fires the Resize event and the script code connected to the ResizeEvent. + Initializes a new instance of the class with default settings. - Event data. - + + + Required designer variable. + + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + - This method fires the Paint event and the script code connected to the PaintEvent. + Base class for all export plugins. - Event data. - + - Initializes a new instance of the DialogPage class. + Gets or sets the name of plugin. - + - Base class for all dialog controls such as ButtonControl, TextBoxControl. + Gets or sets the filter string used in the "Save File" dialog. - + - Determines whether is necessary to serialize the BackColor property. + Gets or sets reference to the designer. - true if serialization is necessary. - + - Determines whether is necessary to serialize the Cursor property. + Gets or sets reference to the report. - true if serialization is necessary. - + - Determines whether is necessary to serialize the Font property. + Initializes a new instance of the class with default settings. - true if serialization is necessary. - + - Determines whether is necessary to serialize the ForeColor property. + Initializes a new instance of the class with a specified designer. - true if serialization is necessary. + The report designer. - + - - - Draws the selection point. - - Graphics object to draw on. - object. - object. - Left coordinate. - Top coordinate. + + - + - + - - - Creates the empty event handler for the ClickEvent event in the report's script. - - true if event handler was created successfully. + + - + - + + + + + + + + + + + + + - Occurs when the control is clicked. - Wraps the event. + Returns a file filter for a save dialog. + String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - Occurs when the control is double-clicked. - Wraps the event. + Saves the specified report into specified file. + Report object. + File name. - + - Occurs when the control is entered. - Wraps the event. + Represents the FR3 export plugin. - + - Occurs when the input focus leaves the control. - Wraps the event. + Initializes a new instance of the class. - + - Occurs when a key is pressed while the control has focus. - Wraps the event. + Initializes a new instance of the class with a specified designer. + The report designer. - + + + + + + + - Occurs when a key is pressed while the control has focus. - Wraps the event. + The FR3 units converter. - + - Occurs when a key is released while the control has focus. - Wraps the event. + Converts Color to TColor. + Color value. + String that contains TColor value. - + - Occurs when the mouse pointer is over the control and a mouse button is pressed. - Wraps the event. + Converts font style. + FontStyle value. + String that contains converted value. - + - Occurs when the mouse pointer is moved over the control. - Wraps the event. + Converts horizontal alignment of text. + HorzAlign value. + String that contains converted value. - + - Occurs when the mouse pointer is over the control and a mouse button is released. - Wraps the event. + Converts vertical alignment of text. + VertAlign value. + String that contains coverted value. - + - Occurs when the mouse pointer enters the control. - Wraps the event. + Converts font size to delphi font height. + Font size value. + String that contains font height value. - + - Occurs when the mouse pointer leaves the control. - Wraps the event. + Convert line style to frame style. + Line style value. + String that contains converted value. - + - Occurs when the control is resized. - Wraps the event. + Converts barcode type. + BarcodeBase instance. + String that contains converted value. - + - Occurs when the Text property value changes. - Wraps the event. + Converts BorderLines value. + BorderLines instance. + String that contains converted value. - + - Occurs when the control is redrawn. - Wraps the event. + Converts CheckedSymbol value. + CheckeSymbol instance. + String that contains converted value. - + - Gets an internal Control. + Converts ScaleDock value. + ScaleDock instance. + String that contains converted value. - + - Gets or sets the background color for the control. - Wraps the property. + Converts DashStyle value. + DashStyle instance. + String that contains converted value. - + - Gets or sets the cursor that is displayed when the mouse pointer is over the control. - Wraps the property. + Converts TotalType value. + TotalType instance. + String that contains converted value. - + - Gets or sets a value indicating whether the control can respond to user interaction. - Wraps the property. + Converts MapLabelKind value. + MapLabelKind instance. + String that contains converted value. - + - Gets or sets the font of the text displayed by the control. - Wraps the property. + Converts MapPalette value. + MapPalette instance. + String that contains converted value. - + - Gets or sets the foreground color of the control. - Wraps the property. + Converts ShapeKind value. + ShapeKind instance. + String that contains coverted value. - + - Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. - Wraps the property. + Represents the RDL export plugin. - + - Gets or sets the tab order of the control within its container. - Wraps the property. + Initializes a new instance of the class. - + - Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. - Wraps the property. + Initializes a new instance of the class with a specified designer. + The report designer. - - - Gets or sets the text associated with this control. - Wraps the property. - + + - - - Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. - Wraps the property. - + + - + - Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. - Wraps the property. + The FR units converter. - + - Gets or sets a value indicating whether the control is displayed. - Wraps the property. + Converts the float size in pixels to string value in millimeters. + The float value in pixels. + The string value in millimeters. - + - Gets or sets a property that returns actual data contained in a control. This value is used - in the "Data" window. + Converts the float size in millimeters to string value in millimeters. + The float value in millimeters. + The string value in millimeters. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the bool value to string. + The bool value. + The string value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the int size in pixels to string value in pt. + The int value in pixels. + The string value in pt. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the Color value to string. + The Color value. + The string representation of Color value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the LineStyle value to RDL BorderStyle value. + The LineStyle value. + The string with RDL BorderStyle value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the GradientStyle value to RDL GradientType value. + The GradientStyle value. + The string with RDL GradientType value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the FontStyle value to RDL FontStyle value. + The FontStyle value. + The string with RDL FontStyle value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the FontFamily value to RDL FontFamily value. + The FontFamily value. + The string with RDL FontFamily value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the HorzAlign value to RDL TextAlign value. + The HorzAlign value. + The string with RDL TextAling value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the VertAling value to RDL VerticalAling value. + The VertAling value. + The string with RDL VerticalAlign value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the Angle value to RDL WritingMode value. + The Angle value. + The string with RDL WritingMode value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the FontSize value to RDL FontSize value. + The FontSize value. + The string with RDL FontSize value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the PictureBoxSizeMode value to RDL Sizing value. + The PictureBoxSizeMode value. + The string with RDL Sizing value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the SeriesChartType value to RDL Chart.Type value. + The SeriesChartType value. + The string with RDL Chart.Type value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the ChartColorPalette value to RDL Chart.Palette value. + The ChartColorPalette value. + The string with RDL Chart.Palette value. - + - Gets or sets a script method name that will be used to handle the - event. + Converts the Legend.Docking and Legend.Alignment values to RDL Chart.Legend.Position value. + The Legend.Docking value. + The Legend.Alignment value. + The string with RDL Chart.Legend.Position value. - - - - - - - - - - - - - - - - + - Called when the control's Enabled state changed. + Converts the LegendStyle value to Chart.Legend.Layout value. + The LegendStyle value. + The string with RDL Chart.Legend.Layout value. - + - Attaches Control events to its event handlers. + Converts the LightStyle value to RDL Shading value. - - Override this method if your custom control has own events. - - See the example of AttachEvents implementation used in the CheckBoxControl: - - protected override void AttachEvents() - { - base.AttachEvents(); - CheckBox.CheckedChanged += new EventHandler(CheckBox_CheckedChanged); - } - - private void CheckBox_CheckedChanged(object sender, EventArgs e) - { - if (CheckedChanged != null) - CheckedChanged(this, e); - InvokeEvent(CheckedChangedEvent, e); - } - - + The LightStyle value. + The string with RDL Shading value. - + - Detaches Control events from its event handlers. + Converts the ChartDashStyle value to RDL BorderStyle value. - - Override this method if your custom control has own events. In this method, you should - detach control's events that were attached in the method. - - See the example of DetachEvents implementation used in the CheckBoxControl: - - protected override void DetachEvents() - { - base.DetachEvents(); - CheckBox.CheckedChanged -= new EventHandler(CheckBox_CheckedChanged); - } - - - - - - - - + The ChartDashStyle value. + The string with RDL ChartDahsStyle value. - + - Initializes the control before display it in the dialog form. + Converts the ContentAlignment value to RDL TextAlign value. - - This method is called when report is run. - + The ContentAlignment value. + The string with RDL TextAlign value. - + - Finalizes the control after its parent form is closed. + Converts the ContentAlignment value to RDL VerticalAlign value. - - This method is called when report is run. - + The ContentAlignment value. + The string with RDL VerticalAlign value. - + - Sets input focus to the control. + Converts the AxisEnabled value to RDL Axis.Visible value. + The AxisEnabled value. + The string with RDL Axis.Visible value. - + - Conceals the control from the user. + Converts the TickMarkStyle value to RDL TickMarkStyle value. + The TickMarkStyle value. + The string with RDL TickMarkStyle value. - + - Displays the control to the user. + Converts the StringAlignment value to RDL TextAlign value. + The StringAlignment value. + The string with RDL TextAlign value. - + - This method fires the Click event and the script code connected to the ClickEvent. + Represents the standard report designer. - Event data. + + This control extends the control with + standard menu, status bar, and toolbars. + To choose toolbars and tool windows in design-time, click the "View" menu + in this control and select what you want to see. Toolbars can be reordered using the mouse. + To restore the designer layout at runtime, you need to call the + RefreshLayout method in your + form's Load event handler. + - + - This method fires the DoubleClick event and the script code connected to the DoubleClickEvent. + Gets the main menu. - Event data. - + - This method fires the Enter event and the script code connected to the EnterEvent. + Gets or sets a value indicating whether the main menu should be displayed or not. - Event data. - + - This method fires the Leave event and the script code connected to the LeaveEvent. + Gets or sets a value indicating whether the status bar should be displayed or not. - Event data. - - - This method fires the KeyDown event and the script code connected to the KeyDownEvent. - - Event data. + + - - - This method fires the KeyPress event and the script code connected to the KeyPressEvent. - - Event data. + + - + - This method fires the KeyUp event and the script code connected to the KeyUpEvent. + Initializes a new instance of the class with default settings. - Event data. - + - This method fires the MouseDown event and the script code connected to the MouseDownEvent. + Initializes a new instance of the class for compatibility with new statusbar and using with ribbon UI. - Event data. - + - This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Required designer variable. - Event data. - + - This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Clean up any resources being used. - Event data. + true if managed resources should be disposed; otherwise, false. - + - This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Event data. - + - This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. + Represents standard designer's form. - Event data. + + This form contains the . Use the + property to get access to this control. + Usually you don't need to create an instance of this class. The designer can be called + using the method of + the instance. + If you decided to use this class, you need: + + + create an instance of this class; + + + set the Designer.Report property to report that you need to design; + + + call either ShowModal or Show methods to display a form. + + + - + - This method fires the Resize event and the script code connected to the ResizeEvent. + Gets a reference to the control which is actually a designer. - Event data. - + - This method fires the TextChanged event and the script code connected to the TextChangedEvent. + Gets a list of File menu buttons - Event data. - + - This method fires the Paint event and the script code connected to the PaintEvent. + Creates a new instance of the class with default settings. - Event data. - + - Base class for all dialog components. + Creates a new instance of the class with default settings. + enables welcome window - + - + - + - + - + + + + + + + + + + + + + + + + + + + - Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. + Required designer variable. - + - Gets or sets the height and width of the control. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Initializes a new instance of the DialogComponentBase class with default settings. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Represents the control with two lists (available items and selected items). + Represents the designer's main menu. - The control allows to select one or several items and then filter the datasource which it is connected to. - All you need is to setup the DataColumn property. + To get this menu, use the following code: + + Designer designer; + DesignerMenu menu = designer.Plugins.FindType("DesignerMenu") as DesignerMenu; + - + - This property is not relevant to this class. + The "File" menu. - + - This property is not relevant to this class. + The "File|New..." menu. - + - Gets or sets a value indicating that the items must be sorted. + The "File|Open..." menu. - - - - - - - - - - - + + + The "File|Close" menu. + - - + + + The "File|Save" menu. + - - + + + The "File|Save as..." menu. + - + - Initializes a new instance of the DataSelectorControl class with default settings. + The "File|Save All" menu. - + - Represents a Windows control that allows the user to select a date and a time and to display the date and time with a specified format. - Wraps the control. + The "File|Page Setup..." menu. - + - This property is not relevant to this class. + The "File|Printer Setup..." menu. - - - - - + + + The "File|Preview..." menu. + - - + + + The "File|Select Language" menu. + - + - Occurs after the date has been changed. - Wraps the event. + The "File|Exit" menu. - + - Gets an internal DateTimePicker. + The "Edit" menu. - + - Gets or sets a value indicating whether the Value property has been set with a valid date/time value and the displayed value is able to be updated. - Wraps the property. + The "Edit|Undo" menu. - + - Gets or sets the custom date/time format string. - Wraps the property. + The "Edit|Redo" menu. - + - Gets or sets the alignment of the drop-down calendar on the DateTimePicker control. - Wraps the property. + The "Edit|Cut" menu. - + - Gets or sets the format of the date and time displayed in the control. - Wraps the property. + The "Edit|Copy" menu. - + - Gets or sets the maximum date and time that can be selected in the control. - Wraps the property. + The "Edit|Paste" menu. - + - Gets or sets the minimum date and time that can be selected in the control. - Wraps the property. + The "Edit|Delete" menu. - + - Gets or sets a value indicating whether a check box is displayed to the left of the selected date. - Wraps the property. + The "Edit|Copy Page" menu. - + - Gets or sets a value indicating whether a spin button control (also known as an up-down control) is used to adjust the date/time value. - Wraps the property. + The "Edit|Delete Page" menu. - + - Gets or sets the date/time value assigned to the control. - Wraps the property. + The "Edit|Select All" menu. - + - Gets or sets a script method name that will be used to handle the - event. + The "Edit|Group" menu. - - + + + The "Edit|Ungroup" menu. + - - + + + The "Edit|Find..." menu. + - - + + + The "Edit|Replace..." menu. + - - + + + The "View" menu. + - + - This method fires the ValueChanged event and the script code connected to the ValueChangedEvent. + The "View|Toolbars" menu. - Event data. - + - Initializes a new instance of the DateTimePickerControl class with default settings. + The "View|Start Page" menu. - + - The base class for all controls that support the data filtering feature. + The "View|Options..." menu. - - The data filtering allows you to bind the control to a . - It will be automatically filled by data from the datasource's column. When you select/check - item(s) and close the dialog with OK button, it will filter the datasource according to your selection. - You can set the filter operation using the property. - - + - Occurs after the control is filled with data. + The "Insert" menu. - + - Gets or sets a value that determines whether to fill the control with data automatically. + The "Report" menu. - - The default value of this property is true. If you set it to false, - you need to call the method manually. - - + - Gets or sets a value that determines whether to filter the datasource automatically - when you close the dialog by OK button. + The "Report|Options..." menu. - - The default value of this property is true. If you set it to false, - you need to call the method manually. - - + - Gets or sets a data column name that will be used to fill this control with data. + The "Data" menu. - - This property must contain both datasource name and column name, for example: - Orders.OrderID. You also may use relations, for example: Orders.Customers.CompanyName. - - + - Gets or sets name of report parameter which value will be set to value contained - in this control when you close the dialog. + The "Data|Choose Report Data..." menu. - + - Gets or sets a value that specifies the filter operation. + The "Data|Add Data Source..." menu. - + - Gets or sets the detail control used in cascaded filtering. + The "Data|Show Data Dictionary" menu. - + - Gets or sets a script method name that will be used to handle the - event. + The "Window" menu. - + - Fills the control with data. + The "Window|Close All" menu. - The data source. - The data column. - Here is the example of FillData method implementation: - - protected override void FillData(DataSourceBase dataSource, Column column) - { - Items.Clear(); - dataSource.First(); - while (dataSource.HasMoreRows) - { - Items.Add(dataSource[column].ToString()); - dataSource.Next(); - } - } - - - + - Returns list of values that can be used to fill control with data. + The "Help" menu. - The data source. - The data column. - List of string values. - - This method is used by the FillData method to fill list-type controls - such as ListBox with data. The result list contains distinct values. - - + - Returns value entered in the control. + The "Help|Help Contents..." menu. - The value of type supported by this control. - - This method must return a value entered by the user. For example, TextBox - control must return its Text property value. If this control supports multi-selection, - return selected values in an array, for example string[] array for CheckedListBox. - - + - Handles the cascaded filter internal logic. + The "Help|About..." menu. - - This method should be called in your custom dialog control that supports data filtering. - Call it when the value in your control is changed. - - + - + - + - - - Fills the control with data from a datasource. - - - Call this method if you set the property to false. - + + - - - Fills the control with data from a datasource. - - Parent data source - - Call this method if you need to implement cascaded filter. In the parentData parameter, - pass the parent data source that will be used to set up master-detail relationship with - data source in this control. - + + - - - Fills the control with data from a datasource. - - Parent control - - Call this method if you need to implement cascaded filter. In the parentControl parameter, - pass the parent control which performs filtering on a parent data source. - + + - - - Applies the filter to a datasource. - - - Call this method if you set the property to false. - + + - - - Resets the filter set by this control. - + + - + + + + + + + - This method fires the DataLoaded event and the script code connected to the DataLoadedEvent. + Creates a new menu item. - Event data. + New menu item. - + - Initializes a new instance of the DataFilterBaseControl class with default settings. + Creates a new menu item. + Click handler. + New menu item. - + - Represents the 's column. - Wraps the class. + Creates a new menu item. + Item's image. + Click handler. + New menu item. - + - Gets or sets the mode by which the column automatically adjusts its width. - Wraps the property. + Creates a new menu item. + Item's text. + Click handler. + New menu item. - + - Gets or sets the data column attached to this column. + Creates a new menu item. + Item's image. + Item's text. + Click handler. + New menu item. - + - Gets or sets the caption text on the column's header cell. - Wraps the property. + Initializes a new instance of the class with default settings. + The report designer. - + - Gets or sets the column's default cell style. - Wraps the property. + Represents the designer's statusbar. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets a value that represents the width of the column when it is in fill mode relative to the widths of other fill-mode columns in the control. - Wraps the property. + Updates the information about location and size. + The location. + The size. - + - Gets or sets the current width of the column. - Wraps the property. + Updates the name and text information. + The text. - + - Gets or sets a value indicating whether the column is visible. - Wraps the property. + Initializes a new instance of the class with default settings. + The report designer. - + - This property is not relevant to this class. + Base class for all designer toolbars. + + Use this class to write own designer's toolbar. To do this: + - in the constructor, set the Name property and create toolbar buttons. + The Name will be used to restore toolbar's state; + - override the SelectionChanged method. This method is called when current selection + is changed. In this method, you should update buttons state to reflect the current selection. + Selected objects can be accessed via Designer.SelectedObjects property; + - override the UpdateContent method. This method is called when the report + content was changed. Typically you need to do the same actions in SelectionChanged and + UpdateContent methods; + - to register a toolbar, add its type to the global collection: + + DesignerPlugins.Add(typeof(MyToolbar)); + + + - + - This property is not relevant to this class. + Gets the report designer. - + - + - - - Initializes a new instance of the GridControlColumn class with default settings. - + + - - - Represents the collection of GridControl columns. - + + - - - Gets or sets a column. - - The index of a column in this collection. - The column with specified index. + + - + - + - + + + + + + + + + + - Serializes the collection. + Creates a new button. - Writer object. - - This method is for internal use only. - + Button's name. + Button's image. + Click handler. + New button. - + - Deserializes the collection. + Creates a new button. - Reader object. - - This method is for internal use only. - + Button's name. + Button's image. + Button's tooltip text. + Click handler. + New button. - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. + The report designer. + + You don't need to call this constructor. The designer will do this automatically. + - + - Initializes a new instance of the class with default settings. + Provides a data for the designer ReportLoaded event. - The owner of this collection. - + - Represents a Windows rich text box control. - Wraps the control. + The current report. - + - Gets an internal RichTextBox. + Represents the method that will handle the designer ReportLoaded event. + The source of the event. + The event data. - + - Gets or sets the text of the RichTextBox control, including all rich text format (RTF) codes. - Wraps the property. + Provides a data for the designer ObjectInserted event. - + - Gets or sets the type of scroll bars to display in the RichTextBox control. - Wraps the property. + Gets the inserted object. - - - - + - Loads rtf from a file. + Gets the source where the object is inserted from. - File to load from. - + - Loads rtf from a stream using specified stream type. + Represents the method that will handle the designer ObjectInserted event. - Stream to load from. - Type of a stream. + The source of the event. + The event data. - + - Loads rtf from a file using specified stream type. + Provides a data for the designer's custom dialog events. - File to load from. - Type of a stream. - + - Initializes a new instance of the RichTextBoxControl class with default settings. + Gets or sets a file name. + + This property contains the location of a report. If you work with files (like the + standard "Open" and "Save" dialogs do), treat this property as a file name. + - + - Represents the collection of dialog components. + Gets or sets a value indicating that the dialog was cancelled. + + This property is used to tell the designer that the user was cancelled the dialog. + - + - Gets or sets a component. + Gets or sets the custom data that is shared across events. - The index of a component in this collection. - The component with specified index. + + You may set the Data in the OpenDialog event and use it later in the OpenReport event. + - + - Initializes a new instance of the class with default settings. + Gets a report designer. - + - Initializes a new instance of the class with default settings. + Represents the method that will handle the designer's custom dialogs event. - The owner of this collection. + The source of the event. + The event data. - + - Represents a Windows control that displays a frame around a group of controls with an optional caption. - Wraps the control. + Provides a data for the designer's custom dialog events. - + - Gets an internal GroupBox. + Gets a report. + + Use this report in the load/save operations. + - + - Initializes a new instance of the GroupBoxControl class with default settings. + Gets a file name. + + This property contains the location of a report that was selected by the user in the + open/save dialogs. If you work with files (like the standard "Open" and "Save" dialogs do), + treat this property as a file name. + - + - Represents a Windows control to display a list of items. - Wraps the control. + Gets the custom data that was set in the OpenDialog event. - + - Gets an internal ListBox. + Represents the method that will handle the designer's custom dialogs event. + The source of the event. + The event data. - - + + + Provides data for the FilterConnectionTables event. + - - + + + Gets the Connection object. + - + - Initializes a new instance of the ListBoxControl class with default settings. + Gets the table name. - + - Represents the report engine. + Gets or sets a value that indicates whether this table should be skipped. - + - Processes the specified text object which ProcessAt property is set to Custom. + Represents the method that will handle the FilterConnectionTables event. - The text object to process. + The source of the event. + The event data. - + - Shows band at the current position. + Provides data for the CustomQueryBuilder event. - Band to show. - - After the band is shown, the current position is advanced by the band's height. - - + - Gets or sets the current X offset. + Gets the Connection object. - - This property specifies the X offset where the current band will be printed. - - + - Gets or sets the current Y offset. + Gets or sets the query text. - - This property specifies the Y offset where the current band will be printed. - After the band is printed, this value is incremented by the band's height. - - + - Gets the index of currently printing column in the multi-column report. + Gets or sets the query parameters. - - This value is 0-based. - - + - Gets or sets index of current prepared page the current band will print on. + Represents the method that will handle the CustomQueryBuilder event. - - Note: the page with specified index must exists. This property is used to print side-by-side - subreports and Table object. Usually you don't need to use it. - + The source of the event. + The event data. - + - Gets the current page width, in pixels. + This class contains settings that will be applied to the report designer. - - This property returns a paper width minus left and right margins. - - + - Gets the current page height, in pixels. + Occurs when the designer is loaded. - This property returns a paper height minus top and bottom margins. + Use this event if you want to customize some aspects of the designer, for example, + to hide some menu items. + + This example demonstrates how to hide the "File|Select Language..." menu item. + + Config.DesignerSettings.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); + + void DesignerSettings_DesignerLoaded(object sender, EventArgs e) + { + (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; + } + + - + - Gets the value indicating whether the page has unlimited height. + Occurs when the designer is closed. - + - Gets the value indicating whether the page has unlimited width. + Occurs when the report is loaded. - + - Gets or sets the current height of unlimited page. + Occurs when a report page or a dialog form is added to the report. + + Use this event if you want to customize the page properties. + + + This example demonstrates how to change the default page margins. + + Config.DesignerSettings.PageAdded += new EventHandler(DesignerSettings_PageAdded); + + void DesignerSettings_PageAdded(object sender, EventArgs e) + { + if (sender is ReportPage) + (sender as ReportPage).TopMargin = 0; + } + + - + - Gets or sets the current width of unlimited page. + Occurs when object is inserted. - + - Gets the height of page footer (including all its child bands), in pixels. - + Occurs when the report designer is about to show the "Open" dialog. + + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will open the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + - + - Gets the height of column footer (including all its child bands), in pixels. - + Occurs when the report designer is about to show the "Save" dialog. +
+ Use this event to attach own "Save" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will save the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + +
- + - Gets the free space on the current page, in pixels. - - - This property returns the page height minus footers height minus CurY value. - + Occurs when the report designer is about to load the report. +
+ This event is used together with the event. + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + load the e.Report from the location specified in the e.FileName property. + For example, if you work with files: e.Report.Load(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + +
- + - Gets the current prepared page number. - - - This value is 1-based. The initial value (usually 1) is set in the Report.InitialPageNumber property. - + Occurs when the report designer is about to save the report. +
+ This event is used together with the event. + Use this event to attach own "Save" dialog to the designer. In the event handler, you must + save the e.Report to the location specified in the e.FileName property. + For example, if you work with files: e.Report.Save(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + +
- + - Gets the number of total pages in a prepared report. + Occurs when previewing a report from the designer. - To use this property, your report must be two-pass. Set the - property to true. + Use this event to show own preview window. + + + Config.DesignerSettings.CustomPreviewReport += new EventHandler(MyPreviewHandler); + + private void MyPreviewHandler(object sender, EventArgs e) + { + Report report = sender as Report; + using (MyPreviewForm form = new MyPreviewForm()) + { + report.Preview = form.previewControl1; + report.ShowPreparedReport(); + form.ShowDialog(); + } + } + + - + - Gets the string that represents the current page number. + Occurs when getting available table names from the connection. - This property returns a locale-based value, for example: "Page 1". + Use this handler to filter the list of tables returned by the connection object. + + This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. + + Config.DesignerSettings.FilterConnectionTables += DesignerSettings_FilterConnectionTables; + + private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) + { + if (e.TableName == "Table 1") + e.Skip = true; + } + + - + - Gets the string that represents the "Page N of M" number. + Occurs when the query builder is called. - This property returns a locale-based value, for example: "Page 1 of 10". + Subscribe to this event if you want to replace the embedded query builder with your own one. - + - Gets the current row number of currently printing band. + Gets or sets the icon for the designer window. - - This value is 1-based. It resets to 1 on each new group. - - + - Gets the running current row number of currently printing band. + Gets or sets the default font used in a report. - - This value is 1-based. - - + - Gets the date of report start. + Gets or sets a value indicating whether the designer window is displayed in the Windows taskbar. - + - Gets a value indicating whether the report is executing the final pass. + Gets the designer restrictions flags. - - This property is true if report is one-pass, or if report is two-pass and - the second pass is executing. - - + - Gets a value indicating whether the report is executing the first pass. + Gets or sets the title text for the designer window. - This property is true if report is one-pass, or if report is two-pass and - the first pass is executing. + If no text is set, the default text "FastReport -" will be used. - + - Gets a level of hierarchy when printing hierarchical bands. + Gets or sets application-defined DbConnection object that will be used in the designer + to create a new datasource. - The first level of hierarchy has 0 index. + The application connection object is used in the "Data Wizard" to create new datasources. + In this mode, you can't create any other connections in the wizard; only application + connection is available. You still able to choose tables or create a new queries inside + this connection. The connection information (ConnectionString) is not stored in the report file. - + - Gets the row number like "1.2.1" when printing hierarchical bands. + Gets the toolstrip renderer. - + - Starts the keep mechanism. + Adds a custom connection used in the "Data Wizard" window. - Use this method along with the method if you want to keep - several bands together. Call StartKeep method before printing the first band - you want to keep, then call the EndKeep method after printing the last band you want to keep. + Use this method to provide own connection strings for the "Data Wizard" dialog. To do this, you need + to pass the type of connection object and connection string associated with it. You must use one of the + connection objects registered in FastReport that inherit from the + class. + To clear the custom connections, use the method. + + This example shows how to add own connection string. + + Config.DesignerSettings.AddCustomConnection(typeof(MsAccessDataConnection), @"Data Source=c:\data.mdb"); + + - + - Ends the keep mechanism. + Clears the custom connections added by the AddCustomConnection method. - - Use this method along with the method if you want to keep - several bands together. Call StartKeep method before printing the first band - you want to keep, then call the EndKeep method after printing the last band you want to keep. - - + - Gets xml containing outline nodes. + Initializes a new instance of the class. - + - Creates a new outline element with specified text. + Base class for all import plugins. - Text of element. - - After you call this method, the element will be added to the current position in the outline. - The next call to AddOutline will add new element as a child of this element. - To shift the position, use the or - OutlineUp methods. - - + - Sets the current outline position to root. + Gets or sets the name of plugin. - + - Shifts the current outline position one level up. + Gets or sets the filter string used in the "Open File" dialog. - + - Creates a new bookmark with specified name at current position. + Gets or sets reference to the designer. - - + - Gets a page number for the specified bookmark name. + Gets or sets reference to the report. - Name of bookmark. - Page number if bookmark with such name found; 0 otherwise. - - Use this method to print the table of contents in your report. Normally it can be done - using bookmarks. - - You must set your report to double pass to use this method. - - - - - Resets the logical page numbers. - + + - + - Starts a new page. + Initializes a new instance of the class with default settings. - + - Starts a new column. + Initializes a new instance of the class with a specified designer. + The report designer. - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Form for . - For internal use only. - + + - + - + - + - + + + + + + + - Initializes a new instance of the class. + Returns a file filter for a open dialog. + String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - Required designer variable. + Loads the specified file into specified report. + Report object. + File name. - + - Clean up any resources being used. + Represents a set of designer's restrictions. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value that enables or disables the "Open" action. - + - Form for . - For internal use only. + Gets or sets a value that enables or disables the "Save/Save as" actions. - + - Initializes a new instance of the class. + Gets or sets a value that enables or disables the "New..." action. - - - - - - - - - - + - Required designer variable. + Gets or sets a value that enables or disables the "Preview" action. - + - Clean up any resources being used. + Gets or sets a value that enables or disables the recent files list. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value that enables or disables the "Code" tab. - + - Form for . - For internal use only. + Gets or sets a value that enables or disables the "Data" menu. - - - - - - - - - - + - Initializes a new instance of the class. + Gets or sets a value that enables or disables the "Data|Add New Data Source..." menu. - + - Required designer variable. + Gets or sets a value that enables or disables the "Data|Sort Data Sources" menu. - + - Clean up any resources being used. + Gets or sets a value that enables or disables the "Report|Options..." menu. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value that enables or disables insertion of objects. - + - Form for . - For internal use only. + Gets or sets a value that enables or disables the insertion of bands. - - - - - - - - - - + - Initializes a new instance of the class. + Gets or sets a value that enables or disables the "Delete Page" action. - + - Required designer variable. + Gets or sets a value that enables or disables the creation of report/dialog pages. - + - Clean up any resources being used. + Gets or set a value that enables or disbles the "Copy Page" action. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value that enables or disables the "Page Setup" action. - + - Form for . - For internal use only. + Copies the contents of another, similar object. + Source object to copy the contents from. - - + + + Creates exact copy of this object. + + The copy of this object. - - + + + Represents the "Messages" window. + + + To get this window, use the following code: + + Designer designer; + MessagesWindow window = designer.Plugins.FindType("MessagesWindow") as MessagesWindow; + + - + - + - Initializes a new instance of the class. + Clears the message list. - + - Required designer variable. + Adds a new message. + The message text. + The name of object related to a message. - + - Clean up any resources being used. + Adds a new script-related message. - true if managed resources should be disposed; otherwise, false. + The message text. + The line of the script. + The column of the script. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the class with default settings. + The report designer. - + - Form for . - For internal use only. + Represents the "Data Dictionary" window. - + - - - Initializes a new instance of the class. - + + - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - + + + + - Form for . - For internal use only. + Initializes a new instance of the class with default settings. + The report designer. - - - - + - Initializes a new instance of the class. + Describes an item dragged from the "Data Dictionary" window. - + - Required designer variable. + The dragged object. - + - Clean up any resources being used. + The text of dragged object. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Collection of dragged items. - + - Form for . - For internal use only. + Represents the "Properties" window. - + - + - + - - - Initializes a new instance of the class. - + + - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the class with default settings. + The report designer. - + - Form for . - For internal use only. + Represents the "Report Tree" window. - + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the class with default settings. + The report designer. - + - Required designer variable. + Base class for all tool windows such as "Properties", "Data Dictionary" etc. + + Use this class to create own tool window. To do this: + - in the constructor, set the Name and Image properties and create necessary controls. + The Name will be used to restore window's state; + - override the SelectionChanged method. This method is called when current selection + is changed. In this method, you should update buttons state to reflect the current selection. + Selected objects can be accessed via Designer.SelectedObjects property; + - override the UpdateContent method. This method is called when the report + content was changed. Typically you need to do the same actions in SelectionChanged and + UpdateContent methods; + - to register a toolwindow, add its type to the global collection: + + DesignerPlugins.Add(typeof(MyToolWindow)); + + + - + - Clean up any resources being used. + Gets the report designer. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets a value indicating that window is locked. - + - Form for . - For internal use only. + Gets or sets shortcut keys used to show this toolwindow. - - - - - - - + - + - Initializes a new instance of the class. + Gets or sets a value indicating that the toolwindow can be closed by the x button. - + - Required designer variable. + Gets a parent control that contains all controls. + + Add your control to the parent control Controls collection. + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Shows the toolwindow. - + - Form for . - For internal use only. + Hides the toolwindow. - + - + - + - - - Initializes a new instance of the class. - + + - + + + + + + + + + + - Required designer variable. + Implements method. + The options page, if implemented; otherwise, null. - + + + + - Clean up any resources being used. + Initializes a new instance of the class with default settings. - true if managed resources should be disposed; otherwise, false. + The report designer. + + You don't need to call this constructor. The designer will do this automatically. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents collection of designer plugins. + + This class is used in the Designer.Plugins property. + To register own plugin, add its type to the global collection: + + DesignerPlugins.Add(typeof(MyToolbar)); + + + - + - Form for . - For internal use only. + Finds a plugin by its name. + The plugin's name. + The plugin, if found; otherwise, null. + This example shows how to find a plugin. + + MessagesWindow window = designer.Plugins.Find("MessagesWindow") as MessagesWindow; + + - - - - - - - - + + + Finds a plugin by its type name. + + The plugin's type name. + The plugin, if found; otherwise, null. + This example shows how to find a plugin. + + MessagesWindow window = designer.Plugins.FindType("MessagesWindow") as MessagesWindow; + + - + - Initializes a new instance of the class. + Represents list of registered design plugins. - + - Required designer variable. + Adds a new plugin's type. + The type of a plugin. - + - Clean up any resources being used. + Provides functionality required for report designer plugins such as toolbars and toolwindows. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the plugin name. - + - Form for . - For internal use only. + Saves the plugin state. + This example shows how to save the state: + + public void SaveState() + { + XmlItem xi = Config.Root.FindItem("Designer").FindItem(Name); + xi.SetProp("ShowGrid", DialogWorkspace.ShowGrid ? "1" : "0"); + } + + - - + + + Restores the plugin state. + + This example shows how to restore the state: + + public void RestoreState() + { + XmlItem xi = Config.Root.FindItem("Designer").FindItem(Name); + DialogWorkspace.ShowGrid = xi.GetProp("ShowGrid") != "0"; + } + + - - + + + Updates plugin state when current selection was changed. + + + Typically you need to do the same work in the and + methods. + - - + + + Updates plugin state when the report was modified. + + + Typically you need to do the same work in the and + methods. + - + - Initializes a new instance of the class. + Locks the plugin. + + This method is called by the designer when report is loading. It may be needed to disable + some operations (like painting) that use the report. + - + - Required designer variable. + Unlocks the plugin. + This method is called by the designer when report is loaded. It follows the Lock + method call and must reset the lock. - + - Clean up any resources being used. + Localizes the plugin. - true if managed resources should be disposed; otherwise, false. + + This method is called by the designer when current localization is changed. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an options page that will be used in the Designer Options dialog to edit the plugin options. + The options page, if implemented; otherwise, null. - + - Form for . - For internal use only. + Updates UI style of the plugin. + + The plugin should update its style according to the designer's UIStyle property. + - + - + - + - - - Initializes a new instance of the class. - + + - + + + + + + + + + + + + + + + + + + + - Required designer variable. + Represents a Windows CheckBox. + Wraps the control. - + + + + - Clean up any resources being used. + Occurs when the value of the Checked property changes. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal CheckBox. - + - Form for . - For internal use only. + Gets or sets the value that determines the appearance of a CheckBox control. + Wraps the property. - - - - - - - - - - + - Initializes a new instance of the class. + Gets or sets the horizontal and vertical alignment of the check mark on a CheckBox control. + Wraps the property. - + - Required designer variable. + Gets or set a value indicating whether the CheckBox is in the checked state. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the state of the CheckBox. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether the CheckBox will allow three check states rather than two. + Wraps the property. - + - Form for . - For internal use only. + Gets or sets a script method name that will be used to handle the + event. - + - + - + - - - Initializes a new instance of the class. - - - - - Required designer variable. - + + - + - Clean up any resources being used. + This method fires the CheckedChanged event and the script code connected to the CheckedChangedEvent. - true if managed resources should be disposed; otherwise, false. + Event data. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the CheckBoxControl class with default settings. - + - Form for . - For internal use only. + Represents a Windows combo box control. + Wraps the control. - + - + - + - + - Initializes a new instance of the class. + Occurs after the selection has been changed. + Wraps the event. - + - Required designer variable. + Occurs each time an owner-drawn ComboBox item needs to be drawn and + when the sizes of the list items are determined. + Wraps the event. - + - Clean up any resources being used. + Occurs when a visual aspect of an owner-drawn ComboBox changes. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal ComboBox. - + - Form for . - For internal use only. + Gets or sets a value indicating whether your code or the operating system will handle drawing of elements in the list. + Wraps the property. - - - - - - - - + + + Gets or sets a value specifying the style of the combo box. + Wraps the property. + - + - Initializes a new instance of the class. + Gets or sets the width of the of the drop-down portion of a combo box. + Wraps the property. - + - Required designer variable. + Gets or sets the height in pixels of the drop-down portion of the ComboBox. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the height of an item in the combo box. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets a collection of the items contained in this ComboBox. + Wraps the property. - + - Form for . - For internal use only. + Gets or sets the maximum number of items to be shown in the drop-down portion of the ComboBox. + Wraps the property. - - + + + Gets or sets a value indicating whether the items in the combo box are sorted. + Wraps the property. + - - + + + Gets or sets the string that contains all items text. + - + - Initializes a new instance of the class. + Gets or sets the index specifying the currently selected item. + Wraps the property. - + - Required designer variable. + Gets or sets currently selected item in the ComboBox. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a script method name that will be used to handle the + event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a script method name that will be used to handle the + event. - + - Form for . - For internal use only. + Gets or sets a script method name that will be used to handle the + event. - + - + - + - + + + + + + + + + + - Initializes a new instance of the class. + This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. + Event data. - + - Required designer variable. + This method fires the MeasureItem event and the script code connected to the MeasureItemEvent. + Event data. - + - Clean up any resources being used. + This method fires the DrawItem event and the script code connected to the DrawItemEvent. - true if managed resources should be disposed; otherwise, false. + Event data. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the ComboBoxControl class with default settings. - + - Form for . - For internal use only. + Implements base behavior of button controls. - - - - - - - - - - + - Initializes a new instance of the class. + This property is not relevant to this class. - + - Required designer variable. + Gets or sets a value that indicates whether the control resizes based on its contents. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the image that is displayed on a button control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the alignment of the image on the button control. + Wraps the property. - + - Base form for all export options dialog forms. + Gets or sets the alignment of the text on the button control. + Wraps the property. - + - Represents the "Open after export" button visibility. + Gets or sets the position of text and image relative to each other. + Wraps the property. - + + + + + + + - Gets a reference to the currently editing export filter. + Represents a Windows button control. + Wraps the control. - + - + - - + + + This property is not relevant to this class. + - + - Called when editing is done. + This property is not relevant to this class. - - Override this method to pass edited values from the dialog controls to the export filter. - - See the example of this method implementation that is used in the ImageExport. - - protected override void Done() - { - base.Done(); - ImageExport imageExport = Export as ImageExport; - imageExport.ImageFormat = (ImageExportFormat)cbxImageFormat.SelectedIndex; - imageExport.Resolution = (int)udResolution.Value; - imageExport.JpegQuality = (int)udQuality.Value; - imageExport.SeparateFiles = cbSeparateFiles.Checked; - } - - - - - - + - Initializes controls with initial values. + This property is not relevant to this class. - The export filter to edit. - - Override this method to pass values from the export filter to the dialog controls. - - See the example of this method implementation that is used in the ImageExport. - - public override void Init(ExportBase export) - { - base.Init(export); - ImageExport imageExport = Export as ImageExport; - cbxImageFormat.SelectedIndex = (int)imageExport.ImageFormat; - udResolution.Value = imageExport.Resolution; - udQuality.Value = imageExport.JpegQuality; - cbSeparateFiles.Checked = imageExport.SeparateFiles; - } - - - - - - + - Initializes a new instance of the class with default settings. + This property is not relevant to this class. - + - Required designer variable. + Gets an internal Button. - + - Clean up any resources being used. + Gets or sets a value that is returned to the parent form when the button is clicked. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - + - "Page Range" groupbox. + Initializes a new instance of the ButtonControl class with default settings. - + - "Page Numbers" label. + Displays a ListBox in which a check box is displayed to the left of each item. + Wraps the control. - + - "Page Numbers" textbox. + This property is not relevant to this class. - + - "Page Numbers" radiobutton. + This property is not relevant to this class. - + - "Current Page" radiobutton. + Occurs after item's check state was changed. + Wraps the event. - + - "All Pages" radiobutton. + Gets an internal CheckedListBox. - + - PageControl. + Gets or sets a value indicating whether the check box should be toggled when an item is selected. + Wraps the property. - + - Pages panel. + Collection of checked indexes in this CheckedListBox. + Wraps the property. - + - "Open after export" checkbox. + Collection of checked items in this CheckedListBox. + Wraps the property. - + - Required designer variable. + Gets or sets a script method name that will be used to handle the + event. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - + - Required designer variable. + This method fires the ItemCheck event and the script code connected to the ItemCheckEvent. + Event data. - + - Clean up any resources being used. + Initializes a new instance of the CheckedListBoxControl class with default settings. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Displays a hierarchical collection of labeled items, each represented by a TreeNode. + Wraps the control. - + - Represents a Windows Form used to show a table when View Data clicked on a DataSource. + This property is not relevant to this class. - - - Gets or sets the data grid. - + + - + + + + - Initializes a new instance of the class. + Occurs after the tree node is selected. + Wraps the event. - + - Required designer variable. + Gets an internal TreeView. - + - Clean up any resources being used. + Gets or sets a value indicating whether check boxes are displayed next to the tree nodes in the tree view control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether lines are drawn between tree nodes in the tree view control. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether lines are drawn between the tree nodes that are at the root of the tree view. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the ImageList that contains the Image objects used by the tree nodes. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the collection of tree nodes that are assigned to the tree view control. + Wraps the property. - + - Represents the Splash Screen showing during loading designer + Gets or sets the tree node that is currently selected in the tree view control. + Wraps the property. - + - Initializes a new instance of the class. + Gets or sets a script method name that will be used to handle the + event. - + + + + + + + + + + - Filters mouse events. - For internal use only. + This method fires the AfterSelect event and the script code connected to the AfterSelectEvent. + Event data. - + - Required designer variable. + Initializes a new instance of the class with default settings. - + - Clean up any resources being used. + Represents a Windows text box control. + Wraps the control. - true if managed resources should be disposed; otherwise, false. - + + + + + + + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal TextBox. - + - Represents the Welcome window displayed on the designer startup + Gets or sets a value indicating whether pressing ENTER in a multiline TextBox control creates a new line of text in the control or activates the default button for the form. + Wraps the property. - + - Initializes a new instance of the class. + Gets or sets a value indicating whether pressing the TAB key in a multiline text box control types a TAB character in the control instead of moving the focus to the next control in the tab order. + Wraps the property. - - + - Required designer variable. + Gets or sets whether the TextBox control modifies the case of characters as they are typed. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the maximum number of characters the user can type or paste into the text box control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether this is a multiline TextBox control. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether text in the text box is read-only. + Wraps the property. - + - Clean up any resources being used. + Gets or sets which scroll bars should appear in a multiline TextBox control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets how text is aligned in a TextBox control. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether the text in the TextBox control should appear as the default password character. + Wraps the property. - + - Clean up any resources being used. + Indicates whether a multiline text box control automatically wraps words to the beginning of the next line when necessary. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + + + + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the TextBoxControl class with default settings. - + - Required designer variable. + Enables the user to select a single option from a group of choices when paired with other RadioButton controls. + Wraps the control. - + + + + - Clean up any resources being used. + Occurs when the value of the Checked property changes. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal RadioButton. - + - The "Advanced Connection Properties" form. + Gets or sets the location of the check box portion of the RadioButton. + Wraps the property. - + - Gets or sets the connection string builder which contains the connection properties. + Gets or sets a value indicating whether the control is checked. + Wraps the property. - + - Initializes a new instance of the class. + Gets or sets a script method name that will be used to handle the + event. - + + + + + + + + + + + + + - Required designer variable. + This method fires the CheckedChanged event and the script code connected to the CheckedChangedEvent. + Event data. - + - Clean up any resources being used. + Initializes a new instance of the RadioButtonControl class with default settings. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents a Windows picture box control for displaying an image. + Wraps the control. - + - Required designer variable. + This property is not relevant to this class. - + + + + - Clean up any resources being used. + Gets an internal PictureBox. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Indicates the border style for the control. + Wraps the property. - + - Required designer variable. + Gets or sets the image that the PictureBox displays. + Wraps the property. - + - Clean up any resources being used. + Indicates how the image is displayed. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the PictureBoxControl class with default settings. - + - Required designer variable. + Base class for controls that may contain child controls. - + + + + + + + + + + + + + - Clean up any resources being used. + Gets the collection of child controls. - true if managed resources should be disposed; otherwise, false. - + + + + + + + + + + + + + + + + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the ParentControl class with default settings. - + - Required designer variable. + Used to group collections of controls. + Wraps the control. - + - Clean up any resources being used. + This property is not relevant to this class. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal Panel. - + - Represents the FastReport exception form. + Indicates the border style for the control. + Wraps the property. - + - + + + + - Creates a new instance ofthe form. + Initializes a new instance of the PanelControl class with default settings. - The exception object which data to display in the form. - + - Required designer variable. + Represents a Windows spin box (also known as an up-down control) that displays numeric values. + Wraps the control. - + - Clean up any resources being used. + This property is not relevant to this class. - true if managed resources should be disposed; otherwise, false. - + + + + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Occurs when the Value property has been changed in some way. + Wraps the event. - + - Required designer variable. + Gets an internal NumericUpDown. - + - Clean up any resources being used. + Gets or sets the number of decimal places to display in the up-down control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether the up-down control should display the value it contains in hexadecimal format. + Wraps the property. - + - Required designer variable. + Gets or sets the value to increment or decrement the up-down control when the up or down buttons are clicked. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the maximum value for the up-down control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the minimum value for the up-down control. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether a thousands separator is displayed in the up-down control when appropriate. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the value assigned to the up-down control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a script method name that will be used to handle the + event. - + + + + + + + + + + + + + + + + - Required designer variable. + This method fires the ValueChanged event and the script code connected to the ValueChangedEvent. + Event data. - + - Clean up any resources being used. + Initializes a new instance of the NumericUpDownControl class with default settings. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents a Windows control that enables the user to select a date using a visual monthly calendar display. + Wraps the control. - + + + + + + + + + + + + + - Required designer variable. + Occurs when the date selected in the MonthCalendar changes. + Wraps the event. - + - Clean up any resources being used. + Gets an internal MonthCalendar. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the number of columns and rows of months displayed. + Wraps the property. - + - + Gets or sets the first day of the week as displayed in the month calendar. + Wraps the property. - + - Gets Aborted state + Gets or sets the maximum allowable date. + Wraps the property. - + - + Gets or sets the maximum number of days that can be selected in a month calendar control. + Wraps the property. - - - - - - + - Required designer variable. + Gets or sets the minimum allowable date. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a value indicating whether the date represented by the TodayDate property is displayed at the bottom of the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether today's date is circled. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether the month calendar control displays week numbers (1-52) to the left of each row of days. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the value that is used by MonthCalendar as today's date. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the array of DateTime objects that determines which annual days are displayed in bold. + Wraps the property. - + - Required designer variable. + Gets or sets the array of DateTime objects that determines which nonrecurring dates are displayed in bold. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the array of DateTime objects that determine which monthly days to bold. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the end date of the selected range of dates. + Wraps the property. - + - Required designer variable. + Gets or sets the selected range of dates for a month calendar control. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the start date of the selected range of dates. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a script method name that will be used to handle the + event. - + + + + + + + + + + + + + - Required designer variable. + This method fires the DateChanged event and the script code connected to the DateChangedEvent. + Event data. - + - Clean up any resources being used. + Initializes a new instance of the MonthCalendarControl class with default settings. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Uses a mask to distinguish between proper and improper user input. + Wraps the control. - + + + + + + + + + + + + + - Form for barcode editor + Gets an internal MaskedTextBox. - + - Generated text for barcode object + Gets or sets the input mask to use at run time. + Wraps the property. - + - Initializes a new instance of the class. + Gets or sets a value indicating whether the user is allowed to reenter literal values. + Wraps the property. - Text data for parsing - Report object for nodes - Brackets symbols - Editor for rich barcode? - + - Required designer variable. + Gets or sets how text is aligned in a masked text box control. + Wraps the property. - + + + + + + + + + + - Clean up any resources being used. + Initializes a new instance of the MaskedTextBoxControl class with default settings. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents a Windows list view control, which displays a collection of items that can be displayed using one of four different views. + Wraps the control. - + - Required designer variable. + This property is not relevant to this class. - + + + + + + + - Clean up any resources being used. + Occurs when the checked state of an item changes. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Occurs when the index of the selected item in the list view control changes. + Wraps the event. - + - Required designer variable. + Gets an internal ListView. - + - Clean up any resources being used. + Gets or sets a value indicating whether a check box appears next to each item in the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether multiple items can be selected. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether items are displayed in groups. + Wraps the property. - + - Clean up any resources being used. + Gets or sets how items are displayed in the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a script method name that will be used to handle the + event. - + - Required designer variable. + Gets or sets a script method name that will be used to handle the + event. - + - Clean up any resources being used. + Gets the indexes of the currently checked items in the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the currently checked items in the control. + Wraps the property. - + - Required designer variable. + Gets the collection of all column headers that appear in the control. + Wraps the property. - + - Clean up any resources being used. + Gets the collection of ListViewGroup objects assigned to the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets a collection containing all items in the control. + Wraps the property. - + - Required designer variable. + Gets or sets the ImageList to use when displaying items as large icons in the control. + Wraps the property. - + - Clean up any resources being used. + Gets the indexes of the selected items in the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the items that are selected in the control. + Wraps the property. - + - Required designer variable. + Gets or sets the ImageList to use when displaying items as small icons in the control. + Wraps the property. - + + + + + + + + + + - Clean up any resources being used. + This method fires the ItemChecked event and the script code connected to the ItemCheckedEvent. - true if managed resources should be disposed; otherwise, false. + Event data. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. + Event data. - + - Required designer variable. + Initializes a new instance of the ListViewControl class with default settings. - + - Clean up any resources being used. + Base class for list box controls such as ListBoxControl, CheckedListBoxControl. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + This property is not relevant to this class. - + + + + + + + - Required designer variable. + Occurs when the SelectedIndex property has changed. + Wraps the event. - + - Clean up any resources being used. + Occurs when an owner-drawn ListBox is created and the sizes of the list items are determined. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Occurs when a visual aspect of an owner-drawn ListBox changes. + Wraps the event. - + - Required designer variable. + Gets or sets the width of columns in a multicolumn ListBox. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the drawing mode for the control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the height of an item in the ListBox. + Wraps the property. - + - Required designer variable. + Gets the items of the ListBox. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a value indicating whether the ListBox supports multiple columns. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the method in which items are selected in the ListBox. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether the items in the ListBox are sorted alphabetically. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a value indicating whether the ListBox can recognize and expand tab characters when drawing its strings. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the string that contains all items text. - + - Required designer variable. + Gets or sets the zero-based index of the currently selected item in a ListBox. + Wraps the property. - + - Clean up any resources being used. + Gets a collection that contains the zero-based indexes of all currently selected items in the ListBox. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the currently selected item in the ListBox. + Wraps the property. - + - Required designer variable. + Gets a collection containing the currently selected items in the ListBox. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a script method name that will be used to handle the + event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a script method name that will be used to handle the + event. - + - Required designer variable. + Gets or sets a script method name that will be used to handle the + event. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + This method fires the SelectedIndexChanged event and the script code connected to the SelectedIndexChangedEvent. + Event data. - + - Required designer variable. + This method fires the MeasureItem event and the script code connected to the MeasureItemEvent. + Event data. - + - Clean up any resources being used. + This method fires the DrawItem event and the script code connected to the DrawItemEvent. - true if managed resources should be disposed; otherwise, false. + Event data. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Represents a standard Windows label. + Wraps the control. - - - Required designer variable. - + + - + - Clean up any resources being used. + Gets an internal Label. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether the control is automatically resized to display its entire contents. + Wraps the property. - + - Required designer variable. + Gets or sets the alignment of text in the label. + Wraps the property. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the LabelControl class with default settings. - + - Required designer variable. + Displays data in a customizable grid. + Wraps the control. - + - Clean up any resources being used. + This property is not relevant to this class. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + This property is not relevant to this class. - + - Required designer variable. + This property is not relevant to this class. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets an internal DataGridView. - + - Required designer variable. + Gets or sets the data source that the DataGridView is displaying data for. - + - Clean up any resources being used. + Gets or sets a value indicating whether the option to add rows is displayed to the user. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating whether the user is allowed to delete rows from the DataGridView. + Wraps the property. - + - Required designer variable. + Gets or sets the default cell style applied to odd-numbered rows of the DataGridView. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a value indicating how column widths are determined. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a value indicating how row heights are determined. + Wraps the property. - + - Base class for all dialog forms with two buttons, OK and Cancel. + Gets or sets the background color of the DataGridView. + Wraps the property. - + - Localizes the dialog controls. + Gets or sets the border style for the DataGridView. + Wraps the property. - - Use this method to set control's captions specific to the current locale. - - + - Initializes a new instance of the class. + Gets the cell border style for the DataGridView. + Wraps the property. - + - Required designer variable. + Gets the border style applied to the column headers. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the default column header style. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the height, in pixels, of the column headers row. + Wraps the property. - + - The OK button. + Gets or sets a value indicating whether the height of the column headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. + Wraps the property. - + - The Cancel button. + Gets or sets a value indicating whether the column header row is displayed. + Wraps the property. - + - Required designer variable. + Gets the collection of objects that represents the grid columns. - + - Clean up any resources being used. + Gets or sets the default cell style to be applied to the cells in the DataGridView if no other cell style properties are set. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the color of the grid lines separating the cells of the DataGridView. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether the user is allowed to select more than one cell, row, or column of the DataGridView at a time. + Wraps the property. - + - Clean up any resources being used. + Gets a value indicating whether the user can edit the cells of the DataGridView control. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the border style of the row header cells. + Wraps the property. - + - Required designer variable. + Gets or sets the default style applied to the row header cells. + Wraps the property. - + - Clean up any resources being used. + Gets or sets a value indicating whether the column that contains row headers is displayed. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the width, in pixels, of the column that contains the row headers. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating whether the width of the row headers is adjustable and whether it can be adjusted by the user or is automatically adjusted to fit the contents of the headers. + Wraps the property. - + - Clean up any resources being used. + Gets or sets the default style applied to the row cells of the DataGridView. + Wraps the property. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets the type of scroll bars to display for the DataGridView control. + Wraps the property. - + - Required designer variable. + Gets or sets a value indicating how the cells of the DataGridView can be selected. + Wraps the property. - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - The base class for designer plugin's options page. - - - Use this class if you develop a designer plugin that may be configured in the - "View|Options..." menu. You need to implement an options page for your - plugin and return it in the IDesignerPlugin.GetOptionsPage method. - + + - - - The TabControl control. - + + - - - The TabPage control. - + + - - - Initializes controls on this options page. - - - Override this method to fill options page's controls with initial values. - + + - + + + + + + + + + + - Finalizes the options page. + Initializes a new instance of the GridControl class with default settings. - The dialog result. - - Override this method to pass controls' values to the plugin. Do this if result is - DialogResult.OK. - - + - Initializes a new instance of the DesignerOptionsPage class with default settings. + Represents the special kind of report page that wraps the + and used to display dialog forms. - Usually you need to define another contructor which takes one parameter - the plugin. + Use the property to add/remove controls to/from a dialog form. + If you set the Visible property to false, this dialog form will be + skippen when you run a report. - This example shows how to define own constructor which takes a plugin: + This example shows how to create a dialog form with one button in code. - public DialogPageOptions(DialogPageDesigner pd) : base() - { - FPageDesigner = pd; - InitializeComponent(); - } + DialogPage form = new DialogPage(); + // set the width and height in pixels + form.Width = 200; + form.Height = 200; + form.Name = "Form1"; + // create a button + ButtonControl button = new ButtonControl(); + button.Location = new Point(20, 20); + button.Size = new Size(75, 25); + button.Text = "The button"; + // add the button to the form + form.Controls.Add(button); - - - Excel 2003 export class - - - + - - - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. - - - - - Gets or sets a value that determines whether to insert page breaks in the output file or not. - + + - - - Read and parse Excel document - + + - + - + - + - + - + - + - + - + - + - Related to DRAWING group. Used once + Occurs before a form is displayed for the first time. + Wraps the event. - + - Provides API to binary stream + Occurs after the form is closed. + Wraps the event. - + - + Occurs before the form is closed. + Wraps the event. - + - Represents the CSV export filter. + Occurs whenever the form is first displayed. + Wraps the event. - - - - + - Gets or set the resulting file encoding. + Occurs when the form is resized. + Wraps the event. - + - Gets or set the separator character used in csv format. + Occurs when the form is redrawn. + Wraps the event. - + - Gets or sets a value that determines whether to export the databand rows only. + Gets an internal Form. - + - Gets or sets a value that disable quotation marks for text + Gets or sets an active state in Web application. - - - - - + + + Gets or sets the button on the form that is clicked when the user presses the ENTER key. + Wraps the property. + - - + + + Gets or sets the button control that is clicked when the user presses the ESC key. + Wraps the property. + - - + + + Gets or sets the background color for the form. + Wraps the property. + - - + + + Gets or sets the font of the text displayed by the control. + Wraps the property. + - - + + + Gets or sets the border style of the form. + Wraps the property. + - + - Initializes a new instance of the class. - + Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. + Wraps the property. +
- + - Represents the export to DBF. + Gets or sets the text associated with this form. + Wraps the property. - - + + + Gets or sets a script method name that will be used to handle the + event. + - + - Gets or sets the encoding. + Gets or sets a script method name that will be used to handle the + event. - + - Gets or sets a value that determines whether to export the databand rows only. + Gets or sets a script method name that will be used to handle the + event. - + - Gets or sets the list of field names. + Gets or sets a script method name that will be used to handle the + event. - - The field names must be separated by ";" symbol, for example: Column1;Column2;Column3 - - + - Initializes a new instance of the class. + Gets or sets a script method name that will be used to handle the + event. - + + + Gets or sets a script method name that will be used to handle the + event. + + + + + Gets the collection of controls contained within the form. + + + - + - + - + - + - + - + - - - Represents the record. - + + - - - Gets or sets the field with a specified index. - + + - - - Gets the count of a fields. - + + - - - Gets the size of a fields. - + + - + + + + + + + - Initializes a new instance of the class. + Shows the form as a modal dialog box with the currently active window set as its owner. + Wraps the method. + One of the DialogResult values. - + - Adds the new item into a list of fields. + This method fires the Load event and the script code connected to the LoadEvent. + Event data. - + - Clears the list of fields. + This method fires the FormClosed event and the script code connected to the FormClosedEvent. + Event data. - + - Represents the email export. + This method fires the FormClosing event and the script code connected to the FormClosingEvent. - - In order to use this class, you need to set up at least the following properties: - , , . Use the - property to choose the format of an attachment. If you leave it empty, the attachment will be - in the .FRP format (FastReport prepared report). When you done with settings, call the - method to send an email. - - - This example demonstrates the bare minimum required to send an email. - - EmailExport export = new EmailExport(); - export.Account.Address = "my@address.net"; - export.Account.Host = "myhost"; - export.Address = "recipient@address.net"; - export.Subject = "Re: analysis report"; - // the report1 report must be prepared at this moment - export.SendEmail(report1); - - + Event data. - + - Displays the dialog box in which you can set up all parameters. + This method fires the Shown event and the script code connected to the ShownEvent. - true if user pressed OK button in the dialog. + Event data. - + - Gets or sets the recipient's address. + This method fires the Resize event and the script code connected to the ResizeEvent. - - This property must contain value in form "john@url.com". - + Event data. - + - Gets or sets the carbon copy adresses. + This method fires the Paint event and the script code connected to the PaintEvent. - - This property must contain an array of values in form "john@url.com". - + Event data. - + - Gets or sets the subject of the message. + Initializes a new instance of the DialogPage class. - + - Gets or sets the message body. + Base class for all dialog controls such as ButtonControl, TextBoxControl. - + - Gets or sets the export filter which will be used to export a report. + Determines whether is necessary to serialize the BackColor property. - - Set this property to instance of any export filter. When you send the email, the report - will be exported using that export filter. - By default, this property is set to null. In this case the report will be send - in .FRP format. - + true if serialization is necessary. - + - Gets the email account settings such as host, user name, password. + Determines whether is necessary to serialize the Cursor property. + true if serialization is necessary. - + - Gets the parent Report object + Determines whether is necessary to serialize the ForeColor property. + true if serialization is necessary. - + + + + - Sends an email. + Draws the selection point. - Reports that will be sent as attachments. - - Before using this method, set up the following properties (it's a bare minimum): - , , . - The report that you pass in this method must be prepared using the Prepare method. - + Graphics object to draw on. + object. + object. + Left coordinate. + Top coordinate. - + - + - + - Initializes a new instance of the class with default settings. + Creates the empty event handler for the ClickEvent event in the report's script. + true if event handler was created successfully. - - - Initializes a new instance of the class with default settings. - + + - + - Form for . - For internal use only. + Occurs when the control is clicked. + Wraps the event. - + - Hides attachment settings. - For internal use only. + Occurs when the control is double-clicked. + Wraps the event. - - - - + - Initializes a new instance of the class. + Occurs when the control is entered. + Wraps the event. - + - Required designer variable. + Occurs when the input focus leaves the control. + Wraps the event. - + - Clean up any resources being used. + Occurs when a key is pressed while the control has focus. + Wraps the event. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Occurs when a key is pressed while the control has focus. + Wraps the event. - + - Contains the email account settings such as host, email address, name. + Occurs when a key is released while the control has focus. + Wraps the event. - - You have to set up at least the and properties. If your - host requires authentication, provide the and - properties as well. - Set property to true if you want to use default email client - such as Outlook to send an email. In this case, all other properties will be ignored. - - + - Gets or sets the sender's email address. + Occurs when the mouse pointer is over the control and a mouse button is pressed. + Wraps the event. - - This property contains your email address (for example, "john@site.com"). - - + - Gets or sets the sender's name. + Occurs when the mouse pointer is moved over the control. + Wraps the event. - - This property contains your name (for example, "John Smith"). - - + - Gets or sets the template that will be used to create a new message. + Occurs when the mouse pointer is over the control and a mouse button is released. + Wraps the event. - + - Gets or sets the SMTP host name or IP address. + Occurs when the mouse pointer enters the control. + Wraps the event. - + - Gets or sets the SMTP port. + Occurs when the mouse pointer leaves the control. + Wraps the event. - - The default value for this property is 25. - - + - Gets or sets the user name. + Occurs when the control is resized. + Wraps the event. - - Specify the and properties if your host requires - authentication. - - + - Gets or sets the password. + Occurs when the Text property value changes. + Wraps the event. - - Specify the and properties if your host requires - authentication. - - + - Gets or sets a value that determines whether to enable the SSL protocol. + Occurs when the control is redrawn. + Wraps the event. - + - Gets or sets a value that determines whether the account setting page - in the "Send Email" window is enabled. + Gets an internal Control. - + - Gets or sets a value that determines whether to use MAPI instead of SMTP when sending an email. + Gets or sets the background color for the control. + Wraps the property. - + - Copies email settings from another source. + Gets or sets the cursor that is displayed when the mouse pointer is over the control. + Wraps the property. - Source to copy settings from. - + - Initializes a new instance of the class with default settings. + Gets or sets a value indicating whether the control can respond to user interaction. + Wraps the property. - + - Allows to send message using MAPI interface. + Gets or sets the font of the text displayed by the control. + Wraps the property. - + - Sends a message. + Gets or sets the foreground color of the control. + Wraps the property. - Parent window handle. - Files to attach. - Email subject. - Email body. - Recipient names. - Recipient addresses. - Error code. 0 if operation was completed succesfully. - + - Returns a text describing an error. + Gets or sets a value indicating whether control's elements are aligned to support locales using right-to-left fonts. + Wraps the property. - The error code. - The text describing an error. - + - The base class for all export filters. + Gets or sets the tab order of the control within its container. + Wraps the property. - + - Exports the report to a file. + Gets or sets a value indicating whether the user can give the focus to this control using the TAB key. + Wraps the property. - Report to export. - true if report was succesfully exported. - - This method displays an export options dialog, then prompts a file name using standard "Open file" - dialog. If both dialogs were closed by OK button, exports the report and returns true. - - + - Displays a dialog with export options. + Gets or sets the text associated with this control. + Wraps the property. - true if dialog was closed with OK button. - + - Zoom factor for output file + Gets or sets which control borders are docked to its parent control and determines how a control is resized with its parent. + Wraps the property. - + - File filter that can be used in the "Save file" dialog. + Gets or sets the edges of the container to which a control is bound and determines how a control is resized with its parent. + Wraps the property. - + - Range of pages to export. + Gets or sets a value indicating whether the control is displayed. + Wraps the property. - + - Page numbers to export. + Gets or sets a property that returns actual data contained in a control. This value is used + in the "Data" window. - - Use page numbers separated by comma and/or page ranges, for example: "1,3-5,12". Empty string means - that all pages need to be exported. - - + - Current page number. + Gets or sets a script method name that will be used to handle the + event. - - Page number need to be exported if user selects "Current page" radiobutton in the export options dialog. - This property is typically set to current page number in the preview window. - - + - Open the document after export. + Gets or sets a script method name that will be used to handle the + event. - + - Allows or disables the OpenAfterExport feature. + Gets or sets a script method name that will be used to handle the + event. - + - Gets or sets a value that determines whether to show progress window during export or not. + Gets or sets a script method name that will be used to handle the + event. - + - Gets a list of files generated by this export. + Gets or sets a script method name that will be used to handle the + event. - + - Gets a value indicating that the export may produce multiple output files. + Gets or sets a script method name that will be used to handle the + event. - + - Gets or sets a value indicating that the report bands should be shifted, if page - has any non-exportable bands + Gets or sets a script method name that will be used to handle the + event. - + - Gets or sets the initial directory that is displayed by a save file dialog. + Gets or sets a script method name that will be used to handle the + event. - + - Stream to export to. + Gets or sets a script method name that will be used to handle the + event. - + - File name to export to. + Gets or sets a script method name that will be used to handle the + event. - + - Array of page numbers to export. + Gets or sets a script method name that will be used to handle the + event. - + - Returns a file filter for a save dialog. + Gets or sets a script method name that will be used to handle the + event. - String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - This method is called when the export starts. + Gets or sets a script method name that will be used to handle the + event. - + - This method is called at the start of exports of each page. + Gets or sets a script method name that will be used to handle the + event. - Page for export may be empty in this method. - + - This method is called at the end of exports of each page. + Gets or sets a script method name that will be used to handle the + event. - Page for export may be empty in this method. - - - This method is called for each band on exported page. - - Band, dispose after method compite. + + - + + + + + + + + + + + + + - This method is called when the export is finished. + Called when the control's Enabled state changed. - + - Gets a report page with OverlayBand if it is a Demo or Academic. + Attaches Control events to its event handlers. - The prepared report page - The prepared report page with OverlayBand. + + Override this method if your custom control has own events. + + See the example of AttachEvents implementation used in the CheckBoxControl: + + protected override void AttachEvents() + { + base.AttachEvents(); + CheckBox.CheckedChanged += new EventHandler(CheckBox_CheckedChanged); + } + + private void CheckBox_CheckedChanged(object sender, EventArgs e) + { + if (CheckedChanged != null) + CheckedChanged(this, e); + InvokeEvent(CheckedChangedEvent, e); + } + + - + - Gets a report page with specified index. + Detaches Control events from its event handlers. - Zero-based index of page. - The prepared report page. + + Override this method if your custom control has own events. In this method, you should + detach control's events that were attached in the method. + + See the example of DetachEvents implementation used in the CheckBoxControl: + + protected override void DetachEvents() + { + base.DetachEvents(); + CheckBox.CheckedChanged -= new EventHandler(CheckBox_CheckedChanged); + } + + - + - + - + - Exports the report to a stream. + Initializes the control before display it in the dialog form. - Report to export. - Stream to export to. - This method does not show an export options dialog. If you want to show it, call - method prior to calling this method, or use the "Export(Report report)" method instead. + This method is called when report is run. - + - Exports the report to a file. + Finalizes the control after its parent form is closed. - Report to export. - File name to export to. - This method does not show an export options dialog. If you want to show it, call - method prior to calling this method, or use the "Export(Report report)" method instead. + This method is called when report is run. - + - Initializes a new instance of the class. + Sets input focus to the control. - + - Represents the HTML export filter. + Conceals the control from the user. + + - Represents the HTML export filter. + Displays the control to the user. + + - Represents the HTML export filter. + This method fires the Click event and the script code connected to the ClickEvent. + Event data. + + - Represents the HTML export filter. + This method fires the DoubleClick event and the script code connected to the DoubleClickEvent. + Event data. + + - Represents the HTML export filter. + This method fires the Enter event and the script code connected to the EnterEvent. + Event data. - - - - + - Draw any custom controls + This method fires the Leave event and the script code connected to the LeaveEvent. + Event data. - + - Draw any custom controls. + This method fires the KeyDown event and the script code connected to the KeyDownEvent. - + Event data. - + - Types of html export + This method fires the KeyPress event and the script code connected to the KeyPressEvent. + Event data. - + - Simple export + This method fires the KeyUp event and the script code connected to the KeyUpEvent. + Event data. - + - Web preview mode + This method fires the MouseDown event and the script code connected to the MouseDownEvent. + Event data. - + - Web print mode + This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Event data. - + - Sets a ID of report + This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Event data. - + - Sets an onclick template + This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. + Event data. - + - Enable or disable layers export mode + This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. + Event data. - + - For internal use only. + This method fires the Resize event and the script code connected to the ResizeEvent. + Event data. - + - For internal use only. + This method fires the TextChanged event and the script code connected to the TextChangedEvent. + Event data. - + - For internal use only. + This method fires the Paint event and the script code connected to the PaintEvent. + Event data. - + - For internal use only. + Base class for all dialog components. - + + + + + + + + + + + + + - For internal use only. + Gets or sets the coordinates of the upper-left corner of the control relative to the upper-left corner of its container. - + - Enable or disable showing of print dialog in browser when html document is opened + Gets or sets the height and width of the control. - + + + + - Enable or disable preview in Web settings + Initializes a new instance of the DialogComponentBase class with default settings. - + - Enable or disable the breaks between pages in print preview when single page mode is enabled + Represents the control with two lists (available items and selected items). + + The control allows to select one or several items and then filter the datasource which it is connected to. + All you need is to setup the DataColumn property. + - + - Specifies the output format + This property is not relevant to this class. - + - Specifies the width units in HTML export + This property is not relevant to this class. - + - Specifies the height units in HTML export + Gets or sets a value indicating that the items must be sorted. - + + + + + + + + + + + + + + + + + + + - Enable or disable the pictures in HTML export + Initializes a new instance of the DataSelectorControl class with default settings. - + - Enable or disable embedding pictures in HTML export + Represents a Windows control that allows the user to select a date and a time and to display the date and time with a specified format. + Wraps the control. - + - Enable or disable the WEB mode in HTML export + This property is not relevant to this class. - + + + + + + + + + + - Gets or sets html export mode + Occurs after the date has been changed. + Wraps the event. - + - Enable or disable the single HTML page creation + Gets an internal DateTimePicker. - + - Enable or disable the page navigator in html export + Gets or sets a value indicating whether the Value property has been set with a valid date/time value and the displayed value is able to be updated. + Wraps the property. - + - Enable or disable the sub-folder for files of export + Gets or sets the custom date/time format string. + Wraps the property. - + - Gets or sets the Wysiwyg quality of export + Gets or sets the alignment of the drop-down calendar on the DateTimePicker control. + Wraps the property. - + - Gets or sets the image format. + Gets or sets the format of the date and time displayed in the control. + Wraps the property. - + - Gets print page data + Gets or sets the maximum date and time that can be selected in the control. + Wraps the property. - + - Gets list of generated streams. + Gets or sets the minimum date and time that can be selected in the control. + Wraps the property. - + - Enable or disable saving streams in GeneratedStreams collection. + Gets or sets a value indicating whether a check box is displayed to the left of the selected date. + Wraps the property. - + - Enable or disable margins for pages. Works only for Layers-mode. + Gets or sets a value indicating whether a spin button control (also known as an up-down control) is used to adjust the date/time value. + Wraps the property. - + - Enable or disable export of vector objects such as Barcodes in SVG format. + Gets or sets the date/time value assigned to the control. + Wraps the property. - - + + + Gets or sets a script method name that will be used to handle the + event. + - + - + - + - + - + - Process Page with number p and real page ReportPage + This method fires the ValueChanged event and the script code connected to the ValueChangedEvent. - - - + Event data. - + - Process Page with number p and real page ReportPage + Initializes a new instance of the DateTimePickerControl class with default settings. - - - - - - - - - + - For internal use only. + Represents the 's column. + Wraps the class. - + - Initializes a new instance of the class. + Gets or sets the mode by which the column automatically adjusts its width. + Wraps the property. - + - Represents the HTML export templates. + Gets or sets the data column attached to this column. - + - Page Template Title + Gets or sets the caption text on the column's header cell. + Wraps the property. - + - Page Template Footer + Gets or sets the column's default cell style. + Wraps the property. - + - Navigator Template + Gets or sets a value that represents the width of the column when it is in fill mode relative to the widths of other fill-mode columns in the control. + Wraps the property. - + - OutlineTemplate + Gets or sets the current width of the column. + Wraps the property. - + - Index Template + Gets or sets a value indicating whether the column is visible. + Wraps the property. - + - Initializes a new instance of the class. + This property is not relevant to this class. - + - Represents the HTML export format enum + This property is not relevant to this class. - - - Represents the message-HTML type - + + - + + + + - Represents the HTML type + Initializes a new instance of the GridControlColumn class with default settings. - + - Specifies the image format in HTML export. + Represents the collection of GridControl columns. - + - Specifies the .bmp format. + Gets or sets a column. + The index of a column in this collection. + The column with specified index. - + + + + + + + - Specifies the .png format. + Serializes the collection. + Writer object. + + This method is for internal use only. + - + - Specifies the .jpg format. + Deserializes the collection. + Reader object. + + This method is for internal use only. + - + - Specifies the .gif format. + Initializes a new instance of the class with default settings. - + - Specifies the units of HTML sizes. + Initializes a new instance of the class with default settings. + The owner of this collection. - + - Specifies the pixel units. + Represents a Windows rich text box control. + Wraps the control. - + - Specifies the percent units. + Gets an internal RichTextBox. - + - For internal use only. + Gets or sets the text of the RichTextBox control, including all rich text format (RTF) codes. + Wraps the property. - + - For internal use only. + Gets or sets the type of scroll bars to display in the RichTextBox control. + Wraps the property. - + + + + - For internal use only. + Loads rtf from a file. + File to load from. - + - For internal use only. + Loads rtf from a stream using specified stream type. + Stream to load from. + Type of a stream. - + - For internal use only. - - - - - For internal use only. - - - - - For internal use only. - - - - - For internal use only. - - - - - For internal use only. + Loads rtf from a file using specified stream type. + File to load from. + Type of a stream. - + - For internal use only. + Initializes a new instance of the RichTextBoxControl class with default settings. - + - Event arguments for custom drawing of report objects. + Represents a Windows control that displays a frame around a group of controls with an optional caption. + Wraps the control. - + - Report object + Gets an internal GroupBox. - + - ReportObject. + Initializes a new instance of the GroupBoxControl class with default settings. - + - Resulting successfull drawing flag. + The base class for all controls that support the data filtering feature. + + The data filtering allows you to bind the control to a . + It will be automatically filled by data from the datasource's column. When you select/check + item(s) and close the dialog with OK button, it will filter the datasource according to your selection. + You can set the filter operation using the property. + - + - Resulting HTML string. + Occurs after the control is filled with data. - + - Resulting CSS string. + Gets or sets a value that determines whether to fill the control with data automatically. + + The default value of this property is true. If you set it to false, + you need to call the method manually. + - + - Layers mode when true or Table mode when false. + Gets or sets a value that determines whether to filter the datasource automatically + when you close the dialog by OK button. + + The default value of this property is true. If you set it to false, + you need to call the method manually. + - + - Zoom value for scale position and sizes. + Gets or sets a data column name that will be used to fill this control with data. + + This property must contain both datasource name and column name, for example: + Orders.OrderID. You also may use relations, for example: Orders.Customers.CompanyName. + - + - Left position. + Gets or sets name of report parameter which value will be set to value contained + in this control when you close the dialog. - + - Top position. + Gets or sets a value that specifies the filter operation. - + - Width of object. + Gets or sets the detail control used in cascaded filtering. - + - Height of object. + Gets or sets a script method name that will be used to handle the + event. - + - Represents the MHT export filter. + Fills the control with data. + The data source. + The data column. + Here is the example of FillData method implementation: + + protected override void FillData(DataSourceBase dataSource, Column column) + { + Items.Clear(); + dataSource.First(); + while (dataSource.HasMoreRows) + { + Items.Add(dataSource[column].ToString()); + dataSource.Next(); + } + } + + - - - - + - Enable or disable the pictures in MHT export + Returns list of values that can be used to fill control with data. + The data source. + The data column. + List of string values. + + This method is used by the FillData method to fill list-type controls + such as ListBox with data. The result list contains distinct values. + - + - Gets or sets the Wysiwyg quality of export + Returns value entered in the control. + The value of type supported by this control. + + This method must return a value entered by the user. For example, TextBox + control must return its Text property value. If this control supports multi-selection, + return selected values in an array, for example string[] array for CheckedListBox. + - + - Gets or sets the image format. + Handles the cascaded filter internal logic. + + This method should be called in your custom dialog control that supports data filtering. + Call it when the value in your control is changed. + - - - - + - + - - - Initializes a new instance of the class. - - - - - Represents the image export filter. - - - + - - - Gets or sets the image format. - - - + - Gets or sets a value that determines whether to generate separate image file - for each exported page. + Fills the control with data from a datasource. - If this property is set to true, the export filter will produce one big image - containing all exported pages. Be careful using this property with a big report - because it may produce out of memory error. + Call this method if you set the property to false. - + - Gets or sets image resolution, in dpi. + Fills the control with data from a datasource. + Parent data source - By default this property is set to 96 dpi. Use bigger values (300-600 dpi) - if you going to print the exported images. + Call this method if you need to implement cascaded filter. In the parentData parameter, + pass the parent data source that will be used to set up master-detail relationship with + data source in this control. - + - Gets or sets horizontal image resolution, in dpi. + Fills the control with data from a datasource. + Parent control - Separate horizontal and vertical resolution is used when exporting to TIFF. In other - cases, use the property instead. + Call this method if you need to implement cascaded filter. In the parentControl parameter, + pass the parent control which performs filtering on a parent data source. - + - Gets or sets vertical image resolution, in dpi. + Applies the filter to a datasource. - Separate horizontal and vertical resolution is used when exporting to TIFF. In other - cases, use the property instead. + Call this method if you set the property to false. - + - Gets or sets the jpg image quality. + Resets the filter set by this control. - - This property is used if is set to Jpeg. By default - it is set to 100. Use lesser value to decrease the jpg file size. - - + - Gets or sets the value determines whether to produce multi-frame tiff file. + This method fires the DataLoaded event and the script code connected to the DataLoadedEvent. + Event data. - + - Gets or sets a value that determines whether the Tiff export must produce monochrome image. + Initializes a new instance of the DataFilterBaseControl class with default settings. - - Monochrome tiff image is compressed using the compression method specified in the - property. - - + - Gets or sets the compression method for a monochrome TIFF image. + Represents the collection of dialog components. - - This property is used only when exporting to TIFF image, and the property - is set to true. - The valid values for this property are: EncoderValue.CompressionNone, - EncoderValue.CompressionLZW, EncoderValue.CompressionRle, - EncoderValue.CompressionCCITT3, EncoderValue.CompressionCCITT4. - The default compression method is CCITT4. - - + - Sets padding in non separate pages + Gets or sets a component. + The index of a component in this collection. + The component with specified index. - - - - - + + + Initializes a new instance of the class with default settings. + - - + + + Initializes a new instance of the class with default settings. + + The owner of this collection. - - + + + Represents a Windows control to display a list of items. + Wraps the control. + - - + + + Gets an internal ListBox. + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the ListBoxControl class with default settings. - + - Specifies the image export format. + Required designer variable. - + - Specifies the .bmp format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .png format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + + + + - Specifies the .jpg format. + Required designer variable. - + - Specifies the .gif format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .tif format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the .emf format. + The form for message box with text editor - + - Represents the JSON export filter. + Gets or sets text - - - - - + + + Defualt constructor + - + - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - - + + + Required designer variable. + - + - Initializes a new instance of the class. - + Clean up any resources being used. +
+ true if managed resources should be disposed; otherwise, false.
- + - Represents the LaTeX export filter. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - - + + + Form for . + For internal use only. + - + - + - + - + - Initializes a new instance of the class. - + Initializes a new instance of the class. +
- + - Base class for any ODF exports + Required designer variable. - - - - + - Switch of page breaks + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Wysiwyg mode, set for better results + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Creator of the document + Form for . + For internal use only. - - - - - - - - + + + Initializes a new instance of the class. + - + - + - + - + - Initializes a new instance of the class. + Required designer variable. - + - Open Document Spreadsheet export (Open Office Calc) + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Initializes a new instance of the class. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Open Document Text export (Open Office Writer) + Form for . + For internal use only. - + - + + + + + + + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Save + Required designer variable. - - - + - Padding over ridh object + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - This prperty keep RTF to DOC translation result, i.e. DOCX XML fragment + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - MS Word 2007 export class + Form for . + For internal use only. - + + + + + + + + + + - Types of table rows height + Initializes a new instance of the class. - + - Exactly height + Required designer variable. - + - Minimum height + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable matrix view of document + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable Paragraph view of document + Form for . + For internal use only. - + + + + + + + + + + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Initializes a new instance of the class. - - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets the type of height calculation. + Required designer variable. - + - Gets or sets the type of height calculation. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable a resolution optimization. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable DoNotExpandShiftReturn. + Form for . + For internal use only. - - - - - - - - - - - - - - - - - - - + - + - Initializes a new instance of the Word2007Export class. + Initializes a new instance of the class. - - + + + Required designer variable. + - + - Power point shape + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Power Point Layout Descriptor + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Power Point base class for style element + Form for . + For internal use only. - + + + + - Base class for styles group + Initializes a new instance of the class. - + - Base class for slides, masters, and layouts + Required designer variable. - + - Slide masters object + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Ordinaty slide + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Slide layout object + Form for . + For internal use only. - + + + + + + + + + + - Presentation class + Initializes a new instance of the class. - + - PPt Application Properties class + Required designer variable. - + - Ppt Table styles class + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Ppt Presentation properties class + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Ppt View Properties class + Form for . + For internal use only. - + + + + + + + + + + - Specifies the image format in PowerPoint export. + Initializes a new instance of the class. - + - Specifies the .png format. + Required designer variable. - + - Specifies the .jpg format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Represents the PowerPoint 2007 export. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the image format used when exporting. + Form for . + For internal use only. - + - + - + - - + + + Initializes a new instance of the class. + - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Creates a new instance of the class with the default settings. + Form for . + For internal use only. - + - - - Excel 2007 export class - + + - + - + - Defines Print Scaling Mode. + Initializes a new instance of the class. - + - Print sheets at thier actual size. + Required designer variable. - + - Shrink the printout so that it fits on one page. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Shrink the printout so that it is one page wide. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Shrink the printout so that it is one page high. + Form for . + For internal use only. - - - Gets or sets the Print Fit Mode. - + + - - - Gets or sets the font scale value. - Default value is 1 - + + - + + + + - Enable or disable a resolution optimization. + Initializes a new instance of the class. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Required designer variable. - - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets a value that determines whether to insert page breaks in the output file or not. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets a value that determines whether to export the databand rows only. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable export of page footers and next page headers without table breaks. + Form for . + For internal use only. - - - - - - - - - - - - - + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Picture container + Required designer variable. - + - List of all document fonts + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Single page export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Document structure descriptor + Form for . + For internal use only. - + + + + + + + + + + - Main class of XML export + Initializes a new instance of the class. - + - PicturesCount + Required designer variable. - + - HumanReadable + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - - + + + Form for . + For internal use only. + - + - + - + - + - Constructor of XPSExport + Initializes a new instance of the class. - + - Destructor of XPSExport + Required designer variable. - - - - + - Font container + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Font obfuscation procedure + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Drawing class + Form for . + For internal use only. - - - Share all strings in document - + + - + + + + + + + - Share all URL in document + Initializes a new instance of the class. - + - Document styles + Required designer variable. - + - Workbook + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - OoXMLSheet class + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Base class for Microsoft Office 2007 export objects + Form for . + For internal use only. - + + + + + + + + + + - Default XML header + Initializes a new instance of the class. - + - Base class for export Office Open objects + Required designer variable. - + - Core document properties + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Core document properties + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF export (Adobe Acrobat) + Form for . + For internal use only. - + - - - - - The pdf export - size of place for svg + + - - - The interpolation of curves (svg) - + + - + - The interpolation of curves (text) + Initializes a new instance of the class. - + - Export svg object as image, not vector + Required designer variable. - + - Gradient interpolation, high value will lead beautiful the gradient, - but the file size will increase and the speed of work will decrease. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The quality of gradient, export as image or export as gradient grid + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Added graphics path to pdf, + Form for . + For internal use only. - size of rect for gradient filling - path, with positions in pdf scaling - Any brush - Interpolation value - - matrix for transform to pdf scale - + + + + + + + - returns true if this gradient is fillable by gradient grid + Initializes a new instance of the class. - - + - The enum of curves interpolation + Required designer variable. - + - Export as curves, without interpolation + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Two points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Four points + Form for . + For internal use only. - + + + + + + + + + + - Eight points + Initializes a new instance of the class. - + - Sixteen points + Required designer variable. - + - The enum of gradient interpolation points + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Two points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Four points + Form for . + For internal use only. - + + + + + + + + + + - Eight points + Initializes a new instance of the class. - + - Sixteen points + Required designer variable. - + - Thirty two points + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Sixty four points + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - One hundred and twenty eight points + Base form for all export options dialog forms. - + - Two hundred and fifty six points + Represents the "Open after export" button visibility. - + - The quality of gradient export + Gets a reference to the currently editing export filter. - + + + + + + + + + + - Export as image + Called when editing is done. + + Override this method to pass edited values from the dialog controls to the export filter. + + See the example of this method implementation that is used in the ImageExport. + + protected override void Done() + { + base.Done(); + ImageExport imageExport = Export as ImageExport; + imageExport.ImageFormat = (ImageExportFormat)cbxImageFormat.SelectedIndex; + imageExport.Resolution = (int)udResolution.Value; + imageExport.JpegQuality = (int)udQuality.Value; + imageExport.SeparateFiles = cbSeparateFiles.Checked; + } + + - + + + + - Export as low quality gradient grid, max size of interpolation points is 32 + Initializes controls with initial values. + The export filter to edit. + + Override this method to pass values from the export filter to the dialog controls. + + See the example of this method implementation that is used in the ImageExport. + + public override void Init(ExportBase export) + { + base.Init(export); + ImageExport imageExport = Export as ImageExport; + cbxImageFormat.SelectedIndex = (int)imageExport.ImageFormat; + udResolution.Value = imageExport.Resolution; + udQuality.Value = imageExport.JpegQuality; + cbSeparateFiles.Checked = imageExport.SeparateFiles; + } + + - + + + + - Export as medium quality gradient grid, max size of interpolation points is 128 + Initializes a new instance of the class with default settings. - + - Export as high quality gradient grid, max size of interpolation points is 256 + Required designer variable. - + - Embedded File + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Name of embedded file. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Description of embedded file. + "Page Range" groupbox. - + - Modify Date of embedded file. + "Page Numbers" label. - + - Relationship between the embedded document and the PDF part. + "Page Numbers" textbox. - + - Valid MIME type. + "Page Numbers" radiobutton. - + - Stream of embedded file. + "Current Page" radiobutton. - + - File reference. + "All Pages" radiobutton. - + - ZUGFeRD Conformance Level. + PageControl. - - Initializes a new instance of the class. - - + - Default preview size. + Pages panel. - + - Actual size + "Open after export" checkbox. - + - Fit Page + Required designer variable. - + - Fit Width + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Default + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 10% + Required designer variable. - + - 25% + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 50% + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 75% + Required designer variable. - + - 100% + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 125% + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 150% + Represents a Windows Form used to show a table when View Data clicked on a DataSource. - + - 200% + Gets or sets the data grid. - + - 400% + Initializes a new instance of the class. - + - 800% + Required designer variable. - + - Standard of PDF format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - PDF 1.5 + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF/A-2a + Required designer variable. - + - PDF/A-2b + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - PDF/A-3a + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - PDF/A-3b + Represents the Splash Screen showing during loading designer - + - Pdf/X-3 + Initializes a new instance of the class. - + - Pdf/X-4 + Filters mouse events. + For internal use only. - + - Color Space. + Required designer variable. - + - RGB color space + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - CMYK color space + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Types of pdf export. + Represents the Welcome window displayed on the designer startup - + - Simple export + Initializes a new instance of the class. + - + - Web print mode + Required designer variable. - + - Relationship between the embedded document and the PDF part. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The embedded file contains data which is used for the visual representation. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The embedded file contains the source data for the visual representation derived therefrom in the PDF part. + Required designer variable. - + - This data relationship should be used if the embedded data are an alternative representation of the PDF contents. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - This data relationship is used if the embedded file serves neither as the source nor as the alternative representation, but the file contains additional information. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - If none of the data relationships above apply or there is an unknown data relationship, this data relationship is used. + Required designer variable. - + - ZUGFeRD Conformance Level. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Basic level. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Comfort level. + Required designer variable. - + - Extended level. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets PDF Compliance standard. - After set, do not change other settings, it may lead to fail compliance test. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of embedding the TrueType fonts. + The "Advanced Connection Properties" form. - + - Enable or disable of exporting the background. + Gets or sets the connection string builder which contains the connection properties. - + - Enable or disable export text in curves + Initializes a new instance of the class. - + - Gets or sets PDF color space + Required designer variable. - + - Enables or disables saving images in their original resolution + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enables or disables optimization of images for printing + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable image jpeg compression + Required designer variable. - + - Sets the quality of images in the PDF + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Title of the document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Author of the document. + Required designer variable. - + - Subject of the document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Keywords of the document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Creator of the document. + Required designer variable. - + - Producer of the document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Sets the owner password. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Sets the user password. + Required designer variable. - + - Enable or disable printing in protected document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable modifying in protected document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable copying in protected document. + Represents the FastReport exception form. - + + + + - Enable or disable annotating in protected document. + Creates a new instance ofthe form. + The exception object which data to display in the form. - + - Enable or disable the print dialog window after opening + Required designer variable. - + - Enable or disable hide the toolbar. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable hide the menu's bar. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable hide the Windows UI. + Required designer variable. - + - Enable or disable of fitting the window + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable of centering the window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of scaling the page for shrink to printable area. + Required designer variable. - + - Enable or disable of document's Outline. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Set default zoom on open document + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Sets the quality of RichText objects in the PDF + Required designer variable. - + - Enable or disable the compression in PDF document. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable of images transparency. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable of displaying document's title. + Required designer variable. - + - Set default page on open document + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Color Profile (ICC file). - If "null" then default profile will be used + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets pdf export mode + Required designer variable. - + - Gets pdf AcroForms compatibility, if set then EmbeddingFonts = false and PdfCompliance = PdfStandard.None + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - - - - + - Begin exporting of page + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + - End exporting + - - + - Export of Band + Gets Aborted state - - - + + + + - - + + + + - + - Add an embedded XML file (only for PDF/A-3 standard). + Required designer variable. - File name - Description - Modification date - File stream - + - Add an embedded XML file (only for PDF/A-3 standard). + Clean up any resources being used. - File name - Description - Modification date - File stream - ZUGFeRD Conformance Level + true if managed resources should be disposed; otherwise, false. - + - Add an embedded file (only for PDF/A-3 standard). + Required method for Designer support - do not modify + the contents of this method with the code editor. - File name - Description - Modification date - Relation type - MIME type - File stream - + - Initializes a new instance of the class. + Required designer variable. - + - Calculates mask for image. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Calculates image bounds according to . + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Writes pixels' colors without alpha to stream according to CMYK or RGB color space. - Pixels should be in the format. + Required designer variable. - - - File name without extentions, for example "MetaDataX" - - + - Represents the PPML export filter. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Enable or disable the pictures in PPML export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets list of generated streams + Required designer variable. - + - Gets or sets the image format used when exporting. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Enable or disable export text in curves + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add TextObject. + Required designer variable. - + - Add BandObject. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add Line. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add Shape. + Form for barcode editor - - - - + - Begin exporting of page + Generated text for barcode object - - + - Export of Band + Initializes a new instance of the class. - + Text data for parsing + Report object for nodes + Brackets symbols + Editor for rich barcode? - + - End exporting + Required designer variable. - - - - - - - - - - - + - Initializes a new instance of the class. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Contains Dashes enum + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Dash. + Required designer variable. - + - Specifies the Dot. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the DashDot. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the DashDotDot. + Required designer variable. - + - Specifies the Double line. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Create Window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add image as PPMLObject + Required designer variable. - - - - - - + - Save svg file. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Save svg stream. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - + - Specifies the image format in PPML export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Represents the ps export filter. + Required designer variable. - - - - + - Enable or disable the pictures in PS export + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets list of generated streams + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the image format used when exporting. + Required designer variable. - + - Enable or disable export text in curves + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add TextObject. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add BandObject. + Required designer variable. - + - Add Line. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add Shape. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - + - Begin exporting of page + Required designer variable. - - + - Export of Band + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - End exporting + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - - - - - - + - Initializes a new instance of the class. + Required designer variable. - + - Contains Dashes enum + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the Dash. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Dot. + Required designer variable. - + - Specifies the DashDot. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the DashDotDot. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the Double line. + Required designer variable. - + - Create Window. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - Add TextLine in curves - - + - Method for add TextObject. - + Required method for Designer support - do not modify + the contents of this method with the code editor. +
- + - Method to add rectangle. + Required designer variable. - + - Method for add ellips. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Method for add triangle. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add Diamond. + Required designer variable. - + - Method for add line. - + Clean up any resources being used. +
+ true if managed resources should be disposed; otherwise, false.
- + - Method for add line with dash. - + Required method for Designer support - do not modify + the contents of this method with the code editor. +
- + - Add image + Required designer variable. - - - - - - - - + - Save file. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Save stream. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - + - Specifies the image format in ps export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Represents the RTF export filter. + Required designer variable. - - - - + - Gets or sets the quality of Jpeg images in RTF file. + Clean up any resources being used. - - Default value is 90. This property will be used if you select Jpeg - in the property. - + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the image format that will be used to save pictures in RTF file. - - - Default value is Metafile. This format is better for exporting such objects as - MSChartObject and ShapeObject. - + Required method for Designer support - do not modify + the contents of this method with the code editor. +
- + - Gets or sets a value indicating that pictures are enabled. + Required designer variable. - + - Gets or sets a value indicating that page breaks are enabled. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - Default value is true. In wysiwyg mode, the resulting rtf file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. - - + - Gets or sets the creator of the document. + Required designer variable. - + - Gets or sets a value that determines whether the rows in the resulting table - should calculate its height automatically. + Clean up any resources being used. - - Default value for this property is false. In this mode, each row in the - resulting table has fixed height to get maximum wysiwyg. If you set it to true, - the height of resulting table will be calculated automatically by the Word processor. - The document will be more editable, but less wysiwyg. - - - - - - - - - - - - - - - - - - - - - - + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the image format in RTF export. + Required designer variable. - + - Specifies the .png format. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Specifies the .jpg format. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the .emf format. + Required designer variable. - + - Represents the SVG export filter. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - - + - Method to add rectangle. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add ellips. + Required designer variable. - + - Method for add triangle. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Method for add Diamond. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Method for add line. - + Required designer variable. +
- + - Method for add line with dash. - + Clean up any resources being used. +
+ true if managed resources should be disposed; otherwise, false.
- + - Add image in Base64 + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - - - - - - + - Add image + Required designer variable. - - - - - - - + - Appends attribute to element + Clean up any resources being used. - - - + true if managed resources should be disposed; otherwise, false. - + - Enable or disable the pictures in SVG export + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets list of generated streams + Base class for all dialog forms with two buttons, OK and Cancel. - + - Gets or sets the image format used when exporting. + Localizes the dialog controls. + + Use this method to set control's captions specific to the current locale. + - + - Embed images into svg + Initializes a new instance of the class. - + - Returns svg root element + Required designer variable. - + - Returns XmlDocument + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Returns svg G element + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets value indicating whether or not should to force uniform scaling of SVG document + The OK button. - + - Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag + The Cancel button. - + - Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the svg tag + Required designer variable. - + - Add TextObject. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Add BandObject. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add Line. + Required designer variable. - + - Add Shape. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Create Window. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Add page + Required designer variable. - - + - Add SVGObject + Clean up any resources being used. - SVG object + true if managed resources should be disposed; otherwise, false. - + - Save svg file. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Save svg stream. + Required designer variable. - - - - + - Begin exporting of page + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - Export of Band + Required method for Designer support - do not modify + the contents of this method with the code editor. - - + - End exporting + Required designer variable. - - - - - - - - - - - + - Export all report objects + Clean up any resources being used. - + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Specifies the alignment methods + Required designer variable. - + - Do not force uniform scaling. Scale the graphic content of the given element non-uniformly - if necessary such that the element's bounding box exactly matches the viewport rectangle. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value - of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint - X value of the viewport. Align the min-y of the element's viewBox with the smallest Y value - of the viewport. + The base class for designer plugin's options page. + + Use this class if you develop a designer plugin that may be configured in the + "View|Options..." menu. You need to implement an options page for your + plugin and return it in the IDesignerPlugin.GetOptionsPage method. + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value - of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. + The TabControl control. - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of - the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value - of the viewport. + The TabPage control. - + - The default. Force uniform scaling. Align the midpoint X value of the element's viewBox - with the midpoint X value of the viewport. Align the midpoint Y value of the element's - viewBox with the midpoint Y value of the viewport. + Initializes controls on this options page. + + Override this method to fill options page's controls with initial values. + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X - value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint - Y value of the viewport. + Finalizes the options page. + The dialog result. + + Override this method to pass controls' values to the plugin. Do this if result is + DialogResult.OK. + - + - Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of - the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. + Initializes a new instance of the DesignerOptionsPage class with default settings. + + Usually you need to define another contructor which takes one parameter - the plugin. + + This example shows how to define own constructor which takes a plugin: + + public DialogPageOptions(DialogPageDesigner pd) : base() + { + FPageDesigner = pd; + InitializeComponent(); + } + + - + - Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X - value of the viewport. Align the min-y+height of the element's viewBox with the maximum Y value - of the viewport. + read current token, returns next + + + - + - Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value of - the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. + read current token, returns next + + + - + - Specifies the svg scale types + ignore current token, read from next, returns current i.e not next + + + - + - (the default) - Scale the graphic such that: - - aspect ratio is preserved - - the entire viewBox is visible within the viewport - - the viewBox is scaled up as much as possible, while still meeting the other criteria + For internal use only. - + - Scale the graphic such that: - - aspect ratio is preserved - - the entire viewport is covered by the viewBox - - the viewBox is scaled down as much as possible, while still meeting the other criteria + For internal use only. - + - Describes scaling of a svg documents + For internal use only. - + - Gets the align value + For internal use only. - + - Gets the meetOrSlice value + For internal use only. - + - Initializes a new instance of the class. + For internal use only. - - + - Initializes a new instance of the class. + For internal use only. - Align value - meetOrSlice value - + + + + - Specifies the image format in SVG export. + For internal use only. - + - Specifies the .png format. + For internal use only. - + - Specifies the .jpg format. + For internal use only. - + - Represents the text export. + For internal use only. - - - - + - Enable or disable the Data loss avoiding. - Auto calculation of ScaleX and ScaleY will be launched when dialogue window will be off. + Required designer variable. - + - Gets or sets the count of copies for printing of results. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the printer name for printing of results. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable the printing results after export. + Required designer variable. - + - Gets or sets the active index of registered printer type. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the list of printer types. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets or sets the scale by X axis for correct text objects placement. + Required designer variable. - + - Gets or sets the scale by Y axis for correct text objects placement. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the encoding of resulting document. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - Windows ANSI encoding - TextExport.Encoding = Encoding.Default; - Unicode UTF-8 encoding - TextExport.Encoding = Encoding.UTF8; - OEM encoding for current system locale sessings - TextExport.Encoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage); - - - - Enable or disable the data only output without any headers. Default value is false. + + + Required designer variable. - - - Enable or disable the breaks of pages in resulting document. Default value is true. + + + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - - - Enable or disable frames in resulting document. Default value is true. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Enable or disable the text (non graphic) frames in resulting document. Default value is false. + Represents the report engine. - + - Enable or disable the output of empty lines in resulting document. Default value is false. + Shows band at the current position. + Band to show. + + After the band is shown, the current position is advanced by the band's height. + - + - + Gets or sets the current X offset. + + This property specifies the X offset where the current band will be printed. + - + - + Gets or sets the current Y offset. + + This property specifies the Y offset where the current band will be printed. + After the band is printed, this value is incremented by the band's height. + - + - + Gets the index of currently printing column in the multi-column report. + + This value is 0-based. + - + - + Gets or sets index of current prepared page the current band will print on. + + Note: the page with specified index must exists. This property is used to print side-by-side + subreports and Table object. Usually you don't need to use it. + - + - + Gets the current page width, in pixels. + + This property returns a paper width minus left and right margins. + - - - - - - - - + + + Gets the current page height, in pixels. + + + This property returns a paper height minus top and bottom margins. + - - + + + Gets the value indicating whether the page has unlimited height. + - - + + + Gets the value indicating whether the page has unlimited width. + - - + + + Gets or sets the current height of unlimited page. + - + - Exports the page. + Gets or sets the current width of unlimited page. - - - + - Calculates scale. + Gets the height of page footer (including all its child bands), in pixels. - - + - Initializes a new instance of the class. - + Gets the height of column footer (including all its child bands), in pixels. + - - + + + Gets the free space on the current page, in pixels. + + + This property returns the page height minus footers height minus CurY value. + - + - Required designer variable. + Gets the current prepared page number. + + This value is 1-based. The initial value (usually 1) is set in the Report.InitialPageNumber property. + - + - Clean up any resources being used. + Gets the number of total pages in a prepared report. - true if managed resources should be disposed; otherwise, false. + + To use this property, your report must be two-pass. Set the + property to true. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets the string that represents the current page number. + + This property returns a locale-based value, for example: "Page 1". + - + - Represents supplement class for print of any stream directly in printer. + Gets the string that represents the "Page N of M" number. + + This property returns a locale-based value, for example: "Page 1 of 10". + - + - Prints a stream. + Gets the current row number of currently printing band. - Printer name on which should be print. - Document title for printer spooler. - Count of copies. - Stream that will be printed. - This example demonstrates the printing of Stream. - - TextExportPrint.PrintStream("EPSON FX-1000", "My Report", 1, txtStream) - + + This value is 1-based. It resets to 1 on each new group. + - + - Represents the printer command class + Gets the running current row number of currently printing band. + + This value is 1-based. + - + - Gets or sets the active state of command. Default value is false. + Gets the date of report start. - + - Gets or sets the command name. + Gets a value indicating whether the report is executing the final pass. + + This property is true if report is one-pass, or if report is two-pass and + the second pass is executing. + - + - Gets or sets the list of "on sequence". + Gets a value indicating whether the report is executing the first pass. + + This property is true if report is one-pass, or if report is two-pass and + the first pass is executing. + - + - Gets or sets the list of "off sequence". + Gets a level of hierarchy when printing hierarchical bands. + + The first level of hierarchy has 0 index. + - + - Initializes a new instance of the class. + Gets the row number like "1.2.1" when printing hierarchical bands. - + - Represents of the printer type class. + Returns true of keeping is enabled - + - Gets or sets the printer name. + Returns keeping position - + - Gets or sets the list of printer commands. + Starts the keep mechanism. + + Use this method along with the method if you want to keep + several bands together. Call StartKeep method before printing the first band + you want to keep, then call the EndKeep method after printing the last band you want to keep. + - + - Initializes a new instance of the class. + Ends the keep mechanism. + + Use this method along with the method if you want to keep + several bands together. Call StartKeep method before printing the first band + you want to keep, then call the EndKeep method after printing the last band you want to keep. + - + - Represents the XAML export filter. + Gets xml containing outline nodes. - - + + + Creates a new outline element with specified text. + + Text of element. + + After you call this method, the element will be added to the current position in the outline. + The next call to AddOutline will add new element as a child of this element. + To shift the position, use the or + OutlineUp methods. + - + - Gets or sets the class name of XAML document + Sets the current outline position to root. - + - Enable or disable the pictures in XAML export + Shifts the current outline position one level up. - + - Gets list of generated streams + Creates a new bookmark with specified name at current position. + - + - Gets or sets the image format used when exporting. + Gets a page number for the specified bookmark name. + Name of bookmark. + Page number if bookmark with such name found; 0 otherwise. + + Use this method to print the table of contents in your report. Normally it can be done + using bookmarks. + + You must set your report to double pass to use this method. + + - + - Get or set scrollbar settings + Resets the logical page numbers. - + - Get dictionary of saved images + Called when the number of pages increased during DoublePass - + - Add TextObject. + Starts a new page. - + - Add BandObject. + Starts a new column. - + - Add Line. + Processes the specified text object which ProcessAt property is set to Custom. + The text object to process. - + - Add Shape. + Excel 2003 export class - + - + - Begin exporting of page + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. - - + - Export of Band + Gets or sets a value that determines whether to insert page breaks in the output file or not. - - + - End exporting + Read and parse Excel document - - + - + - - - Gem MemoryStream what contain image - - - + + - + - + + + + + + + + + + + + + - Initializes a new instance of the class. + Related to DRAWING group. Used once - + - Contains Dashes enum + Provides API to binary stream - + - Specifies the Dash. + - + - Specifies the Dot. + Represents the CSV export filter. - + + + + - Specifies the DashDot. + Gets or set the resulting file encoding. - + - Specifies the DashDotDot. + Gets or set the separator character used in csv format. - + - Specifies the Double line. + Gets or sets a value that determines whether to export the databand rows only. - + - XAML generator + Gets or sets a value that disable quotation marks for text. - + - Create Window. + Gets or sets a value that disable escaping quotation marks for text. - - - Create Grid. - + + - - - Create Canvas. - + + - - - Create StackPanel - + + - - - Create StackPanel - + + - - - Create Resources tag - + + - + + + + - Add resource for TextObject - + Initializes a new instance of the class. + - + - Add resource for TextObject with angle + Represents the export to DBF. - + + + + - Add resource for Line + Gets or sets the encoding. - + - Add resource for Rectangle + Gets or sets a value that determines whether to export the databand rows only. - + - Add resource for Ellipse + Gets or sets the list of field names. + + The field names must be separated by ";" symbol, for example: Column1;Column2;Column3 + - + - Add resource for Polygon + Initializes a new instance of the class. - - - Add TextObject. - + + - - - Method for add TextObject with angle - + + - - - Add line. - + + - - - Add line with dash. - + + - - - Add rectangle. - + + - - - Add ellips. - + + - + + + + - Add triangle. + Represents the record. - + - Add Diamond. + Gets or sets the field with a specified index. - + - Add image + Gets the count of a fields. - - - - - - - - + - Add image without name + Gets the size of a fields. - - - - - - - + - Add page to StackPanel + Initializes a new instance of the class. - - + - Save xaml file. + Adds the new item into a list of fields. - + - Save xaml stream. + Clears the list of fields. - - - - - - - - - + - Specifies the image format in XAML export. + Represents the email export. + + In order to use this class, you need to set up at least the following properties: + , , . Use the + property to choose the format of an attachment. If you leave it empty, the attachment will be + in the .FRP format (FastReport prepared report). When you done with settings, call the + method to send an email. + + + This example demonstrates the bare minimum required to send an email. + + EmailExport export = new EmailExport(); + export.Account.Address = "my@address.net"; + export.Account.Host = "myhost"; + export.Address = "recipient@address.net"; + export.Subject = "Re: analysis report"; + // the report1 report must be prepared at this moment + export.SendEmail(report1); + + - + - Specifies the .png format. + Displays the dialog box in which you can set up all parameters. + true if user pressed OK button in the dialog. - + - Specifies the .jpg format. + Gets or sets the recipient's address. + + This property must contain value in form "john@url.com". + - + - Represents the Excel 2003 XML export filter. + Gets or sets the carbon copy adresses. + + This property must contain an array of values in form "john@url.com". + - - + + + Gets or sets the subject of the message. + - + - Gets or sets a value that determines whether to insert page breaks in the output file or not. + Gets or sets the message body. - + - Gets or sets a value that determines whether the wysiwyg mode should be used - for better results. + Gets or sets the export filter which will be used to export a report. - Default value is true. In wysiwyg mode, the resulting Excel file will look - as close as possible to the prepared report. On the other side, it may have a lot - of small rows/columns, which will make it less editable. If you set this property - to false, the number of rows/columns in the resulting file will be decreased. - You will get less wysiwyg, but more editable file. + Set this property to instance of any export filter. When you send the email, the report + will be exported using that export filter. + By default, this property is set to null. In this case the report will be send + in .FRP format. - + - Gets or sets the name of document creator. + Gets the email account settings such as host, user name, password. - + - Gets or sets a value that determines whether to export the databand rows only. + Gets the parent Report object - - - - - - - - + + + Sends an email. + + Reports that will be sent as attachments. + + Before using this method, set up the following properties (it's a bare minimum): + , , . + The report that you pass in this method must be prepared using the Prepare method. + - + - + - - + + + Initializes a new instance of the class with default settings. + - - + + + Initializes a new instance of the class with default settings. + - + - Initializes a new instance of the class. - + Form for . + For internal use only. + - + - Represents the Zpl export filter. + Hides attachment settings. + For internal use only. - + - + - Enum of densty types of Zebra printers. + Initializes a new instance of the class. - + - 6 dpmm(152 dpi) + Required designer variable. - + - 8 dpmm(203 dpi) + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - 12 dpmm(300 dpi) + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - 24 dpmm(600 dpi) + Allows to send message using MAPI interface. - + - Sets the density of printer. + Sends a message. + Parent window handle. + Files to attach. + Email subject. + Email body. + Recipient names. + Recipient addresses. + Error code. 0 if operation was completed succesfully. - + - Sets the init string for sending before printing the document. + Returns a text describing an error. + The error code. + The text describing an error. - + - Sets the code page of document. Default is UTF-8 (^CI28). + Contains the email account settings such as host, email address, name. + + You have to set up at least the and properties. If your + host requires authentication, provide the and + properties as well. + Set property to true if you want to use default email client + such as Outlook to send an email. In this case, all other properties will be ignored. + - + - Sets the string for sending after printing the document. + Gets or sets the sender's email address. + + This property contains your email address (for example, "john@site.com"). + - + - Sets the string for sending before printing each page. + Gets or sets the sender's name. + + This property contains your name (for example, "John Smith"). + - + - Sets the scale font size. + Gets or sets the template that will be used to create a new message. - + - Sets the Printer Font, default value is "A". + Gets or sets the SMTP host name or IP address. - + - Enable or disable export as bitmap. + Gets or sets the SMTP port. + + The default value for this property is 25. + - + - Writes the string value in stream. + Gets or sets the user name. - - + + Specify the and properties if your host requires + authentication. + - + - Writes the string value in stream with CRLF. + Gets or sets the password. - - + + Specify the and properties if your host requires + authentication. + - + - Gets the left position in zpl units. + Gets or sets a value that determines whether to enable the SSL protocol. - - - + - Gets the top position in zpl units. + Gets or sets a value that determines whether the account setting page + in the "Send Email" window is enabled. - - - + - Exports the TableObject. + Gets or sets a value that determines whether to use MAPI instead of SMTP when sending an email. - - + - Exports the LineObject. + Copies email settings from another source. - + Source to copy settings from. - + - Exports the ShapeObject. + Initializes a new instance of the class with default settings. - - + - Exports the TextObject. + The base class for all export filters. - - + - Gets the position of object in ZPL code. + Exports the report to a file. - - - + Report to export. + true if report was succesfully exported. + + This method displays an export options dialog, then prompts a file name using standard "Open file" + dialog. If both dialogs were closed by OK button, exports the report and returns true. + - + - Gets the text attributes in ZPL code. + Displays a dialog with export options. - - - - - - + true if dialog was closed with OK button. - + - Gets the text with font width and height in ZPL code. + Gets a report page with OverlayBand if it is a Demo or Academic. - - - - + The prepared report page + The prepared report page with OverlayBand. - + - Gets the horiz align in ZPL code. + Zoom factor for output file - - - + - Gets the rectangle in ZPL code. + File filter that can be used in the "Save file" dialog. - - - - - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the class. - + Range of pages to export. +
- + - This property for internal use only. + Page numbers to export. + + Use page numbers separated by comma and/or page ranges, for example: "1,3-5,12". Empty string means + that all pages need to be exported. + - + - Binary tree class + Current page number. + + Page number need to be exported if user selects "Current page" radiobutton in the export options dialog. + This property is typically set to current page number in the preview window. + - + - Maximal value between child and parent + Open the document after export. - + - Nodes count + Allows or disables the OpenAfterExport feature. - + - Root node + Gets or sets a value that determines whether to show progress window during export or not. - + - Nodes array. Accending sorting by node value. Available after close of tree. + Gets a list of files generated by this export. - + - Accecptable inaccuracy of new values. + Gets a value indicating that the export may produce multiple output files. - + - Recursive add value to a node. + Gets or sets a value indicating that the report bands should be shifted, if page + has any non-exportable bands - - - - + - Poll right child node for correct balance. + Gets or sets the initial directory that is displayed by a save file dialog. - - + - Poll left child for correct balance. + Stream to export to. - - + - Recursive indexation of node and childs. + File name to export to. - - + - Add new value in tree. All equals are skipped. + Array of page numbers to export. - - + - Close the tree and make index array. + Returns a file filter for a save dialog. + String that contains a file filter, for example: "Bitmap image (*.bmp)|*.bmp" - + - Seek of value index in the tree. + This method is called when the export starts. - - - + - Find of value index in sub-tree of node. + This method is called at the start of exports of each page. - - - + Page for export may be empty in this method. - + - Borrow values form List in the tree + This method is called at the end of exports of each page. - + Page for export may be empty in this method. - + - Borrow values form array in the tree + This method is called for each band on exported page. - + Band, dispose after method compite. - + - Clear tree + This method is called when the export is finished. - + - Tree constructor + Gets a report page with specified index. + Zero-based index of page. + The prepared report page. - + + + + + + + - Tree node class + Exports the report to a stream. + Report to export. + Stream to export to. + + This method does not show an export options dialog. If you want to show it, call + method prior to calling this method, or use the "Export(Report report)" method instead. + - + - Link to left child + Exports the report to a file. + Report to export. + File name to export to. + + This method does not show an export options dialog. If you want to show it, call + method prior to calling this method, or use the "Export(Report report)" method instead. + - + - Link to right child + Initializes a new instance of the class. - + - Node value + Represents the HTML export filter. - - - Count of nodes in left sub-tree + Represents the HTML export filter. - - - Count of nodes in right sub-tree + Represents the HTML export filter. - - - Node index + Represents the HTML export filter. - - - Node constructor + Represents the HTML export filter. - - + + + + - Specifies the export font class. + Draw any custom controls - + - These fonts not support Bold or Itailc styles + Draw any custom controls. + - + - Description of SCRIPT_STATE structure + Types of html export - + - data + Simple export - + - uBidiLevel + Web preview mode - + - SetRtl + Web print mode - + - Description of SCRIPT_ANALYSIS structure + hash:base64Image - + - data + Gets or sets images, embedded in html (hash:base64Image) - + - state + Sets a ID of report - + - Description of SCRIPT_CONTROL structure + Sets an onclick template - + - data + Enable or disable layers export mode - + - Description of SCRIPT_DIGITSUBSTITUTE structure + For internal use only. - + - NationalDigitLanguage + For internal use only. - + - TraditionalDigitLanguage + For internal use only. - + - DigitSubstitute + For internal use only. - + - dwReserved + For internal use only. - + - Description of SCRIPT_ITEM structure + Enable or disable showing of print dialog in browser when html document is opened - + - iCharPos + Enable or disable preview in Web settings - + - analysis + Enable or disable the breaks between pages in print preview when single page mode is enabled - + - Description of SCRIPT_VISATTR structure + Specifies the output format - + - data + Specifies the width units in HTML export - + - Description of GOFFSET structure + Specifies the height units in HTML export - + - du + Enable or disable the pictures in HTML export - + - dv + Enable or disable embedding pictures in HTML export - + - Description of ABC structure + Enable or disable the WEB mode in HTML export - + - abcA + Gets or sets html export mode - + - abcB + Enable or disable the single HTML page creation - + - abcC + Enable or disable the page navigator in html export - + - Description of FontPanose structure + Enable or disable the sub-folder for files of export - + - Description of FontRect structure + Gets or sets the Wysiwyg quality of export - + - Description of FontPoint structure + Gets or sets the image format. - + - Description of FontTextMetric structure + Gets print page data - + - Description of OutlineTextMetric structure + Gets list of generated streams. - + - Return widths array + Enable or disable saving streams in GeneratedStreams collection. - + - Return array with used glyph indexes - glyphs alphabet + Enable or disable margins for pages. Works only for Layers-mode. - + - Return used unicode alphabet + Enable or disable export of vector objects such as Barcodes in SVG format. - + + + + + + + + + + + + + - Return text metric structure, need to use after FillOutlineTextMetrix() + Process Page with number p and real page ReportPage + + + - + - Gets or sets internal font name + Process Page with number p and real page ReportPage + + - + + + + + + + - Return source font used in constructor + For internal use only. - + - Gets or sets internal reference + Initializes a new instance of the class. - + + + + - Gets or sets internal property - save flag + Event arguments for custom drawing of report objects. - + - True if bold style is not supported by font + Report object - + - True if italic style is not supported by font + ReportObject. - + - Run fill outline text metric structure + Resulting successfull drawing flag. - + - Return glyph width + Resulting HTML string. - - - + - Return font file + Resulting CSS string. - - + - Remap str in glyph indexes. Return string with glyph indexes. + Layers mode when true or Table mode when false. - - - - + - Return english name of source font + Zoom value for scale position and sizes. - - + - Return PANOSE string + Left position. - - + - Create object of ExportTTFFont. + Top position. - - + - Destructor + Width of object. - + - For internal use only. + Height of object. - + - Gets current page width. + Represents the HTML export templates. - - - + - Gets current page height. + Page Template Title - - - + - + Page Template Footer - - - + - Font descriptor + Navigator Template - + - Indicates that the point is the start of a figure. + OutlineTemplate - + - Indicates that the point is one of the two endpoints of a line. + Index Template - + - Indicates that the point is an endpoint or control point of a cubic Bézier spline. + Initializes a new instance of the class. - + - Masks all bits except for the three low-order bits, which indicate the point type. + Represents the HTML export format enum - + - Specifies that the point is a marker. + Represents the message-HTML type - + - Specifies that the point is the last point in a closed subpath (figure). + Represents the HTML type - + - FontHeader table + Specifies the image format in HTML export. - + - Define type of font file + Specifies the .bmp format. - + - Classic TrueType font + Specifies the .png format. - + - Collection of TrueType fonts + Specifies the .jpg format. - + - OpenType font format + Specifies the .gif format. - + - GlyphSubstitution table + Specifies the units of HTML sizes. - + - Return true if was applied + Specifies the pixel units. - - - - - + - Return coverageIndex for ApplyForce or if fail then return -1 + Specifies the percent units. - - - - + - Apply this Substitution with specified coverageIndex, cant be called only after IsApply + For internal use only. - - - - - + - Table with encoded glyphs' outline + For internal use only. - + - HorizontalMetrix table + For internal use only. - + - IndexToLocation table + For internal use only. - + - Kerning table + For internal use only. - + - MaximumProfile table + For internal use only. - + - Name table keep human friendly description about font properties, including font names, author and copyright notes + For internal use only. - + - OS/2 and Windows Metrics table + For internal use only. - + - Description of FontTextMetric structure + For internal use only. - + - Description of FontPanose structure + For internal use only. - + - True Type Font Collectiom + Represents the MHT export filter. - + + + + - Will be removed soon + Enable or disable the pictures in MHT export - + - Different caching strategies + Gets or sets the Wysiwyg quality of export - + - Reference counter + Gets or sets the image format. - + + + + + + + + + + - Progress callback type definition + Initializes a new instance of the class. - Progress information - + - Progress callback event + Represents the image export filter. - + + + + - Open and parse TrueType file + Gets or sets the image format. - - - - + - Find all fonts files in directory and it's subdirectories + Gets or sets a value that determines whether to generate separate image file + for each exported page. - Directory where find fond files - Defines file which collect found fonts + + If this property is set to false, the export filter will produce one big image + containing all exported pages. Be careful using this property with a big report + because it may produce out of memory error. + - + - Get TrueType font from static collection + Gets or sets image resolution, in dpi. - String which identifies font - family name + "-B" for bold and "-I" for italic - + + By default this property is set to 96 dpi. Use bigger values (300-600 dpi) + if you going to print the exported images. + - + - Get font by its name and bold/italic attributes + Gets or sets horizontal image resolution, in dpi. - - TrueType font object + + Separate horizontal and vertical resolution is used when exporting to TIFF. In other + cases, use the property instead. + - + - Workaround function for avoid font duplicates + Gets or sets vertical image resolution, in dpi. - if true then font append to collection, if false then font append to hash - Internal font structure - This parameter defines path to font file if file append to hash. Not used otherwise + + Separate horizontal and vertical resolution is used when exporting to TIFF. In other + cases, use the property instead. + - + - Parse raw image of font data and create TrueTypeFont objects from this image + Gets or sets the jpg image quality. - Defines font or collections - Pointer to memory of raw font data - + + This property is used if is set to Jpeg. By default + it is set to 100. Use lesser value to decrease the jpg file size. + - + - Build list of fonts + Gets or sets the value determines whether to produce multi-frame tiff file. - Optional path to configuration folder. - + - Interface for TrueTypeFont object + Gets or sets a value that determines whether the Tiff export must produce monochrome image. + + Monochrome tiff image is compressed using the compression method specified in the + property. + - + - TrueTypeFont object + Gets or sets the compression method for a monochrome TIFF image. + + This property is used only when exporting to TIFF image, and the property + is set to true. + The valid values for this property are: EncoderValue.CompressionNone, + EncoderValue.CompressionLZW, EncoderValue.CompressionRle, + EncoderValue.CompressionCCITT3, EncoderValue.CompressionCCITT4. + The default compression method is CCITT4. + - + - Get or set current script + Sets padding in non separate pages - + + + + + + + + + + + + + + + + + + + + + + - Get or set current Language + Initializes a new instance of the class. - + - Get available scripts + Specifies the image export format. - + - Get available languages for script + Specifies the .bmp format. - - - + - Get available features for language and script + Specifies the .png format. - - - - + - Prepare tables for drawing, subsetting and so on + Specifies the .jpg format. - always true - + - Return raw image of the font + Specifies the .gif format. - Array of font bytes - + - Cut some information from TTF file to reduce its size + Specifies the .tif format. - List of character codes to preserve them in font - If true then ignore CMAP table - - + - Parse font supplement tables which store properties of the font + Specifies the .emf format. - + - Get unique font identifier + Represents the JSON export filter. - - + + + + + + + + + + + + + + + + + + + + + + - Create glyph outline assigned to specific position - - unicode character which will be drawn - size of the character - position of outline - outline of character + Initializes a new instance of the class. +
- + - Get glyph's outline + Represents the LaTeX export filter. - unicode charter - outline image size - - + + + + + + + + + + + + + + + + + + + + + + - Create outline for group of characters - - text as array of glyph's indexes - position of text - font size - text in form of outline vectors + Initializes a new instance of the class. +
- + - Create outline for text string + Base class for any ODF exports - text which will be transformed to outline - position of text - font size - text in form of outline vectors - + - + - Constructor of TrueTypeFont object + Switch of page breaks - The start of RAW image of font or font collection - Actual address of font within RAW image - Reference count emulation - + - Destructor of TrueTypeFont object + Wysiwyg mode, set for better results - + - Description of SCRIPT_STATE structure + Creator of the document - + + + + + + + + + + + + + + + + + + + - data + Initializes a new instance of the class. - + - uBidiLevel + Open Document Spreadsheet export (Open Office Calc) - + + + + - SetRtl + Initializes a new instance of the class. - + - Description of SCRIPT_ANALYSIS structure + Open Document Text export (Open Office Writer) - + + + + - data + Initializes a new instance of the class. - + - state + MS Word 2007 export class - + + + + - Description of SCRIPT_CONTROL structure + Types of table rows height - + - data + Exactly height - + - Description of SCRIPT_DIGITSUBSTITUTE structure + Minimum height - + - NationalDigitLanguage + Enable or disable matrix view of document - + - TraditionalDigitLanguage + Enable or disable Paragraph view of document - + - DigitSubstitute + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - dwReserved + Gets or sets the type of height calculation. - + - Description of SCRIPT_ITEM structure + Gets or sets the type of height calculation. - + - iCharPos + Enable or disable a resolution optimization. - + - analysis + Enable or disable DoNotExpandShiftReturn. - + + + + + + + + + + + + + + + + + + + + + + - Description of SCRIPT_VISATTR structure + Initializes a new instance of the Word2007Export class. - + - data + Represents the PowerPoint 2007 export. - + + + + - Description of GOFFSET structure + Gets or sets the image format used when exporting. - + + + + + + + + + + + + + + + + + + + + + + - du + Creates a new instance of the class with the default settings. - + - dv + Excel 2007 export class - + + + + - Description of ABC structure + Defines Print Scaling Mode. - + - abcA + Print sheets at thier actual size. - + - abcB + Shrink the printout so that it fits on one page. - + - abcC + Shrink the printout so that it is one page wide. - + - Description of FontRect structure + Shrink the printout so that it is one page high. - + - Description of FontPoint structure + Gets or sets the Print Fit Mode. - + - Description of OutlineTextMetric structure + Gets or sets the font scale value. + Default value is 1 - + - Emulation of Uniscribe GetOutlineTextMetrics + Enable or disable a resolution optimization. - Reference to metric structure - + - Translate text to positions of glyphs in glyph tables and glyphs width + Each report page is placed on a new Excel page. - - - - - - - + - Base class which is parent of any table in TrueType font or collection + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - + Gets or sets a value that determines whether to insert page breaks in the output file or not. - + - + Gets or sets a value that determines whether to export the databand rows only. - - - + - + Enable or disable export of page footers and next page headers without table breaks. - - - + + + + + + + + + + + + + + + + + + + + + + - + Initializes a new instance of the class. - - - + - + Main class of XML export - - - + + + + - + PicturesCount - - - + - + HumanReadable - - - - + + + + + + + + + + + + + + + + + + + - + Constructor of XPSExport - - - - + - Represents a label of a gauge. + Destructor of XPSExport - + - Gets or sets the label text + Save - + + + - Gets or sets the label font + Padding over ridh object - + - Gets or sets the label color + This prperty keep RTF to DOC translation result, i.e. DOCX XML fragment - + - Gets or sets the label parent + Base class for Microsoft Office 2007 export objects - + - Initializes a new instance of the class. + Default XML header - + - Initializes a new instance of the class. + Base class for export Office Open objects - Label text - Label font - Label color - Label parent - + - Copies the contents of another GaugeLabel. + Core document properties - The GaugeLabel instance to copy the contents from. - + - Draws the gauge label. + Core document properties - Draw event arguments. - + - Serializes the gauge label. + Power point shape - Writer object. - Gauge label property name. - Another GaugeLabel to compare with. - - This method is for internal use only. - - - - - - - - - - - - - - - + + + Power Point Layout Descriptor + - - + + + Power Point base class for style element + - + - Required designer variable. + Base class for styles group - + - Clean up any resources being used. + Base class for slides, masters, and layouts - true if managed resources should be disposed. Otherwise, false. - + - Represents a linear gauge. + Slide masters object - - - - - - - + - Gets or sets the value that specifies inverted gauge or not. + Ordinaty slide - + - Gets or sets gauge label. + Slide layout object - + - Initializes a new instance of the class. + Presentation class - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Required designer variable. + PPt Application Properties class - + - Clean up any resources being used. + Ppt Table styles class - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Ppt Presentation properties class - + - Represents a linear pointer. + Ppt View Properties class - + - Gets o sets the height of gauge pointer. + Specifies the image format in PowerPoint export. - + - Gets or sets the width of a pointer. + Specifies the .png format. - + - Initializes a new instance of the + Specifies the .jpg format. - The parent gauge object. - - - - - - - - - - + - Represents a linear scale. + Drawing class - + - Initializes a new instance of the class. + Share all strings in document - The parent gauge object. - - - - - - - - - - + - Represents a linear gauge. + Share all URL in document - - - - - - - - + + + Document styles + - - + + + Workbook + - + - Returns centr of the gauge + OoXMLSheet class - + - The number of radians in one degree + Picture container - + - Gets or sets the Radial Gauge type + List of all document fonts - + - Gats or sets the Radial Gauge position. Doesn't work for Full Radial Gauge. + Single page export - + - Gets or sets the semicircles offset + Document structure descriptor - + - Initializes a new instance of the class. + Font container - - + + + Font obfuscation procedure + - - + + + PDF export (Adobe Acrobat) + - + - + - Radial Gauge types + Embedded File - + - Full sized gauge + Name of embedded file. - + - Half of the radial gauge + Description of embedded file. - + - Quarter of the radial gauge + Modify Date of embedded file. - + - Radial Gauge position types + Relationship between the embedded document and the PDF part. - + - None + Valid MIME type. - + - Top + Stream of embedded file. - + - Bottom + File reference. - + - Left + ZUGFeRD Conformance Level. - + + Initializes a new instance of the class. + + - Right + Default preview size. - - - - - - - - - - - - - - - - - - - + - Required designer variable. + Actual size - + - Clean up any resources being used. + Fit Page - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Fit Width - + - Represents a linear pointer. + Default - + - Gets or sets the value, indicating that gradient should be rotated automatically + 10% - + - Initializes a new instance of the + 25% - The parent gauge object. - The scale object. - - - - - - - - - - + - Represents a linear scale. + 50% - + - Initializes a new instance of the class. + 75% - The parent gauge object. - - - - - - - - - - + - Represents a simple progress gauge. + 100% - - - - - - - + - Gets or sets gauge label. + 125% - + - Gets scale. Should be disabled for SimpleProgressGauge + 150% - + - Initializes a new instance of the class. + 200% - - - - + - + 400% - - - - - - - - - - - - - - - - + - Required designer variable. + 800% - + - Clean up any resources being used. + Standard of PDF format. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + PDF 1.5 - - - - + - Gets or sets the number of fractional digits + PDF/A-2a - - - - - - - - - - + - SimpleProgressGauge pointer types + PDF/A-2b - + - Full sized pointer + PDF/A-3a - + - Small pointer + PDF/A-3b - - - - + - Gets or sets the pointer type + Pdf/X-3 - + - Gets or sets the small pointer width ratio + Pdf/X-4 - - - - - - - - - - + - Represents a simple gauge. + Color Space. - - - - - - - + - Gets or sets gauge label. + RGB color space - + - Initializes a new instance of the class. + CMYK color space - - - - - - - - - - - - - - - - - - - - + + + Types of pdf export. + - + - Required designer variable. + Simple export - + - Clean up any resources being used. + Web print mode - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Relationship between the embedded document and the PDF part. - + - Represents a simple pointer. + The embedded file contains data which is used for the visual representation. - + - Gets o sets the Left offset of gauge pointer. + The embedded file contains the source data for the visual representation derived therefrom in the PDF part. - + - Gets o sets the Top offset of gauge pointer. + This data relationship should be used if the embedded data are an alternative representation of the PDF contents. - + - Gets o sets the height of gauge pointer. + This data relationship is used if the embedded file serves neither as the source nor as the alternative representation, but the file contains additional information. - + - Gets or sets the width of a pointer. + If none of the data relationships above apply or there is an unknown data relationship, this data relationship is used. - + - Gets or sets the pointer ratio. + ZUGFeRD Conformance Level. - + - Gets or sets the pointer horizontal offset (cm). + Basic level. - + - Initializes a new instance of the class. + Comfort level. - The parent gauge object. - - + + + Extended level. + - - + + + Gets or sets PDF Compliance standard. + After set, do not change other settings, it may lead to fail compliance test. + - - + + + Enable or disable of embedding the TrueType fonts. + - + - Represents a simple scale. + Enable or disable of exporting the background. - + - Gets or sets the first subscale (top or left). + Enable or disable export text in curves - + - Gets or sets the second subscale (right or bottom). + Gets or sets PDF color space - + - Initializes a new instance of the class. + Enables or disables saving images in their original resolution - The parent gauge object. - - - - - - - - - - + - Represent the subscale of simple scale. + Enables or disables optimization of images for printing - + - Gets or sets a value that specifies enabled subscale or not. + Enable or disable image jpeg compression - + - Gets or sets a value that specifies show caption or not. + Sets the quality of images in the PDF - + - Initializes a new instance of the class. + Title of the document. - + - Copies the contents of another SimpleSubScale. + Author of the document. - The SimpleSubScale instance to copy the contents from. - + - Serializes the SimpleSubScale. + Subject of the document. - Writer object. - SimpleSubScale property name. - Another SimpleSubScale to compare with. - - This method is for internal use only. - - + - Represents a gauge object. + Keywords of the document. - + - Gets or sets the minimal value of gauge. + Creator of the document. - + - Gets or sets the maximal value of gauge. + Producer of the document. - + - Gets or sets the currenta value of gauge. + Sets the owner password. - + - Gets or sets scale of gauge. + Sets the user password. - + - Gets or sets pointer of gauge. + Enable or disable printing in protected document. - + - Gets or sets gauge label. + Enable or disable modifying in protected document. - + - Gets or sets an expression that determines the value of gauge object. + Enable or disable copying in protected document. - + - Gets a value that specifies is gauge vertical or not. + Enable or disable annotating in protected document. - + - Initializes a new instance of the class. + Enable or disable the print dialog window after opening - + - Initializes a new instance of the class. + Enable or disable hide the toolbar. - Minimum value of gauge. - Maximum value of gauge. - Current value of gauge. - + - Initializes a new instance of the class. + Enable or disable hide the menu's bar. - Minimum value of gauge. - Maximum value of gauge. - Current value of gauge. - Scale of gauge. - Pointer of gauge. - - - - - + + + Enable or disable hide the Windows UI. + - - + + + Enable or disable of fitting the window + - + - Draws the gauge. + Enable or disable of centering the window. - Draw event arguments. - - + + + Enable or disable of scaling the page for shrink to printable area. + - + - Clone Gauge Object + Enable or disable of document's Outline. - clone of this object - - + + + Set default zoom on open document + - - + + + Sets the quality of RichText objects in the PDF + - - + + + Enable or disable the compression in PDF document. + - + - Represents a pointer of gauge. + Enable or disable of images transparency. - + - Gets or sets the parent gauge object. + Enable or disable of displaying document's title. - + - Gets or sets the color of a pointer. + Set default page on open document - + - Gets or sets the border width of a pointer. + Color Profile (ICC file). + If "null" then default profile will be used - + - Gets or sets the border color of a pointer. + Gets or sets pdf export mode - + - Initializes a new instance of the class. + Gets pdf AcroForms compatibility, if set then EmbeddingFonts = false and PdfCompliance = PdfStandard.None - The parent gauge object. - + - Copies the contents of another GaugePointer. + Enable or disable digital sign for pdf document - The GaugePointer instance to copy the contents from. + + Be sure to specify a valid certificate for signing using the DigitalSignCertificate property. + Or using the DigitalSignCertificatePath and DigitalSignCertificatePassword properties. + - + - Draws the gauge pointer. + Should save and serialize password for digital sign certificate. + Do not save password unless absolutely necessary!!! - Draw event arguments. - + - Serializes the gauge pointer. + Manualy sets digital sign certificate for exported documents. - Writer object. - Gauge pointer property name. - Another GaugePointer to compare with. - This method is for internal use only. + This property is in priority, i.e. if a certificate is specified, + the DigitalSignCertificatePath and DigitalSignCertificatePassword properties will not be used. - + - Represents a scale of a gauge. + The path for load digital sign certificate. - + - Gets or sets major ticks of scale. + Sets digital sign certificate password. - + - Gets or sets minor ticks of scale. + Gets or sets the cpu host name or physical location of the signing - + - Gets or sets the parent gauge object. + The reason for the signing, such as (I agree ...) - + - Gets or sets the font of scale. + The information to enable the recipient to contact the signer to verify the signature - + + + + + + + - Gets or sets the scale font color + Begin exporting of page + - + - Initializes a new instance of the class. + End exporting - The parent gauge object. + - + - Copies the contents of another GaugeScale. + Export of Band - The GaugeScale instance to copy the contents from. + - + + + + + + + - Draws the scale of gauge. + Add an embedded XML file (only for PDF/A-3 standard). - Draw event arguments. + File name + Description + Modification date + File stream - + - Serializes the gauge scale. + Add an embedded XML file (only for PDF/A-3 standard). - Writer object. - Scale property name. - Another GaugeScale to compare with. - - This method is for internal use only. - + File name + Description + Modification date + File stream + ZUGFeRD Conformance Level - + - Represents a scale ticks. + Add an embedded file (only for PDF/A-3 standard). + File name + Description + Modification date + Relation type + MIME type + File stream - + - Gets or sets the length of ticks. + Initializes a new instance of the class. - + - Gets or sets the width of ticks. + Calculates mask for image. - + - Gets or sets the color of ticks. + Calculates image bounds according to . - + - Gets or sets the count of ticks + Writes pixels' colors without alpha to stream according to CMYK or RGB color space. + Pixels should be in the format. - + - Initializes a new instance of the class. + Update stream position for object number, only for int value + int value - + + + + + The pdf export + size of place for svg + + - Initializes a new instance of the class. + The interpolation of curves (svg) - Ticks length. - Ticks width. - Ticks color. - + - Initializes a new instance of the class. + The interpolation of curves (text) - Ticks length. - Ticks width. - Ticks color. - Ticks count. - + - Copies the contents of another ScaleTicks. + Export svg object as image, not vector - The ScaleTicks instance to copy the contents from. - + - Serializes the scale ticks. + Gradient interpolation, high value will lead beautiful the gradient, + but the file size will increase and the speed of work will decrease. - Writer object. - Scale ticks property name. - Another ScaleTicks to compare with. - - This method is for internal use only. - - + - Provides a user interface for editing an expression. + The quality of gradient, export as image or export as gradient grid - + - + Added graphics path to pdf, + size of rect for gradient filling + path, with positions in pdf scaling + Any brush + Interpolation value + + matrix for transform to pdf scale - + - + returns true if this gradient is fillable by gradient grid + - - + + + The enum of curves interpolation + - - + + + Export as curves, without interpolation + - + - Provides a user interface for editing an expression. + Two points - + - + Four points - + - + Eight points - - + + + Sixteen points + - - + + + The enum of gradient interpolation points + - + - Provides a user interface for editing an expression. + Two points - + - + Four points - + - + Eight points - - + + + Sixteen points + - - + + + Thirty two points + - + - Provides a user interface for choosing a data source. + Sixty four points - - + + + One hundred and twenty eight points + - - + + + Two hundred and fifty six points + - + - Provides a user interface for editing a text outline. + The quality of gradient export - - + + + Export as image + - - + + + Export as low quality gradient grid, max size of interpolation points is 32 + - + - Provides a user interface for choosing a relation. + Export as medium quality gradient grid, max size of interpolation points is 128 - + - Provides a user interface for selecting a component inside the report. + Export as high quality gradient grid, max size of interpolation points is 256 - - + + + File name without extentions, for example "MetaDataX" - - + + + Represents the PPML export filter. + - + - + - Provides a user interface for selecting a component inside the same band. + Enable or disable the pictures in PPML export - - + + + Gets list of generated streams + - - + + + Gets or sets the image format used when exporting. + - - + + + Enable or disable export text in curves + - + - Provides a user interface for editing a flags enumeration. + Add TextObject. - - + + + Add BandObject. + - - + + + Add Line. + - + - Provides a user interface for choosing a data type. + Add Shape. - + - - + + + Begin exporting of page + + - + - Provides a user interface for choosing a data column. + Export of Band + - - + + + End exporting + + - + - + - + + + + - Provides a user interface for choosing a data source. + Initializes a new instance of the class. - + - Provides a user interface for editing an expression. + Contains Dashes enum - - - - - - - + - Provides a user interface for editing an angle in degrees. + Specifies the Dash. - - - - - - - + - Provides a user interface for editing a component's border. + Specifies the Dot. - - - - - - - + - Provides a user interface for selecting a component inside the same page. + Specifies the DashDot. - - - - - + + + Specifies the DashDotDot. + - - + + + Specifies the Double line. + - + - Provides a user interface for choosing a color. + Create Window. - - + + + Add image as PPMLObject + + + + + + - - + + + Save svg file. + - - + + + Save svg stream. + - - + + + + - + - Provides a user interface for editing a fill. + Specifies the image format in PPML export. - - - - - + + + Specifies the .png format. + - + - Provides a user interface for editing a string collection. + Specifies the .jpg format. - - + + + Represents the ps export filter. + - + - + - Represents a map object. + Enable or disable the pictures in PS export - + - This property is not relevant to this class. + Gets list of generated streams - + - This property is not relevant to this class. + Gets or sets the image format used when exporting. - + - This property is not relevant to this class. + Enable or disable export text in curves - + - This property is not relevant to this class. + Add TextObject. - + - This property is not relevant to this class. + Add BandObject. - + - This property is not relevant to this class. + Add Line. - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Add Shape. + - + - - + + + Begin exporting of page + + - - + + + Export of Band + + - - + + + End exporting + + - + - + - + - + - Gets or sets the path to folder containing shapefiles. + Initializes a new instance of the class. - - This property is used by the map editor when selecting a shapefile. - - + - Gets or sets the map zoom. + Contains Dashes enum - + - Gets or sets minimum zoom value. + Specifies the Dash. - + - Gets or sets maximum zoom value. + Specifies the Dot. - + - Gets or sets the X offset of the map. + Specifies the DashDot. - + - Gets or sets the Y offset of the map. + Specifies the DashDotDot. - + - Gets or sets the value indicating that mercator projection must be used to view the map. + Specifies the Double line. - + - Gets the color scale settings. + Create Window. - + + Add TextLine in curves + + - Gets or sets a collection of map layers. - + Method for add TextObject. +
- + - Gets or sets padding within the map. + Method to add rectangle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Method for add ellips. + - - + + + Method for add triangle. + - - + + + Method for add Diamond. + - - + + + Method for add line. + - - + + + Method for add line with dash. + - + - Loads a map from file. + Add image - Name of file that contains a map. + + + + + + + - + - Creates unique names for all contained objects such as layers, shapes, etc. + Save file. - + - Initializes a new instance of the class. + Save stream. - + + + + + + - Represents a map point. + Specifies the image format in ps export. - + - Gets or sets the X-coordinate of the point. + Specifies the .png format. - + - Gets or sets the Y-coordinate of the point. + Specifies the .jpg format. - - - - - - - - - - - + + + Represents the RTF export filter. + - + - + - Initializes a new instance of the class. + Gets or sets the quality of Jpeg images in RTF file. + + Default value is 90. This property will be used if you select Jpeg + in the property. + - + - Represents a polygon shape. + Gets or sets the image format that will be used to save pictures in RTF file. + + Default value is Metafile. This format is better for exporting such objects as + MSChartObject and ShapeObject. + - + - Holds the largest bounding rectangle of this shape. + Gets or sets a value indicating that pictures are enabled. - + - Gets or sets a bounding box of this shape. + Gets or sets a value indicating that page breaks are enabled. - + - Gets or sets a list of polygons in this shape. + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting rtf file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - Gets or sets the shape data in binary format. + Gets or sets the creator of the document. - - + + + Gets or sets a value that determines whether the rows in the resulting table + should calculate its height automatically. + + + Default value for this property is false. In this mode, each row in the + resulting table has fixed height to get maximum wysiwyg. If you set it to true, + the height of resulting table will be calculated automatically by the Word processor. + The document will be more editable, but less wysiwyg. + - - + + + Gets or sets a value that determines whether the repot's RichObject will be + translated as picture or joined to generated RTF. + + + Default value for this property is false. In this mode, each RichObject + will be embedded as a picture. This is default behavior. If you set it to true, + the RichObject will be incorporated as a navive part of document. This is experimetal + feature. + - + - + - + - + - + - + - + - + - Initializes a new instance of the class. + Initializes a new instance of the class. - + - Represents four coordinates that define a bounding box. + Specifies the image format in RTF export. - + - Gets or sets the minimum X-coordinate of a bounding box. + Specifies the .png format. - + - Gets or sets the minimum Y-coordinate of a bounding box. + Specifies the .jpg format. - + - Gets or sets the maximum X-coordinate of a bounding box. + Specifies the .emf format. - + - Gets or sets the maximum Y-coordinate of a bounding box. + Represents the SVG export filter. - - - Copies the contents of another instance. - - Source box to copy the contents from. + + - + - Defines the palette used to display map shapes. + Enable or disable the pictures in SVG export - + - No palette used. + Gets list of generated streams - + - Light palette. + Gets or sets the image format used when exporting. - + - Pastel palette. + Embed images into svg - + - Grayscale palette. + Returns svg root element - + - Earth tones palette. + Returns XmlDocument - + - Sea green palette. + Returns svg G element - + - Bright pastel palette. + Gets or sets value indicating whether or not should to force uniform scaling of SVG document - + - Represents the color scale. + Gets or sets value indicating whether or not should be added 'viewBox' attribute to the svg tag - + - Gets or sets that must be displayed in this color scale. + Gets or sets value indicating whether or not should be added 'width' and 'height' attributes to the svg tag - + - Gets or sets the format string used to format data values. + Add TextObject. - + - Gets or sets a value indicating whether the color scale must be hidden if there is no data in it. + Add BandObject. - + - Gets or sets the text displayed in the color scale if there is no data in it. + Add Line. - - - - - - - - - - - - - + - Initializes a new instance of the class. + Add Shape. - + - Required designer variable. + Create Window. - + - Clean up any resources being used. + Add page - true if managed resources should be disposed; otherwise, false. + - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Add SVGObject + SVG object - - - Required designer variable. + + + Save svg file. - - - Clean up any resources being used. + + + Save svg stream. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - + + - - - Required designer variable. + + + Begin exporting of page + - - - Clean up any resources being used. + + + Export of Band - true if managed resources should be disposed; otherwise, false. + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + End exporting + - + + + + + + + + + + - Required designer variable. + Export all report objects + - + - Clean up any resources being used. + Initializes a new instance of the class. - true if managed resources should be disposed. Otherwise, false. - + - Represents a set of color ranges used to highlight polygons based on analytical value. + Method to add rectangle. - + - Gets the list of ranges. + Method for add ellips. - + - Gets or sets the number of ranges. + Method for add triangle. - + - Gets or sets the start color. + Method for add Diamond. - + - Gets or sets the middle color. - + Method for add line. + - + - Gets or sets the end color. - + Method for add line with dash. + - + - Gets or sets a value indicating that the map's color scale must display data from this color ranges. + Add image in Base64 + + + + + + + - + - Gets or sets ranges as a string. + Add image + + + + + + - + - Copies the contents of another ColorRanges. + Appends attribute to element - The ColorRanges instance to copy the contents from. + + + - + - Gets a color associated with given analytical value. + Specifies the alignment methods - The analytical value. - The color associated with this value, or Color.Transparent if no association found. - + - Initializes a new instance of the class. + Do not force uniform scaling. Scale the graphic content of the given element non-uniformly + if necessary such that the element's bounding box exactly matches the viewport rectangle. - + - Represents a single color range. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value + of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. - + - Gets or sets color of the range. + Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint + X value of the viewport. Align the min-y of the element's viewBox with the smallest Y value + of the viewport. - + - Gets or sets start value of the range. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value + of the viewport. Align the min-y of the element's viewBox with the smallest Y value of the viewport. - + - Gets or sets end value of the range. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of + the viewport. Align the midpoint Y value of the element's viewBox with the midpoint Y value + of the viewport. - + - Copies the contents of another ColorRange. + The default. Force uniform scaling. Align the midpoint X value of the element's viewBox + with the midpoint X value of the viewport. Align the midpoint Y value of the element's + viewBox with the midpoint Y value of the viewport. - The ColorRange instance to copy the contents from. - + - Initializes a new instance of the class. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X + value of the viewport. Align the midpoint Y value of the element's viewBox with the midpoint + Y value of the viewport. - + - Initializes a new instance of the class with a specified parameters. + Force uniform scaling. Align the min-x of the element's viewBox with the smallest X value of + the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. - The color of the range. - The start value of the range. - The end value of the range. - + - Represents a distance scale. + Force uniform scaling. Align the midpoint X value of the element's viewBox with the midpoint X + value of the viewport. Align the min-y+height of the element's viewBox with the maximum Y value + of the viewport. - + - Initializes a new instance of the class. + Force uniform scaling. Align the min-x+width of the element's viewBox with the maximum X value of + the viewport. Align the min-y+height of the element's viewBox with the maximum Y value of the viewport. - + - Represents loading map data from dbf-file. + Specifies the svg scale types - + - Gets or sets the filter string used in an open file dialog. + (the default) - Scale the graphic such that: + - aspect ratio is preserved + - the entire viewBox is visible within the viewport + - the viewBox is scaled up as much as possible, while still meeting the other criteria - + - Initializes a new instance of the class. + Scale the graphic such that: + - aspect ratio is preserved + - the entire viewport is covered by the viewBox + - the viewBox is scaled down as much as possible, while still meeting the other criteria - + - Returns a file filter for an open file dialog. + Describes scaling of a svg documents - String that contains a file filter. - + - Imports the map data from a specified file into a specfied layer. + Gets the align value - The MapObject for an importing map. - The name of a file that contains map. - + - Represents the description of dBase field. + Gets the meetOrSlice value - + - Gets the field name. + Initializes a new instance of the class. + - + - Gets the field type. + Initializes a new instance of the class. + Align value + meetOrSlice value - + - Gets the field length. + Specifies the image format in SVG export. - + - Initializes a new instance of the class. + Specifies the .png format. - + - Initializes a new instance of the class with a specified parameters. + Specifies the .jpg format. - The field name. - The field type. - The field length. - + - Initializes a new instance of the class with a specified parameters. + Represents the text export. - The field name. - The field type. - The field length. - + + + + - The type of dBase field. + Enable or disable the Data loss avoiding. + Auto calculation of ScaleX and ScaleY will be launched when dialogue window will be off. - + - Character field. + Gets or sets the count of copies for printing of results. - + - Date field. + Gets or sets the printer name for printing of results. - + - Numeric field. + Enable or disable the printing results after export. - + - Logical field. + Gets or sets the active index of registered printer type. - + - Memo field. + Gets or sets the list of printer types. - + - Represents a pair of double coordinates that defines a constituent point. + Gets or sets the scale by X axis for correct text objects placement. - + - Gets or sets the X-coordinate of a point. + Gets or sets the scale by Y axis for correct text objects placement. - + - Gets or sets the Y-coordinate of a point. + Gets or sets the encoding of resulting document. + + Windows ANSI encoding + TextExport.Encoding = Encoding.Default; + Unicode UTF-8 encoding + TextExport.Encoding = Encoding.UTF8; + OEM encoding for current system locale sessings + TextExport.Encoding = Encoding.GetEncoding(CultureInfo.CurrentCulture.TextInfo.OEMCodePage); + - + - Creates a new instance of the class with specified coordinates. + Enable or disable the data only output without any headers. Default value is false. - X coordinate. - Y coordinate. - + - Holds the list of objects of type. + Enable or disable the breaks of pages in resulting document. Default value is true. - + - Gets or sets the element at the specified index. + Enable or disable frames in resulting document. Default value is true. - Index of an element. - The element at the specified index. - + - Initializes a new instance of the class with default settings. + Enable or disable the text (non graphic) frames in resulting document. Default value is false. - + - Initializes a new instance of the class with specified owner. + Enable or disable the output of empty lines in resulting document. Default value is false. - + - Specifies the type of objects that layer contains. + - + - The layer contains points. + - + - The layer contains lines. + - + - The layer contains polygons. + - + - Specifies the spatial source for the layer. + - + + + + + + + + + + + + + + + + + + + - Source is ESRI shapefile. + Exports the page. + + - + - Source is a latitude/longitude/name provided by an application. + Calculates scale. + - + - Determines how map labels are displayed. - + Initializes a new instance of the class. + - + + + + - No label displayed. + Required designer variable. - + - The shape name is displayed. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - The value is displayed. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Both name and value displayed. + Represents the printer command class - + - Represents a map layer. + Gets or sets the active state of command. Default value is false. - + - Gets or sets a type of layer. + Gets or sets the command name. - + - Gets or sets the spatial source for the layer. + Gets or sets the list of "on sequence". - + - Gets or sets the name of ESRI shapefile. + Gets or sets the list of "off sequence". - + - Gets or sets the data source. + Initializes a new instance of the class. - + - Gets or sets the datasource filter expression. + Represents of the printer type class. - + - Gets or sets spatial column name. + Gets or sets the printer name. - - This property is used if the is set to ShpFile. - - + - Gets or sets an expression that returns spatial value. + Gets or sets the list of printer commands. - - This property is used if the is set to ShpFile. - - + - Gets or sets an expression that returns latitude value. + Initializes a new instance of the class. - - This property is used if the is set to ApplicationData. - - + - Gets or sets an expression that returns longitude value. + Represents supplement class for print of any stream directly in printer. - - This property is used if the is set to ApplicationData. - - + - Gets or sets an expression that returns label value. + Prints a stream. - - This property is used if the is set to ApplicationData. - + Printer name on which should be print. + Document title for printer spooler. + Count of copies. + Stream that will be printed. + This example demonstrates the printing of Stream. + + TextExportPrint.PrintStream("EPSON FX-1000", "My Report", 1, txtStream) + - + - Gets or sets an expression that returns analytical value. + Represents the XAML export filter. - + + + + - Gets or sets label's column name. + Gets or sets the class name of XAML document - + - Gets or sets a value that determines how map labels are displayed. + Enable or disable the pictures in XAML export - + - Gets or sets the format of label's value. + Gets list of generated streams - + - Gets or sets the map accuracy. Lower value is better, but slower. + Gets or sets the image format used when exporting. - + - Gets or sets the value that determines the labels visiblity at a certain zoom value. + Get or set scrollbar settings - + - Gets or sets the aggregate function. + Get dictionary of saved images - + - Gets or sets a value indicating that the layer is visible. + Add TextObject. - + - Gets or sets a bounding box of layer. + Add BandObject. - + - Gets a collection of map objects. + Add Line. - + - Gets the default style of shapes in this layer. + Add Shape. - - - Gets or sets the palette used to highlight shapes. - + + - + - Gets the color ranges used to highlight shapes based on analytical value. + Begin exporting of page + - + - Gets the size ranges used to draw points based on analytical value. + Export of Band + - + - Gets or sets the expression that returns the name of polygon to zoom. + End exporting + - - - Gets or sets the bounding box as a string. - + + - + + + + - Gets a reference to the Map object. + Gem MemoryStream what contain image + + - + - + - Draws the layer. + Initializes a new instance of the class. - The drawing parameters. - + - Finds the shape under cursor. + Contains Dashes enum - The cursor coordinates. - The ShapeBase object if found. - - - - + - Creates unique names for all contained objects such as points, lines, polygons, etc. + Specifies the Dash. - + - Reduces the number of points in the shapes in this layer. + Specifies the Dot. - The accuracy value. - + - Loads the layer contents from ESRI shapefile (*.shp/*.dbf). + Specifies the DashDot. - The file name. - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Adds application provided data. + Specifies the DashDotDot. - Latitude value. - Longitude value. - The name displayed as a label. - Analytical value. - - Use this method if the is set to ApplicationData. - - + - Adds a spatial/analytical value pair to the list. + Specifies the Double line. - The spatial value. - The analytical value. - - Use this method if the is set to ShpFile. - - - - - - - - - - - - - - - + + + XAML generator + - - + + + Create Window. + - - + + + Create Grid. + - - + + + Create Canvas. + - - + + + Create StackPanel + - - + + + Create StackPanel + - - + + + Create Resources tag + - - + + + Add resource for TextObject + - + - Initializes a new instance of the class. + Add resource for TextObject with angle - + - The base class for shape objects such as , and . + Add resource for Line - + - Gets or sets the shape visibility. + Add resource for Rectangle - + - Gets or sets a value indicating that custom shape style is used. + Add resource for Ellipse - - If this property is false, the layer's DefaultShapeStyle is used. - - + - Gets a custom shape style. + Add resource for Polygon - - To use this property, first set the property to true. - - + - Gets or sets the center point X offset. + Add TextObject. + + + + + Method for add TextObject with angle + + + + + Add line. + + + + + Add line with dash. + + + + + Add rectangle. - - Use this property to adjust the label's position. - - + - Gets or sets the center point Y offset. + Add ellips. - - Use this property to adjust the label's position. - - + - Gets or sets the shape X offset. + Add triangle. - - Use this property to adjust the shape position. - - + - Gets or sets the shape Y offset. + Add Diamond. - - Use this property to adjust the shape position. - - + - Gets or sets the scale factor for this shape. + Add image - - Use this property to adjust the shape size. - + + + + + + + - + - Gets or sets the spatial data associated with this shape. + Add image without name + + + + + + - + - Gets or sets the value. + Add page to StackPanel + - + - Gets a reference to the parent Map object. + Save xaml file. - + - Gets a reference to the parent Layer object. + Save xaml stream. - - + + + + + + + - + - Draws the shape. + Specifies the image format in XAML export. - Object that provides a data for paint event. - + - Draws the label. + Specifies the .png format. - Object that provides a data for paint event. - + - Checks if the shape is under cursor. + Specifies the .jpg format. - The cursor coordinates. - true if the cursor is over the shape. - + - Reduces the number of points in the shape. + Represents the Excel 2003 XML export filter. - The accuracy value. - + - + - Initializes a component before running a report. + Gets or sets a value that determines whether to insert page breaks in the output file or not. - + - Finalizes a component before running a report. + Gets or sets a value that determines whether the wysiwyg mode should be used + for better results. + + Default value is true. In wysiwyg mode, the resulting Excel file will look + as close as possible to the prepared report. On the other side, it may have a lot + of small rows/columns, which will make it less editable. If you set this property + to false, the number of rows/columns in the resulting file will be decreased. + You will get less wysiwyg, but more editable file. + - + - Saves the state of this component. + Gets or sets the name of document creator. - + - Restores the state of this component. + Gets or sets a value that determines whether to export the databand rows only. - - - - - - - + - + - + - + - + - + - + - - + + + Initializes a new instance of the class. + - - + + + Represents the Zpl export filter. + - + - + - Initializes a new instance of the class. + Enum of densty types of Zebra printers. - + - Represents a collection of objects. + 6 dpmm(152 dpi) - + - Gets a layer with specified index. + 8 dpmm(203 dpi) - Index of a layer. - The layer with specified index. - + - Represents the spatial data of a shape. + 12 dpmm(300 dpi) - + - Copies contents from another spatial data object. + 24 dpmm(600 dpi) - The object to copy contents from. - + - Compares two spatial data objects. + Sets the density of printer. - The spatial object to compare with. - true if spatial objects are identical. - + - Gets a value by its key. + Sets the init string for sending before printing the document. - The key of value. - The value. - + - Sets a value by its key. + Sets the code page of document. Default is UTF-8 (^CI28). - The key of value. - The value. - + - Gets a list of keys. + Sets the string for sending after printing the document. - The list of keys. - + - Creates a new instance of the class. + Sets the string for sending before printing each page. - + - Represents a line shape. + Sets the scale font size. - - - - - - - - - - + - Initializes a new instance of the class. + Sets the Printer Font, default value is "A". - + - Specifies the position of a scale control inside the map. + Enable or disable export as bitmap. - + - The scale is displayed at top left corner. + Writes the string value in stream. + + - + - The scale is displayed at top center side. + Writes the string value in stream with CRLF. + + - + - The scale is displayed at top right corner. + Gets the left position in zpl units. + + - + - The scale is displayed at middle left side. + Gets the top position in zpl units. + + - + - The scale is displayed at middle right side. + Exports the TableObject. + - + - The scale is displayed at bottom left corner. + Exports the LineObject. + - + - The scale is displayed at bottom center side. + Exports the ShapeObject. + - + - The scale is displayed at bottom right corner. + Exports the TextObject. + - + - The base class for scale-type controls such as and . + Gets the position of object in ZPL code. + + + - + - Gets or sets the border. + Gets the text attributes in ZPL code. + + + + + + - + - Gets or sets the fill. + Gets the text with font width and height in ZPL code. + + + + - + - Gets or sets the title font. + Gets the horiz align in ZPL code. + + - + - Gets or sets the title text color. + Gets the rectangle in ZPL code. + + + + - + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the title text. + Initializes a new instance of the class. - + - Gets or sets the font. + Specifies the export font class. - + - Gets or sets the text color. + These fonts not support Bold or Itailc styles - + - Gets or sets the border color. + Description of SCRIPT_STATE structure - + - Gets or sets the location of the scale. + data - + - Gets or sets the visibility of a scale. + uBidiLevel - + - Copies the contents of another ScaleBase. + SetRtl - The ScaleBase instance to copy the contents from. - + - Serializes the scale. + Description of SCRIPT_ANALYSIS structure - Writer object. - Scale property name. - Another ScaleBase to compare with. - - This method is for internal use only. - - + - Gets the size of the scale, in pixels. + data - The SizeF structure containing the size of the object. - + - Draws the object. + state - Draw parameters. - Parent map object. - + - Initializes a new instance of the class. + Description of SCRIPT_CONTROL structure - + - Represents the style of a shape. + data - + - Gets or sets the border color. + Description of SCRIPT_DIGITSUBSTITUTE structure - + - Gets or sets the border style. + NationalDigitLanguage - + - Gets or sets the border width. + TraditionalDigitLanguage - + - Gets or sets the fill color. + DigitSubstitute - + - Gets or sets the font. + dwReserved - + - Gets or sets the text color. + Description of SCRIPT_ITEM structure - + - Gets or sets the point size, in pixels. + iCharPos - + - Copies contents from another similar object. + analysis - The object to copy the contents from. - + - Initializes a new instance of the class. + Description of SCRIPT_VISATTR structure - + - Represents a set of size ranges used to draw points based on analytical value. + data - + - Gets the list of ranges. + Description of GOFFSET structure - + - Gets or sets the number of ranges. + du - + - Gets or sets the start size. + dv - + - Gets or sets the end size. + Description of ABC structure - + - Gets or sets ranges as a string. + abcA - + - Copies the contents of another SizeRanges. + abcB - The SizeRanges instance to copy the contents from. - + - Gets a size associated with given analytical value. + abcC - The analytical value. - The size associated with this value, or 0 if no association found. - + - Initializes a new instance of the class. + Description of FontPanose structure - + - Represents a single size range. + Description of FontRect structure - + - Gets or sets size of the range. + Description of FontPoint structure - + - Gets or sets start value of the range. + Description of FontTextMetric structure - + - Gets or sets end value of the range. + Return text metric structure, need to use after FillOutlineTextMetrix() - + - Copies the contents of another SizeRange. + Gets or sets internal font name - The SizeRange instance to copy the contents from. - + - Initializes a new instance of the class. + Return source font used in constructor - + - Initializes a new instance of the class with a specified parameters. + Returns multiplier for stroke bold emulation - The size of the range. - The start value of the range. - The end value of the range. - + - Represents the matrix object that is used to print pivot table (also known as cross-tab). + Gets or sets internal reference - - The matrix consists of the following elements: columns, rows and data cells. Each element is - represented by the descriptor. The class is used - for columns and rows; the is used for data cells. - The property holds three collections of descriptors - Columns, - Rows and Cells. - To create the matrix in a code, you should perform the following actions: - - - create an instance of the MatrixObject and add it to the report; - - - create descriptors for columns, rows and cells and add it to the - collections inside the property; - - - call the method to create the matrix template - that will be used to create a result; - - - modify the matrix template (change captions, set the visual appearance). - - - To connect the matrix to a datasource, use the property. If - this property is not set, the result matrix will be empty. In this case you may use - the event handler to fill the matrix. - - This example demonstrates how to create a matrix in a code. - - // create an instance of MatrixObject - MatrixObject matrix = new MatrixObject(); - matrix.Name = "Matrix1"; - // add it to the report title band of the first report page - matrix.Parent = (report.Pages[0] as ReportPage).ReportTitle; - - // create two column descriptors - MatrixHeaderDescriptor column = new MatrixHeaderDescriptor("[MatrixDemo.Year]"); - matrix.Data.Columns.Add(column); - column = new MatrixHeaderDescriptor("[MatrixDemo.Month]"); - matrix.Data.Columns.Add(column); - - // create one row descriptor - MatrixHeaderDescriptor row = new MatrixHeaderDescriptor("[MatrixDemo.Name]"); - matrix.Data.Rows.Add(row); - - // create one data cell - MatrixCellDescriptor cell = new MatrixCellDescriptor("[MatrixDemo.Revenue]", MatrixAggregateFunction.Sum); - matrix.Data.Cells.Add(cell); - - // connect matrix to a datasource - matrix.DataSource = Report.GetDataSource("MatrixDemo"); - - // create the matrix template - matrix.BuildTemplate(); - - // change the style - matrix.Style = "Green"; - - // change the column and row total's text to "Grand Total" - matrix.Data.Columns[0].TemplateTotalCell.Text = "Grand Total"; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - - - + - This property is not relevant to this class. + Gets or sets internal property - save flag - + - This property is not relevant to this class. + True if bold style is not supported by font - + - This property is not relevant to this class. + True if italic style is not supported by font - + - This property is not relevant to this class. + Run fill outline text metric structure - + - This property is not relevant to this class. + Return glyph width + + - + - This property is not relevant to this class. + Return font file + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + Get font data and set NeedSimulateBold and NeedSimulateItalic properties. Call this method after FillOutlineTextMetrix + - - + + + Remap str in glyph indexes. Return string with glyph indexes. + + + + - - + + + Return english name of source font + + - + - Allows to fill the matrix in code. + Return PANOSE string - - In most cases the matrix is connected to a datasource via the - property. When you run a report, the matrix is filled with datasource values automatically. - Using this event, you can put additional values to the matrix or even completely fill it - with own values (if is set to null. To do this, call the - Data.AddValue method. See the - method for more details. - - This example shows how to fill a matrix with own values. - - // suppose we have a matrix with one column, row and data cell. - // provide 3 one-dimensional arrays with one element in each to the AddValue method - Matrix1.Data.AddValue( - new object[] { 1996 }, - new object[] { "Andrew Fuller" }, - new object[] { 123.45f }); - Matrix1.Data.AddValue( - new object[] { 1997 }, - new object[] { "Andrew Fuller" }, - new object[] { 21.35f }); - Matrix1.Data.AddValue( - new object[] { 1997 }, - new object[] { "Nancy Davolio" }, - new object[] { 421.5f }); - - // this code will produce the following matrix: - // | 1996 | 1997 | - // --------------+--------+--------+ - // Andrew Fuller | 123.45| 21.35| - // --------------+--------+--------+ - // Nancy Davolio | | 421.50| - // --------------+--------+--------+ - - + - + - Allows to modify the prepared matrix elements such as cells, rows, columns. + Create object of ExportTTFFont. + - + - Allows to modify the prepared matrix elements such as cells, rows, columns. + Destructor - + - Gets or sets a value that determines whether the matrix must calculate column/row sizes automatically. + This property for internal use only. - + - Gets or sets a value that determines how to print multiple data cells. + Binary tree class - - This property can be used if matrix has two or more data cells. Default property value - is false - that means the data cells will be stacked. - - + - Gets or sets a value indicating that the side-by-side cells must be kept together on the same page. + Maximal value between child and parent - + - Gets or sets a data source. + Nodes count - - When you create the matrix in the designer by drag-drop data columns into it, - this property will be set automatically. However you need to set it if you create - the matrix in code. - - + - Gets the row filter expression. + Root node - - This property can contain any valid boolean expression. If the expression returns false, - the corresponding data row will be skipped. - - + - Gets or sets a value indicating whether to show a title row. + Nodes array. Accending sorting by node value. Available after close of tree. - + - Gets or sets a matrix style. + Accecptable inaccuracy of new values. - + - Gets or sets even style priority for matrix cells. + Recursive add value to a node. + + + - + - Gets or sets a script method name that will be used to handle the - event. + Poll right child node for correct balance. - - See the event for more details. - + - + - Gets or sets a script method name that will be used to handle the - event. + Poll left child for correct balance. - - See the event for more details. - + - + - Gets or sets a script method name that will be used to handle the - event. + Recursive indexation of node and childs. - - See the event for more details. - + - + - Gets the object that holds the collection of descriptors used - to build a matrix. + Add new value in tree. All equals are skipped. - - See the class for more details. - + - + - Gets or sets array of values that describes the currently printing column. + Close the tree and make index array. - - Use this property when report is running. It can be used to highlight matrix elements - depending on values of the currently printing column. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition. Use the Matrix.ColumnValues to - refer to the value you need to analyze. Note: these values are arrays of System.Object, - so you need to cast it to actual type before making any comparisons. Example of highlight - condition: (int)Matrix1.ColumnValues[0] == 2000. - - - - - + - Gets or sets array of values that describes the currently printing row. + Seek of value index in the tree. - - Use this property when report is running. It can be used to highlight matrix elements - depending on values of the currently printing row. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition. Use the Matrix.RowValues to - refer to the value you need to analyze. Note: these values are arrays of System.Object, - so you need to cast it to actual type before making any comparisons. Example of highlight - condition: (string)Matrix1.RowValues[0] == "Andrew Fuller". - - - - + + - + - Gets or sets the index of currently printing column. + Find of value index in sub-tree of node. - - This property may be used to print even columns with alternate color. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition that uses the Matrix.ColumnIndex, - for example: Matrix1.ColumnIndex % 2 == 1. - - - - + + + - + - Gets or sets the index of currently printing row. + Borrow values form List in the tree - - This property may be used to print even rows with alternate color. To do this: - - - select the cell that you need to highlight; - - - click the "Highlight" button on the "Text" toolbar; - - - add a new highlight condition that uses the Matrix.RowIndex, - for example: Matrix1.RowIndex % 2 == 1. - - - - - - - - - - - - - + - + - Creates or updates the matrix template. + Borrow values form array in the tree - - Call this method after you modify the matrix descriptors using the - object's properties. - - - - - - - - - - - - - - - - - - - - - - + - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Clear tree - Event data. - + - This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Tree constructor - Event data. - + - This method fires the AfterTotals event and the script code connected to the AfterTotalsEvent. + Tree node class - Event data. - + - Adds a value in the matrix. + Link to left child - Array of column values. - Array of row values. - Array of data values. - - This is a shortcut method to call the matrix Data.AddValue. - See the method for more details. - - + - Gets the value of the data cell with the specified index. + Link to right child - Zero-based index of the data cell. - The cell's value. - - Use this method in the cell's expression if the cell has custom totals - (the total function is set to "Custom"). The example: - Matrix1.Value(0) / Matrix1.Value(1) - will return the result of dividing the first data cell's value by the second one. - - + - Initializes a new instance of the class. + Node value - + - Specifies the aggregate function used in the . + Count of nodes in left sub-tree - + - No aggregates are used. + Count of nodes in right sub-tree - + - Specifies the sum of values. + Node index - + - Specifies the minimum of values. + Node constructor + - + - Specifies the maximum of values. + For internal use only. - + - Specifies the average of values. + Gets current page width. + + - + - Specifies the count of values. + Gets current page height. + + - + - Specifies the custom function. + + + - - - Determines how matrix percents are calculated. - + + - - - Do not calculate percent value. - + + - + + + + + + + + + + + + + - Calculate percent of the column total value. + Required designer variable. - + - Calculate percent of the row total value. + Clean up any resources being used. + true if managed resources should be disposed. Otherwise, false. - + - Calculate percent of the grand total value. + Represents a linear gauge. - + + + + + + + - The descriptor that is used to describe one matrix data cell. + Gets or sets the value that specifies inverted gauge or not. - - The class is used to define one data cell of the matrix. - The key properties are and . - To set visual appearance of the data cell, use the - property. - The collection of descriptors used to represent the matrix data cells is stored - in the MatrixObject.Data.Cells property. - - + - Gets or sets an aggregate function used to calculate totals for this cell. + Gets or sets gauge label. - + - Gets or sets a value that determines how to calculate the percent value for this cell. + Initializes a new instance of the class. - + - + - - - Initializes a new instance of the class - with default settings. - + + - - - Initializes a new instance of the class - with specified expression. - - The descriptor's expression. + + - - - Initializes a new instance of the class - with specified expression and aggregate function. - - The descriptor's expression. - The aggregate function. + + - + + + + + + + + + + + + + - Initializes a new instance of the class - with specified expression, aggregate function, and a percent. + Required designer variable. - The descriptor's expression. - The aggregate function. - The percent setting. - + - Represents a collection of matrix data descriptors used in the . + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the element at the specified index. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Index of an element. - The element at the specified index. - + - Adds the specified descriptors to the end of this collection. + Represents a linear pointer. - Array of descriptors to add. - + - Adds a descriptor to the end of this collection. + Gets o sets the height of gauge pointer. - Descriptor to add. - Index of the added descriptor. - + - Inserts a descriptor into this collection at the specified index. + Gets or sets the width of a pointer. - The zero-based index at which value should be inserted. - The descriptor to insert. - + - Removes the specified descriptor from the collection. + Initializes a new instance of the - Descriptor to remove. + The parent gauge object. - + + + + + + + + + + - Returns the zero-based index of the first occurrence of a descriptor. + Represents a linear scale. - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. - + - Determines whether a descriptor is in the collection. + Initializes a new instance of the class. - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. + The parent gauge object. - + + + + + + + + + + - Copies the elements of this collection to a new array. + Represents a linear gauge. - An array containing copies of this collection elements. - + - + + + + - + + + + - The base class for matrix element descriptors such as and - . + Returns centr of the gauge - + - Gets or sets an expression which value will be used to fill the matrix. + The number of radians in one degree - - Expression may be any valid expression. Usually it's a data column: - [DataSource.Column]. - - + - Gets or sets the template column bound to this descriptor. + Gets or sets the Radial Gauge type - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template row bound to this descriptor. + Gats or sets the Radial Gauge position. Doesn't work for Full Radial Gauge. - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template cell bound to this descriptor. + Gets or sets the semicircles offset - - Using this property, you may access the matrix cell which is bound to - this descriptor. It may be useful to change the cell's appearance. - - Before using this property, you must initialize the matrix descriptors by - calling the method. - - - - - MatrixObject matrix; - // change the fill color of the first matrix cell - matrix.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); - - - + - Assigns values from another descriptor. + Initializes a new instance of the class. - Descriptor to assign values from. - + - + - + + + + + + + + + + + + + + + + + + + + + + - Represents a collection of matrix header descriptors used in the . + Required designer variable. - + - Gets or sets the element at the specified index. + Clean up any resources being used. - Index of an element. - The element at the specified index. + true if managed resources should be disposed; otherwise, false. - + - Adds the specified descriptors to the end of this collection. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Array of descriptors to add. - + - Adds a descriptor to the end of this collection. + Radial Gauge types - Descriptor to add. - Index of the added descriptor. - + - Inserts a descriptor into this collection at the specified index. + Full sized gauge - The zero-based index at which value should be inserted. - The descriptor to insert. - + - Removes the specified descriptor from the collection. + Half of the radial gauge - Descriptor to remove. - + - Returns the zero-based index of the first occurrence of a descriptor. + Quarter of the radial gauge - The descriptor to locate in the collection. - The zero-based index of the first occurrence of descriptor within - the entire collection, if found; otherwise, -1. - + - Determines whether a descriptor is in the collection. + Radial Gauge position types - The descriptor to locate in the collection. - true if descriptor is found in the collection; otherwise, false. - + - Copies the elements of this collection to a new array. + None - An array containing copies of this collection elements. - + - Gets the list of indices of terminal items of this header. + Top - The list of indices. - + - Gets the list of indices of terminal items of the header with specified address. + Bottom - The address of a header. - The list of indices. - + - Removes a header item with the address specified. + Left - The address of a header. - + - Gets an index of header with the address specified. + Right - The address of a header. - The index of header. - + - Gets an index of header with the address specified. If there is no such header item, it will be created. + Represents a linear pointer. - The address of a header. - The index of header. - + + + Gets or sets the value, indicating that gradient should be rotated automatically + + + + + Initializes a new instance of the + + The parent gauge object. + The scale object. + + - + - - - Contains a set of properties and methods to hold and manipulate the matrix descriptors. - - - This class contains three collections of descriptors such as , - and . Use collections' methods to add/remove - descriptors. When you are done, call the - method to refresh the matrix. - To fill a matrix in code, use the AddValue method. - + + - + - Gets a collection of column descriptors. + Represents a linear scale. - - Note: after you change something in this collection, call the - method to refresh the matrix. - - + - Gets a collection of row descriptors. + Initializes a new instance of the class. - - Note: after you change something in this collection, call the - method to refresh the matrix. - + The parent gauge object. - + + + + + + + + + + - Gets a collection of data cell descriptors. + Represents a simple progress gauge. - - Note: after you change something in this collection, call the - method to refresh the matrix. - - + + + + + + + - Clears all descriptors. + Gets or sets gauge label. - + - Adds a value in the matrix. + Gets scale. Should be disabled for SimpleProgressGauge - Array of column values. - Array of row values. - Array of data values. - - The number of elements in an array passed to this method must be the same as - a number of descriptors in the appropriate collection. That is, if your matrix - has one column, two row and one cell descriptors (in Columns, Rows and - Cells collections respectively), you have to pass one-element array for the - columnValues param, two-element array for the rowValues and one-element - array for the cellValues. - - This example demonstrates how to fill a simple matrix that contains one column, - row and cell. - - MatrixObject matrix; - matrix.Data.AddValue( - new object[] { 1996 }, - new object[] { "Andrew Fuller" }, - new object[] { 123.45f }); - - // this will produce the following result: - // | 1996 | - // --------------+----------+ - // Andrew Fuller | 123.45| - // --------------+----------+ - - - + - Adds a value in the matrix. + Initializes a new instance of the class. - Array of column values. - Array of row values. - Array of data values. - Datasource row index. - - See the method for more details. - - + + + + - Gets a value with specified column, row and cell indicies. + - Index of a column. - Index of a row. - Index of a cell. - The value of a cell. - + + + + + + + + + + + + + + + + - Sets the cell's value. + Required designer variable. - Index of a column. - Index of a row. - The new value. - + - The descriptor that is used to describe one element of the matrix header. + Clean up any resources being used. - - The class is used to define one header element of the matrix - (either the column element or row element). The key properties are - , and . - To set visual appearance of the element, use the - property. To set visual appearance of the "total" element, use the - property. - The collection of descriptors used to represent the matrix header is stored - in the MatrixObject.Data.Columns and MatrixObject.Data.Rows properties. - + true if managed resources should be disposed; otherwise, false. - + - Gets or sets the sort order of header values. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - This property determines how the values displayed in this element are sorted. The default sort - is ascending. - - + + + + - Gets or sets a value indicating that this element has associated "total" element. + Gets or sets the number of fractional digits - - To access the matrix cell that is bound to the "Total" element, use the - property. It may be useful to change the - "Total" text by something else. - - This example shows how to change the "Total" text of the total element. - - MatrixObject matrix; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - - - + + + + + + + + + + - Gets or sets the value indicating whether the total values must be printed before the data. + SimpleProgressGauge pointer types - + - Gets or sets a value indicating that the page break must be printed before this element. + Full sized pointer - - Page break is not printed before the very first element. - - + - Gets or sets a value that determines whether it is necessary to suppress totals - if there is only one value in a group. + Small pointer - + + + + - Gets or sets the template column bound to the "total" element of this descriptor. + Gets or sets the pointer type - - This property is for internal use; usually you don't need to use it. - - + - Gets or sets the template row bound to the "total" element of this descriptor. + Gets or sets the small pointer width ratio - - This property is for internal use; usually you don't need to use it. - - + + + + + + + + + + - Gets or sets the template cell bound to the "total" element of this descriptor. + Represents a simple gauge. - - This property may be useful to change the "Total" text by something else. - - Before using this property, you must initialize the matrix descriptors by - calling the method. - - - This example shows how to change the "Total" element. - - MatrixObject matrix; - matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; - matrix.Data.Rows[0].TemplateTotalCell.Fill = new SolidFill(Color.Green); - - - + - - + + - + - Initializes a new instance of the class with - default settings. + Gets or sets gauge label. - + - Initializes a new instance of the class with - specified expression. + Initializes a new instance of the class. - The descriptor's expression. - - - Initializes a new instance of the class with - specified expression and totals. - - The descriptor's expression. - Indicates whether to show the "total" element. + + - + + + + + + + + + + + + + + + + + + + - Initializes a new instance of the class with - specified expression, sort order and totals. + Required designer variable. - The descriptor's expression. - Sort order used to sort header values. - Indicates whether to show the "total" element. - + - Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Describes how the even style is applied to a matrix. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - The even style is applied to matrix rows. + Represents a simple pointer. - + - The even style is applied to matrix columns. + Gets o sets the Left offset of gauge pointer. - + - Represents the chart object based on Microsoft Chart control. + Gets o sets the Top offset of gauge pointer. - - FastReport uses Microsoft Chart library to display charts. This library is included - in .Net Framework 4.0. For .Net 3.5 it is available as a separate download here: - http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c - This library requires .Net Framework 3.5 SP1. - To access Microsoft Chart object, use the property. It allows you - to set up chart appearance. For more information on available properties, refer to the - MS Chart documentation. - Chart object may contain one or several series. Each series is represented by two objects: - - - the Series that is handled by MS Chart. It is stored in the - Chart.Series collection; - - - the object that provides data for MS Chart series. - It is stored in the collection. - - - Do not operate series objects directly. To add or remove series, use - the and methods. These methods - handle Series and MSChartSeries in sync. - If you have a chart object on your Form and want to print it in FastReport, use - the method. - - + - This property is not relevant to this class. + Gets o sets the height of gauge pointer. - + - This property is not relevant to this class. + Gets or sets the width of a pointer. - + - This property is not relevant to this class. + Gets or sets the pointer ratio. - + - This property is not relevant to this class. + Gets or sets the pointer horizontal offset (cm). - + - This property is not relevant to this class. + Initializes a new instance of the class. + The parent gauge object. - + - + - + - - + + + Represents a simple scale. + - + - Gets the collection of objects. + Gets or sets the first subscale (top or left). - + - Gets a reference to the MS Chart object. + Gets or sets the second subscale (right or bottom). - + - Gets or set Force automatically created series. + Initializes a new instance of the class. + + The parent gauge object. + + + + + + + + + + + + + Represent the subscale of simple scale. - + - Gets or sets the data source. + Gets or sets a value that specifies enabled subscale or not. - + - Gets or sets the filter expression. + Gets or sets a value that specifies show caption or not. - - This filter will be applied to all series in chart. You may also use the series' - property to filter each series individually. - - + - Gets or sets a value indicating that all series' data point should be aligned by its X value. + Initializes a new instance of the class. - - Using this property is necessary to print stacked type series. These series must have - equal number of data points, and the order of data points must be the same for all series. - - + - Gets or set the data column or expression for automatically created series. + Copies the contents of another SimpleSubScale. - - In order to create auto-series, you need to define one series that will be used as a - template for new series, and set up the property. - The value of this property will be a name of new series. If there is no series - with such name yet, the new series will be added. - + The SimpleSubScale instance to copy the contents from. - + - Gets or set the color for auto-series. + Serializes the SimpleSubScale. + Writer object. + SimpleSubScale property name. + Another SimpleSubScale to compare with. - If no color is specified, the new series will use the palette defined in the chart. + This method is for internal use only. - + - Gets or sets sort order for auto-series. + Represents a gauge object. - + - - - Adds a new series. - - The type of series. - The new MSChartSeries object. + + - - - Deletes a series at a specified index. - - Index of series. + + - + - Assigns chart appearance, series and data from the - System.Windows.Forms.DataVisualization.Charting.Chart object. + Gets or sets the minimal value of gauge. - Chart object to assign data from. - - Use this method if you have a chart in your application and want to print it in FastReport. - To do this, put an empty MSChartObject in your report and execute the following code: - - report.Load("..."); - MSChartObject reportChart = report.FindObject("MSChart1") as MSChartObject; - reportChart.AssignChart(applicationChart); - report.Show(); - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Initializes a new instance of the with default settings. + Gets or sets the maximal value of gauge. - + - Represents the small chart object (called sparkline) fully based on MSChartObject. + Gets or sets the currenta value of gauge. - - - - - - - + - Initializes a new instance of the with default settings. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets scale of gauge. - + - Required designer variable. + Gets or sets pointer of gauge. - + - Clean up any resources being used. + Gets or sets gauge label. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets an expression that determines the value of gauge object. - + - Required designer variable. + Gets a value that specifies is gauge vertical or not. - + - Clean up any resources being used. + Initializes a new instance of the class. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Initializes a new instance of the class. + Minimum value of gauge. + Maximum value of gauge. + Current value of gauge. - + - Specifies how the series points are sorted. + Initializes a new instance of the class. + Minimum value of gauge. + Maximum value of gauge. + Current value of gauge. + Scale of gauge. + Pointer of gauge. - - - Points are not sorted. - + + - - - Points are sorted by X value. - + + - - - Points are sorted by Y value. - + + - + - Specifies the direction in which the series points are sorted. + Draws the gauge. + Draw event arguments. - + + + + - Points are sorted in ascending order. + Clone Gauge Object + clone of this object - + - Points are sorted in descending order. + Represents a label of a gauge. - + - Specifies how the series points are grouped. + Gets or sets the label text - + - Points are not grouped. + Gets or sets the label font - + - Points are grouped by X value. + Gets or sets the label color - + - Points are grouped by number specified in the . + Gets or sets the label parent - + - Points are grouped by Years. + Initializes a new instance of the class. - + - Points are grouped by Months. + Initializes a new instance of the class. + Label text + Label font + Label color + Label parent - + - Points are grouped by Weeks. + Copies the contents of another GaugeLabel. + The GaugeLabel instance to copy the contents from. - + - Points are grouped by Days. + Draws the gauge label. + Draw event arguments. - + - Points are grouped by Hours. + Serializes the gauge label. + Writer object. + Gauge label property name. + Another GaugeLabel to compare with. + + This method is for internal use only. + - + - Points are grouped by Minutes. + Represents a pointer of gauge. - + - Points are grouped by Seconds. + Gets or sets the parent gauge object. - + - Points are grouped by Milliseconds. + Gets or sets the color of a pointer. - + - Specifies which pie value to explode. + Gets or sets the border width of a pointer. - + - Do not explode pie values. + Gets or sets the border color of a pointer. - + - Explode the biggest value. + Initializes a new instance of the class. + The parent gauge object. - + - Explode the lowest value. + Copies the contents of another GaugePointer. + The GaugePointer instance to copy the contents from. - + - Explode the value specified in the property. + Draws the gauge pointer. + Draw event arguments. - + - Specifies which data points to collect into one point. + Serializes the gauge pointer. + Writer object. + Gauge pointer property name. + Another GaugePointer to compare with. + + This method is for internal use only. + - + - Do not collect points. + Represents a scale of a gauge. - + - Show top N points (N value is specified in the - property), collect other points into one. + Gets or sets major ticks of scale. - + - Show bottom N points (N value is specified in the - property), collect other points into one. + Gets or sets minor ticks of scale. - + - Collect points which have Y value less than specified - in the property. + Gets or sets the parent gauge object. - + - Collect points which have Y value less than percent specified - in the property. + Gets or sets the font of scale. - + - Collect points which have Y value greater than specified - in the property. + Gets or sets the scale font color - + - Collect points which have Y value greater than percent specified - in the property. + Initializes a new instance of the class. + The parent gauge object. - + - Represents a MS Chart series wrapper. + Copies the contents of another GaugeScale. - - This class provides a data for MS Chart series. The series itself is stored inside the - MS Chart and is accessible via the property. - You don't need to create an instance of this class directly. Instead, use the - method. - + The GaugeScale instance to copy the contents from. - + - Gets os sets the data filter expression. + Draws the scale of gauge. - - The filter is applied for this series only. You can also use the - property to set a filter that will be applied to all - series in a chart. - + Draw event arguments. - + - Gets or set the data column or expression for automatically created series. + Serializes the gauge scale. + Writer object. + Scale property name. + Another GaugeScale to compare with. - In order to create auto-series, you need to define one series that will be used as a - template for new series, and set up the property. - The value of this property will be a name of new series. If there is no series - with such name yet, the new series will be added. + This method is for internal use only. - + - Gets or sets the sort method used to sort data points. + Represents a scale ticks. - - You have to specify the property as well. Data points in this series - will be sorted according selected sort criteria and order. - - + - Gets or set Force automatically created series. + Gets or sets the length of ticks. - + - Gets or sets the sort order used to sort data points. + Gets or sets the width of ticks. - - You have to specify the property as well. Data points in this series - will be sorted according selected sort criteria and order. - - + - Gets or sets the group method used to group data points. + Gets or sets the color of ticks. - - This property is mainly used when series is filled with data with several identical X values. - In this case, you need to set the property to XValue. All identical data points will be - grouped into one point, their Y values will be summarized. You can choose the summary function - using the property. - - + - Gets or sets the group interval. + Gets or sets the count of ticks - - This value is used if property is set to Number. - - + - Gets or sets the function used to group data points. + Initializes a new instance of the class. - + - Gets or sets the collect method used to collect several data points into one. + Initializes a new instance of the class. - - This instrument for data processing allows to collect several series points into one point. - The collected point will be displaed using the text specified in the - property and color specified in the property. - For example, to display top 5 values, set this property to TopN and specify - N value (5) in the property. - + Ticks length. + Ticks width. + Ticks color. - + - Gets or sets the collect value used to collect several data points into one. + Initializes a new instance of the class. - - This property is used if the property is set to any value other than None. - + Ticks length. + Ticks width. + Ticks color. + Ticks count. - + - Gets or sets the text for the collected value. + Copies the contents of another ScaleTicks. + The ScaleTicks instance to copy the contents from. - + - Gets or sets the color for the collected value. + Serializes the scale ticks. + Writer object. + Scale ticks property name. + Another ScaleTicks to compare with. - If this property is set to Transparent (by default), the default palette color - will be used to display a collected point. + This method is for internal use only. - + - Gets or sets the method used to explode values in pie-type series. + Provides a user interface for editing an expression. - + - Gets or sets the value that must be exploded. + - - This property is used if property is set - to SpecificValue. - - + - Gets or sets the data column or expression that returns the X value of data point. + - - - Gets or sets the data column or expression that returns the first Y value of data point. - + + - - - Gets or sets the data column or expression returns the second Y value of data point. - + + - + - Gets or sets the data column or expression returns the third Y value of data point. + Provides a user interface for editing an expression. - + - Gets or sets the data column or expression returns the fourth Y value of data point. + - + - Gets or sets the data column or expression that returns the color of data point. + - - - Gets or sets the data column or expression returns the label value of data point. - + + - + + + + - Gets a reference to MS Chart Series object. + Provides a user interface for editing an expression. - - Use this property to set many options available for the Series object. These options - include: visual appearance, labels, marks, value types. Refer to the Microsoft Chart control - documentation to learn more. - - + - Gets a number of Y value per data point. + - - Number of Y values depends on series type. Most of series have only one Y value. Financial - series such as Stock and Candlestick, use four Y values. - - + - This property is not relevant to this class. + - + - + - - - - + - Clears all data points in this series. + Provides a user interface for choosing a data source. - + + + + + + + - Adds a data point with specified X and Y values. + Provides a user interface for editing a text outline. - X value. - Array of Y values. - - Note: number of values in the yValues parameter must be the same as value returned - by the property. - - + - + + + + - Creates a new instance of the class with default settings. + Provides a user interface for choosing a relation. - + - Represents a collection of objects. + Provides a user interface for selecting a component inside the report. - + + + + + + + + + + - Gets the element at the specified index. + Provides a user interface for selecting a component inside the same band. - Index of an element. - The element at the specified index. - + + + + + + + + + + - Resets series data. + Provides a user interface for editing a flags enumeration. - + + + + + + + - Processes the current data row. + Provides a user interface for choosing a data type. - + + + + + + + - Finishes the series data. + Provides a user interface for choosing a data column. - - - Required designer variable. - + + - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. + + - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + + + + Provides a user interface for choosing a data source. - + - Base class for report pages and dialog forms. + Provides a user interface for editing an expression. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for editing an angle in degrees. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for editing a component's border. - + + + + + + + - This property is not relevant to this class. + Provides a user interface for selecting a component inside the same page. - + + + + + + + + + + - Gets the snap size for this page. + Provides a user interface for choosing a color. - + + + + + + + + + + + + + - Gets a page designer for this page type. + Provides a user interface for editing a fill. - The page designer. - + + + + + + + - This method is called by the designer when you create a new page. + Provides a user interface for editing a string collection. - - You may create the default page layout (add default bands, set default page size, etc). - - + + + + + + + - Causes the page to refresh in the preview window. + Represents a map object. - - Call this method when you handle object's MouseMove, MouseDown, MouseUp, MouseEnter, MouseLeave events - and want to refresh the preview window. - - If you have changed some objects on a page, the Refresh method will not save the changes. - This means when you print or export the page, you will see original (unmodified) page content. - If you want to save the changes, you have to use the method instead. - - - + - Modifies the page content and refresh it in the preview window. + This property is not relevant to this class. - - Call this method when you handle object's Click, MouseDown or MouseUp events - and want to modify an object and refresh the preview window. - - + - Initializes a new instance of the class with default settings. + This property is not relevant to this class. - + - Represents the pages of a prepared report. + This property is not relevant to this class. - - Prepared page is a page that you can see in the preview window. Prepared pages can be - accessed via property. - The common scenarios of using this object are: - - - Working with prepared pages after the report is finished: load - () or save () pages - from/to a .fpx file, get a page with specified index to work with its objects - (); modify specified page (). - - - - Using the , , - methods while report is generating to produce an output. - - - - - - + - Gets the number of pages in the prepared report. + This property is not relevant to this class. - + - Specifies an action that will be performed on method call. + This property is not relevant to this class. - + - Gets or sets a value indicating whether the prepared pages can be uploaded to the file cache. + This property is not relevant to this class. - - This property is used while report is generating. - Default value for this property is true. That means the prepared pages may be uploaded to - the file cache if needed. To prevent this (for example, if you need to access some objects - on previously generated pages), set the property value to false. - - + - - - Adds a source page to the prepared pages dictionary. - - The template page to add. - - Call this method before using AddPage and AddBand methods. This method adds - a page to the dictionary that will be used to decrease size of the prepared report. - + + - - - Adds a new page. - - The original (template) page to add. - - Call the method before adding a page. This method creates - a new output page with settings based on page parameter. - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Prints a band with all its child objects. + Gets or sets the path to folder containing shapefiles. - The band to print. - true if band was printed; false if it can't be printed - on current page due to its PrintOn property value. - Call the method before adding a band. + This property is used by the map editor when selecting a shapefile. - + - Gets a page with specified index. + Gets or sets the map zoom. - Zero-based index of page. - The page with specified index. - + - Gets the size of specified page, in pixels. + Gets or sets minimum zoom value. - Index of page. - the size of specified page, in pixels. - + - Replaces the prepared page with specified one. + Gets or sets maximum zoom value. - The index of prepared page to replace. - The new page to replace with. - + - Modify the prepared page with new sizes. + Gets or sets the X offset of the map. - The name of prepared page to reSize. - + - Removes a page with the specified index. + Gets or sets the Y offset of the map. - The zero-based index of page to remove. - + - Saves prepared pages to a stream. + Gets or sets the value indicating that mercator projection must be used to view the map. - The stream to save to. - + - Saves prepared pages to a .fpx file. + Gets the color scale settings. - The name of the file to save to. - + - Loads prepared pages from a stream. + Gets or sets a collection of map layers. - The stream to load from. - + - Loads prepared pages from a .fpx file. + Gets or sets padding within the map. - The name of the file to load from. - - - Clears the prepared report's pages. - + + - - - Creates the pages of a prepared report - - + + - - - Initializes a new instance of the OutlineControl class with default settings. - + + - - - Represents a Windows Forms control used to preview a report. - - - To use this control, place it on a form and link it to a report using the report's - property. To show a report, call - the Report.Show method: - - report1.Preview = previewControl1; - report1.Show(); - - Use this control's methods such as , etc. to - handle the preview. Call method to clear the preview. - You can specify whether the standard toolbar is visible in the - property. The property allows you to hide/show the statusbar. - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Occurs when current page number is changed. + Loads a map from file. + Name of file that contains a map. - + - Gets a reference to the report. + Creates unique names for all contained objects such as layers, shapes, etc. - + - Obsolete. Gets or sets the color of page border. + Initializes a new instance of the class. - + - Gets or sets the color of active page border. + Represents a map point. - + - Gets or sets the first page offset from the top left corner of the control. + Gets or sets the X-coordinate of the point. - + - Gets or sets a value indicating whether the toolbar is visible. + Gets or sets the Y-coordinate of the point. - + + + + + + + + + + + + + + + + - Gets or sets a value indicating whether the statusbar is visible. + Initializes a new instance of the class. - + - Gets or sets a value indicating whether the outline control is visible. + Represents a polygon shape. - + - Specifies the set of buttons available in the toolbar. + Holds the largest bounding rectangle of this shape. - + - Specifies the set of exports that will be available in the preview's "save" menu. + Gets or sets a bounding box of this shape. - + - Specifies the set of exports in clouds that will be available in the preview's "save" menu. + Gets or sets a list of polygons in this shape. - + - Gets or sets a value indicating whether the fast scrolling method should be used. + Gets or sets the shape data in binary format. - - If you enable this property, the gradient background will be disabled. - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the visual style. + Initializes a new instance of the class. - + - Gets or sets a value indicating that the BackColor property must be used to draw the background area. + Required designer variable. - - By default, the background area is drawn using the color defined in the current UIStyle. - - + - Gets the preview window's toolbar. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Gets the preview window's statusbar. + Required method for Designer support - do not modify + the contents of this method with the code editor. - - - Gets or sets the initial directory that is displayed by a save file dialog. + + + Required designer variable. - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - - Adds a new report tab to the preview control. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - The Report object that contains the prepared report. - The title for the new tab. - - Prepare the report using its Prepare method before you pass it to the report parameter. - - - - Adds a new report tab to the preview control. + + + Required designer variable. - The Report object that contains the prepared report. - The title for the new tab. - If true, makes the new tab active. - - Prepare the report using its Prepare method before you pass it to the report parameter. - - - - Switches to the tab with specified text. + + + Clean up any resources being used. - Text of the tab. - true if the tab with specified text exists, or false if there is no such tab. + true if managed resources should be disposed; otherwise, false. - - - Deletes the report tab with specified text. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - The text of the tab. - + - Checks if the tab with specified text exists. + Required designer variable. - The text of the tab. - true if the tab exists. - + - Displays the text in the status bar. + Clean up any resources being used. - Text to display. + true if managed resources should be disposed. Otherwise, false. - + - Sets the focus to the preview control. + Represents four coordinates that define a bounding box. - + - Prints the current report. + Gets or sets the minimum X-coordinate of a bounding box. - true if report was printed; false if user cancels the "Print" dialog. - + - Saves the current report to a .fpx file using the "Save FIle" dialog. + Gets or sets the minimum Y-coordinate of a bounding box. - + - Saves the current report to a specified .fpx file. + Gets or sets the maximum X-coordinate of a bounding box. - + - Saves the current report to a stream. + Gets or sets the maximum Y-coordinate of a bounding box. - + - Loads the report from a .fpx file using the "Open File" dialog. + Copies the contents of another instance. + Source box to copy the contents from. - + - Loads the report from a specified .fpx file. + Defines the palette used to display map shapes. - + - Load the report from a stream. + No palette used. - The stream to load from. - + - Sends an email. + Light palette. - + - Finds the text in the current report using the "Find Text" dialog. + Pastel palette. - + - Finds the specified text in the current report. + Grayscale palette. - Text to find. - A value indicating whether the search is case-sensitive. - A value indicating whether the search matches whole words only. - true if text found. - + - Finds the next occurence of text specified in the Find method. + Earth tones palette. - true if text found. - + - Navigates to the first page. + Sea green palette. - + - Navigates to the previuos page. + Bright pastel palette. - + - Navigates to the next page. + Represents a set of color ranges used to highlight polygons based on analytical value. - + - Navigates to the last page. + Gets the list of ranges. - + - Gets or sets the current page number. + Gets or sets the number of ranges. - - This value is 1-based. - - + - Gets the pages count in the current report. + Gets or sets the start color. - + - Gets or sets the zoom factor. + Gets or sets the middle color. - - 1 corresponds to 100% zoom. - - + - Zooms in. + Gets or sets the end color. - + - Zooms out. + Gets or sets a value indicating that the map's color scale must display data from this color ranges. - + - Zooms to fit the page width. + Gets or sets ranges as a string. - + - Zooms to fit the whole page. + Copies the contents of another ColorRanges. + The ColorRanges instance to copy the contents from. - + - Edits the current page in the designer. + Gets a color associated with given analytical value. + The analytical value. + The color associated with this value, or Color.Transparent if no association found. - + - Copies the current page in preview. + Initializes a new instance of the class. - + - Removes the current page in preview. + Represents a single color range. - + - Edits the current report in the designer. + Gets or sets color of the range. - + - Edits the watermark. + Gets or sets start value of the range. - + - Edits the page settings. + Gets or sets end value of the range. - + - Navigates to the specified position inside a specified page. + Copies the contents of another ColorRange. - The page number (1-based). - The position inside a page, in pixels. + The ColorRange instance to copy the contents from. - + - Clears the preview. + Initializes a new instance of the class. - + - Refresh the report. + Initializes a new instance of the class with a specified parameters. + The color of the range. + The start value of the range. + The end value of the range. - + - Initializes a new instance of the class. + Represents the color scale. - - - Required designer variable. + + + Gets or sets that must be displayed in this color scale. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Gets or sets the format string used to format data values. - + - Specifies an action that will be performed on PreparedPages.AddPage method call. + Gets or sets a value indicating whether the color scale must be hidden if there is no data in it. - + - Do not add the new prepared page if possible, increment the CurPage instead. + Gets or sets the text displayed in the color scale if there is no data in it. - + + + + + + + + + + + + + - Add the new prepared page. + Initializes a new instance of the class. - + - Gets or sets the initial directory that is displayed by a save file dialog. + Represents a distance scale. - + - Represents a report object. + Initializes a new instance of the class. - - The instance of this class contains a report. Here are some common - actions that can be performed with this object: - - - To load a report, use the - method or call static method. - - - To save a report, call the method. - - - To register application dataset for use it in a report, call one of the - RegisterData methods. - - - To pass some parameter to a report, use the - method. - - - To design a report, call the method. - - - To run a report and preview it, call the method. - Another way is to call the method, then call the - method. - - - To run a report and print it, call the method. - Another way is to call the method, then call the - method. - - - To load/save prepared report, use one of the LoadPrepared and - SavePrepared methods. - - - To set up some global properties, use the static class - or component that you can use in the Visual Studio IDE. - - - - The report consists of one or several report pages (pages of the - type) and/or dialog forms (pages of the type). - They are stored in the collection. In turn, each page may contain report - objects. See the example below how to create a simple report in code. - - This example shows how to create a report instance, load it from a file, - register the application data, run and preview. - - Report report = new Report(); - report.Load("reportfile.frx"); - report.RegisterData(application_dataset); - report.Show(); - - This example shows how to create simple report in code. - - Report report = new Report(); - // create the report page - ReportPage page = new ReportPage(); - page.Name = "ReportPage1"; - // set paper width and height. Note: these properties are measured in millimeters. - page.PaperWidth = 210; - page.PaperHeight = 297; - // add a page to the report - report.Pages.Add(page); - // create report title - page.ReportTitle = new ReportTitleBand(); - page.ReportTitle.Name = "ReportTitle1"; - page.ReportTitle.Height = Units.Millimeters * 10; - // create Text object and put it to the title - TextObject text = new TextObject(); - text.Name = "Text1"; - text.Bounds = new RectangleF(0, 0, Units.Millimeters * 100, Units.Millimeters * 5); - page.ReportTitle.Objects.Add(text); - // create data band - DataBand data = new DataBand(); - data.Name = "Data1"; - data.Height = Units.Millimeters * 10; - // add data band to a page - page.Bands.Add(data); - - - + - Gets a reference to the report designer. + Represents loading map data from dbf-file. - - This property can be used when report is designing. In other cases it returns null. - - + - Runs the report designer. + Gets or sets the filter string used in an open file dialog. - true if report was modified, otherwise false. - + - Runs the report designer. + Initializes a new instance of the class. - A value indicates whether the designer should run modally. - true if report was modified, otherwise false. - + - Runs the report designer. + Returns a file filter for an open file dialog. - The main MDI form which will be a parent for the designer. - true if report was modified, otherwise false. + String that contains a file filter. - + - Gets the email settings such as recipients, subject, message body. + Imports the map data from a specified file into a specfied layer. + The MapObject for an importing map. + The name of a file that contains map. - + - Gets or sets the report preview control. + Represents the description of dBase field. - - Use this property to attach a custom preview to your report. To do this, place the PreviewControl - control to your form and set the report's Preview property to this control. - - + - Gets the print settings such as printer name, copies, pages to print etc. + Gets the field name. - + - Prepares the report and prints it. + Gets the field type. - + - Prints the report with the "Print" dialog. - Report should be prepared using the method. + Gets the field length. - + - Prints the report without the "Print" dialog. - Report should be prepared using the method. + Initializes a new instance of the class. - Printer-specific settings. - - Use the following code if you want to show the "Print" dialog, then print: - - if (report.Prepare()) - { - PrinterSettings printerSettings = null; - if (report.ShowPrintDialog(out printerSettings)) - { - report.PrintPrepared(printerSettings); - } - } - - - + - Prepares the report and shows it in the preview window. + Initializes a new instance of the class with a specified parameters. + The field name. + The field type. + The field length. - + - Prepares the report and shows it in the preview window. + Initializes a new instance of the class with a specified parameters. - A value that specifies whether the preview window should be modal. + The field name. + The field type. + The field length. - + - Prepares the report and shows it in the preview window. + The type of dBase field. - A value that specifies whether the preview window should be modal. - The owner of the preview window. - + - Prepares the report and shows it in the preview window. + Character field. - The main MDI form which will be a parent for the preview window. - + - Previews the report. The report should be prepared using the method. + Date field. - + - Previews the prepared report. + Numeric field. - A value that specifies whether the preview window should be modal. - + - Previews the prepared report. + Logical field. - A value that specifies whether the preview window should be modal. - The owner of the preview window. - + - Previews the prepared report. + Memo field. - The main MDI form which will be a parent for the preview window. - + - Shows the "Print" dialog. + Represents a collection of objects. - Printer-specific settings. - true if the dialog was closed by "Print" button. - - Use the following code if you want to show the "Print" dialog, then print: - - if (report.Prepare()) - { - PrinterSettings printerSettings = null; - if (report.ShowPrintDialog(out printerSettings)) - { - report.PrintPrepared(printerSettings); - } - } - - - + - Occurs when calc execution is started. + Gets a layer with specified index. + Index of a layer. + The layer with specified index. - + - Occurs when report is inherited and trying to load a base report. + Specifies the type of objects that layer contains. - - Typical use of this event is to load the base report from a database instead of a file. - - + - Occurs when report execution is started. + The layer contains points. - + - Occurs when report execution is finished. + The layer contains lines. - + - Gets the pages contained in this report. + The layer contains polygons. - - This property contains pages of all types (report and dialog). Use the is/as operators - if you want to work with pages of ReportPage type. - - The following code demonstrates how to access the first report page: - - ReportPage page1 = report1.Pages[0] as ReportPage; - - - + - Gets the report's data. + Specifies the spatial source for the layer. - - The dictionary contains all data items such as connections, data sources, parameters, - system variables. - - + - Gets the collection of report parameters. + Source is ESRI shapefile. - - Parameters are displayed in the "Data" window under the "Parameters" node. - Typical use of parameters is to pass some static data from the application to the report. - You can print such data, use it in the data row filter, script etc. - Another way to use parameters is to define some reusable piece of code, for example, - to define an expression that will return the concatenation of first and second employee name. - In this case, you set the parameter's Expression property to something like this: - [Employees.FirstName] + " " + [Employees.LastName]. Now this parameter may be used in the report - to print full employee name. Each time you access such parameter, it will calculate the expression - and return its value. - You can create nested parameters. To do this, add the new Parameter to the - Parameters collection of the root parameter. To access the nested parameter, you may use the - method. - To get or set the parameter's value, use the and - methods. To set the parameter's expression, use the - method that returns a Parameter object and set its - Expression property. - - + - Gets or sets the report information such as report name, author, description etc. + Source is a latitude/longitude/name provided by an application. - + - Gets or sets the base report file name. + Determines how map labels are displayed. - - This property contains the name of a report file this report is inherited from. - Note: setting this property to non-empty value will clear the report and - load the base file into it. - - + - Gets or sets the name of a file the report was loaded from. + No label displayed. - - This property is used to support the FastReport.Net infrastructure; - typically you don't need to use it. - - + - Gets or sets the report script. + The shape name is displayed. - - The script contains the ReportScript class that contains all report objects' - event handlers and own items such as private fields, properties, methods etc. The script - contains only items written by you. Unlike other report generators, the script does not - contain report objects declarations, initialization code. It is added automatically when - you run the report. - By default this property contains an empty script text. You may see it in the designer - when you switch to the Code window. - If you set this property programmatically, you have to declare the FastReport - namespace and the ReportScript class in it. Do not declare report items (such as bands, - objects, etc) in the ReportScript class: the report engine does this automatically when - you run the report. - Security note: since the report script is compiled into .NET assembly, it allows - you to do ANYTHING. For example, you may create a script that will read/write files from/to a disk. - To restrict such operations, use the property. - - + - Gets or sets the script language of this report. + The value is displayed. - - Note: changing this property will reset the report script to default empty script. - - + - Gets or sets a value indicating whether the null DB value must be converted to zero, false or - empty string depending on the data column type. + Both name and value displayed. - - This property is true by default. If you set it to false, you should check - the DB value before you do something with it (for example, typecast it to any type, use it - in a expression etc.) - - + - Gets or sets a value that specifies whether the report engine should perform the second pass. + Represents a map layer. - - Typically the second pass is necessary to print the number of total pages. It also - may be used to perform some calculations on the first pass and print its results on the - second pass. - Use the Engine.FirstPass, Engine.FinalPass properties to determine which - pass the engine is performing now. - - + - Gets or sets a value that specifies whether to compress the report file. + Gets or sets a type of layer. - - The report file is compressed using the Gzip algorithm. So you can open the - compressed report in any zip-compatible archiver. - - + - Gets or sets a value that specifies whether to use the file cache rather than memory - to store the prepared report pages. + Gets or sets the spatial source for the layer. - + - Gets or sets a value that specifies the quality of text rendering. + Gets or sets the name of ESRI shapefile. - - Note: the default property value is TextQuality.Default. That means the report - may look different depending on OS settings. This property does not affect the printout. - - + - Gets or sets a value that specifies if the graphic objects such as bitmaps - and shapes should be displayed smoothly. + Gets or sets the data source. - + - Gets or sets the report password. + Gets or sets the datasource filter expression. + + + + + Gets or sets spatial column name. - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in this property before loading - the report. In this case the report will load silently. - Password-protected report file is crypted using Rijndael algorithm. - Do not forget your password! It will be hard or even impossible to open - the protected file in this case. + This property is used if the is set to ShpFile. - + - Gets or sets a value indicating whether it is necessary to automatically fill - DataSet registered with RegisterData call. + Gets or sets an expression that returns spatial value. - If this property is true (by default), FastReport will automatically fill - the DataSet with data when you trying to run a report. Set it to false if - you want to fill the DataSet by yourself. + This property is used if the is set to ShpFile. - + - Gets or sets the maximum number of generated pages in a prepared report. + Gets or sets an expression that returns latitude value. - Use this property to limit the number of pages in a prepared report. + This property is used if the is set to ApplicationData. - + - Gets or sets the collection of styles used in this report. + Gets or sets an expression that returns longitude value. + + This property is used if the is set to ApplicationData. + - + - Gets or sets an array of assembly names that will be used to compile the report script. + Gets or sets an expression that returns label value. - By default this property contains the following assemblies: "System.dll", "System.Drawing.dll", - "System.Windows.Forms.dll", "System.Data.dll", "System.Xml.dll". If your script uses some types - from another assemblies, you have to add them to this property. + This property is used if the is set to ApplicationData. - + - Gets or sets a script event name that will be fired when the report starts. + Gets or sets an expression that returns analytical value. - + - Gets or sets a script event name that will be fired when the report is finished. + Gets or sets label's column name. - + - Gets a value indicating that report execution was aborted. + Gets or sets a value that determines how map labels are displayed. - + - Gets or sets a value that determines whether to store the report in the application resources. - Use this property in the MS Visual Studio IDE only. + Gets or sets the format of label's value. - - By default this property is true. When set to false, you should store your report - in a file. - - + - Gets or sets the resource string that contains the report. + Gets or sets the map accuracy. Lower value is better, but slower. - - This property is used by the MS Visual Studio to store the report. Do not use it directly. - - + - Gets a value indicating that this report contains dialog forms. + Gets or sets the value that determines the labels visiblity at a certain zoom value. - + - Gets or sets a set of permissions that will be restricted for the script code. + Gets or sets the aggregate function. - - Since the report script is compiled into .NET assembly, it allows you to do ANYTHING. - For example, you may create a script that will read/write files from/to a disk. This property - is used to restrict such operations. - This example shows how to restrict the file IO operations in a script: - - using System.Security; - using System.Security.Permissions; - ... - PermissionSet ps = new PermissionSet(PermissionState.None); - ps.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); - report1.ScriptRestrictions = ps; - report1.Prepare(); - - - - + - Gets a reference to the graphics cache for this report. + Gets or sets a value indicating that the layer is visible. - - This property is used to support the FastReport.Net infrastructure. Do not use it directly. - - + - Gets a pages of the prepared report. + Gets or sets a bounding box of layer. - + - Gets a reference to the report engine. + Gets a collection of map objects. - - This property can be used when report is running. In other cases it returns null. - - + - Gets or sets the initial page number for PageN/PageNofM system variables. + Gets the default style of shapes in this layer. - + - This property is not relevant to this class. + Gets or sets the palette used to highlight shapes. - + - This property is not relevant to this class. + Gets the color ranges used to highlight shapes based on analytical value. - + - Gets the report operation that is currently performed. + Gets the size ranges used to draw points based on analytical value. - + - Gets or sets the flag for refresh. + Gets or sets the expression that returns the name of polygon to zoom. - + + + Gets or sets the bounding box as a string. + + + + + Gets a reference to the Map object. + + + - + + + Draws the layer. + + The drawing parameters. + + + + Finds the shape under cursor. + + The cursor coordinates. + The ShapeBase object if found. + + - + + + Creates unique names for all contained objects such as points, lines, polygons, etc. + + + + + Reduces the number of points in the shapes in this layer. + + The accuracy value. + + + + Loads the layer contents from ESRI shapefile (*.shp/*.dbf). + + The file name. + + - + - + - + - + - + - + - + - + - + - Initializes the report's fields. + Adds application provided data. + Latitude value. + Longitude value. + The name displayed as a label. + Analytical value. - This method is for internal use only. + Use this method if the is set to ApplicationData. - + - Generates the file (.cs or .vb) that contains the report source code. + Adds a spatial/analytical value pair to the list. - Name of the file. + The spatial value. + The analytical value. - Use this method to generate the report source code. This code can be attached to your project. - In this case, you will need to call the following code to run a report: - - SimpleListReport report = new SimpleListReport(); - report.RegisterData(your_dataset); - report.Show(); - + Use this method if the is set to ShpFile. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Calculates an expression and returns the result. + Initializes a new instance of the class. - The expression to calculate. - If report is running, returns the result of calculation. - Otherwise returns null. - - The expression may be any valid expression such as "1 + 2". The expression - is calculated in the report script's ReportScript class instance context, - so you may refer to any objects available in this context: private fields, - methods, report objects. - - + - Calculates an expression and returns the result. + Represents a pair of double coordinates that defines a constituent point. - The expression to calculate. - The value of currently printing object. - If report is running, returns the result of calculation. - Otherwise returns null. - - Do not call this method directly. Use the Calc(string expression) method instead. - - + - Returns an expression value. + Gets or sets the X-coordinate of a point. - The expression. - The value of currently printing object. - Returns the result of calculation. - - This method is for internal use only, do not call it directly. - - + - Invokes the script event handler with given name. + Gets or sets the Y-coordinate of a point. - The name of the script method. - The method parameters. - + - Gets the data column's value. Automatically converts null value to 0, false or "" - depending on the column type. + Creates a new instance of the class with specified coordinates. - The name of the data column including the datasource name. - If report is running, returns the column value. Otherwise returns null. - - The return value of this method does not depend on the property. - - - - string employeeName = (string)report.GetColumnValue("Employees.FirstName"); - - + X coordinate. + Y coordinate. - + - Gets the data column's value. This method does not convert null values. + Specifies the position of a scale control inside the map. - The name of the data column including the datasource name. - If report is running, returns the column value. - Otherwise returns null. - + - Gets the report parameter with given name. + The scale is displayed at top left corner. - The name of the parameter. - The object if found, otherwise null. - - To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - - + - Gets a value of the parameter with given name. + The scale is displayed at top center side. - The name of the parameter. - The parameter's value if found, otherwise null. - - To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - - + - Sets the parameter's value. + The scale is displayed at top right corner. - The name of the parameter. - Value to set. - - Use this method to pass a value to the parameter that you've created in the "Data" window. - Such parameter may be used everythere in a report; for example, you can print its value - or use it in expressions. - You should call this method after the report was loaded and before you run it. - To access a nested parameter, use the "." separator: "MainParameter.NestedParameter" - - This method will create the parameter if it does not exist. - - - This example shows how to pass a value to the parameter with "MyParam" name: - - // load the report - report1.Load("report.frx"); - // setup the parameter - report1.SetParameterValue("MyParam", 10); - // show the report - report1.Show(); - - - + - Gets a value of the system variable with specified name. + The scale is displayed at middle left side. - Name of a variable. - The variable's value if found, otherwise null. - + - Gets a value of the total with specified name. + The scale is displayed at middle right side. - Name of total. - The total's value if found, otherwise 0. - This method converts null values to 0 if the property is set to true. - Use the method if you don't want the null conversion. - - + - Gets a value of the total with specified name. + The scale is displayed at bottom left corner. - Name of total. - The total's value if found, otherwise null. - + - Gets the datasource with specified name. + The scale is displayed at bottom center side. - Alias name of a datasource. - The datasource object if found, otherwise null. - - - - + - Aborts the report execution. + The scale is displayed at bottom right corner. - - + + + The base class for scale-type controls such as and . + - - + + + Gets or sets the border. + - + - Updates the report component's styles. + Gets or sets the fill. - - Call this method if you change the collection. - - + - Sets prepared pages. + Gets or sets the title font. - - + - This method fires the StartReport event and the script code connected - to the StartReportEvent. + Gets or sets the title text color. - + - This method fires the FinishReport event and the script code connected - to the FinishReportEvent. + Gets or sets the title text. - - + + + Gets or sets the font. + - - + + + Gets or sets the text color. + - + - Saves the report to a stream. + Gets or sets the border color. - The stream to save to. - + - Saves the report to a file. + Gets or sets the location of the scale. - The name of the file to save to. - + - Loads report from a stream. + Gets or sets the visibility of a scale. - The stream to load from. - - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in the - property before loading the report. In this case the report will load silently. - - + - Loads the report from a file. + Copies the contents of another ScaleBase. - The name of the file to load from. - - When you try to load the password-protected report, you will be asked - for a password. You also may specify the password in the - property before loading the report. In this case the report will load silently. - + The ScaleBase instance to copy the contents from. - + - Loads the report from a string. + Serializes the scale. - The string that contains a stream in UTF8 or Base64 encoding. + Writer object. + Scale property name. + Another ScaleBase to compare with. + + This method is for internal use only. + - + - Saves the report to a string. + Gets the size of the scale, in pixels. - The string that contains a stream. + The SizeF structure containing the size of the object. - + - Saves the report to a string using the Base64 encoding. + Draws the object. - The string that contains a stream. + Draw parameters. + Parent map object. - + - Creates the report instance and loads the report from a stream. + Initializes a new instance of the class. - The stream to load from. - The new report instance. - + - Creates the report instance and loads the report from a file. + The base class for shape objects such as , and . - The name of the file to load from. - The new report instance. - + - Creates the report instance and loads the report from a string. + Gets or sets the shape visibility. - The string that contains a stream in UTF8 encoding. - The new report instance. - + - Registers the application dataset with all its tables and relations to use it in the report. + Gets or sets a value indicating that custom shape style is used. - The application data. - If you register more than one dataset, use the method. + If this property is false, the layer's DefaultShapeStyle is used. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1); - - - + - Registers the application dataset with all its tables and relations to use it in the report and enables all its tables. + Gets a custom shape style. - The application data. - The boolean value indicating whether all tables should be enabled. - If you register more than one dataset, use the method. + To use this property, first set the property to true. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, true); - - - + - Registers the application dataset with specified name. + Gets or sets the center point X offset. - The application data. - The name of the data. - Use this method if you register more than one dataset. You may specify any value - for the name parameter: it is not displayed anywhere in the designer and used only - to load/save a report. The name must be persistent and unique for each registered dataset. + Use this property to adjust the label's position. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, "NorthWind"); - - - + - Registers the application dataset with specified name and enables all its tables. + Gets or sets the center point Y offset. - The application data. - The name of the data. - The boolean value indicating whether all tables should be enabled. - Use this method if you register more than one dataset. You may specify any value - for the name parameter: it is not displayed anywhere in the designer and used only - to load/save a report. The name must be persistent and unique for each registered dataset. + Use this property to adjust the label's position. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1, "NorthWind", true); - - - + - Registers the application data table to use it in the report. + Gets or sets the shape X offset. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(dataSet1.Tables["Orders"], "Orders"); - - + + Use this property to adjust the shape position. + - + - Registers the application data view to use it in the report. + Gets or sets the shape Y offset. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myDataView, "OrdersView"); - - + + Use this property to adjust the shape position. + - + - Registers the application data relation to use it in the report. + Gets or sets the scale factor for this shape. - The application data. - The name of the data. - You may specify any value for the name parameter: it is not displayed anywhere - in the designer and used only to load/save a report. The name must be persistent - and unique for each registered relation. + Use this property to adjust the shape size. - - - report1.Load("report.frx"); - report1.RegisterData(myDataRelation, "myRelation"); - - - + - Obsolete. Registers the application business object to use it in the report. + Gets or sets the spatial data associated with this shape. - Application data. - Name of the data. - Not used. - Maximum nesting level of business objects. - - This method is obsolete. Use the method instead. - - + - Registers the application business object to use it in the report. + Gets or sets the value. - Application data. - Name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myBusinessObject, "Customers"); - - - + - Registers the application business object to use it in the report. + Gets a reference to the parent Map object. - Application data. - Name of the data. - Maximum nesting level of business objects. - - This method creates initial datasource with specified nesting level. It is useful if - you create a report in code. In most cases, you don't need to specify the nesting level - because it may be selected in the designer's "Choose Report Data" dialog. - - + - Registers the application cube link to use it in the report. + Gets a reference to the parent Layer object. - The application data. - The name of the data. - - - report1.Load("report.frx"); - report1.RegisterData(myCubeLink, "Orders"); - - - + + + + - Prepares the report. + Draws the shape. - true if report was prepared succesfully. + Object that provides a data for paint event. - + - Prepares the report. + Draws the label. - Specifies whether the new report should be added to a - report that was prepared before. - true if report was prepared succesfully. - - Use this method to merge prepared reports. - - This example shows how to merge two reports and preview the result: - - Report report = new Report(); - report.Load("report1.frx"); - report.Prepare(); - report.Load("report2.frx"); - report.Prepare(true); - report.ShowPrepared(); - - + Object that provides a data for paint event. - + - For internal use only. + Checks if the shape is under cursor. + The cursor coordinates. + true if the cursor is over the shape. - + - For internal use only. + Reduces the number of points in the shape. + The accuracy value. - + + + + - Refresh the current report. + Initializes a component before running a report. - - Call this method in the Click or MouseUp event handler of a report object to refresh - the currently previewed report. Report will be generated again, but without dialog forms. - - + - Refresh prepared report after intercative actions. + Finalizes a component before running a report. - + - Prepare page + Saves the state of this component. - - + - Exports a report. Report should be prepared using the method. + Restores the state of this component. - The export filter. - Stream to save export result to. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Exports a report. Report should be prepared using the method. + Initializes a new instance of the class. - The export filter. - File name to save export result to. - + - Saves the prepared report. Report should be prepared using the method. + Holds the list of objects of type. - File name to save to. - + - Saves the prepared report. Report should be prepared using the method. + Gets or sets the element at the specified index. - Stream to save to. + Index of an element. + The element at the specified index. - + - Loads the prepared report from a .fpx file. + Initializes a new instance of the class with default settings. - File name to load form. - + - Loads the prepared report from a .fpx file. + Initializes a new instance of the class with specified owner. - Stream to load from. - + - Initializes a new instance of the class with default settings. + Represents a line shape. - + + + + + + + + + + - Ensure that static constructor is called. + Initializes a new instance of the class. - + - Create name for all unnamed elements with prefix and start with number + Represents the spatial data of a shape. - Prefix for name - Number from which to start - + - Base class for all report objects. + Copies contents from another spatial data object. + The object to copy contents from. - + - This event occurs when the user moves the mouse over the object in the preview window. + Compares two spatial data objects. + The spatial object to compare with. + true if spatial objects are identical. - + - This event occurs when the user releases the mouse button in the preview window. + Gets a value by its key. + The key of value. + The value. - + - This event occurs when the user clicks the mouse button in the preview window. + Sets a value by its key. + The key of value. + The value. - + - This event occurs when the mouse enters the object's bounds in the preview window. + Gets a list of keys. + The list of keys. - + - This event occurs when the mouse leaves the object's bounds in the preview window. + Creates a new instance of the class. - + - Copies event handlers from another similar object. + Represents the style of a shape. - The object to copy handlers from. - + - This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Gets or sets the border color. - Event data. - + - This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Gets or sets the border style. - Event data. - + - This method fires the MouseDown event and the script code connected to the MouseDownEvent. + Gets or sets the border width. - Event data. - + - This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. + Gets or sets the fill color. - Event data. - + - This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. + Gets or sets the font. - Event data. - + - This method is fired when the user scrolls the mouse in the preview window. + Gets or sets the text color. - Event data. - - - - - - - - - - - - - + - Assigns a format from another, similar object. + Gets or sets the point size, in pixels. - Source object to assign a format from. - - - - - - - + - Draws the object's markers. + Copies contents from another similar object. - Draw event arguments. + The object to copy the contents from. - + - Draws the object's markers. + Initializes a new instance of the class. - Draw event arguments. - Marker style - - - - - - - - - - + - This event occurs before the object is added to the preview pages. + Represents a set of size ranges used to draw points based on analytical value. - + - This event occurs after the object was added to the preview pages. + Gets the list of ranges. - + - This event occurs after the object was filled with data. + Gets or sets the number of ranges. - + - This event occurs when the user clicks the object in the preview window. + Gets or sets the start size. - + - Gets or sets a value that determines if the object can be printed on the printer. + Gets or sets the end size. - - Object with Printable = false is still visible in the preview window, but not on the prinout. - If you want to hide an object in the preview, set the property to false. - - + - Gets or sets a value that determines if the object can be exported. + Gets or sets ranges as a string. - + - Gets or sets an object's border. + Copies the contents of another SizeRanges. + The SizeRanges instance to copy the contents from. - + - Gets or sets an object's fill. + Gets a size associated with given analytical value. - - The fill can be one of the following types: , , - , . - To set the solid fill color, use the simpler property. - - This example shows how to set the new fill and change its properties: - - textObject1.Fill = new SolidFill(Color.Green); - (textObject1.Fill as SolidFill).Color = Color.Red; - - + The analytical value. + The size associated with this value, or 0 if no association found. - + - Gets or sets the fill color in a simple manner. + Initializes a new instance of the class. - - This property can be used in a report script to change the fill color of the object. It is - equivalent to: reportComponent1.Fill = new SolidFill(color); - - + - Gets or sets a bookmark expression. + Represents a single size range. - - This property can contain any valid expression that returns a bookmark name. This can be, for example, - a data column. To navigate to a bookmark, you have to use the property. - - + - Gets or sets a hyperlink. + Gets or sets size of the range. - - The hyperlink is used to define clickable objects in the preview. - When you click such object, you may navigate to the external url, the page number, - the bookmark defined by other report object, or display the external report. - Set the Kind property of the hyperlink to select appropriate behavior. - Usually you should set the Expression property of the hyperlink to - any valid expression that will be calculated when this object is about to print. - The value of an expression will be used for navigation. - If you want to navigate to - something fixed (URL or page number, for example) you also may set the Value - property instead of Expression. - - + - Determines if the object can grow. + Gets or sets start value of the range. - - This property is applicable to the bands or text objects that can contain several text lines. - If the property is set to true, object will grow to display all the information that it contains. - - + - Determines if the object can shrink. + Gets or sets end value of the range. - - This property is applicable to the bands or text objects that can contain several text lines. - If the property is set to true, object can shrink to remove the unused space. - - + - Determines if the object must grow to the band's bottom side. + Copies the contents of another SizeRange. - - If the property is set to true, object grows to the bottom side of its parent. This is useful if - you have several objects on a band, and some of them can grow or shrink. - + The SizeRange instance to copy the contents from. - + - Gets or sets a shift mode of the object. + Initializes a new instance of the class. - - See enumeration for details. - - + - Gets or sets the style name. + Initializes a new instance of the class with a specified parameters. - - Style is a set of common properties such as border, fill, font, text color. The Report - has a set of styles in the property. - + The size of the range. + The start value of the range. + The end value of the range. - + - Gets or sets a style name that will be applied to even band rows. + Represents the matrix object that is used to print pivot table (also known as cross-tab). - Style with this name must exist in the collection. + The matrix consists of the following elements: columns, rows and data cells. Each element is + represented by the descriptor. The class is used + for columns and rows; the is used for data cells. + The property holds three collections of descriptors - Columns, + Rows and Cells. + To create the matrix in a code, you should perform the following actions: + + + create an instance of the MatrixObject and add it to the report; + + + create descriptors for columns, rows and cells and add it to the + collections inside the property; + + + call the method to create the matrix template + that will be used to create a result; + + + modify the matrix template (change captions, set the visual appearance). + + + To connect the matrix to a datasource, use the property. If + this property is not set, the result matrix will be empty. In this case you may use + the event handler to fill the matrix. + This example demonstrates how to create a matrix in a code. + + // create an instance of MatrixObject + MatrixObject matrix = new MatrixObject(); + matrix.Name = "Matrix1"; + // add it to the report title band of the first report page + matrix.Parent = (report.Pages[0] as ReportPage).ReportTitle; + + // create two column descriptors + MatrixHeaderDescriptor column = new MatrixHeaderDescriptor("[MatrixDemo.Year]"); + matrix.Data.Columns.Add(column); + column = new MatrixHeaderDescriptor("[MatrixDemo.Month]"); + matrix.Data.Columns.Add(column); + + // create one row descriptor + MatrixHeaderDescriptor row = new MatrixHeaderDescriptor("[MatrixDemo.Name]"); + matrix.Data.Rows.Add(row); + + // create one data cell + MatrixCellDescriptor cell = new MatrixCellDescriptor("[MatrixDemo.Revenue]", MatrixAggregateFunction.Sum); + matrix.Data.Cells.Add(cell); + + // connect matrix to a datasource + matrix.DataSource = Report.GetDataSource("MatrixDemo"); + + // create the matrix template + matrix.BuildTemplate(); + + // change the style + matrix.Style = "Green"; + + // change the column and row total's text to "Grand Total" + matrix.Data.Columns[0].TemplateTotalCell.Text = "Grand Total"; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + + - + - Gets or sets a style name that will be applied to this object when the mouse pointer is over it. + This property is not relevant to this class. - - Style with this name must exist in the collection. - - + - Gets or sets a value that determines which properties of the even style to use. + This property is not relevant to this class. - - Usually you will need only the Fill property of the even style to be applied. If you want to - apply all style settings, set this property to StylePriority.UseAll. - - + - Gets or sets a value that determines where to print the object. + This property is not relevant to this class. - - See the enumeration for details. - - + - Gets or sets a script event name that will be fired before the object will be printed in the preview page. + This property is not relevant to this class. - + - Gets or sets a script event name that will be fired after the object was printed in the preview page. + This property is not relevant to this class. - + - Gets or sets a script event name that will be fired after the object was filled with data. + This property is not relevant to this class. - - - Gets or sets a script event name that will be fired when the user click the object in the preview window. - + + - - - Determines if the object has custom border and use only Border.Width, Border.Style and - Border.Color properties. - - - This flag is used to disable some toolbar buttons when such object is selected. Applicable to the - ShapeObject and LineObject. - + + - - - Determines if the object uses the Border. - - - This flag is used to disable some toolbar buttons when such object is selected. - + + - - - Determines if the object uses the fill. - - - This flag is used to disable some toolbar buttons when such object is selected. - + + - - - Gets or sets a value indicates that object should not be added to the preview. - + + - - - Determines if serializing the Style property is needed. - - - The Style property must be serialized last. Some ancestor classes may turn off the standard Style - serialization and serialize it by themselves. - + + - - - Determines if an object can provide the hyperlink value automatically. - - - This flag is used in complex objects such as Matrix or Chart. These objects can provide - a hyperlink value automatically, depending on where you click. - + + - - - Gets an object's parent band. - + + - - - Gets an object's parent data band. - + + - - - Gets or sets an object's cursor shape. - - - This property is used in the preview mode. - + + - - - Gets or sets a script event name that will be fired when the user - moves the mouse over the object in the preview window. - + + - + - Gets or sets a script event name that will be fired when the user - releases the mouse button in the preview window. + Allows to fill the matrix in code. + + In most cases the matrix is connected to a datasource via the + property. When you run a report, the matrix is filled with datasource values automatically. + Using this event, you can put additional values to the matrix or even completely fill it + with own values (if is set to null. To do this, call the + Data.AddValue method. See the + method for more details. + + This example shows how to fill a matrix with own values. + + // suppose we have a matrix with one column, row and data cell. + // provide 3 one-dimensional arrays with one element in each to the AddValue method + Matrix1.Data.AddValue( + new object[] { 1996 }, + new object[] { "Andrew Fuller" }, + new object[] { 123.45f }); + Matrix1.Data.AddValue( + new object[] { 1997 }, + new object[] { "Andrew Fuller" }, + new object[] { 21.35f }); + Matrix1.Data.AddValue( + new object[] { 1997 }, + new object[] { "Nancy Davolio" }, + new object[] { 421.5f }); + + // this code will produce the following matrix: + // | 1996 | 1997 | + // --------------+--------+--------+ + // Andrew Fuller | 123.45| 21.35| + // --------------+--------+--------+ + // Nancy Davolio | | 421.50| + // --------------+--------+--------+ + + - + - Gets or sets a script event name that will be fired when the user - clicks the mouse button in the preview window. + Allows to modify the prepared matrix elements such as cells, rows, columns. - + - Gets or sets a script event name that will be fired when the - mouse enters the object's bounds in the preview window. + Allows to modify the prepared matrix elements such as cells, rows, columns. - + - Gets or sets a script event name that will be fired when the - mouse leaves the object's bounds in the preview window. + Gets or sets a value that determines whether the matrix must calculate column/row sizes automatically. - - - - + - Applies the style settings. + Gets or sets a value that determines how to print multiple data cells. - Style to apply. + + This property can be used if matrix has two or more data cells. Default property value + is false - that means the data cells will be stacked. + - + - Saves the current style. + Gets or sets a value indicating that the side-by-side cells must be kept together on the same page. - + - Restores the current style. + Gets or sets a data source. + + When you create the matrix in the designer by drag-drop data columns into it, + this property will be set automatically. However you need to set it if you create + the matrix in code. + - + - Draws the object's background. + Gets the row filter expression. - Draw event arguments. - - - + + This property can contain any valid boolean expression. If the expression returns false, + the corresponding data row will be skipped. + - + - Determines if the object is visible on current drawing surface. + Gets or sets a value indicating whether to show a title row. - Draw event arguments. - - - - + - This method fires the Click event and the script code connected to the ClickEvent. + Gets or sets a matrix style. - Event data. - - - - + - Checks if there are any listeners to the Click event. + Gets or sets even style priority for matrix cells. - + - Initializes the object before running a report. + Gets or sets a script method name that will be used to handle the + event. - This method is used by the report engine, do not call it directly. + See the event for more details. - + - Performs a finalization after the report is finished. + Gets or sets a script method name that will be used to handle the + event. - This method is used by the report engine, do not call it directly. + See the event for more details. - + - Saves the object's state before printing it. + Gets or sets a script method name that will be used to handle the + event. - This method is called by the report engine before processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should save any object properties that may be changed during the object printing. - The standard implementation saves the object's bounds, visibility, bookmark and hyperlink. + See the event for more details. - + - Restores the object's state after printing it. + Gets the object that holds the collection of descriptors used + to build a matrix. - This method is called by the report engine after processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should restore the object properties that were saved by the method. + See the class for more details. - + - Calculates the object's height. + Gets or sets array of values that describes the currently printing column. - Actual object's height, in pixels. - Applicable to objects that contain several text lines, such as TextObject. Returns the height needed - to display all the text lines. - - - - - Gets the data from a datasource that the object is connected to. - - - This method is called by the report engine before processing the object. - Do not call it directly. You may override it if you are developing a new FastReport component. - In this method you should get the data from a datasource that the object is connected to. + Use this property when report is running. It can be used to highlight matrix elements + depending on values of the currently printing column. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition. Use the Matrix.ColumnValues to + refer to the value you need to analyze. Note: these values are arrays of System.Object, + so you need to cast it to actual type before making any comparisons. Example of highlight + condition: (int)Matrix1.ColumnValues[0] == 2000. + + + - - - - - - This method fires the BeforePrint event and the script code connected to the BeforePrintEvent. - - Event data. - - - - This method fires the AfterPrint event and the script code connected to the AfterPrintEvent. - - Event data. - - - - This method fires the AfterData event and the script code connected to the AfterDataEvent. - - Event data. - - - - Initializes a new instance of the class with default settings. - - - + - Represents a report page. + Gets or sets array of values that describes the currently printing row. - To get/set a paper size and orientation, use the , - and properties. Note that paper size is measured in millimeters. - Report page can contain one or several bands with report objects. Use the , - , , , - , , properties - to get/set the page bands. The property holds the list of data bands or groups. - Thus you may add several databands to this property to create master-master reports, for example. - - Report page can contain bands only. You cannot place report objects such as TextObject on a page. - + Use this property when report is running. It can be used to highlight matrix elements + depending on values of the currently printing row. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition. Use the Matrix.RowValues to + refer to the value you need to analyze. Note: these values are arrays of System.Object, + so you need to cast it to actual type before making any comparisons. Example of highlight + condition: (string)Matrix1.RowValues[0] == "Andrew Fuller". + + + - - This example shows how to create a page with one ReportTitleBand and DataBand bands and add - it to the report. - - ReportPage page = new ReportPage(); - // set the paper in millimeters - page.PaperWidth = 210; - page.PaperHeight = 297; - // create report title - page.ReportTitle = new ReportTitleBand(); - page.ReportTitle.Name = "ReportTitle1"; - page.ReportTitle.Height = Units.Millimeters * 10; - // create data band - DataBand data = new DataBand(); - data.Name = "Data1"; - data.Height = Units.Millimeters * 10; - // add data band to the page - page.Bands.Add(data); - // add page to the report - report.Pages.Add(page); - - - + - Gets or sets the paper source for the first printed page. + Gets or sets the index of currently printing column. - - This property represents the paper source (printer tray) that will be used when printing - the first page. To set the source for other pages, use the property. - - - Note: This property uses the raw number of the paper source. - + This property may be used to print even columns with alternate color. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition that uses the Matrix.ColumnIndex, + for example: Matrix1.ColumnIndex % 2 == 1. + + + - + - Gets or sets the paper source for all printed pages except the first one. + Gets or sets the index of currently printing row. - - This property represents the paper source (printer tray) that will be used when printing - all pages except the first one. To set source for the first page, use - the property. - - - Note: This property uses the raw number of the paper source. - + This property may be used to print even rows with alternate color. To do this: + + + select the cell that you need to highlight; + + + click the "Highlight" button on the "Text" toolbar; + + + add a new highlight condition that uses the Matrix.RowIndex, + for example: Matrix1.RowIndex % 2 == 1. + + + - - - Gets or sets the printer duplex mode that will be used when printing this page. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - + + - - - This property is not relevant to this class. - + + - + - + - Gets a value indicating that imperial units (inches, hundreths of inches) are used. + Creates or updates the matrix template. + + Call this method after you modify the matrix descriptors using the + object's properties. + - - - - + - + - + - + - + - + - + - - - Invokes the object's editor. - - - - - This event occurs when the report engine starts this page. - - - + - This event occurs when the report engine finished this page. + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Event data. - + - This event occurs when the report engine is about to print databands in this page. + This method fires the ModifyResult event and the script code connected to the ModifyResultEvent. + Event data. - + - Gets or sets a width of the paper, in millimeters. + This method fires the AfterTotals event and the script code connected to the AfterTotalsEvent. + Event data. - + - Gets or sets a height of the paper, in millimeters. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + + This is a shortcut method to call the matrix Data.AddValue. + See the method for more details. + - + - Gets or sets the raw index of a paper size. + Gets the value of the data cell with the specified index. + Zero-based index of the data cell. + The cell's value. - This property stores the RawKind value of a selected papersize. It is used to distiguish - between several papers with the same size (for ex. "A3" and "A3 with no margins") used in some - printer drivers. - It is not obligatory to set this property. FastReport will select the - necessary paper using the PaperWidth and PaperHeight values. + Use this method in the cell's expression if the cell has custom totals + (the total function is set to "Custom"). The example: + Matrix1.Value(0) / Matrix1.Value(1) + will return the result of dividing the first data cell's value by the second one. - + - Gets or sets a value indicating whether the page has unlimited height. + Initializes a new instance of the class. - + - Gets or sets the value indicating whether the unlimited page should be printed on roll paper. + Specifies the aggregate function used in the . - + - Gets or sets a value indicating whether the page has unlimited width. + No aggregates are used. - + - Get or set the current height of unlimited page. + Specifies the sum of values. - + - Get or set the current width of unlimited page. + Specifies the minimum of values. - + - Gets the current page height in pixels. + Specifies the maximum of values. - + - Gets the current page width in pixels. + Specifies the average of values. - + - Gets or sets a value indicating that page should be in landscape orientation. + Specifies the count of values. - - When you change this property, it will automatically swap paper width and height, as well as paper margins. - - + - Gets or sets the left page margin, in millimeters. + Specifies the custom function. - + - Gets or sets the top page margin, in millimeters. + Determines how matrix percents are calculated. - + - Gets or sets the right page margin, in millimeters. + Do not calculate percent value. - + - Gets or sets the bottom page margin, in millimeters. + Calculate percent of the column total value. - + - Gets or sets a value indicating that even pages should swap its left and right margins when - previewed or printed. + Calculate percent of the row total value. - + - Gets the page columns settings. + Calculate percent of the grand total value. - + - Gets or sets the page border that will be printed inside the page printing area. + The descriptor that is used to describe one matrix data cell. + + The class is used to define one data cell of the matrix. + The key properties are and . + To set visual appearance of the data cell, use the + property. + The collection of descriptors used to represent the matrix data cells is stored + in the MatrixObject.Data.Cells property. + - + - Gets or sets the page background fill. + Gets or sets an aggregate function used to calculate totals for this cell. - + - Gets or sets the page watermark. + Gets or sets a value that determines how to calculate the percent value for this cell. - - To enabled watermark, set its Enabled property to true. - - - - Gets or sets a value indicating that ReportTitle band should be printed before the - PageHeader band. - + + - + + + + - Gets or sets an outline expression. + Initializes a new instance of the class + with default settings. - - For more information, see property. - - + - Gets or sets a value indicating whether to start to print this page on a free space of the previous page. + Initializes a new instance of the class + with specified expression. - - This property can be used if you have two or more pages in the report template. - + The descriptor's expression. - + - Gets or sets a value indicating that FastReport engine must reset page numbers before printing this page. + Initializes a new instance of the class + with specified expression and aggregate function. - - This property can be used if you have two or more pages in the report template. - + The descriptor's expression. + The aggregate function. - + - Gets or sets a value indicating whether the page has extra width in the report designer. + Initializes a new instance of the class + with specified expression, aggregate function, and a percent. - - This property may be useful if you work with such objects as Matrix and Table. - + The descriptor's expression. + The aggregate function. + The percent setting. - + - Gets or sets a value indicating whether this page will start on an odd page only. + Represents a collection of matrix data descriptors used in the . - - This property is useful to print booklet-type reports. Setting this property to true - means that this page will start to print on an odd page only. If necessary, an empty page - will be added to the prepared report before this page will be printed. - - + - Uses this page as a back page for previously printed pages. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Gets or sets a report title band. + Adds the specified descriptors to the end of this collection. + Array of descriptors to add. - + - Gets or sets a report summary band. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Gets or sets a page header band. + Inserts a descriptor into this collection at the specified index. + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Gets or sets a page footer band. + Removes the specified descriptor from the collection. + Descriptor to remove. - + - Gets or sets a column header band. + Returns the zero-based index of the first occurrence of a descriptor. + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - + - Gets or sets a column footer band. + Determines whether a descriptor is in the collection. + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - + - Gets or sets an overlay band. + Copies the elements of this collection to a new array. + An array containing copies of this collection elements. - + + + + + + + - Gets the collection of data bands or group header bands. + Contains a set of properties and methods to hold and manipulate the matrix descriptors. - The Bands property holds the list of data bands or group headers. - Thus you may add several databands to this property to create master-master reports, for example. + This class contains three collections of descriptors such as , + and . Use collections' methods to add/remove + descriptors. When you are done, call the + method to refresh the matrix. + To fill a matrix in code, use the AddValue method. - + - Gets or sets the page guidelines. + Gets a collection of column descriptors. - This property hold all vertical guidelines. The horizontal guidelines are owned by the bands (see - property). + Note: after you change something in this collection, call the + method to refresh the matrix. - + - Gets or sets the reference to a parent SubreportObject that owns this page. + Gets a collection of row descriptors. - This property is null for regular report pages. See the for details. + Note: after you change something in this collection, call the + method to refresh the matrix. - + - Gets or sets a script event name that will be fired when the report engine starts this page. + Gets a collection of data cell descriptors. + + Note: after you change something in this collection, call the + method to refresh the matrix. + - + - Gets or sets a script event name that will be fired when the report engine finished this page. + Clears all descriptors. - + - Gets or sets a script event name that will be fired when the report engine is about - to print databands in this page. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + + The number of elements in an array passed to this method must be the same as + a number of descriptors in the appropriate collection. That is, if your matrix + has one column, two row and one cell descriptors (in Columns, Rows and + Cells collections respectively), you have to pass one-element array for the + columnValues param, two-element array for the rowValues and one-element + array for the cellValues. + + This example demonstrates how to fill a simple matrix that contains one column, + row and cell. + + MatrixObject matrix; + matrix.Data.AddValue( + new object[] { 1996 }, + new object[] { "Andrew Fuller" }, + new object[] { 123.45f }); + + // this will produce the following result: + // | 1996 | + // --------------+----------+ + // Andrew Fuller | 123.45| + // --------------+----------+ + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - This method fires the StartPage event and the script code connected to the StartPageEvent. + Adds a value in the matrix. + Array of column values. + Array of row values. + Array of data values. + Datasource row index. + + See the method for more details. + - + - This method fires the FinishPage event and the script code connected to the FinishPageEvent. + Gets a value with specified column, row and cell indicies. + Index of a column. + Index of a row. + Index of a cell. + The value of a cell. - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Sets the cell's value. + Index of a column. + Index of a row. + The new value. - + - Initializes a new instance of the class with default settings. + The base class for matrix element descriptors such as and + . - + - This class contains settings that will be applied to the Report component. + Gets or sets an expression which value will be used to fill the matrix. + + Expression may be any valid expression. Usually it's a data column: + [DataSource.Column]. + - + - Occurs before displaying a progress window. + Gets or sets the template column bound to this descriptor. + + This property is for internal use; usually you don't need to use it. + - + - Occurs after closing a progress window. + Gets or sets the template row bound to this descriptor. + + This property is for internal use; usually you don't need to use it. + - + - Occurs after printing a report. + Gets or sets the template cell bound to this descriptor. + + Using this property, you may access the matrix cell which is bound to + this descriptor. It may be useful to change the cell's appearance. + + Before using this property, you must initialize the matrix descriptors by + calling the method. + + + + + MatrixObject matrix; + // change the fill color of the first matrix cell + matrix.Data.Cells[0].TemplateCell.Fill = new SolidFill(Color.Red); + + - + - Occurs when progress state is changed. + Assigns values from another descriptor. + Descriptor to assign values from. - + + + + + + + - Gets or sets a value that determines whether to show the progress window - when perform time-consuming operations such as run, print, export. + Represents a collection of matrix header descriptors used in the . - + - Gets or sets a value that determines whether to show the information about - the report performance (report generation time, memory consumed) in the - lower right corner of the preview window. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Occurs when database connection is about to open. - - Use this event to provide own connection string or user name/password to the connection - object that is about to open. - To provide own connection string, set the e.ConnectionString property. - In this case the new connection string will be used. - To provide own user name/password, set the e.UserName and e.Password properties. - You may ask these values in own login dialog. - This example shows how to provide username/password using own login dialog. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - using (MyLoginDialog dialog = new MyLoginDialog()) - { - if (dialog.ShowDialog() == DialogResult.OK) - { - e.UserName = dialog.UserName; - e.Password = dialog.Password; - } - } - } - - This example shows how to provide own connection string. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - e.ConnectionString = my_connection_string; - } - - + Adds the specified descriptors to the end of this collection. + + Array of descriptors to add. - + - Occurs after the database connection is established. + Adds a descriptor to the end of this collection. + Descriptor to add. + Index of the added descriptor. - + - Occurs when discovering the business object's structure. + Inserts a descriptor into this collection at the specified index. + The zero-based index at which value should be inserted. + The descriptor to insert. - + - Occurs when determining the kind of business object's property. + Removes the specified descriptor from the collection. + Descriptor to remove. - + - Occurs when discovering the structure of business object of ICustomTypeDescriptor type - with no instance specified. + Returns the zero-based index of the first occurrence of a descriptor. - - The event handler must return an instance of that type. - + The descriptor to locate in the collection. + The zero-based index of the first occurrence of descriptor within + the entire collection, if found; otherwise, -1. - + - Gets or sets the default script language. + Determines whether a descriptor is in the collection. + The descriptor to locate in the collection. + true if descriptor is found in the collection; otherwise, false. - + - Gets or sets the default paper size used when creating a new report. + Copies the elements of this collection to a new array. + An array containing copies of this collection elements. - + - Gets or sets a value indicating that the business object engine will use property values - when possible to discover the BO structure. + Gets the list of indices of terminal items of this header. + The list of indices. - + - Gets or sets the default path for root of PictureObject.ImageLocation path. + Gets the list of indices of terminal items of the header with specified address. + The address of a header. + The list of indices. - + - Initializes a new instance of the class. + Removes a header item with the address specified. + The address of a header. - + - Represents a RichText object that can display formatted text. + Gets an index of header with the address specified. - - Use the property to set the object's text. The text may include - the RTF formatting tags. - + The address of a header. + The index of header. - - + + + Gets an index of header with the address specified. If there is no such header item, it will be created. + + The address of a header. + The index of header. - + - + - + - Gets or sets the object's text. + The descriptor that is used to describe one element of the matrix header. - This property returns the formatted text with rtf tags. + The class is used to define one header element of the matrix + (either the column element or row element). The key properties are + , and . + To set visual appearance of the element, use the + property. To set visual appearance of the "total" element, use the + property. + The collection of descriptors used to represent the matrix header is stored + in the MatrixObject.Data.Columns and MatrixObject.Data.Rows properties. - + - Gets or sets a name of the data column bound to this control. + Gets or sets the sort order of header values. - Value must contain the datasource name, for example: "Datasource.Column". + This property determines how the values displayed in this element are sorted. The default sort + is ascending. - + - Gets the actual text start. + Gets or sets a value indicating that this element has associated "total" element. - This property is for internal use only; you should not use it in your code. + To access the matrix cell that is bound to the "Total" element, use the + property. It may be useful to change the + "Total" text by something else. + This example shows how to change the "Total" text of the total element. + + MatrixObject matrix; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + + - + - Gets the actual text length. + Gets or sets the value indicating whether the total values must be printed before the data. + + + + + Gets or sets a value indicating that the page break must be printed before this element. - This property is for internal use only; you should not use it in your code. + Page break is not printed before the very first element. - + - Gets or sets the break style. + Gets or sets a value that determines whether it is necessary to suppress totals + if there is only one value in a group. - - Set this property to true if you want editable rich text when you edit the prepared report page. + + + + Gets or sets the template column bound to the "total" element of this descriptor. + + + This property is for internal use; usually you don't need to use it. - + - Experimental feature for translation of RichText into report objects + Gets or sets the template row bound to the "total" element of this descriptor. + + This property is for internal use; usually you don't need to use it. + - - + + + Gets or sets the template cell bound to the "total" element of this descriptor. + + + This property may be useful to change the "Total" text by something else. + + Before using this property, you must initialize the matrix descriptors by + calling the method. + + + This example shows how to change the "Total" element. + + MatrixObject matrix; + matrix.Data.Rows[0].TemplateTotalCell.Text = "Grand Total"; + matrix.Data.Rows[0].TemplateTotalCell.Fill = new SolidFill(Color.Green); + + - + - + - - + + + Initializes a new instance of the class with + default settings. + - - + + + Initializes a new instance of the class with + specified expression. + + The descriptor's expression. - - + + + Initializes a new instance of the class with + specified expression and totals. + + The descriptor's expression. + Indicates whether to show the "total" element. - - + + + Initializes a new instance of the class with + specified expression, sort order and totals. + + The descriptor's expression. + Sort order used to sort header values. + Indicates whether to show the "total" element. - - + + + Updates HeaderWidth, HeaderHeight, BodyWidth, BodyHeight properties. + - - + + + Describes how the even style is applied to a matrix. + - - + + + The even style is applied to matrix rows. + - + - Initializes a new instance of the class with default settings. + The even style is applied to matrix columns. - + - Save RTF document to plain text stream + Represents the chart object based on Microsoft Chart control. + + FastReport uses Microsoft Chart library to display charts. This library is included + in .Net Framework 4.0. For .Net 3.5 it is available as a separate download here: + http://www.microsoft.com/downloads/details.aspx?FamilyID=130f7986-bf49-4fe5-9ca8-910ae6ea442c + This library requires .Net Framework 3.5 SP1. + To access Microsoft Chart object, use the property. It allows you + to set up chart appearance. For more information on available properties, refer to the + MS Chart documentation. + Chart object may contain one or several series. Each series is represented by two objects: + + + the Series that is handled by MS Chart. It is stored in the + Chart.Series collection; + + + the object that provides data for MS Chart series. + It is stored in the collection. + + + Do not operate series objects directly. To add or remove series, use + the and methods. These methods + handle Series and MSChartSeries in sync. + If you have a chart object on your Form and want to print it in FastReport, use + the method. + - + - This class represents a RTF run. + This property is not relevant to this class. - + - Insert paragraph into list of paragraphs + This property is not relevant to this class. - + - Insert row into list of paragraphs + This property is not relevant to this class. - + - This class represents a RTF properies. + This property is not relevant to this class. - + - This class parses an entiry RTF document. + This property is not relevant to this class. - + - + - + - - - RichText document object - + + - + - This class represents a RTF text paragraph. + Gets the collection of objects. - + - This class detect a RTF control sequences and text. + Gets a reference to the MS Chart object. - + - This class represents a RTF column description. + Gets or set Force automatically created series. - - + - Create RTF row + Gets or sets the data source. - - - + - Internal representation of RichText document + Gets or sets the filter expression. + + This filter will be applied to all series in chart. You may also use the series' + property to filter each series individually. + - + - Save RTF document to text stream + Gets or sets a value indicating that all series' data point should be aligned by its X value. + + Using this property is necessary to print stacked type series. These series must have + equal number of data points, and the order of data points must be the same for all series. + - + - This class represents a RTF document header. + Gets or set the data column or expression for automatically created series. - Refer to RTF-1.7 spec for detail description + In order to create auto-series, you need to define one series that will be used as a + template for new series, and set up the property. + The value of this property will be a name of new series. If there is no series + with such name yet, the new series will be added. - + - Parser of RTF header. + Gets or set the color for auto-series. - Return false on finish of header + If no color is specified, the new series will use the palette defined in the chart. - + - Represents the base class for the report style or the highlight condition. + Gets or sets sort order for auto-series. - + + + + - Gets or sets a value determines that the border must be applied. + Adds a new series. + The type of series. + The new MSChartSeries object. - + - Gets or sets a value determines that the fill must be applied. + Deletes a series at a specified index. + Index of series. - + - Gets or sets a value determines that the font must be applied. + Assigns chart appearance, series and data from the + System.Windows.Forms.DataVisualization.Charting.Chart object. + Chart object to assign data from. + + Use this method if you have a chart in your application and want to print it in FastReport. + To do this, put an empty MSChartObject in your report and execute the following code: + + report.Load("..."); + MSChartObject reportChart = report.FindObject("MSChart1") as MSChartObject; + reportChart.AssignChart(applicationChart); + report.Show(); + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets a value determines that the text fill must be applied. + Initializes a new instance of the with default settings. - + - Gets or sets a border. + Represents the small chart object (called sparkline) fully based on MSChartObject. - + + + + + + + - Gets or sets a fill. + Initializes a new instance of the with default settings. - + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + - Gets or sets a font. + Required designer variable. - + - Gets or sets a text fill. + Clean up any resources being used. + true if managed resources should be disposed; otherwise, false. - + - Initializes a new instance of the class with default settings. + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Assigns values from another source. + Required designer variable. - Source to assign from. - + - Deserializes the style. + Clean up any resources being used. - Reader object. - - This method is for internal use only. - + true if managed resources should be disposed; otherwise, false. - + - Serializes the style. + Required method for Designer support - do not modify + the contents of this method with the code editor. - Writer object. - - This method is for internal use only. - - + - SVG object + Specifies how the series points are sorted. - + - Gets or sets svg document + Points are not sorted. - + - Gets or sets ViewBox value + Points are sorted by X value. - + - Gets or sets AspectRatio value + Points are sorted by Y value. - - + + + Specifies the direction in which the series points are sorted. + - + - Gets or sets grayscale svg document + Points are sorted in ascending order. - + - Gets or sets a value indicating that the image should be displayed in grayscale mode. + Points are sorted in descending order. - - + + + Specifies how the series points are grouped. + - + - Returns SVG string + Points are not grouped. - - + + + Points are grouped by X value. + - - + + + Points are grouped by number specified in the . + - - + + + Points are grouped by Years. + - - + + + Points are grouped by Months. + - - + + + Points are grouped by Weeks. + - - + + + Points are grouped by Days. + - - + + + Points are grouped by Hours. + - + - Returns clone of this object + Points are grouped by Minutes. - - + - Sets svg object by SvgDocument + Points are grouped by Seconds. - SVG document - + - Sets svg object from specified path + Points are grouped by Milliseconds. - path to SVG file - + - Sets svg object from svg string + Specifies which pie value to explode. - SVG string - + - Initializes a new instance of the class with default settings. + Do not explode pie values. - + - Invokes the object's editor. + Explode the biggest value. - true if object was edited succesfully. - + - Represents a table row. + Explode the lowest value. - - Use the property to set the height of a row. If - property is true, the row will calculate its height automatically. - You can also set the and properties - to restrict the row's height. - - + - This property is not relevant to this class. + Explode the value specified in the property. - + - This property is not relevant to this class. + Specifies which data points to collect into one point. - + - This property is not relevant to this class. + Do not collect points. - + - This property is not relevant to this class. + Show top N points (N value is specified in the + property), collect other points into one. - - + + + Show bottom N points (N value is specified in the + property), collect other points into one. + - - + + + Collect points which have Y value less than specified + in the property. + - - + + + Collect points which have Y value less than percent specified + in the property. + - + - Gets or sets a height of the row, in pixels. + Collect points which have Y value greater than specified + in the property. + + + + + Collect points which have Y value greater than percent specified + in the property. + + + + + Represents a MS Chart series wrapper. - The row height cannot exceed the range defined by the - and properties. - To convert between pixels and report units, use the constants defined - in the class. + This class provides a data for MS Chart series. The series itself is stored inside the + MS Chart and is accessible via the property. + You don't need to create an instance of this class directly. Instead, use the + method. - + - Gets or sets the minimal height for this row, in pixels. + Gets os sets the data filter expression. + + The filter is applied for this series only. You can also use the + property to set a filter that will be applied to all + series in a chart. + - + - Gets or sets the maximal height for this row, in pixels. + Gets or set the data column or expression for automatically created series. + + In order to create auto-series, you need to define one series that will be used as a + template for new series, and set up the property. + The value of this property will be a name of new series. If there is no series + with such name yet, the new series will be added. + - + - Gets or sets a value determines if the row should calculate its height automatically. + Gets or sets the sort method used to sort data points. - The row height cannot exceed the range defined by the - and properties. + You have to specify the property as well. Data points in this series + will be sorted according selected sort criteria and order. - + - Gets the index of this row. + Gets or set Force automatically created series. - - + + + Gets or sets the sort order used to sort data points. + + + You have to specify the property as well. Data points in this series + will be sorted according selected sort criteria and order. + - + - Gets or sets the cell with specified index. + Gets or sets the group method used to group data points. - Column index. - The TableCell object. + + This property is mainly used when series is filled with data with several identical X values. + In this case, you need to set the property to XValue. All identical data points will be + grouped into one point, their Y values will be summarized. You can choose the summary function + using the property. + - + - Gets or sets the page break flag for this row. + Gets or sets the group interval. + + This value is used if property is set to Number. + - + - Gets or sets the number of rows to keep on the same page. + Gets or sets the function used to group data points. - - + + + Gets or sets the collect method used to collect several data points into one. + + + This instrument for data processing allows to collect several series points into one point. + The collected point will be displaed using the text specified in the + property and color specified in the property. + For example, to display top 5 values, set this property to TopN and specify + N value (5) in the property. + - - + + + Gets or sets the collect value used to collect several data points into one. + + + This property is used if the property is set to any value other than None. + - - + + + Gets or sets the text for the collected value. + - - + + + Gets or sets the color for the collected value. + + + If this property is set to Transparent (by default), the default palette color + will be used to display a collected point. + - - + + + Gets or sets the method used to explode values in pie-type series. + - - + + + Gets or sets the value that must be exploded. + + + This property is used if property is set + to SpecificValue. + - - + + + Gets or sets the data column or expression that returns the X value of data point. + - - + + + Gets or sets the data column or expression that returns the first Y value of data point. + - - + + + Gets or sets the data column or expression returns the second Y value of data point. + - - + + + Gets or sets the data column or expression returns the third Y value of data point. + - + - Initializes a new instance of the class. + Gets or sets the data column or expression returns the fourth Y value of data point. - + - Represents a table object that consists of several rows and columns. + Gets or sets the data column or expression that returns the color of data point. + + + + + Gets or sets the data column or expression returns the label value of data point. + + + + + Gets a reference to MS Chart Series object. - To add/remove columns, use the collection. To add/remove - rows, use the collection. To initialize a table with specified number of - columns and rows, use and properties. - To print a table in code, use the event. In the manual build - mode, you can use aggregate functions. The following functions available: - - - Aggregate function - Description - - - Sum(cell) - Calculates the sum of values in specified table cell. - - - Min(cell) - Calculates the minimum of values in specified table cell. - - - Max(cell) - Calculates the maximum of values in specified table cell. - - - Avg(cell) - Calculates the average of values in specified table cell. - - - Count(cell) - Calculates the number of repeats of a specified table cell. - - - To print aggregate value, place the aggregate function call in the table cell: - [Count(Cell2)]. + Use this property to set many options available for the Series object. These options + include: visual appearance, labels, marks, value types. Refer to the Microsoft Chart control + documentation to learn more. - + + + Gets a number of Y value per data point. + + + Number of Y values depends on series type. Most of series have only one Y value. Financial + series such as Stock and Candlestick, use four Y values. + + + + + This property is not relevant to this class. + + + - + - + - + - Allows to print table rows/columns dynamically. + Clears all data points in this series. - - This event is used to handle the table print process in a code. Using special methods - like , you can print specified rows/columns. - - First way is to repeat specified row(s) to get a table that will grow downwards. - To do this, you have to call the PrintRow method followed by the PrintColumns method. - - Another way is to repeat the specified column(s) to get a table that grows sidewards. - To do this, call the PrintColumn method followed by the PrintRows method. - - Finally, the third way is to repeat rows and columns. The table will grow downwards and - sidewards. To do this, call the PrintRow method followed by the PrintColumn - method (or vice versa). - - - - When you print a table row-by-row, you must call one of the PrintColumn, - PrintColumns methods right after the PrintRow method. - In the same manner, when you print a table column-by-column, call one of the - PrintRow, PrintRows methods right after the PrintColumn method. - If you ignore this rule you will get an exception. - - - - In this example, we will consider all three ways to print a table which has 3 rows and 3 columns. - Case 1: print a table downwards. - - // print table header (the first row) - Table1.PrintRow(0); - Table1.PrintColumns(); - // print table body (the second row) - for (int i = 0; i < 10; i++) - { - Table1.PrintRow(1); - Table1.PrintColumns(); - } - // print table footer (the third row) - Table1.PrintRow(2); - Table1.PrintColumns(); - - - Case 2: print a table sidewards. - - // print table header (the first column) - Table1.PrintColumn(0); - Table1.PrintRows(); - // print table body (the second column) - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - Table1.PrintRows(); - } - // print table footer (the third column) - Table1.PrintColumn(2); - Table1.PrintRows(); - - - Case 3: print a table downwards and sidewards. - - // print the first row with all its columns - Table1.PrintRow(0); - // print header column - Table1.PrintColumn(0); - // print 10 data columns - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - } - // print footer column - Table1.PrintColumn(2); - - // print table body (the second row) - for (int i = 0; i < 10; i++) - { - // print data row with all its columns - Table1.PrintRow(1); - Table1.PrintColumn(0); - for (int j = 0; j < 10; j++) - { - Table1.PrintColumn(1); - } - Table1.PrintColumn(2); - } - - // print table footer (the third row) - Table1.PrintRow(2); - // again print all columns in the table footer - Table1.PrintColumn(0); - for (int i = 0; i < 10; i++) - { - Table1.PrintColumn(1); - } - Table1.PrintColumn(2); - - - + - Gets or sets a script method name that will be used to handle the - event. + Adds a data point with specified X and Y values. + X value. + Array of Y values. - If you use this event, you must handle the table print process manually. - See the event for details. + Note: number of values in the yValues parameter must be the same as value returned + by the property. - + + + + - Determines whether to manage cell spans automatically during manual build. + Creates a new instance of the class with default settings. - - The default value for this property is true. If you set it to false, you need to manage - spans in your ManualBuild event handler. - - - + + + Represents a collection of objects. + - - + + + Gets the element at the specified index. + + Index of an element. + The element at the specified index. - - + + + Resets series data. + - - + + + Processes the current data row. + - - + + + Finishes the series data. + - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Base class for report pages and dialog forms. - Event data. - + - Prints a row with specified index. + This property is not relevant to this class. - Index of a row to print. - - See the event for more details. - - + - Prints rows with specified indices. + This property is not relevant to this class. - Indices of rows to print. - - See the event for more details. - - + - Prints all rows. + This property is not relevant to this class. - - See the event for more details. - - + - Prints a column with specified index. + Gets the snap size for this page. - Index of a column to print. - - See the event for more details. - - + - Prints columns with specified indices. + Gets a page designer for this page type. + + The page designer. + + + + This method is called by the designer when you create a new page. - Indices of columns to print. - See the event for more details. + You may create the default page layout (add default bands, set default page size, etc). - + - Prints all columns. + Causes the page to refresh in the preview window. - See the event for more details. + Call this method when you handle object's MouseMove, MouseDown, MouseUp, MouseEnter, MouseLeave events + and want to refresh the preview window. + + If you have changed some objects on a page, the Refresh method will not save the changes. + This means when you print or export the page, you will see original (unmodified) page content. + If you want to save the changes, you have to use the method instead. + - + - Adds a page before rows or columns. + Modifies the page content and refresh it in the preview window. - Call this method to insert a page break before the next row or column that you intend to print - using PrintRow(s) or PrintColumn(s) methods. - See the event for more details. + Call this method when you handle object's Click, MouseDown or MouseUp events + and want to modify an object and refresh the preview window. - + - Initializes a new instance of the class. + Initializes a new instance of the class with default settings. - + - Represents a table column. + Represents the pages of a prepared report. - Use the property to set the width of a column. If - property is true, the column will calculate its width automatically. - You can also set the and properties - to restrict the column's width. + Prepared page is a page that you can see in the preview window. Prepared pages can be + accessed via property. + The common scenarios of using this object are: + + + Working with prepared pages after the report is finished: load + () or save () pages + from/to a .fpx file, get a page with specified index to work with its objects + (); modify specified page (). + + + + Using the , , + methods while report is generating to produce an output. + + + + - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Gets the number of pages in the prepared report. - + - This property is not relevant to this class. + Specifies an action that will be performed on method call. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the prepared pages can be uploaded to the file cache. + + This property is used while report is generating. + Default value for this property is true. That means the prepared pages may be uploaded to + the file cache if needed. To prevent this (for example, if you need to access some objects + on previously generated pages), set the property value to false. + - + - - + + + Adds a source page to the prepared pages dictionary. + + The template page to add. + + Call this method before using AddPage and AddBand methods. This method adds + a page to the dictionary that will be used to decrease size of the prepared report. + - - + + + Adds a new page. + + The original (template) page to add. + + Call the method before adding a page. This method creates + a new output page with settings based on page parameter. + - + - Gets or sets a width of the column, in pixels. + Prints a band with all its child objects. + The band to print. + true if band was printed; false if it can't be printed + on current page due to its PrintOn property value. - The column width cannot exceed the range defined by the - and properties. - To convert between pixels and report units, use the constants defined - in the class. + Call the method before adding a band. - + - Gets or sets the minimal width for this column, in pixels. + Gets a page with specified index. + + Zero-based index of page. + The page with specified index. + + + + Gets the size of specified page, in pixels. + Index of page. + the size of specified page, in pixels. - + - Gets or sets the maximal width for this column, in pixels. + Replaces the prepared page with specified one. + The index of prepared page to replace. + The new page to replace with. - + - Gets or sets a value determines if the column should calculate its width automatically. + Modify the prepared page with new sizes. - - The column width cannot exceed the range defined by the - and properties. - + The name of prepared page to reSize. - + - Gets the index of this column. + Removes a page with the specified index. + The zero-based index of page to remove. - - + + + Saves prepared pages to a stream. + + The stream to save to. - + - Gets or sets the page break flag for this column. + Saves prepared pages to a .fpx file. + The name of the file to save to. - + - Gets or sets the number of columns to keep on the same page. + Loads prepared pages from a stream. + The stream to load from. - - + + + Loads prepared pages from a .fpx file. + + The name of the file to load from. - - + + + Clears the prepared report's pages. + - - + + + Creates the pages of a prepared report + + - + - Initializes a new instance of the class. + Initializes a new instance of the OutlineControl class with default settings. - + - Represents a table cell. + Represents a Windows Forms control used to preview a report. - Use , properties to set the cell's - column and row spans. To put an object inside the cell, use its property: + To use this control, place it on a form and link it to a report using the report's + property. To show a report, call + the Report.Show method: - TableCell cell1; - PictureObject picture1 = new PictureObject(); - picture1.Bounds = new RectangleF(0, 0, 32, 32); - picture1.Name = "Picture1"; - cell1.Objects.Add(picture1); + report1.Preview = previewControl1; + report1.Show(); + Use this control's methods such as , etc. to + handle the preview. Call method to clear the preview. + You can specify whether the standard toolbar is visible in the + property. The property allows you to hide/show the statusbar. + - + - This property is not relevant to this class. + Occurs when current page number is changed. - + - This property is not relevant to this class. + Occurs when Print button clicked. - + - This property is not relevant to this class. + Occurs when Export button clicked. - + - This property is not relevant to this class. + Gets a reference to the report. - + - This property is not relevant to this class. + Obsolete. Gets or sets the color of page border. - + - This property is not relevant to this class. + Gets or sets the color of active page border. - + - This property is not relevant to this class. + Gets or sets the first page offset from the top left corner of the control. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the toolbar is visible. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the statusbar is visible. - + - This property is not relevant to this class. + Gets or sets a value indicating whether the outline control is visible. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Gets a collection of objects contained in this cell. + Specifies the set of buttons available in the toolbar. - + - Gets or sets the column span for this cell. + Specifies the set of exports that will be available in the preview's "save" menu. - + - Gets or sets the row span for this cell. + Specifies the set of exports in clouds that will be available in the preview's "save" menu. - - - - + - Gets the address of this cell. + Gets or sets a value indicating whether the fast scrolling method should be used. + + If you enable this property, the gradient background will be disabled. + - + - This property is not relevant to this class. + Gets or sets the visual style. - + - This property is not relevant to this class. + Gets or sets a value indicating that the BackColor property must be used to draw the background area. + + By default, the background area is drawn using the color defined in the current UIStyle. + - - - - - - - + - Gets the TableBase object which this cell belongs to. + Gets the preview window's toolbar. - - - - + - Creates the exact copy of this cell. + Gets the preview window's statusbar. - The copy of this cell. - + - Determines if two cells have identical settings. + Gets or sets the initial directory that is displayed by a save file dialog. - Cell to compare with. - true if cells are equal. - + - + - Changes the cell's style. + Adds a new report tab to the preview control. - The new style. + The Report object that contains the prepared report. + The title for the new tab. - Each cell in a dynamic table object (or in a matrix) has associated style. - Several cells may share one style. If you try to change the cell's appearance directly - (like setting cell.TextColor), it may affect other cells in the table. - To change the single cell, use this method. + Prepare the report using its Prepare method before you pass it to the report parameter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initializes a new instance of the class. - - - - - The base class for table-type controls such as and - . - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Adds a new report tab to the preview control. + The Report object that contains the prepared report. + The title for the new tab. + If true, makes the new tab active. + + Prepare the report using its Prepare method before you pass it to the report parameter. + - - - - + - This property is not relevant to this class. + Switches to the tab with specified text. + Text of the tab. + true if the tab with specified text exists, or false if there is no such tab. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Gets a collection of table rows. + Deletes the report tab with specified text. + The text of the tab. - + - Gets a collection of table columns. + Checks if the tab with specified text exists. + The text of the tab. + true if the tab exists. - + - Gets or sets the number of fixed rows that will be repeated on each page. + Displays the text in the status bar. + Text to display. - + - Gets or sets the number of fixed columns that will be repeated on each page. + Sets the focus to the preview control. - + - Gets or sets a value that determines whether is necessary to repeat table header on each page. + Prints the current report. - - To define a table header, set the and - properties. - + true if report was printed; false if user cancels the "Print" dialog. - + - Gets or sets a value that determines whether is necessary to repeat table Row header on each page. + Saves the current report to a .fpx file using the "Save FIle" dialog. - - To define a table Row header, set the - properties. - - + - Gets or sets a value that determines whether is necessary to repeat table Column header on each page. + Saves the current report to a specified .fpx file. - - To define a table Column header, set the - properties. - - + - Gets or sets the table layout. + Saves the current report to a stream. - - This property affects printing the big table that breaks across pages. - - + - Gets or sets gap between parts of the table in wrapped layout mode. + Loads the report from a .fpx file using the "Open File" dialog. - - This property is used if you set the property to Wrapped. - - + - Gets or sets a value that determines whether to adjust the spanned cell's width when breaking the table across pages. + Loads the report from a specified .fpx file. - - If set to true, the spanned cell's width will be adjusted to accomodate all contained text. - - + - Gets or sets the table cell. + Load the report from a stream. - Column index. - Row index. - The TableCell object that represents a cell. + The stream to load from. - + - Gets or sets a number of columns in the table. + Sends an email. - + - Gets or sets a number of rows in the table. + Finds the text in the current report using the "Find Text" dialog. - + - Gets a table which contains the result of rendering dynamic table. + Finds the specified text in the current report. - - Use this property to access the result of rendering your table in dynamic mode. - It may be useful if you want to center or right-align the result table on a page. - In this case, you need to add the following code at the end of your ManualBuild event handler: - - // right-align the table - Table1.ResultTable.Left = Engine.PageWidth - Table1.ResultTable.CalcWidth() - 1; - - - - - - - - - - - + Text to find. + A value indicating whether the search is case-sensitive. + A value indicating whether the search matches whole words only. + true if text found. - + - Gets data of the table cell with specified column and row numbers. + Finds the next occurence of text specified in the Find method. - The column number. - The row number. - TableCellData instance containing data of the table cell. + true if text found. - + - Creates unique names for all table elements such as rows, columns, cells. + Navigates to the first page. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - Calculates and returns the table width, in pixels. + Navigates to the previuos page. - - - - - - - + - Calculates a sum of values in a specified cell. + Navigates to the next page. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates a minimum of values in a specified cell. + Navigates to the last page. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates a maximum of values in a specified cell. + Gets or sets the current page number. - The cell. - The object that contains calculated value. - This method can be called from the ManualBuild event handler only. + This value is 1-based. - + - Calculates an average of values in a specified cell. + Gets the pages count in the current report. - The cell. - The object that contains calculated value. - - This method can be called from the ManualBuild event handler only. - - + - Calculates number of repeats of a specified cell. + Gets or sets the zoom factor. - The cell. - The object that contains calculated value. - This method can be called from the ManualBuild event handler only. + 1 corresponds to 100% zoom. - - - Initializes a new instance of the class. - - - - - Specifies the layout that will be used when printing a big table. - - - + - The table is printed across a pages then down. + Zooms in. - + - The table is printed down then across a pages. + Zooms out. - + - The table is wrapped. + Zooms to fit the page width. - + - Represents data of the table cell. + Zooms to fit the whole page. - + - Gets or sets parent table of the cell. + Edits the current page in the designer. - + - Gets or sets objects collection of the cell. + Copies the current page in preview. - + - Gets or sets text of the table cell. + Removes the current page in preview. - + - Gets or sets value of the table cell. + Edits the current report in the designer. - + - Gets or sets hyperlink value of the table cell. + Edits the watermark. - + - Gets or sets column span of the table cell. + Edits the page settings. - + - Gets or sets row span of the table cell. + Navigates to the specified position inside a specified page. + The page number (1-based). + The position inside a page, in pixels. - + - Gets or sets the address of the table cell. + Clears the preview. - + - Gets the table cell. + Refresh the report. - + - Gets style of table cell. + Initializes a new instance of the class. - - - Gets original the table cell. + + + Required designer variable. - - - Gets width of the table cell. + + + Required method for Designer support - do not modify + the contents of this method with the code editor. - + - Gets height of the table cell. + Gets or sets the initial directory that is displayed by a save file dialog. - + - Initializes a new instance of the class. + Specifies an action that will be performed on PreparedPages.AddPage method call. - + - Attaches the specified table cell. + Do not add the new prepared page if possible, increment the CurPage instead. - The table cell instance. - This method is called when we load the table. - + - Assigns another instance. + Add the new prepared page. - The table cell data that used as a source. - This method is called when we copy cells or clone columns/rows in a designer. - + - Assigns another instance at run time. + Represents a report object. - The table cell data that used as a source. - This flag shows should children be copied or not. - This method is called when we print a table. We should create a copy of the cell and set the style. + + The instance of this class contains a report. Here are some common + actions that can be performed with this object: + + + To load a report, use the + method or call static method. + + + To save a report, call the method. + + + To register application dataset for use it in a report, call one of the + RegisterData methods. + + + To pass some parameter to a report, use the + method. + + + To design a report, call the method. + + + To run a report and preview it, call the method. + Another way is to call the method, then call the + method. + + + To run a report and print it, call the method. + Another way is to call the method, then call the + method. + + + To load/save prepared report, use one of the LoadPrepared and + SavePrepared methods. + + + To set up some global properties, use the static class + or component that you can use in the Visual Studio IDE. + + + + The report consists of one or several report pages (pages of the + type) and/or dialog forms (pages of the type). + They are stored in the collection. In turn, each page may contain report + objects. See the example below how to create a simple report in code. + + This example shows how to create a report instance, load it from a file, + register the application data, run and preview. + + Report report = new Report(); + report.Load("reportfile.frx"); + report.RegisterData(application_dataset); + report.Show(); + + This example shows how to create simple report in code. + + Report report = new Report(); + // create the report page + ReportPage page = new ReportPage(); + page.Name = "ReportPage1"; + // set paper width and height. Note: these properties are measured in millimeters. + page.PaperWidth = 210; + page.PaperHeight = 297; + // add a page to the report + report.Pages.Add(page); + // create report title + page.ReportTitle = new ReportTitleBand(); + page.ReportTitle.Name = "ReportTitle1"; + page.ReportTitle.Height = Units.Millimeters * 10; + // create Text object and put it to the title + TextObject text = new TextObject(); + text.Name = "Text1"; + text.Bounds = new RectangleF(0, 0, Units.Millimeters * 100, Units.Millimeters * 5); + page.ReportTitle.Objects.Add(text); + // create data band + DataBand data = new DataBand(); + data.Name = "Data1"; + data.Height = Units.Millimeters * 10; + // add data band to a page + page.Bands.Add(data); + + - + - Sets style of the table cell. + Gets a reference to the report designer. - The new style of the table cell. + + This property can be used when report is designing. In other cases it returns null. + - + - Disposes the instance. + Runs the report designer. + true if report was modified, otherwise false. - + - Calculates width of the table cell. + Runs the report designer. - The value of the table cell width. + A value indicates whether the designer should run modally. + true if report was modified, otherwise false. - + - Calculates height of the table cell. + Runs the report designer. - The width of the table cell. - The value of the table cell height. + The main MDI form which will be a parent for the designer. + true if report was modified, otherwise false. - + - Updates layout of the table cell. + Gets the email settings such as recipients, subject, message body. - The width of the table cell. - The height of the table cell. - The new value of x coordinate. - The new value of y coordinate. - + - Represents a result table. + Gets or sets the report preview control. - Do not use this class directly. It is used by the and - objects to render a result. + Use this property to attach a custom preview to your report. To do this, place the PreviewControl + control to your form and set the report's Preview property to this control. - + - Occurs after calculation of table bounds. + Gets the print settings such as printer name, copies, pages to print etc. - - You may use this event to change automatically calculated rows/column sizes. It may be useful - if you need to fit dynamically printed table on a page. - - - - - - - - + - Creates a new instance of the class. + Prepares the report and prints it. - + - Represents a collection of objects. + Prints the report with the "Print" dialog. + Report should be prepared using the method. - + - Gets a column with specified index. + Prints the report without the "Print" dialog. + Report should be prepared using the method. - Index of a column. - The column with specified index. - - - - - - + Printer-specific settings. + + Use the following code if you want to show the "Print" dialog, then print: + + if (report.Prepare()) + { + PrinterSettings printerSettings = null; + if (report.ShowPrintDialog(out printerSettings)) + { + report.PrintPrepared(printerSettings); + } + } + + - + - Represents a collection of objects. + Prepares the report and shows it in the preview window. - + - Gets a row with specified index. + Prepares the report and shows it in the preview window. - Index of a row. - The row with specified index. - - - - - - + A value that specifies whether the preview window should be modal. - + - Represents the Text object that may display one or several text lines. + Prepares the report and shows it in the preview window. - - Specify the object's text in the Text property. - Text may contain expressions and data items, for example: "Today is [Date]". When report - is running, all expressions are calculated and replaced with actual values, so the text - would be "Today is 01.01.2008". - The symbols used to find expressions in a text are set in the - Brackets property. You also may disable expressions - using the AllowExpressions property. - To format an expression value, use the property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - + A value that specifies whether the preview window should be modal. + The owner of the preview window. - - + + + Prepares the report and shows it in the preview window. + + The main MDI form which will be a parent for the preview window. - - + + + Previews the report. The report should be prepared using the method. + - - + + + Previews the prepared report. + + A value that specifies whether the preview window should be modal. - - + + + Previews the prepared report. + + A value that specifies whether the preview window should be modal. + The owner of the preview window. - - + + + Previews the prepared report. + + The main MDI form which will be a parent for the preview window. - + - Gets or sets a paragraph format for a new html rendering type, not for others rendering + Shows the "Print" dialog. + Printer-specific settings. + true if the dialog was closed by "Print" button. + + Use the following code if you want to show the "Print" dialog, then print: + + if (report.Prepare()) + { + PrinterSettings printerSettings = null; + if (report.ShowPrintDialog(out printerSettings)) + { + report.PrintPrepared(printerSettings); + } + } + + - + - Gets or sets a value that determines if the text object should handle its width automatically. + Occurs when calc execution is started. - + - Gets or sets a value that indicates whether the font size should shrink to - display the longest text line without word wrap. + Occurs when report is inherited and trying to load a base report. - To limit the minimum size, use the property. + Typical use of this event is to load the base report from a database instead of a file. - + - Gets or sets the minimum size of font (or minimum width ratio) if the - mode is on. + Occurs when report execution is started. - - This property determines the minimum font size (in case the property is set to - FontSize), or the minimum font width ratio (if AutoShrink is set to FontWidth). - The default value is 0, that means no limits. - - + - Gets or sets the horizontal alignment of a text in the TextObject object. + Occurs when report execution is finished. - + - Gets or sets the vertical alignment of a text in the TextObject object. + Gets the pages contained in this report. + + This property contains pages of all types (report and dialog). Use the is/as operators + if you want to work with pages of ReportPage type. + + The following code demonstrates how to access the first report page: + + ReportPage page1 = report1.Pages[0] as ReportPage; + + - + - Gets or sets the text angle, in degrees. + Gets the report's data. + + The dictionary contains all data items such as connections, data sources, parameters, + system variables. + - + - Gets or sets a value that indicates whether the component should draw right-to-left for RTL languages. + Gets the collection of report parameters. + + Parameters are displayed in the "Data" window under the "Parameters" node. + Typical use of parameters is to pass some static data from the application to the report. + You can print such data, use it in the data row filter, script etc. + Another way to use parameters is to define some reusable piece of code, for example, + to define an expression that will return the concatenation of first and second employee name. + In this case, you set the parameter's Expression property to something like this: + [Employees.FirstName] + " " + [Employees.LastName]. Now this parameter may be used in the report + to print full employee name. Each time you access such parameter, it will calculate the expression + and return its value. + You can create nested parameters. To do this, add the new Parameter to the + Parameters collection of the root parameter. To access the nested parameter, you may use the + method. + To get or set the parameter's value, use the and + methods. To set the parameter's expression, use the + method that returns a Parameter object and set its + Expression property. + - + - Gets or sets a value that indicates if lines are automatically word-wrapped. + Gets or sets the report information such as report name, author, description etc. - + - Gets or sets a value that determines if the text object will underline each text line. + Gets or sets the base report file name. + + This property contains the name of a report file this report is inherited from. + Note: setting this property to non-empty value will clear the report and + load the base file into it. + - + - Gets or sets the font settings for this object. + Gets or sets the name of a file the report was loaded from. + + This property is used to support the FastReport.Net infrastructure; + typically you don't need to use it. + - + - Gets or sets the fill color used to draw a text. + Gets or sets the report script. - Default fill is . You may specify other fill types, for example: - - text1.TextFill = new HatchFill(Color.Black, Color.White, HatchStyle.Cross); - - Use the property to set the solid text color. + The script contains the ReportScript class that contains all report objects' + event handlers and own items such as private fields, properties, methods etc. The script + contains only items written by you. Unlike other report generators, the script does not + contain report objects declarations, initialization code. It is added automatically when + you run the report. + By default this property contains an empty script text. You may see it in the designer + when you switch to the Code window. + If you set this property programmatically, you have to declare the FastReport + namespace and the ReportScript class in it. Do not declare report items (such as bands, + objects, etc) in the ReportScript class: the report engine does this automatically when + you run the report. + Security note: since the report script is compiled into .NET assembly, it allows + you to do ANYTHING. For example, you may create a script that will read/write files from/to a disk. + To restrict such operations, use the property. - + - Gets or sets the text outline. + Gets or sets the script language of this report. + + Note: changing this property will reset the report script to default empty script. + - + - Gets or sets the text color in a simple manner. + Gets or sets a value indicating whether the null DB value must be converted to zero, false or + empty string depending on the data column type. - This property can be used in a report script to change the text color of the object. It is - equivalent to: textObject1.TextFill = new SolidFill(color); + This property is true by default. If you set it to false, you should check + the DB value before you do something with it (for example, typecast it to any type, use it + in a expression etc.) - + - Gets or sets the string trimming options. + Gets or sets a value that specifies whether the report engine should perform the second pass. + + Typically the second pass is necessary to print the number of total pages. It also + may be used to perform some calculations on the first pass and print its results on the + second pass. + Use the Engine.FirstPass, Engine.FinalPass properties to determine which + pass the engine is performing now. + - + - Gets or sets the width ratio of the font. + Gets or sets a value that specifies whether to compress the report file. - Default value is 1. To make a font wider, set a value grether than 1; to make a font narrower, - set a value less than 1. + The report file is compressed using the Gzip algorithm. So you can open the + compressed report in any zip-compatible archiver. - + - Gets or sets the height of single text line, in pixels. + Gets or sets a value that specifies whether to use the file cache rather than memory + to store the prepared report pages. - + - Gets or sets the offset of the first TAB symbol. + Gets or sets a value that specifies the quality of text rendering. + + Note: the default property value is TextQuality.Default. That means the report + may look different depending on OS settings. This property does not affect the printout. + - + - Gets or sets the width of TAB symbol, in pixels. + Gets or sets a value that specifies if the graphic objects such as bitmaps + and shapes should be displayed smoothly. - + - Gets or sets a value that indicates if text should be clipped inside the object's bounds. + Gets or sets the report password. + + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in this property before loading + the report. In this case the report will load silently. + Password-protected report file is crypted using Rijndael algorithm. + Do not forget your password! It will be hard or even impossible to open + the protected file in this case. + - + - Gets the collection of conditional highlight attributes. + Gets or sets a value indicating whether it is necessary to automatically fill + DataSet registered with RegisterData call. - Conditional highlight is used to change the visual appearance of the Text object - depending on some condition(s). For example, you may highlight negative values displayed by - the Text object with red color. To do this, add the highlight condition: - - TextObject text1; - HighlightCondition highlight = new HighlightCondition(); - highlight.Expression = "Value < 0"; - highlight.Fill = new SolidFill(Color.Red); - highlight.ApplyFill = true; - text1.Highlight.Add(highlight); - + If this property is true (by default), FastReport will automatically fill + the DataSet with data when you trying to run a report. Set it to false if + you want to fill the DataSet by yourself. - + - Gets or sets a value that indicates if the text object should display its contents similar to the printout. + Gets or sets the maximum number of generated pages in a prepared report. + + Use this property to limit the number of pages in a prepared report. + - + - Forces justify for the last text line. + Gets or sets the collection of styles used in this report. - + - Allows handling html tags in the text. + Gets or sets an array of assembly names that will be used to compile the report script. - The following html tags can be used in the object's text: <b>, <i>, <u>, - <strike>, <sub>, <sup>, </b>, </i>, </u>, - </strike>, </sub>, </sup>, - <font color=&...&>, </font>. Font size cannot - be changed due to limitations in the rendering engine. + By default this property contains the following assemblies: "System.dll", "System.Drawing.dll", + "System.Windows.Forms.dll", "System.Data.dll", "System.Xml.dll". If your script uses some types + from another assemblies, you have to add them to this property. - + - Indicates handling html tags in the text. + Gets or sets a script event name that will be fired when the report starts. - To set the value use the TextRenderer property. - + - The type of text render + Gets or sets a script event name that will be fired when the report is finished. - /// - The following html tags can be used in the object's text: <b>, <i>, <u>, - <strike>, <sub>, <sup>, </b>, </i>, </u>, - </strike>, </sub>, </sup>, - <font color=&...&>, </font>. Font size cannot - be changed due to limitations in the rendering engine. - - + - Gets or sets the paragraph offset, in pixels. + Gets a value indicating that report execution was aborted. - + - Cache for inline images + Gets or sets a value that determines whether to store the report in the application resources. + Use this property in the MS Visual Studio IDE only. + + By default this property is true. When set to false, you should store your report + in a file. + - - - - - - - + - Draws a text. + Gets or sets the resource string that contains the report. - Paint event data. + + This property is used by the MS Visual Studio to store the report. Do not use it directly. + - - + + + Gets a value indicating that this report contains dialog forms. + - - + + + Gets or sets a set of permissions that will be restricted for the script code. + + + Since the report script is compiled into .NET assembly, it allows you to do ANYTHING. + For example, you may create a script that will read/write files from/to a disk. This property + is used to restrict such operations. + This example shows how to restrict the file IO operations in a script: + + using System.Security; + using System.Security.Permissions; + ... + PermissionSet ps = new PermissionSet(PermissionState.None); + ps.AddPermission(new FileIOPermission(PermissionState.Unrestricted)); + report1.ScriptRestrictions = ps; + report1.Prepare(); + + + - - + + + Gets a reference to the graphics cache for this report. + + + This property is used to support the FastReport.Net infrastructure. Do not use it directly. + - - + + + Gets a pages of the prepared report. + - - + + + Gets a reference to the report engine. + + + This property can be used when report is running. In other cases it returns null. + - - + + + Gets or sets the initial page number for PageN/PageNofM system variables. + - - + + + This property is not relevant to this class. + - - + + + This property is not relevant to this class. + - - + + + Gets the report operation that is currently performed. + - - + + + Gets or sets the flag for refresh. + - + - - - Calculates the object's width. - - The width, in pixels. + + - + - + - + - - - Initializes a new instance of the class with default settings. - + + - - - Base class for text objects such as and . - - - This class implements common functionality of the text objects. - + + - + - + - + - - - Gets or sets a value indicating that the object's text may contain expressions. - + + - + - Gets or sets the symbols that will be used to find expressions in the object's text. + Initializes the report's fields. - The default property value is "[,]". As you can see, the open and close symbols are - separated by the comma. You may use another symbols, for example: "<,>" or "<%,%>". - You should use different open and close symbols. + This method is for internal use only. - + - Gets or sets the object's text. + Generates the file (.cs or .vb) that contains the report source code. + Name of the file. - Text may contain expressions and data items, for example: "Today is [Date]". - When report is running, all expressions are calculated and replaced with actual - values, so the text would be "Today is 01.01.2008". + Use this method to generate the report source code. This code can be attached to your project. + In this case, you will need to call the following code to run a report: + + SimpleListReport report = new SimpleListReport(); + report.RegisterData(your_dataset); + report.Show(); + - + - Gets or sets padding within the text object. + Calculates an expression and returns the result. + The expression to calculate. + If report is running, returns the result of calculation. + Otherwise returns null. + + The expression may be any valid expression such as "1 + 2". The expression + is calculated in the report script's ReportScript class instance context, + so you may refer to any objects available in this context: private fields, + methods, report objects. + - + - Gets or sets a value indicating that zero values must be hidden. + Calculates an expression and returns the result. + The expression to calculate. + The value of currently printing object. + If report is running, returns the result of calculation. + Otherwise returns null. + + Do not call this method directly. Use the Calc(string expression) method instead. + - + - Gets or sets a value that will be hidden. + Returns an expression value. + The expression. + The value of currently printing object. + Returns the result of calculation. - Use this property to specify a value that you would like to hide. For example, specify "0" - if you want to hide zero values, or use property to do this. - You also may use this property to hide default DateTime values (such as 1/1/1900). - In this case you need to specify a string containing both date and time, for example: - "1/1/1900 0:00:00". - - FastReport uses the ToString conversion to compare the expression value with this property. - This conversion depends on regional settings selected in the Control Panel, so be aware of this - if you going to distribute your report worldwide. - + This method is for internal use only, do not call it directly. - + - Gets or sets a string that will be displayed instead of a null value. + Invokes the script event handler with given name. + The name of the script method. + The method parameters. - + - Gets or sets the formatter that will be used to format data in the Text object. + Gets the data column's value. Automatically converts null value to 0, false or "" + depending on the column type. + The name of the data column including the datasource name. + If report is running, returns the column value. Otherwise returns null. - The default formatter does nothing, i.e. it shows expression values with no formatting. - To set another formatting, create a new formatter and assign it to this property. - If there are several expressions in the text, use the property - to format each expression value. + The return value of this method does not depend on the property. - This example shows how to set currency formatter. + - TextObject text1; - text1.Format = new CurrencyFormat(); + string employeeName = (string)report.GetColumnValue("Employees.FirstName"); - + - Gets or sets a value that specifies how the report engine processes this text object. + Gets the data column's value. This method does not convert null values. - - Use this property to perform such task as "print a total value in the group header". Normally, - all total values are calculated in the footers (for example, in a group footer). If you try to print - a total value in the group header, you will get 0. If you set this property to - ProcessAt.DataFinished, FastReport will do the following: - - - print the object (with wrong value); - - - print all related data rows; - - - calculate the correct object's value and replace old (wrong) value with the new one. - - - - This option will not work if you set the to true. - - + The name of the data column including the datasource name. + If report is running, returns the column value. + Otherwise returns null. - + - Gets the collection of formatters. + Gets the report parameter with given name. + The name of the parameter. + The object if found, otherwise null. - This property is used to set format for each expression contained in the text. - For example, if the TextObject contains two expressions: - Today is [Date]; Page [PageN] - you can use the following code to format these expressions separately: - - text1.Formats.Clear(); - text1.Formats.Add(new DateFormat()); - text1.Formats.Add(new NumberFormat()); - + To find nested parameter, use the "." separator: "MainParameter.NestedParameter" - + - Gets or sets a value that determines how to display duplicate values. + Gets a value of the parameter with given name. + The name of the parameter. + The parameter's value if found, otherwise null. + + To find nested parameter, use the "." separator: "MainParameter.NestedParameter" + - + - Gets a value of expression contained in the object's text. + Sets the parameter's value. + The name of the parameter. + Value to set. + + Use this method to pass a value to the parameter that you've created in the "Data" window. + Such parameter may be used everythere in a report; for example, you can print its value + or use it in expressions. + You should call this method after the report was loaded and before you run it. + To access a nested parameter, use the "." separator: "MainParameter.NestedParameter" + + This method will create the parameter if it does not exist. + + + This example shows how to pass a value to the parameter with "MyParam" name: + + // load the report + report1.Load("report.frx"); + // setup the parameter + report1.SetParameterValue("MyParam", 10); + // show the report + report1.Show(); + + - + - Gets or sets editable for pdf export + Gets a value of the system variable with specified name. + Name of a variable. + The variable's value if found, otherwise null. - - - - - - - - - - - - - + - Initializes a new instance of the class with default settings. + Gets a value of the total with specified name. + Name of total. + The total's value if found, otherwise 0. + This method converts null values to 0 if the property is set to true. + Use the method if you don't want the null conversion. + - + - Provides a type converter for a property representing a data type. + Gets a value of the total with specified name. + Name of total. + The total's value if found, otherwise null. - - - - - - - - - - - - - + - Provides a type converter for a property representing a reference to another component in a report. + Gets the datasource with specified name. + Alias name of a datasource. + The datasource object if found, otherwise null. - - - - - - - - - - + - + - Provides a type converter for a property representing a value measured in the current report units. + Aborts the report execution. - - - - - - - + - + - + - Provides a type converter for a property representing an expandable object. + Updates the report component's styles. + + Call this method if you change the collection. + - - - - - - - - - - - - - + - Contains some configuration properties and settings that will be applied to the FastReport.Net - environment, including Report, Designer and Preview components. + Sets prepared pages. + - + - Gets the autosaved report + This method fires the StartReport event and the script code connected + to the StartReportEvent. - + - Gets the atuosaved report path + This method fires the FinishReport event and the script code connected + to the FinishReportEvent. - - - Gets the folder to store auto save files - + + - - - Gets or sets the settings for the report designer window. - + + - + - Gets a value indicating that the ASP.NET hosting permission level is set to full trust. + Saves the report to a stream. + The stream to save to. - + - Gets or sets a value indicating whether SplashScreen should be displayed while loading designer + Saves the report to a file. + The name of the file to save to. - + - Gets or sets the UI style. + Loads report from a stream. + The stream to load from. - This property affects both designer and preview windows. + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in the + property before loading the report. In this case the report will load silently. - - - Gets or sets a value indicating whether the Ribbon UI should be used - - - + - Gets or sets a value that determines whether to disable some functionality to run in web mode. + Loads the report from a file. + The name of the file to load from. - Use this property if you use FastReport in ASP.Net. Set this property to true before - you access any FastReport.Net objects. + When you try to load the password-protected report, you will be asked + for a password. You also may specify the password in the + property before loading the report. In this case the report will load silently. - + - Gets or sets a value indicating whether Welcome window feature enabled. - If false, interface elements associated with the Welcome window will not be visible. + Loads the report from a string. + The string that contains a stream in UTF8 or Base64 encoding. - + - Gets or sets a value indicating whether Welcome window shoud be displayed on startup + Saves the report to a string. + The string that contains a stream. - + - Restores the form state from the configuration file. + Saves the report to a string using the Base64 encoding. - The form to restore. + The string that contains a stream. - + - Saves the form state to the configuration file. + Creates the report instance and loads the report from a stream. - The form to save. + The stream to load from. + The new report instance. - + - Gets or sets the settings for the preview window. + Creates the report instance and loads the report from a file. + The name of the file to load from. + The new report instance. - + - Gets or sets the optimization of strings. Is experimental feature. + Creates the report instance and loads the report from a string. + The string that contains a stream in UTF8 encoding. + The new report instance. - + - Gets the application folder. + Registers the application dataset with all its tables and relations to use it in the report. + The application data. + + If you register more than one dataset, use the method. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1); + + - + - Gets or sets the settings for the "Send Email" window. + Registers the application dataset with all its tables and relations to use it in the report and enables all its tables. + The application data. + The boolean value indicating whether all tables should be enabled. + + If you register more than one dataset, use the method. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, true); + + - + - Gets an english culture information for localization purposes + Registers the application dataset with specified name. - - + The application data. + The name of the data. + + Use this method if you register more than one dataset. You may specify any value + for the name parameter: it is not displayed anywhere in the designer and used only + to load/save a report. The name must be persistent and unique for each registered dataset. + + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, "NorthWind"); + + + + - Gets or sets the path used to load/save the configuration file. + Registers the application dataset with specified name and enables all its tables. + The application data. + The name of the data. + The boolean value indicating whether all tables should be enabled. - By default, the configuration file is saved to the application local data folder - (C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\). - Set this property to "" if you want to store the configuration file in the application folder. + Use this method if you register more than one dataset. You may specify any value + for the name parameter: it is not displayed anywhere in the designer and used only + to load/save a report. The name must be persistent and unique for each registered dataset. + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1, "NorthWind", true); + + - + - Gets or sets the settings for the Report component. + Registers the application data table to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(dataSet1.Tables["Orders"], "Orders"); + + - + - Gets or sets a value indicating whether RTL layout should be used. + Registers the application data view to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myDataView, "OrdersView"); + + - + - Gets the root item of config xml. + Registers the application data relation to use it in the report. + The application data. + The name of the data. + + You may specify any value for the name parameter: it is not displayed anywhere + in the designer and used only to load/save a report. The name must be persistent + and unique for each registered relation. + + + + report1.Load("report.frx"); + report1.RegisterData(myDataRelation, "myRelation"); + + - + - Gets or sets the path to the temporary folder used to store temporary files. + Obsolete. Registers the application business object to use it in the report. + Application data. + Name of the data. + Not used. + Maximum nesting level of business objects. - The default value is null, so the system temp folder will be used. + This method is obsolete. Use the method instead. - + - Gets FastReport version. + Registers the application business object to use it in the report. + Application data. + Name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myBusinessObject, "Customers"); + + - + - The interface for unifying methods for drawing objects into different graphics + Registers the application business object to use it in the report. + Application data. + Name of the data. + Maximum nesting level of business objects. + + This method creates initial datasource with specified nesting level. It is useful if + you create a report in code. In most cases, you don't need to specify the nesting level + because it may be selected in the designer's "Choose Report Data" dialog. + - + - in this case if a baseline is needed, it will not be calculated + Registers the application cube link to use it in the report. + The application data. + The name of the data. + + + report1.Load("report.frx"); + report1.RegisterData(myCubeLink, "Orders"); + + - + - Works with polygons only + Prepares the report. - - + true if report was prepared succesfully. - + - the interface for saving and restoring state + Prepares the report. + Specifies whether the new report should be added to a + report that was prepared before. + true if report was prepared succesfully. + + Use this method to merge prepared reports. + + This example shows how to merge two reports and preview the result: + + Report report = new Report(); + report.Load("report1.frx"); + report.Prepare(); + report.Load("report2.frx"); + report.Prepare(true); + report.ShowPrepared(); + + - + - Drawing objects to a standard image in Bitmap + For internal use only. - + - baseLine is ignored + For internal use only. - + - Drawing objects to a svg string + Refresh the current report. + + Call this method in the Click or MouseUp event handler of a report object to refresh + the currently previewed report. Report will be generated again, but without dialog forms. + - + - For setting namespace, clear all attributes on setting, therefore use this property before setting other svg options + Refresh prepared report after intercative actions. - + - Initialize a new Graphics for SVG, it's rendered to xml, layer by layer, not one image, - set the Size of this graphics in Size property + Prepare page + - + - Returns splited string + Exports a report. Report should be prepared using the method. - text for splitting - index of first character of second string - second part of string - returns true if ends on enter - first part of string + The export filter. + Stream to save export result to. - + - Check the line, and if last word is able to move next line, move it. - e.g. white space won't move to next line. - If word is not moved return current line. - else return new line + Exports a report. Report should be prepared using the method. - the paragraph for lines - the line with extra words - the index of start last word in this line - width to place words - ref to current line width - + The export filter. + File name to save export result to. - + - Represents character placement. + Saves the prepared report. Report should be prepared using the method. + File name to save to. - + - Be care generates dictionary only one time + Saves the prepared report. Report should be prepared using the method. + Stream to save to. - + - Return true if read char + Loads the prepared report from a .fpx file. - + File name to load form. - + - Represents a style used in HtmlTags mode. Color does not affect the equals function. + Loads the prepared report from a .fpx file. + Stream to load from. - + - returns true if objects realy equals + Initializes a new instance of the class with default settings. - - - + - Holds the information about the registered object. + Ensure that static constructor is called. - + - Image. + Create name for all unnamed elements with prefix and start with number + Prefix for name + Number from which to start - + - Image index. + Base class for all report objects. - + - Name of object or category. + This event occurs when the user moves the mouse over the object in the preview window. - + - The registered object. + This event occurs when the user releases the mouse button in the preview window. - + - The registered function. + This event occurs when the user clicks the mouse button in the preview window. - + - Tooltip text. + This event occurs when the mouse enters the object's bounds in the preview window. - + - Flags that will be used to create an object instance in the designer. + This event occurs when the mouse leaves the object's bounds in the preview window. - + - Indicates whether this object can be inserted several times simultaneously. + Copies event handlers from another similar object. - - This is applied to Line object only. - + The object to copy handlers from. - + - Gets or sets the enabled flag for the object. + This method fires the MouseMove event and the script code connected to the MouseMoveEvent. + Event data. - + - List of subitems. + This method fires the MouseUp event and the script code connected to the MouseUpEvent. + Event data. - + - Enumerates all objects. + This method fires the MouseDown event and the script code connected to the MouseDownEvent. - List that will contain enumerated items. + Event data. - + - Contains all registered report items such as objects, export filters, wizards. + This method fires the MouseEnter event and the script code connected to the MouseEnterEvent. - - Use this class to register own components, wizards, export filters or another items that - need to be serialized to/from a report file. - - - - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - // register own report object - RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); - - + Event data. - + - Registers a new cloud storage client. + This method fires the MouseLeave event and the script code connected to the MouseLeaveEvent. - Type of cloud storage client. - Text for cloud storage client's menu item. - - The obj must be of type. - - - - // register own cloud storage client - RegisteredObjects.AddCloud(typeof(MyCloud), "My Cloud"); - - + Event data. - + - Registers a new messenger. + This method is fired when the user scrolls the mouse in the preview window. - Type of messenger. - Text messenger's menu item. - - The obj must be of type. - - - - // register own messenger - RegisteredObjects.AddMessenger(typeof(MyMessenger), "My Messenger"); - - + Event data. - + + + + + + + + + + + + + - Registers a new wizard. + Assigns a format from another, similar object. - Type of wizard. - Image for wizard item. - Text for wizard item. - true if this wizard creates some items in existing report. - - The obj must be of type. - - This example shows how to register own wizard that is used to create some items in the - current report. If you want to register a wizard that will be used to create a new report, - set the isReportItemWizard to false. - - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - - + Source object to assign a format from. - - - - - - - + + - + + + + - Root object for all registered objects. + Draws the object's markers. + Draw event arguments. - + - Checks whether the specified type is registered already. + Draws the object's markers. - Type to check. - true if such type is registered. + Draw event arguments. + Marker style - + + + + + + + + + + - Registers a category that may contain several report objects. + This event occurs before the object is added to the preview pages. - Category name. - Image for category button. - Text for category button. - - Category is a button on the "Objects" toolbar that shows context menu with nested items - when you click it. Consider using categories if you register several report objects. It can - save space on the "Objects" toolbar. For example, FastReport registers one category called "Shapes" - that contains the LineObject and different types of ShapeObject. - The name of category must starts either with "ReportPage," or "DialogPage," depending on - what kind of controls do you need to regiter in this category: report objects or dialog controls. - After the comma, specify the category name. So the full category name that you need to specify - in the name parameter, must be something like this: "ReportPage,Shapes". - - When register an object inside a category, you must specify the full category name in the - category parameter of the Add method. - - + - Register Export category. + This event occurs after the object was added to the preview pages. - Category name. - Category text. - + - Registers a new export filter. + This event occurs after the object was filled with data. - Type of export filter. - Text for export filter's menu item. - - The obj must be of type. - - - - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - - - + - + This event occurs when the user clicks the object in the preview window. - + - Registers data connection. + Gets or sets a value that determines if the object can be exported. + + + + + Gets or sets an object's border. + + + + + Gets or sets an object's fill. - Type of connection. - The obj must be of type. + The fill can be one of the following types: , , + , . + To set the solid fill color, use the simpler property. - + This example shows how to set the new fill and change its properties: - // register data connection - RegisteredObjects.AddConnection(typeof(MsSqlDataConnection)); + textObject1.Fill = new SolidFill(Color.Green); + (textObject1.Fill as SolidFill).Color = Color.Red; - + - + - Registers custom data connection. + Gets or sets the fill color in a simple manner. - Type of connection. - Name of connection. - The obj must be of type. + This property can be used in a report script to change the fill color of the object. It is + equivalent to: reportComponent1.Fill = new SolidFill(color); - - - // register data connection - RegisteredObjects.AddConnection(typeof(MyDataConnection), "My Data Connection"); - - - + - Registers an object in the specified category. + Gets or sets a bookmark expression. - Type of object to register. - Name of category to register in. - Index of image for object's button. + + This property can contain any valid expression that returns a bookmark name. This can be, for example, + a data column. To navigate to a bookmark, you have to use the property. + - + - Registers an object in the specified category with button's image and text. + Gets or sets a hyperlink. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - You must specify either the page type name or existing category name in the category parameter. - The report objects must be registered in the "ReportPage" category or custom category that is - registered in the "ReportPage" as well. The dialog controls must be registered in the "DialogPage" - category or custom category that is registered in the "DialogPage" as well. - If you want to register an object that needs to be serialized, but you don't want - to show it on the toolbar, pass empty string in the category parameter. - - - - - // register the report object - RegisteredObjects.Add(typeof(MyReportObject), "ReportPage", myReportObjectBmp, "My Report Object"); - // register the dialog control - RegisteredObjects.Add(typeof(MyDialogControl), "DialogPage", myDialogControlBmp, "My Dialog Control"); - // add a category and register an object inside it - RegisteredObjects.AddCategory("ReportPage,MyCategory", myCategoryBmp, "My Category"); - // register another report object in MyCategory - RegisteredObjects.Add(typeof(MyReportObject), "ReportPage,MyCategory", - anotherReportObjectBmp, "Another Report Object"); - - + The hyperlink is used to define clickable objects in the preview. + When you click such object, you may navigate to the external url, the page number, + the bookmark defined by other report object, or display the external report. + Set the Kind property of the hyperlink to select appropriate behavior. + Usually you should set the Expression property of the hyperlink to + any valid expression that will be calculated when this object is about to print. + The value of an expression will be used for navigation. + If you want to navigate to + something fixed (URL or page number, for example) you also may set the Value + property instead of Expression. + - + - Registers an object in the specified category with button's image, text and object's flags. + Determines if the object can grow. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - Integer value that will be passed to object's OnBeforeInsert method. - See the method for more details. - To learn about flags, see the method. + This property is applicable to the bands or text objects that can contain several text lines. + If the property is set to true, object will grow to display all the information that it contains. - + - Registers an object in the specified category with button's image, text, object's flags and multi-insert flag. + Determines if the object can shrink. - Type of object to register. - Name of category to register in. - Image for object's button. - Text for object's button. - Integer value that will be passed to object's OnBeforeInsert method. - Specifies whether the object may be inserted several times until you - select the "arrow" button or insert another object. - See the method for more details. - To learn about flags, see the method. + This property is applicable to the bands or text objects that can contain several text lines. + If the property is set to true, object can shrink to remove the unused space. - + - Adds a new function category. + Determines if the object must grow to the band's bottom side. - Short name of category. - Display name of category. - Short name is used to reference the category in the subsequent - method call. It may be any value, for example, "MyFuncs". Display name of category is displayed - in the "Data" window. In may be, for example, "My Functions". - The following standard categories are registered by default: - - - "Math" - - - "Text" - - - "DateTime" - - - "Formatting" - - - "Conversion" - - - "ProgramFlow" - - + If the property is set to true, object grows to the bottom side of its parent. This is useful if + you have several objects on a band, and some of them can grow or shrink. - - This example shows how to register a new category: - - RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); - - - - - - Adds a new function into the specified category. - - MethodInfo containing all necessary information about the function. - The name of category to register the function in. - - Your function must be a static, public method of a public class. - The following standard categories are registered by default: - - - "Math" - - - "Text" - - - "DateTime" - - - "Formatting" - - - "Conversion" - - - "ProgramFlow" - - - You may use one of the standard categories, or create a new category by the - method call. - FastReport uses XML comments to display your function's description. - To generate XML comments, enable it in your project's properties - ("Project|Properties..." menu, "Build" tab, enable the "XML documentation file" checkbox). - - - The following example shows how to register own functions: - - public static class MyFunctions - { - /// <summary> - /// Converts a specified string to uppercase. - /// </summary> - /// <param name="s">The string to convert.</param> - /// <returns>A string in uppercase.</returns> - public static string MyUpperCase(string s) - { - return s == null ? "" : s.ToUpper(); - } - - /// <summary> - /// Returns the larger of two 32-bit signed integers. - /// </summary> - /// <param name="val1">The first of two values to compare.</param> - /// <param name="val2">The second of two values to compare.</param> - /// <returns>Parameter val1 or val2, whichever is larger.</returns> - public static int MyMaximum(int val1, int val2) - { - return Math.Max(val1, val2); - } - - /// <summary> - /// Returns the larger of two 64-bit signed integers. - /// </summary> - /// <param name="val1">The first of two values to compare.</param> - /// <param name="val2">The second of two values to compare.</param> - /// <returns>Parameter val1 or val2, whichever is larger.</returns> - public static long MyMaximum(long val1, long val2) - { - return Math.Max(val1, val2); - } - } - - // register a category - RegisteredObjects.AddFunctionCategory("MyFuncs", "My Functions"); - - // obtain MethodInfo for our functions - Type myType = typeof(MyFunctions); - MethodInfo myUpperCaseFunc = myType.GetMethod("MyUpperCase"); - MethodInfo myMaximumIntFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(int), typeof(int) }); - MethodInfo myMaximumLongFunc = myType.GetMethod("MyMaximum", new Type[] { typeof(long), typeof(long) }); - - // register simple function - RegisteredObjects.AddFunction(myUpperCaseFunc, "MyFuncs"); - - // register overridden functions - RegisteredObjects.AddFunction(myMaximumIntFunc, "MyFuncs,MyMaximum"); - RegisteredObjects.AddFunction(myMaximumLongFunc, "MyFuncs,MyMaximum"); - - - + - Finds the registered object's info. + Gets or sets a shift mode of the object. - The type of object to find. - The object's info. - This method can be used to disable some objects, for example: - RegisteredObjects.FindObject(typeof(PDFExport)).Enabled = false; + + See enumeration for details. - + - Register and override the method with method name in the type. - For property use the property name and _Get or _Set suffix. + Gets or sets the style name. - Type for registering method - Name of method fir registering - Method for registering + + Style is a set of common properties such as border, fill, font, text color. The Report + has a set of styles in the property. + - + - Gets the method or null if method is not found + Gets or sets a style name that will be applied to even band rows. - Type for method finding - Name for method finfing - Use True value for inheritance the method from base type, use false for get the method only from the this type - + + Style with this name must exist in the collection. + - + - Used to get localized values from the language resource file. + Gets or sets a style name that will be applied to this object when the mouse pointer is over it. - The resource file used by default is english. To load another locale, call - the method. It should be done at application start - before you use any FastReport classes. + Style with this name must exist in the collection. - + - Gets the standard images used in FastReport as an ImageList. + Gets or sets a value that determines which properties of the even style to use. - ImageList object that contains standard images. - FastReport contains about 240 truecolor images of 16x16 size that are stored in one - big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + Usually you will need only the Fill property of the even style to be applied. If you want to + apply all style settings, set this property to StylePriority.UseAll. - + - Gets an image with specified index. + Gets or sets a value that determines where to print the object. - Image index (zero-based). - The image with specified index. - FastReport contains about 240 truecolor images of 16x16 size that are stored in one - big image side-by-side. This image can be found in FastReport resources (the "buttons.png" resource). + See the enumeration for details. - + - Gets an image with specified index and converts it to Icon. + Gets or sets a script event name that will be fired before the object will be printed in the preview page. - Image index (zero-based). - The Icon object. - + - Gets or set the folder that contains localization files (*.frl). + Gets or sets a script event name that will be fired after the object was printed in the preview page. - + - Returns the current UI locale name, for example "en". + Gets or sets a script event name that will be fired after the object was filled with data. - + - Loads the locale from a file. + Gets or sets a script event name that will be fired when the user click the object in the preview window. - The name of the file that contains localized strings. - + - Loads the locale from a stream. + Determines if the object has custom border and use only Border.Width, Border.Style and + Border.Color properties. - The stream that contains localized strings. + + This flag is used to disable some toolbar buttons when such object is selected. Applicable to the + ShapeObject and LineObject. + - + - Loads the english locale. + Determines if the object uses the Border. + + This flag is used to disable some toolbar buttons when such object is selected. + - + - Gets a string with specified ID. + Determines if the object uses the fill. - The resource ID. - The localized string. - Since the locale file is xml-based, it may contain several xml node levels. For example, - the file contains the following items: - - <Objects> - <Report Text="Report"/> - <Bands Text="Bands"> - <ReportTitle Text="Report Title"/> - </Bands> - </Objects> - - To get the localized "ReportTitle" value, you should pass the following ID - to this method: "Objects,Bands,ReportTitle". + This flag is used to disable some toolbar buttons when such object is selected. - + - Get builtin string. + Gets or sets a value indicates that object should not be added to the preview. - - - + - Replaces the specified locale string with the new value. + Determines if serializing the Style property is needed. - Comma-separated path to the existing locale string. - The new string. - Use this method if you want to replace some existing locale value with the new one. + The Style property must be serialized last. Some ancestor classes may turn off the standard Style + serialization and serialize it by themselves. - - - Res.Set("Messages,SaveChanges", "My text that will appear when you close the designer"); - - - + - Tries to get a string with specified ID. + Determines if an object can provide the hyperlink value automatically. - The resource ID. - The localized value, if specified ID exists; otherwise, the ID itself. + + This flag is used in complex objects such as Matrix or Chart. These objects can provide + a hyperlink value automatically, depending on where you click. + - + - Tries to get builtin string with specified ID. + Gets an object's parent band. - - - + - Checks if specified ID exists. + Gets an object's parent data band. - The resource ID. - true if specified ID exists. - + - Resource loader class. + Gets or sets an object's cursor shape. + + This property is used in the preview mode. + - + - Gets a bitmap from specified assembly resource. + Gets or sets a script event name that will be fired when the user + moves the mouse over the object in the preview window. - Assembly name. - Resource name. - Bitmap object. - + - Gets a bitmap from specified FastReport assembly resource. + Gets or sets a script event name that will be fired when the user + releases the mouse button in the preview window. - Resource name. - Bitmap object. - + - Gets a cursor from specified assembly resource. + Gets or sets a script event name that will be fired when the user + clicks the mouse button in the preview window. - Assembly name. - Resource name. - Cursor object. - + - Gets a cursor from specified FastReport assembly resource. + Gets or sets a script event name that will be fired when the + mouse enters the object's bounds in the preview window. - Resource name. - Cursor object. - + - Gets an icon from specified assembly resource. + Gets or sets a script event name that will be fired when the + mouse leaves the object's bounds in the preview window. - Assembly name. - Resource name. - Icon object. - - - Gets an icon from specified FastReport assembly resource. - - Resource name. - Icon object. + + - + - Gets a stream from specified assembly resource. + Applies the style settings. - Assembly name. - Resource name. - Stream object. + Style to apply. - + - Gets a stream from FastReport assembly resource. + Saves the current style. - Resource name. - Stream object. - + - Gets a stream from specified assembly resource and unpacks it. + Restores the current style. - Assembly name. - Resource name. - Stream object. - + - Gets a stream from specified FastReport assembly resource and unpacks it. + Draws the object's background. - Resource name. - Stream object. + Draw event arguments. - - - Base class for plugin's assembly initializer. - - - FastReport has an open architecture. That means you can extend it with own classes - such as report objects, wizards, export filters. Usually such classes are - placed in separate dlls (plugins). FastReport has mechanism to load plugin dlls. You can specify - which plugins to load at first start, in the FastReport configuration file (by default it is located in the - C:\Documents and Settings\User_Name\Local Settings\Application Data\FastReport\FastReport.config file). - To do this, add an xml item with your plugin name inside the <Plugins> item: - - <?xml version="1.0" encoding="utf-8"?> - <Config> - <Plugins> - <Plugin Name="c:\Program Files\MyProgram\MyPlugin.dll"/> - </Plugins> - </Config> - - When you run your application and use the Report object first time, all plugins will be loaded. - To register objects contained in a plugin, FastReport searches for classes of type - AssemblyInitializerBase and instantiates them. - Use this class to register custom report objects, controls, wizards, exports that - are contained in the assembly. To do this, make your own class of the AssemblyInitializerBase - type and override its default constructor. In the constructor, call RegisteredObjects.Add - methods to register all necessary items. - + + - + - Registers plugins contained in this assembly. + Determines if the object is visible on current drawing surface. - - This constructor is called automatically when the assembly is loaded. - - This example show how to create own assembly initializer to register own items. - - public class MyAssemblyInitializer : AssemblyInitializerBase - { - public MyAssemblyInitializer() - { - // register own wizard - RegisteredObjects.AddWizard(typeof(MyWizard), myWizBmp, "My Wizard", true); - // register own export filter - RegisteredObjects.AddExport(typeof(MyExport), "My Export"); - // register own report object - RegisteredObjects.Add(typeof(MyObject), "ReportPage", myObjBmp, "My Object"); - } - } - - + Draw event arguments. - + + + + - Calc the Crc32 checksum + + - + - Caclulate Streams checksum. + This method fires the Click event and the script code connected to the ClickEvent. - - + Event data. - + + + + - Calculate byte array checksum. + Checks if there are any listeners to the Click event. - - - + - Calculate string checksum. + Initializes the object before running a report. - - + + This method is used by the report engine, do not call it directly. + - + - Begin the checksum + Performs a finalization after the report is finished. - + + This method is used by the report engine, do not call it directly. + - + - Update the checksum + Saves the object's state before printing it. - - - - - + + This method is called by the report engine before processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should save any object properties that may be changed during the object printing. + The standard implementation saves the object's bounds, visibility, bookmark and hyperlink. + - + - End the checksum. + Restores the object's state after printing it. - - + + This method is called by the report engine after processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should restore the object properties that were saved by the method. + - + - Fast alternative of StringBuilder. + Calculates the object's height. + Actual object's height, in pixels. + + Applicable to objects that contain several text lines, such as TextObject. Returns the height needed + to display all the text lines. + - + - Gets the Length of string. + Gets the data from a datasource that the object is connected to. + + This method is called by the report engine before processing the object. + Do not call it directly. You may override it if you are developing a new FastReport component. + In this method you should get the data from a datasource that the object is connected to. + - - - Gets or sets the chars of string. - - - Char value + + - + - Gets StringBuilder + This method fires the BeforePrint event and the script code connected to the BeforePrintEvent. + Event data. - + - Initialize the new array for chars. + This method fires the AfterPrint event and the script code connected to the AfterPrintEvent. - Length of initial array. + Event data. - + - Checks the empty array. + This method fires the AfterData event and the script code connected to the AfterDataEvent. - True if string is empty. + Event data. - + - Converts the array in string. + Initializes a new instance of the class with default settings. - String value. - + - Clears the string. + Represents a report page. - FastString object. + + To get/set a paper size and orientation, use the , + and properties. Note that paper size is measured in millimeters. + Report page can contain one or several bands with report objects. Use the , + , , , + , , properties + to get/set the page bands. The property holds the list of data bands or groups. + Thus you may add several databands to this property to create master-master reports, for example. + + Report page can contain bands only. You cannot place report objects such as TextObject on a page. + + + + This example shows how to create a page with one ReportTitleBand and DataBand bands and add + it to the report. + + ReportPage page = new ReportPage(); + // set the paper in millimeters + page.PaperWidth = 210; + page.PaperHeight = 297; + // create report title + page.ReportTitle = new ReportTitleBand(); + page.ReportTitle.Name = "ReportTitle1"; + page.ReportTitle.Height = Units.Millimeters * 10; + // create data band + DataBand data = new DataBand(); + data.Name = "Data1"; + data.Height = Units.Millimeters * 10; + // add data band to the page + page.Bands.Add(data); + // add page to the report + report.Pages.Add(page); + + - + - Appends the string by string value. + Gets or sets the paper source for the first printed page. - String value. - FastString object. + + + This property represents the paper source (printer tray) that will be used when printing + the first page. To set the source for other pages, use the property. + + + Note: This property uses the raw number of the paper source. + + - + - Appends the string by string value. + Gets or sets the paper source for all printed pages except the first one. - String value. - FastString object. + + + This property represents the paper source (printer tray) that will be used when printing + all pages except the first one. To set source for the first page, use + the property. + + + Note: This property uses the raw number of the paper source. + + - + - Append formatted string. + Gets or sets the printer duplex mode that will be used when printing this page. - - - - + - Appends new line. + This property is not relevant to this class. - FastString object. - + - Appends the string by char value. + This property is not relevant to this class. - Char value. - FastString object. - + - Appends the another FastString object. + This property is not relevant to this class. - FastString object. - FastString object. - + - Appends the string by object data. + This property is not relevant to this class. - Object value. - FastString object. - - - Copies the substring in char array. - - Start index in source. - Destination array. - Destination index. - Count of chars + + - + - Removes substring. + Gets a value indicating that imperial units (inches, hundreths of inches) are used. - Start index of removed string. - Length of removed string. - FastString object. - - - Inserts string. - - Start index in existing string. - Value of inserting string. - FastString object. + + - + + + + + + + + + + + + + + + + + + + + + + - Replacing the substring on other. + Invokes the object's editor. - Old string value. - New string value. - FastString object. - + - Index of substring. + This event occurs when the report engine starts this page. - Substring for search. - Sarting position for search. - Position of substring. - + - Compare of substring in position. + This event occurs when the report engine finished this page. - Starting index for comparsion. - Value for compare. - True if substring is identical in position. - + - Returns the substring. + This event occurs when the report engine is about to print databands in this page. - Starting index. - Length of substring. - Substring. - + - Creates the new FastString object with initial capacity. + Gets or sets a width of the paper, in millimeters. - Initial capacity. - + - Creates the new FastString object with default capacity. + Gets or sets a height of the paper, in millimeters. - + - Creates the new FastString object from initial string. + Gets or sets the raw index of a paper size. - + + This property stores the RawKind value of a selected papersize. It is used to distiguish + between several papers with the same size (for ex. "A3" and "A3 with no margins") used in some + printer drivers. + It is not obligatory to set this property. FastReport will select the + necessary paper using the PaperWidth and PaperHeight values. + - + - The style of FastReport user interface. + Gets or sets a value indicating whether the page has unlimited height. - + - Specifies the Microsoft Office 2003 style (blue). + Gets or sets the value indicating whether the unlimited page should be printed on roll paper. - + - Specifies the Microsoft Office 2007 style (blue). + Gets or sets a value indicating whether the page has unlimited width. - + - Specifies the Microsoft Office 2007 style (silver). + Get or set the current height of unlimited page. - + - Specifies the Microsoft Office 2007 style (black). + Get or set the current width of unlimited page. - + - Specifies the Office 2010 (Blue) style. + Gets the current page height in pixels. - + - Specifies the Office 2010 (Silver) style. + Gets the current page width in pixels. - + - Specifies the Office 2010 (Black) style. + Gets or sets a value indicating that page should be in landscape orientation. + + When you change this property, it will automatically swap paper width and height, as well as paper margins. + - + - Specifies the Office 2013 style. + Gets or sets the left page margin, in millimeters. - + - Specifies the Microsoft Visual Studio 2005 style. + Gets or sets the top page margin, in millimeters. - + - Specifies the Visual Studio 2010 style. + Gets or sets the right page margin, in millimeters. - + - Specifies the Visual Studio 2012 (Light) style. + Gets or sets the bottom page margin, in millimeters. - + - Specifies the Microsoft Vista style (black). + Gets or sets a value indicating that even pages should swap its left and right margins when + previewed or printed. - + - Contains conversion methods between FastReport's UIStyle to various enums. + Gets the page columns settings. - + - Contains visual style names. + Gets or sets the page border that will be printed inside the page printing area. - + - Converts FastReport's UIStyle to eDotNetBarStyle. + Gets or sets the page background fill. - Style to convert. - Value of eDotNetBarStyle type. - + - Converts FastReport's UIStyle to eTabStripStyle. + Gets or sets the page watermark. - Style to convert. - Value of eTabStripStyle type. + + To enabled watermark, set its Enabled property to true. + - + - Converts FastReport's UIStyle to eTabStripStyle. + Gets or sets a value indicating that ReportTitle band should be printed before the + PageHeader band. - Style to convert. - Value of eTabStripStyle type. - + - Converts FastReport's UIStyle to eOffice2007ColorScheme. + Gets or sets an outline expression. - Style to convert. - Value of eOffice2007ColorScheme type. + + For more information, see property. + - + - Converts FastReport's UIStyle to eColorSchemeStyle. + Gets or sets a value indicating whether to start to print this page on a free space of the previous page. - Style to convert. - Value of eColorSchemeStyle type. + + This property can be used if you have two or more pages in the report template. + - + - Returns app workspace color for the given style. + Gets or sets a value indicating that FastReport engine must reset page numbers before printing this page. - UI style. - The color. + + This property can be used if you have two or more pages in the report template. + - + - Returns control color for the given style. + Gets or sets a value indicating whether the page has extra width in the report designer. - UI style. - The color. + + This property may be useful if you work with such objects as Matrix and Table. + - + - Contains methods to call common editors. + Gets or sets a value indicating whether this page will start on an odd page only. - Use this class if you are writing a new component for FastReport. + This property is useful to print booklet-type reports. Setting this property to true + means that this page will start to print on an odd page only. If necessary, an empty page + will be added to the prepared report before this page will be printed. - + - Invokes the expression editor. + Uses this page as a back page for previously printed pages. - A reference to the report. - The expression to edit. - The new expression. - + - Invokes the border editor. + Gets or sets a report title band. - The Border to edit. - The new border. - + - Invokes the data band columns editor. + Gets or sets a report summary band. - The data band columns to edit. - - + - Invokes the fill editor. + Gets or sets a page header band. - The fill to edit. - The new fill. - + - Invokes the outline editor. + Gets or sets a page footer band. - The outline to edit. - The new outline. - + - Advanced text renderer is used to perform the following tasks: - - draw justified text, text with custom line height, text containing html tags; - - calculate text height, get part of text that does not fit in the display rectangle; - - get paragraphs, lines, words and char sequence to perform accurate export to such - formats as PDF, TXT, RTF + Gets or sets a column header band. - Here is how one may operate the renderer items: - - foreach (AdvancedTextRenderer.Paragraph paragraph in renderer.Paragraphs) - { - foreach (AdvancedTextRenderer.Line line in paragraph.Lines) - { - foreach (AdvancedTextRenderer.Word word in line.Words) - { - if (renderer.HtmlTags) - { - foreach (AdvancedTextRenderer.Run run in word.Runs) - { - using (Font f = run.GetFont()) - using (Brush b = run.GetBrush()) - { - g.DrawString(run.Text, f, b, run.Left, run.Top, renderer.Format); - } - } - } - else - { - g.DrawString(word.Text, renderer.Font, renderer.Brush, word.Left, word.Top, renderer.Format); - } - } - } - } - - - + - The scale for font tag + Gets or sets a column footer band. - + - Paragraph represents single paragraph. It consists of one or several . + Gets or sets an overlay band. - + - Line represents single text line. It consists of one or several . - Simple line (that does not contain tabs, html tags, and is not justified) has - single which contains all the text. + Gets the collection of data bands or group header bands. + + The Bands property holds the list of data bands or group headers. + Thus you may add several databands to this property to create master-master reports, for example. + - + - Word represents single word. It may consist of one or several , in case - when HtmlTags are enabled in the main class. + Gets or sets the page guidelines. + + This property hold all vertical guidelines. The horizontal guidelines are owned by the bands (see + property). + - + - Represents character placement. + Gets or sets the reference to a parent SubreportObject that owns this page. + + This property is null for regular report pages. See the for details. + - + - Represents a style used in HtmlTags mode. + Gets or sets a script event name that will be fired when the report engine starts this page. - + - Represents sequence of characters that have the same . + Gets or sets a script event name that will be fired when the report engine finished this page. - + - Represents inline Image. + Gets or sets a script event name that will be fired when the report engine is about + to print databands in this page. - - - Standard text renderer uses standard DrawString method to draw text. It also supports: - - text rotation; - - fonts with non-standard width ratio. - In case your text is justified, or contains html tags, use the - class instead. - + + - - - Cache for rendering img tags in textobject. - You can use only HTTP[s] protocol with absolute urls. - + + - - - Is serialized - + + - - - Get or set WebClient for downloading imgs by url - + + - - - Occurs before image load - + + - - - Occurs after image load - + + - - - Enumerates all values - - + + - - - Return CacheItem by src - - Src attribute from img tag - + + - - - - - - + + - - - Set CacheItem by src - - Src attribute from img tag - CacheItem - + + - - - Validate src attribute from image - - Src attribute from img tag - return true if src is valid + + - + - + + + + - + This method fires the StartPage event and the script code connected to the StartPageEvent. - + - Item of image cache Dictionary + This method fires the FinishPage event and the script code connected to the FinishPageEvent. - + - Get Base64 string + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. - + - Return true if has some error with Image + Initializes a new instance of the class with default settings. - + - Get Image + This class contains settings that will be applied to the Report component. - + - Get byte array + Occurs before displaying a progress window. - + - Return error image and set true to error property + Occurs after closing a progress window. - - + - Set value for cache item + Occurs after printing a report. - Image encoded base64 string - + - Set value for cache item + Occurs when progress state is changed. - Image - + - Set value for cache item + Gets or sets a value that determines whether to show the progress window + when perform time-consuming operations such as run, print, export. - Image - + - + Gets or sets a value that determines whether to show the information about + the report performance (report generation time, memory consumed) in the + lower right corner of the preview window. - - + - WebClientEventArgs + Occurs when database connection is about to open. + + Use this event to provide own connection string or user name/password to the connection + object that is about to open. + To provide own connection string, set the e.ConnectionString property. + In this case the new connection string will be used. + To provide own user name/password, set the e.UserName and e.Password properties. + You may ask these values in own login dialog. + This example shows how to provide username/password using own login dialog. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + using (MyLoginDialog dialog = new MyLoginDialog()) + { + if (dialog.ShowDialog() == DialogResult.OK) + { + e.UserName = dialog.UserName; + e.Password = dialog.Password; + } + } + } + + This example shows how to provide own connection string. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + e.ConnectionString = my_connection_string; + } + + + + + + Occurs after the database connection is established. - + - Gets a cache + Occurs when discovering the business object's structure. - + - Gets or sets a value indicating whether the event was handled. + Occurs when determining the kind of business object's property. - + - Gets or sets a url from src attribue of img tag + Occurs when discovering the structure of business object of ICustomTypeDescriptor type + with no instance specified. + + The event handler must return an instance of that type. + - + - + Gets or sets the default script language. - - + - + Gets or sets the default paper size used when creating a new report. - + - Clear all files in archive. + Gets or sets a value indicating that the business object engine will use property values + when possible to discover the BO structure. - + - Check for exisiting file in archive. + Gets or sets the default path for root of PictureObject.ImageLocation path. - - - + - Adds the file form disk to the archive. + Initializes a new instance of the class. - - + - Adds all files from directory (recursive) on the disk to the archive. + Represents the base class for the report style or the highlight condition. - - + - Adds the stream to the archive. + Gets or sets a value determines that the border must be applied. - - - + - Creates the zip and writes it to rhe Stream + Gets or sets a value determines that the fill must be applied. - - + - Creates the ZIP archive and writes it to the file. + Gets or sets a value determines that the font must be applied. - - + - Gets or sets the Root Folder. + Gets or sets a value determines that the text fill must be applied. - + - Gets or sets the errors. + Gets or sets a border. - + - Gets or sets the commentary to the archive. + Gets or sets a fill. - + - Gets count of files in archive. + Gets or sets a font. - + - Creates the new zip archive. + Gets or sets a text fill. - + - Class for ACMYK color conversions + Initializes a new instance of the class with default settings. - + - Alpha transparency 0..255 + Assigns values from another source. + Source to assign from. - + - Cyan 0..100 + Deserializes the style. + Reader object. + + This method is for internal use only. + - + - Magenta 0..100 + Serializes the style. + Writer object. + + This method is for internal use only. + - + - Yellow 0..100 + SVG object - + + + + + + + - Black 0..100 + Invokes the object's editor. + true if object was edited succesfully. - + - Returns ACMYK as string. + Gets or sets svg document - - + - Gets CMYKA from string. + Gets or sets ViewBox value - - + - Converts Color value to ACMYK + Gets or sets AspectRatio value - - + + + + - Converts separate ARGB values in ACMYK + Gets or sets grayscale svg document - - - - - + - Returns ARGB color value + Gets or sets a value indicating that the image should be displayed in grayscale mode. - - + - Creates CMYKColor from ARGB values + Returns SVG string - - - - - + + + + + + + + + + + + + + + + + + + - Creates CMYKColor from ACMYK values + Returns clone of this object - - - - - + - + - Creates CMYKColor from string (comma separated values) + Sets svg object by SvgDocument - + SVG document - + - Creates CMYKColor from Color value + Sets svg object from specified path - + path to SVG file - + - Color Utilities + Sets svg object from svg string + SVG string - + - Return true for CMYK Jpeg image + Initializes a new instance of the class with default settings. - - - + - The helper class used to create unique component names using the fastest method. + Represents a table row. - Note: you can create unique component's name using its CreateUniqueName method. - However, it is very slow and can't be used in some situations (when you create a report - layout in a code and have a lot of objects on a page). + Use the property to set the height of a row. If + property is true, the row will calculate its height automatically. + You can also set the and properties + to restrict the row's height. - This example demonstrates how to use this class. - - FastNameCreator nameCreator = new FastNameCreator(Report.AllObjects); - foreach (Base c in Report.AllObjects) - { - if (c.Name == "") - nameCreator.CreateUniqueName(c); - } - - - + - Creates the unique name for the given object. + This property is not relevant to this class. - The object to create name for. - + - Initializes a new instance of the FastNameCreator class with collection of - existing report objects. + This property is not relevant to this class. - The collection of existing report objects. - + - Represents a collection of FastReport base objects. + This property is not relevant to this class. - + - Gets an owner of this collection. + This property is not relevant to this class. - - - Adds the specified elements to the end of this collection. - - Range of elements. + + - - - Adds the specified elements to the end of this collection. - - Collection of elements. + + - + + + + - Adds an object to the end of this collection. + Gets or sets a height of the row, in pixels. - Object to add. - Index of the added object. + + The row height cannot exceed the range defined by the + and properties. + To convert between pixels and report units, use the constants defined + in the class. + - + - Inserts an object into this collection at the specified index. + Gets or sets the minimal height for this row, in pixels. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Gets or sets the maximal height for this row, in pixels. - Object to remove. - + - Returns the zero-based index of the first occurrence of an object. + Gets or sets a value determines if the row should calculate its height automatically. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + + The row height cannot exceed the range defined by the + and properties. + - + - Determines whether an element is in the collection. + Gets the index of this row. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - + + + + - Returns an array of collection items. + Gets or sets the cell with specified index. - + Column index. + The TableCell object. - + - Determines whether two collections are equal. + Gets or sets the page break flag for this row. - The collection to compare with. - true if collections are equal; false otherwise. - + - Copies the content to another collection. + Gets or sets the number of rows to keep on the same page. - The collection to copy to. - + - + - + - - - Initializes a new instance of the FRCollectionBase class with default settings. - + + - - - Initializes a new instance of the FRCollectionBase class with specified owner. - - The owner of this collection. + + - - - The exception that is thrown when the user tried to set object's name that is already exists. - + + - - - The exception that is thrown when the user tried to rename an object that is introduced in the ancestor report. - + + - - - The exception that is thrown when loading bad formed xml report file. - + + - - - The exception that is thrown when loading an encrypted report with wrong password. - + + - - - The exception that is thrown if there is an error in the report's script code. - + + - + - The exception that is thrown when trying to set an object's Parent property to - an object that not accepts children of this type. + Initializes a new instance of the class. - + - The exception that is thrown when trying to load a report file that contains reference to an - unknown object type. + Represents a table object that consists of several rows and columns. + + To add/remove columns, use the collection. To add/remove + rows, use the collection. To initialize a table with specified number of + columns and rows, use and properties. + To print a table in code, use the event. In the manual build + mode, you can use aggregate functions. The following functions available: + + + Aggregate function + Description + + + Sum(cell) + Calculates the sum of values in specified table cell. + + + Min(cell) + Calculates the minimum of values in specified table cell. + + + Max(cell) + Calculates the maximum of values in specified table cell. + + + Avg(cell) + Calculates the average of values in specified table cell. + + + Count(cell) + Calculates the number of repeats of a specified table cell. + + + To print aggregate value, place the aggregate function call in the table cell: + [Count(Cell2)]. + - - - The exception that is thrown when initializing a table datasource which - TableName or Alias is not set properly. - + + - - - The exception that is thrown when trying to access a row of a datasource that is not initialized yet. - + + - + + + + - The exception that is thrown if an error occurs in the TableObject.ManualBuild event. + Allows to print table rows/columns dynamically. + + This event is used to handle the table print process in a code. Using special methods + like , you can print specified rows/columns. + + First way is to repeat specified row(s) to get a table that will grow downwards. + To do this, you have to call the PrintRow method followed by the PrintColumns method. + + Another way is to repeat the specified column(s) to get a table that grows sidewards. + To do this, call the PrintColumn method followed by the PrintRows method. + + Finally, the third way is to repeat rows and columns. The table will grow downwards and + sidewards. To do this, call the PrintRow method followed by the PrintColumn + method (or vice versa). + + + + When you print a table row-by-row, you must call one of the PrintColumn, + PrintColumns methods right after the PrintRow method. + In the same manner, when you print a table column-by-column, call one of the + PrintRow, PrintRows methods right after the PrintColumn method. + If you ignore this rule you will get an exception. + + + + In this example, we will consider all three ways to print a table which has 3 rows and 3 columns. + Case 1: print a table downwards. + + // print table header (the first row) + Table1.PrintRow(0); + Table1.PrintColumns(); + // print table body (the second row) + for (int i = 0; i < 10; i++) + { + Table1.PrintRow(1); + Table1.PrintColumns(); + } + // print table footer (the third row) + Table1.PrintRow(2); + Table1.PrintColumns(); + + + Case 2: print a table sidewards. + + // print table header (the first column) + Table1.PrintColumn(0); + Table1.PrintRows(); + // print table body (the second column) + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + Table1.PrintRows(); + } + // print table footer (the third column) + Table1.PrintColumn(2); + Table1.PrintRows(); + + + Case 3: print a table downwards and sidewards. + + // print the first row with all its columns + Table1.PrintRow(0); + // print header column + Table1.PrintColumn(0); + // print 10 data columns + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + } + // print footer column + Table1.PrintColumn(2); + + // print table body (the second row) + for (int i = 0; i < 10; i++) + { + // print data row with all its columns + Table1.PrintRow(1); + Table1.PrintColumn(0); + for (int j = 0; j < 10; j++) + { + Table1.PrintColumn(1); + } + Table1.PrintColumn(2); + } + + // print table footer (the third row) + Table1.PrintRow(2); + // again print all columns in the table footer + Table1.PrintColumn(0); + for (int i = 0; i < 10; i++) + { + Table1.PrintColumn(1); + } + Table1.PrintColumn(2); + + - + - The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. + Gets or sets a script method name that will be used to handle the + event. + + If you use this event, you must handle the table print process manually. + See the event for details. + - + - The exception that is thrown if an error occurs in the MatrixObject.ManualBuild event. + Determines whether to manage cell spans automatically during manual build. + + The default value for this property is true. If you set it to false, you need to manage + spans in your ManualBuild event handler. + - + + + + + + + + + + + + + + + + + + + + + + + + + - throws this exception if an error occurs in the SaveReport method. - See inner exception for detailed information. + This method fires the ManualBuild event and the script code connected to the ManualBuildEvent. + Event data. - + - Source of image, only for inline img tag + Prints a row with specified index. + Index of a row to print. + + See the event for more details. + - + - Contains methods used to crypt/decrypt a data. + Prints rows with specified indices. + Indices of rows to print. + + See the event for more details. + - + - Sets the password that is used to crypt connection strings stored in a report. + Prints all rows. - See the property for more details. + See the event for more details. - + - Crypts a stream using specified password. + Prints a column with specified index. - The destination stream that will receive the crypted data. - The password. - The stream that you need to write to. + Index of a column to print. - Pass the stream you need to write to, to the dest parameter. Write your data to the - stream that this method returns. When you close this stream, the dest stream will be - closed too and contains the crypted data. + See the event for more details. - + - Decrypts a stream using specified password. + Prints columns with specified indices. - Stream that contains crypted data. - The password. - The stream that contains decrypted data. + Indices of columns to print. - You should read from the stream that this method returns. + See the event for more details. - + - Checks if the stream contains a crypt signature. + Prints all columns. - Stream to check. - true if stream is crypted. + + See the event for more details. + - + - Encrypts the string using the default password. + Adds a page before rows or columns. - String to encrypt. - The encrypted string. - The password used to encrypt a string can be set via property. - You also may use the method if you want to - specify another password. + Call this method to insert a page break before the next row or column that you intend to print + using PrintRow(s) or PrintColumn(s) methods. + See the event for more details. - + - Encrypts the string using specified password. + Initializes a new instance of the class. - String to encrypt. - The password. - The encrypted string. - + - Decrypts the string using the default password. + Represents a table column. - String to decrypt. - The decrypted string. - The password used to decrypt a string can be set via property. - You also may use the method if you want to - specify another password. + Use the property to set the width of a column. If + property is true, the column will calculate its width automatically. + You can also set the and properties + to restrict the column's width. - + - Decrypts the string using specified password. + This property is not relevant to this class. - String to decrypt. - The password. - The decrypted string. - + - Computes hash of specified stream. Initial position in stream will be saved. + This property is not relevant to this class. - Initial stream - - + - Computes hash of specified array. + This property is not relevant to this class. - Initial array - - + - Computes hash of specified array. + This property is not relevant to this class. - Initial array - - + + + + + + + + + + - MurmurHash is a non-cryptographic hash function suitable for general hash-based lookup. - It was created by Austin Appleby in 2008 and is currently hosted on Github along with its test suite named 'SMHasher'. - It also exists in a number of variants, all of which have been released into the public domain. - The name comes from two basic operations, multiply (MU) and rotate (R), used in its inner loop. - https://en.wikipedia.org/wiki/MurmurHash - Implementation of Murmur3 Hash by Adam Horvath - http://blog.teamleadnet.com/2012/08/murmurhash3-ultra-fast-hash-algorithm.html + Gets or sets a width of the column, in pixels. + + The column width cannot exceed the range defined by the + and properties. + To convert between pixels and report units, use the constants defined + in the class. + - + - READ_SIZE + Gets or sets the minimal width for this column, in pixels. - + - ComputeHash function + Gets or sets the maximal width for this column, in pixels. - - - + - Gets the Hash + Gets or sets a value determines if the column should calculate its width automatically. + + The column width cannot exceed the range defined by the + and properties. + - + - Used to draw a text with non-standard angle or justification. + Gets the index of this column. - + + + + - Draws a string. + Gets or sets the page break flag for this column. - String to draw. - Graphics object to draw on. - Font that used to draw text. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the location of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - Horizontal alignment of the text. - Width ratio of the font used to draw a string. - Line height, in pixels. - Angle of the text, in degrees. - Indicates whther to draw string close to the printout. - Force justify for the last line. - + - Initializes a new instance of the DrawText class with default settings. + Gets or sets the number of columns to keep on the same page. - + + + + + + + + + + - Provides a data for paint event. + Initializes a new instance of the class. - + - Gets a Graphics object to draw on. + Represents a table cell. + + Use , properties to set the cell's + column and row spans. To put an object inside the cell, use its property: + + TableCell cell1; + PictureObject picture1 = new PictureObject(); + picture1.Bounds = new RectangleF(0, 0, 32, 32); + picture1.Name = "Picture1"; + cell1.Objects.Add(picture1); + + - + - Gets the X scale factor. + This property is not relevant to this class. - + - Gets the Y scale factor. + This property is not relevant to this class. - + - Gets the cache that contains graphics objects. + This property is not relevant to this class. - + - Initializes a new instance of the FRPaintEventArgs class with specified settings. + This property is not relevant to this class. - Graphics object to draw on. - X scale factor. - Y scale factor. - Cache that contains graphics objects. - + - Contains methods that peform string to object and vice versa conversions. + This property is not relevant to this class. - + - Converts an object to a string. + This property is not relevant to this class. - The object to convert. - The string that contains the converted value. - + - Converts a value to a string using the specified converter. + This property is not relevant to this class. - The object to convert. - The type of converter. - The string that contains the converted value. - + - Converts a string value to the specified data type. + This property is not relevant to this class. - The data type to convert to. - The string to convert from. - The object of type specified in the type parameter that contains - a converted value. - + - Converts a string to an object using the specified converter. + This property is not relevant to this class. - The string to convert. - The type of converter. - The object that contains the converted value. - + - Converts a string containing special symbols to the xml-compatible string. + This property is not relevant to this class. - The string to convert. - The result string. - - This method replaces some special symbols like <, > into xml-compatible - form: &lt;, &gt;. To convert such string back to original form, use the - method. - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Converts a string containing special symbols to the xml-compatible string. + Gets a collection of objects contained in this cell. - The string to convert. - Determines whether it is necessary to convert cr-lf symbols to xml form. - The result string. - + - Converts a value to xml-compatible string. + Gets or sets the column span for this cell. - The value to convert. - The result string. - + - Convert the xml-compatible string to the regular one. + Gets or sets the row span for this cell. - The string to convert. - The result string. - - This is counterpart to the method. - - + + + + - Decreases the precision of floating-point value. + Gets the address of this cell. - The initial value. - The number of decimal digits in the fraction. - The value with lesser precision. - + - Converts a string value to the float. + This property is not relevant to this class. - The string value to convert. - The float value. - - Both "." or "," decimal separators are allowed. - - + - Converts a string value to the float. + This property is not relevant to this class. - The string value to convert. - Indicates whether to ignore non-digit symbols. - The float value. - + + + + + + + - Converts a string value to the float. + Gets the TableBase object which this cell belongs to. - The string value to convert. - Decimal separator. - The float value. - + + + + - Converts a string value to the float. + Creates the exact copy of this cell. - The string value to convert. - Decimal separator. - Indicates whether to ignore non-digit symbols. - The float value. + The copy of this cell. - + - Converts the string containing several text lines to a collection of strings. + Determines if two cells have identical settings. - The string to convert. - The collection instance. + Cell to compare with. + true if cells are equal. - + + + + - Converts a collection of strings to a string. + Changes the cell's style. - The collection to convert. - The string that contains all lines from the collection. + The new style. + + Each cell in a dynamic table object (or in a matrix) has associated style. + Several cells may share one style. If you try to change the cell's appearance directly + (like setting cell.TextColor), it may affect other cells in the table. + To change the single cell, use this method. + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Converts null value to 0, false, empty string, depending on type. + Initializes a new instance of the class. - The data type. - The value of the type data type. - + - Converts string value to byte[]. + The base class for table-type controls such as and + . - The string to convert - The value of the byte[] data type. - + - Converts a string to NameValueCollection. + This property is not relevant to this class. - The string to convert. - The NameValueCollection that contains the name/value pairs. - + - Convert &amp;&Tab;&quot; etc to symbol and return result as string + This property is not relevant to this class. - String for processing - Position for processing - Result of processing - True if successful - + - Convert &amp;&Tab;&quot; etc to symbol and return result as string + This property is not relevant to this class. - String for processing - Position for processing - Append result of processing to FastString - True if successful - + + + + - Represents a collection of float values. + This property is not relevant to this class. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Gets or sets the value at the specified index. + Gets a collection of table rows. - Index of a value. - The value at the specified index. - + - Adds the specified values to the end of this collection. + Gets a collection of table columns. - - + - Adds a value to the end of this collection. + Gets or sets the number of fixed rows that will be repeated on each page. - Value to add. - Index of the added value. - + - Inserts a value into this collection at the specified index. + Gets or sets the number of fixed columns that will be repeated on each page. - The zero-based index at which value should be inserted. - The value to insert. - + - Removes the specified value from the collection. + Gets or sets a value that determines whether is necessary to repeat table header on each page. - Value to remove. + + To define a table header, set the and + properties. + - + - Returns the zero-based index of the first occurrence of a value. + Gets or sets a value that determines whether is necessary to repeat table Row header on each page. - The value to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + + To define a table Row header, set the + properties. + - + - Determines whether a value is in the collection. + Gets or sets a value that determines whether is necessary to repeat table Column header on each page. - The value to locate in the collection. - true if value is found in the collection; otherwise, false. + + To define a table Column header, set the + properties. + - + - Copies values from another collection. + Gets or sets the table layout. - Collection to copy from. + + This property affects printing the big table that breaks across pages. + - + - Provides the message functions. + Gets or sets gap between parts of the table in wrapped layout mode. + + This property is used if you set the property to Wrapped. + - + - Shows the Message Box with error message. + Gets or sets a value that determines whether to adjust the spanned cell's width when breaking the table across pages. - + + If set to true, the spanned cell's width will be adjusted to accomodate all contained text. + - + - Shows Message Box with confirmation. + Gets or sets the table cell. - - - + Column index. + Row index. + The TableCell object that represents a cell. - + - Shows information Message Box. + Gets or sets a number of columns in the table. - - + - Specifies the main mode of the designer's workspace. + Gets or sets a number of rows in the table. - + - Specifies selection mode. + Gets a table which contains the result of rendering dynamic table. + + Use this property to access the result of rendering your table in dynamic mode. + It may be useful if you want to center or right-align the result table on a page. + In this case, you need to add the following code at the end of your ManualBuild event handler: + + // right-align the table + Table1.ResultTable.Left = Engine.PageWidth - Table1.ResultTable.CalcWidth() - 1; + + - + + + + + + + + + + - Specifies insertion mode. + Gets data of the table cell with specified column and row numbers. + The column number. + The row number. + TableCellData instance containing data of the table cell. - + - Specifies drag-drop mode. + Creates unique names for all table elements such as rows, columns, cells. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Specifies the additional mode of the designer's workspace. + Calculates and returns the table width, in pixels. - + + + + + + + - Specifies default mode. + Calculates a sum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user moves the selected objects. + Calculates a minimum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user resizes the selected objects. + Calculates a maximum of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Indicates that user draw the selection rectangle. + Calculates an average of values in a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Specifies a custom mode handled by the object. + Calculates number of repeats of a specified cell. + The cell. + The object that contains calculated value. + + This method can be called from the ManualBuild event handler only. + - + - Provides a data for mouse events. + Initializes a new instance of the class. - + - The X mouse coordinate. + Specifies the layout that will be used when printing a big table. - + - The Y mouse coordinate. + The table is printed across a pages then down. - + - Current state of mouse buttons. + The table is printed down then across a pages. - + - Current keyboard state. + The table is wrapped. - + - Indicates that current object was handled the mouse message. + Represents data of the table cell. - + - The delta of the mouse movement. + Gets or sets parent table of the cell. - + - The mouse wheel delta. + Gets or sets objects collection of the cell. - + - Current cursor shape. + Gets or sets text of the table cell. - + - Additional mode of the designer's workspace. + Gets or sets value of the table cell. - + - Current sizing point if Mode is set to Size. + Gets or sets hyperlink value of the table cell. - + - Current selection rectangle if mode is set to SelectionRect. + Gets or sets column span of the table cell. - + - Active object that handles the mouse event. + Gets or sets row span of the table cell. - + - The source object of drag-drop operation. + Gets or sets the address of the table cell. - + - Multiple sources objects of drag-drop operation. + Gets the table cell. - + - The target object of drag-drop operation. + Gets style of table cell. - + - The message to show when drag source is over the object. + Gets original the table cell. - + - Additional data supplied and handled by report objects. + Gets width of the table cell. - + - Specifies the sizing point used to resize an object by mouse. + Gets height of the table cell. - + - No sizing point. + Initializes a new instance of the class. - + - Specifies left-top sizing point. + Attaches the specified table cell. + The table cell instance. + This method is called when we load the table. - + - Specifies left-bottom sizing point. + Assigns another instance. + The table cell data that used as a source. + This method is called when we copy cells or clone columns/rows in a designer. - + - Specifies right-top sizing point. + Assigns another instance at run time. + The table cell data that used as a source. + This flag shows should children be copied or not. + This method is called when we print a table. We should create a copy of the cell and set the style. - + - Specifies right-bottom sizing point. + Sets style of the table cell. + The new style of the table cell. - + - Specifies top-center sizing point. + Disposes the instance. - + - Specifies bottom-center sizing point. + Calculates width of the table cell. + The value of the table cell width. - + - Specifies left-center sizing point. + Calculates height of the table cell. + The width of the table cell. + The value of the table cell height. - + - Specifies right-center sizing point. + Updates layout of the table cell. + The width of the table cell. + The height of the table cell. + The new value of x coordinate. + The new value of y coordinate. - + - Specifies a selection point used to resize an object. + Represents a collection of objects. - + - The X coordinate of the point. + Gets a column with specified index. + Index of a column. + The column with specified index. - - - The Y coordinate of the point. - + + - - - The size mode. - + + - + - Initializes a new instance of the SelectionPoint class with specified location and size mode. + Represents a result table. - The X coordinate. - The Y coordinate. - Size mode. + + Do not use this class directly. It is used by the and + objects to render a result. + - + - The reader used to deserialize object's properties from a report file. + Occurs after calculation of table bounds. + + You may use this event to change automatically calculated rows/column sizes. It may be useful + if you need to fit dynamically printed table on a page. + - + + + + + + + - Gets a string that contains errors occured during the load. + Creates a new instance of the class. - + - Gets the current item name. + Represents a collection of objects. - + - Gets or sets a value indicating whther is necessary to read the object's children. + Gets a row with specified index. + Index of a row. + The row with specified index. - + + + + + + + - Reads the specified object. + Represents the Text object that may display one or several text lines. - The object to read. - The object must implement the interface. This method - invokes the Deserialize method of the object. + Specify the object's text in the Text property. + Text may contain expressions and data items, for example: "Today is [Date]". When report + is running, all expressions are calculated and replaced with actual values, so the text + would be "Today is 01.01.2008". + The symbols used to find expressions in a text are set in the + Brackets property. You also may disable expressions + using the AllowExpressions property. + To format an expression value, use the property. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Reads an object from current xml node. + Gets or sets a paragraph format for a new html rendering type, not for others rendering - The object. - - This method creates an instance of object described by the current xml node, then invokes - its Deserialize method. - - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Reads properties of specified object. + Gets or sets a value that determines if the text object should handle its width automatically. + + + + + Gets or sets a value that indicates whether the font size should shrink to + display the longest text line without word wrap. - The object to read. - This method reads simple properties like "Text", "Border.Lines" etc. for specified object. - To read nested properties like collections, you should override the - method of an object. + To limit the minimum size, use the property. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Moves the current xml item. + Gets or sets the minimum size of font (or minimum width ratio) if the + mode is on. - false if there is no more items to move on; true otherwise. - This method is used to read child objects. + This property determines the minimum font size (in case the property is set to + FontSize), or the minimum font width ratio (if AutoShrink is set to FontWidth). + The default value is 0, that means no limits. - This example demonstrates the use of ReadProperties, ReadChildren, - NextItem, Read methods. - - public void Deserialize(FRReader reader) - { - // read simple properties like "Text", complex properties like "Border.Lines" - reader.ReadProperties(this); - - // moves the current reader item - while (reader.NextItem()) - { - // read the "Styles" collection - if (String.Compare(reader.ItemName, "Styles", true) == 0) - reader.Read(Styles); - else if (reader.ReadChildren) - { - // if read of children is enabled, read them - Base obj = reader.Read(); - if (obj != null) - obj.Parent = this; - } - } - } - - - + - Checks if current item has specified property. + Gets or sets the horizontal alignment of a text in the TextObject object. - The property name to check. - true if current item has specified property. - + - Reads the string property. + Gets or sets the vertical alignment of a text in the TextObject object. - Name of property. - Property value. - + - Reads the boolean property. + Gets or sets the text angle, in degrees. - Name of property. - Property value. - + - Reads the integer property. + Gets or sets a value that indicates whether the component should draw right-to-left for RTL languages. - Name of property. - Property value. - + - Reads the float property. + Gets or sets a value that indicates if lines are automatically word-wrapped. - Name of property. - Property value. - + - Reads the double property. + Gets or sets a value that determines if the text object will underline each text line. - Name of property. - Property value. - + - Reads the enum property. + Gets or sets the font settings for this object. - Name of property. - Type of property. - Property value. - + - Reads the standalone property value. + Gets or sets the fill color used to draw a text. - Property value. + + Default fill is . You may specify other fill types, for example: + + text1.TextFill = new HatchFill(Color.Black, Color.White, HatchStyle.Cross); + + Use the property to set the solid text color. + - + - Disposes the reader, fixups the property references. + Gets or sets the text outline. - + - Loads the xml items from a stream. + Gets or sets the text color in a simple manner. - The stream to load from. + + This property can be used in a report script to change the text color of the object. It is + equivalent to: textObject1.TextFill = new SolidFill(color); + - + - Initializes a new instance of the FRReader class with specified report. + Gets or sets the string trimming options. - Reference to a report. - + - Initializes a new instance of the FRReader class with specified report and xml item with - contents to read. + Gets or sets the width ratio of the font. - Reference to a report. - Xml item with contents to read. + + Default value is 1. To make a font wider, set a value grether than 1; to make a font narrower, + set a value less than 1. + - + - Specifies the target for the serialize operation. + Gets or sets the height of single text line, in pixels. - + - Serialize to the report file. + Gets or sets the offset of the first TAB symbol. - + - Serialize to the preview pages. + Gets or sets the width of TAB symbol, in pixels. - + - Serialize to the source pages of a preview. + Gets or sets a value that indicates if text should be clipped inside the object's bounds. - + - Serialize to the designer's clipboard. + Gets the collection of conditional highlight attributes. + + Conditional highlight is used to change the visual appearance of the Text object + depending on some condition(s). For example, you may highlight negative values displayed by + the Text object with red color. To do this, add the highlight condition: + + TextObject text1; + HighlightCondition highlight = new HighlightCondition(); + highlight.Expression = "Value < 0"; + highlight.Fill = new SolidFill(Color.Red); + highlight.ApplyFill = true; + text1.Highlight.Add(highlight); + + - + - Serialize to the designer's undo/redo buffer. + Gets or sets a value that indicates if the text object should display its contents similar to the printout. - + - The writer used to serialize object's properties to a report file. + Forces justify for the last text line. - + - Gets or sets current xml item name. + Allows handling html tags in the text. + + The following html tags can be used in the object's text: <b>, <i>, <u>, + <strike>, <sub>, <sup>, </b>, </i>, </u>, + </strike>, </sub>, </sup>, + <font color=&...&>, </font>. Font size cannot + be changed due to limitations in the rendering engine. + - + - Gets or sets target of serialization. + Indicates handling html tags in the text. + To set the value use the TextRenderer property. - + - Gets the ethalon object to compare with. + The type of text render + /// + The following html tags can be used in the object's text: <b>, <i>, <u>, + <strike>, <sub>, <sup>, </b>, </i>, </u>, + </strike>, </sub>, </sup>, + <font color=&...&>, </font>. Font size cannot + be changed due to limitations in the rendering engine. + - + - Gets or sets a value that determines whether is necessary to serialize child objects. + Gets or sets the paragraph offset, in pixels. For HtmlParagraph use ParagraphFormat.FirstLineIndent. - + - Gets or sets a value that determines whether is necessary to add xml header. + Cache for inline images - + + + + + + + - Serializes the specified object. + Draws a text. - The object to serialize. - - The object must implement the interface. This method - invokes the Serialize method of the object. - - This example demonstrates the use of writer. - - public void Serialize(FRWriter writer) - { - // get the etalon object. It will be used to write changed properties only. - Base c = writer.DiffObject as Base; - - // write the type name - writer.ItemName = ClassName; - - // write properties - if (Name != "") - writer.WriteStr("Name", Name); - if (Restrictions != c.Restrictions) - writer.WriteValue("Restrictions", Restrictions); - - // write child objects if allowed - if (writer.SaveChildren) - { - foreach (Base child in ChildObjects) - { - writer.Write(child); - } - } - } - - + Paint event data. - + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Serializes the object using specified etalon. + Calculates the object's width. - The object to serialize. - The etalon object. + The width, in pixels. - + + + + + + + + + + - Writes a string property. + Initializes a new instance of the class with default settings. - Property name. - Property value. - + + + + + + + - Writes a boolean property. + Base class for text objects such as and . - Property name. - Property value. + + This class implements common functionality of the text objects. + - + + + + + + + + + + - Writes an integer property. + Gets or sets a value indicating that the object's text may contain expressions. - Property name. - Property value. - + - Writes a float property. + Gets or sets the symbols that will be used to find expressions in the object's text. - Property name. - Property value. + + The default property value is "[,]". As you can see, the open and close symbols are + separated by the comma. You may use another symbols, for example: "<,>" or "<%,%>". + You should use different open and close symbols. + - + - Writes a double property. + Gets or sets the object's text. - Property name. - Property value. + + Text may contain expressions and data items, for example: "Today is [Date]". + When report is running, all expressions are calculated and replaced with actual + values, so the text would be "Today is 01.01.2008". + - + - Writes an enumeration property. + Gets or sets padding within the text object. - Property name. - Property value. - + - Writes an object reference property. + Gets or sets a value indicating that zero values must be hidden. - Property name. - Property value. - + - Writes a standalone property value. + Gets or sets a value that will be hidden. - Name of property. - Property value. - This method produces the following output: - <PropertyName>PropertyValue</PropertyName> + Use this property to specify a value that you would like to hide. For example, specify "0" + if you want to hide zero values, or use property to do this. + You also may use this property to hide default DateTime values (such as 1/1/1900). + In this case you need to specify a string containing both date and time, for example: + "1/1/1900 0:00:00". + + FastReport uses the ToString conversion to compare the expression value with this property. + This conversion depends on regional settings selected in the Control Panel, so be aware of this + if you going to distribute your report worldwide. + - + - Determines if two objects are equal. + Gets or sets a string that will be displayed instead of a null value. - The first object. - The second object. - true if objects will be serialized to the same value. - + - Disposes the writer. + Gets or sets the formatter that will be used to format data in the Text object. + + The default formatter does nothing, i.e. it shows expression values with no formatting. + To set another formatting, create a new formatter and assign it to this property. + If there are several expressions in the text, use the property + to format each expression value. + + This example shows how to set currency formatter. + + TextObject text1; + text1.Format = new CurrencyFormat(); + + - + - Saves the writer output to a stream. + Gets or sets a value that specifies how the report engine processes this text object. - Stream to save to. + + Use this property to perform such task as "print a total value in the group header". Normally, + all total values are calculated in the footers (for example, in a group footer). If you try to print + a total value in the group header, you will get 0. If you set this property to + ProcessAt.DataFinished, FastReport will do the following: + + + print the object (with wrong value); + + + print all related data rows; + + + calculate the correct object's value and replace old (wrong) value with the new one. + + + + This option will not work if you set the to true. + + - + - Initializes a new instance of the FRWriter class with default settings. + Gets the collection of formatters. + + This property is used to set format for each expression contained in the text. + For example, if the TextObject contains two expressions: + Today is [Date]; Page [PageN] + you can use the following code to format these expressions separately: + + text1.Formats.Clear(); + text1.Formats.Add(new DateFormat()); + text1.Formats.Add(new NumberFormat()); + + - + - Initializes a new instance of the FRWriter class with specified xml item that will - receive writer's output. + Gets or sets a value that determines how to display duplicate values. - The xml item that will receive writer's output. - + - The profiler. + Gets a value of expression contained in the object's text. - + - Starts the profiler. + Gets or sets editable for pdf export - + + + + + + + + + + + + + - Finishes the profiler and displays results. + Initializes a new instance of the class with default settings. - + - Used to access to resource IDs inside the specified branch. + Represents the "Blank Report" wizard. - - Using the method, you have to specify the full path to your resource. - Using this class, you can shorten the path: - - // using the Res.Get method - miKeepTogether = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,KeepTogether")); - miResetPageNumber = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,ResetPageNumber")); - miRepeatOnEveryPage = new ToolStripMenuItem(Res.Get("ComponentMenu,HeaderBand,RepeatOnEveryPage")); - - // using MyRes.Get method - MyRes res = new MyRes("ComponentMenu,HeaderBand"); - miKeepTogether = new ToolStripMenuItem(res.Get("KeepTogether")); - miResetPageNumber = new ToolStripMenuItem(res.Get("ResetPageNumber")); - miRepeatOnEveryPage = new ToolStripMenuItem(res.Get("RepeatOnEveryPage")); - - - - + + + + - Gets a string with specified ID inside the main branch. + Represents the "Inherited Report" wizard. - The resource ID. - The localized value. - + + + + - Initializes a new instance of the class with spevified branch. + Represents the "Label" wizard. - The main resource branch. - + - Localized CategoryAttribute class. + Gets a selected label manufacturer. - - - - + - Initializes a new instance of the SRCategory class. + Gets a selected label name. - The category name. - + - The report page units. + Gets the XML item containing a selected label parameters. - + + + + - Specifies the units measured in millimeters. + Initializes a new instance of the class with the default settings. - + - Specifies the units measured in centimeters. + Represents the "New Data Source" wizard. - + + + + - Specifies the units measured in inches. + Represents the "Standard Report" wizard. - + + + + - Specifies the units measured in hundreths of inch. + The base class for all report wizards. + + To create own wizard, use this class as a base. All you need is to override + the method. To register a wizard, use the + method. + - + - Defines the constants used to convert between report units and screen pixels. + Runs the wizard. + Report designer. + true if wizard was executed succesfully. - To convert pixels to millimeters, use the following code: - valueInMillimeters = valueInPixels / Units.Millimeters; - To convert millimeters to pixels, use the following code: - valueInPixels = valueInMillimeters * Units.Millimeters; + This method is called when you select a wizard in the "Add New Item" window and + click "Add" button. You should do the work in this method. - + - The number of pixels in one millimeter. + Represents the "New Dialog" wizard. - + + + + - The number of pixels in one centimeter. + Represents the "New Page" wizard. - + + + + - The number of pixels in one inch. + Represents a zip code object. + + This object is mainly used in Russia to print postal index on envelopes. It complies with the + GOST R 51506-99. + - + + + + + + + + + + + + + + + + - The number of pixels in 1/10 of ich. + Gets or sets the width of a single zipcode segment, in pixels. - + - The number of pixels in 1/100 of inch. + Gets or sets the height of a single zipcode segment, in pixels. - + - Represents a xml property. + Gets or sets the spacing between origins of segments, in pixels. - + - Represents a property key. + Gets or sets the number of segments in zipcode. - + - Represents a property value. + Gets or sets a value indicating whether the reference markers should be drawn. + + Reference markers are used by postal service to automatically read the zipcode. + - + - Creates new property and assigns value + Gets or sets a value indicating whether the segment grid should be drawn. - Property key - Property value - + - Represents a xml node. + Gets or sets a data column name bound to this control. + + Value must be in the form "Datasource.Column". + - + - Gets a number of children in this node. + Gets or sets an expression that contains the zip code. - + - Gets a list of children in this node. + Gets or sets the zip code. - + + + + + + + + + + + + + + + + - Gets a child node with specified index. + Initializes a new instance of the with the default settings. - Index of node. - The node with specified index. - + - Gets or sets the node name. + Represents a subreport object. - This property will return "Node" for a node like <Node Text="" Left="0"/> + To create a subreport in code, you should create the report page first and + connect it to the subreport using the property. + The following example shows how to create a subreport object in code. + + // create the main report page + ReportPage reportPage = new ReportPage(); + reportPage.Name = "Page1"; + report.Pages.Add(reportPage); + // create report title band + reportPage.ReportTitle = new ReportTitleBand(); + reportPage.ReportTitle.Name = "ReportTitle1"; + reportPage.ReportTitle.Height = Units.Millimeters * 10; + // add subreport on it + SubreportObject subreport = new SubreportObject(); + subreport.Name = "Subreport1"; + subreport.Bounds = new RectangleF(0, 0, Units.Millimeters * 25, Units.Millimeters * 5); + reportPage.ReportTitle.Objects.Add(subreport); + // create subreport page + ReportPage subreportPage = new ReportPage(); + subreportPage.Name = "SubreportPage1"; + report.Pages.Add(subreportPage); + // connect the subreport to the subreport page + subreport.ReportPage = subreportPage; + + - + - Gets or sets a list of properties in this node. + This property is not relevant to this class. - + - Gets or sets the parent for this node. + This property is not relevant to this class. - + - Gets or sets the node value. + This property is not relevant to this class. - - This property will return "ABC" for a node like <Node>ABC</Node> - - + - Gets the root node which owns this node. + This property is not relevant to this class. - + - Clears the child nodes of this node. + This property is not relevant to this class. - + - Adds a new child node to this node. + This property is not relevant to this class. - The new child node. - + - Adds a specified node to this node. + This property is not relevant to this class. - The node to add. - + - Inserts a specified node to this node. + This property is not relevant to this class. - Position to insert. - Node to insert. - + - Finds the node with specified name. + This property is not relevant to this class. - The name of node to find. - The node with specified name, if found; null otherwise. - + - Finds the node with specified name. + This property is not relevant to this class. - The name of node to find. - The node with specified name, if found; the new node otherwise. - - This method adds the node with specified name to the child nodes if it cannot find the node. - - + - Gets the index of specified node in the child nodes list. + This property is not relevant to this class. - The node to find. - Zero-based index of node, if found; -1 otherwise. - + - Gets a property with specified name. + This property is not relevant to this class. - The property name. - The value of property, if found; empty string otherwise. - - This property will return "0" when you request the "Left" property for a node - like <Node Text="" Left="0"/> - - - - Removes all properties. - + + - - - Sets the value for a specified property. - - The property name. - Value to set. - - For example, you have a node like <Node Text="" Left="0"/>. When you set the - "Text" property to "test", the node will be <Node Text="test" Left="0"/>. - If property with specified name is not exist, it will be added. - + + - - - Removes a property with specified name. - - The property name. - Returns true if property is removed, false otherwise. + + - - - Disposes the node and all its children. - + + - + + + + - Initializes a new instance of the XmlItem class with default settings. + Gets or sets a report page that contains the subreport bands and objects. - + - Represents a xml document that contains the root xml node. + Gets or sets a value indicating that subreport must print its objects on a parent band to which it belongs. - Use Load and Save methods to load/save the document. To access the root node - of the document, use the property. + Default behavior of the subreport is to print subreport objects they own separate bands. - - - Gets or sets a value indicating whether is necessary to indent the document - when saving it to a file/stream. - - - - - Gets or sets a value indicating whether is necessary to add xml header. - - - - - Gets the root node of the document. - - - - - Clears the document. - - - - - Saves the document to a stream. - - Stream to save to. + + - - - Saves the document to a string. - - Writer to save to. + + - + - Loads the document from a stream. + Initializes a new instance of the class with default settings. - Stream to load from. - + - Saves the document to a file. + Represents a shape object. - The name of file to save to. + + Use the property to specify a shape. To set the width, style and color of the + shape's border, use the Border.Width, Border.Style and Border.Color properties. + - - - Loads the document from a file. - - The name of file to load from. + + - - - Disposes resources used by the document. - + + - + - Initializes a new instance of the XmlDocument class with default settings. + Gets or sets a shape kind. - - - - + - Represents a zip code object. + Gets or sets a shape curvature if is RoundRectangle. - This object is mainly used in Russia to print postal index on envelopes. It complies with the - GOST R 51506-99. + 0 value means automatic curvature. - - - - - - - + - + - + - - - Gets or sets the width of a single zipcode segment, in pixels. - - - - - Gets or sets the height of a single zipcode segment, in pixels. - - - - - Gets or sets the spacing between origins of segments, in pixels. - - - - - Gets or sets the number of segments in zipcode. - - - - - Gets or sets a value indicating whether the reference markers should be drawn. - - - Reference markers are used by postal service to automatically read the zipcode. - - - + - Gets or sets a value indicating whether the segment grid should be drawn. + Initializes a new instance of the class with default settings. - + - Gets or sets a data column name bound to this control. + Represents a RichText object that can display formatted text. - Value must be in the form "Datasource.Column". + Use the property to set the object's text. The text may include + the RTF formatting tags. - - - Gets or sets an expression that contains the zip code. - - - - - Gets or sets the zip code. - - - - - - - - - + - + - + - - - Initializes a new instance of the with the default settings. - - - + - Represents a subreport object. + Gets or sets the object's text. - To create a subreport in code, you should create the report page first and - connect it to the subreport using the property. + This property returns the formatted text with rtf tags. - The following example shows how to create a subreport object in code. - - // create the main report page - ReportPage reportPage = new ReportPage(); - reportPage.Name = "Page1"; - report.Pages.Add(reportPage); - // create report title band - reportPage.ReportTitle = new ReportTitleBand(); - reportPage.ReportTitle.Name = "ReportTitle1"; - reportPage.ReportTitle.Height = Units.Millimeters * 10; - // add subreport on it - SubreportObject subreport = new SubreportObject(); - subreport.Name = "Subreport1"; - subreport.Bounds = new RectangleF(0, 0, Units.Millimeters * 25, Units.Millimeters * 5); - reportPage.ReportTitle.Objects.Add(subreport); - // create subreport page - ReportPage subreportPage = new ReportPage(); - subreportPage.Name = "SubreportPage1"; - report.Pages.Add(subreportPage); - // connect the subreport to the subreport page - subreport.ReportPage = subreportPage; - - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - - This property is not relevant to this class. - - - - This property is not relevant to this class. - - - + - This property is not relevant to this class. + Gets or sets a name of the data column bound to this control. + + Value must contain the datasource name, for example: "Datasource.Column". + - + - This property is not relevant to this class. + Gets the actual text start. + + This property is for internal use only; you should not use it in your code. + - + - This property is not relevant to this class. + Gets the actual text length. + + This property is for internal use only; you should not use it in your code. + - + - This property is not relevant to this class. + Gets or sets the break style. + + Set this property to true if you want editable rich text when you edit the prepared report page. + - + - This property is not relevant to this class. + Experimental feature for translation of RichText into report objects - - - - - - - + - + - + - - - Gets or sets a report page that contains the subreport bands and objects. - - - - - Gets or sets a value indicating that subreport must print its objects on a parent band to which it belongs. - - - Default behavior of the subreport is to print subreport objects they own separate bands. - - - + - + - - - Initializes a new instance of the class with default settings. - - - - - Represents a shape object. - - - Use the property to specify a shape. To set the width, style and color of the - shape's border, use the Border.Width, Border.Style and Border.Color properties. - - - + - + - - - Gets or sets a shape kind. - - - - - Gets or sets a shape curvature if is RoundRectangle. - - - 0 value means automatic curvature. - - - + - + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with default settings. @@ -37296,8 +37500,9 @@ - Add point to end of polyline and recalculate bounds after add - Can be first point + Add point to end of polyline and recalculate bounds after add. + Can be first point. + Deprecated, use insert point local x - relative to left-top point local y - relative to left-top point @@ -37306,6 +37511,7 @@ Add point to start of polyline and recalculate bounds after add Can be first point + Deprecated, use insert point local x - relative to left-top point local y - relative to left-top point @@ -37313,6 +37519,9 @@ + + + Replace points with star @@ -37322,6 +37531,9 @@ + + + @@ -37347,7 +37559,7 @@ local x - relative to left-top point local y - relative to left-top point - radius for find near point to polyline + depricated Index of inserted point @@ -37372,9 +37584,36 @@ + + + Delete point from polyline by index. + Recalculate bounds. + + Index of point in polyline + + + + + + + Returns best new point position based on mouse + + + + + + do not set this value, internal use only + + + + + Return points collection. + You can modify the collection for change this object. + + Returns origin of coordinates relative to the top left corner @@ -37388,34 +37627,28 @@ Return points array of line + deprecated Return point types array. 0 - Start of line, 1 - Keep on line + deprecated - + - Add point to end of polyline, need to recalculate bounds after add - First point must have zero coordinate and zero type + Initializes a new instance of the class with default settings. - local x - relative to left-top point - local y - relative to left-top point - 0-start,1-line - - - Delete point from polyline by index - Recalculate bounds - - Index of point in polyline + + - - - Draw polyline path to graphics - - Event arguments + + + + + @@ -37430,35 +37663,53 @@ scale by height Always returns a non-empty path - + - Insert point to desired place of polyline + Recalculate position and size of element + + + + + + + + Add point to end of polyline, need to recalculate bounds after add + First point must have zero coordinate and zero type. + Recalculate bounds. + Method is slow do not use this. - Index of place from zero to count local x - relative to left-top point local y - relative to left-top point - 0-start,1-line + depreceted - + - Recalculate position and size of element + Delete point from polyline by index. + Recalculate bounds. + Method is slow do not use this. + Index of point in polyline - - - - - - - - + + + Draw polyline path to graphics + + Event arguments - - + + + Insert point to desired place of polyline + recalculateBounds(); + Method is slow do not use this + + Index of place from zero to count + local x - relative to left-top point + local y - relative to left-top point + deprecated - + - Initializes a new instance of the class with default settings. + Represent a point for polygon object @@ -37509,42 +37760,30 @@ property to do this; - picture that is stored in the database BLOb field. Use the + picture that is stored in the database BLOb field. Use the property to specify the name of data column you want to show; - picture that is stored in the local disk file. Use the + picture that is stored in the local disk file. Use the property to specify the name of the file; - picture that is stored in the Web. Use the + picture that is stored in the Web. Use the property to specify the picture's URL. - Use the property to specify a size mode. The - and properties can be used to restrict the image size if SizeMode + Use the property to specify a size mode. The + and properties can be used to restrict the image size if SizeMode is set to AutoSize. The property can be used to display an image with transparent background. Use the property if you want to display semi-transparent image. - - - - - - - - - - - - - + @@ -37553,13 +37792,6 @@ true if object was edited succesfully. - - - Draw an error image to Graphics g, when the image is designing - - - - Gets or sets the image. @@ -37574,85 +37806,38 @@ - + - Gets or sets a value that specifies how an image is positioned within a PictureObject. + Gets or sets a value indicating that the image should be displayed in grayscale mode. - + - Gets or sets the maximum width of a Picture object, in pixels. + Gets or sets a hash of grayscale svg image + + + + + Gets or sets the color of the image that will be treated as transparent. - - Use this property to restrict the object size if the property - is set to AutoSize. - - + - Gets or sets the maximum height of a Picture object, in pixels. + Gets or sets the transparency of the PictureObject. - Use this property to restrict the object size if the property - is set to AutoSize. + Valid range of values is 0..1. Default value is 0. - + - Gets or sets padding within the PictureObject. + Gets or sets a value indicating that the image should be tiled. - + - Gets or sets the path for the image to display in the PictureObject. - - - This property may contain the path to the image file as well as external URL. - - - - - Gets or sets the data column name to get the image from. - - - - - Gets or sets the color of the image that will be treated as transparent. - - - - - Gets or sets the transparency of the PictureObject. - - - Valid range of values is 0..1. Default value is 0. - - - - - Gets or sets a value indicating whether the PictureObject should display - the error indicator if there is no image in it. - - - - - Gets or sets a value indicating that the image should be tiled. - - - - - Gets or sets the image rotation angle, in degrees. Possible values are 0, 90, 180, 270. - - - - - Gets or sets a value indicating that the image should be displayed in grayscale mode. - - - - - Gets or sets a value indicating that the image stored in the - property should be disposed when this object is disposed. + Gets or sets a value indicating that the image stored in the + property should be disposed when this object is disposed. By default, image assigned to the property is never disposed - you should @@ -37660,36 +37845,16 @@ set this property to true right after you assign an image to the property. - - - - - - - - - Gets a value indicating that the image stored in the separate file - - - - - Gets a value indicating that the image stored in the Web - - - - - Gets a value indicating that the image stored in the databases column - - Gets or sets a bitmap transparent image - - - Gets or sets a hash of grayscale svg image - + + + + + @@ -37709,60 +37874,12 @@ - - - - - - Calculates URI from ImageLocation - - - - - - Draws not tiled image - - - - - - - gets points for transform this image - - the box where to draw image - image width - image height - scale horizontal - scale vertical - offset of left - offset of top - out start of vectors - out end of frist vector - out end of second vector - - - - Moves the point on specified angle - - - - - - - - - Rotates vector on specified angle - - - - - Loads image @@ -37773,21 +37890,12 @@ Disposes image - - - - - - - - - @@ -38490,5587 +38598,6193 @@ Initializes a new instance of the class with default settings. - + - Represents a collection of formats used by the and - objects. + The DIGEST-MD5 SASL authentication mechanism. - + - Gets or sets the element at the specified index. + The mechanism name. - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Initializes a new instance of the class. - Array of elements to add. + The username. + The user's password. - + + + + - Adds an object to the end of this collection. + The PLAIN SASL authentication mechanism. - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + The mechanism name. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Initializes a new instance of the class. - Object to remove. + The username. + The user's password. - + - Returns the zero-based index of the first occurrence of an object. + Computes the client response for server challenge. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + The challenge from server. Usually empty for PLAIN mechanism. + The response from client. - + - Determines whether an element is in the collection. + The base abstarct class for all SASL mechanisms. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - - + + + Gets or sets the name of mechanism. + - - + + + Gets or sets the username. + - + - Copies formats from another collection. + Gets or sets the user's password. - Collection to copy from. - - + + + Initializes a new instance of the class. + - - + + + Initializes a new instance of the class with specified parameters. + + The username. + The user's password. - + - Defines how boolean values are formatted and displayed. + Computes client response for server challenge. + The server challenge. + The client response. - + - Gets or sets a string that will be displayed if value is false. + Gets the base64-encoded client response fo the server challenge. + The base64-string containing server challenge. + The base64-string containing client response. - + - Gets or sets a string that will be displayed if value is true. + Gets the client response for the server challenge. + Byte array containing server challenge. + Byte array containing client response. - - + + + The base class for all messengers. + - - + + + Gets the filename. + - - + + + Gets or sets the proxy settings. + - - + + + Initializes a new instance of the class. + - + - Initializes a new instance of the BooleanFormat class with default settings. + Authorizes the user. + True if user has been successfully authorized. - + - Defines how currency values are formatted and displayed. + Prepares the report before it will be send. + The report template. + The export filter. + Memory stream that contains prepared report. - + - Gets or sets a value that determines whether to use system locale settings to format a value. + Sends the report. + The report template that should be sent. + The export filter that should export template before. + True if report has been successfully sent. - + - Gets or sets the number of decimal places to use in currency values. + Represents form of messenger. - + - Gets or sets the string to use as the decimal separator in currency values. + Gets or sets the report template. - + - Gets or sets the string that separates groups of digits to the left of the decimal in currency values. + Gets or sets the list of exports. - + - Gets or sets the string to use as the currency symbol. + Initializes a new instance of the class. - + - Gets or sets the format pattern for positive currency values. + Initializes a new instance of the class. - This property can have one of the values in the following table. - The symbol "$" is the CurrencySymbol and n is a number. - - ValueAssociated Pattern - 0$n - 1n$ - 2$ n - 3n $ - - + The report template. - + - Gets or sets the format pattern for negative currency values. + Initializes the list of exports. - This property can have one of the values in the following table. - The symbol "$" is the CurrencySymbol and n is a number. - - ValueAssociated Pattern - 0 ($n) - 1 -$n - 2 $-n - 3 $n- - 4 (n$) - 5 -n$ - 6 n-$ - 7 n$- - 8 -n $ - 9 -$ n - 10n $- - 11$ n- - 12$ -n - 13n- $ - 14($ n) - 15(n $) - - - - + + + Gets the proxy settings. + + The proxy settings. - - + + + Initializes the component. + - - + + + Checks is the string numeric. + + The checking string. + True if string is numeric, otherwise false. - + + + Finishes the form work. + + Returns true if work has been successfully finished, otherwise false. + + - + - Initializes a new instance of the CurrencyFormat class with default settings. + SelectedIndexChanged event handler for ComboBox File Type. + Event sender. + Event args. - + - Represents a format that uses the Format string to display values. + Click event handler for Button Settings. + Event sender. + Event args. - + - Gets or sets a format string. + FormClosing event handler for CloudStorageClientForm. - - Default format is "G". For example, if you want to format a date, use the following - format string: "MM/dd/yyyy". See the System.String.Format method for list - of possible format strings. - + Event sender. + Event args. - - + + + Click event handler for button OK. + + Event sender. + Event args. - - + + + Required designer variable. + - - + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. - - + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + - + - Initializes a new instance of the CustomFormat class with default settings. + Page File. - + - Defines how date values are formatted and displayed. + Page Proxy. - - + + + ComboBox File Type. + - + - Initializes a new instance of the DateFormat class with default settings. + Label File Type. - + - Base class for all formats. + Buttons Settings. - - The format is used to format expression value in a object. - - + - Gets the short format name (e.g. without a "Format" suffix). + Label Colon. - + - Creates exact copy of this format. + Label Password. - The copy of this format. - + - Formats the specified value. + Label Username. - The value to format. - The string that represents the formatted value. - - + + + Label Server. + - - + + + TextBox Username. + - + - Defines how numeric values are formatted and displayed. + TextBox Port. - + - Gets or sets a value that determines whether to use system locale settings to format a value. + TextBox Server. - + - Gets or sets the number of decimal places to use in numeric values. + TextBox Password. - + - Gets or sets the string to use as the decimal separator in numeric values. + PageControl pageControl1. - + - Gets or sets the string that separates groups of digits to the left of the decimal in numeric values. + Represents proxy settings of the messenger. + + + + + Gets or sets the proxy server. + + + + + Gets or sets the port number of proxy server. - + + + Gets or sets the username. + + + + + Gets or sets the user's password. + + + + + Gets or sets the type of proxy. + + + + + Initializes a new instance of the class. + + The proxy server. + The port number of server. + The username. + The user's password. + The type of proxy. + + + + Represents the type of rpoxy. + + + + + The HTTP proxy type. + + + + + The SOCKS4 proxy type. + + + + + The SOCKS5 proxy type. + + + + + Represents the IQ stanza. + + + + + Gets or sets the type of iq. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the iq. + The type of iq. + The JID of the sender. + The JID of the recipient. + The ID of the iq. + The language of the iq. + The data of the iq. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the XMPP message. + + + + + Gets or sets the type of message. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the message. + The type of message. + The JID of the sender. + The JID of the recipient. + The ID of the message. + The language of the message. + The data of the message. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the XMPP Presence. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the presence. + The JID of the sender. + The JID of the recipient. + The ID of the presence. + The language of the presence. + The data of the presence. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Represents the base class for XML stanzas used in XMPP. + + + + + Gets the data of the stanza. + + + + + Gets or sets the JID of the sender. + + + + + Gets or sets the JID of the recipient. + + + + + Gets or sets the ID of the stanza. + + + + + Gets or sets the language of the stanza. + + + + + Initializes a new instance of the class with specified parameters. + + The namespace of the stanza. + The JID of the sender. + The JID of the recipient. + The ID of the stanza. + The language of the stanza. + The data of the stanza. + + + + Initializes a new instance of the class using specified XmlElement instance. + + The XmlElement instance using like a data. + + + + Converts stanza to string. + + String containing stanza value. + + + + The parser for XMPP XML-streams. + + + + + Initializes a new instance of the class. + + The stream for parsing. + True to leave the stream opened after closing the StreamReader instance. + + + + Read the XML stream up to opening "stream:stream" tag. + + + + + Reads the next XML element from the stream. + + The list of XML elements that are expected. + The XML element. + + + + Closes the stream parser. + + + + + Releases all resources used by the current instance of the class. + + + + + Represents a static class to simplify the work with XmlElement instance. + + + + + Creates a new XmlElement instance. + + The name of the element. + The namespace of the element. + A new instance of the class. + + + + Adds the specified child to the end of child nodes of element. + + The element for add the child to. + The child node to add. + A XmlElement instance. + + + + Adds the attribute to XmlElement with spefied name and value. + + The element for add the attribute to. + The name of attribute. + The value of attribute. + A XmlElement instance. + + + + Adds the specified text to the end of child nodes of element. + + The element for add the text to. + The text for add. + A XmlElement instance. + + + + Converts the XmlElement instance to a string. + + The element to convert to. + True if needed to include XML declaration. + True if needed to leave the tag of an empty element open. + The XmlElement instance as string. + + + + Represents the XMPP messenger. + + + + + Gets or sets the username. + + + + + Gets or sets the user's password. + + + + + Gets or sets the hostname of XMPP server. + + + + + Gets or sets the port number of the XMPP service of the server. + + + + + Gets or sets the username to send file to. + + + + + Gets or sets the JID to send from. + + + + + Gets or set the JID to send to. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with specified parameters. + + Username. + Password. + Hostname. + Port. + Username to send file to. + Send to user's resource. + + + + Initializes a new instance of the class with specified parameters. + + User's JID without resource. + User's password. + JID to send to with resource. + + + + Sends the specified string to the server. + + The string to send. + + + + Initiates the stream to the server. + + The hostname. + The features response of the server. + + + + Validates the server certificate. + + The sender object. + X509 certificate. + The X509 chain. + The SSL policy errors. + True if successfull. + + + + Secures the stream by TLS. + + The hostname. + The features response of the server. + + + + Selects the SASL authentication mechanism. + + List of mechanisms. + The string containing mechanism name. + + + + Authenticates the user on the server using Plain mechanism. + + + + + Authenticates the user on the server using Digest-MD5 mechanism. + + + + + Authenticates the user on the server. + + The SASL mechanisms list. + + + + Setups the connection with the server. + + + + + Binds resource and gets the full JID that will be associated with current session. + + The full session JID. + + + + Opens session between client and server. + + The id of the opened session. + + + + Connects to the server. + + + + + Sends the message. + + The text of the message. + True if message has been successfully sent. + + + + Sends the presence. + + The text of the presence. + True if presence has been successfully sent. + + + + Initiates the In Band Bytestream for sending the file (XEP-0047). + + True if bytestream has been successfully initiated. + + + + Sends the chunk to the XMPP server. + + The data of the chunk. + The number of the chunk. + + + + Sends the file using In Band Bytestream. + + The memory stream containing data of the file. + True if file has been successfully sent. + + + + Sends the file using FastReport Cloud as a proxy server. + + The report template. + The export filter to export report before sending. + True if file has been successfully sent. + + + + Disconnects from the server. + + + + + + + + + + + Closes the connection. + + + + + Releases all the resources used by the XMPP messenger. + + + + + Represents the form of the XMPP messenger. + + + + + Initializes a new instance of the class. + + + + + Initializes a new instance of the class with specified parameters. + + User's JID without resource. + User's password. + Send to user's JID. + Report template. + + + + + + + + + + + + + + + + Required designer variable. + + + + + Clean up any resources being used. + + true if managed resources should be disposed; otherwise, false. + + + + Required method for Designer support - do not modify + the contents of this method with the code editor. + + + + + This class contains some global settings that used in the FastReport.Net. + + + This component is intended for use in the Visual Studio IDE to quickly configure + FastReport global settings. To use it, drop the component on your Form and set up + its properties and events. + Here are some common actions that can be performed with this object: + + + To define own open/save dialogs that will be used in the report designer, + use the , , + , events; + + + + To pass connection string to the connection object defined in a report, + or to define own database login dialog, use the event; + + + + To adjust the connection object after it is opened, + use the event; + + + + To define own progress window, use the , + and events; + + + + To setup some common properties of the report, designer and preview, + use properties defined in this class; + + + + To set UI style of the designer and preview window, + use property. + + + + This component actually uses the static class which + contains , and + properties. You can use Config class as well. + + + + + Gets or sets the UI style of the designer and preview windows. + + + This property affects both designer and preview windows. + + + + + Indicates whether the Ribbon-style window should be used. + + + + + Occurs before displaying a progress window. + + + + + Occurs after closing a progress window. + + + + + Occurs when progress state is changed. + + + + + Occurs when database connection is about to open. + + Use this event to provide own connection string or user name/password to the connection + object that is about to open. + To provide own connection string, set the e.ConnectionString property. + In this case the new connection string will be used. + To provide own user name/password, set the e.UserName and e.Password properties. + You may ask these values in own login dialog. + This example shows how to provide username/password using own login dialog. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + using (MyLoginDialog dialog = new MyLoginDialog()) + { + if (dialog.ShowDialog() == DialogResult.OK) + { + e.UserName = dialog.UserName; + e.Password = dialog.Password; + } + } + } + + This example shows how to provide own connection string. + + private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) + { + e.ConnectionString = my_connection_string; + } + + + + + + Occurs after the database connection is established. + + + + + Occurs when discovering the business object's structure. + + + + + Occurs when determining the kind of business object's property. + + + + + Gets or sets the report settings. + + + + + Occurs when the designer is loaded. + + + Use this event if you want to customize some aspects of the designer, for example, + to hide some menu items. + + + This example demonstrates how to hide the "File|Select Language..." menu item. + + environmentSettings1.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); + + void DesignerSettings_DesignerLoaded(object sender, EventArgs e) + { + (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; + } + + + + + + Occurs when report is loaded in the designer. + + + Use this event handler to register application data in a report. + + + + + Occurs when object is inserted in the designer. + + + Use this event handler to set some object's properties when it is inserted. + + + + + Occurs when the report designer is about to show the "Open" dialog. + + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will open the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to show the "Save" dialog. + + Use this event to attach own "Save" dialog to the designer. In the event handler, you must + display a dialog window to allow user to choose a report file. + If dialog was executed successfully, you must return e.Cancel = false and set the + e.FileName to the selected file name. + You also need to use event to provide code that + will save the report. + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to load the report. + + This event is used together with the event. + Use this event to attach own "Open" dialog to the designer. In the event handler, you must + load the e.Report from the location specified in the e.FileName property. + For example, if you work with files: e.Report.Load(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + + + Occurs when the report designer is about to save the report. + + This event is used together with the event. + Use this event to attach own "Save" dialog to the designer. In the event handler, you must + save the e.Report to the location specified in the e.FileName property. + For example, if you work with files: e.Report.Save(e.FileName); + + + This example shows how to attach own "Open" and "Save" dialogs to the designer. + It uses the following events: , , + , . + + private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (OpenFileDialog dialog = new OpenFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) + { + using (SaveFileDialog dialog = new SaveFileDialog()) + { + dialog.Filter = "Report files (*.frx)|*.frx"; + // get default file name from e.FileName + dialog.FileName = e.FileName; + + // set e.Cancel to false if dialog was succesfully executed + e.Cancel = dialog.ShowDialog() != DialogResult.OK; + // set e.FileName to the selected file name + e.FileName = dialog.FileName; + } + } + + private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // load the report from the given e.FileName + e.Report.Load(e.FileName); + } + + private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) + { + // save the report to the given e.FileName + e.Report.Save(e.FileName); + } + + + + - Gets or sets the format pattern for negative numeric values. + Occurs when previewing a report from the designer. - This property can have one of the values in the following table. - The symbol n is a number. - - ValueAssociated Pattern - 0(n) - 1-n - 2- n - 3n- - 4n - - + + Use this event to show own preview window. + + + environmentSettings1.CustomPreviewReport += new EventHandler(MyPreviewHandler); + + private void MyPreviewHandler(object sender, EventArgs e) + { + Report report = sender as Report; + using (MyPreviewForm form = new MyPreviewForm()) + { + report.Preview = form.previewControl1; + report.ShowPreparedReport(); + form.ShowDialog(); + } + } + + - - - - - - - - - - - - - - - Initializes a new instance of the NumberFormat class with default settings. - - - - - Defines how percent values are formatted and displayed. - - - + - Gets or sets a value that determines whether to use system locale settings to format a value. + Occurs when getting available table names from the connection. + + Use this handler to filter the list of tables returned by the connection object. + + + This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. + + environmentSettings1.FilterConnectionTables += DesignerSettings_FilterConnectionTables; + + private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) + { + if (e.TableName == "Table 1") + e.Skip = true; + } + + - + - Gets or sets the number of decimal places to use in percent values. + Gets or sets the designer settings. - + - Gets or sets the string to use as the decimal separator in percent values. + Gets or sets the preview settings. - + - Gets or sets the string that separates groups of digits to the left of the decimal in percent values. + Gets or sets the email settings. - + - Gets or sets the string to use as the percent symbol. + Specifies the set of buttons available in the preview. - + - Gets or sets the format pattern for positive percent values. + No buttons visible. - This property can have one of the values in the following table. - The symbol "%" is the PercentSymbol and n is a number. - - ValueAssociated Pattern - 0n % - 1n% - 2%n - 3% n - - - + - Gets or sets the format pattern for negative percent values. + The "Print" button is visible. - This property can have one of the values in the following table. - The symbol "%" is the PercentSymbol and n is a number. - - ValueAssociated Pattern - 0 -n % - 1 -n% - 2 -%n - 3 %-n - 4 %n- - 5 n-% - 6 n%- - 7 -%n - 8 n %- - 9 % n- - 10% -n - 11n- % - - - - - - - - - - - - - - - + - Initializes a new instance of the PercentFormat class with default settings. + The "Open" button is visible. - + - Represents a format used to display values with no formatting. + The "Save" button is visible. - - - - - - - - - - - - - + - Defines how time values are formatted and displayed. + The "Email" button is visible. - - - - + - Initializes a new instance of the TimeFormat class with default settings. + The "Find" button is visible. - + - Based on code of Stefan Bцther, xprocs@hotmail.de + The zoom buttons are visible. - + - Contains standard functions registered in the "Data" window. + The "Outline" button is visible. - + - Returns the larger of two 32-bit signed integers. + The "Page setup" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two 64-bit signed integers. + The "Edit" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two single-precision floating-point numbers. + The "Watermark" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two double-precision floating-point numbers. + The page navigator buttons are visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the larger of two decimal numbers. + The "Close" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is larger. - + - Returns the smaller of two 32-bit signed integers. + The "Design" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two 64-bit signed integers. + The "Copy Page" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two single-precision floating-point numbers. + The "Delete Page" button is visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two double-precision floating-point numbers. + All buttons are visible. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns the smaller of two decimal numbers. + Specifies the set of export buttons available in the preview. - The first of two values to compare. - The second of two values to compare. - Parameter val1 or val2, whichever is smaller. - + - Returns an integer value representing the character code corresponding to a character. + No exports visible. - Character to convert. - The character code. - + - Returns the character associated with the specified character code. + The "Prepared" button is visible. - Character code to convert. - The character. - + - Inserts a specified string at a specified index position in the original string. + The "PDFExport" button is visible. - The original string. - The index position of the insertion. - The string to insert. - A new string. - + - Gets the number of characters in a string. + The "RTFExport" button is visible. - The original string. - The number of characters. - + - Converts a specified string to lowercase. + The "HTMLExport" button is visible. - The string to convert. - A string in lowercase. - + - Right-aligns the characters in a string, padding with spaces on the left for a specified total length. + The "MHTExport" button is visible. - The original string. - The number of characters in the resulting string. - Right-aligned string, padded on the left with spaces. - + - Right-aligns the characters in a string, padding on the left with a specified character - for a specified total length. + The "XMLExport" export button is visible. - The original string. - The number of characters in the resulting string. - A padding character. - Right-aligned string, padded on the left with padding characters. - + - Left-aligns the characters in a string, padding with spaces on the right, for a specified total length. + The "Excel2007Export" button is visible. - The original string. - The number of characters in the resulting string. - Left-aligned string, padded on the right with spaces. - + - Left-aligns the characters in a string, padding on the right with a specified character, - for a specified total length. + The "Excel2003Document" button is visible. - The original string. - The number of characters in the resulting string. - A padding character. - Left-aligned string, padded on the right with padding characters. - + - Converts the specified string to titlecase. + The "Word2007Export" button is visible. - The string to convert. - A new string. - + - Deletes all the characters from a string beginning at a specified position. + The "PowerPoint2007Export" button is visible. - The original string. - The position to begin deleting characters. - A new string. - + - Deletes a specified number of characters from a string beginning at a specified position. + The "ODSExport" button is visible. - The original string. - The position to begin deleting characters. - The number of characters to delete. - A new string. - + - Replaces all occurrences of a specified string in the original string, with another specified string. + The "ODTExport" button is visible. - The original string. - A string to be replaced. - A string to replace all occurrences of oldValue. - A new string. - + - Retrieves a substring from the original string, starting at a specified character position. + The "XPSExport" export button is visible. - The original string. - The starting character position of a substring. - A new string. - + - Retrieves a substring from the original string, starting at a specified character position, - with a specified length. + The "CSVExport" button is visible. - The original string. - The starting character position of a substring. - The number of characters in the substring. - A new string. - + - Removes all occurrences of white space characters from the beginning and end of the original string. + The "DBFExport" button is visible. - The original string. - A new string. - + - Converts a specified string to uppercase. + The "TextExport" button is visible. - The string to convert. - A string in uppercase. - + - Adds the specified number of days to the original date. + The "ZplExport" button is visible. - The original date. - A number of whole and fractional days. - A new DateTime value. - + - Adds the specified number of hours to the original date. + The "ImageExport" button is visible. - The original date. - A number of whole and fractional hours. - A new DateTime value. - + - Adds the specified number of minutes to the original date. + The "XAMLExport" button is visible. - The original date. - A number of whole and fractional minutes. - A new DateTime value. - + - Adds the specified number of months to the original date. + The "SVGExport" button is visible. - The original date. - A number of months. - A new DateTime value. - + - Adds the specified number of seconds to the original date. + The "PPMLExport" button is visible. - The original date. - A number of whole and fractional seconds. - A new DateTime value. - + - Adds the specified number of years to the original date. + The "PSExport" button is visible. - The original date. - A number of years. - A new DateTime value. - + - Subtracts the specified date and time from the original date. + The "JsonExport" button is visible. - The original date. - The date and time to subtract. - A TimeSpan interval between two dates. - + - Initializes a new instance of the DateTime. + The "LaTeXExport" button is visible. - The year. - The month. - The day. - A new DateTime value. - + - Gets the day of the month. + The All export buttons is visible. - The date value. - The day component. - + - Gets the localized name of the day of the week. + Specifies the set of export in clouds buttons available in the preview. - The date value. - The name of the day of the week. - + - Gets the day of the year. + No exports in clouds visible. - The date value. - The day of the year. - + - Returns the number of days in the specified month and year. + The "Box" button is visible. - The year. - The month. - The number of days in month for the specified year. - + - Gets the hour component of the date. + The "Dropbox" button is visible. - The date. - The hour component. - + - Gets the minute component of the date. + The "FastCloud" button is visible. - The date. - The minute component. - + - Gets the month component of the date. + The "Ftp" button is visible. - The date. - The month component. - + - Gets the localized month name. + The "GoogleDrive" button is visible. - The month number. - The month name. - + - Gets the seconds component of the date. + The "SkyDrive" button is visible. - The date. - The seconds component. - + - Gets the week of the year. + The "Xmpp" button is visible. - The date value. - The week of the year. - + - Gets the year component of the date. + The All export in clouds buttons is visible. - The date. - The year component. - + - Replaces the format item in a specified String with the text equivalent of the value of a - corresponding Object instance in a specified array. + Contains some settings of the preview window. - A String containing zero or more format items. - An Object array containing zero or more objects to format. - A copy of format in which the format items have been replaced by the String equivalent of the corresponding instances of Object in args. - + - Returns a string formatted as a currency value. + Occurs when the standard preview window opened. - The value to format. - The formatted string. + + You may use this event to change the standard preview window, for example, add an own button to it. + The sender parameter in this event is the PreviewControl. + - + - Returns a string formatted as a currency value with specified number of decimal digits. + Gets or sets a set of buttons that will be visible in the preview's toolbar. - The value to format. - Number of decimal digits. - The formatted string. + + Here is an example how you can disable the "Print" and "EMail" buttons: + Config.PreviewSettings.Buttons = PreviewButtons.Open | + PreviewButtons.Save | + PreviewButtons.Find | + PreviewButtons.Zoom | + PreviewButtons.Outline | + PreviewButtons.PageSetup | + PreviewButtons.Edit | + PreviewButtons.Watermark | + PreviewButtons.Navigator | + PreviewButtons.Close; + - + - Returns a string formatted as a date/time value. + Specifies the set of exports that will be available in the preview's "save" menu. - The value to format. - The formatted string. - + - Returns a string formatted as a date/time value. + Specifies the set of exports in clouds that will be available in the preview's "save" menu. - The value to format. - The format specifier, one of the - "Long Date", "Short Date", "Long Time", "Short Time" values. - The formatted string. - + - Returns a string formatted as a numeric value. + Gets or sets the number of prepared pages that can be stored in the memory cache during preview. - The value to format. - The formatted string. + + Decrease this value if your prepared report contains a lot of pictures. This will + save the RAM memory. + - + - Returns a string formatted as a numeric value with specified number of decimal digits. + Gets or sets a value indicating whether the preview window is displayed in the Windows taskbar. - The value to format. - Number of decimal digits. - The formatted string. - + - Returns a string formatted as a percent value. + Gets or sets a value indicating whether the preview window should be displayed as a topmost form. - The value to format. - The formatted string. - + - Returns a string formatted as a percent value with specified number of decimal digits. + Gets or sets the icon for the preview window. - The value to format. - Number of decimal digits. - The formatted string. - + - Converts a numeric value to Roman string representation. + Gets or sets the text for the preview window. - Integer value in range 0-3998. - The string in Roman form. + + If no text is set, the default text "Preview" will be used. + - + - Converts a currency value to an english (US) string representation of that value. + Gets or sets a value indicating whether the fast scrolling method should be used. - The currency value to convert. - The string representation of the specified value. + + If you enable this property, the gradient background will be disabled. + - + - Converts a currency value to an english (US) string representation of that value, - using the specified currency. + Enables or disables the "Print to file" feature in the print dialog. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to an english (US) string representation of that value. + Gets or sets the initial directory that is displayed by a save file dialog. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to an english (GB) string representation of that value. + Initializes a new instance of the PreviewSettings class with default settings. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to an english (GB) string representation of that value, - using the specified currency. + A strongly-typed resource class, for looking up localized strings, etc. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to an english (GB) string representation of that value. + Returns the cached ResourceManager instance used by this class. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to a spanish string representation of that value. + Overrides the current thread's CurrentUICulture property for all + resource lookups using this strongly typed resource class. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to a spanish string representation of that value, - using the specified currency. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to a spanish string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The numeric value to convert. - The name in singular form, for example "page". - The name in plural form, for example "pages". - The string representation of the specified value. - + - Converts a currency value to a russian string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The string representation of the specified value. - + - Converts a currency value to a russian string representation of that value, - using the specified currency. + Looks up a localized resource of type System.Drawing.Bitmap. - The currency value to convert. - The 3-digit ISO name of the currency, for example "EUR". - The string representation of the specified value. - + - Converts a numeric value to a russian string representation of that value. + Looks up a localized resource of type System.Drawing.Bitmap. - The numeric value to convert. - True if the name is of male gender. - The name in singular form, for example "страница". - The name in plural form, for example "страницы". - The name in plural form, for example "страниц". - The string representation of the specified value. - + - Selects and returns a value from a list of arguments. + Looks up a localized resource of type System.Drawing.Bitmap. - A value between 1 and the number of elements passed in the "choice" argument. - Object parameter array. - One of the values in the "choice" argument. - + - Returns one of two objects, depending on the evaluation of an expression. + Looks up a localized resource of type System.Drawing.Bitmap. - The expression you want to evaluate. - Returned if Expression evaluates to True. - Returned if Expression evaluates to False. - Either truePart os falsePart. - + - Evaluates a list of expressions and returns a value corresponding to the first - expression in the list that is True. + Looks up a localized resource of type System.Drawing.Bitmap. - Parameter array consists of paired expressions and values. - The value corresponding to an expression which returns true. - + - Checks if the specified object is null. + Looks up a localized resource of type System.Drawing.Bitmap. - The report instance. - Either a name of DB column, or a parameter name, or a total name to check. - true if the object's value is null. - + - The DIGEST-MD5 SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The mechanism name. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - - - - + - The PLAIN SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The mechanism name. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - + - Computes the client response for server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The challenge from server. Usually empty for PLAIN mechanism. - The response from client. - + - The base abstarct class for all SASL mechanisms. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the name of mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The username. - The user's password. - + - Computes client response for server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The server challenge. - The client response. - + - Gets the base64-encoded client response fo the server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - The base64-string containing server challenge. - The base64-string containing client response. - + - Gets the client response for the server challenge. + Looks up a localized resource of type System.Drawing.Bitmap. - Byte array containing server challenge. - Byte array containing client response. - + - The base class for all messengers. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the filename. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the proxy settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authorizes the user. + Looks up a localized resource of type System.Drawing.Bitmap. - True if user has been successfully authorized. - + - Prepares the report before it will be send. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - The export filter. - Memory stream that contains prepared report. - + - Sends the report. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template that should be sent. - The export filter that should export template before. - True if report has been successfully sent. - + - Represents form of messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the report template. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the list of exports. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - + - Initializes the list of exports. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the proxy settings. + Looks up a localized resource of type System.Drawing.Bitmap. - The proxy settings. - + - Initializes the component. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Checks is the string numeric. + Looks up a localized resource of type System.Drawing.Bitmap. - The checking string. - True if string is numeric, otherwise false. - + - Finishes the form work. + Looks up a localized resource of type System.Drawing.Bitmap. - Returns true if work has been successfully finished, otherwise false. - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - + - SelectedIndexChanged event handler for ComboBox File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Click event handler for Button Settings. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - FormClosing event handler for CloudStorageClientForm. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Click event handler for button OK. + Looks up a localized resource of type System.Drawing.Bitmap. - Event sender. - Event args. - + - Required designer variable. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Clean up any resources being used. + Looks up a localized resource of type System.Drawing.Bitmap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Page File. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Page Proxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - ComboBox File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label File Type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Buttons Settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Colon. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Label Server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Port. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - TextBox Password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - PageControl pageControl1. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents proxy settings of the messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the port number of proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of proxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The proxy server. - The port number of server. - The username. - The user's password. - The type of proxy. - + - Represents the type of rpoxy. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The HTTP proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The SOCKS4 proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The SOCKS5 proxy type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents the IQ stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of iq. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the iq. - The type of iq. - The JID of the sender. - The JID of the recipient. - The ID of the iq. - The language of the iq. - The data of the iq. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the XMPP message. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the type of message. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the message. - The type of message. - The JID of the sender. - The JID of the recipient. - The ID of the message. - The language of the message. - The data of the message. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the XMPP Presence. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the presence. - The JID of the sender. - The JID of the recipient. - The ID of the presence. - The language of the presence. - The data of the presence. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Represents the base class for XML stanzas used in XMPP. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets the data of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID of the sender. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID of the recipient. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the ID of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the language of the stanza. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - The namespace of the stanza. - The JID of the sender. - The JID of the recipient. - The ID of the stanza. - The language of the stanza. - The data of the stanza. - + - Initializes a new instance of the class using specified XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The XmlElement instance using like a data. - + - Converts stanza to string. + Looks up a localized resource of type System.Drawing.Bitmap. - String containing stanza value. - + - The parser for XMPP XML-streams. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - The stream for parsing. - True to leave the stream opened after closing the StreamReader instance. - + - Read the XML stream up to opening "stream:stream" tag. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Reads the next XML element from the stream. + Looks up a localized resource of type System.Drawing.Bitmap. - The list of XML elements that are expected. - The XML element. - + - Closes the stream parser. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Releases all resources used by the current instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents a static class to simplify the work with XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Creates a new XmlElement instance. + Looks up a localized resource of type System.Drawing.Bitmap. - The name of the element. - The namespace of the element. - A new instance of the class. - + - Adds the specified child to the end of child nodes of element. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the child to. - The child node to add. - A XmlElement instance. - + - Adds the attribute to XmlElement with spefied name and value. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the attribute to. - The name of attribute. - The value of attribute. - A XmlElement instance. - + - Adds the specified text to the end of child nodes of element. + Looks up a localized resource of type System.Drawing.Bitmap. - The element for add the text to. - The text for add. - A XmlElement instance. - + - Converts the XmlElement instance to a string. + Looks up a localized resource of type System.Drawing.Bitmap. - The element to convert to. - True if needed to include XML declaration. - True if needed to leave the tag of an empty element open. - The XmlElement instance as string. - + - Represents the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the user's password. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the hostname of XMPP server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the port number of the XMPP service of the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the username to send file to. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the JID to send from. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or set the JID to send to. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - Username. - Password. - Hostname. - Port. - Username to send file to. - Send to user's resource. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - User's JID without resource. - User's password. - JID to send to with resource. - + - Sends the specified string to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The string to send. - + - Initiates the stream to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The hostname. - The features response of the server. - + - Validates the server certificate. + Looks up a localized resource of type System.Drawing.Bitmap. - The sender object. - X509 certificate. - The X509 chain. - The SSL policy errors. - True if successfull. - + - Secures the stream by TLS. + Looks up a localized resource of type System.Drawing.Bitmap. - The hostname. - The features response of the server. - + - Selects the SASL authentication mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - List of mechanisms. - The string containing mechanism name. - + - Authenticates the user on the server using Plain mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authenticates the user on the server using Digest-MD5 mechanism. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Authenticates the user on the server. + Looks up a localized resource of type System.Drawing.Bitmap. - The SASL mechanisms list. - + - Setups the connection with the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Binds resource and gets the full JID that will be associated with current session. + Looks up a localized resource of type System.Drawing.Bitmap. - The full session JID. - + - Opens session between client and server. + Looks up a localized resource of type System.Drawing.Bitmap. - The id of the opened session. - + - Connects to the server. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Sends the message. + Looks up a localized resource of type System.Drawing.Bitmap. - The text of the message. - True if message has been successfully sent. - + - Sends the presence. + Looks up a localized resource of type System.Drawing.Bitmap. - The text of the presence. - True if presence has been successfully sent. - + - Initiates the In Band Bytestream for sending the file (XEP-0047). + Looks up a localized resource of type System.Drawing.Bitmap. - True if bytestream has been successfully initiated. - + - Sends the chunk to the XMPP server. + Looks up a localized resource of type System.Drawing.Bitmap. - The data of the chunk. - The number of the chunk. - + - Sends the file using In Band Bytestream. + Looks up a localized resource of type System.Drawing.Bitmap. - The memory stream containing data of the file. - True if file has been successfully sent. - + - Sends the file using FastReport Cloud as a proxy server. + Looks up a localized resource of type System.Drawing.Bitmap. - The report template. - The export filter to export report before sending. - True if file has been successfully sent. - + - Disconnects from the server. + Looks up a localized resource of type System.Drawing.Bitmap. - - - - - - - + - Closes the connection. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Releases all the resources used by the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Represents the form of the XMPP messenger. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Initializes a new instance of the class with specified parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - User's JID without resource. - User's password. - Send to user's JID. - Report template. - - - - - - - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - - + + + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Required designer variable. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Clean up any resources being used. + Looks up a localized resource of type System.Drawing.Bitmap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Looks up a localized resource of type System.Drawing.Bitmap. - + - This class contains some global settings that used in the FastReport.Net. + Looks up a localized resource of type System.Drawing.Bitmap. - - This component is intended for use in the Visual Studio IDE to quickly configure - FastReport global settings. To use it, drop the component on your Form and set up - its properties and events. - Here are some common actions that can be performed with this object: - - - To define own open/save dialogs that will be used in the report designer, - use the , , - , events; - - - - To pass connection string to the connection object defined in a report, - or to define own database login dialog, use the event; - - - - To adjust the connection object after it is opened, - use the event; - - - - To define own progress window, use the , - and events; - - - - To setup some common properties of the report, designer and preview, - use properties defined in this class; - - - - To set UI style of the designer and preview window, - use property. - - - - This component actually uses the static class which - contains , and - properties. You can use Config class as well. - - + - Gets or sets the UI style of the designer and preview windows. + Looks up a localized resource of type System.Drawing.Bitmap. - - This property affects both designer and preview windows. - - + - Indicates whether the Ribbon-style window should be used. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs before displaying a progress window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs after closing a progress window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when progress state is changed. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when database connection is about to open. - - Use this event to provide own connection string or user name/password to the connection - object that is about to open. - To provide own connection string, set the e.ConnectionString property. - In this case the new connection string will be used. - To provide own user name/password, set the e.UserName and e.Password properties. - You may ask these values in own login dialog. - This example shows how to provide username/password using own login dialog. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - using (MyLoginDialog dialog = new MyLoginDialog()) - { - if (dialog.ShowDialog() == DialogResult.OK) - { - e.UserName = dialog.UserName; - e.Password = dialog.Password; - } - } - } - - This example shows how to provide own connection string. - - private void report1_DatabaseLogin(object sender, DatabaseLoginEventArgs e) - { - e.ConnectionString = my_connection_string; - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs after the database connection is established. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when discovering the business object's structure. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when determining the kind of business object's property. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the report settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when the designer is loaded. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event if you want to customize some aspects of the designer, for example, - to hide some menu items. - - - This example demonstrates how to hide the "File|Select Language..." menu item. - - environmentSettings1.DesignerLoaded += new EventHandler(DesignerSettings_DesignerLoaded); - - void DesignerSettings_DesignerLoaded(object sender, EventArgs e) - { - (sender as DesignerControl).MainMenu.miFileSelectLanguage.Visible = false; - } - - - + - Occurs when report is loaded in the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event handler to register application data in a report. - - + - Occurs when object is inserted in the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event handler to set some object's properties when it is inserted. - - + - Occurs when the report designer is about to show the "Open" dialog. - - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will open the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to show the "Save" dialog. - - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - display a dialog window to allow user to choose a report file. - If dialog was executed successfully, you must return e.Cancel = false and set the - e.FileName to the selected file name. - You also need to use event to provide code that - will save the report. - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to load the report. - - This event is used together with the event. - Use this event to attach own "Open" dialog to the designer. In the event handler, you must - load the e.Report from the location specified in the e.FileName property. - For example, if you work with files: e.Report.Load(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when the report designer is about to save the report. - - This event is used together with the event. - Use this event to attach own "Save" dialog to the designer. In the event handler, you must - save the e.Report to the location specified in the e.FileName property. - For example, if you work with files: e.Report.Save(e.FileName); - - - This example shows how to attach own "Open" and "Save" dialogs to the designer. - It uses the following events: , , - , . - - private void CustomOpenDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (OpenFileDialog dialog = new OpenFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomSaveDialog_Handler(object sender, OpenSaveDialogEventArgs e) - { - using (SaveFileDialog dialog = new SaveFileDialog()) - { - dialog.Filter = "Report files (*.frx)|*.frx"; - // get default file name from e.FileName - dialog.FileName = e.FileName; - - // set e.Cancel to false if dialog was succesfully executed - e.Cancel = dialog.ShowDialog() != DialogResult.OK; - // set e.FileName to the selected file name - e.FileName = dialog.FileName; - } - } - - private void CustomOpenReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // load the report from the given e.FileName - e.Report.Load(e.FileName); - } - - private void CustomSaveReport_Handler(object sender, OpenSaveReportEventArgs e) - { - // save the report to the given e.FileName - e.Report.Save(e.FileName); - } - - + Looks up a localized resource of type System.Drawing.Bitmap. + - + - Occurs when previewing a report from the designer. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this event to show own preview window. - - - - environmentSettings1.CustomPreviewReport += new EventHandler(MyPreviewHandler); - - private void MyPreviewHandler(object sender, EventArgs e) - { - Report report = sender as Report; - using (MyPreviewForm form = new MyPreviewForm()) - { - report.Preview = form.previewControl1; - report.ShowPreparedReport(); - form.ShowDialog(); - } - } - - - + - Occurs when getting available table names from the connection. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this handler to filter the list of tables returned by the connection object. - - - This example demonstrates how to hide the table with "Table 1" name from the Data Wizard. - - environmentSettings1.FilterConnectionTables += DesignerSettings_FilterConnectionTables; - - private void DesignerSettings_FilterConnectionTables(object sender, FilterConnectionTablesEventArgs e) - { - if (e.TableName == "Table 1") - e.Skip = true; - } - - - + - Gets or sets the designer settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the preview settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the email settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the hyperlink type. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the hyperlink to external URL such as "http://www.fast-report.com", "mailto:" - or any other system command. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to a given page number. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to a bookmark. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to external report. This report will be run when you follow the hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies hyperlink to this report's page. The page will be run when you follow the hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies a custom hyperlink. No actions performed when you click it, you should handle it - in the object's Click event handler. + Looks up a localized resource of type System.Drawing.Bitmap. - + - This class contains a hyperlink settings. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the kind of hyperlink. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use the Kind property to define hyperlink's behavior. - The hyperlink may be used to navigate to the external url, the page number, - the bookmark defined by other report object, the external report, the other page of this report, - and custom hyperlink. - - + - Gets or sets the expression which value will be used for navigation. + Looks up a localized resource of type System.Drawing.Bitmap. - - Normally you should set the Expression property to - any valid expression that will be calculated when this object is about to print. - The value of an expression will be used for navigation. - If you want to navigate to some fixed data (URL or page number, for example), - use the property instead. - - + - Gets or sets a value that will be used for navigation. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property to specify the fixed data (such as URL, page number etc). If you want to - navigate to some dynamically calculated value, use the property instead. - - + - Gets or sets a value that indicate should be links open in new tab or not. + Looks up a localized resource of type System.Drawing.Bitmap. - - It works for HTML-export only! - - + - Gets or sets an external report file name. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailReport. - When you follow the hyperlink, this report will be loaded and run. - You also may specify the report's parameter in the property. - - + - Gets or sets the name of this report's page. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailPage. - When you follow the hyperlink, the specified page will be executed. It may contain the - detailed report. You also may specify the report's parameter in the - property. - - + - Gets or sets a parameter's name that will be set to hyperlink's value. + Looks up a localized resource of type System.Drawing.Bitmap. - - Use this property if is set to DetailReport or DetailPage. - If you want to pass the hyperlink's value to the report's parameter, specify the - parameter name in this property. This parameter will be set to the hyperlink's value - before running a report. It may be used to display detailed information about clicked item. - It is also possible to pass multiple values to several parameters. If hyperlink's value - contains separators (the separator string can be set in the - property), it will be splitted to several values. That values will be passed to nested parameters - of the ReportParameter (you should create nested parameters by youself). For example, you have - the ReportParameter called "SelectedValue" which has two nested parameters: the first one is - "Employee" and the second is "Category". The hyperlink's value is "Andrew Fuller;Beverages". - It will be splitted to two values: "Andrew Fuller" and "Beverages". The first nested parameter - of the ReportParameter that is "Employee" in our case will be set to "Andrew Fuller"; - the second nested parameter ("Category") will be set to "Beverages". - Note: when you create a parameter in the detailed report, don't forget to set - its DataType property. It is used to convert string values to actual data type. - - - + - Gets or sets a string that will be used as a separator to pass several values - to the external report parameters. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Assigns values from another source. + Looks up a localized resource of type System.Drawing.Bitmap. - Source to assign from. - + - Specifies the set of buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No buttons visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Print" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Open" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Save" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Email" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + + + Looks up a localized resource of type System.Drawing.Bitmap. + + + - The "Find" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The zoom buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Outline" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Page setup" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Edit" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Watermark" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The page navigator buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Close" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Design" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Copy Page" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Delete Page" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - All buttons are visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of export buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No exports visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Prepared" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PDFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "RTFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "HTMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "MHTExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XMLExport" export button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Excel2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Excel2003Document" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Word2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PowerPoint2007Export" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ODSExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ODTExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XPSExport" export button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "CSVExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "DBFExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "TextExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ZplExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "ImageExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "XAMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "SVGExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PPMLExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "PSExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "JsonExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "LaTeXExport" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The All export buttons is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of export in clouds buttons available in the preview. + Looks up a localized resource of type System.Drawing.Bitmap. - + - No exports in clouds visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Box" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Dropbox" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "FastCloud" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Ftp" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "GoogleDrive" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "SkyDrive" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The "Xmpp" button is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - The All export in clouds buttons is visible. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Contains some settings of the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Occurs when the standard preview window opened. + Looks up a localized resource of type System.Drawing.Bitmap. - - You may use this event to change the standard preview window, for example, add an own button to it. - The sender parameter in this event is the PreviewControl. - - + - Gets or sets a set of buttons that will be visible in the preview's toolbar. + Looks up a localized resource of type System.Drawing.Bitmap. - - Here is an example how you can disable the "Print" and "EMail" buttons: - Config.PreviewSettings.Buttons = PreviewButtons.Open | - PreviewButtons.Save | - PreviewButtons.Find | - PreviewButtons.Zoom | - PreviewButtons.Outline | - PreviewButtons.PageSetup | - PreviewButtons.Edit | - PreviewButtons.Watermark | - PreviewButtons.Navigator | - PreviewButtons.Close; - - + - Specifies the set of exports that will be available in the preview's "save" menu. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Specifies the set of exports in clouds that will be available in the preview's "save" menu. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the number of prepared pages that can be stored in the memory cache during preview. + Looks up a localized resource of type System.Drawing.Bitmap. - - Decrease this value if your prepared report contains a lot of pictures. This will - save the RAM memory. - - + - Gets or sets a value indicating whether the preview window is displayed in the Windows taskbar. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets a value indicating whether the preview window should be displayed as a topmost form. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the icon for the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - + - Gets or sets the text for the preview window. + Looks up a localized resource of type System.Drawing.Bitmap. - - If no text is set, the default text "Preview" will be used. - - + - Gets or sets a value indicating whether the fast scrolling method should be used. + The class introduces some menu items specific to the TextObjectBase. - - If you enable this property, the gradient background will be disabled. - - + - Enables or disables the "Print to file" feature in the print dialog. + The "Format" menu item. - + - Gets or sets the initial directory that is displayed by a save file dialog. + The "Allow Expressions" menu item. - + - Initializes a new instance of the PreviewSettings class with default settings. + The "Hide Zeros" menu item. - + - A strongly-typed resource class, for looking up localized strings, etc. + Initializes a new instance of the TextObjectBaseMenu + class with default settings. + The reference to a report designer. - + - Returns the cached ResourceManager instance used by this class. + This class represents the context menu of the . + + This class adds the "Can Break" menu item to the component context menu. + - + - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. + The "Can Break" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the BreakableComponentMenu class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Class represent a smart tag that is used to choose a data column. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the data column name. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a root datasource for the object currently edited. + The DataSourceBase object if found; null otherwise. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a smart tag that is used to choose a data source. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a data source. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Implements the object's editor. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the object's editor. + true if object was succesfully edited. + + This method is called by FastReport when the object is doubleclicked in the designer. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides the "search" functionality in the preview and designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Finds the specified text inside the object. + Text to find. + true to perform case-sensitive search. + true to find whole words only. + Array of character ranges that describes the occurences of text found; + null if text not found. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Draws the highlight to show the text found. + Draw event arguments. + Range of characters to highlight. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The base class for smart tags. + + + "Smart tag" is a little button that appears near the object's top-right corner when we are in the + designer and move the mouse over the object. When you click that button you will see a popup window + where you can set up some properties of the object. FastReport uses smart tags to quickly choose + the datasource (for a band) or data column (for objects). + + + Smart tag is internally a ContextMenuStrip. + + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the underlying context menu. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the report object that invokes this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Called when the menu item is clicked. + + Override this method to define a reaction on the menu item click. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates the smart tag menu items. + + Override this method to create the smart tag menu. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Displays a smart tag at the specified screen location. + + Do not call this method directly. It is called automatically when click on smart tag button. + + Screen location. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. + Report object that owns this smart tag. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a reference to another component in a report. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a value measured in the current report units. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing an expandable object. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Provides a type converter for a property representing a data type. - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + The base class for the context menu of the report component. + + This class represents a context menu of the report component that is displayed when the object + is right-clicked in the designer. This class implements the following actions: Edit, Cut, Copy, + Paste, Delete, Bring to Front, Send to Back. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Name" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Edit" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Cut" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Copy" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Paste" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Delete" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "BringToFront" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "SendToBack" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The reference to the report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a collection of menu items. + + You should add new items to this collection. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + This method is called to reflect changes in the designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's text. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's text. + Click handler. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates a new menu item. + Item's image. + Item's text. + Click handler. + New item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the ComponentBaseMenu class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the report printing mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the default printing mode. One report page produces + one printed paper sheet of the same size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the split mode. Big report page produces several smaller paper sheets. + Use this mode to print A3 report on A4 printer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the scale mode. One or several report pages produce one bigger paper sheet. + Use this mode to print A5 report on A4 printer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the number of report pages printed on one paper sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies one report page per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies two report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies four report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies eight report pages per sheet. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the pages to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print all report pages. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print odd pages only. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print even pages only. - + - Looks up a localized resource of type System.Drawing.Bitmap. + This class contains the printer settings. + It is used in the property. + + Typical use of this class is to setup a printer properties without using the "Print" + dialog. In this case, setup necessary properties and turn off the dialog via the + property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the printer name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the printer name should be saved in a report file. + + If this property is set to true, the printer name will be saved in a report file. + Next time when you open the report, the printer will be automatically selected. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the printing output should be send + to a file instead of a printer. + + Also set the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The name of a file to print the report to. + + This property is used if property is true. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value specifies the page range to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the page number(s) to print. + + This property is used if property is set to PageNumbers. + You can specify the page numbers, separated by commas, or the page ranges. + For example: "1,3,5-12". + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of copies to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating whether the printed document should be collated. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value specifies the pages to print. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines whether to print pages in reverse order. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the duplex mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the paper source. + + This property corresponds to the RAW source number. Default value is 7 which + corresponds to DMBIN_AUTO. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the print mode. + + See the enumeration for details. If you use + the mode other than Default, you must specify the sheet size in the + , properties. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the width of the paper sheet to print on. + + This property is used if the property is not Default. + Specify the paper width in millimeters. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the height of the paper sheet to print on. + + This property is used if the property is not Default. + Specify the paper height in millimeters. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the raw index of a paper size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of pages per printed sheet. + + This property is used if the property is set to Scale. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets an array of printed copy names, such as "Original", "Copy", etc. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies whether to display the "Print" dialog. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Assigns values from another source. + Source to assign from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Resets all settings to its default values. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific + to the ReportComponentBase. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Can Grow" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Can Shrink" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Grow to Bottom" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Hyperlink" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Style" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the ReportComponentBaseMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Alignment" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. If you want to access all + selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns left edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns right edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns centers of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns top edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns bottom edges of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns middles of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same width as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same height as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Makes the selected objects the same size as the first object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Centers the selected objects horizontally. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Centers the selected objects vertically. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Aligns the selected objects to the grid. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Adjusts the size of selected objects to the grid. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Spaces the selected objects horizontally. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Increases horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Decreases horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Removes horizontal spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Spaces the selected objects vertically. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Increases vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Decreases vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Removes vertical spacing between the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Border and Fill" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. + If you want to access all selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the object with simple border is selected. + + When the object has a simple border, you cannot change individual border lines. + Example of such an object is the "Shape" and "Line" objects. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the border operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the fill operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the solid fill color for the selected objects. + Fill color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the fill for the selected objects. + Fill. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the style for the selected objects. + Style name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the hyperlink for the selected objects. + Hyperlink. + Indicates whether to modify the object's appearance. + Indicates whether it is necessary to change designer's modified state. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the CanGrow flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the CanShrink flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the GrowToBottom flag for the selected objects. + Flag value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Toggles the specified border line for the selected objects. + Border line. + Toggle value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border color for the selected objects. + Border color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border width for the selected objects. + Border width. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border style for the selected objects. + Border style. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the border for the selected objects. + Border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the fill editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the border editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the hyperlink editor for the selected objects. + true if editor was closed by the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of objects currently selected in the designer. + + This class is used by the "Text" toolbar. Use methods of this class to perform some + operations on the selected objects. + Note: after calling any method in this class, call the + Designer.SetModified method to reflect changes. + Note: this list contains only objects of type. If you want to access all + selected objects, use the property. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the first selected object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets the number of selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating whether the operations are enabled. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the font name for the selected objects. + Font name. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the font size for the selected objects. + Font size. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Toggles the specified font style for the selected objects. + Font style. + Toggle value. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the horizontal text alignment for tthe selected objects. + Alignment to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the vertical text alignment for tthe selected objects. + Alignment to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the text color for the selected objects. + Text color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the angle for the selected objects. + Angle to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the AutoWidth property value for the selected objects. + Value to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the WordWrap property value for the selected objects. + Value to set. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Sets the highlight conditions for the selected objects. + Highlight conditions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Clears the text of the selected objects. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the highlight editor for the selected objects. + true if editor was closed with the OK button. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific to the TextObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Clear" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Auto Width" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The "Word Wrap" menu item. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the TextObjectMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The class introduces some menu items specific to the TextObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the TextObjectMenu + class with default settings. + The reference to a report designer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Holds the list of selected objects of type. Used by the + . - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that report page is selected. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that report is selected. - + - Looks up a localized resource of type System.Drawing.Bitmap. + the base class for all picture objects - + - Looks up a localized resource of type System.Drawing.Bitmap. + Draw an error image to Graphics g, when the image is designing + + - + + + + + + + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Invokes the object's editor. + true if object was edited succesfully. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the image rotation angle, in degrees. Possible values are 0, 90, 180, 270. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the data column name to get the image from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating that the image should be displayed in grayscale mode. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the path for the image to display in the PictureObject. + + This property may contain the path to the image file as well as external URL. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the databases column - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the separate file - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets a value indicating that the image stored in the Web - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the maximum height of a Picture object, in pixels. + + Use this property to restrict the object size if the property + is set to AutoSize. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the maximum width of a Picture object, in pixels. + + Use this property to restrict the object size if the property + is set to AutoSize. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets padding within the PictureObject. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value indicating whether the PictureObject should display + the error indicator if there is no image in it. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value that specifies how an image is positioned within a PictureObject. - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the alignment of a image in the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Return base size of image, internal use only - + - Looks up a localized resource of type System.Drawing.Bitmap. + Return base size of image, internal use only - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Calculates URI from ImageLocation + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + gets points for transform this image + the box where to draw image + image width + image height + scale horizontal + scale vertical + offset of left + offset of top + out start of vectors + out end of frist vector + out end of second vector - + - Looks up a localized resource of type System.Drawing.Bitmap. + Loads image - + - Looks up a localized resource of type System.Drawing.Bitmap. + Moves the point on specified angle + + + + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Rotates vector on specified angle + + + - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Draws not tiled image + + + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Reset index of image - + - Looks up a localized resource of type System.Drawing.Bitmap. + When auto size was updated, internal use only - + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + The FastReport.dll assembly initializer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Registers all core objects, wizards, export filters. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The FastReport.dll assembly initializer. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Registers all core objects, wizards, export filters. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a collection of bands. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the class with specified owner. + Owner that owns this collection. - + - Looks up a localized resource of type System.Drawing.Bitmap. + The layout of the data band columns. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print columns across then down. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Print columns down then across. - + - Looks up a localized resource of type System.Drawing.Bitmap. + This class holds the band columns settings. It is used in the property. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the number of columns. + + Set this property to 0 or 1 if you don't want to use columns. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + The column width, in pixels. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the layout of the columns. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the minimum row count that must be printed. + + This property is used if the Layout property is set to DownThenAcross. 0 means that + FastReport should calculate the optimal number of rows. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Assigns values from another source. + Source to assign from. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Initializes a new instance of the BandColumns class with default settings. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a set of actions that cannot be performed on the object in the design mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no restrictions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts moving the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts resizing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts modifying the object's properties. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts editing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Restricts deleting the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Hides all properties of the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a set of actions that can be performed on the object in the design mode. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no actions. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows moving the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows resizing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows deleting the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows editing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows changing the Z-order of an object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows moving the object to another parent. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows copying the object to the clipboard. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows drawing the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows grouping the object. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows write children in the preview mode by itself. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows write object's bounds into the report stream. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Allows the "smart tag" functionality. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object's name is global (this is true for all report objects + such as Text, Picture and so on). - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object can display children in the designer's Report Tree window. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies that the object supports mouse wheel in the preview window. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the style of a border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a solid line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of dashes. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of dots. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of a repeating pattern of dash-dot. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a line consisting of a repeating pattern of dash-dot-dot. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies a double line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the sides of a border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies no border lines. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the left border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the right border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the top border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies the bottom border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Specifies all border lines. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a single border line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a color of the line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a style of the line. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a width of the line, in pixels. - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Represents a border around the report object. + + Border consists of four lines. Each line has own color, style and width. Lines are accessible through + , , , properties. + + To turn on and off the lines, use the property. To set the same color, style or width + for each line, use , , properties of the Border. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a color of the border. + + This property actually returns a color of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines whether to draw a shadow. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a shadow width, in pixels. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a shadow color. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a style of the border. + + This property actually returns a style of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a visible lines of a border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a width of the border, in pixels. + + This property actually returns a width of the . When you assign a value + to this property, the value will be set to each border line. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the left line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the top line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the right line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets the bottom line of the border. - + - Looks up a localized resource of type System.Drawing.Bitmap. + Gets or sets a value determines that Border must serialize only one line. + + This property is for internal use only. + - + - Looks up a localized resource of type System.Drawing.Bitmap. + Creates the exact copy of this Border. + A copy of this border. - + + + + + + + - Looks up a localized resource of type System.Drawing.Bitmap. + Serializes the border. + Writer object. + Border property name. + Another Border to compare with. + + This method is for internal use only. + - + - For internal use only. + Draw the border using draw event arguments and specified bounding rectangle. + Draw event arguments. + Bounding rectangle. + + This method is for internal use only. + - + - For internal use only. + Initializes a new instance of the class with default settings. - + - For internal use only. + Base class for report components that can break across pages. - + - For internal use only. + Gets or sets a value that determines if the component can break its contents across pages. - + - For internal use only. + Gets or sets a reference to another similar object that will be used for displaying the + text that not fit in this object. - + + + + + + + - For internal use only. + Breaks the contents of the object. + Object to put the part of content to that does not fit in this object. These two + objects must have the same type. + true if there is enough space in this object to display at least one text line. + + + Do not call this method directly, it is used by the report engine. You should override it if + you are writing a new FastReport object. + + + This method must break the contents of the object. The part of content that fit in current object's + bounds should remain in this object, the part that does not fit should be transferred to breakTo + object. + + - + - For internal use only. + Initializes a new instance of the BreakableComponent class with default settings. - - - - + - For internal use only. + Specifies a line cap style. - + - For internal use only. + Specifies a line without a cap. - + - For internal use only. + Specifies a line with a circle cap. - + - For internal use only. + Specifies a line with a square cap. - + - Required designer variable. + Specifies a line with a diamond cap. - + - Clean up any resources being used. + Specifies a line with an arrow cap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Specifies a start and end line caps. - + - Required designer variable. + Gets or sets a width of the cap. - + - Clean up any resources being used. + Gets or sets a height of the cap. - true if managed resources should be disposed; otherwise, false. - + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Gets or sets a cap style. - + - Required designer variable. + Assigns values from another source. + Source to assign from. - + - Clean up any resources being used. + Creates exact copy of this object. - true if managed resources should be disposed; otherwise, false. + Copy of this object. - + + + + + + + - Required method for Designer support - do not modify - the contents of this method with the code editor. + Serializes the cap settings. + Name of the cap property. + Writer object. + Another cap to compare with. + + This method is for internal use only. + - - - Required designer variable. + + + Initializes a new instance of the CapSettings class with default settings. - - - Clean up any resources being used. + + + Specifies a symbol that will be displayed when a is in the checked state. - true if managed resources should be disposed; otherwise, false. - - - Required method for Designer support - do not modify - the contents of this method with the code editor. + + + Specifies a check symbol. - + - Provides data for the event. + Specifies a diagonal cross symbol. - + - Gets a name of the file to load the report from. + Specifies a plus symbol. - + - The reference to a report. + Specifies a filled rectangle. - + - Initializes a new instance of the class using the specified - file name and the report. + Specifies a symbol that will be displayed when a is in the unchecked state. - The name of the file to load the report from. - The report. - + - Provides data for the event. + Specifies no symbol. - + - Gets an expression. + Specifies a diagonal cross symbol. - + - Gets or sets a object. + Specifies a minus symbol. - + - The reference to a report. + This class represents a column footer band. - + - Initializes a new instance of the class using the specified - file name and the report. + This property is not relevant to this class. - The text of expression. - The name of the file to load the report from. - The report. - + - Represents the method that will handle the event. + This property is not relevant to this class. - The source of the event. - The event data. - + - Represents the method that will handle the event. + Initializes a new instance of the class with default settings. - The source of the event. - The event data. - + - Provides data for the Progress event. + This class represents a column header band. - + - Gets a progress message. + This property is not relevant to this class. - + - Gets the current page number. + This property is not relevant to this class. - + - Gets the number of total pages. + Initializes a new instance of the class with default settings. - + - Initializes a new instance of the class using the specified - message, page number and total number of pages. + Represents a collection of highlight conditions used in the property + of the . - The progress message. - Current page number. - Number of total pages. - + - Represents the method that will handle the Progress event. + Gets or sets the element at the specified index. - The source of the event. - The event data. + Index of an element. + The element at the specified index. - + - Provides data for the DatabaseLogin event. + Adds the specified elements to the end of this collection. + Array of elements to add. - + - Gets or sets the connection string. + Adds an object to the end of this collection. + Object to add. + Index of the added object. - + - Gets or sets an user name. + Inserts an object into this collection at the specified index. + The zero-based index at which value should be inserted. + The object to insert. - + - Gets or sets a password. + Removes the specified object from the collection. + Object to remove. - + - Initializes a new instance of the class using the specified - connection string. + Returns the zero-based index of the first occurrence of an object. - The connection string. + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - Represents the method that will handle the DatabaseLogin event. + Determines whether an element is in the collection. - The source of the event. - The event data. + The object to locate in the collection. + true if object is found in the collection; otherwise, false. - + + + + + + + - Provides data for the AfterDatabaseLogin event. + Copies conditions from another collection. + Collection to copy from. - + + + + + + + - Gets the DbConnection object. + This class represents a data band footer. - + - Initializes a new instance of the class using - the specified connection. + This class represents a header of the data band. - The connection object. - + - Represents the method that will handle the AfterDatabaseLogin event. + Base class for all fills. - The source of the event. - The event data. - + - Provides data for the FilterProperties event. + Creates exact copy of this fill. + Copy of this object. - + - Gets the property descriptor. + Creates the GDI+ Brush object. + Drawing rectangle. + Brush object. - + - Gets or sets a value that indicates whether this property should be skipped. + Creates the GDI+ Brush object with scaling. + Drawing rectangle. + X scaling coefficient. + Y scaling coefficient. + Brush object. - + - Represents the method that will handle the FilterProperties event. + Serializes the fill. - The source of the event. - The event data. + Writer object. + Name of the fill property. + Fill object to compare with. + + This method is for internal use only. + - + - Provides data for the GetPropertyKind event. + Fills the specified rectangle. + Draw event arguments. + Drawing rectangle. - + - Gets the property name. + Class represents the solid fill. - + - Gets the property type. + Gets or sets the fill color. - + + + + + + + + + + + + + + + + + + + - Gets or sets the kind of property. + Initializes the class with Transparent color. - + - Represents the method that will handle the GetPropertyKind event. + Initializes the class with specified color. - The source of the event. - The event data. + - + - Provides data for the GetTypeInstance event. + Class represents the linear gradient fill. - + - Gets the type. + Gets or sets the start color of the gradient. - + - Gets or sets the instance of type. + Gets or sets the end color of the gradient. - + - Represents the method that will handle the GetPropertyKind event. + Gets or sets the angle of the gradient. - The source of the event. - The event data. - + - Specifies the default paper size used when creating a new report. + Gets or sets the focus point of the gradient. + + Value is a floating point value from 0 to 1. + - + - A4 paper (210 x 297 mm). + Gets or sets the gradient contrast. + + Value is a floating point value from 0 to 1. + - + + + + + + + + + + + + + + + + - Letter paper (8.5 x 11 inches, 216 x 279 mm). + Initializes the class with default settings. - + - The class introduces some menu items specific to the TextObjectBase. + Initializes the class with start and end colors. + Start color. + End color. - + - The "Format" menu item. + Initializes the class with start, end colors and angle. + Start color. + End color. + Angle. - + - The "Allow Expressions" menu item. + Initializes the class with start and end colors, angle, focus and contrast. + Start color. + End color. + Angle. + Focus. + Contrast. - + - Initializes a new instance of the TextObjectBaseMenu - class with default settings. + The style of the path gradient. - The reference to a report designer. - + - Represents a collection of the objects. + Elliptic gradient. - + - Gets or sets the element at the specified index. + Rectangular gradient. - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Class represents the path gradient fill. - - + - Adds an object to the end of this collection. + Gets or sets the center color of the gradient. - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + Gets or sets the edge color of the gradient. - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Gets or sets the style of the gradient. - Object to remove. - + + + + + + + + + + + + + + + + - Returns the zero-based index of the first occurrence of an object. + Initializes the class with default settings. - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. - + - Returns the zero-based index of the first occurrence of a style collection with specified name. + Initializes the class with center, edge colors and style. - The style collection name to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. + Center color. + Edge color. + Gradient style. - + - Determines whether an element is in the collection. + Class represents the hatch fill. - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - + - Determines whether a style collection with specified name is in the collection. + Gets or sets the foreground color. - The style collection name to locate in the collection. - true if object is found in the collection; otherwise, false. - + - Gets an array containing all collection items. + Gets or sets the background color. - An array containing all collection items. - + - Serializes the collection. + Gets or sets the hatch style. - Writer object. - - This method is for internal use only. - - + + + + + + + + + + + + + + + + - Deserializes the collection. + Initializes the class with default settings. - Reader object. - - This method is for internal use only. - - + - Saves the collection to a stream. + Initializes the class with foreground, background colors and hatch style. - Stream to save to. + Foreground color. + Background color. + Hatch style. - + - Saves the collection to a file with specified name. + Class represents the glass fill. - File name to save to. - + - Loads the collection from a stream. + Gets or sets the fill color. - Stream to load from. - + - Loads the collection from a file with specified name. + Gets or sets the blend value. - Name of a file. + Value must be between 0 and 1. + - + - Specifies how to display the duplicate values. + Gets or sets a value determines whether to draw a hatch or not. - + + + + + + + + + + + + + + + + + + + - The TextObject can show duplicate values. + Initializes the class with default settings. - + - The TextObject with duplicate value will be hidden. + Initializes the class with given color, blend ratio and hatch style. + Color. + Blend ratio (0..1). + Display the hatch. - + - The TextObject with duplicate value will be shown but with no text. + Class represents the Texture fill. - + - Several TextObject objects with the same value will be merged into one TextObject object. + Gets or sets value, indicating that image should preserve aspect ratio - + - Specifies how the report engine processes the text objects. + Gets or sets the image width - + - Specifies the default process mode. The text object is processed just-in-time. + Gets or sets the image height - + - Specifies that the text object must be processed when the entire report is finished. This mode - can be used to print grand total value (which is normally calculated at the end of report) in the - report title band. + Gets or sets the texture wrap mode - + - Specifies that the text object must be processed when the entire report page is finished. This mode - can be used if the report template consists of several report pages. + Gets or sets the image index - + - Specifies that the text object must be processed when any report page is finished. This mode - can be used to print the page total (which is normally calculated at the page footer) in the - page header band. + Gets or sets the image data - + - Specifies that the text object must be processed when the column is finished. This mode - can be used to print the column total (which is normally calculated at the column footer) in the - column header band. + Image left offset - + - Specifies that the text object must be processed when the data block is finished. This mode can be - used to print a total value in the data header (which is normally available - in the data footer only). + Image top offset - + - Specifies that the text object must be processed when the group is finished. This mode can be - used to print a total value in the group header (which is normally available - in the group footer only). + Sets image data to imageData + input image data - + - Specifies that the text object is processed manually when you call the Engine.ProcessObject - method in the report script. + Set image + input image - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - Represents text outline. + Initializes the class with default texture. - + - Gets or sets a value indicating that outline is enabled. + Initializes the class with specified image. + - + - Enable or disable draw the outline behind of text. + Initializes the class with specified image. + - + - Gets or sets the outline color. + Font descriptor - + - Gets or sets the outline width. + Indicates that the point is the start of a figure. - + - Specifies the style of an outline. + Indicates that the point is one of the two endpoints of a line. - + - Initializes a new instance of the class. + Indicates that the point is an endpoint or control point of a cubic Bézier spline. - + - Initializes a new instance of the class with specified parameters. + Masks all bits except for the three low-order bits, which indicate the point type. - True if outline enabled. - Outline color. - Outline width. - Outline style. - True if outline should be drawn behind text. - + - Copies the content of another TextOutline. + Specifies that the point is a marker. - The TextOutline instance to copy the contents from. - + - Creates the exact copy of this outline. + Specifies that the point is the last point in a closed subpath (figure). - Copy of this outline. - + - Serializes the TextOutline. + FontHeader table - Writer object. - TextOutline property name. - Another TextOutline to compare with. - + - Represents the "Blank Report" wizard. + Define type of font file - - - - + - Represents the "Inherited Report" wizard. + Classic TrueType font - - - - + - Represents the "Label" wizard. + Collection of TrueType fonts - + - Gets a selected label manufacturer. + OpenType font format - + - Gets a selected label name. + GlyphSubstitution table - + - Gets the XML item containing a selected label parameters. + Return true if was applied + + + + - - - - + - Initializes a new instance of the class with the default settings. + Return coverageIndex for ApplyForce or if fail then return -1 + + + - + - Represents the "New Data Source" wizard. + Apply this Substitution with specified coverageIndex, cant be called only after IsApply + + + + - - - - + - Represents the "Standard Report" wizard. + Table with encoded glyphs' outline - - - - + - The base class for all report wizards. + HorizontalMetrix table - - To create own wizard, use this class as a base. All you need is to override - the method. To register a wizard, use the - method. - - + - Runs the wizard. + IndexToLocation table - Report designer. - true if wizard was executed succesfully. - - This method is called when you select a wizard in the "Add New Item" window and - click "Add" button. You should do the work in this method. - - + - Represents the "New Dialog" wizard. + Kerning table - - - - + - Represents the "New Page" wizard. + MaximumProfile table - - - - + - This class represents the context menu of the . + Name table keep human friendly description about font properties, including font names, author and copyright notes - - This class adds the "Can Break" menu item to the component context menu. - - + - The "Can Break" menu item. + OS/2 and Windows Metrics table - + - Initializes a new instance of the BreakableComponentMenu class with default settings. + Description of FontTextMetric structure - + - Specifies a symbol that will be displayed when a is in the checked state. + Description of FontPanose structure - + - Specifies a check symbol. + True Type Font Collectiom - + - Specifies a diagonal cross symbol. + Will be removed soon - + - Specifies a plus symbol. + Different caching strategies - + - Specifies a filled rectangle. + Reference counter - + - Specifies a symbol that will be displayed when a is in the unchecked state. + Progress callback type definition + Progress information - + - Specifies no symbol. + Progress callback event - + - Specifies a diagonal cross symbol. + Open and parse TrueType file + + + - + - Specifies a minus symbol. + Find all fonts files in directory and it's subdirectories + Directory where find fond files + Defines file which collect found fonts - + - The layout of the data band columns. + Get TrueType font from static collection + String which identifies font - family name + "-B" for bold and "-I" for italic + - + - Print columns across then down. + Get font by its name and bold/italic attributes + + TrueType font object - + - Print columns down then across. + Workaround function for avoid font duplicates + if true then font append to collection, if false then font append to hash + Internal font structure + This parameter defines path to font file if file append to hash. Not used otherwise - + - This class holds the band columns settings. It is used in the property. + Parse raw image of font data and create TrueTypeFont objects from this image + Defines font or collections + Pointer to memory of raw font data + - + - Gets or sets the number of columns. + Build list of fonts - - Set this property to 0 or 1 if you don't want to use columns. - + Optional path to font.list folder. - + - The column width, in pixels. + Interface for TrueTypeFont object - + - Gets or sets the layout of the columns. + TrueTypeFont object - + - Gets or sets the minimum row count that must be printed. + Get or set current script - - This property is used if the Layout property is set to DownThenAcross. 0 means that - FastReport should calculate the optimal number of rows. - - + - Assigns values from another source. + Get or set current Language - Source to assign from. - + - Initializes a new instance of the BandColumns class with default settings. + Get available scripts - + - Represents a collection of bands. + Get available languages for script + + - + - Gets or sets the element at the specified index. + Get available features for language and script - Index of an element. - The element at the specified index. + + + - + - Initializes a new instance of the class with default settings. + Prepare tables for drawing, subsetting and so on + always true - + - Initializes a new instance of the class with specified owner. + Return raw image of the font - Owner that owns this collection. + Array of font bytes - + - Specifies a set of actions that cannot be performed on the object in the design mode. + Cut some information from TTF file to reduce its size + List of character codes to preserve them in font + If true then ignore CMAP table + - + - Specifies no restrictions. + Parse font supplement tables which store properties of the font - + - Restricts moving the object. + Get unique font identifier + - + - Restricts resizing the object. + Create glyph outline assigned to specific position + unicode character which will be drawn + size of the character + position of outline + outline of character - + - Restricts modifying the object's properties. + Get glyph's outline + unicode charter + outline image size + - + - Restricts editing the object. + Create outline for group of characters + text as array of glyph's indexes + position of text + font size + text in form of outline vectors - + - Restricts deleting the object. + Create outline for text string + text which will be transformed to outline + position of text + font size in px + text in form of outline vectors - + + + + - Hides all properties of the object. + Constructor of TrueTypeFont object + The start of RAW image of font or font collection + Actual address of font within RAW image + Reference count emulation - + - Specifies a set of actions that can be performed on the object in the design mode. + Description of SCRIPT_STATE structure - + - Specifies no actions. + data - + - Allows moving the object. + uBidiLevel - + - Allows resizing the object. + SetRtl - + - Allows deleting the object. + Description of SCRIPT_ANALYSIS structure - + - Allows editing the object. + data - + - Allows changing the Z-order of an object. + state - + - Allows moving the object to another parent. + Description of SCRIPT_CONTROL structure - + - Allows copying the object to the clipboard. + data - + - Allows drawing the object. + Description of SCRIPT_DIGITSUBSTITUTE structure - + - Allows grouping the object. + NationalDigitLanguage - + - Allows write children in the preview mode by itself. + TraditionalDigitLanguage - + - Allows write object's bounds into the report stream. + DigitSubstitute - + - Allows the "smart tag" functionality. + dwReserved - + - Specifies that the object's name is global (this is true for all report objects - such as Text, Picture and so on). + Description of SCRIPT_ITEM structure - + - Specifies that the object can display children in the designer's Report Tree window. + iCharPos - + - Specifies that the object supports mouse wheel in the preview window. + analysis - + - Represents a collection of highlight conditions used in the property - of the . + Description of SCRIPT_VISATTR structure - + - Gets or sets the element at the specified index. + data - Index of an element. - The element at the specified index. - + - Adds the specified elements to the end of this collection. + Description of GOFFSET structure - Array of elements to add. - + - Adds an object to the end of this collection. + du - Object to add. - Index of the added object. - + - Inserts an object into this collection at the specified index. + dv - The zero-based index at which value should be inserted. - The object to insert. - + - Removes the specified object from the collection. + Description of ABC structure - Object to remove. - + - Returns the zero-based index of the first occurrence of an object. + abcA - The object to locate in the collection. - The zero-based index of the first occurrence of value within the entire collection, if found; - otherwise, -1. - + - Determines whether an element is in the collection. + abcB - The object to locate in the collection. - true if object is found in the collection; otherwise, false. - - - - - - - + - Copies conditions from another collection. + abcC - Collection to copy from. - - - - - - - + - Class represent a smart tag that is used to choose a data column. + Description of FontRect structure - + - Gets or sets the data column name. + Description of FontPoint structure - - - - + - Gets a root datasource for the object currently edited. + Description of OutlineTextMetric structure - The DataSourceBase object if found; null otherwise. - + - Initializes a new instance of the class with default settings. + Emulation of Uniscribe GetOutlineTextMetrics - Report object that owns this smart tag. + Reference to metric structure - + - Represents a smart tag that is used to choose a data source. + Translate text to positions of glyphs in glyph tables and glyphs width + + size in px + + + + - + - Gets or sets a data source. + Destructor of TrueTypeFont object - - - - + - Initializes a new instance of the class with default settings. + Base class which is parent of any table in TrueType font or collection - Report object that owns this smart tag. - + - Base class for report components that can break across pages. + - + - Gets or sets a value that determines if the component can break its contents across pages. + + + - + - Gets or sets a reference to another similar object that will be used for displaying the - text that not fit in this object. + + + - - - - - + + + + + + - + - Breaks the contents of the object. + - Object to put the part of content to that does not fit in this object. These two - objects must have the same type. - true if there is enough space in this object to display at least one text line. - - - Do not call this method directly, it is used by the report engine. You should override it if - you are writing a new FastReport object. - - - This method must break the contents of the object. The part of content that fit in current object's - bounds should remain in this object, the part that does not fit should be transferred to breakTo - object. - - + + - + - Initializes a new instance of the BreakableComponent class with default settings. + + + - + - Implements the object's editor. + + + + - + - Invokes the object's editor. + - true if object was succesfully edited. - - This method is called by FastReport when the object is doubleclicked in the designer. - + + + - + - Represents a single highlight condition used by the property - of the . + Defines how boolean values are formatted and displayed. - + - Gets or sets a highlight expression. + Gets or sets a string that will be displayed if value is false. - - This property can contain any valid boolean expression. If value of this expression is true, - the fill and font settings will be applied to the TextObject. - - + - Gets or sets the visibility flag. + Gets or sets a string that will be displayed if value is true. - - If this property is set to false, the Text object will be hidden if the - condition is met. - - + - + - - - Creates exact copy of this condition. - - A copy of this condition. - - + - + - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the BooleanFormat class with default settings. - + - Provides the "search" functionality in the preview and designer. + Defines how currency values are formatted and displayed. - + - Finds the specified text inside the object. + Gets or sets a value that determines whether to use system locale settings to format a value. - Text to find. - true to perform case-sensitive search. - true to find whole words only. - Array of character ranges that describes the occurences of text found; - null if text not found. - + - Draws the highlight to show the text found. + Gets or sets the number of decimal places to use in currency values. - Draw event arguments. - Range of characters to highlight. - + - This class contains the page columns settings. - It is used in the property. + Gets or sets the string to use as the decimal separator in currency values. - + - Gets or sets the number of columns. + Gets or sets the string that separates groups of digits to the left of the decimal in currency values. - - Set this property to 0 or 1 if you don't want to use columns. - - + - Gets or sets the column width. + Gets or sets the string to use as the currency symbol. - + - Gets or sets a list of column starting positions. + Gets or sets the format pattern for positive currency values. - - Each value represents a column starting position measured in the millimeters. + This property can have one of the values in the following table. + The symbol "$" is the CurrencySymbol and n is a number. + + ValueAssociated Pattern + 0$n + 1n$ + 2$ n + 3n $ + - - - Assigns values from another source. - - Source to assign from. - - + - The base class for smart tags. + Gets or sets the format pattern for negative currency values. - - - "Smart tag" is a little button that appears near the object's top-right corner when we are in the - designer and move the mouse over the object. When you click that button you will see a popup window - where you can set up some properties of the object. FastReport uses smart tags to quickly choose - the datasource (for a band) or data column (for objects). - - - Smart tag is internally a ContextMenuStrip. - + This property can have one of the values in the following table. + The symbol "$" is the CurrencySymbol and n is a number. + + ValueAssociated Pattern + 0 ($n) + 1 -$n + 2 $-n + 3 $n- + 4 (n$) + 5 -n$ + 6 n-$ + 7 n$- + 8 -n $ + 9 -$ n + 10n $- + 11$ n- + 12$ -n + 13n- $ + 14($ n) + 15(n $) + - - - Gets the underlying context menu. - + + - - - Gets the report object that invokes this smart tag. - + + - - - Gets the report designer. - + + - + + + + - Called when the menu item is clicked. + Initializes a new instance of the CurrencyFormat class with default settings. - - Override this method to define a reaction on the menu item click. - - + - Creates the smart tag menu items. + Represents a format that uses the Format string to display values. - - Override this method to create the smart tag menu. - - + - Displays a smart tag at the specified screen location. + Gets or sets a format string. - Do not call this method directly. It is called automatically when click on smart tag button. + Default format is "G". For example, if you want to format a date, use the following + format string: "MM/dd/yyyy". See the System.String.Format method for list + of possible format strings. - Screen location. - - - Initializes a new instance of the class with default settings. - - Report object that owns this smart tag. + + + + + + + + + + + - + - Represents a sort condition used in the . + Initializes a new instance of the CustomFormat class with default settings. - + - Gets or sets an expression used to sort data band rows. + Defines how date values are formatted and displayed. - - This property can contain any valid expression. - - - - Gets or sets a value indicating that sort must be performed in descending order. - + + - + - Serializes the class. + Initializes a new instance of the DateFormat class with default settings. - Writer object. - - This method is for internal use only. - - + - Deserializes the class. + Base class for all formats. - Reader object. - This method is for internal use only. + The format is used to format expression value in a object. - + - Initializes a new instance of the class with default settings. + Gets the short format name (e.g. without a "Format" suffix). - + - Initializes a new instance of the class with specified expression. + Creates exact copy of this format. + The copy of this format. - + - Initializes a new instance of the class with specified expression and sort order. + Formats the specified value. + The value to format. + The string that represents the formatted value. - + + + + + + + - Represents a collection of sort conditions used in the . + Represents a collection of formats used by the and + objects. - + Gets or sets the element at the specified index. Index of an element. The element at the specified index. - + Adds the specified elements to the end of this collection. - + Array of elements to add. - + Adds an object to the end of this collection. Object to add. Index of the added object. - + Inserts an object into this collection at the specified index. The zero-based index at which value should be inserted. The object to insert. - + Removes the specified object from the collection. Object to remove. - + Returns the zero-based index of the first occurrence of an object. @@ -44078,901 +44792,1098 @@ The zero-based index of the first occurrence of value within the entire collection, if found; otherwise, -1. - + Determines whether an element is in the collection. The object to locate in the collection. true if object is found in the collection; otherwise, false. - + - + - + - Assigns values from another collection. + Copies formats from another collection. - Collection to assign from. + Collection to copy from. - - - Specifies the style of a border line. - + + - - - Specifies a solid line. - + + - + - Specifies a line consisting of dashes. + Represents a format used to display values with no formatting. - + + + + + + + + + + + + + - Specifies a line consisting of dots. + Defines how numeric values are formatted and displayed. - + - Specifies a line consisting of a repeating pattern of dash-dot. + Gets or sets a value that determines whether to use system locale settings to format a value. - + - Specifies a line consisting of a repeating pattern of dash-dot-dot. + Gets or sets the number of decimal places to use in numeric values. - + - Specifies a double line. + Gets or sets the string to use as the decimal separator in numeric values. - + - Specifies the sides of a border. + Gets or sets the string that separates groups of digits to the left of the decimal in numeric values. - + - Specifies no border lines. + Gets or sets the format pattern for negative numeric values. + This property can have one of the values in the following table. + The symbol n is a number. + + ValueAssociated Pattern + 0(n) + 1-n + 2- n + 3n- + 4n - + + - + + + + + + + + + + + + + - Specifies the left border line. + Initializes a new instance of the NumberFormat class with default settings. - + - Specifies the right border line. + Defines how percent values are formatted and displayed. - + - Specifies the top border line. + Gets or sets a value that determines whether to use system locale settings to format a value. - + - Specifies the bottom border line. + Gets or sets the number of decimal places to use in percent values. - + - Specifies all border lines. + Gets or sets the string to use as the decimal separator in percent values. - + - Represents a single border line. + Gets or sets the string that separates groups of digits to the left of the decimal in percent values. - + - Gets or sets a color of the line. + Gets or sets the string to use as the percent symbol. - + - Gets or sets a style of the line. + Gets or sets the format pattern for positive percent values. + This property can have one of the values in the following table. + The symbol "%" is the PercentSymbol and n is a number. + + ValueAssociated Pattern + 0n % + 1n% + 2%n + 3% n + + - + - Gets or sets a width of the line, in pixels. + Gets or sets the format pattern for negative percent values. + This property can have one of the values in the following table. + The symbol "%" is the PercentSymbol and n is a number. + + ValueAssociated Pattern + 0 -n % + 1 -n% + 2 -%n + 3 %-n + 4 %n- + 5 n-% + 6 n%- + 7 -%n + 8 n %- + 9 % n- + 10% -n + 11n- % + + - + - + - + + + + + + + - Represents a border around the report object. + Initializes a new instance of the PercentFormat class with default settings. - - Border consists of four lines. Each line has own color, style and width. Lines are accessible through - , , , properties. - - To turn on and off the lines, use the property. To set the same color, style or width - for each line, use , , properties of the Border. - - + - Gets or sets a color of the border. + Defines how time values are formatted and displayed. - - This property actually returns a color of the . When you assign a value - to this property, the value will be set to each border line. - - + + + + - Gets or sets a value determines whether to draw a shadow. + Initializes a new instance of the TimeFormat class with default settings. - + - Gets or sets a shadow width, in pixels. + Based on code of Stefan Bцther, xprocs@hotmail.de - + - Gets or sets a shadow color. + Contains standard functions registered in the "Data" window. - + - Gets or sets a style of the border. + Returns the larger of two 32-bit signed integers. - - This property actually returns a style of the . When you assign a value - to this property, the value will be set to each border line. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets a visible lines of a border. + Returns the larger of two 64-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets a width of the border, in pixels. + Returns the larger of two single-precision floating-point numbers. - - This property actually returns a width of the . When you assign a value - to this property, the value will be set to each border line. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the left line of the border. + Returns the larger of two double-precision floating-point numbers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the top line of the border. + Returns the larger of two decimal numbers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is larger. - + - Gets or sets the right line of the border. + Returns the smaller of two 32-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Gets or sets the bottom line of the border. + Returns the smaller of two 64-bit signed integers. + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Gets or sets a value determines that Border must serialize only one line. + Returns the smaller of two single-precision floating-point numbers. - - This property is for internal use only. - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Creates the exact copy of this Border. + Returns the smaller of two double-precision floating-point numbers. - A copy of this border. - - - + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - - + + + Returns the smaller of two decimal numbers. + + The first of two values to compare. + The second of two values to compare. + Parameter val1 or val2, whichever is smaller. - + - Serializes the border. + Returns an integer value representing the character code corresponding to a character. - Writer object. - Border property name. - Another Border to compare with. - - This method is for internal use only. - + Character to convert. + The character code. - + - Draw the border using draw event arguments and specified bounding rectangle. + Returns the character associated with the specified character code. - Draw event arguments. - Bounding rectangle. - - This method is for internal use only. - + Character code to convert. + The character. - + - Initializes a new instance of the class with default settings. + Inserts a specified string at a specified index position in the original string. + The original string. + The index position of the insertion. + The string to insert. + A new string. - + - Specifies a line cap style. + Gets the number of characters in a string. + The original string. + The number of characters. - + - Specifies a line without a cap. + Converts a specified string to lowercase. + The string to convert. + A string in lowercase. - + - Specifies a line with a circle cap. + Right-aligns the characters in a string, padding with spaces on the left for a specified total length. + The original string. + The number of characters in the resulting string. + Right-aligned string, padded on the left with spaces. - + - Specifies a line with a square cap. + Right-aligns the characters in a string, padding on the left with a specified character + for a specified total length. + The original string. + The number of characters in the resulting string. + A padding character. + Right-aligned string, padded on the left with padding characters. - + - Specifies a line with a diamond cap. + Left-aligns the characters in a string, padding with spaces on the right, for a specified total length. + The original string. + The number of characters in the resulting string. + Left-aligned string, padded on the right with spaces. - + - Specifies a line with an arrow cap. + Left-aligns the characters in a string, padding on the right with a specified character, + for a specified total length. + The original string. + The number of characters in the resulting string. + A padding character. + Left-aligned string, padded on the right with padding characters. - + - Specifies a start and end line caps. + Converts the specified string to titlecase. + The string to convert. + A new string. - + - Gets or sets a width of the cap. + Deletes all the characters from a string beginning at a specified position. + The original string. + The position to begin deleting characters. + A new string. - + - Gets or sets a height of the cap. + Deletes a specified number of characters from a string beginning at a specified position. + The original string. + The position to begin deleting characters. + The number of characters to delete. + A new string. - + - Gets or sets a cap style. + Replaces all occurrences of a specified string in the original string, with another specified string. + The original string. + A string to be replaced. + A string to replace all occurrences of oldValue. + A new string. - + - Assigns values from another source. + Retrieves a substring from the original string, starting at a specified character position. - Source to assign from. + The original string. + The starting character position of a substring. + A new string. - + - Creates exact copy of this object. + Retrieves a substring from the original string, starting at a specified character position, + with a specified length. - Copy of this object. + The original string. + The starting character position of a substring. + The number of characters in the substring. + A new string. - - + + + Removes all occurrences of white space characters from the beginning and end of the original string. + + The original string. + A new string. - - + + + Converts a specified string to uppercase. + + The string to convert. + A string in uppercase. - + - Serializes the cap settings. + Adds the specified number of days to the original date. - Name of the cap property. - Writer object. - Another cap to compare with. - - This method is for internal use only. - + The original date. + A number of whole and fractional days. + A new DateTime value. - + - Initializes a new instance of the CapSettings class with default settings. + Adds the specified number of hours to the original date. + The original date. + A number of whole and fractional hours. + A new DateTime value. - + - This class represents a column footer band. + Adds the specified number of minutes to the original date. + The original date. + A number of whole and fractional minutes. + A new DateTime value. - + - This property is not relevant to this class. + Adds the specified number of months to the original date. + The original date. + A number of months. + A new DateTime value. - + - This property is not relevant to this class. + Adds the specified number of seconds to the original date. + The original date. + A number of whole and fractional seconds. + A new DateTime value. - + - Initializes a new instance of the class with default settings. + Adds the specified number of years to the original date. + The original date. + A number of years. + A new DateTime value. - + - This class represents a column header band. + Subtracts the specified date and time from the original date. + The original date. + The date and time to subtract. + A TimeSpan interval between two dates. - + - This property is not relevant to this class. + Initializes a new instance of the DateTime. + The year. + The month. + The day. + A new DateTime value. - + - This property is not relevant to this class. + Gets the day of the month. + The date value. + The day component. - + - Initializes a new instance of the class with default settings. + Gets the localized name of the day of the week. + The date value. + The name of the day of the week. - + - This class represents a data band footer. + Gets the day of the year. + The date value. + The day of the year. - + - This class represents a header of the data band. + Returns the number of days in the specified month and year. + The year. + The month. + The number of days in month for the specified year. - + - Base class for all fills. + Gets the hour component of the date. + The date. + The hour component. - + - Creates exact copy of this fill. + Gets the minute component of the date. - Copy of this object. + The date. + The minute component. - + - Creates the GDI+ Brush object. + Gets the month component of the date. - Drawing rectangle. - Brush object. + The date. + The month component. - + - Serializes the fill. + Gets the localized month name. - Writer object. - Name of the fill property. - Fill object to compare with. - - This method is for internal use only. - + The month number. + The month name. - + - Fills the specified rectangle. + Gets the seconds component of the date. - Draw event arguments. - Drawing rectangle. + The date. + The seconds component. - + - Class represents the solid fill. + Gets the week of the year. + The date value. + The week of the year. - + - Gets or sets the fill color. + Gets the year component of the date. + The date. + The year component. - - - - - - - - - - - - - - - - - - - + - Initializes the class with Transparent color. + Replaces the format item in a specified String with the text equivalent of the value of a + corresponding Object instance in a specified array. + A String containing zero or more format items. + An Object array containing zero or more objects to format. + A copy of format in which the format items have been replaced by the String equivalent of the corresponding instances of Object in args. - + - Initializes the class with specified color. + Returns a string formatted as a currency value. - + The value to format. + The formatted string. - + - Class represents the linear gradient fill. + Returns a string formatted as a currency value with specified number of decimal digits. + The value to format. + Number of decimal digits. + The formatted string. - + - Gets or sets the start color of the gradient. + Returns a string formatted as a date/time value. + The value to format. + The formatted string. - + - Gets or sets the end color of the gradient. + Returns a string formatted as a date/time value. + The value to format. + The format specifier, one of the + "Long Date", "Short Date", "Long Time", "Short Time" values. + The formatted string. - + - Gets or sets the angle of the gradient. + Returns a string formatted as a numeric value. + The value to format. + The formatted string. - + - Gets or sets the focus point of the gradient. + Returns a string formatted as a numeric value with specified number of decimal digits. - - Value is a floating point value from 0 to 1. - + The value to format. + Number of decimal digits. + The formatted string. - + - Gets or sets the gradient contrast. + Returns a string formatted as a percent value. - - Value is a floating point value from 0 to 1. - - - - - - - - - - - - - - - - + The value to format. + The formatted string. - + - Initializes the class with default settings. + Returns a string formatted as a percent value with specified number of decimal digits. + The value to format. + Number of decimal digits. + The formatted string. - + - Initializes the class with start and end colors. + Converts a numeric value to Roman string representation. - Start color. - End color. + Integer value in range 0-3998. + The string in Roman form. - + - Initializes the class with start, end colors and angle. + Converts a currency value to an english (US) string representation of that value. - Start color. - End color. - Angle. + The currency value to convert. + The string representation of the specified value. - + - Initializes the class with start and end colors, angle, focus and contrast. + Converts a currency value to an english (US) string representation of that value, + using the specified currency. - Start color. - End color. - Angle. - Focus. - Contrast. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - The style of the path gradient. + Converts a numeric value to an english (US) string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - + - Elliptic gradient. + Converts a currency value to an english (GB) string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Rectangular gradient. + Converts a currency value to an english (GB) string representation of that value, + using the specified currency. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Class represents the path gradient fill. + Converts a numeric value to an english (GB) string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - + - Gets or sets the center color of the gradient. + Converts a currency value to a spanish string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Gets or sets the edge color of the gradient. + Converts a currency value to a spanish string representation of that value, + using the specified currency. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Gets or sets the style of the gradient. + Converts a numeric value to a spanish string representation of that value. + The numeric value to convert. + The name in singular form, for example "page". + The name in plural form, for example "pages". + The string representation of the specified value. - - - - - - - - - - - - - - - - + - Initializes the class with default settings. + Converts a currency value to a russian string representation of that value. + The currency value to convert. + The string representation of the specified value. - + - Initializes the class with center, edge colors and style. + Converts a currency value to a russian string representation of that value, + using the specified currency. - Center color. - Edge color. - Gradient style. + The currency value to convert. + The 3-digit ISO name of the currency, for example "EUR". + The string representation of the specified value. - + - Class represents the hatch fill. + Converts a numeric value to a russian string representation of that value. + The numeric value to convert. + True if the name is of male gender. + The name in singular form, for example "страница". + The name in plural form, for example "страницы". + The name in plural form, for example "страниц". + The string representation of the specified value. - + - Gets or sets the foreground color. + Selects and returns a value from a list of arguments. + A value between 1 and the number of elements passed in the "choice" argument. + Object parameter array. + One of the values in the "choice" argument. - + - Gets or sets the background color. + Returns one of two objects, depending on the evaluation of an expression. + The expression you want to evaluate. + Returned if Expression evaluates to True. + Returned if Expression evaluates to False. + Either truePart os falsePart. - + - Gets or sets the hatch style. + Evaluates a list of expressions and returns a value corresponding to the first + expression in the list that is True. + Parameter array consists of paired expressions and values. + The value corresponding to an expression which returns true. - - - - - - - - + + + Checks if the specified object is null. + + The report instance. + Either a name of DB column, or a parameter name, or a total name to check. + true if the object's value is null. - - + + + Represents a group footer band. + - - + + + Specifies a sort order. + + + This enumeration is used in the group header and in the "Matrix" object. + - + - Initializes the class with default settings. + Specifies no sort (natural order). - + - Initializes the class with foreground, background colors and hatch style. + Specifies an ascending sort order. - Foreground color. - Background color. - Hatch style. - + - Class represents the glass fill. + Specifies a descending sort order. - + - Gets or sets the fill color. + Represents a single highlight condition used by the property + of the . - + - Gets or sets the blend value. + Gets or sets a highlight expression. - Value must be between 0 and 1. + + This property can contain any valid boolean expression. If value of this expression is true, + the fill and font settings will be applied to the TextObject. - + - Gets or sets a value determines whether to draw a hatch or not. + Gets or sets the visibility flag. + + If this property is set to false, the Text object will be hidden if the + condition is met. + - + - + - - + + + Creates exact copy of this condition. + + A copy of this condition. - + - + - - + + + Initializes a new instance of the class with default settings. + - + - Initializes the class with default settings. + Specifies the hyperlink type. - + - Initializes the class with given color, blend ratio and hatch style. + Specifies the hyperlink to external URL such as "http://www.fast-report.com", "mailto:" + or any other system command. - Color. - Blend ratio (0..1). - Display the hatch. - + - The base class for the context menu of the report component. + Specifies hyperlink to a given page number. - - This class represents a context menu of the report component that is displayed when the object - is right-clicked in the designer. This class implements the following actions: Edit, Cut, Copy, - Paste, Delete, Bring to Front, Send to Back. - - + - The "Name" menu item. + Specifies hyperlink to a bookmark. - + - The "Edit" menu item. + Specifies hyperlink to external report. This report will be run when you follow the hyperlink. - + - The "Cut" menu item. + Specifies hyperlink to this report's page. The page will be run when you follow the hyperlink. - + - The "Copy" menu item. + Specifies a custom hyperlink. No actions performed when you click it, you should handle it + in the object's Click event handler. - + - The "Paste" menu item. + This class contains a hyperlink settings. - + - The "Delete" menu item. + Gets or sets the kind of hyperlink. + + Use the Kind property to define hyperlink's behavior. + The hyperlink may be used to navigate to the external url, the page number, + the bookmark defined by other report object, the external report, the other page of this report, + and custom hyperlink. + - + - The "BringToFront" menu item. + Gets or sets the expression which value will be used for navigation. + + Normally you should set the Expression property to + any valid expression that will be calculated when this object is about to print. + The value of an expression will be used for navigation. + If you want to navigate to some fixed data (URL or page number, for example), + use the property instead. + - + - The "SendToBack" menu item. + Gets or sets a value that will be used for navigation. + + Use this property to specify the fixed data (such as URL, page number etc). If you want to + navigate to some dynamically calculated value, use the property instead. + - + - The reference to the report designer. + Gets or sets a value that indicate should be links open in new tab or not. + + It works for HTML-export only! + - + - Gets a collection of menu items. + Gets or sets an external report file name. - You should add new items to this collection. + Use this property if is set to DetailReport. + When you follow the hyperlink, this report will be loaded and run. + You also may specify the report's parameter in the property. - + - This method is called to reflect changes in the designer. + Gets or sets the name of this report's page. + + Use this property if is set to DetailPage. + When you follow the hyperlink, the specified page will be executed. It may contain the + detailed report. You also may specify the report's parameter in the + property. + - + - Creates a new menu item. + Gets or sets a parameter's name that will be set to hyperlink's value. - Item's text. - New item. + + Use this property if is set to DetailReport or DetailPage. + If you want to pass the hyperlink's value to the report's parameter, specify the + parameter name in this property. This parameter will be set to the hyperlink's value + before running a report. It may be used to display detailed information about clicked item. + It is also possible to pass multiple values to several parameters. If hyperlink's value + contains separators (the separator string can be set in the + property), it will be splitted to several values. That values will be passed to nested parameters + of the ReportParameter (you should create nested parameters by youself). For example, you have + the ReportParameter called "SelectedValue" which has two nested parameters: the first one is + "Employee" and the second is "Category". The hyperlink's value is "Andrew Fuller;Beverages". + It will be splitted to two values: "Andrew Fuller" and "Beverages". The first nested parameter + of the ReportParameter that is "Employee" in our case will be set to "Andrew Fuller"; + the second nested parameter ("Category") will be set to "Beverages". + Note: when you create a parameter in the detailed report, don't forget to set + its DataType property. It is used to convert string values to actual data type. + + - + - Creates a new menu item. + Gets or sets a string that will be used as a separator to pass several values + to the external report parameters. - Item's text. - Click handler. - New item. - + - Creates a new menu item. + Assigns values from another source. - Item's image. - Item's text. - Click handler. - New item. + Source to assign from. - + - Initializes a new instance of the ComponentBaseMenu class with default settings. + Provides the serialize/deserialize functionality. - The reference to a report designer. - + - Represents a cache of graphics objects such as pens, brushes, fonts and text formats. + Serializes the object. - - Cache holds all used graphics objects. There is no need to dispose objects returned - by GetXXX calls. - - This example demonstrates how to use graphic cache. - - public void Draw(FRPaintEventArgs e) - { - Brush brush = e.Cache.GetBrush(BackColor); - Pen pen = e.Cache.GetPen(BorderColor, 1, BorderStyle); - e.Graphics.FillRectangle(brush, Bounds); - e.Graphics.DrawRectangle(pen, Bounds); - } - - + Writer object. - + - Gets a pen with specified settings. + Deserializes the object. - Color of a pen. - Width of a pen. - Dash style of a pen. - The Pen object. + Reader object. - + - Gets a pen with specified settings. + Implement this interface if your object can contain list of child objects. - Color of a pen. - Width of a pen. - Dash style of a pen. - Line join of a pen. - The Pen object. - + - Gets a brush with specified color. + Gets a value indicating that this object can contain the specified child object. - Color of a brush. - The SolidBrush object. + Child object. + true if this object can contain the specified child object; otherwise, false. - + - Gets a font with specified settings. + Gets a list of child objects. - Name of a font. - Size of a font. - Style of a font. - The Font object. + List to fill with values. - + - Gets a string format with specified settings. + Adds a child object to this object's childs. - Text alignment information on the vertical plane. - Line alignment on the horizontal plane. - StringTrimming enumeration. - StringFormatFlags enumeration that contains formatting information. - The number of spaces between the beginning of a line of text and the first tab stop. - Distance between tab stops. - The StringFormat object. + Object to add. - + - Disposes resources used by this object. + Removes a specified object from this object's childs. + - + - Initializes a new instance of the GraphicCache class with default settings. + Returns z-order of the specified child object. + Child object. + Z-order of the specified object. + + This method must return the index of a specified child object in the internal child list. + - + - Represents a group footer band. + Sets the z-order of the specified object. + Child object. + New Z-order. + + This method must place the specified child object at the specified position in the internal child list. + - + - Specifies a sort order. + Updates the children layout when the size of this object is changed by dx, dy values. + X delta. + Y delta. - This enumeration is used in the group header and in the "Matrix" object. + This method must update positions/sizes of child objects whose Dock or Anchor properties + are set to non-default values. - + - Specifies no sort (natural order). + Holds the list of objects of type. - + - Specifies an ascending sort order. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Specifies a descending sort order. + Initializes a new instance of the class with default settings. + + + + + Initializes a new instance of the class with specified owner. @@ -44995,273 +45906,239 @@ Initializes a new instance of the class with default settings. - + - Represents a page footer band. + Holds the list of objects of type. - + - This property is not relevant to this class. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - This property is not relevant to this class. + Initializes a new instance of the class with default settings. - + - Initializes a new instance of the class with default settings. + Initializes a new instance of the class with specified owner. - + - Represents a page header band. + This class contains the page columns settings. + It is used in the property. - + - This property is not relevant to this class. + Gets or sets the number of columns. + + Set this property to 0 or 1 if you don't want to use columns. + - + - This property is not relevant to this class. + Gets or sets the column width. - + - Initializes a new instance of the class with default settings. + Gets or sets a list of column starting positions. + + Each value represents a column starting position measured in the millimeters. + - + - Specifies the report printing mode. + Assigns values from another source. + Source to assign from. - + - Specifies the default printing mode. One report page produces - one printed paper sheet of the same size. + Represents a page footer band. - + - Specifies the split mode. Big report page produces several smaller paper sheets. - Use this mode to print A3 report on A4 printer. + This property is not relevant to this class. - + - Specifies the scale mode. One or several report pages produce one bigger paper sheet. - Use this mode to print A5 report on A4 printer. + This property is not relevant to this class. - + - Specifies the number of report pages printed on one paper sheet. + Initializes a new instance of the class with default settings. - + - Specifies one report page per sheet. + Represents a page header band. - + - Specifies two report pages per sheet. + This property is not relevant to this class. - + - Specifies four report pages per sheet. + This property is not relevant to this class. - + - Specifies eight report pages per sheet. + Initializes a new instance of the class with default settings. - + - Specifies the pages to print. + Specifies the alignment of a image in the border. - + - Print all report pages. + Specifies that image is not aligned in the layout rectangle. - + - Print odd pages only. + Specifies that image is aligned in the top-left of the layout rectangle. - + - Print even pages only. + Specifies that image is aligned in the top-center of the layout rectangle. - + - This class contains the printer settings. - It is used in the property. + Specifies that image is aligned in the top-right of the layout rectangle. - - Typical use of this class is to setup a printer properties without using the "Print" - dialog. In this case, setup necessary properties and turn off the dialog via the - property. - - + - Gets or sets the printer name. + Specifies that image is aligned in the center-left of the layout rectangle. - + - Gets or sets a value indicating that the printer name should be saved in a report file. + Specifies that image is aligned in the center-center of the layout rectangle. - - If this property is set to true, the printer name will be saved in a report file. - Next time when you open the report, the printer will be automatically selected. - - + - Gets or sets a value indicating that the printing output should be send - to a file instead of a printer. + Specifies that image is aligned in the center-right of the layout rectangle. - - Also set the property. - - + - The name of a file to print the report to. + Specifies that image is aligned in the center-left of the layout rectangle. - - This property is used if property is true. - - + - Gets or sets a value specifies the page range to print. + Specifies that image is aligned in the center-center of the layout rectangle. - + - Gets or sets the page number(s) to print. + Specifies that image is aligned in the center-right of the layout rectangle. - - This property is used if property is set to PageNumbers. - You can specify the page numbers, separated by commas, or the page ranges. - For example: "1,3,5-12". - - + - Gets or sets the number of copies to print. + Specifies the language of the report's script. - + - Gets or sets a value indicating whether the printed document should be collated. + The C# language. - + - Gets or sets a value specifies the pages to print. + The VisualBasic.Net language. - + - Gets or sets a value determines whether to print pages in reverse order. + Specifies the quality of text rendering. - + - Gets or sets the duplex mode. + The default text quality, depends on system settings. - + - Gets or sets the paper source. + The regular quality. - - This property corresponds to the RAW source number. Default value is 7 which - corresponds to DMBIN_AUTO. - - + - Gets or sets the print mode. + The "ClearType" quality. - - See the enumeration for details. If you use - the mode other than Default, you must specify the sheet size in the - , properties. - - + - Gets or sets the width of the paper sheet to print on. + The AntiAlias quality. This mode may be used to produce the WYSIWYG text. - - This property is used if the property is not Default. - Specify the paper width in millimeters. - - + - Gets or sets the height of the paper sheet to print on. + Specifies the report operation. - - This property is used if the property is not Default. - Specify the paper height in millimeters. - - + - Gets or sets the raw index of a paper size. + Specifies no operation. - + - Gets or sets the number of pages per printed sheet. + The report is running. - - This property is used if the property is set to Scale. - - + - Gets or sets an array of printed copy names, such as "Original", "Copy", etc. + The report is printing. - + - Specifies whether to display the "Print" dialog. + The report is exporting. - - + + + Specifies the page range to print/export. + - + - Assigns values from another source. + Print all pages. - Source to assign from. - + - Resets all settings to its default values. + Print current page. - + - Initializes a new instance of the class with default settings. + Print pages specified in the PageNumbers property of the PrintSettings. @@ -45365,171 +46242,236 @@ Initializes a new instance of the class with specified owner. - + - The class introduces some menu items specific - to the ReportComponentBase. + Provides data for the event. - + - The "Can Grow" menu item. + Gets a name of the file to load the report from. - + - The "Can Shrink" menu item. + The reference to a report. - + - The "Grow to Bottom" menu item. + Initializes a new instance of the class using the specified + file name and the report. + The name of the file to load the report from. + The report. - + - The "Hyperlink" menu item. + Provides data for the event. - + - Initializes a new instance of the ReportComponentBaseMenu - class with default settings. + Gets an expression. - The reference to a report designer. - + - Represents a report title band. + Gets or sets a object. + + + + + The reference to a report. + + + + + Initializes a new instance of the class using the specified + file name and the report. + + The text of expression. + The name of the file to load the report from. + The report. + + + + Represents the method that will handle the event. + + The source of the event. + The event data. + + + + Represents the method that will handle the event. + + The source of the event. + The event data. + + + + Provides data for the Progress event. + + + + + Gets a progress message. + + + + + Gets the current page number. + + + + + Gets the number of total pages. + + + + + Initializes a new instance of the class using the specified + message, page number and total number of pages. + The progress message. + Current page number. + Number of total pages. - + - Holds the list of objects currently selected in the designer. + Represents the method that will handle the Progress event. - - This class is used by the "Alignment" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. If you want to access all - selected objects, use the property. - + The source of the event. + The event data. - + - Gets the first selected object. + Provides data for the DatabaseLogin event. - + - Gets the number of selected objects. + Gets or sets the connection string. - + - Aligns left edges of the selected objects. + Gets or sets an user name. - + - Aligns right edges of the selected objects. + Gets or sets a password. - + - Aligns centers of the selected objects. + Initializes a new instance of the class using the specified + connection string. + The connection string. - + - Aligns top edges of the selected objects. + Represents the method that will handle the DatabaseLogin event. + The source of the event. + The event data. - + - Aligns bottom edges of the selected objects. + Provides data for the AfterDatabaseLogin event. - + - Aligns middles of the selected objects. + Gets the DbConnection object. - + - Makes the selected objects the same width as the first object. + Initializes a new instance of the class using + the specified connection. + The connection object. - + - Makes the selected objects the same height as the first object. + Represents the method that will handle the AfterDatabaseLogin event. + The source of the event. + The event data. - + - Makes the selected objects the same size as the first object. + Provides data for the FilterProperties event. - + - Centers the selected objects horizontally. + Gets the property descriptor. - + - Centers the selected objects vertically. + Gets or sets a value that indicates whether this property should be skipped. - + - Aligns the selected objects to the grid. + Represents the method that will handle the FilterProperties event. + The source of the event. + The event data. - + - Adjusts the size of selected objects to the grid. + Provides data for the GetPropertyKind event. - + - Spaces the selected objects horizontally. + Gets the property name. - + - Increases horizontal spacing between the selected objects. + Gets the property type. - + - Decreases horizontal spacing between the selected objects. + Gets or sets the kind of property. - + - Removes horizontal spacing between the selected objects. + Represents the method that will handle the GetPropertyKind event. + The source of the event. + The event data. - + - Spaces the selected objects vertically. + Provides data for the GetTypeInstance event. - + - Increases vertical spacing between the selected objects. + Gets the type. - + - Decreases vertical spacing between the selected objects. + Gets or sets the instance of type. - + - Removes vertical spacing between the selected objects. + Represents the method that will handle the GetPropertyKind event. + The source of the event. + The event data. @@ -45647,275 +46589,265 @@ Initializes a new instance of the class with default settings. - + - Holds the list of objects currently selected in the designer. + Specifies the default paper size used when creating a new report. - - This class is used by the "Border and Fill" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. - If you want to access all selected objects, use the property. - - + - Gets the first selected object. + A4 paper (210 x 297 mm). - + - Gets the number of selected objects. + Letter paper (8.5 x 11 inches, 216 x 279 mm). - + - Gets a value indicating whether the operations are enabled. + Represents a report title band. - + - Gets a value indicating whether the object with simple border is selected. + Internal representation of RichText document - - When the object has a simple border, you cannot change individual border lines. - Example of such an object is the "Shape" and "Line" objects. - - + - Gets a value indicating whether the border operations are enabled. + This class represents a RTF run. - + - Gets a value indicating whether the fill operations are enabled. + Insert paragraph into list of paragraphs - + - Sets the solid fill color for the selected objects. + Insert row into list of paragraphs - Fill color. - + - Sets the fill for the selected objects. + This class represents a RTF properies. - Fill. - + - Sets the style for the selected objects. + This class parses an entiry RTF document. - Style name. - - - Sets the hyperlink for the selected objects. - - Hyperlink. - Indicates whether to modify the object's appearance. - Indicates whether it is necessary to change designer's modified state. + + - - - Sets the CanGrow flag for the selected objects. - - Flag value. + + - + + + + - Sets the CanShrink flag for the selected objects. + Get RTF structure based on range of elements - Flag value. - + + - Sets the GrowToBottom flag for the selected objects. + Save RTF document to text stream - Flag value. - + - Toggles the specified border line for the selected objects. + This class represents a RTF document header. - Border line. - Toggle value. + + Refer to RTF-1.7 spec for detail description + - + - Sets the border color for the selected objects. + Parser of RTF header. - Border color. + + Return false on finish of header + - + - Sets the border width for the selected objects. + This class represents a RTF text paragraph. - Border width. - + - Sets the border style for the selected objects. + This class detect a RTF control sequences and text. - Border style. - + - Sets the border for the selected objects. + This class represents a RTF column description. - Border. + - + - Invokes the fill editor for the selected objects. + Create RTF row - true if editor was closed by the OK button. + + - + - Invokes the border editor for the selected objects. + Save RTF document to plain text stream - true if editor was closed by the OK button. - + - Invokes the hyperlink editor for the selected objects. + Specifies a kind of the shape. - true if editor was closed by the OK button. - + - Holds the list of objects currently selected in the designer. + Specifies a rectangle shape. - - This class is used by the "Text" toolbar. Use methods of this class to perform some - operations on the selected objects. - Note: after calling any method in this class, call the - Designer.SetModified method to reflect changes. - Note: this list contains only objects of type. If you want to access all - selected objects, use the property. - - + - Gets the first selected object. + Specifies a round rectangle shape. - + - Gets the number of selected objects. + Specifies an ellipse shape. - + - Gets a value indicating whether the operations are enabled. + Specifies a triangle shape. - + - Sets the font name for the selected objects. + Specifies a diamond shape. - Font name. - + - Sets the font size for the selected objects. + Represents a sort condition used in the . - Font size. - + - Toggles the specified font style for the selected objects. + Gets or sets an expression used to sort data band rows. - Font style. - Toggle value. + + This property can contain any valid expression. + - + - Sets the horizontal text alignment for tthe selected objects. + Gets or sets a value indicating that sort must be performed in descending order. - Alignment to set. - + - Sets the vertical text alignment for tthe selected objects. + Serializes the class. - Alignment to set. + Writer object. + + This method is for internal use only. + - + - Sets the text color for the selected objects. + Deserializes the class. - Text color. + Reader object. + + This method is for internal use only. + - + - Sets the angle for the selected objects. + Initializes a new instance of the class with default settings. - Angle to set. - + - Sets the AutoWidth property value for the selected objects. + Initializes a new instance of the class with specified expression. - Value to set. - + - Sets the WordWrap property value for the selected objects. + Initializes a new instance of the class with specified expression and sort order. - Value to set. - + - Sets the highlight conditions for the selected objects. + Represents a collection of sort conditions used in the . - Highlight conditions. - + - Clears the text of the selected objects. + Gets or sets the element at the specified index. + Index of an element. + The element at the specified index. - + - Invokes the highlight editor for the selected objects. + Adds the specified elements to the end of this collection. - true if editor was closed with the OK button. + - + - Specifies a kind of the shape. + Adds an object to the end of this collection. + Object to add. + Index of the added object. - + - Specifies a rectangle shape. + Inserts an object into this collection at the specified index. + The zero-based index at which value should be inserted. + The object to insert. - + - Specifies a round rectangle shape. + Removes the specified object from the collection. + Object to remove. - + - Specifies an ellipse shape. + Returns the zero-based index of the first occurrence of an object. + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. - + - Specifies a triangle shape. + Determines whether an element is in the collection. + The object to locate in the collection. + true if object is found in the collection; otherwise, false. - + + + + + + + - Specifies a diamond shape. + Assigns values from another collection. + Collection to assign from. @@ -46072,6 +47004,122 @@ Initializes a new instance of the class with default settings. + + + Represents a collection of the objects. + + + + + Gets or sets the element at the specified index. + + Index of an element. + The element at the specified index. + + + + Adds the specified elements to the end of this collection. + + + + + + Adds an object to the end of this collection. + + Object to add. + Index of the added object. + + + + Inserts an object into this collection at the specified index. + + The zero-based index at which value should be inserted. + The object to insert. + + + + Removes the specified object from the collection. + + Object to remove. + + + + Returns the zero-based index of the first occurrence of an object. + + The object to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. + + + + Returns the zero-based index of the first occurrence of a style collection with specified name. + + The style collection name to locate in the collection. + The zero-based index of the first occurrence of value within the entire collection, if found; + otherwise, -1. + + + + Determines whether an element is in the collection. + + The object to locate in the collection. + true if object is found in the collection; otherwise, false. + + + + Determines whether a style collection with specified name is in the collection. + + The style collection name to locate in the collection. + true if object is found in the collection; otherwise, false. + + + + Gets an array containing all collection items. + + An array containing all collection items. + + + + Serializes the collection. + + Writer object. + + This method is for internal use only. + + + + + Deserializes the collection. + + Reader object. + + This method is for internal use only. + + + + + Saves the collection to a stream. + + Stream to save to. + + + + Saves the collection to a file with specified name. + + File name to save to. + + + + Loads the collection from a stream. + + Stream to load from. + + + + Loads the collection from a file with specified name. + + Name of a file. + Specifies the horizontal alignment of a text in the TextObject object. @@ -46219,266 +47267,228 @@ AutoShrink decreases the FontWidthRatio property of the TextObject. - - - The class introduces some menu items specific to the TextObject. - - - - - The "Clear" menu item. - - - - - The "Auto Width" menu item. - - - - - The "Word Wrap" menu item. - - - - - Initializes a new instance of the TextObjectMenu - class with default settings. - - The reference to a report designer. - - - - The class introduces some menu items specific to the TextObject. - - - - - Initializes a new instance of the TextObjectMenu - class with default settings. - - The reference to a report designer. - - - - Provides the serialize/deserialize functionality. - - - - - Serializes the object. - - Writer object. - - - - Deserializes the object. - - Reader object. - - - - Implement this interface if your object can contain list of child objects. - - - - - Gets a value indicating that this object can contain the specified child object. - - Child object. - true if this object can contain the specified child object; otherwise, false. - - - - Gets a list of child objects. - - List to fill with values. - - + - Adds a child object to this object's childs. + Specifies how to display the duplicate values. - Object to add. - + - Removes a specified object from this object's childs. + The TextObject can show duplicate values. - - + - Returns z-order of the specified child object. + The TextObject with duplicate value will be hidden. - Child object. - Z-order of the specified object. - - This method must return the index of a specified child object in the internal child list. - - + - Sets the z-order of the specified object. + The TextObject with duplicate value will be shown but with no text. - Child object. - New Z-order. - - This method must place the specified child object at the specified position in the internal child list. - - + - Updates the children layout when the size of this object is changed by dx, dy values. + Several TextObject objects with the same value will be merged into one TextObject object. - X delta. - Y delta. - - This method must update positions/sizes of child objects whose Dock or Anchor properties - are set to non-default values. - - + - Holds the list of objects of type. + Specifies how the report engine processes the text objects. - + - Gets or sets the element at the specified index. + Specifies the default process mode. The text object is processed just-in-time. - Index of an element. - The element at the specified index. - + - Initializes a new instance of the class with default settings. + Specifies that the text object must be processed when the entire report is finished. This mode + can be used to print grand total value (which is normally calculated at the end of report) in the + report title band. - + - Initializes a new instance of the class with specified owner. + Specifies that the text object must be processed when the entire report page is finished. This mode + can be used if the report template consists of several report pages. - + - Specifies the language of the report's script. + Specifies that the text object must be processed when any report page is finished. This mode + can be used to print the page total (which is normally calculated at the page footer) in the + page header band. - + - The C# language. + Specifies that the text object must be processed when the column is finished. This mode + can be used to print the column total (which is normally calculated at the column footer) in the + column header band. - + - The VisualBasic.Net language. + Specifies that the text object must be processed when the data block is finished. This mode can be + used to print a total value in the data header (which is normally available + in the data footer only). - + - Specifies the quality of text rendering. + Specifies that the text object must be processed when the group is finished. This mode can be + used to print a total value in the group header (which is normally available + in the group footer only). - + - The default text quality, depends on system settings. + Specifies that the text object is processed manually when you call the Engine.ProcessObject + method in the report script. - + - The regular quality. + Represents text outline. - + - The "ClearType" quality. + Gets or sets a value indicating that outline is enabled. - + - The AntiAlias quality. This mode may be used to produce the WYSIWYG text. + Enable or disable draw the outline behind of text. - + - Specifies the report operation. + Gets or sets the outline color. - + - Specifies no operation. + Gets or sets the outline width. - + - The report is running. + Specifies the style of an outline. - + - The report is printing. + Initializes a new instance of the class. - + - The report is exporting. + Initializes a new instance of the class with specified parameters. + True if outline enabled. + Outline color. + Outline width. + Outline style. + True if outline should be drawn behind text. - + - Specifies the page range to print/export. + Copies the content of another TextOutline. + The TextOutline instance to copy the contents from. - + - Print all pages. + Creates the exact copy of this outline. + Copy of this outline. - + - Print current page. + Serializes the TextOutline. + Writer object. + TextOutline property name. + Another TextOutline to compare with. - + - Print pages specified in the PageNumbers property of the PrintSettings. + Represents a cache of graphics objects such as pens, brushes, fonts and text formats. + + Cache holds all used graphics objects. There is no need to dispose objects returned + by GetXXX calls. + + This example demonstrates how to use graphic cache. + + public void Draw(FRPaintEventArgs e) + { + Brush brush = e.Cache.GetBrush(BackColor); + Pen pen = e.Cache.GetPen(BorderColor, 1, BorderStyle); + e.Graphics.FillRectangle(brush, Bounds); + e.Graphics.DrawRectangle(pen, Bounds); + } + + - + - Holds the list of selected objects of type. Used by the - . + Gets a pen with specified settings. + Color of a pen. + Width of a pen. + Dash style of a pen. + The Pen object. - + - Gets a value indicating that report page is selected. + Gets a pen with specified settings. + Color of a pen. + Width of a pen. + Dash style of a pen. + Line join of a pen. + The Pen object. - + - Gets a value indicating that report is selected. + Gets a brush with specified color. + Color of a brush. + The SolidBrush object. - + - Holds the list of objects of type. + Gets a font with specified settings. + Name of a font. + Size of a font. + Style of a font. + The Font object. - + - Gets or sets the element at the specified index. + Gets a string format with specified settings. - Index of an element. - The element at the specified index. + Text alignment information on the vertical plane. + Line alignment on the horizontal plane. + StringTrimming enumeration. + StringFormatFlags enumeration that contains formatting information. + The number of spaces between the beginning of a line of text and the first tab stop. + Distance between tab stops. + The StringFormat object. - + - Initializes a new instance of the class with default settings. + Disposes resources used by this object. - + - Initializes a new instance of the class with specified owner. + Initializes a new instance of the GraphicCache class with default settings. @@ -47335,6 +48345,15 @@ + + + Draws watermark text. + + + + + + Serializes the watermark. diff --git a/DPM2016/bin/Release/SHUKeyGen.dll b/DPM2016/bin/Release/SHUKeyGen.dll index a2d8a5d..e830979 100644 Binary files a/DPM2016/bin/Release/SHUKeyGen.dll and b/DPM2016/bin/Release/SHUKeyGen.dll differ diff --git a/DPM2016/bin/Release/SHUKeyGen.pdb b/DPM2016/bin/Release/SHUKeyGen.pdb index dff16e9..d08fa99 100644 Binary files a/DPM2016/bin/Release/SHUKeyGen.pdb and b/DPM2016/bin/Release/SHUKeyGen.pdb differ diff --git a/DPM2016/bin/Release/Syncfusion.Compression.Base.dll b/DPM2016/bin/Release/Syncfusion.Compression.Base.dll deleted file mode 100644 index 6f2a2ef..0000000 Binary files a/DPM2016/bin/Release/Syncfusion.Compression.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Release/Syncfusion.Compression.Base.xml b/DPM2016/bin/Release/Syncfusion.Compression.Base.xml deleted file mode 100644 index dd666cc..0000000 --- a/DPM2016/bin/Release/Syncfusion.Compression.Base.xml +++ /dev/null @@ -1,2984 +0,0 @@ - - - - Syncfusion.Compression.Base - - - - - Checksum calculator, based on Adler32 algorithm. - - - - - Bits offset, used in adler checksum calculation. - - - - - Lagrest prime, less than 65535 - - - - - Count of iteration used in calculated of the adler checksumm. - - - - - Updates checksum by calculating checksum of the - given buffer and adding it to current value. - - Current checksum. - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Generates checksum by calculating checksum of the - given buffer. - - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Reader, that reads stream with compressed data - - - - - Mask for compression method to be decoded from 16-bit header. - - - - - Mask for compression info to be decoded from 16-bit header. - - - - - Mask for check bits to be decoded from 16-bit header. - - - - - Mask for dictionary presence to be decoded from 16-bit header. - - - - - Mask for compression level to be decoded from 16-bit header. - - - - - Maximum size of the data window. - - - - - Maximum length of the repeatable block. - - - - - End of the block sign. - - - - - Minimal length code. - - - - - Maximal length code. - - - - - Maximal distance code. - - - - - Minimum count of repetions. - - - - - Bits, that responds for different repetion modes. - - - - - Length bases. - - - - - Length extended bits count. - - - - - Distance bases. - - - - - Distance extanded bits count. - - - - - Input stream. - - - - - Currently calculated checksum, - based on Adler32 algorithm. - - - - - Currently read 4 bytes. - - - - - Count of bits that are in buffer. - - - - - Temporary buffer. - - - - - 32k buffer for unpacked data. - - - - - No wrap mode. - - - - - Window size, can not be larger than 32k. - - - - - Current position in output stream. - Current in-block position can be extracted by applying Int16.MaxValue mask. - - - - - Data length. - Current in-block position can be extracted by applying Int16.MaxValue mask. - - - - - Sign of uncompressed data reading. - - - - - Size of the block with uncompressed data. - - - - - Specifies wheather next block can to be read. - Reading can be denied because the header of the last block have been read. - - - - - Specifies wheather user can read more data from stream. - - - - - Current lengths huffman tree. - - - - - Current distances huffman tree. - - - - - Specifies wheather checksum has been read. - - - - - TODO: place correct comment here - - - - - - Creates new reader for streams with compressed data. - - - - - - - Resets current checksum to 1. - - - - - Updates checksum by calculating checksum of the - given buffer and adding it to current value. - - Data byte array. - Offset in the buffer. - Length of data to be used from the stream. - - - - Discards left-most partially used byte. - - - - - Reads array of bytes. - - Output buffer. - Offset in output buffer. - Length of the data to be read. - Count of bytes actually read to the buffer. - - - - Fill`s empty parts of the buffer. - - - - - Reads specified count of bits without adjusting position. - - Count of bits to be read. - Read value. - - - - Skips specified count of bits. - - Count of bits to be skipped. - - - - Reads specified count of bits from stream. - - Count of bits to be read. - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - Reads ZLib header with compression method and flags. - - - - - TODO: place correct comment here - - - TODO: place correct comment here - - - - - - - Reades dynamic huffman codes from block header. - - Literals/Lengths tree. - Distances tree. - - - - Reads and decodes block of data. - - True if buffer was empty and new data was read, otherwise - False. - - - - Decodes huffman codes. - - True if some data was read. - - - - Reads data to buffer. - - Output buffer for data. - Offset in output data. - Length of the data to be read. - Count of bytes actually read. - - - - GET count of bits available - - - - - Get count of full bytes available. - - - - - Compression level. - - - - - Pack without compression - - - - - Use high speed compression, reduce of data size is low - - - - - Something middle between normal and BestSpeed compressions - - - - - Use normal compression, middle between speed and size - - - - - Pack better but require a little more time - - - - - Use best compression, slow enough - - - - - Represents the compressed stream writer - - - - - Start template of the zlib header. - - - - - Memory usage level. - - - - - Size of the pending buffer. - - - - - Size of the buffer for the huffman encoding. - - - - - Length of the literal alphabet(literal+lengths). - - - - - Distances alphabet length. - - - - - Length of the code-lengths tree. - - - - - Code of the symbol, than means the end of the block. - - - - - Maximum window size. - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Internal compression engine constant - - - - - Output stream. - - - - - Pending buffer for writing. - - - - - Length of the unflushed data. - - - - - Bits cache for pending buffer. - - - - - Count of bits in pending buffer cache. - - - - - If true, no zlib header will be written to the stream. - - - - - Current checksum. - - - - - Current compression level. - - - - - Current tree for literals. - - - - - Current tree for distances. - - - - - Current tree for code lengths. - - - - - Current position in literals and distances buffer. - - - - - Recorded literals buffer. - - - - - Recorded distances buffer. - - - - - Count of the extra bits. - - - - - Static array of the literal codes. - - - - - Static array of the lengths of the literal codes. - - - - - Static array of the distance codes. - - - - - Static array of the lengths of the distance codes. - - - - - If true, no futher writings can be performed. - - - - - Current hash. - - - - - Hash m_HashHead. - - - - - Previous hashes. - - - - - Start of the matched part. - - - - - Length of the matched part. - - - - - Previous match available. - - - - - Start of the data window. - - - - - String start in data window. - - - - - Lookahead. - - - - - Data window. - - - - - Maximum chain length. - - - - - Maximum distance of the search with "lazy" algotithm. - - - - - Nice length of the block. - - - - - Good length of the block. - - - - - Current compression function. - - - - - Current block of the data to be compressed. - - - - - Total count of bytes, that were compressed. - - - - - Offset in the input buffer, where input starts. - - - - - Offset in the input buffer, where input ends. - - - - - If true, stream will be closed after the last block. - - - - - Initializes statical data for huffman compression. - - - - - Initializes compressor and writes ZLib header if needed. - - Output stream. - If true, ZLib header and checksum will not be written. - Compression level. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header if needed. - Compression level is set to normal. - - Output stream. - If true, ZLib header and checksum will not be written. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header. - - Output stream. - Compression level. - If true, output stream will be closed after the last block has been written. - - - - Initializes compressor and writes ZLib header. - - Output stream. - If true, output stream will be closed after the last block has been written. - - - - Compresses data and writes it to the stream. - - Data to compress - offset in data array - length of data to compress - True - write last compress block in stream, - otherwise False - - - - Writes ZLib header to stream. - - - - - Fill the window - - - - - Slides current window, and data, associated with it. - - - - - Updates hash. - - - - - Inserts string to the hash. - - - - - - Searches for the longest match. - - - - - - - Store data without compression. - - - - - - - - Compress with a maximum speed. - - - - - - - - Compress, using maximum compression level. - - - - - - - - CompressData drives actual compression of data - - - - - Reset internal state - - - - - Calculates length code from length. - - Length. - Length code. - - - - Calculates distance code from distance. - - Distance. - Distance code. - - - - Write all trees to pending buffer - - - - - Compress current buffer writing data to pending buffer - - - - - Flush block to output with no compression - - Data to write - Index of first byte to write - Count of bytes to write - True if this is the last block - - - - Flush block to output with compression - - Data to flush - Index of first byte to flush - Count of bytes to flush - True if this is the last block - - - - Add literal to buffer. - - - Value indicating internal buffer is full - - - - Add distance code and length to literal and distance trees - - Distance code - Length - Value indicating if internal buffer is full - - - - write a byte to buffer - - - value to write - - - - - Write a short value to buffer LSB first - - - value to write - - - - - write an integer LSB first - - value to write - - - - Write a block of data to buffer - - data to write - offset of first byte to write - number of bytes to write - - - - Align internal buffer on a byte boundary - - - - - Write bits to internal buffer - - source of bits - number of bits to write - - - - Write a short value to internal buffer most significant byte first - - value to write - - - - Flushes the pending buffer into the given output array. If the - output array is to small, only a partial flush is done. - - - - - Flushes fully recorded bytes to buffer array. - - Count of bytes, added to buffer. - - - - Convert internal buffer to byte array. - Buffer is empty on completion - - - converted buffer contents contents - - - - - Total data processed. - - - - - Return true if input is needed - - - - - Checks, wheather huffman compression buffer is full. - - True if buffer is full. - - - - The number of bits written to the buffer - - - - - Indicates if buffer has been flushed - - - - - Type of the block. - - - - - Data simply stored as is - - - - - An option to use Fixed Huffman tree codes - - - - - An option to use Dynamically built Huffman codes - - - - - Represents the Huffman Tree. - - - - - Frequences of the codes. - - - - - Codes itself. - - - - - Bit counts, needed to encode different codes. - - - - - Count of codes with some lengths. - Index - length, value - count. - - - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - - - TODO: place correct comment here - - - - - Data compressor. - - - - - Create a new Huffman tree - - - - - - - - - Resets all code data in tree. - - - - - Writes code to the compressor output stream. - - Code to be written. - - - - Checks wheather tree is empty. - If tree is not empty, then exception will be raised. - - - - - Specifies new arrays of codes and their lengths. - - Array of codes. - Array of code lengths. - - - - Calculates codes from their frequences. - - - - - Build tree with lengths. - - - - - - Builds tree. - - - - - Calculates length of the compressed data. - - Count of bits, the data will occupy. - - - - Calculates code frequences. - - Tree. - - - - Writes tree to output stream. - - Tree to be written. - - - - Length of the tree. - - - - - Lengths of codes in tree. - - - - - Code frequences. - - - - - Huffman tree, used for decompression. - - - - - Maximum count of bits. - - - - - Build huffman tree. - - - - - Huffman tree for encoding and decoding lengths. - - - - - huffman tree for encoding and decoding distances. - - - - - Generates fixed huffman trees. - - - - - Creates huffman tree. - - - - - - Prepares data for generating huffman tree. - - Array of counts of each code length. - Numerical values of the smallest code for each code length. - Array of code lengths. - Calculated tree size. - Code. - - - - Generates huffman tree. - - Array of counts of each code length. - Numerical values of the smallest code for each code length. - Precalculated code. - Array of code lengths. - Calculated size of the tree. - Generated tree. - - - - Builds huffman tree from array of code lengths. - - Array of code lengths. - - - - Reads and decompresses one symbol. - - - - - - - GET huffman tree for encoding and decoding lengths. - - - - - GET huffman tree for encoding and decoding distances. - - - - - Utility Class - - - - - Bit-indexes for reversing. - - - - - Code lengths for the code length alphabet. - - - - - Reverses bit. - - - - - - - Implemenation of IFileNamePreprocessor interface that simply removes - some string from the name start and converts all \ characters into /. - - - - - Preprocesses file name before ZipArchiveItem saving. Used to convert full item path into local one. - - - - - Somehow converts full path into name that will be stored in the zip archive. - - Name to process. - Converted name. - - - - String to remove from the name start. - - - - - Initializes new instance of the name preprocessor. - - String to remove from the name start. - - - - Somehow converts full path into name that will be stored in the zip archive. - - Name to process. - Converted name. - - - - Class contains all constants that are required by ZipArchive. - - - - - Zip header signature. - - - - - Number of bytes in HeaderSignature constant. - - - - - Buffer size. - - - - - Version needed to extract. - - - - - Version made by. - - - - - Size of the short value in bytes. - - - - - Size of the int value in bytes. - - - - - Central header signature. - - - - - End of central directory signature. - - - - - Initial value for CRC-32 evaluation. - - - - - Offset to the size field in the End of central directory record. - - - - - Start byte of the Header signature. - - - - - Default constructor to prevent users from creating instances of this class. - - - - - The kind of compression used for an entry in an archive - - - - - The file is stored (no compression). - - - - - The file is Shrunk. - - - - - The file is Reduced with compression factor 1. - - - - - The file is Reduced with compression factor 2. - - - - - The file is Reduced with compression factor 3. - - - - - The file is Reduced with compression factor 4. - - - - - The file is Imploded. - - - - - Reserved for Tokenizing compression algorithm. - - - - - The file is Deflated. - - - - - Enhanced Deflating using Deflate64(tm). - - - - - PKWARE Data Compression Library Imploding (old IBM TERSE). - - - - - File is compressed using BZIP2 algorithm. - - - - - LZMA (EFS). - - - - - File is compressed using IBM TERSE (new). - - - - - IBM LZ77 z Architecture (PFS). - - - - - PPMd version I, Rev 1. - - - - - General purpose bit flag. - - - - - If this bit is set, the fields crc-32, compressed size and uncompressed - size are set to zero in the local header. The correct values are put - in the data descriptor immediately following the compressed data. - (Note: PKZIP version 2.04g for DOS only recognizes this bit for method 8 - compression, newer versions of PKZIP recognize this bit for any compression method.) - - - - - Language encoding flag (EFS). If this bit is set, the filename and - comment fields for this file must be encoded using UTF-8. - - - - - Class used for implementing Advanced Encryption Standard algorithm. - - - - - block size in 32-bit words. Always 4 for AES. (128 bits). - - - - - key size in 32-bit words. 4, 6, 8. (128, 192, 256 bits). - - - - - number of rounds. 10, 12, 14. - - - - - the seed key. size will be 4 * keySize . - - - - - Substitution box - - - - - inverse Substitution box - - - - - key schedule array. - - - - - Round constants - - - - - State matrix - - - - - AES key size - - - - - Salt value - - - - - Message Authentication Code Key - - - - - Stored Message Authentication Code - - - - - Computed Message Authentication Code - - - - - Encryption Key - - - - - Password verifier - - - - - Password - - - - - No of keyBytes - - - - - No of saltBytes - - - - - Initiates Aes - - - - - Initializes a new instance of the Aes class. - - Key size. - Key bytes - - - - Encipher 16 bit input - - 16 bit Input - Output value - - - - Decipher 16-bit input - - - - - - - SetNbNkNr() - - Keysize - - - - Building S-box - - - - - Building Inverse S-box - - - - - Builds Rotation array - - - - - Adds rounf Key - - No of Rounds - - - - SubBytes - - - - - InvSubBytes - - - - - ShiftRows() - - - - - InvShiftRows() - - - - - MixColumns - - - - - InvMixColumns - - - - - Key Expansion - - - - - Subword - - Word - resulted word - - - - Rotates word - - Input - Result - - - - Dump - - - - - Dump key. - - - - - - Dump two by two. - - - - - - - Generates a key for Encryption and Decryption - - - - - Generates Message Authentication Code - - data used for MAC - - - - Compares two bytes arrays - - First byte array - Second byte array - true if two arrays are same - - - - Set key and salt lengths for AES key - - - - - Decrypt the cipherData - - Encrypted data - Decrypted - - - - Encrypt the plain data - - Data needs to be encrypted - Encrypted data - - - - Counter Mode Encryption - - Encrypted data - Decrypted data to get - AES encryption Key - - - - - Possible key sizes. - - - - - 128-bit. - - - - - 192-bit. - - - - - 256-bit. - - - - - Implementation Rfc2898Key generation - - - - - Block Number - - - - - Rfc Buffer - - - - - End Offset - - - - - No of Iterations - - - - - Salt Value - - - - - Start Offset - - - - - Password - - - - - BlockSize for SHA1 buffer - - - - - Inner buffer - - - - - Outer buffer - - - - - Indicates whether needs hash - - - - - Key Value - - - - - Buffer - - - - - No of hash - - - - - State of SHA1 - - - - - Expanded array - - - - - HMAC hash value - - - - - SHA1 hash value - - - - - Constructor - - Password - salt value to get key - No of iteration used - - - - Constructor - - Password - salt value to get key - No of iteration used - - - - Creates a byte array for input - - Input - Converted byte array for input - - - - Derives key - - key - - - - Generates the byte array based on the given length - - Length of the array - Byte array - - - - Initializes the RFC to initial state - - - - - Updates the m_inner and m_outer arrays - - - - - Initializes the key value - - - - - - Computes hash code for the given data - - input data - return hash in bytes - - - - Computes hash for the specified region from input for the given offset and copies the data to the output from the given offset - - Input array - input Offset - Length - Output array - output Offset - - - - - Computes hash for the specified region from input for the given offset. - - Input array - input Offset - Length - - - - Clears all value rom arrays - - - - - Initializes State values - - - - - Computes hash for the given input data from the specified offset and Length - - Input - start from the input array - length needs to be hashed - - - - - Computes the final hash code - - hash data - - - - Modifies the buffer using SHA - - input - State array - Blocks - - - - Expand the input array using SHA - - Input array - - - - Convert the BigEndian to DWORD - - Dword array - No of digits - Input block - - - - Convert Dword to BigEndian - - BigEndian array - Output array - no of digits - - - - Hash value - - - - - Contains security Constants - - - - - Password Verifier Length of AES Encryption - - - - - Message Authentication Code Length of AES Encryption - - - - - Password Length of ZipCrypto Encryption - - - - - Password verifier value position of ZipCrypto 0 based index - - - - - PKZip strong encryption header length - - - - - AES compression method - - - - - Block size for Rfc2898Key - - - - - Password iteration Count for AES - - - - - Aes Block Size - - - - - AES encryption header constants - - - - - ZipCrypto Encryption and Decryption - - - - - Data stream - - - - - Password - - - - - Crc value - - - - - Initial keys - - - - - ZipCrc32 - - - - - Constructor initializes Data stream and password - - Data - Password - - - - Initializes Password and Crc value - - Password - Crc value - - - - Initializes key and crc - - - - - Update password - - Password - - - - Update key values - - byte needed for key update - - - - Initializes the keys using Password - - Password of the zip file - - - - Key Update using password - - Password of the zip file - - - - Data Encryption - - Plain data - Cipher data - - - - Data Decryption - - Cipher data - Plain data - - - - Decrypt the data using ZipCrypto - - Cipher data - Plain data - - - - Encrypt the data using ZipCrypto - - Plain data - Cipher data - - - - Generates the Encryption and Decryption Byte - - byte value - - - - Encryption types. - - - - - No Encryption - - - - - AES-128 bit encryption - - - - - AES-192 bit encryption - - - - - AES-256 bit encryption - - - - - ZipCrypto Encryption - - - - - Represents zip archive. - - - - - Collection of archive items. - - - - - Dictionary that allows quick search operations by item name. - Key - item name, - Value - corresponding ZipArchiveItem. - - - - - File name preprocessor - object that converts full file/folder - name into value that will be written into zip archive. - - - - - Indicates whether we should check Crc value when reading item's data. Check - is performed when user gets access to decompressed data for the first time. - - - - - Default compression level. - - - - - Compresses files using custom NetCompressor. - - - - - Password for the zip File - - - - - Type of the Encryption - - - - - Creates compressor. - - - - - Searches for integer value from the end of the stream. - - Stream to search value in. - Value to locate. - Maximum number of bytes to scan. - Offset to the value, or -1 if it wasn't found. - - - - Extracts Int32 value from the stream. - - Stream to read data from. - Extracted value. - - - - Extracts Int16 value from the stream. - - Stream to read data from. - Extracted value. - - - - Extracts unsigned Int16 value from the stream. - - Stream to read data from. - Extracted value. - - - - Adds empty directory to the archive. - - Directory path. - Item that has been added. - - - - Adds specified file to the archive. - - File to add. - Item that has been added. - - - - Adds new item to the archive - - Item name to add. - Items data stream (can be null for empty files or folders). - Indicates whether ZipArchive is responsible for stream closing. - File attributes. - Item that has been added. - - - - Adds existing item to the archive. - - Item to add. - Added item. - - - - Removes item from the archive. - - Item name to remove. - - - - Removes item at the specified position. - - Item index to remove. - - - - Removes items that matches specified regular expression from the collection. - - Regular expression used to decide whether to remove item or not. - - - - Updates item inside existing archive. - - Item name to update. - New data for the item. - Indicates whether item should control its stream after update. - - - - Updates existing item or creates new one. - - Item to update or create. - New data for the item. - Indicates whether item should control its stream after update. - File attributes for the item. This argument is only used if item is created. - - - - Updates item inside existing archive. - - Item name to update. - New data for the item. - - - - Saves archive into specified file. - - Output file name. - - - - Saves archive into specified file. - - Output file name. - Indicates whether we should create full path to the file if it doesn't exist. - - - - Saves archive into specified stream. - - Output stream. - Indicates whether method should close stream after saving. - - - - Reads archive data from the file. - - Filename to read. - - - - Reads archive data from the stream. In the current implementation - stream must be seekable and readable to extract data. - - Stream to read data from. - Indicates whether method should close stream after reading. - - - - Clears all internal data. - - - - - Searches for the item with specified name. - - Item to find. - Zero-based item index if found; -1 otherwise. - - - - Searches for the item with specified name. - - Regular expression that defines item to find. - Zero-based item index if found; -1 otherwise. - - - - Writes central directory to the stream. - - Stream to write data into. - - - - Writes End of central directory record into stream. - - Stream to write data into. - Offset to the central directory start. - - - - Read central directory record from the stream. - - Stream to read from. - - - - Extracts items' data from the stream. - - Stream to read data from. - - - - Creates a copy of the current instance. - - A copy of the current instance. - - - - Protects the archived file with password using specified algorithm. - - Password to protect. - Type of encryption algorithm to be used. - - - - Removes password from the compressed file. - - - - - Opens an encrypted zip file with password. - - File Name. - Password of the file to open. - - - - Reads archive data from the stream. In the current implementation - stream must be seekable and readable to extract data. - - Stream to read data from. - Indicates whether method should close stream after reading. - Password for the file to open. - - - - A method to release allocated unmanaged resources. - - - - - Class finilizer. - - - - - Returns single archive item from the collection. Read-only. - - Zero-based index of the item to return. - Single archive item from the collection. - - - - Returns item by its name. Null if item wasn't found. Read-only. - - - - - Returns number of items inside archive. Read-only. - - - - - Returns the items inside archive. Read-only. - - - - - Gets / sets file name preprocessor - object that converts full file/folder - name into value that will be written into zip archive. - - - - - Gets / sets default compression level - compression level for new items. - By default is equal to CompressionLevel.Best. - - - - - Indicates whether we should check Crc value when reading item's data. Check - is performed when user gets access to item's decompressed data for the first time. - - - - - Uses custom compressed stream reader and writer. - - - - - Returns the encryption algorithm used. Default value is NONE. - - - - - Password for ZipFile - - - - - Represents single item inside zip archive. It can be either folder or file. - - - - - Name of the archive item. - - - - - Compression method. - - - - - Compression level. - - - - - Crc. - - - - - Stream with item's data. - - - - - Compressed data size. - - - - - Original (not compressed) data size. - - - - - Indicates whether this item controls it's data stream. - - - - - Indicates whether internal stream contains compressed data. - - - - - Position of the size block inside local file header. - - - - - Offset to the local header. - - - - - General purpose bit flag. - - - - - Item's external attributes. - - - - - Indicates whether we should check crc value after decompressing item's data. - - - - - - - - - - Actual compression when Aes Encryption - - - - - Default constructor. - - - - - Creates new instance of the zip item. - - Name of the item (can be relative or absolute path). - Stream data. - - Indicates whether item controls stream and must close it when item finish its work. - - - - - - - - - - - - Updates internal data stream. - - New stream to set. - Indicates whether item should conrol new stream. - - - - - - - - - This method saves item inside stream. - - Stream to save item into. - - - - Frees all internal resources and closes internal stream if necessary. - - - - - This method writes file header into Central directory record. - - Stream to write data into. - - - - Converts current datetime to Windows format. - - Current Date and time. - Value in Windows format. - - - - Read data from the stream based on the central directory. - - Stream to read data from, stream.Position must point at just after correct file header. - - - - Reads zipped data from the stream. - - Stream to read data from. - Indicates whether we should check crc value after data decompression. - - - - Extracts compressed data from the stream. - - Stream to read data from. - - - - Extracts local header from the stream. - - Stream to read data from. - - - - Decompressed internal data if necessary. - - - - - Writes local file header. - - Stream to write into. - - - - Writes zipped content inside stream. - - Stream to write into. - - - - Writes local file footer into stream. - - Stream to write into. - - - - Checks whether Crc field and stream data corresponds each other. - - - - - Creates copy of the stream. - - Stream to copy. - Created stream. - - - - Checks for Latin characters in the Unicode string. - - Input Unicode string. - True if the Unicode string contain Latin characters. False otherwise. - - - - A method to release allocated unmanaged resources. - - - - - Finilizer. - - - - - Writes the header to Indicate the zip the file is encrypted. - - The data to write - - - - Data Encryption - - Data to be Encrypted - Encrypted data - - - - Data Decryption - - Data needs to be decrypted - Decrypted data - - - - Checks whether the file has unicode characters. - - Name of the file. - - - - - Create a Random byte Array - - Length of the salt value - salt value - - - - Name of the archive item. - - - - - Compression method. - - - - - Gets/sets item's compression level. - - - - - Crc. - - - - - Stream with item's data. - - - - - Compressed data size. - - - - - Original (not compressed) data size. - - - - - Indicates whether this item controls it's data stream. - - - - - Indicates whether internal stream contains compressed data. - - - - - Gets / sets item's external attributes. - - - - - Gets current OEM code page. - - - - - Crc32 implementation used in zip archive to verify data correctness. - - - - - Special pre-evaluated table used for faster crc evaluation. - Evaluated when crcNumber was 0xEDB88320. EvaluateTable method - can be used to evaluated table with different constant. - - - - Computes crc-32 value for the buffer. - Buffer to compute crc-32 for. - Offset to the data start. - Data length in bytes. - Initial crc-32 value. - Updated crc-32 value. - - - Computes crc-32 value for the stream. - Stream to compute crc-32 for. - Data length in bytes. - Crc-32 value. - - - - Evaluates crc table. - - "Magic" number. - Create table. - - - - Computes crc value for given number - - Number to calculate Crc value - Initial crc-32 value - Crc value - - - - This class represents exception type that is mostly raised when some - problems with zip extraction/creation occurs. - - - - - Initializes new instance of the exception class. - - Exception message. - - - - - - - - - - - - - - - - - - - - - - - - Initializes new instance of the stream. - - - - - Initializes new instance of the stream. - - - - - Clears all buffers for this stream and causes any buffered data to be written to the underlying device. - - - - - Reads a sequence of bytes from the current stream and advances the position - within the stream by the number of bytes read. - - An array of bytes. When this method returns, the buffer - contains the specified byte array with the values between offset and - (offset + count - 1) replaced by the bytes read from the current source. - The zero-based byte offset in buffer at which to begin - storing the data read from the current stream. - The maximum number of bytes to be read from the current stream. - The total number of bytes read into the buffer. This can be less - than the number of bytes requested if that many bytes are not currently - available, or zero (0) if the end of the stream has been reached. - - - - Sets the position within the current stream. - - A byte offset relative to the origin parameter. - A value of type SeekOrigin indicating the reference - point used to obtain the new position. - The new position within the current stream. - - - - Sets the length of the current stream. - - The desired length of the current stream in bytes. - - - - Writes a sequence of bytes to the current stream and advances the current - position within this stream by the number of bytes written. - - An array of bytes. This method copies count bytes - from buffer to the current stream. - The zero-based byte offset in buffer at which to begin - copying bytes to the current stream. - The number of bytes to be written to the current stream. - - - - Gets a value indicating whether the current stream supports reading. Read-only. - - - - - Gets a value indicating whether the current stream supports seeking. Read-only. - - - - - Gets a value indicating whether the current stream supports writing. Read-only. - - - - - Gets the length in bytes of the stream. Read-only. - - - - - Gets or sets the position within the current stream. Read-only. - - - - - This property returns stream with zipped content. It closes internal deflate - stream, so you won't be able to write anything in int. Read-only. - - - - - Returns computed crc32 value. Read-only. - - - - - Returns size of the unzipped data. Read-only. - - - - diff --git a/DPM2016/bin/Release/Syncfusion.Pdf.Base.dll b/DPM2016/bin/Release/Syncfusion.Pdf.Base.dll deleted file mode 100644 index 374194b..0000000 Binary files a/DPM2016/bin/Release/Syncfusion.Pdf.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Release/Syncfusion.Pdf.Base.xml b/DPM2016/bin/Release/Syncfusion.Pdf.Base.xml deleted file mode 100644 index b7e8a3a..0000000 --- a/DPM2016/bin/Release/Syncfusion.Pdf.Base.xml +++ /dev/null @@ -1,207816 +0,0 @@ - - - - Syncfusion.Pdf.Base - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Indicates the region of the barcode. - - - - - Indicates the backColor of the barcode. - - - - - Indicates the barcolor of the barcode. - - - - - Indicates the textcolor of the barcode. - - - - - Indicates the narrow bar width. - - - - - Indicates the wide bar width. - - - - - Indicates the location on where to draw the barcode in the PDF Document. - - - - - Indicates the size of the the barcode to draw in the PDF Document. - - - - - Indicates the data string which is to be encoded. - - - - - Indicates the free area around the barcode label. - - - - - Indicates the actual width of the barcode. - - - - - Indicates the actual height of the barcode. - - - - - Indicates the bar height of the barcode. - - - - - Indicates the extended text; - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Initializes a new instance of the class. - - Set the barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode("0123"); - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode("0123") - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Internal method which validates whether the given text is acceptable by the current barcode - specification or not. - - The Text. - True if Valid, Otherwise False - - - - Internal method which calculates the size of the barcode which is going to rendered. - - - - - - Initializes this instance. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode back color. - code93.BackColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode back color. - code93.BackColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode color. - code93.BarColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode color. - code93.BarColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode text color. - code93.TextColor = new PdfColor(Color.Green); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode text color. - code93.TextColor = new PdfColor(Color.Green) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode narrow width. - code93.NarrowBarWidth =1f; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode narrow width. - code93.NarrowBarWidth = 1f - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Sets the barcode text. - code93.Text ="CODE93"; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Sets the barcode back color. - code93.Text ="CODE93" - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Gets or sets the location to render barcode in the PDF Document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode location. - code93.Location = new PointF(50, 50); - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode location. - code93.Location = new PointF(50, 50) - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Sets the barcode quiet zone. - code93QuietZone = quietZones; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f - 'Sets the barcode quiet zone. - code93QuietZone = quietZones - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode height. - code93.BarHeight = 50f; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Sets the barcode height. - code93.BarHeight = 50f - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode size - SizeF size=code93.Size; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Get the barcode size. - SizeF size=code93.Size - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Sets the barcode bounds. - RectangleF bounds=code39.Bounds; - //Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("PdfBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Get the barcode bounds. - RectangleF bounds=code39.Bounds - 'Draws a barcode on the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save document to disk. - document.Save("PdfBarcode.pdf") - - - - - - Gets or sets the barcode text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification."); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.") - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException(); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException() - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - User defined error message. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification."); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.") - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - User defined error message. - The inner exception. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); /// - /Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //barcode text. - string barcodeText = "0123x"; - string validExpression = @"^[\d\-\$\:\/\.\+]+$"; - Regex regex = new Regex(validExpression, RegexOptions.Compiled); - if (!regex.IsMatch(barcodeText)) - { - //Create new barcode exception instance. - PdfBarcodeException barcodeException = new PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.", new InvalidDataException("Invalid input text")); - throw barcodeException; - } - else - { - //Sets the barcode text. - codaBarcode.Text = "0123x"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - } - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'barcode text. - Dim barcodeText As String = "0123x" - Dim validExpression As String = "^[\d\-\$\:\/\.\+]+$" - Dim regex As New Regex(validExpression, RegexOptions.Compiled) - If Not regex.IsMatch(barcodeText) Then - 'Create new barcode exception instance. - Dim barcodeException As New PdfBarcodeException("Barcode Text contains characters that are not accepted by this barcode specification.", New InvalidDataException("Invalid input text")) - Throw barcodeException - Else - 'Sets the barcode text. - codaBarcode.Text = "0123x" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - End If - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The object that holds the serialized object data. - The contextual information about the source or destination. - - - - Represets the Utility class for storing barcode symbols. - - - - - Indicates the symbol. - - - - - Indicates the check character. - - - - - Indicates the Data. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The symbol. - The check digit. - The bars. - - - - Gets or sets the Symbol. - - - - - Gets or sets the check digit. - - - - - Gets or sets the bar information. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - Internal variable to store margin. - - - - - Internal variable to store right margin. - - - - - Internal variable to store top margin. - - - - - Internal variable to store left margin. - - - - - Internal variable to store bottom margin. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Right = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Right = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Top = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Top = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Left = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Left = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.Bottom = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.Bottom = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f; - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones(); - quietZones.All = 0f; - //Set the barcode quiet zone. - code93.QuietZone = quietZones; - bool isAll=code93.QuietZone.IsAll; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("code93.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Creates a new PdfBarcodeQuietZones. - PdfBarcodeQuietZones quietZones = new PdfBarcodeQuietZones() - quietZones.All = 0f - code39.QuietZone=quietZones - Dim isAll As bool = code39.QuietZone.IsAll - 'Set the barcode quiet zone. - code93.QuietZone = quietZones - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Holds data of barcode. - - - - - Indicates the backColor of the barcode. - - - - - Stores the location of the barcode - - - - - Holds the quietzone. - - - - - Holds the dimension of the barcode. - - - - - Holds the Size of the barcode. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "www.syncfusion.com"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "www.syncfusion.com" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the data as byte array. - - - - - - Draw the barcode to PDF. - - The PdfPageBase to be drawn the barcode. - The location of the barcode to be drawn in the page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw the barcode to PDF page. - - The PDF page to be drawn the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Export the barcode as image. - - The exported image of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage() - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the size of the barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the barcode text. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets Quietzone for the barcode. - - - - - Gets or sets the dimension for the barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the loaction of the barcode to be rendered in the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Set the barcode text. - codaBarcode.Text = "0123"; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Set the font.. - codaBarcode.Font = font - 'Set the barcode text. - codaBarcode.Text = "0123" - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - This symbology allows the encoding of strings of up to 16 digits, 10 numeric digits (0 through 9) and - 6 special non alpha characters ("+", "-", "$", "/", ":", "."). - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Indicates whether the Checkdigit is already added to the barcode text or not. - Used with the barcodes which involves multiple checksum calculations. - - - - - To check whether Barcode is Continuous Barcode or discrete - - - - - Automatically adds the check digit to the barcode when true. - - - - - Indicates barcode pattern. - - - - - Indicates the barcode text display location. - - - - - Indicates the font used to draw the text. - - - - - Indicates the start symbol. - - - - - Indicates the stop symbol. - - - - - Indicates the validation expression which is used to validate the input text. - - - - - Indicates the validation expression. - - - - - Indicates whether to show check digit or not. - - - - - Indicates whether to enable / disable the check digits. - - - - - Indicates the intercharcter gap between bars. - - - - - Indicates the gap between barcode and the text. - - - - - Indicates the text alignment. - - - - - Indicates whether to encode start and stop symbols or not. - - - - - returns true when the Font property is set. - - - - - Initializes the new instance of - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Sets the barcode text. - codaBarcode.Text = "0123"; - //Draws a barcode on the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As New PdfCodabarBarcode() - 'Sets the barcode text. - codaBarcode.Text = "0123" - 'Draws a barcode on the new Page. - codaBarcode.Draw(page, New PointF(25, 500)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - The barcode location. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on location and size value. - - The PDF page. - The barcode location. - The size of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500), new SizeF(200,200)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New PointF(25, 500), New SizeF(200, 200)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on rectangle input values. - - The PDF page. - The bounds of the barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new RectangleF(new PointF(25, 500), new SizeF(200,200))); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, New RectangleF(New PointF(25, 500), New SizeF(200, 200))) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draw one dimensional barcode based on float input values. - - The PDF page. - The x coordinate of the upper-left corner of the bounding rectangle. - The y coordinate of the upper-top corner of the bounding rectangle. - The width of the bouding rectangle. - The height of the bounding rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, 25, 500, 200, 200); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, 25, 500,200, 200) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - /// - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the font to code11. - code11.Font = font; - //Set the barcode text. - code11.Text = "012345678"; - code11.Location = new PointF(100,100); - //Draw a barcode in the new Page. - code11.Draw(page); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the font to code11. - code11.Font = font - 'Set the barcode text. - code11.Text = "012345678" - code11.Location = New PointF(100,100); - 'Draw a barcode in the new Page. - code11.Draw(page) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Exports the barcode as image. - The barcode image. - - - - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the barcode text. - code11.Text = "012345678"; - //Get the image for Code32 Barcode. - Image image= code32.ToImage(); - //Save the image into Disk - image.Save("Code32.png", ImageFormat.Png); - - - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the barcode text. - code11.Text = "012345678" - 'Get the image for Code32 Barcode. - Image image= code32.ToImage() - 'Save the image into Disk - image.Save("Code32.png", ImageFormat.Png) - - - - - - Export the barcode as image. - - The size of the barcode. - - - - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the barcode text. - code11.Text = "012345678"; - //Get the image for Code32 Barcode. - Image image= code32.ToImage(new SizeF(200,200)); - //Save the image into Disk - image.Save("Code32.png", ImageFormat.Png); - - - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the barcode text. - code11.Text = "012345678" - 'Get the image for Code32 Barcode. - Image image= code32.ToImage(New SizeF(200,200)) - 'Save the image into Disk - image.Save("Code32.png", ImageFormat.Png) - - - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Returns the size of the barcode. - - The Size. - - - - Returns the Width of the barcode. - - - - - - To get the Extended Text - - - - - Calculates the check digit based on the barcode specification. - - Char array containing Check digits - - - - Returns the Character width. - - - The width. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Internal method used to paint bars on the page. - - The Page. - The Rectangle. - Returns the right margin. - - - - Returns the width of the barcode. - - The Width. - - - - Returns the height of the barcode. - - The Height. - - - - Internal method used to paint bars on the image. - - The graphics to draw. - The Rectangle. - Returns the right margin. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Set the barcode font. - code93.Font = font; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Set the barcode font. - code93.Font = font - 'Draw a barcode in the new Page. - code93.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Set the barcode text display location. - code93.TextDisplayLocation = TextLocation.Bottom; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code93 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Set the barcode text display location. - code93.TextDisplayLocation = TextLocation.Bottom - 'Draw a barcode in the new Page. - code93.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - The Default value is false. - - - The Default value is True. - - - - - - Default value is Center. - - - - - true if [encode start stop symbols]; otherwise, false. - - - - - Gets or sets the barcode symbols. - - - - - Gets or sets the barcode symbols. - - - - - Gets or sets the start symbol for the current barcode specification. - - - - - Gets or sets the stop symbol for the current barcode specification. - - - - - Gets or sets the validation expression to validate the given text. - - - - - Gets or sets the IntercharacterGap. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode(); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Set the barcode text. - codaBarcode.Text = "0123"; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode() - 'Set the font.. - codaBarcode.Font = font - 'Set the barcode text. - codaBarcode.Text = "0123" - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodabarBarcode. - PdfCodabarBarcode codaBarcode = new PdfCodabarBarcode("0123"); - //Set the font to codabarcode. - codaBarcode.Font = font; - //Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("CodaBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodabarBarcode. - Dim codaBarcode As PdfCodabarBarcode = New PdfCodabarBarcode("0123") - 'Set the font.. - codaBarcode.Font = font - 'Draw a barcode in the new Page. - codaBarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("CodaBarcode.pdf") - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont; - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - Only the following symbols are allowed in a Code 11 barcode: 0 1 2 3 4 5 6 7 8 9 - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode(); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Set the barcode text. - code11.Text = "012345678"; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode() - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont; - 'Set the barcode text. - code11.Text = "012345678" - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create pdfFont and pdfFont style. - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode11Barcode. - PdfCode11Barcode code11 = new PdfCode11Barcode("012345678"); - //Set the pdffont to code11 barcode. - code11.Font = pdfFont; - //Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code11.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create pdfFont and pdfFont style. - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode11Barcode. - Dim code11 As PdfCode11Barcode = New PdfCode11Barcode("012345678") - 'Set the pdffont to code11 barcode. - code11.Font = pdfFont - 'Draw a barcode in the new Page. - code11.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code11.pdf") - - - The Barcode Text. - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - Symbol - - - - Gets the symbol row. - - The check value. - barcode symbol table - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode(); - //Set the font to code128A. - code128A.Font = font; - //Set the barcode text. - code128A.Text = "CODE128A"; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode() - 'Set the font to code128A. - code128A.Font = font - 'Set the barcode text. - code128A.Text = "Code128A" - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - Only the following symbols are allowed in a Code 128 A barcode: NUL (\x00) SOH (\x01) STX (\x02) ETX (\x03) EOT (\x04) ENQ (\x05) ACK (\x06) BEL (\x07) BS (\x08) HT (\x09) LF (\x0A) VT (\x0B) FF (\x0C) CR (\x0D) SO (\x0E) SI (\x0F) DLE (\x10) DC1 (\x11) DC2 (\x12) DC3 (\x13) DC4 (\x14) NAK (\x15) SYN (\x16) ETB (\x17) CAN (\x18) EM (\x19) SUB (\x1A) ESC (\x1B) FS (\x1C) GS (\x1D) RS (\x1E) US (\x1F) SPACE ! # $ % ' * + , - . 0 1 2 3 4 5 6 7 8 9 : ; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ]^ _ FNC1 (\xF0) FNC2 (\xF1) FNC3 (\xF2) FNC4 - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode(); - //Set the font to code128A. - code128A.Font = font; - //Set the barcode text. - code128A.Text = "CODE128A"; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode() - 'Set the font to code128A. - code128A.Font = font - 'Set the barcode text. - code128A.Text = "Code128A" - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode Text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128ABarcode. - PdfCode128ABarcode code128A = new PdfCode128ABarcode("Code128A"); - //Set the font to code128A. - code128A.Font = font; - //Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128A.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128ABarcode. - Dim code32 As PdfCode128ABarcode = New PdfCode128ABarcode("Code128A") - 'Set the font to code128A. - code128A.Font = font - 'Draw a barcode in the new Page. - code128A.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128A.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode(); - //Set the font to code128B. - code128B.Font = font; - //Set the barcode text. - code128B.Text = "CODE128B"; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode() - 'Set the font to code128B. - code128B.Font = font; - 'Set the barcode text. - code128B.Text = "Code128B" - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - Only the following symbols are allowed in a Code 128 B barcode:SPACE ! " # $ % ' ( ) * + , - . / 0 12 3 4 5 6 7 8 9 : ; ? @ A B C D E F G H I J K L M N O P Q R S T U V W X Y Z [ \ ]^ _ ` a b c d e f g h i j k l m n o p q r s t u v w x y z { | } ~ DEL (\x7F) FNC1 (\xF0) FNC2 (\xF1) FNC3 (\xF2) FNC4 (\xF3) SHIFT (\xF4). - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode(); - //Set the font to code128B. - code128B.Font = font; - //Set the barcode text. - code128B.Text = "CODE128B"; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode() - 'Set the font to code128B. - code128B.Font = font; - 'Set the barcode text. - code128B.Text = "Code128B" - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128BBarcode. - PdfCode128BBarcode code128B = new PdfCode128BBarcode("Code128B"); - //Set the font to code128B. - code128B.Font = font; - //Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128B.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128BBarcode. - Dim code32 As PdfCode128BBarcode = New PdfCode128BBarcode("Code128B") - 'Set the font to code128B. - code128B.Font = font; - 'Draw a barcode in the new Page. - code128B.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128B.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method used to validate the given barcode text. - - The Text. - True if valid, Otherwise False. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode(); - //Set the font to code32. - code32.Font = font; - //Set the barcode text. - code32.Text = "01234567"; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode() - 'Set the font to code32. - code32.Font = font - 'Set the barcode text. - code32.Text = "01234567" - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - Only the following symbols are allowed in a Code 32 barcode: 1 2 3 4 5 6 7 8 9 0. The barcode length is 9 digits (8 user defined digits + 1 check digit). - Code 32 barcodes are also known as Italian Pharmacode barcodes. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode(); - //Set the font to code39. - code32.Font = font; - //Set the barcode text. - code39.Text = "CODE39"; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode() - 'Set the font to code39. - code39.Font = font - 'Set the barcode text. - code39.Text = "CODE39" - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - Only the following symbols are allowed in a Code 39 barcode:Only the following symbols are allowed in a Code 39 barcode: 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - . $ / + % SPACE - All alphabetic characters are uppercase. If lowercase characters are required, then a Code 39 Extended barcode must be used. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode(); - //Set the font to code39. - code32.Font = font; - //Set the barcode text. - code39.Text = "CODE39"; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode() - 'Set the font to code39. - code39.Font = font - 'Set the barcode text. - code39.Text = "CODE39" - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39Barcode. - PdfCode39Barcode code39 = new PdfCode39Barcode("CODE39"); - //Set the font to code39. - code32.Font = font; - //Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39Barcode. - Dim code39 As PdfCode39Barcode = New PdfCode39Barcode("CODE39") - 'Set the font to code39. - code39.Font = font - 'Draw a barcode in the new Page. - code39.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39.pdf") - - - - - - Initializes this instance. - - - - - Internal method to calculate the check-digit - - - - - - Internal method which retrieves the specified symbol from the symbol table. - - - - - Local variable to store the Checksum character value. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode(); - //Set the font to code32. - code32.Font = font; - //Set the barcode text. - code32.Text = "01234567"; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode() - 'Set the font to code32. - code32.Font = font - 'Set the barcode text. - code32.Text = "01234567" - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode32Barcode. - PdfCode32Barcode code32 = new PdfCode32Barcode("01234567"); - //Set the font to code32. - code32.Font = font; - //Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code32.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode32Barcode. - Dim code32 As PdfCode32Barcode = New PdfCode32Barcode("01234567") - 'Set the font to code32. - code32.Font = font - 'Draw a barcode in the new Page. - code32.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code32.pdf") - - - The Barcode Text. - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Gets the barcode symbols. - - Encoded data - - - - To get the Actual Encoded Text from from original Text.. - - The original data. - original Data - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Initializes the internal barcode symbol table - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode(); - //Set the font to code39Ext. - code39Ext.Font = font; - //Set the barcode text. - code39Ext.Text = "Code39Ext"; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode() - 'Set the font to code39Ext. - code39Ext.Font = font - 'Set the barcode text. - code39Ext.Text = "Code39Ext" - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - All 128 ASCII characters can be encoded in an extended Code 39 barcode - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode(); - //Set the font to code39Ext. - code39Ext.Font = font; - //Set the barcode text. - code39Ext.Text = "Code39Ext"; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode() - 'Set the font to code39Ext. - code39Ext.Font = font - 'Set the barcode text. - code39Ext.Text = "Code39Ext" - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode39ExtendedBarcode. - PdfCode39ExtendedBarcode code39Ext = new PdfCode39ExtendedBarcode("Code39Ext"); - //Set the font to code39Ext. - code39Ext.Font = font; - //Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code39Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode39ExtendedBarcode. - Dim code39Ext As PdfCode39ExtendedBarcode = New PdfCode39ExtendedBarcode("Code39Ext") - 'Set the font to code39Ext. - code39Ext.Font = font - 'Draw a barcode in the new Page. - code39Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code39Ext.pdf") - - - - - - Internal method to calculate the check-digit - - check digit - - - - Initializes this instance. - - - - - Internal method which retrieves the specified symbol from the symbol table. - - - symbol - - - - Internal method to get the extended text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the font to code93. - code93.Font = font; - //Set the barcode text. - code93.Text = "CODE93"; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the font to code93. - code93.Font = font - 'Set the barcode text. - code93.Text = "CODE93" - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - Only the following symbols are allowed in a Code 93 barcode: 1 2 3 4 5 6 7 8 9 0 A B C D E F G H I J K L M N O P Q R S T U V W X Y Z - . $ / + % SPACE - All alphabetic characters are uppercase. If lowercase characters are required, then a Code 93 Extended barcode must be used. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the font to code93. - code93.Font = font; - //Set the barcode text. - code93.Text = "CODE93"; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the font to code93. - code93.Font = font - 'Set the barcode text. - code93.Text = "CODE93" - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode("CODE93"); - //Set the font to code93. - code93.Font = font; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode("CODE93") - 'Set the font to code93. - code93.Font = font - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("code93.pdf") - - - - - - Initializes the internal barcode symbol table - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Internal method to calculate the check-digit - - symbols - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode(); - //Set the font to code93Ext. - code93Ext.Font = font; - //Set the barcode text. - code93Ext.Text = "CODE39Ext"; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode() - 'Set the font to code93Ext. - code93Ext.Font = font - 'Set the barcode text. - code93Ext.Text = "CODE39Ext" - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - All 128 ASCII characters can be encoded in an extended Code 93 barcode. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode(); - //Set the font to code93Ext. - code93Ext.Font = font; - //Set the barcode text. - code93Ext.Text = "CODE39Ext"; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode() - 'Set the font to code93Ext. - code93Ext.Font = font - 'Set the barcode text. - code93Ext.Text = "CODE39Ext" - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode93ExtendedBarcode. - PdfCode93ExtendedBarcode code93 = new PdfCode93ExtendedBarcode("Code93Ext"); - //Set the font to code93Ext. - code93Ext.Font = font; - //Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code93Ext.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode93ExtendedBarcode. - Dim code93Ext As PdfCode93ExtendedBarcode = New PdfCode93ExtendedBarcode("Code93Ext") - 'Set the font to code93Ext. - code93Ext.Font = font - 'Draw a barcode in the new Page. - code93Ext.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code93Ext.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - To get the Checksum value - - checksum symbols - - - - Initializes the internal barcode symbol table - - - - - Gets the symbol. - - The check value. - symbol - - - - To get the Extended Text. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUpcBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode(); - //Set the font to upc. - upcbarcode.Font = font; - //Set the barcode text. - upcbarcode.Text = "UPC"; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUpcBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode() - 'Set the font to upc. - upcbarcode.Font = font; - 'Set the barcode text. - upcbarcode.Text = "UPC" - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - Only the following symbols are allowed in a UPC-A barcode: 0 1 2 3 4 5 6 7 8 9 B. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUPCBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode(); - //Set the font to upc. - upcbarcode.Font = font; - //Set the barcode text. - upcbarcode.Text = "UPC"; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUPCBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode() - 'Set the font to upc. - upcbarcode.Font = font; - 'Set the barcode text. - upcbarcode.Text = "UPC" - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCodeUPCBarcode. - PdfCodeUpcBarcode upcbarcode = new PdfCodeUpcBarcode("UPC"); - //Set the font to upc. - upcbarcode.Font = font; - //Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("UPC.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCodeUPCBarcode. - Dim code32 As PdfCodeUpcBarcode = New PdfCodeUpcBarcode("UPC") - 'Set the font to upc. - upcbarcode.Font = font; - 'Draw a barcode in the new Page. - upcbarcode.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("UPC.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Initializes the internal barcode symbol table - - - - - Represents the PDF datamatrix barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Holds the encoding. - - - - - Holds the data matrix size. - - - - - Holds the final array. - - - - - Array containing all possible datamatrix symbol attributes. - - - - - Holds the suitable symbol attribute based on input text. - - - - - Holds log array. - - - - - Holds ALog array. - - - - - Internal variable for RS polynomial. - - - - - Internal variable for block length. - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - Data to be converted as barcode. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode("Test"); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode("Test") - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes properties and calculation array for DataMatrix barcode. - - - - - Create log and alog arrays. - - - - - Creates factors for polynomial based on the data. - - Number of correction codewords required. - - - - Create matrix. - - Input data matrix. - - - - Builds data matrix. - - - - - Prepares data codeword by encoding and appending error correction codes. - - Data in bytes. - Final codeword ready for generating matrix. - - - - Encodes the data using Base256 encoder. - - Data to be encoded. - Encoded data. - - - - Compute codeword using 255 state algorithm. - - Codeword to compute. - Index of the codeword. - Encoded codeword. - - - - Encodes the data using Numeric encoder. - - Data to be encoded. - Encoded data. - - - - Encodes the data using ASCII encoder. - - Data to be encoded. - Encoded data. - - - - Compute error correction codewords. - - Data codewords. - Correction codeword array. - - - - Data codeword is padded to match the chosen symbol attribute. - - Length of data codeword. - Codeword without padding. - Codeword with padding. - - - - Special field multiplication. - - - - - - - - Choose suitable encoding. - - Data codeword. - Encoded codeword. - - - - Adds quietzone on all sides of the data matrix. - - Input data matrix. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage() - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Convert the data matrix barcode to image - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Get the barcode as image. - Image img = datamatrix.ToImage(new SizeF(200,200)); - //Draw image to PDF page. - page.Graphics.DrawImage(new PdfBitmap(img), PointF.Empty); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Get the barcode as image. - Dim img As Image = datamatrix.ToImage(New SizeF(200,200)) - 'Draw image to PDF page. - page.Graphics.DrawImage(New PdfBitmap(img), PointF.Empty) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - Draw DataMatrix barcode on Pdf Document. - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100), new SizeF(200,200)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100), New SizeF(200,200)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw DataMatrix Barcode in pdf document. - - The PDF page to be drawn the barcode. - The rectangle bounds of the rendering area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new RectangleF(100, 100, 200, 200)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New RectangleF(100, 100, 200, 200)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draw DataMatrix barcode in pdf document. - - The PDF page to be draw the barcode. - The x coordinate of the upper-left corner of the bounding rectangle. - The Y coordinate of the upper-top corner bounding rectangle. - The width of the barcode bounding rectangle. - The height of the barcode bounding rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, 100, 100, 200, 200); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, 100, 100, 200, 200) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws datamatrix in the PdfPage. - - The PDF page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set back color. - datamatrix.BackColor = new PdfColor(Color.Red); - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Draws a barcode on the new Page. - datamatrix.Draw(page, new PointF(100,100)); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set back color. - datamatrix.BackColor = New PdfColor(Color.Red) - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Draws a barcode on the new Page. - datamatrix.Draw(page, New PointF(100,100)) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII; - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the actual number of rows (including quietzones). - - - - - Returns the actual number of columns (including quietzones). - - - - - Symbol attribute structure for the DataMatrix. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - Only the following symbols are allowed in a Code 128C barcode: 0 1 2 3 4 5 6 7 8 9 FNC1 (\xF0). Code 128 C encodes only numeric symbols at double density, each pair of digits is encoded using a single symbol. - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode(); - //Set the font to code128C. - code128C.Font = font; - //Set the barcode text. - code128C.Text = "Code128C"; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode() - 'Set the font to code128C. - code128C.Font = font - 'Set the barcode text. - code128C.Text = "Code128C" - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Initializes a new instance of the class. - - The Barcode text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfCode128CBarcode. - PdfCode128CBarcode code128C = new PdfCode128CBarcode("Code128C"); - //Set the font to code128C. - code128C.Font = font; - //Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("Code128C.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Creates a new PdfCode128CBarcode. - Dim code128C As PdfCode128CBarcode = New PdfCode128CBarcode("Code128C") - 'Set the font to code128C. - code128C.Font = font - 'Draw a barcode in the new Page. - code128C.Draw(page, new PointF(25, 500)) - 'Save the document to disk. - document.Save("Code128C.pdf") - - - - - - Calculates the check digit for this barcode specification. - - The Check digits. - - - - Returns the Actual text to encode. - - The Actual Text. - - - - Gets the data to encode. - - The original data. - Encoded string. - - - - Initializes the internal barcode symbol table - - - - - Internal method used for reading a symbol from barcode symbol table. - - - - - Represents the PDF QR barcode. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a defalut DPI - - - - - Holds the Version Information. - - - - - Holds the Number of Modules. - - - - - Holds the data of Function Pattern. - - - - - Holds the Data in the Encoding Region. - - - - - Holds the Input Mode. - - - - - Holds the Error correction level. - - - - - Holds the Data Bit value. - - - - - Holds the Number of Blocks. - - - - - Holds the Image. - - - - - Check if User Mentioned Mode. - - - - - Check if User Mentioned Version. - - - - - Check if User Mentioned Error Correction Level. - - - - - Check if ECI. - - - - - Holds the ECI Assignment Number. - - - - - Variable to hold the QR Barcode Values. - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Exports the barcode as image. - The barcode image. - - - - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - //Get the image for QR Barcode. - Image image= qrCode.ToImage(); - //Save the image into Disk - image.Save("QRCode.png", ImageFormat.Png); - - - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - 'Get the image for Code32 Barcode. - Dim image As Image = qrCode.ToImage() - 'Save the image into Disk - image.Save("QRCode.png", ImageFormat.Png) - - - - - - - Draws the barcode on the at the specified location. - - The pdf page. - The barcode location. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - //Draw a barcode in the new Page. - qrCode.Draw(page, new PointF(25, 500)); - //Save the document to disk. - document.Save("QRBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - 'Draw a barcode in the new Page. - qrCode.Draw(page, New PointF(25, 500)) - 'Save the document to disk. - document.Save("QRBarcode.pdf") - - - - - - - - - Draws the barcode on the at the specified location. - - The PDF page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Creates a new PdfQRBarcode. - PdfQRBarcode qrCode = new PdfQRBarcode(); - //Set the barcode text. - qrCode.Text = "012345678"; - qrCode.Location = new PointF(100,100); - //Draw a barcode in the new Page. - qrCode.Draw(page); - //Save the document to disk. - document.Save("QRBarcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfQRBarcode. - Dim qrCode As PdfQRBarcode = New PdfQRBarcode() - 'Set the barcode text. - qrCode.Text = "012345678" - qrCode.Location = new PointF(100,100); - 'Draw a barcode in the new Page. - qrCode.Draw(page) - 'Save the document to disk. - document.Save("QRBarcode.pdf") - - - - - - Generates the values of the QR Barcode - - - - - Adds quietzone to the QR Barcode. - - - - - Draw the PDP in the given location - - The x co-ordinate. - The y co-ordinate. - - - - Draw the Timing Pattern - - - - - Draw the Alignment Pattern in the given location - - The x co-ordinate. - The y co-ordinate. - - - - Encode the Input Data - - - - - Allocates the Encoded Data and then Mask - - Encoded Data. - - - - Draw the Format Information - - - - - Initializes the Version, Error correction level, Input Mode. - - - - - Splits the Code words - - The Encoded value Blocks. - Index of Block Number. - Length of the Block. - - - - Creates the Blocks - - The Encoded value. - Number of Blocks. - - - - Converts Integer value to Boolean - - The Integer value. - Number of Bits. - - - - Converts string value to Boolean - - The String value. - Number of Bits. - - - - Gets the Allignment pattern coordinates of the current version. - - - - - Allocates Format and Version Information - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05 - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Struct to hold the value of each dots in Barcode. - - - - - Specifies if the Dot is black. - - - - - Specifies if the Dot is already filled. - - - - - Specifies if the Dot is PDP. - - - - - Holds the Version Information. - - - - - Holds the Error Correction Level. - - - - - Holds the Number of Data code word. - - - - - Holds the Number of Error correcting code words. - - - - - Holds the Number of Error correction Blocks. - - - - - Holds the End value of the version. - - - - - Holds the Data copacity of the version. - - - - - Holds the Format Information. - - - - - Holds the Version Information. - - - - - Holds all the values of Error correcting code words. - - - - - Holds all the end values. - - - - - Holds all the Data capacity values. - - - - - Holds all the Numeric Data capacity of the Error correction level Low. - - - - - Holds all the Numeric Data capacity of the Error correction level Medium. - - - - - Holds all the Numeric Data capacity of the Error correction level Quartile. - - - - - Holds all the Numeric Data capacity of the Error correction level High. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Low. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Medium. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level Quartile. - - - - - Holds all the Alphaumeric Data capacity of the Error correction level High. - - - - - Holds all the Binary Data capacity of the Error correction level Low. - - - - - Holds all the Binary Data capacity of the Error correction level Medium. - - - - - Holds all the Binary Data capacity of the Error correction level Quartile. - - - - - Holds all the Binary Data capacity of the Error correction level High. - - - - - Initializes the Values. - - - - - Gets the Alphanumeric values. - - - - - Gets number of Data code words. - - - - - Get number of Error correction code words. - - - - - Gets number of Error correction Blocks. - - - - - Gets the End of the version. - - - - - Gets Data capacity. - - - - - Gets Format Information. - - - - - Gets Version Information. - - - - - Gets equivalent Number of the Character. - - - - - Gets Numeric Data capacity. - - - - - Gets Alphanumeric data capacity. - - - - - Get or Private set the Number of Data code words. - - - - - Get or Private set the Number of Error correction code words. - - - - - Get or Private set the Number of Error correction Blocks. - - - - - Get or Private set the End value of the Current Version. - - - - - Get or Private set the Data capacity. - - - - - Get or Private set the Format Information. - - - - - Get or Private set the Version Information. - - - - - Holds the Length - - - - - Holds the Error Correction Code Word - - - - - Holds the DataBits - - - - - Holds the Data Code word - - - - - Holds G(x) - - - - - Holds all the values of Alpha - - - - - Holds the Decimal value - - - - - Holds the values of QR Barcode - - - - - Initializes Error correction code word - - Version. - Error correction level. - - - - Gets the Error correction code word - Error correction code word. - - - - - Convert to Decimal - - Binary values. - - - - Convert decimal to Binary value - Binary Representation. - - Decimal Representation. - - - - Polynomial division - Polynomial coefficient. - - - - - Find the element in the alpha - Index of the element. - - Element. - Alpha. - - - - Gets g(x) of the element - g(x) - - Element. - Alpha. - - - - Sets and Gets the Data code word - - - - - Sets and Gets the DataBits - - - - - Sets and Gets the Error Correction Code Words - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the barcode text location. - code93.TextDisplayLocation = TextLocation.Bottom; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("Barcode.pdf"); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the barcode text location. - code93.TextDisplayLocation = TextLocation.Bottom - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("Barcode.pdf") - - - - - - Displays, no text. - - - - - Displays text, above the barcode. - - - - - Displays text, at the bottom of the barcode. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PdfCode93Barcode. - PdfCode93Barcode code93 = new PdfCode93Barcode(); - //Set the barcode text alignment - code93.TextAlignment = PdfBarcodeTextAlignment.Center; - //Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)); - //Save document to disk. - document.Save("Barcode.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PdfCode93Barcode. - Dim code39 As PdfCode93Barcode = New PdfCode93Barcode() - 'Set the barcode text alignment - code93.TextAlignment = PdfBarcodeTextAlignment.Center - 'Draw a barcode in the new Page. - code93.Draw(page, new PointF(25, 500)) - 'Save the document. - document.Save("Barcode.pdf") - - - - - - Displays the readable text on the left side of the barcode. - - - - - Displays the readable text at the center of the barcode. - - - - - Displays the readable text on the right side of the barcode. - - - - - Specifies the data matrix barcode encoding. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII; - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Set data matrix barcode encoding. - datamatrix.Encoding = PdfDataMatrixEncoding.ASCII - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Encoding is choosen based on the data. - - - - - Encoding is done by ASCII encoder. - - - - - Encoding is done by Numeric encoder. - - - - - Encoding is done by Base256 encode. - - - - - Specifies the data matrix barcode size. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF datamatrix barcode. - PdfDataMatrixBarcode datamatrix = new PdfDataMatrixBarcode(); - //Sets the barcode text. - datamatrix.Text = "Test"; - //Set the dimention of the barcode. - datamatrix.XDimension = 5; - //Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20; - //Set the barcode location. - datamatrix.Location = new PointF(100, 100); - //Draws a barcode on the new Page. - datamatrix.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF datamatrix barcode. - Dim datamatrix As New PdfDataMatrixBarcode() - 'Sets the barcode text. - datamatrix.Text = "Test" - 'Set the dimention of the barcode. - datamatrix.XDimension = 5 - 'Set barcode size. - datamatrix.Size = PdfDataMatrixSize.Size20x20 - 'Set the barcode location. - datamatrix.Location = New PointF(100, 100) - 'Draws a barcode on the new Page. - datamatrix.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Size is choosen based on the data. - - - - - Square matrix with 10 rows and 10 columns. - - - - - Square matrix with 12 rows and 12 columns. - - - - - Square matrix with 14 rows and 14 columns. - - - - - Square matrix with 16 rows and 16 columns. - - - - - Square matrix with 18 rows and 18 columns. - - - - - Square matrix with 20 rows and 20 columns. - - - - - Square matrix with 22 rows and 22 columns. - - - - - Square matrix with 24 rows and 24 columns. - - - - - Square matrix with 26 rows and 26 columns. - - - - - Square matrix with 32 rows and 32 columns. - - - - - Square matrix with 36 rows and 36 columns. - - - - - Square matrix with 40 rows and 40 columns. - - - - - Square matrix with 44 rows and 44 columns. - - - - - Square matrix with 48 rows and 48 columns. - - - - - Square matrix with 52 rows and 52 columns. - - - - - Square matrix with 64 rows and 64 columns. - - - - - Square matrix with 72 rows and 72 columns. - - - - - Square matrix with 80 rows and 80 columns. - - - - - Square matrix with 88 rows and 88 columns. - - - - - Square matrix with 96 rows and 96 columns. - - - - - Square matrix with 104 rows and 104 columns. - - - - - Square matrix with 120 rows and 120 columns. - - - - - Square matrix with 132 rows and 132 columns. - - - - - Square matrix with 144 rows and 144 columns. - - - - - Rectangular matrix with 8 rows and 18 columns. - - - - - Rectangular matrix with 8 rows and 32 columns. - - - - - Rectangular matrix with 12 rows and 26 columns. - - - - - Rectangular matrix with 12 rows and 36 columns. - - - - - Rectangular matrix with 16 rows and 36 columns. - - - - - Rectangular matrix with 16 rows and 48 columns. - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the QR barcode version. - qrBarcode.Version = QRCodeVersion.Version05 - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the default version. - - - - - Specifies version 1 (21x21 modules). - - - - - Specifies version 2 (25x25 modules). - - - - - Specifies version 3 (29x29 modules). - - - - - Specifies version 4 (33x33 modules). - - - - - Specifies version 5 (37x37 modules). - - - - - Specifies version 6 (41x41 modules). - - - - - Specifies version 7 (45x45 modules). - - - - - Specifies version 8 (49x49 modules). - - - - - Specifies version 9 (53x53 modules). - - - - - Specifies version 10 (57x57 modules). - - - - - Specifies version 11 (61x61 modules). - - - - - Specifies version 12 (65x65 modules). - - - - - Specifies version 13 (69x69 modules). - - - - - Specifies version 14 (73x73 modules). - - - - - Specifies version 15 (77x77 modules). - - - - - Specifies version 16 (81x81 modules). - - - - - Specifies version 17 (85x85 modules). - - - - - Specifies version 18 (89x89 modules). - - - - - Specifies version 19 (93x93 modules). - - - - - Specifies version 20 (97x97 modules). - - - - - Specifies version 21 (101x101 modules). - - - - - Specifies version 22 (105x105 modules). - - - - - Specifies version 23 (109x109 modules). - - - - - Specifies version 24 (113x113 modules). - - - - - Specifies version 25 (117x117 modules). - - - - - Specifies version 26 (121x121 modules). - - - - - Specifies version 27 (125x125 modules). - - - - - Specifies version 28 (129x129 modules). - - - - - Specifies version 29 (133x133 modules). - - - - - Specifies version 30 (137x137 modules). - - - - - Specifies version 31 (141x141 modules). - - - - - Specifies version 32 (145x145 modules). - - - - - Specifies version 33 (149x149 modules). - - - - - Specifies version 34 (153x153 modules). - - - - - Specifies version 35 (157x157 modules). - - - - - Specifies version 36 (161x161 modules). - - - - - Specifies version 37 (165x165 modules). - - - - - Specifies version 38 (169x169 modules). - - - - - Specifies version 39 (173x173 modules). - - - - - Specifies version 40 (177x177 modules). - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the error correction level. - qrBarcode.ErrorCorrectionLevel = PdfErrorCorrectionLevel.High - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - The Recovery capacity is 7%(approx.) - - - - - The Recovery capacity is 15%(approx.) - - - - - The Recovery capacity is 25%(approx.) - - - - - The Recovery capacity is 30%(approx.) - - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Creates a new PDF QR barcode. - PdfQRBarcode qrBarcode = new PdfQRBarcode(); - //Set text. - qrBarcode.Text = "012345678"; - //Set barcode size. - qrBarcode.Size = new SizeF(200, 200); - //Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode; - //Set the dimention of the barcode. - qrBarcode.XDimension = 5; - //Set the barcode location. - qrBarcode.Location = new PointF(100, 100); - //Draw the barcode to PDF page. - qrBarcode.Draw(page); - //Save document to disk. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creates a new PDF QR barcode. - Dim qrBarcode As New PdfQRBarcode() - 'Set text. - qrBarcode.Text = "012345678" - 'Set barcode size. - qrBarcode.Size = New SizeF(200, 200) - 'Set the input mode. - qrBarcode.InputMode = InputMode.BinaryMode - 'Set the dimention of the barcode. - qrBarcode.XDimension = 5 - 'Set the barcode location. - qrBarcode.Location = New PointF(100, 100) - 'Draw the barcode to PDF page. - qrBarcode.Draw(page) - 'Save document to disk. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - The Input only contains the Numeric Values(0,1,2,3,4,5,6,7,8,9). - - - - - The Input may contain Numeric Values, Alphabets(Upper case only), SPACE, $, %, *, +, -, ., /, : - - - - - The Input may contain all the ASCII values - - - - - - This class holds the name of the Syncfusion.Pdf.Base assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - - - The root namespace of this assembly. Used internally for - locating resources within the assembly. - - - - - - - The full name of this assembly without version information: "Syncfusion.Pdf.Base". - - - - - - - A reference to the - for the grid assembly. - - - - - - - This delegate helps with resolving types and can be used as - an event handler for a - event. - - The source of the event. - The event data with information about - the type. - - A reference to the assembly where the type is located. - - - Use this handler when reading back types from a serialization - stream saved with an earlier version of this assembly. - - - - public static GridModel LoadSoap(Stream s) - { - try - { - AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(GridAssembly.AssemblyResolver); - SoapFormatter b = new SoapFormatter(); - b.AssemblyFormat = FormatterAssemblyStyle.Simple; - GridModel t = b.Deserialize(s) as GridModel; - t.Modified = false; - return t; - } - finally - { - AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(GridAssembly.AssemblyResolver); - } - } - - - - - - - - - - Configuration class for the PDF library. In the current - version, there are no explicit settings. Adding this - component from the toolbar allows you to configure your - project for PDF support easily. - - - - - Initializes a new instance of the class. - - - - - - - Copyright notice for the library. - - - - - Exception of this type is raised when the document contains object which are not - supported by current document standard.Inherited from - - - - - The class represents general PDF document level exceptions. - The inherited from the class - - - - - The class represents general PDF exceptions. - The inherited from the class - - - - PdfLoadedDocument document; - try - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf"); - } - catch (Syncfusion.Pdf.PdfException) - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf", true); - } - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument - Try - document = New PdfLoadedDocument("input.pdf") - Catch exception As Syncfusion.Pdf.PdfException - document = New PdfLoadedDocument("input.pdf", True) - End Try - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Initializes object by default error message. - - - - PdfLoadedDocument document; - try - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf"); - } - catch (Syncfusion.Pdf.PdfException) - { - //Load an existing document. - document = new PdfLoadedDocument("input.pdf", true); - } - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument - Try - document = New PdfLoadedDocument("input.pdf") - Catch exception As Syncfusion.Pdf.PdfException - document = New PdfLoadedDocument("input.pdf", True) - End Try - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object by specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - - Default exception message. - - - - - - Initializes object by default error message. - - - - - Initializes object by default error message and inner - exception object. - - The inner exception. - - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object by specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Default exception message. - - - - - Initializes object with default error message. - - - - - Initializes object with default error message and inner - exception object. - - The inner exception. - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object with specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Exception of this type is raised when annotation object is used incorrectly. - - - - - Default exception message. - - - - - Initializes object with default error message. - - - - - Initializes object with default error message and inner - exception object. - - The inner exception. - - - - Initializes object by specified error message. - - User defined error message. - - - - Initializes object with specified error message and inner - exception object. - - User defined error message. - The inner exception. - - - - Represents base class for all action types. - - Interface - - - - Defines the basic interace of the various Wrapper.. - - - - - Gets the element. - - - - - Next action to perform. - - - - - Internal variable to store dictionary; - - - - - Initializes a new instance of the class. - - - - - Initializes an instance. - - - - - Gets or sets the next action to be performed after the action represented by this instance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create a new sound action. - PdfSoundAction soundAction = new PdfSoundAction(@"startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Mix = true; - //Create a new PdfUriAction. - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Set the next action to the soundAction. - soundAction.Next = uriAction; - //Set the action. - document.Actions.AfterOpen = soundAction; - //Save document to disk. - document.Save("output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create a new sound action. - Dim soundAction As New PdfSoundAction("startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Mix = True - 'Create a new PdfUriAction. - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Set the next action to the soundAction. - soundAction.[Next] = uriAction - 'Set the action. - document.Actions.AfterOpen = soundAction - 'Save document to disk. - document.Save("output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - The Syncfusion.Pdf.Interactive namespace contains classes used to create interactive elements. - - - - - Represents collection of actions. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document. - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction. - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction. - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document. - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction. - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction. - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - The class used to handle the collection of PDF objects. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Get layer collection from page. - PdfCollection collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Get layer collection from page. - Dim collection As PdfCollection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - List of the collection. - - - - - Initializes a new instance of the class. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Initialize new instance of PDF collection. - PdfCollection collection = new PdfCollection(); - //Get layer collection from the page. - collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Initialize new instance of PDF collection. - Dim collection As PdfCollection = New PdfCollection() - 'Get layer collection from the page. - collection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - The one-dimensional Array that is the destination of the elements copied from ICollection. The Array must have zero-based indexing. - The zero-based index in array at which copying begins. - - - - Returns an enumerator that iterates through a collection. - - Returns an enumerator that iterates through a collection. - - - - Clearing the Collection. - - - - - Gets number of the elements in the collection. - - The total number of elements in the collection. - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Add new page. - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - //Get layer graphics. - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Get layer collection from page. - PdfCollection collection = page.Layers; - //Get the total count of layers. - int count = collection.Count; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - 'Get layer graphics. - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Get layer collection from page. - Dim collection As PdfCollection = page.Layers - 'Get the total count of layers. - Dim count As Integer = collection.Count - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets internal list of the collection. - - - - - Array of actions. - - - - - Adds the specified action to the collection - - The - The index of the action in the collection - - - - Inserts the action at the specified position. - - The index in the collection where the action to be inserted - The - - - - Gets the index of the action. - - The . - Index of the action - - - - Determines whether the action is contained within collection. - - The . - - Value, indicating the presents of the action in collection. - - - - - Clears the action collection. - - - - - Removes the specified action from the collection - - The . - - - - Removes the action at the specified index from the collection - - The index. - - - - Initializes a new instance of the class. - - - - - Adds the action. - - The action. - Index of the inserted action. - - - - Inserts the action. - - The index. - The action. - - - - Clear the collection. - - - - - Removes the action. - - The action. - - - - Removes the action at the specified position. - - The index. - - - - Gets the at the specified index. - - the - - - - Represents the action on form fields. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - - Internal variable to store value indicating whether to include - or exclude fields for resetting process. - - - - - Internal variable to store fields affected by the action. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - Gets or sets a value indicating whether fields contained in - collection will be included for resetting or submitting. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submitButton Font. - submitButton.Font = font; - //Set the submit button text - submitButton.Text = "Apply"; - //Set the submit button back color - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - formAction.Include = true; - //Set the submit button action. - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save and close the document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the bounds - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submitButton Font. - submitButton.Font = font - 'Set the submit button text - submitButton.Text = "Apply" - 'Set the submit button back color - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - formAction.Include = True - 'Set the submit button action. - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save and close the document - document.Save("FormAction.pdf") - document.Close(True) - - - - If Include property is true, only the fields in this collection will be reset or submitted. - If Include property is false, the fields in this collection are not reset or submitted - and only the remaining form fields are reset or submitted. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - - true if include; otherwise, false. - - - - Gets the fields. - - The fields. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the submitButton Bounds. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Create a new PdfFormAction. - PdfFormAction formAction = new PdfFormAction(); - //Gets the FieldCollection from formAction - PdfFieldCollection fields = formAction.Fields; - //Set actions to submit button - submitButton.Actions.GotFocus = formAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document - document.Save("FormAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField. - Dim submitButton As New PdfButtonField(page, "submitButton") - 'Set the submitButton Bounds. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Create a new PdfFormAction. - Dim formAction As New PdfFormAction() - 'Gets the FieldCollection from formAction - Dim fields As PdfFieldCollection = formAction.Fields - 'Set actions to submit button - submitButton.Actions.GotFocus = formAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document - document.Save("FormAction.pdf") - document.Close(True) - - - - - - Represents an action which goes to a destination in the current document. - - This class is used to display the specified page in the current document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store action's destination. - - - - - Initializes a new instance of the class with specified destination page. - - The destination to jump to. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfDestination - PdfDestination destination = new PdfDestination(pdfPages); - //Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage; - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(destination); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfDestination - Dim destination As New PdfDestination(pdfPages) - 'Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(destination) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified page. - - The page to navigate. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the destination to be navigated. - - The to navigate. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Font = font; - submitButton.Text = "Goto"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new page and adds it as the last page of the document - PdfPage pdfPages = document.Pages.Add(); - //Create a new PdfDestination - PdfDestination destination = new PdfDestination(pdfPages); - //Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage; - //Create a new PdfGoToAction - PdfGoToAction gotoAction = new PdfGoToAction(pdfPages); - //Set the destination - gotoAction.Destination = destination; - //Add the gotoAction - submitButton.Actions.GotFocus = gotoAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("GoToAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Font = font - submitButton.Text = "Goto" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new page and adds it as the last page of the document - Dim pdfPages As PdfPage = document.Pages.Add() - 'Create a new PdfDestination - Dim destination As New PdfDestination(pdfPages) - 'Set the PdfDestinationMode - destination.Mode = PdfDestinationMode.FitToPage - 'Create a new PdfGoToAction - Dim gotoAction As New PdfGoToAction(pdfPages) - 'Set the destination - gotoAction.Destination = destination - 'Add the gotoAction - submitButton.Actions.GotFocus = gotoAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("GoToAction.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Represents an java script action in PDF document. - - This class is used to perform the java script action in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Internal variable to store java script code. - - - - - Initializes a new instance of the class with java script code - - The java script code. - A string value representing valid javascript code to be executed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes instance. - - - - - Gets or sets the javascript code to be executed when this action is executed. - - A string value representing valid javascript code to be executed. - /// - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Get the javascript code. - string javascriptcode = javaScriptAction.JavaScript; - //Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Get the javascript code. - Dim javascriptcode As String = javaScriptAction.JavaScript - 'Add the JavaScript action - document.Actions.AfterOpen = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents an action which launches an application or opens or prints a document. - - This class is used to allow the external file to execute. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - Internal variable to store file specification. - - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("../../Data/logo.png",PdfFilePathType.Absolute) - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - Creates a Launch Action from loaded page - - - - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - //Get file name - string fileName = action.FileName; - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch Action to the document - Dim action As New PdfLaunchAction("logo.png") - 'Get file name - Dim fileName As String = action.FileName - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - - - - The class represents an named action which execute an action predefined by the viewer application. - - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Internal variable to store destination. - - - - - Initializes a new instance of the class. - - The object representing destination of an action. - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Set the destination - namedAction.Destination = PdfActionDestination.NextPage; - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Set the destination - namedAction.Destination = PdfActionDestination.NextPage - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes instance. - - - - - Gets or sets the destination. - - The object representing destination of an action. - - - //Create a new document - PdfDocument document = new PdfDocument(); - document.Pages.Add(); - document.Pages.Add(); - //Create a named action - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.LastPage); - //Set the destination - namedAction.Destination = PdfActionDestination.NextPage; - //Add the named action - document.Actions.AfterOpen = namedAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - document.Pages.Add() - document.Pages.Add() - 'Create a named action - Dim namedAction As New PdfNamedAction(PdfActionDestination.LastPage) - 'Set the destination - namedAction.Destination = PdfActionDestination.NextPage - 'Add the named action - document.Actions.AfterOpen = namedAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents additional actions of the annotations. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"Input.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("Input.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Internal variable to store enter action. - - - - - Internal variable to store leave action. - - - - - Internal variable to store mouse down action. - - - - - Internal variable to store mouse up action. - - - - - Internal variable to store get focus action. - - - - - Internal variable to store lost focus action. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - PdfAnnotationActions annotationActions = new PdfAnnotationActions(); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - annotationActions.MouseEnter = javaAction; - - - Dim annotationActions As PdfAnnotationActions = New PdfAnnotationActions() - 'Create a new PdfJavaScriptAction. - Dim javaAction As PdfJavaScriptAction = New PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")") - annotationActions.MouseEnter = javaAction - - - Class. - Class. - - - - Gets or sets the action to be performed when the cursor enters the annotation�s - active area. - - The mouse enter action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the cursor exits the annotation�s - active area. - - The mouse leave action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - annotation�s active area. - - The mouse down action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the mouse button is released - inside the annotation�s active area.. - - The mouse up action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the annotation receives the - input focus. - - The got focus action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets the action to be performed when the annotation loses the - input focus. - - The lost focus action. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Creata a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the element. - - - - - - Represents an actions for the PDF document. - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store dictionary wrapper. - - - - - Internal variable to store action to be performed after the document is opened. - - - - - Internal variable to store action to be perforemed before document closes. - - - - - Internal variable to store action to be performed before the document saves. - - - - - Internal variable to store action to be performed after the document saves. - - - - - Internal variable to store action to be performed before the document prints. - - - - - Internal variable to store action to be performed after the document prints. - - - - - Internal variable to store catalog. - - - - - Initializes a new instance of the class. - - The catalog. - - - - Gets or sets the to execute when the document is opened. - - A specifying the action to be executed when documents opens in the viewer. - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch action to the document - PdfLaunchAction action = new PdfLaunchAction("logo.png"); - document.Actions.AfterOpen = action; - //Save the document - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create and add new launch action to the document - Dim action As New PdfLaunchAction("logo.png") - document.Actions.AfterOpen = action - 'Save the document - document.Save("LaunchAction.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the java script action to be performed before the document is closed. - - A object specifying the action to be executed before the document is closed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforeClose = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforeClose = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the java script action to be performed before the document is saved. - - A object specifying the action to be executed before the document is saved. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforeSave = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforeSave = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the jave script action to be performed after the document is saved. - - A object specifying the action to be executed after the document is saved. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterSave = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterSave = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed before the document is printed. - - A object specifying the action to be executed before the document is printed. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.BeforePrint = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.BeforePrint = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed after the document is printed. - - A object specifying the action to be executed after the document is printed. . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create JavaScript action - PdfJavaScriptAction javaScriptAction = new PdfJavaScriptAction("app.alert(\"Hello World!!!\")"); - //Add the JavaScript action - document.Actions.AfterPrint = javaScriptAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create JavaScript action - Dim javaScriptAction As New PdfJavaScriptAction("app.alert(""Hello World!!!"")") - 'Add the JavaScript action - document.Actions.AfterPrint = javaScriptAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents actions to be performed as response to field events. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Internal variable to store annotation's actions. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store key pressed action. - - - - - Internal variable to store format action. - - - - - Internal variable to store validate action. - - - - - Internal variable to store calculate action. - - - - - Initializes a new instance of the class with - - The . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed when the user types a keystroke - into a text field or combo box or modifies the selection in a scrollable list box. - This action can check the keystroke for validity and reject or modify it. - - A object specifying the action to be executed when the user types a keystroke. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.KeyPressed = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.KeyPressed = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed before the field is formatted - to display its current value. This action can modify the field�s value before formatting. - - A object specifying the action to be executed for formatting the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Format = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Format = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed when the field�s value is changed. - This action can check the new value for validity. - - A object specifying the action to be executed for validating the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Validate = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Validate = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the JavaScript action to be performed to recalculate the value - of this field when that of another field changes. - - A object specifying the action to be executed for calculating the field value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfJavaScriptAction - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - //Set the javaAction to submitButton - submitButton.Actions.Calculate = javaAction; - //Add the submit button to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("JavaScriptAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - submitButton.BackColor = New PdfColor(181, 191, 203) - 'Create a new PdfJavaScriptAction - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - 'Set the javaAction to submitButton - submitButton.Actions.Calculate = javaAction - 'Add the submit button to the new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("JavaScriptAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse cursor enters the fields�s - area. - - A specifying the action to be executed when the mouse enters the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseEnter = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the cursor exits the fields�s - area. - - A descendant specifying the action to be executed when the mouse leaves the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseLeave = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse button is released - inside the field�s area. - - A specifying the action to be executed when the mouse button is released inside the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseUp = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - field�s area. - - A specifying the action to be executed when the mouse button is pressed inside the field's area. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.MouseDown = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the field receives the - input focus. - - A specifying the action to be executed when the field receives the input focus. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.GotFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the action to be performed when the field loses the - input focus. - - A specifying the action to be executed when the field losts the input focus. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt"); - //Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction; - //Add the submit button to a new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("LaunchAction.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction - Dim launchAction As New PdfLaunchAction("..\..\Data\Sample.txt") - 'Set the launch action to submit button - submitButton.Actions.LostFocus = launchAction - 'Add the submit button to a new document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("LaunchAction.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents PDF form's reset action,this action allows a user to reset the form fields to their default values. - - This class is used to reset all the form fields in the PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes an instance. - - - - - Gets or sets a value indicating whether fields contained in Fields - collection will be included for resetting. - - true if include; otherwise, false. - - If Include property is true, only the fields in this collection will be reset. - If Include property is false, the fields in this collection are not reset - and only the remaining form fields are reset. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a PdfButtonField - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - submitButton.Text = "Apply"; - //Create a new PdfResetAction - PdfResetAction resetAction = new PdfResetAction(); - resetAction.Include=true; - //Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction; - //Add the submit button to a document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ResetAction.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a PdfButtonField - Dim submitButton As New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - submitButton.Text = "Apply" - 'Create a new PdfResetAction - Dim resetAction As New PdfResetAction() - resetAction.Include=True - 'Set the resetAction to submitButton - submitButton.Actions.GotFocus = resetAction - 'Add the submit button to a document. - document.Form.Fields.Add(submitButton) - 'Save document to disk. - document.Save("ResetAction.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the sound action,sound action plays a specified music file in the PDF document - - This class is used to plays a music file in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store the volume at which to play the sound. - - - - - Internal variable to store sound. - - - - - Internal variable to store value whether to play sound synchronously or asynchronously. - - - - - Internal variable to store value whether to repeat playing. - - - - - Internal variable to store value whether to mix this sound with any other sound already playing. - - - - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the volume at which to play the sound, in the range -1.0 to 1.0. - - The volume of the sound. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - The name of the sound file. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Get the fileName form soundAction - string fileName=soundAction.FileName; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Get the fileName form soundAction - Dim fileName as string =soundAction.FileName; - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the sound. - - represents the . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value whether to play the sound synchronously or asynchronously. - If this flag is true, the viewer application retains control, allowing no further - user interaction other than canceling the sound, until the sound has been - completely played. Default value: false. - - true if synchronous; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Synchronous = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Synchronous = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether to repeat the sound indefinitely. - If this entry is present, the property is ignored. Default value: false. - - true if repeat; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Repeat = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Repeat = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether to mix this sound with any other - sound already playing. If this flag is false, any previously playing sound is - stopped before starting this sound; this can be used to stop a repeating - sound. Default value: false. - - true if mix; otherwise, false. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create a sound action - PdfSoundAction soundAction = new PdfSoundAction("../../Data/Startup.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - soundAction.Mix = true; - //Set the sound action - document.Actions.AfterOpen = soundAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a sound action - Dim soundAction As New PdfSoundAction("../../Data/Startup.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9F - soundAction.Mix = True - 'Set the sound action - document.Actions.AfterOpen = soundAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Represents PDF form's submit action.submit action allows submission of data that is entered in the PDF form - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store file name. - - - - - Internal variable to store submit flags. - - - - - Internal variable to store Http method. - - - - - Internal variable to store value whether to submit dates in canonical format. - - - - - Internal variable to store value whether to submit mouse pointer coordinates. - - - - - Internal variable to store value whether to submit fields without values. - - - - - Internal variable to store value whether to submit incremental updates. - - - - - Internal variable to store value indicating whether to submit annotations. - - - - - Internal variable to store value indicating whether to exclude non-user annotations. - - - - - Internal variable to store value indicating whether to embed form. - - - - - Internal variable to store submit data format. - - - - - Initializes a new instance of the class with URL to submit the form data - - The URL. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets an Url address where the data should be transferred. - - An string value specifying the full URI for the internet resource. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - string url=submitAction.Url; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Gets the url form the submit action - Dim url As String=submitAction.Url - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the HTTP method. - - The HTTP method. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - //Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - //Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction(""http://www.example.com/Submit.aspx""); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the HttpMethod to submit action - submitAction.HttpMethod=HttpMethod.Post; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - 'Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - 'Set the HttpMethod to submit action - submitAction.HttpMethod=HttpMethod.Post - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - If set, any submitted field values representing dates are converted to the - standard format. The interpretation of a form field as a date is not specified - explicitly in the field itself but only in the JavaScript code that processes it. - - - true if use canonical date time format when submit data; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the CanonicalDateTimeFormat to submit action - submitAction.CanonicalDateTimeFormat=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the CanonicalDateTimeFormat to submit action - submitAction.CanonicalDateTimeFormat=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit mouse pointer coordinates. If set, - the coordinates of the mouse click that caused the submit-form action are transmitted - as part of the form data. The coordinate values are relative to the upper-left corner - of the field�s widget annotation rectangle. - - true if submit coordinates; otherwise, false. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - 'Sets the SubmitCoordinates to submit action - submitAction.SubmitCoordinates=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the SubmitCoordinates to submit action - submitAction.SubmitCoordinates=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit fields without value. - If set, all fields designated by the Fields collection and the - flag are submitted, regardless of whether they have a value. For fields without a - value, only the field name is transmitted. - - - true if submit fields without value or the empty ones; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the IncludeNoValueFields to submit action - submitAction.IncludeNoValueFields=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeNoValueFields to submit action - submitAction.IncludeNoValueFields=true - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit form's incremental updates. - Meaningful only when the form is being submitted in Forms Data Format. - If set, the submitted FDF file includes the contents of all incremental - updates to the underlying PDF document. If clear, the incremental updates are - not included. - - - true if incremental updates should be submitted; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the IncludeIncrementalUpdates to submit action - submitAction.IncludeIncrementalUpdates=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeIncrementalUpdates to submit action - submitAction.IncludeIncrementalUpdates=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to submit annotations. - Meaningful only when the form is being submitted in Forms Data Format. - If set, the submitted FDF file includes all markup annotations in the - underlying PDF document. If clear, markup annotations are not included. - - true if annotations should be submitted; otherwise, false. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the IncludeAnnotations to submit action - submitAction.IncludeAnnotations=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the IncludeAnnotations to submit action - submitAction.IncludeAnnotations=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to exclude non user annotations form submit - data stream. Meaningful only when the form is being submitted in Forms Data Format - and the property is set to true. - - - true if non user annotations should be excluded; otherwise, false. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Set the ExcludeNonUserAnnotations to submit action - submitAction.ExcludeNonUserAnnotations=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Set the ExcludeNonUserAnnotations to submit action - submitAction.ExcludeNonUserAnnotations=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - - Gets or sets the - - The - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether fields contained in Fields - collection will be included for submitting. - - true if include; otherwise, false. - - If Include property is true, only the fields in this collection will be submitted. - If Include property is false, the fields in this collection are not submitted - and only the remaining form fields are submitted. - If the collection is null or empty, then all the form fields are reset - and the Include property is ignored. - If the field has Export property set to false it will be not included for - submitting in any case. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Sets the Include option to submit action - submitAction.Include=true; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - 'Sets the Include option to submit action - submitAction.Include=True - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Represents an action which resolves unique resource identifier. - - This class is used to create the hyper link in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Internal variable to store unique resource identifier. - - - - - Initializes a new instance of the class. - - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction(); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction() - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The unique resource identifier. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Initializes instance. - - - - - Gets or sets the unique resource identifier. - - The unique resource identifier. - - - //Create a new document with PDF/A standard. - PdfDocument document = new PdfDocument(); - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction(); - uriAction.Uri="http://www.google.com"; - //Add the action to the document - document.Actions.AfterOpen = uriAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document with PDF/A standard. - Dim document As New PdfDocument() - 'Create a Uri action - Dim uriAction As New PdfUriAction() - uriAction.Uri="http://www.google.com"; - 'Add the action to the document - document.Actions.AfterOpen = uriAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Specifies the file path type. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds to submitButton. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the submit button text. - submitButton.Text = "Launch"; - //Create a new PdfLaunchAction and set the PdfFilePathType. - PdfLaunchAction launchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute); - //Set the actions to submit button. - submitButton.Actions.GotFocus = launchAction; - //Save document to disk. - document.Save("ActionDestination.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new PdfButtonField. - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - 'Set the bounds to submit button. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the submit button text. - submitButton.Text = "Launch" - 'Create a new PdfLaunchAction and set the PdfFilePathType. - Dim launchAction As PdfLaunchAction = new PdfLaunchAction(@"..\..\Data\Sample.txt",PdfFilePathType.Absolute) - 'Set the actions to submit button. - submitButton.Actions.GotFocus = launchAction - 'Save document to disk. - document.Save("ActionDestination.pdf") - document.Close(True) - - - - - - Specifies the file location with out including the domain name. - - - - - Specifies the location, including the domain name. - - - - - Specifies the available named actions supported by the viewer. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Creates a new page - page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Create a new PdfButtonField. - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - //Set the bounds to submitButton. - submitButton.Bounds = new RectangleF(25, 160, 100, 20); - //Set the font to submitButton. - submitButton.Font = font; - //Sets the submit button text. - submitButton.Text = "First Page"; - //Set the back color to submit button. - submitButton.BackColor = new PdfColor(181, 191, 203); - //Create a new PdfNamedAction. - PdfNamedAction namedAction = new PdfNamedAction(PdfActionDestination.FirstPage); - //Set the named action destination. - namedAction.Destination=PdfActionDestination.PrevPage; - //Set the Actions to namedAction. - submitButton.Actions.GotFocus = namedAction; - //Add the submitButton to the new document. - document.Form.Fields.Add(submitButton); - //Save document to disk. - document.Save("ActionDestination.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Creates a new page - page = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Create a new PdfButtonField - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - 'Set the bounds to submit button. - submitButton.Bounds = New RectangleF(25, 160, 100, 20) - 'Set the font to submitButton. - submitButton.Font = font - 'Sets the submit button text. - submitButton.Text = "First Page" - 'Set the back color to submit button. - submitButton.BackColor = new PdfColor(181, 191, 203) - 'Create a new PdfNamedAction - Dim namedAction As PdfNamedAction = new PdfNamedAction(PdfActionDestination.FirstPage) - 'Set the named action. - namedAction.Destination=PdfActionDestination.PrevPage - 'Set the Actions to namedAction. - submitButton.Actions.GotFocus = namedAction - 'Add the submitButton to the new document. - document.Form.Fields.Add(gotoAction) - 'Save document to disk. - document.Save("ActionDestination.pdf") - document.Close(True) - - - - - - Navigate to first page. - - - - - Navigate to last page. - - - - - Navigate to next page. - - - - - Navigate to previous page. - - - - - Specifies the available data formats for submitting the form data. - - - - - If clear, the Fields array specifies which fields to - include in the submission. (All descendants of the specified fields in - the field hierarchy are submitted as well.) - If set, the Fields array tells which fields to exclude. All fields in the - document�s interactive form are submitted except those listed in the - Fields array and those whose NoExport flag. - - - - - If set, all fields designated by the Fields array and the Include/ - Exclude flag are submitted, regardless of whether they have a value. - For fields without a value, only the - field name is transmitted. - - - - - Meaningful only if the SubmitPDF and XFDF flags are clear. If set, - field names and values are submitted in HTML Form format. If - clear, they are submitted in Forms Data Format - - - - - If set, field names and values are submitted using an HTTP GET - request. If clear, they are submitted using a POST request. This flag - is meaningful only when the ExportFormat flag is set; if ExportFormat - is clear, this flag must also be clear. - - - - - If set, the coordinates of the mouse click that caused the submitform - action are transmitted as part of the form data. The coordinate - values are relative to the upper-left corner of the field�s widget annotation - rectangle. - - - - - Meaningful only if the SubmitPDF flags are clear. If set, - field names and values are submitted as XML Forms Data Format . - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF file includes the contents - of all incremental updates to the underlying PDF document, - as contained in the Differences entry in the FDF dictionary. - If clear, the incremental updates are not included. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF file includes all markup - annotations in the underlying PDF document. - If clear, markup annotations are not included. - - - - - If set, the document is submitted as PDF, using the - MIME content type application/pdf (described in Internet RFC - 2045, Multipurpose Internet Mail Extensions (MIME), Part One: - Format of Internet Message Bodies; see the Bibliography). If set, all - other flags are ignored except GetMethod. - - - - - If set, any submitted field values representing dates are - converted to the standard format described. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and - ExportFormat flags are clear) and the IncludeAnnotations flag is - set. If set, it includes only those markup annotations whose T entry - matches the name of the current user, as determined - by the remote server to which the form is being submitted. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the submitted FDF excludes the F entry. - - - - - Meaningful only when the form is being submitted in - Forms Data Format (that is, when both the XFDF and ExportFormat - flags are clear). If set, the F entry of the submitted FDF is a file - specification containing an embedded file stream representing the - PDF file from which the FDF is being submitted. - - - - - Represents the activation states for the 3D annotation. - - This class is used to set the activation states for the 3D annotation. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Internal variable to store the activation mode. - - - - - Internal variable to store the activation state. - - - - - Internal variable to store the deactivation mode. - - - - - Internal variable to store the deactivation state. - - - - - Internal variable reprsents whether to show toolbar or not. - - - - - Internal variable reprsents whether to show UI or not. - - - - - Internal variable to store dictionary. - - - - - Initializes the new instance of class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowUI = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowUI = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Initializes the instance. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the activation mode for the annotation. - - specifies the available modes for activating a 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the deactivation mode for the annotation. - - specifies the available modes for deactivating a 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose; - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Gets or sets the activation state for the annotation. - - specifies an activation state of the 3D annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @”Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation = activation; - annotation.Activation.ActivationState = Pdf3DActivationState.Live; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150),”Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - annotation.Activation = activation - annotation.Activation.ActivationState = Pdf3DActivationState.Live - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - - Gets or sets a value indicating whether the toolbar should be displayed when the annotation is activated or not. - - If true, a toolbar should be displayed by default when the annotation is activated and given focus. If false, a toolbar should not be displayed by default. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the UI for managing the 3D artwork should be displayed when the annotation is activated. - - If true, the user interface should be made visible when the annotation is activated. If false, the user interface should not be made visible by default. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ShowUI = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.ShowUI = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the lighting to apply for the 3D artwork. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear; - - - - - - Initializes a new instance of the class. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation() - animation.Type = PDF3DAnimationType.Linear - - - - - - Initializes a new instance of the class with specified 3D animation type. - - PDF 3D Animation Type. - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the animation. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Gets or sets the play count. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.PlayCount =10; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.PlayCount =10 - - - - - - Gets or sets the rendering opacity. - - A positive number specifying the time multiplier to be used when running the animation. A value greater than one shortens the time it takes to play the animation, or effectively speeds up the animation. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = 10f; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = 10f - - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the background appearance for 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Max value of color channel. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified color. - - The object specifying the background color for the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(color); - background.ApplyToEntireAnnotation = true; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground(color) - background.ApplyToEntireAnnotation = True - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the background color of the 3D artwork. - - The object specifying the background color for the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating how the background is applied. - - True if the background is applied to entire annotation, false if the background is applied to annotation's 3D view box only. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground. - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a view. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground. - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a view. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the base class for 3D annotation. - - - - - Internal variable to store stream. - - - - Name of the file. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Gets or sets the stream. - - The stream. - - - The name of the file. - - - - Gets the element. - - - - - - Represents the clipping portion of the 3D artwork for the purpose of showing artwork cross sections. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the center of the cutting plane. - - The list of float value specifies the cutting plane of the section. - A three element array specifying the center of rotation on the cutting plane in world space coordinates. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Center = new float[] { 40, 40, 40 }; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Center = New Single() { 40, 40, 40 } - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane color. - - specifies the cutting plane color of the 3D cross section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the intersection color. - - specifies the intersection color of the 3D cross section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the intersection of cutting plane with 3D artwork is visible. - - True if the intersection is visible , otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane opacity. - - A float value specifies the opacity of the annotation. - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the orientation of the cutting plane. - - A three-element array specifying the orientation of the cutting plane in world space, where each value represents the orientation in relation to the X, Y, and Z axes, respectively. - If the array has more than 3 elements, only the first 3 will be considered. Exactly one of the values must be null, indicating an initial state of the cutting plane that is perpendicular to the corresponding axis and clipping all geometry on the positive side of that axis. The other two values must be numbers indicating the rotation of the plane, in degrees, around their corresponding axes. The order in which these rotations are applied should match the order in which the values appear in the array. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - object[] orientation = crossSection.Orientation; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - object[] orientation = crossSection.Orientation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the collection of objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DCrossSectionCollection. - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Create a new Pdf3DCrossSectionCollection. - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Adds the specified value. - - The 3D cross section to be added. - The index value of the section to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - crossSection.Opacity = 100; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CrossSections.Add(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - crossSection.Opacity = 100 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.CrossSections.Add(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Determines whether the specified cross section is in collection. - - The - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - bool isExist = view.CrossSections.Contains(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - Dim isExist As Boolean = view.CrossSections.Contains(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Searches and finds the index of the specified cross section from the collection. - - The . - - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Add the cross section - view.CrossSections.Add(crossSection); - //Get the index of specified crossSection - int index = view.CrossSections.IndexOf(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Add the cross section - view.CrossSections.Add(crossSection) - 'Get the index of specified crossSection - Dim index As Integer = view.CrossSections.IndexOf(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Inserts the cross section at specified index. - - The index. - The value. - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Insert the cross section at specified index - view.CrossSections.Insert(0,crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Insert the cross section at specified index - view.CrossSections.Insert(0,crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Removes the specified cross section form the collection. - - The cross section to be removed. - - - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DCrossSection. - Pdf3DCrossSection crossSection = new Pdf3DCrossSection(); - crossSection.Color = new PdfColor(Color.Blue); - crossSection.IntersectionIsVisible = true; - crossSection.IntersectionColor = new PdfColor(Color.Red); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CrossSections.Add(crossSection); - //Remove the cross section - view.CrossSections.Remove(crossSection); - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DCrossSection. - Dim crossSection As New Pdf3DCrossSection() - crossSection.Color = New PdfColor(Color.Blue) - crossSection.IntersectionIsVisible = True - crossSection.IntersectionColor = New PdfColor(Color.Red) - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CrossSections.Add(crossSection) - 'Remove the cross section - view.CrossSections.Remove(crossSection) - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Gets or sets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - //Create a new Pdf3DCrossSectionCollection. - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - Pdf3DCrossSection crosssection =view.CrossSections[0]; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - 'Create a new Pdf3DCrossSectionCollection. - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - Dim crosssection As Pdf3DCrossSection=view.CrossSections[0] - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Represents the lighting scheme for the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new Single[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified lighting style. - - The object specifies the style of the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.CAD); - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annot As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.CAD) - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annot) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the lighting style of the 3D artwork. - - The specifies the available styles for applying light to 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DLighting. - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.LightingScheme = lighting; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DLighting. - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.LightingScheme = lighting - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the particular areas of 3D artwork and the opacity and visibility with which individual nodes are displayed. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets a value indicating whether the node is visible or not. - - True if the node is visible , otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the node name. - - The name of the 3D node. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the cutting plane opacity. - - A number indicating the opacity of the cutting plane using a standard additive blend mode. - - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "node"; - node.Opacity = 1000f; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "node" - node.Opacity = 1000f - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the 3D transformation matrix. - - A 12-element 3D transformation matrix that specifies the position and orientation of this node, relative to its parent, in world coordinates. - If the array has more than 12 elements, only the first 12 will be considered. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents a collection of objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Adds the specified node into the collection. - - The - The index of the node to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Determines whether the node is in the collection. - - The node to search for. - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - bool exist = nodecollection.Contains(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - Dim exist As Boolean = nodecollection.Contains(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Searches and finds the index of the specified node from the collection. - - The node to be searched. - The index value of the node to be searched from the collection. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //Search the index of the node - int index = nodecollection.IndexOf(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'Search the index of the node - Dim index As Integer = nodecollection.IndexOf(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Inserts the specified index. - - The index. - The value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //insert the node - nodecollection.Insert(0, node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'insert the node - nodecollection.Insert(0, node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Removes the specified value. - - The value. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - node.Name = "Near View"; - node.Opacity = 100; - node.Matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //create the node collection - Pdf3DNodeCollection nodecollection = new Pdf3DNodeCollection(); - nodecollection.Add(node); - //Remove the node - nodecollection.Remove(node); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - node.Name = "Near View" - node.Opacity = 100 - node.Matrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - 'create the node collection - Dim nodecollection As New Pdf3DNodeCollection() - nodecollection.Add(node) - 'Remove the node - nodecollection.Remove(node) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - //Create a new Pdf3DNode. - Pdf3DNode node = new Pdf3DNode(); - node.Visible = true; - view.Nodes.Add(node); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - 'Create a new Pdf3DNode. - Dim node As New Pdf3DNode() - node.Visible = True - view.Nodes.Add(node) - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Represents the mapping of 3D camera co-ordinates onto the target coordinate system of the annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store type. - - - - - Internal variable to store Clip Style. - - - - - Internal variable to store Ortho Scale mode. - - - - - Internal variable to store far Clip Distance. - - - - - Internal variable to store field Of View. - - - - - Internal variable to store near Clip Distance. - - - - - Internal variable to store scaling. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with specified projection type. - - The Pdf3D Projection Type. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the projection. - - It specifies the projection type of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection ClipStyle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the scale mode for orthographic projections. - - It specifies the scale mode of the . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the far clipping distance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the field of view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the near clipping distance. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection scaling. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents the rendering mode of the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store style. - - - - - Internal variable to store face Color. - - - - - Internal variable to store auxilary Color. - - - - - Internal variable to store opacity. - - - - - Internal variable to store crease Value. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified rendering style. - - The object specifies the rendering style of the 3D artwork. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.Opacity = 100f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.Opacity = 100.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the type of the projection. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView. - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView. - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the auxiliary color. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the face color. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the crease value. - - The crease value is specified in degrees, from 0 to 360. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the rendering opacity. - - The opacity is given in percents, 100 is full opacity, 0 is no opacity. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.Opacity = 100f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.Opacity = 100.0F - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Represents a attributes to be applied to the virtual camera associated with a 3D annotation. - - This class is used to represents the 3D view for . Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Internal variable to store 3d Background. - - - - - Internal variable to store 3d Cross Section Collection. - - - - - Internal variable to store centre to World Matrix. - - - - - Internal variable to store 3d Lighting. - - - - - Internal variable to store 3d Node Collection. - - - - - Internal variable to store 3d Projection. - - - - - Internal variable to store 3d Render mode. - - - - - Internal variable to store reset Nodes State. - - - - - Internal variable to store centre of orbit. - - - - - Internal variable to store external name. - - - - - Internal variable to store internal name. - - - - - Internal variable to store view node name. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Gets or sets the background for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the 3D transformation matrix. - - A 12-element 3D transformation matrix that specifies a position and orientation of the camera in world coordinates. - If the array has more than 12 elements, only the first 12 will be considered. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color =new PdfColor(Color.Blue); - float[] matrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -300.669f, -112.432f, 45.6829f }; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = matrix; - view.Background = background; - view.CenterOfOrbit = 10f; - view.ExternalName = "Near View"; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = New PdfColor(Color.Blue) - Dim matrix() As Single = { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -300.669f, -112.432f, 45.6829f } - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = matrix - view.Background = background - view.CenterOfOrbit = 10f - view.ExternalName = "Near View" - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the center of orbit for 3D artwork. - - A non-negative number indicating a distance in the camera coordinate system along the z axis to the center of orbit for this view. - If this value is negative, the viewer application must determine the center of orbit. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.CenterOfOrbit = 10f; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As Pdf3DAnnotation = New Pdf3DAnnotation(New RectangleF(10, 300, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As Pdf3DView = New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.CenterOfOrbit = 10f - 'Adds a pdf3d view - annotation.Views.Add(view) - 'Draw a annotation into the new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets the list of cross sections for this view. - - A list of PDF3DCrossSection objects available for this view. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - Pdf3DCrossSectionCollection crossSectionCollection = view.CrossSections; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - Dim crossSectionCollection As Pdf3DCrossSectionCollection = view.CrossSections - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the view's external name. - - The external name of the view, suitable for presentation in a user interface. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.ExternalName = "Near View"; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ExternalName = "Near View" - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the view's internal name. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.InternalName = Guid.NewGuid().ToString("N"); - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.InternalName = Guid.NewGuid().ToString("N") - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the lighting scheme for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode - Pdf3DRendermode rendermode = new Pdf3DRendermode(); - rendermode.Style = Pdf3DRenderStyle.Solid; - rendermode.AuxilaryColor = new PdfColor(Color.Green); - rendermode.FaceColor = new PdfColor(Color.Black); - PdfColor color = new PdfColor(Color.Silver); - //Create a new Pdf3DBackground - Pdf3DBackground background = new Pdf3DBackground(); - background.ApplyToEntireAnnotation = true; - background.Color = color; - //Creates a new Pdf3DLighting - Pdf3DLighting lighting = new Pdf3DLighting(); - lighting.Style = Pdf3DLightingStyle.CAD; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Background = background; - view.LightingScheme = lighting; - view.RenderMode = rendermode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode - Dim rendermode As New Pdf3DRendermode() - rendermode.Style = Pdf3DRenderStyle.Solid - rendermode.AuxilaryColor = New PdfColor(Color.Green) - rendermode.FaceColor = New PdfColor(Color.Black) - Dim color As New PdfColor(Color.Silver) - 'Create a new Pdf3DBackground - Dim background As New Pdf3DBackground() - background.ApplyToEntireAnnotation = True - background.Color = color - 'Creates a new Pdf3DLighting - Dim lighting As New Pdf3DLighting() - lighting.Style = Pdf3DLightingStyle.CAD - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Background = background - view.LightingScheme = lighting - view.RenderMode = rendermode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets the list of 3D nodes for this view. - - A list of PDF3DNode objects available for this view. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.ResetNodesState = true; - Pdf3DNodeCollection nodes = view.Nodes; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ResetNodesState = True - Dim nodes As Pdf3DNodeCollection = view.Nodes - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the projection for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Perspective); - projection.FieldOfView = 10; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.FarClipDistance = 10; - projection.Scaling = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Add the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Perspective) - projection.FieldOfView = 10 - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.FarClipDistance = 10 - projection.Scaling = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Add the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the rendering mode for this view. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10f - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether nodes specified in the Nodes collection are returned to their original states (as specified in the 3D artwork) before applying transformation matrices and opacity settings specified in the node dictionaries. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - view.ResetNodesState = true; - //Adds a pdf3d view. - annotation.Views.Add(view); - //Adds a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.ResetNodesState = True - 'Adds a pdf3d view. - annotation.Views.Add(view) - 'Adds a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the name of the view node. - - The view node in the content stream defines all the properties for viewing the 3D artwork. If both ViewNodeName and CameraToWorldMatrix are specified, then ViewNodeName takes precedence. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - string name = view.ViewNodeName; - //Add a pdf3d view. - annotation.Views.Add(view); - //Add a annotation. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - Dim name As String = view.ViewNodeName - 'Add a pdf3d view. - annotation.Views.Add(view) - 'Add a annotation. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets the dictionary. - - The pdf3d view dictionary. - - - - Gets the element. - - - - - - Represents a collection of Pdf3DView objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Adds the specified 3d view into collection. - - The index of the added to the collection. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creates a new Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Determines whether the specified view is in collection. - - The . - - if it contains the specified value, set to true. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix=new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit=131.695f; - annotation.Views.Add(defaultView); - //check the specified view exists in the list or not - bool exist=annotation.Views.Contains(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit=131.695f - annotation.Views.Add(defaultView) - 'check the specified view exists in the list or not - Dim exist As Boolean=annotation.Views.Contains(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - search and find the Pdf3DView object. - - - Pdf3DView - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - //Get the index of specified view - int index = annotation.Views.IndexOf(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - 'Get the index of specified view - Dim index As Integer = annotation.Views.IndexOf(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Inserts the view at specified index. - - The index where to insert the element. - The view to be inserted in the collection.. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Insert the view at specified index - annotation.Views.Insert(1,defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Insert the view at specified index - annotation.Views.Insert(1,defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Removes the specified value from the collection. - - The Pdf3DView object. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create the view - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - //Remove the specified view - annotation.Views.Remove(defaultView); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create the view - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() With { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - 'Remove the specified view - annotation.Views.Remove(defaultView) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the at the specified index. - - Pdf3DView - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a Pdf3DView - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName="Near View"; - defaultView.CameraToWorldMatrix= new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - annotation.Views.Add(defaultView); - page.Annotations.Add(annotation); - Pdf3DView view=annotation.Views[0] as Pdf3DView; - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a Pdf3DView - Dim defaultView As New Pdf3DView() - defaultView.ExternalName="Near View" - defaultView.CameraToWorldMatrix= New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - annotation.Views.Add(defaultView) - page.Annotations.Add(annotation) - Dim view As Pdf3DView=TryCast(annotation.Views(0), Pdf3DView) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Specifies an activation state of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @”Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Set the activation to the annotation. - annotation.Activation = activation; - annotation.Activation.ActivationState = Pdf3DActivationState.Live; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150),"Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Set the activation to the annotation. - annotation.Activation = activation - annotation.Activation.ActivationState = Pdf3DActivationState.Live - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the state in which the artwork has been read and a run-time instance of - the artwork has been created. In this state, it can be rendered but script-driven - real-time modifications (that is, animations) are disabled. - - - - - Represents that the artwork is instantiated, and it is being modified in real time to - achieve some animation effect. In the case of key frame animation, the artwork is - live while it is playing and then reverts to an instantiated state when playing - completes or is stopped. - - - - - Specifies the available modes for activating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Set the activation to the annotation. - annotation.Activation = activation; - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Set the activation to the annotation. - annotation.Activation = activation - annotation.Activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the annotation should be activated as soon as the page containing - the annotation is opened. - - - - - Represents that the annotation should be activated as soon as any part of the page - containing the annotation becomes visible. - - - - - Represents that the annotation should remain inactive until explicitly activated - by a script or user action. - - - - - Specifies the available modes for deactivating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - //Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose; - activation.ShowToolbar = false; - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - 'Sets the DeactivationState. - activation.DeactivationMode = Pdf3DDeactivationMode.PageClose - activation.ShowToolbar = False - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents that the annotation should be deactivated as soon as the page is closed. - - - - - Represents that the annotation should be deactivated as soon as the page containing - the annotation becomes invisible. - - - - - Represents that the annotation should remain active until explicitly deactivated by a - script or user action. - - - - - Specifies the available states upon deactivating a 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DActivation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.DeactivationState = Pdf3DDeactivationState.Uninstantiated; - //Set the activation to the annotation. - annotation.Activation = activation; - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DActivation. - Dim activation As New Pdf3DActivation() - activation.DeactivationState = Pdf3DDeactivationState.Uninstantiated - //Set the activation to the annotation. - annotation.Activation = activation - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Represents the initial state of the artwork before it has been used in any way. - - - - - Represents that the state in which the artwork has been read and a run-time instance of - the artwork has been created. In this state, it can be rendered but script-driven - real-time modifications (that is, animations) are disabled. - - - - - Represents that the artwork is instantiated, and it is being modified in real time to - achieve some animation effect. In the case of key frame animation, the artwork is - live while it is playing and then reverts to an instantiated state when playing - completes or is stopped. - - - - - Specifies the available styles for applying light to 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create pdfFont, pdfFont style and brush. - Font font = new Font("Calibri", 11, FontStyle.Regular); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - PdfBrush brush = new PdfSolidBrush(Color.DarkBlue); - //Create 3D activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.PageVisible; - activation.ShowToolbar = true; - pdf3dAnnotation.Activation = activation; - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Set the 3D background. - Pdf3DBackground background=new Pdf3DBackground(); - background.Color=new PdfColor(Color.Blue); - defaultView.Background = background; - //Set the projection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Orthographic); - defaultView.Projection = projection; - //Set the render mode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - defaultView.RenderMode = renderMode; - //Set the lighting scheme. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.Night); - defaultView.LightingScheme = lighting; - //Add the view. - pdf3dAnnotation.Views.Add(defaultView); - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, new PointF(40, 40)); - //Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, new PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)); - //Adds annotation to page. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create pdfFont, pdfFont style and brush. - Dim font As New Font("Calibri", 11, FontStyle.Regular) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - Dim brush As PdfBrush = New PdfSolidBrush(Color.DarkBlue) - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.PageVisible - activation.ShowToolbar = True - pdf3dAnnotation.Activation = activation - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Set the 3D background. - Dim background As New Pdf3DBackground() - background.Color = New PdfColor(Color.Blue) - defaultView.Background = background - 'Set the projection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Orthographic) - defaultView.Projection = projection - 'Set the render mode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - defaultView.RenderMode = renderMode - 'Set the lighting scheme. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.Night) - defaultView.LightingScheme = lighting - 'Add the view. - pdf3dAnnotation.Views.Add(defaultView) - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, New PointF(40, 40)) - 'Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, New PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - - - - The Lights as specified in the 3D artwork. - - - - - The lighting specified in the 3D artwork is ignored. - - - - - Three blue-grey infinite lights. - - - - - Three light-grey infinite lights. - - - - - One yellow, one aqua, and one blue infinite light. - - - - - Three grey infinite lights. - - - - - One red, one green, and one blue infinite light. - - - - - Three blue infinite lights. - - - - - Three red infinite lights. - - - - - Six grey infinite lights aligned with the major axes. - - - - - Three grey infinite lights and one light attached to the camera. - - - - - Single infinite light attached to the camera. - - - - - Specifies the available clipping style of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() {-0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the explicit Clipping style. - - - - - Represents the automatic Clipping style. - - - - - Specifies the available Ortho projection scaling mode of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Scale to fit the width of the annotation. - - - - - Scale to fit the height of the annotation. - - - - - Scale to fit the lesser of width or height of the annotation. - - - - - Scale to fit the greater of width or height of the annotation. - - - - - No scaling should occur due to binding. - - - - - Specifies the available projection type of the 3D annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Pdf3DAnnotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DProjection. - Pdf3DProjection projection = new Pdf3DProjection(); - projection.ProjectionType = Pdf3DProjectionType.Perspective; - projection.FieldOfView = 10; - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width; - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar; - projection.NearClipDistance = 10; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.Projection = projection; - annotation.Views.Add(view); - //Adds the annotation in a new page. - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Pdf3DAnnotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DProjection. - Dim projection As New Pdf3DProjection() - projection.ProjectionType = Pdf3DProjectionType.Perspective - projection.FieldOfView = 10 - projection.OrthoScaleMode = Pdf3DProjectionOrthoScaleMode.Width - projection.ClipStyle = Pdf3DProjectionClipStyle.ExplicitNearFar - projection.NearClipDistance = 10 - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.Projection = projection - annotation.Views.Add(view) - 'Adds the annotation in a new page. - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents Orthographic projection - - - - - Represents Perspective projection. - - - - - Specifies the available rendering style of the 3D artwork. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new Pdf3D Annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new Pdf3DRendermode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(); - renderMode.Style = Pdf3DRenderStyle.Solid; - renderMode.AuxilaryColor = new PdfColor(Color.Green); - renderMode.FaceColor = new PdfColor(Color.Black); - renderMode.CreaseValue = 10f; - //Create a new Pdf3DView - Pdf3DView view = new Pdf3DView(); - view.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - view.RenderMode = renderMode; - annotation.Views.Add(view); - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new Pdf3D Annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new Pdf3DRendermode. - Dim renderMode As New Pdf3DRendermode() - renderMode.Style = Pdf3DRenderStyle.Solid - renderMode.AuxilaryColor = New PdfColor(Color.Green) - renderMode.FaceColor = New PdfColor(Color.Black) - renderMode.CreaseValue = 10f - 'Create a new Pdf3DView - Dim view As New Pdf3DView() - view.CameraToWorldMatrix = New Single() { -0.382684F, 0.92388F, -7.66026E-08F, 0.18024F, 0.0746579F, 0.980785F, 0.906127F, 0.37533F, -0.19509F, -100, -112.432F, 45.6829F} - view.RenderMode = renderMode - annotation.Views.Add(view) - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Displays textured and lit geometric shapes. In the case of artwork - that conforms to the Universal 3D File Format specification, these - shapes are triangles. - - - - - Displays textured and lit geometric shapes (triangles) with single - color edges on top of them. - - - - - Displays textured and lit geometric shapes (triangles) with an added - level of transparency. - - - - - Displays textured and lit geometric shapes (triangles) with an added - level of transparency, with single color opaque edges on top of it. - - - - - Displays the bounding box edges of each node, aligned with the axes - of the local coordinate space for that node. - - - - - Displays bounding boxes faces of each node, aligned with the axes of - the local coordinate space for that node, with an added level of transparency. - - - - - Displays bounding boxes edges and faces of each node, aligned with the axes of - the local coordinate space for that node, with an added level of transparency. - - - - - Displays only edges in a single color. - - - - - Displays only edges, though interpolates their color between their two vertices - and applies lighting. - - - - - Displays edges in a single color, though removes back-facing and obscured edges. - - - - - Displays only vertices in a single color. - - - - - Displays only vertices, though uses their vertex color and applies lighting. - - - - - Displays silhouette edges with surfaces, removes obscured lines. - - - - - Displays silhouette edges with lit and textured surfaces, removes obscured lines. - - - - - Displays silhouette edges with lit and textured surfaces and an additional emissive - term to remove poorly lit areas of the artwork. - - - - - Specifies the available animation style for rendering the 3D artwork. - - - - //Create a new Pdf3DAnimation - Pdf3DAnimation animation = new Pdf3DAnimation(PDF3DAnimationType.Linear); - animation.Type = PDF3DAnimationType.Linear; - - - 'Create a new Pdf3DAnimation - Dim animation As Pdf3DAnimation = New Pdf3DAnimation(PDF3DAnimationType.Linear) - animation.Type = PDF3DAnimationType.Linear - - - - - - Represents that the Key frame animations should not be driven directly by - the viewer application. This value is used by documents that are intended - to drive animations through an alternate means, such as JavaScript. - - - - - Represents that the Key frame animations are driven linearly from beginning to end. - This animation style results in a repetitive play through of the animation, - such as in a walking motion. - - - - - Represents that the Key frame animations should oscillate along their time range. - This animation style results in a back-and-forth playing of the animation, - such as exploding or collapsing parts. - - - - - Represents the annotation with associated action. - - Class - - - - Represents base class for link annotations with associated action. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Represents the base class for the link annotations. - - Class - - - - Represents the base class for annotation objects. - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Color of the annotation. - - - - - Border of the annotation. - - - - - Bounds of the annotation. - - - - - Parent page of the annotation. - - - - - Text of the annotation. - - - - - Author of the annotation. - - - - - Subject of the annotation. - - - - - ModifiedDate of the annotation. - - - - - NAnootation's style flags. - - - - - Internal variable to store dictionary. - - - - - To specifying the Inner color with which to fill the annotation - - - - - Opacity of the annotation. - - - - - Indicates annotation is flatten or not. - - - - - Indicate popups annotation is flatten or not. - - - - - Annotation's appearance. - - - - - Internal field to check whether any annotation is modified. - - - - - Internal field used to indicate to set popup annotation. - - - - - Internal field for annotation document layer - - - - - Specifies whether to set the default appearance for the annotation or not. - - - - - - Creates the Constructors. - - - - - Creates new annotation object with the specified PDF page and text. - - The page where annotation to be added. - The text. - - - - Creates new annotation object with the specified bounds. - - Bounds of the annotation. - - - - Initializes a new instance of the class. - - The annotation's dictionary. - The document cross table. - The annotation's bounds. - - - - Sets related page of the annotation. - - The page. - - - - Removes annotation from page. - - Annotation to be removed. - - - - Sets the location. - - The location. - - - - Sets the proper name to the field. - - The annotation's text. - - - - Sets the size. - - The size. - - - - Initializes annotation object. - - - - - Handles the BeginSave event of the Dictionary. - - The source of the event. - The instance containing the event data. - - - - Saves an annotation. - - - - - Flatten annotation author field - - the annotation's author text - the annotation's subject text - the annotation's bounds - the annotation's background color brush - annotation's brush - annotation's page - height - appearance of an annotation's border - - - - Flatten annotation subject field - - the annotation's subject text - the annotation's bounds - annotation's page - - - - Flatten the Popup annotation - - - - - Flatten the Popup window - - annotation's page - the annotation's color - the annotation's bounds - appearance of an annotation's border - the annotation's author text - the annotation's subject text - the annotation's text - - - - Save graphics state - - - annotation's blendmode - - - - Obtain Document layer from annotation - - - - - - Gets or sets the annotation color. - - The which draws the outline of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the color. - soundAnnotation.Color = new PdfColor(Color.Red); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30); - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the color. - soundAnnotation.Color = New PdfColor(Color.Red) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or Sets the Opacity of the annotation. - - - - - Get or set the inner color of the annotation. Default color is transparent - - - - - Gets or sets annotation's border properties like width, horizontal radius etc. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the border to sound annotation. - soundAnnotation.Border = new PdfAnnotationBorder(5); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the border to sound annotation. - soundAnnotation.Border = New PdfAnnotationBorder(5) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets annotation's bounds in the PDF page. - - The bounds of the annotation. - If this property is not set, the bounds are calculated automatically - based on Location property and content of annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the bounds to sound annotation. - soundAnnotation.Bounds=new RectangleF(50, 100, 30, 30); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the bounds to sound annotation. - soundAnnotation.Bounds=New RectangleF(50, 100, 30, 30) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the location of the annotation. - - The position of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the location to sound annotation. - soundAnnotation.Location=new PointF(50, 100); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the location to sound annotation. - soundAnnotation.Location=New PointF(50, 100) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the size of the annotation. - - The size of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Assign the size to sound annotation. - soundAnnotation.Size=new SizeF(50, 50); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Assign the size to sound annotation. - soundAnnotation.Size=New SizeF(50, 50) - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets a page of the annotation. Read-Only. - - The where the annotation is to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Gets the page. - PdfPage pdfPage=soundAnnotation.Page; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Gets the page. - Dim pdfPage As PdfPage =soundAnnotation.Page - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets a loaded page of the annotation. - - - - - Gets or sets content of the annotation. - - The string value specifies the text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the text to sound annotation. - soundAnnotation.Text="Sound Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the text to sound annotation. - soundAnnotation.Text="Sound Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or Sets the Author of the annotation. - - - - - Gets or Sets the Subject of the annotation. - - - - - Gets or Sets the ModifiedDate of the annotation. - - - - - Gets or sets the annotation flags. - - The Specifies the enumeration of the annotation flags. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"input.wav"); - //Set the annotation flags to sound annotation. - soundAnnotation.AnnotationFlags = PdfAnnotationFlags.Print; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As PdfSoundAnnotation = New PdfSoundAnnotation(rectangle, "input.wav") - 'Set the annotation flags to sound annotation. - soundAnnotation.AnnotationFlags = PdfAnnotationFlags.Print - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the dictionary. - - The dictionary. - - - - Gets or sets the boolean flag to flatten the annotations. - - - - - Get or set flatten the Popups annotations - - - - - Gets or sets the tag for annotation - - - - - Gets or sets appearance of the annotation. - - - - - Specifies if any annotation is changed since loading that would affect the appearance. - - - - - Get or set Popup annotations - - - - - Get or set the PdfLayer to the annotation - - - - - Gets the element. - - - - - - Highlight Mode of the annotation. - - - - - Initializes new instance of class. - - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - - Initializes annotation object. - - - - - Gets Hightlight Mode of the annotation. - - - - - Gets or sets the highlight mode of the link annotation. - - The enumeration value which sets the highlight mode. - - - - Internal variable to store annotation's action. - - - - - Initializes a new instance of the class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, "input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified bounds and action to be performed. - - The bounds specifies the location of the drawn text. - The specifies an action to be executed when the link is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF bounds = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(bounds, "Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets the action for the link annotation. - - The action to be executed when the link is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Set a action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Set a action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified bounds and action. - - The bounds of the annotation. - The PDF action that can be triggered with different actions. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF actionAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Set the go to action - PdfGoToAction gotoAction = new PdfGoToAction(page); - //Set destination location. - gotoAction.Destination = new PdfDestination(page, new PointF(0, 100)); - //Create Action annotation. - PdfActionAnnotation actionAnnotation = new PdfActionAnnotation(actionAnnotationBounds, gotoAction); - //Set the text and font. - actionAnnotation.Color = new PdfColor(Color.Red); - //Add this annotation to a new page. - page.Annotations.Add(actionAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim actionAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Set the go to action. - Dim gotoAction As New PdfGoToAction(page) - 'Set destination location - gotoAction.Destination = New PdfDestination(page, New PointF(0, 100)) - 'Create Action annotation. - Dim actionAnnotation As New PdfActionAnnotation(actionAnnotationBounds, gotoAction) - 'Set the text and font. - actionAnnotation.Color = New PdfColor(Color.Red) - 'Add this annotation to a new page. - page.Annotations.Add(actionAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - Class. - - - - Saves annotation object. - - - - - Represents the states of an annotation's appearance. - - - - - Internal variable to store template for active (On) state. - - - - - Internal variable to store template for inactive (Off) state. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store dictionary name of checked state. - - - - - Internal variable to store dictionary name of unchecked state. - - - - - Initializes a new instance of the class. - - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the active state template. - - The object specifies an active state template. - - - - Gets or sets the inactive state. - - The object specifies an inactive state template. - - - - Gets or sets the mapping name of the active state. - - String specifies the mapping name of the active state. - - - - Gets or sets the mapping name of the inactive state. - - String specifies the mapping name of the inactive state. - - - - Gets the element. - - - - - - Represents the appearance of an annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Normal appearance. - - - - - Mouse hover appearance. - - - - - Mouse pressed appearance. - - - - - Internal variable to store annotation. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The object specifies the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the normal template. - - Normal appearance template. - - - - Gets the pressed template. - - PDF Template - - - - Gets or sets PdfTmplate object which applied to annotation in normal state. - - The specifies the PDF template object. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Normal.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets object which applied to the annotation on hovering the mouse. - - The specifies the PDF template object when mouse hover. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.MouseHover.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.MouseHover.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annot.Appearance = New PdfAppearance(annotation) - annot.Appearance.MouseHover.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annot.Appearance.MouseHover.Draw(page, New PointF(annot.Location.X, annot.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets or sets object which applied to an annotation when mouse button is pressed. - - The specifies the PDF template object when Pressed. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annotation.Appearance = new PdfAppearance(annotation); - annotation.Appearance.Pressed.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annotation.Appearance.Pressed.Draw(page, new PointF(annotation.Location.X, annotation.Location.Y)); - //Adds annotation to page - page.Annotations.Add(annotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new pdf appearance - annotation.Appearance = New PdfAppearance(annotation) - annotation.Appearance.Pressed.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annotation.Appearance.Pressed.Draw(page, New PointF(annotation.Location.X, annotation.Location.Y)) - 'Add annotation to page - page.Annotations.Add(annotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the element. - - - - - - Represents extended appearance of the annotation. It has two states such as On state and Off state. - - - - - Internal variable to store normal appearance. - - - - - Internal variable to store appearance for pressed state. - - - - - Internal variable to store appearance for state when mouse is hovered. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets the normal appearance of the annotation. - - The object specifies the normal appearance of the annotation. - - - - Gets the appearance when mouse is hovered. - - The object specifies the annotation appearance when the mouse is hovered on it. - - - - Gets the pressed state annotation. - - The appearance in pressed state. - - - - Gets the element. - - - - - - Represents a PDF circle annotation - - - - - Used to represent the border style of the circle annotation. - - - - - Initialise the new instance of the circle annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - - Initialise the new instance of the circle annotation with bounds. - - Used to represent the bounds of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or set the border style of the circle annotaion. - - - - - Represents a PDF ellipse annotation - - - - - Initialise the new instance of the ellipse annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Represents a Polygon annotation. - - - - - Used to represent the border style of the circle annotation. - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - To specifying the Leader Line Extension size - - - - - Initialise the new instance of the polygon annotation with bounds and text. - - Used to represent the poloygon points - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - - - Get or sets the border style of the square annotaion. - - - - - Gets or sets Leading Line Extension, Default value is 0 - - - - - Represents a PolyLine annotation. - - - - - To Specify the Border - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - To specifying the Leader Line Extension size - - - - - An array of two names specifying the line ending styles - - - - - Indicates PdfLine Begin style - - - - - Indicates PdfLine End style - - - - - Initialise the new instance of the poly line annotation with bounds and text. - - Used to represent the poloygon points - Used to represents the text of the annotation - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or sets the border style of the square annotaion. - - - - - Gets or sets Leading Line Extension, Defacult value is 0 - - - - - Gets or sets the style used for the beginning of the line, Default value is None - - - - - Gets or sets the style used for the ending of the line, Default value is None - - - - - Represents a PDF rectangle annotation - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Rectangle annotation. - RectangleF rectannot = new RectangleF(0, 30, 100, 50); - PdfRectangleAnnotation rectangleannotation = new PdfRectangleAnnotation(rectannot, "RectangleAnnotation"); - rectangleannotation.InnerColor = new PdfColor(Color.Red); - rectangleannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Rectangle Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page - page.Annotations.Add(rectangleannotation); - //Save the documnet. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Rectangle annotation. - Dim rectannot As RectangleF = New RectangleF(0, 30, 100, 50) - Dim rectangleannotation As PdfRectangleAnnotation = New PdfRectangleAnnotation(rectannot, "RectangleAnnotation") - rectangleannotation.InnerColor = New PdfColor(Color.Red) - rectangleannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Rectangle Annotation", font, brush, New PointF(0, 0)) - 'Add the annotation to the page - page.Annotations.Add(rectangleannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Represents a PDF square annotation - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80)); - squareannotation.Text = "SquareAnnotation"; - squareannotation.InnerColor = new PdfColor(Color.Red); - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80)) - squareannotation.Text = "SquareAnnotation" - squareannotation.InnerColor = New PdfColor(Color.Red) - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Used to represent the border style of the square annotation. - - - - - Initialise the new instance of the square annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80),"SquareAnnotation"); - squareannotation.InnerColor = new PdfColor(Color.Red); - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80),"SquareAnnotation") - squareannotation.InnerColor = New PdfColor(Color.Red) - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Get or set the border style of the square annotaion. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Square annotation. - PdfSquareAnnotation squareannotation = new PdfSquareAnnotation(new RectangleF(0, 30, 80, 80)); - squareannotation.Text = "SquareAnnotation"; - squareannotation.InnerColor = new PdfColor(Color.Red); - LineBorder border = new LineBorder(); - border.BorderStyle = PdfBorderStyle.Solid; - border.BorderWidth = 2; - squareannotation.Border = border; - squareannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Square Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page. - page.Annotations.Add(squareannotation); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Square annotation. - Dim squareannotation As PdfSquareAnnotation = New PdfSquareAnnotation(New RectangleF(0, 30, 80, 80)) - squareannotation.Text = "SquareAnnotation" - squareannotation.InnerColor = New PdfColor(Color.Red) - Dim border As LineBorder = New LineBorder() - border.BorderStyle = PdfBorderStyle.Solid - border.BorderWidth = 2 - squareannotation.Border = border - squareannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Square Annotation", font, brush, New PointF(0, 0)) - 'Add annotation to the page. - page.Annotations.Add(squareannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initialise the new instance of the rectangle annotation with bounds and text. - - Used to represent the bounds of the annotation - Used to represents the text of the annotation - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - document.PageSettings.SetMargins(0); - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10f); - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - //Creates a new Rectangle annotation. - RectangleF rectannot = new RectangleF(0, 30, 100, 50); - PdfRectangleAnnotation rectangleannotation = new PdfRectangleAnnotation(rectannot, "RectangleAnnotation"); - rectangleannotation.InnerColor = new PdfColor(Color.Red); - rectangleannotation.Color = new PdfColor(Color.Yellow); - page.Graphics.DrawString("Rectangle Annotation", font, brush, new PointF(0, 0)); - //Add the annotation to the page - page.Annotations.Add(rectangleannotation); - //Save the documnet. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - document.PageSettings.SetMargins(0) - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10.0F) - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - 'Creates a new Rectangle annotation. - Dim rectannot As RectangleF = New RectangleF(0, 30, 100, 50) - Dim rectangleannotation As PdfRectangleAnnotation = New PdfRectangleAnnotation(rectannot, "RectangleAnnotation") - rectangleannotation.InnerColor = New PdfColor(Color.Red) - rectangleannotation.Color = New PdfColor(Color.Yellow) - page.Graphics.DrawString("Rectangle Annotation", font, brush, New PointF(0, 0)) - 'Add the annotation to the page - page.Annotations.Add(rectangleannotation) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Represents the XFA Button Field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the abstract calss of the XFA form field's style parameters. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents abstract class of the field in the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Convet XFA text alignment to PdfTextAlignment. - - - - - - - Gets or sets the name. - - The name of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set field name. - field.Name = "firstName"; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set field name. - field.Name = "firstName" - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the margins of the field. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set margin. - field.Margins.All = 2; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set margin. - field.Margins.All = 2 - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the visibility of the field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Set Margins, font, tooltip and alignments. - - - - - - Get the size of the field. - - - - - - Get the fields rotation angle. - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the Border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the tool tip - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the readonly - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set readonly. - textBoxField.ReadOnly = true; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set readonly. - textBoxField.ReadOnly = True - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the fore color of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the horizontal alignment of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set fields width and height. - textBoxField.Width = 200; - textBoxField.Height = 30; - //Set border. - textBoxField.Border.Color = Color.Red; - //Set font. - textBoxField.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - textBoxField.ForeColor = Color.Yellow; - //Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set fields width and height. - textBoxField.Width = 200 - textBoxField.Height = 30 - 'Set border. - textBoxField.Border.Color = Color.Red - 'Set font. - textBoxField.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - textBoxField.ForeColor = Color.Yellow - 'Set rotation angle. - textBoxField.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set horizontal alignment. - textBoxField.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set vertical alignment. - textBoxField.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the class. - - Name of the field - Width and height of the field - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the class. - - Name of the field - Field width - Field height - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", 70, 20); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", 70, 20) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save button field - - - - - - - Save the acroform button field - - - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", 70, 20); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Clone the button field. - PdfXfaButtonField clonedButton = buttonField.Clone() as PdfXfaButtonField; - clonedButton.Content = "Submit"; - mainForm.Fields.Add(clonedButton); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", 70, 20) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Clone the button field. - Dim clonedButton As PdfXfaButtonField = TryCast(buttonField.Clone(), PdfXfaButtonField) - clonedButton.Content = "Submit" - mainForm.Fields.Add(clonedButton) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the hightlight mode of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the mouse rollover text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the mouse down text of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push; - //Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered"; - //Set mouse down text. - buttonField.MouseDownText = "Mouse pressed"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Set highlight mode. - buttonField.Highlight = PdfHighlightMode.Push - 'Set mouse rollover text. - buttonField.MouseRolloverText = "Mouse entered" - 'Set mouse down text. - buttonField.MouseDownText = "Mouse pressed" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the content of the button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a button field and add the properties. - PdfXfaButtonField buttonField = new PdfXfaButtonField("buttonField", new SizeF(70, 20)); - //Set the caption text. - buttonField.Content = "Click"; - //Add the field to the XFA form. - mainForm.Fields.Add(buttonField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a button field and add the properties. - Dim buttonField As New PdfXfaButtonField("buttonField", New SizeF(70, 20)) - 'Set the caption text. - buttonField.Content = "Click" - 'Add the field to the XFA form. - mainForm.Fields.Add(buttonField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the Caption of XFA fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - save the fields caption text - - - - - - - - - Measure the caption string - - - - - - Measure the caption string - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - PdfXfaTextBoxField field1 = new PdfXfaTextBoxField("TextBox1", new SizeF(200, 20)); - //Clone the caption. - field1.Caption = caption.Clone() as PdfXfaCaption; - mainForm.Fields.Add(field1); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - Dim field1 As New PdfXfaTextBoxField("TextBox1", New SizeF(200, 20)) - 'Clone the caption. - field1.Caption = TryCast(caption.Clone(), PdfXfaCaption) - mainForm.Fields.Add(field1) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Read the existing node - - - - - - save the existing node - - - - - - set the new attribute for existing node - - - - - - - - convert string to point value - - - - - - - read the font informations - - - - - - Gets or sets the caption text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the horizontal alignment of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the position of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the forecolor of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the width of the caption - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the border of the XFA fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize the instance of class. - - Border color. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Get the border brush - - - - - - - Get the border pen - - - - - - read the node - - - - - - save the existing node - - - - - - create a new edge node - - - - - - - Set the new attribute for existing node - - - - - - - - Gets or sets the fill color of the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets handedness of a line or edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the visibility of the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the left edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.LeftEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.LeftEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the right edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.RightEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.RightEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the top edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the bottom edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.BottomEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.BottomEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(); - border.Color = Color.Red; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder() - border.Color = Color.Red - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border width - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the Edge of the XFA border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - read the existing node - - - - - - - Save the existing node - - - - - - Set new attribute - - - - - - - - clone the object - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the visibility - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the thickness of the edge - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Create new PDF XFA edge instance. - PdfXfaEdge edge = new PdfXfaEdge(); - //Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered; - //Set edge color. - edge.Color = Color.HotPink; - //Set edge thickness. - edge.Thickness = 2; - //Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible; - //Set the edge to XFA border. - border.TopEdge = edge; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Create new PDF XFA edge instance. - Dim edge As New PdfXfaEdge() - 'Set edge border style. - edge.BorderStyle = PdfXfaBorderStyle.Lowered - 'Set edge color. - edge.Color = Color.HotPink - 'Set edge thickness. - edge.Thickness = 2 - 'Set edge visibility. - edge.Visibility = PdfXfaVisibility.Visible - 'Set the edge to XFA border. - border.TopEdge = edge - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the shape of the corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Specifies whether the corner appears convex or is inverted and appears concave. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the visibility - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the thickness - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the radius of the corner - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA solid brush. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaSolidBrush(Color.Red); - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize the instaces of the class. - - The fill color of the brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaSolidBrush(Color.Red); - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the solid brush color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaSolidBrush brush= new PdfXfaSolidBrush(Color.Red); - //Set the color. - brush.Color = Color.Green; - //Set the brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaSolidBrush = New PdfXfaSolidBrush(Color.Red) - 'Set the color. - brush.Color = Color.Green - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA linear brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - iniatilaize the new instance of the class. - - The start color of the linear brush. - The end color of the linear brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - iniatilaize the new instance of the class. - - The start color of the linear brush. - The end color of the linear brush. - The type of the linar brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow, PdfXfaLinearType.RightToLeft); - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow, PdfXfaLinearType.RightToLeft) - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the starting color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the ending color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the direction of the color transition - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA Radial brush - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - initialize the new instance of the class. - - The start color of the radial brush. - The end color of the radial brush. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - initialize the new instance of the class. - - The start color of the radial brush. - The end color of the radial brush. - The radial type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow, PdfXfaRadialType.CenterToEdge); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow, PdfXfaRadialType.CenterToEdge) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the starting color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the ending color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set the direction of the color transition - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The number of degrees by which the field should be rotated clockwise when displayed or printed. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Indicates 0 degree rotation angle. - - - - - Indicates 90 degree rotation angle. - - - - - Indicates 180 degree rotation angle. - - - - - Indicates 270 degree rotation angle. - - - - - Specifies the available type for a XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The content of the element is flowed in a direction proceeding from left to right. - - - - - The content of the element is flowed in a direction proceeding from top to bottom. - - - - - Specifies the corner shapes - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the border style. - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Squared corner - - - - - Rounded corner - - - - - Specifies the direction of the color transition. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaLinearBrush brush = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaLinearType.RightToLeft; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As PdfXfaLinearBrush = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaLinearType.RightToLeft - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The start color appears at the left side of the object and transitions into the end color at the right side. - - - - - The start color appears at the right side of the object and transitions into the end color at the left side. - - - - - The start color appears at the bottom side of the object and transitions into the end color at the top side. - - - - - The start color appears at the top side of the object and transitions into the end color at the bottom side. - - - - - Specifies the direction of the color transition. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create new XFA brush. - PdfXfaRadialBrush brush = new PdfXfaRadialBrush(Color.Red, Color.Yellow); - //Set the start color. - brush.StartColor = Color.Black; - //Set the end color. - brush.EndColor = Color.HotPink; - //Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge; - //Set the linear brush - rect.Border.FillColor = brush; - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create new XFA brush. - Dim brush As New PdfXfaRadialBrush(Color.Red, Color.Yellow) - 'Set the start color. - brush.StartColor = Color.Black - 'Set the end color. - brush.EndColor = Color.HotPink - 'Set the type. - brush.Type = PdfXfaRadialType.CenterToEdge - 'Set the linear brush - rect.Border.FillColor = brush - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The start color appears at the center of the object and transitions into the end color at the outer edge. - - - - - The start color appears at the outer edge of the object and transitions into the end color at the center. - - - - - Represents the visibility of the XFA field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Set fields visibility. - field.Visibility = PdfXfaVisibility.Visible - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Participate in interaction, layout, and rendering. - - - - - Participate in interaction but not layout or rendering - - - - - Do not participate in interaction, layout, or rendering - - - - - Participate in interaction and layout but not rendering. - - - - - Specifies the caption text position of fields - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Left side of the field - - - - - Right side of the field - - - - - Top of the field - - - - - Bottom of the field - - - - - Specifies Horizontal alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the element is aligned to Left. - - - - - Specifies the element is aligned to Center. - - - - - Specifies the element is aligned to Right. - - - - - Specifies the element is aligned with Justify - - - - - Spread-justify all lines to fill the available region. - - - - - Specifies the Vertical alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Create new XFA caption instance. - PdfXfaCaption caption = new PdfXfaCaption(); - //Set caption text. - caption.Text = "First Name"; - //Set the caption font. - caption.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set the caption fore color. - caption.ForeColor = new PdfColor(Color.Red); - //Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set the caption position. - caption.Position = PdfXfaPosition.Left; - //Set the caption reserved width. - caption.Width = 100; - //Set the caption to text box. - textBoxField.Caption = caption; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Create new XFA caption instance. - Dim caption As New PdfXfaCaption() - 'Set caption text. - caption.Text = "First Name" - 'Set the caption font. - caption.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set the caption fore color. - caption.ForeColor = New PdfColor(Color.Red) - 'Set the horizontal alignment. - caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the vertical alignment. - caption.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set the caption position. - caption.Position = PdfXfaPosition.Left - 'Set the caption reserved width. - caption.Width = 100 - 'Set the caption to text box. - textBoxField.Caption = caption - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the element is aligned to Top. - - - - - Specifies the element is aligned to Middle. - - - - - Specifies the element is aligned to Bottom. - - - - - Represents the Appearance of the circle field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the circle shape - - - - - Represents the ellipse shape - - - - - Represents the arc shape - - - - - Specifies the date pattern. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(200, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date; - //Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(200, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date - 'Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Appears the Default value eg: Nov 13, 2015 - - - - - eg:11/13/2015. - - - - - eg: Nov 13, 2015. - - - - - November 13,2015. - - - - - Thursday, November 12, 2015. - - - - - 11/13/15. - - - - - Nov 13,2015. - - - - - November 13,2015. - - - - - Friday, November 13, 2015. - - - - - 11/13/2015. - - - - - 11/13/15. - - - - - 11/13/2015. - - - - - 15/11/13. - - - - - 2015-11-13. - - - - - 13-Nov-15. - - - - - Friday, November 13, 2015 - - - - - November 13,15. - - - - - Friday, 13 November, 2015. - - - - - 13 November, 2015. - - - - - November 2015. - - - - - Represents the time patterns - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - default value - - - - - short - - - - - Medium - - - - - Long - - - - - full - - - - - eg:1:30 PM - - - - - eg:1:30:30 PM - - - - - eg:1:30 PM GMT+05:30 - - - - - eg:01:30:30 PM - - - - - eg:13:30:30 - - - - - eg:13:30:30 - - - - - Represents the date and time patterns - - - - - default date time pattern - - - - - short - - - - - Medium - - - - - Loing - - - - - full - - - - - Represent the datetime field format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents date only - - - - - Represents time onluy - - - - - Represents date and times - - - - - Represents the XFA checkBox style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - default checked state. - - - - - A check mark is used for the checked state. - - - - - A circle is used for the checked state. - - - - - A cross is used for the checked state. - - - - - A diamond symbol is used for the checked state. - - - - - A square is used for the checked state. - - - - - A star is used for the checked state. - - - - - Represents the XFA checkBox shape - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Squred checkBox - - - - - Rounded checkBox - - - - - Represent XFA border style - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - No Border - - - - - A solid rectangle surrounding. - - - - - A dashed rectangle surrounding. - - - - - A dotted rectangle surrounding. - - - - - A dashed dotted rectangle surrounding. - - - - - A dashed dotted dotted rectangle surrounding. - - - - - A lowered rectangle surrounding. - - - - - Raised rectangle surrounding. - - - - - Etched rectangle surrounding. - - - - - Embossed rectangle surrounding. - - - - - Represents the handness of the XFA border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set caption text. - textBoxField.Caption.Text = "First Name"; - //Create new PDF XFA border instance. - PdfXfaBorder border = new PdfXfaBorder(Color.Red); - //Set border fill color. - border.FillColor = new PdfXfaSolidBrush(Color.Green); - //Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right; - //Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised; - //Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible; - //Set the border with. - border.Width = 2; - //Set border to text box field. - textBoxField.Border = border; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200, 20)) - 'Set caption text. - textBoxField.Caption.Text = "First Name" - 'Create new PDF XFA border instance. - Dim border As New PdfXfaBorder(Color.Red) - 'Set border fill color. - border.FillColor = New PdfXfaSolidBrush(Color.Green) - 'Set handedness of the border. - border.Handedness = PdfXfaHandedness.Right - 'Set the style of the border. - border.Style = PdfXfaBorderStyle.Raised - 'Set the border visibility. - border.Visibility = PdfXfaVisibility.Visible - 'Set the border with. - border.Width = 2 - 'Set border to text box field. - textBoxField.Border = border - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Position the displayed line immediately to the right of the underlying vector. - - - - - Position the displayed line immediately to the left of the underlying vector. - - - - - Center the displayed line on the underlying vector. - - - - - Represents the Pdf XFA numeric field types - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set field type. - numericField.FieldType = PdfXfaNumericType.Integer; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set field type. - numericField.FieldType = PdfXfaNumericType.Integer - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the floating values - - - - - Represents the decimal values - - - - - Represents the integer values - - - - - Represents the currency values - - - - - Represents the persentage values - - - - - Enumerator that implements XFA page orientations. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Portrait orientation. - - - - - Landscape orientation. - - - - - Represents the XFA document type - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Preserved the XFA fields only. - - - - - Preserved both the XFA and Acroform fields. - - - - - Represents the text box type - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("Address", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "Address"; - //Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline; - //Set the tool tip. - textBoxField.ToolTip = "Address"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("Address", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "Address" - 'Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline - 'Set the tool tip. - textBoxField.ToolTip = "Address" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Specifies the single line of text. - - - - - Specifies the multiline of text. - - - - - Specifies the password character. - - - - - Specifies comb of characters. - - - - - Represents checkbox field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the check box field. - The size of the check box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the check box field - The size of the check box field - The checked state of the check box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30), true); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30), True) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the check box field. - Check box field width. - Check box field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", 100, 30); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", 100, 30) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the check box field. - Check box field width. - Check box field height. - Checked state of the field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", 100, 30, true); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", 100, 30, True) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save checkbox. - - - - - - Save acrform checkbox field. - - - - - - - - - Get the acroform checkbox style. - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - //Clone the check box field. - xfaForm.Fields.Add(field.Clone() as PdfXfaCheckBoxField); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - 'Clone the check box field. - xfaForm.Fields.Add(TryCast(field.Clone(), PdfXfaCheckBoxField)) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets a value indicating whether this is checked or not - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the checked Style of the check box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the appearance of the check box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the check box size - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create new XFA check box field. - PdfXfaCheckBoxField field = new PdfXfaCheckBoxField("check1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "CheckBox"; - //Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square; - //Set the check box size. - field.CheckBoxSize = 10; - //Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Set the check box checked state. - field.IsChecked = true; - //Add the field to form. - xfaForm.Fields.Add(field); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create new XFA check box field. - Dim field As New PdfXfaCheckBoxField("check1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "CheckBox" - 'Set checkbox appearance. - field.CheckBoxAppearance = PdfXfaCheckBoxAppearance.Square - 'Set the check box size. - field.CheckBoxSize = 10 - 'Set the checked style. - field.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Set the check box checked state. - field.IsChecked = True - 'Add the field to form. - xfaForm.Fields.Add(field) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the circle of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field - size of the field - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - width of the field. - height of the field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", 100, 100); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", 100, 100) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the circle field - - - - - - Draw the circle to PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - //Clone the circle field. - xfaForm.Fields.Add(circle.Clone() as PdfXfaCircleField); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - 'Clone the circle field. - xfaForm.Fields.Add(TryCast(circle.Clone() , PdfXfaCircleField)) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border of the circle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the tool tip of the circle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the start angle of the arc - - The start angle only support when the circle is an arc type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the sweep angle of the Arc - - The sweep angle only support when the circle is an arc type. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the apperance of the circle field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set start angle. - circle.StartAngle = 90; - //Set sweep angle. - circle.SweepAngle = 270; - //Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc; - //Set rotation. - circle.Rotate = PdfXfaRotateAngle.RotateAngle270; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set start angle. - circle.StartAngle = 90 - 'Set sweep angle. - circle.SweepAngle = 270 - 'Set the circle appearance. - circle.Appearance = PdfXfaCircleAppearance.Arc - 'Set rotation. - circle.Rotate = PdfXfaRotateAngle.RotateAngle270 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Set the width. - circle.Width = 200; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Set the width. - circle.Width = 200 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm xfaForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - //Set margin of the form. - xfaForm.Margins.All = 10; - //Create a new XFA circle field. - PdfXfaCircleField circle = new PdfXfaCircleField("circle1", new SizeF(100, 100)); - //Set border. - circle.Border = new PdfXfaBorder(); - //Set border color. - circle.Border.Color = new PdfColor(Color.Green); - //Set tooltip. - circle.ToolTip = "Circle"; - //Set height. - circle.Height = 200; - //Add the field to form. - xfaForm.Fields.Add(circle); - document.XfaForm = xfaForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim xfaForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - 'Set margin of the form. - xfaForm.Margins.All = 10 - 'Create a new XFA circle field. - Dim circle As New PdfXfaCircleField("circle1", New SizeF(100, 100)) - 'Set border. - circle.Border = New PdfXfaBorder() - 'Set border color. - circle.Border.Color = New PdfColor(Color.Green) - 'Set tooltip. - circle.ToolTip = "Circle" - 'Set height. - circle.Height = 200 - 'Add the field to form. - xfaForm.Fields.Add(circle) - document.XfaForm = xfaForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the combo box field of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - The name of the field. - The size of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - Initialize a new instance of the class. - - The name of the field. - Width of the field. - Height of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", 100, 30); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", 100, 30) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - Save combo box field. - - - - - - Save the acroform combo box field. - - - - - - - - - set the size of the Choice list field - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA combo box field - PdfXfaComboBoxField field = new PdfXfaComboBoxField("combo1", new SizeF(100, 30)); - //Add items. - field.Items.Add("One"); - field.Items.Add("Two"); - field.Items.Add("Three"); - field.Items.Add("Four"); - field.Items.Add("Five"); - //Add the field to the form - form.Fields.Add(field); - //Clone the combo box field. - form.Fields.Add(field.Clone() as PdfXfaComboBoxField); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA combo box field - Dim field As New PdfXfaComboBoxField("combo1", New SizeF(100, 30)) - 'Add items. - field.Items.Add("One") - field.Items.Add("Two") - field.Items.Add("Three") - field.Items.Add("Four") - field.Items.Add("Five") - 'Add the field to the form - form.Fields.Add(field) - 'Clone the combo box field. - xfaForm.Fields.Add( TryCast(field.Clone(), PdfXfaComboBoxField)) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - - - - - - - - Represents the date time field of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - Size of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the field. - Width of the field. - Height of the field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", 100, 30); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", 100, 30) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the Date time field. - - - - - - Save the acroform text box field. - - - - - - - - - Set size - - - - - set the date Pattern - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - //Clone the date time field. - xfaForm.Fields.Add(field.Clone() as PdfXfaDateTimeField); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - 'Clone the date time field. - xfaForm.Fields.Add(TryCast(field.Clone(), PdfXfaDateTimeField)) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set paddings. - field.Padding.All = 2; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set paddings. - field.Padding.All = 2 - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set caption. - field.Caption.Text = "Date"; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set caption. - field.Caption.Text = "Date" - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or Sets the value of date time field - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the date format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(200, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date; - //Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(200, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Date - 'Set date pattern. - field.DatePattern = PdfXfaDatePattern.Full - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the date time field format - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the time patterns - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the validations - - The validations doesn't supports to the dateTime type - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time; - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long; - //Set the default value - field.Value = DateTime.Now; - //Set validation. - field.RequireValidation = true; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the format of the date time field. - field.Format = PdfXfaDateTimeFormat.Time - //Set time pattern. - field.TimePattern = PdfXfaTimePattern.Long - 'Set the default value - field.Value = DateTime.Now - 'Set validation. - field.RequireValidation = True - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - The Syncfusion.Pdf.Xfa namespace contains classes used to create or fill the XFA form fields. - - - - - Represents the XFA document - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initialize a new instance of the class. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save XFA form. - - - - - - Save the document - - The output file name. - The XFA form type. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Save the document - - The stream where to save the document. - The type of the XFA form. - The HTTP response stream object. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - MemoryStream stream = new MemoryStream(); - //Save the document - document.Save(stream, PdfXfaType.Dynamic, Response); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - Dim stream As MemoryStream = New MemoryStream() - 'Save the document - document.Save(stream, PdfXfaType.Dynamic, Response) - 'Close the document - document.Close() - - - - - - Save the document - - The name of the document. - The type of the XFA form. - The HTTP response stream object. - The type of the reading document. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic, Response, HttpReadType.Open); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic, Response, HttpReadType.Open) - 'Close the document - document.Close() - - - - - - save the document - - The output stream. - The xfa form type. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - MemoryStream stream = new MemoryStream(); - //Save the document - document.Save(stream, PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - Dim stream As MemoryStream = New MemoryStream() - 'Save the document - document.Save(stream, PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Close the document - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clone - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Clone the document. - PdfXfaDocument cDocument = document.Clone() as PdfXfaDocument; - //Save the document - cDocument.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - cDocument.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Clone the document. - PdfXfaDocument cDocument = TryCast(document.Clone(), PdfXfaDocument) - 'Save the document - cDocument.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - cDocument.Close() - - - - - - Gets or set page settings. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Get the XFA page - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Set form name. - document.FormName = "topmostform"; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Set form name. - document.FormName = "topmostform" - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA form - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the form name. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Set form name. - document.FormName = "topmostform"; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Set form name. - document.FormName = "topmostform" - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the field collection of the XFA form. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Adds the specified field. - - The field item which is added in the PDF XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Remove the field. - - The field to be removed by the current collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Remove the field. - collection.Remove(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Remove the field. - collection.Remove(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Remove field at the specified index. - - The index of the field to be removed by this collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Remove the field. - collection.RemoveAt(0); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Remove the field. - collection.RemoveAt(0) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clear all the fields. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Clear the fields. - collection.Clear(); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Clear the fields. - collection.Clear() - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Insert field to the specified index. - - The index of the field to be inserted in the collection. - The field to be inserted in the collection. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Insert the field. - collection.Insert(0, field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Insert the field. - collection.insert(0, field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Determines the index of a specific field. - - The field. - Retruns the index of the specific field. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the field index. - int index = collection.IndexOf(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get the field index. - Dim index As Integer = collection.IndexOf(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Clone the fields collection - - - - - - Get the field with the specific index. - - index. - PdfXfaField. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the specific field by index. - PdfXfaField field1 = collection[0]; - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get specific field by index. - Dim field1 As PdfXfaField = collection(0) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Get the fields count. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Get the fields collection. - PdfXfaFieldCollection collection = form.Fields; - //Add the field to the collection. - collection.Add(field); - //Get the fields count. - int count = collection.Count; - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Get the fields collection. - Dim collection As PdfXfaFieldCollection = form.Fields - 'Add the field to the collection. - collection.Add(field) - 'Get the fields count. - Dim count As Integer = collection.Count - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents interactive XFA form of the Pdf document. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Reperesents the XFA form type - - - - - Represents the XFA form field collections - - - - - Data set writer of the XFA - - - - - Represents the field count - - - - - Repersents the current document - - - - - Image array of the XFA - - - - - Repersents the boder of the form - - - - - Represents the width of the form - - - - - Represents the readonly flag of the form - - - - - Represents the xfa page - - - - - Represents the PDF page - - - - - Parent form - - - - - Form save type - - - - - Represents the PDF xfa document - - - - - Represents the start point. - - - - - Current position of the form - - - - - Maximum size of the field - - - - - Name of the subform. - - - - - Acroform field collection. - - - - - suform names - - - - - field names. - - - - - Size of the form. - - - - - maximum size of the current field. - - - - - Represents the current position of the form. - - - - - Represents the page size. - - - - - Represents the subform's current height. - - - - - Represents the background heigh. - - - - - Represents the background count. - - - - - Dublicate of the xfa page. - - - - - Represents the subform readOnly property. - - - - - Initializes a new instance of the class. - - The width fo the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The page. - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", page, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", page, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the form. - The flow direction of the XFA form - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The XFA page. - The flow direction of the XFA form - The width of the form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(page, PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm(page, PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The flow direction of the XFA form - The width of the XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The name of the XFA form. - The XFA page. - The flow direction of the XFA form. - The width of the XFA form. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA page. - PdfXfaPage page = document.Pages.Add(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm("form1", page, PdfXfaFlowDirection.Horizontal, 595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA page. - Dim page As PdfXfaPage = document.Pages.Add() - 'Create a new XFA form - Dim form As New PdfXfaForm("form1", page, PdfXfaFlowDirection.Horizontal, 595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - save XFA form - - - - - - Save the top most form - - - - - - Add the second level Parent form - - - - - - Draw the edge - - - - - - - - - Get pens dash style. - - - - - - - Add all the subforms - - - - - - - Get the field names - - - - - - - Get the sub form names - - - - - - - Add all the subforms - - - - - - Break the subform to new page. - - - - - - - Get the subforms background height. - - - - - - Draw the background color. - - - - - - Add a PDF page - - - - - - - Set the current pont - - - - - - Set the background height. - - - - - - - Find the subform width and height - - - - - - Write unsupported message in Dynamic XFA. - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Clone the form. - form.Fields.Add(form.Clone() as PdfXfaForm); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Clone the form. - form.Fields.Add(TryCase(form.Clone(), PdfXfaForm)); - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA flow direction - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the border - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set border. - form.Border = new PdfXfaBorder(Color.Red); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set border. - form.Border = New PdfXfaBorder(Color.Red) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets the fields. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets readonly - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set readonly form. - form.ReadOnly = true; - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set readonly form. - form.ReadOnly = True - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets width of the form - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(595); - //Set width. - form.Width = 565; - //Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal; - //Create a new XFA Field - PdfXfaTextBoxField field = new PdfXfaTextBoxField("textBox1", new SizeF(200, 30)); - //Set text. - field.Text = "Text Box Field."; - //Add the field to the XFA form. - form.Fields.Add(field); - //Assign the form to document. - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new XFA form - Dim form As New PdfXfaForm(595) - 'Set width. - form.Width = 565 - 'Set the flow direction. - form.FlowDirection = PdfXfaFlowDirection.Horizontal - 'Create a new XFA Field - Dim field As New PdfXfaTextBoxField("textBox1", New SizeF(200, 30)) - 'Set text. - field.Text = "Text Box Field." - 'Add the field to the XFA form. - form.Fields.Add(field) - 'Assign the form to document. - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set the XFA Page. - - - - - Represents image field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image path. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image path. - Image size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg", new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg", New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - The image name. - The image path. - The width of the image. - The height of the image. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg", 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg", 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg")); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg")) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image. - Width. - Height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg"), 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg"), 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image. - Image size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", Image.FromFile("image.jpg"), new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", Image.FromFile("image.jpg"), New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - PDF bitmap - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", new PdfBitmap("image.jpg")); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", New PdfBitmap("image.jpg")) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image stream - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream) - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image stream. - Size of the image. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream, new SizeF(100,100)); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream, New SizeF(100,100)) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Image name. - Image to be drawn in XFA form. - Image width - Image height - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - Stream imageStream = new MemoryStream(File.ReadAllBytes("image.jpg")); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", imageStream, 100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - Dim imageStream As Stream = New MemoryStream(File.ReadAllBytes("image.jpg")) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", imageStream, 100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - initialize a new instance of the class - - - - - - - Save the image field. - - - - - - - - Save the image to the PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Clone. - - - - - - Gets or sets the image stream - - - - - Gets or sets the image size - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Set image size. - image.Size = new SizeF(100, 100); - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Set image size. - image.Size = New SizeF(100, 100) - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Bounds of the image - - - - - Get or set the subform name - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a image and add the properties. - PdfXfaImage image = new PdfXfaImage("image1", "image.jpg"); - //Set image size. - image.Size = new SizeF(100, 100); - //Set the rotation angle. - image.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the image to the XFA form. - mainForm.Fields.Add(image); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a image and add the properties. - Dim image As New PdfXfaImage("image1", "image.jpg") - 'Set image size. - image.Size = New SizeF(100, 100) - 'Set the rotation angle. - image.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the image to the XFA form. - mainForm.Fields.Add(image) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the line of the XFA form - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Start location of the Line. - End location of the Line. - Thickness of the Line. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the line. - - - - - - Draw the line in PDF document. - - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Clone the line object. - mainForm.Fields.Add(line.Clone() as PdfXfaLine); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Clone the line object. - mainForm.Fields.Add(TryCase(line.Clone(), PdfXfaLine)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the line color - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the thickness of the line - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a line and add the properties. - PdfXfaLine line = new PdfXfaLine(new PointF(0, 0), new PointF(200, 0), 3); - //Set the line color - line.Color = new PdfColor(Color.Red); - //Set thickness. - line.Thickness = 2; - //Add the text line to the XFA form. - mainForm.Fields.Add(line); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a line and add the properties. - Dim line As New PdfXfaLine(New PointF(0,0),New PointF(200,0),3) - 'Set the line color - line.Color = New PdfColor(Color.Red) - 'Set thickness - line.Thickness = 2 - 'Add the text line to the XFA form. - mainForm.Fields.Add(line) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the list box field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Initialize a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", 150, 50); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", 150, 50) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Save the list box field. - - - - - - Save the acroform list box. - - - - - - - - - set the size of the list field - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Clone the list box. - mainForm.Fields.Add(listBoxField.Clone() as PdfXfaListBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Clone the list box. - mainForm.Fields.Add(TryCase(listBoxField.Clone(), PdfXfaListBoxField)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set padding. - listBoxField.Padding.All = 2; - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set padding. - listBoxField.Padding.All = 2 - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the list box items - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the selected index - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selected index. - listBoxField.SelectedIndex = 1; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selected index. - listBoxField.SelectedIndex = 1 - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the selected value - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selected value. - listBoxField.SelectedValue = "French"; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selected value. - listBoxField.SelectedValue = "French" - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets selection mode of the list box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the List box selection mode. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a list box field and add the properties. - PdfXfaListBoxField listBoxField = new PdfXfaListBoxField("listBoxField", new SizeF(150, 50)); - //Set the caption text. - listBoxField.Caption.Text = "Known Languages"; - listBoxField.Caption.Position = PdfXfaPosition.Top; - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Add the list box items - listBoxField.Items.Add("English"); - listBoxField.Items.Add("French"); - listBoxField.Items.Add("German"); - //Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single; - //Add the field to the XFA form. - mainForm.Fields.Add(listBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a list box field and add the properties. - Dim listBoxField As New PdfXfaListBoxField("listBoxField", New SizeF(150, 50)) - 'Set the caption text. - listBoxField.Caption.Text = "Known Languages" - listBoxField.Caption.Position = PdfXfaPosition.Top - listBoxField.Caption.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Add the list box items - listBoxField.Items.Add("English") - listBoxField.Items.Add("French") - listBoxField.Items.Add("German") - 'Set the selection mode. - listBoxField.SelectionMode = PdfXfaSelectionMode.Single - 'Add the field to the XFA form. - mainForm.Fields.Add(listBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Single item selection mode. - - - - - Multiple item selection mode. - - - - - Represents the numeric field of the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", 200, 20); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", 200,20) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the numeric field. - - - - - - Save acroform textbox field. - - - - - - - - - set the size of the numeric field - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Clone the numeric field. - mainForm.Fields.Add(numericField.Clone() as PdfXfaNumericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - //Clone the numeric field. - mainForm.Fields.Add(TryCast(numericField.Clone(), PdfXfaNumericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or set the Culture. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set culture. - numericField.Culture = "fr-FR"; - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set culture. - numericField.Culture = "fr-FR" - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set padding. - numericField.Padding.All = 2; - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set padding. - numericField.Padding = 2 - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the numeric field value - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the value. - numericField.Value = 12345; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the value. - numericField.Value = 12345; - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the comb length - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the comb lengh. - numericField.CombLengh = 5; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the comb length. - numericField.CombLength = 5 - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the numeric field types - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set field type. - numericField.FieldType = PdfXfaNumericType.Integer; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set field type. - numericField.FieldType = PdfXfaNumericType.Integer - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the pattern string - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add new XFA page - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form with horizontal flow direction - PdfXfaForm mainForm = new PdfXfaForm(xfaPage, PdfXfaFlowDirection.Horizontal, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Set the pattern string - numericField.PatternString = "zzzzzzzzz9"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add new XFA page - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form with horizontal flow direction - Dim mainForm As New PdfXfaForm(xfaPage, PdfXfaFlowDirection.Horizontal, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200, 20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Set the pattern string - numericField.PatternString = "zzzzzzzzz9" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the PDF Xfa page. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialized the new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the page. - - - - - - Get the content area - - Returns the client size of the page. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA page collection - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Intialize the new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Add new XFA page - - XFA page object - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets the page using index value. - - page index. - PdfXfaPage - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", document.Pages[0], xfaPage.GetClientSize().Width); - //Create a numeric field and add the properties. - PdfXfaNumericField numericField = new PdfXfaNumericField("numericField", new SizeF(200, 20)); - //Set the caption text. - numericField.Caption.Text = "Numeric Field"; - //Add the field to the XFA form. - mainForm.Fields.Add(numericField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", document.Pages[0], xfaPage.GetClientSize().Width) - 'Create a numeric field and add the properties. - Dim numericField As New PdfXfaNumericField("numericField", New SizeF(200,20)) - 'Set the caption text. - numericField.Caption.Text = "Numeric Field" - 'Add the field to the XFA form. - mainForm.Fields.Add(numericField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("output.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA page settings. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA page orientation - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the XFA page size - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or set margins. - - - - //Create a new XFA document - PdfXfaDocument document = new PdfXfaDocument(); - //Create a new PDF XFA page settings instance. - PdfXfaPageSettings settings = new PdfXfaPageSettings(); - //Set margin. - settings.Margins.All = 40; - //Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape; - //Set page size. - settings.PageSize = new SizeF(new SizeF(500, 700)); - //Set page settings to document. - document.PageSettings = settings; - //Create a new XFA form - PdfXfaForm form = new PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595); - //Create a new XFA Field - PdfXfaDateTimeField field = new PdfXfaDateTimeField("dateTime1", new SizeF(100, 30)); - //Set the default value - field.Value = DateTime.Now; - //Add the field to the form - form.Fields.Add(field); - document.XfaForm = form; - //Save the document - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new XFA document - Dim document As New PdfXfaDocument() - 'Create a new PDF XFA page settings instance. - Dim settings As New PdfXfaPageSettings() - 'Set margin. - settings.Margins.All = 40 - 'Set page orientation. - settings.PageOrientation = PdfXfaPageOrientation.Landscape - 'Set page size. - settings.PageSize = New SizeF(New SizeF(500, 700)) - 'Set page settings to document. - document.PageSettings = settings - 'Create a new XFA form - Dim form As New PdfXfaForm(PdfXfaFlowDirection.Horizontal, 595) - 'Create a new XFA Field - Dim field As New PdfXfaDateTimeField("dateTime1", New SizeF(100, 30)) - 'Set the default value - field.Value = DateTime.Now - 'Add the field to the form - form.Fields.Add(field) - document.XfaForm = form - 'Save the document - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Represents the XFA radio button field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the radio button field. - Size of the radio button field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the radio button field. - Width of the radio button field. - Height of the radio button field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", 80, 20); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", 80, 20); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", 80, 20) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", 80, 20) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the radio button field. - - - - - - Set Margins, font, tooltip and alignments. - - - - - - Save acroform radio button field. - - - - - - - - Convert XFA check box style to acroform check box style. - - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Clone the radio button. - group.Items.Add(radioButtonField2.Clone() as PdfXfaRadioButtonField); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Clone the radio button. - group.Items.Add( TryCase(radioButtonField2.Clone(), PdfXfaRadioButtonField)) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets a value indicating whether this is checked or not. - true if checked; otherwise, false. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - radioButtonField2.IsChecked = true; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - radioButtonField2.IsChecked = True - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the checked style of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the checked style. - radioButtonField2.CheckedStyle = PdfXfaCheckedStyle.Cross; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the checked style. - radioButtonField2.CheckedStyle = PdfXfaCheckedStyle.Cross - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the appearance of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the button appearance. - radioButtonField2.RadioButtonAppearance = PdfXfaCheckBoxAppearance.Square; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the button appearance. - radioButtonField2.RadioButtonAppearance = PdfXfaCheckBoxAppearance.Square - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the size of the radio button - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Set the radio button size. - radioButtonField2.RadioButtonSize = 10; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Set the radio button size. - radioButtonField2.RadioButtonSize = 10 - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA radio button group field. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initalize the instance of the PdfXFARadioButtonItemGroup class - - The name of the radio button group field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the radio button Group - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Clone the radio group. - mainForm.Fields.Add(group.Clone() as PdfXfaRadioButtonGroup); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Clone the radio group. - mainForm.Fields.Add(TryCase(group.Clone(), PdfXfaRadioButtonGroup)) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the readonly - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - //Set read only. - group.ReadOnly = true; - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - 'Set read only. - group.ReadOnly = True - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the radio list items - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the layout type - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the radio button list item. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a radio button group - PdfXfaRadioButtonGroup group = new PdfXfaRadioButtonGroup("radioGroup"); - group.FlowDirection = PdfXfaFlowDirection.Vertical; - //Create a radio button field and add the properties. - PdfXfaRadioButtonField radioButtonField1 = new PdfXfaRadioButtonField("r1", new SizeF(80, 20)); - //Set the caption text. - radioButtonField1.Caption.Text = "Male"; - PdfXfaRadioButtonField radioButtonField2 = new PdfXfaRadioButtonField("r2", new SizeF(80, 20)); - radioButtonField2.Caption.Text = "Female"; - //Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1); - group.Items.Add(radioButtonField2); - //Add the field to the XFA form. - mainForm.Fields.Add(group); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a radio button group - Dim group As New PdfXfaRadioButtonGroup("radioGroup") - group.FlowDirection = PdfXfaFlowDirection.Vertical - 'Create a radio button field and add the properties. - Dim radioButtonField1 As New PdfXfaRadioButtonField("r1", New SizeF(80, 20)) - 'Set the caption text. - radioButtonField1.Caption.Text = "Male" - Dim radioButtonField2 As New PdfXfaRadioButtonField("r2", New SizeF(80, 20)) - radioButtonField2.Caption.Text = "Female" - 'Add the radio button fields to the radio button group - group.Items.Add(radioButtonField1) - group.Items.Add(radioButtonField2) - 'Add the field to the XFA form. - mainForm.Fields.Add(group) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents the XFA rectangle field. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field size. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Field name. - Field width. - Field height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", 100, 50); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", 100,50) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the rectangle field. - - - - - - Draw the rectangle field to PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Clone the rectangle field. - mainForm.Fields.Add(rectangle.Clone() as PdfXfaRectangleField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Clone the rectangle field. - mainForm.Fields.Add(TryCase(rectangle.Clone(), PdfXfaRectangleField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the border - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the tool tip - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set tool tip. - rectangle.ToolTip ="This the rectangle"; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set tool tip. - rectangle.ToolTip = "This is the rectangle" - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the cornor shaps - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Create a form. - PdfXfaForm parentForm = new PdfXfaForm(PdfXfaFlowDirection.Vertical, 595); - parentForm.Margins.All = 10; - //Create new XFA rectangle instance. - PdfXfaRectangleField rect = new PdfXfaRectangleField("rect1", new SizeF(200, 100)); - //Create a new corner instance. - PdfXfaCorner corner = new PdfXfaCorner(); - //Set inverted. - corner.IsInverted = true; - //Set corner shape. - corner.Shape = PdfXfaCornerShape.Round; - //Set corner thickness - corner.Thickness = 5; - //Set corner border color. - corner.BorderColor = Color.Green; - //Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid; - //Set the radius of the corner. - corner.Radius = 5f; - //Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible; - //Set the corner of the rectangle - rect.Corner = corner; - //Set the fill color of the rectangle - rect.Border.Style = PdfXfaBorderStyle.Solid; - //Set rectangle border width. - rect.Border.Width = 5; - //Set the linear brush - rect.Border.FillColor = new PdfXfaLinearBrush(Color.Red, Color.Yellow); - //Add the field to form. - parentForm.Fields.Add(rect); - document.XfaForm = parentForm; - //Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic); - //Close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Create a form. - Dim parentForm As New PdfXfaForm(PdfXfaFlowDirection.Vertical, 595) - parentForm.Margins.All = 10 - 'Create new XFA rectangle instance. - Dim rect As New PdfXfaRectangleField("rect1", New SizeF(200, 100)) - 'Create a new corner instance. - Dim corner As New PdfXfaCorner() - 'Set inverted. - corner.IsInverted = True - 'Set corner shape. - corner.Shape = PdfXfaCornerShape.Round - 'Set corner thickness - corner.Thickness = 5 - 'Set corner border color. - corner.BorderColor = Color.Green - 'Set the corner border style. - corner.BorderStyle = PdfXfaBorderStyle.Solid - 'Set the radius of the corner. - corner.Radius = 5F - 'Set the visibility of the corner. - corner.Visibility = PdfXfaVisibility.Visible - 'Set the corner of the rectangle - rect.Corner = corner - 'Set the fill color of the rectangle - rect.Border.Style = PdfXfaBorderStyle.Solid - 'Set rectangle border width. - rect.Border.Width = 5 - 'Set the linear brush - rect.Border.FillColor = New PdfXfaLinearBrush(Color.Red, Color.Yellow) - 'Add the field to form. - parentForm.Fields.Add(rect) - document.XfaForm = parentForm - 'Save the document. - document.Save("output.pdf", PdfXfaType.Dynamic) - 'Close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set rotation. - rectangnle.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets width of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set width. - rectangle.Width = 150; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set width. - rectangle.Width = 150 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets sets height of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a rectangle field and add the properties. - PdfXfaRectangleField rectangle = new PdfXfaRectangleField("rect1", new SizeF(100, 50)); - //Set the fill color - rectangle.Border.FillColor = new PdfXfaSolidBrush(Color.Red); - //Set height. - rectangle.Height = 100; - //Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a rectangle field and add the properties. - Dim rectangle As New PdfXfaRectangleField("rect1", New SizeF(100,50)) - 'Set the fill color - rectangle.Border.FillColor = New PdfXfaSolidBrush(Color.Red) - 'Set height. - rectangle.Height = 100 - 'Add the rectangle field to the XFA form. - mainForm.Fields.Add(rectangle) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents textbox field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - Name of the text box field. - Minimum size of the text box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Default value of the text box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), "John"); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), "John") - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Default value of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), "John", PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), "John", PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum size of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20), PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20), PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200,20) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - Default value of the text box - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, "John"); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, "John") - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - ext box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Name of the text box field - Minimum width of the text box field. - Minimum height of the text box field. - Default value of the text box - Text box field type - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", 200, 20, "John", PdfXfaTextBoxType.SingleLine); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", 200, 20, "John", PdfXfaTextBoxType.SingleLine) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the text box field. - - - - - - Save the text box field. - - - - - - Save the acroform textbox field. - - - - - - - - - set the size of the textbox field - - - - - - Get the size of the text box field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Clone the text box field. - mainForm.Fields.Add(textBoxField.Clone() as PdfXfaTextBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Clone the text box field. - mainForm.Fields.Add(TryCast(textBoxField.Clone(), PdfXfaTextBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the caption of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the field type of the text box - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("Address", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "Address"; - //Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline; - //Set the tool tip. - textBoxField.ToolTip = "Address"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("Address", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "Address" - 'Set the text box type. - textBoxField.Type = PdfXfaTextBoxType.Multiline - 'Set the tool tip. - textBoxField.ToolTip = "Address" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the padding - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set padding. - textBoxField.Padding.All = 2; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set padding. - textBoxField.Padding.All = 2 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets minimum height of the text box, this will be expandable - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set minimum height. - textBoxField.MinimumHeight = 30; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set minimum height. - textBoxField.MinimumHeight = 30; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the minimum width of the text box, this will be expandable - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set minimum width. - textBoxField.MinumWidth = 220; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set minum width. - textBoxField.MinimumWidth = 220 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets maximum height of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maxium height. - textBoxField.MaximumHeight = 30; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum height. - textBoxField.MaximumHeight = 30; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets maximum width of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maximum width. - textBoxField.MaximumWidth = 300; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum width. - textBoxField.MaximumWidth = 300; - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the value of the text box field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set text. - textBoxField.Text = "John"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set text. - textBoxField.Text = "John" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the character limit - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - //Set maxium length. - textBoxField.MaximumLength = 10; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - 'Set maximum length. - textBoxField.MaximumLength = 10 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the comb cell - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - textBoxField.Type = PdfXfaTextBoxType.Comb; - textBoxField.CombLength = 5; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - textBoxField.Type = PdfXfaTextBoxType.Comb - //Set comb length. - textBoxField.CombLength = 5 - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the password character - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a textbox field and add the properties. - PdfXfaTextBoxField textBoxField = new PdfXfaTextBoxField("FirstName", new SizeF(200, 20)); - //Set the caption text. - textBoxField.Caption.Text = "First Name"; - //Set the tool tip. - textBoxField.ToolTip = "First Name"; - textBoxField.Type = PdfXfaTextBoxType.Password; - //Set password character. - textBoxField.PasswordCharacter = "*"; - //Add the field to the XFA form. - mainForm.Fields.Add(textBoxField); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a textbox field and add the properties. - Dim textBoxField As New PdfXfaTextBoxField("FirstName", New SizeF(200,20)) - 'Set the caption text. - textBoxField.Caption.Text = "First Name" - 'Set the tool tip. - textBoxField.ToolTip = "First Name" - textBoxField.Type = PdfXfaTextBoxField.Password - //Set password character. - textBoxField.PasswordCharacter = "*" - 'Add the field to the XFA form. - mainForm.Fields.Add(textBoxField) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Represents text field in the XFA form. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initialize a new instance of the class. - - Value of the text element - Text element width. - Text element height. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", 200, 20); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", 200, 20) - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - Font of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold)); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold)) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Initializes a new instance of the class. - - value of the text element - Font of the text element - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!", new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold), 200, 20); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!", New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold), 200, 20) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Save the text element. - - - - - - Draw the tex to the PDF document. - - - - - - - Get the fields rotation angle. - - - - - - Get the size of the field. - - - - - - Creates a new object that is a copy of the current instance. - - The copy of the new object for this instance. - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Clone the element. - mainForm.Fields.Add(textElement.Clone() as PdfXfaTextElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Clone the element. - mainForm.Fields.Add(TryCast(textElement.Clone(), PdfXfaTextElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the Horizontal alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the vertical alignment - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the text - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the rotation angle - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the font - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement("Hello World!"); - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement("Hello World!") - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf",PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets the fore color of the field - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets width of the TextBox - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Gets or sets height of the TextBox - - - - //Create a new PDF XFA document. - PdfXfaDocument document = new PdfXfaDocument(); - //Add a new XFA page. - PdfXfaPage xfaPage = document.Pages.Add(); - //Create a new PDF XFA form - PdfXfaForm mainForm = new PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width); - //Create a text element and add the properties. - PdfXfaTextElement textElement = new PdfXfaTextElement(); - //Set text. - textElement.Text = "Hello World!."; - //Set width. - textElement.Width = 200; - //Set height. - textElement.Height = 20; - //Set fore color. - textElement.ForeColor = Color.Yellow; - //Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90; - //Set font - textElement.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Add the text element to the XFA form. - mainForm.Fields.Add(textElement); - //Add the XFA form to the document. - document.XfaForm = mainForm; - //Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic); - //close the document - document.Close(); - - - 'Create a new PDF XFA document. - Dim document As New PdfXfaDocument() - 'Add a new XFA page. - Dim xfaPage As PdfXfaPage = document.Pages.Add() - 'Create a new PDF XFA form - Dim mainForm As New PdfXfaForm("subform1", xfaPage, xfaPage.GetClientSize().Width) - 'Create a text element and add the properties. - Dim textElement As New PdfXfaTextElement() - 'Set text. - textElement.Text = "Hello World!." - 'Set width. - textElement.Width = 200 - 'Set height. - textElement.Height = 20 - 'Set fore color. - textElement.ForeColor = Color.Yellow - 'Set vertical alignment. - textElement.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Set horizontal alignment. - textElement.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Set the rotatio angle. - textElement.Rotate = PdfXfaRotateAngle.RotateAngle90 - 'Set font - textElement.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Add the text element to the XFA form. - mainForm.Fields.Add(textElement) - 'Add the XFA form to the document. - document.XfaForm = mainForm - 'Save the document. - document.Save("XfaForm.pdf", PdfXfaType.Dynamic) - 'close the document - document.Close() - - - - - - Writes the XFA document templates - - - - - - - Writes the preamble dictionary - - - - - - Start the datasets - - - - - - End element of the datasets - - - - - - Writes the postable dictionary - - - - - - Writes configuration section - - - - - - Writes the XFA UI tag - - - - - - - Writes the XFA UI tag - - - - - - - - - Writes the XFA UI tag - - - - - - - - - Writes the XFA UI tag. - - - - - - - - - - Writes the XFA field value tag. - - - - - - Write the XFA field value with numeric - - - - - - - Writes the XFA field margins - - - - - - - - - Draw the margin - - - - - - write the font info - - - - - - - Writes the font information - - - - - - - - Write the width and height of the fields - - - - - - - - - Write the width and height of the fields - - - - - - - - - - - Draws the XFA line value - - - - - - - Writes the caption of the field - - - - - - Writes the items of fields - - - - - - Writes the items of fields - - - - - - - Writes the list of items - - - - - - - Writes the toolTip of fields - - - - - - Draw's the fill color of the field - - - - - - Writes the location of the field - - - - - - Write the paragraph alignments - - - - - - - Write patterns - - - - - - Draws the edges of the border - - - - - - - Draws a field Border - - - - - - Draw the button field fill color and border - - - - - - - Draws the edge - - - - - - Draws the corner - - - - - - Drw the color - - - - - - Draws the stroke - - - - - - Draws the fill color - - - - - - Draws the radial brush - - - - - - Draws the linear brush - - - - - - Set rotation presence and readOnly - - - - - - - - Get the date pattern string. - - - - - - - Get the time pattern string. - - - - - - - Get the date time pattern string. - - - - - - - - Get date pattern. - - - - - - - Get time pattern. - - - - - - - Represents an named destination which goes to a destination in the current document. - - - - - Internal variable to store named destination's destination. - - - - - Internal variable to store dictinary. - - - - - Internal variable to store cross table. - - - - - Initializes a new instance of the class. - - The title to be displayed. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - - Gets or sets the named destination title. - - A string value which contains the named destination title - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - The crossTable. - - - - Gets the element. - - - - - - Implements a collection of named destinations in the document. - - - - - Collection of the named destinations. - - - - - Internal variable to store dictinary. - - - - - Cross table of the document; - - - - - It counts the index of the named destination - - - - - Array of the named destinations. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Creates and adds a named destination. - - The new named destination to be added to the collection. - PdfNamedDestination - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 1"); - //Set the destination page. - namedDestination.Destination = new PdfDestination(page); - //Set the destination location. - namedDestination.Destination.Location = new PointF(20, 20); - //Add the named destination. - document.NamedDestinationCollection.Add(namedDestination); - //Save and close the PDF document. - document.Save("NamedDestination.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 1") - 'Set the destination page. - namedDestination.Destination = New PdfDestination(page) - 'Set the destination location. - namedDestination.Destination.Location = New PointF(20, 20) - 'Add the named destination. - document.NamedDestinationCollection.Add(namedDestination) - 'Save and close the PDF document. - document.Save("NamedDestination.pdf") - document.Close(True) - - - - - - Determines whether the specified named destinations presents in the collection. - - The named destinations. - - true if the specified named destinations is in the collection; - otherwise, false. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 1"); - //Set the destination page. - namedDestination.Destination = new PdfDestination(page); - //check whether the specified named destination present in the collection - document.NamedDestinationCollection.Contains(namedDestination); - //Save and close the PDF document. - document.Save("NamedDestination.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 1") - 'Set the destination page. - namedDestination.Destination = New PdfDestination(page) - 'Set the destination location. - namedDestination.Destination.Location = New PointF(20, 20) - 'check whether the specified named destination present in the collection - Dim isNamedDestinationContained As Boolean = document.NamedDestinationCollection.Contains(namedDestination) - 'Save and close the PDF document. - document.Save("NamedDestination.pdf") - document.Close(True) - - - - - - Remove the specified named destination from the document. - - The title of the named destination. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove named destination by named destination name. - namedCollection.Remove("Page 1"); - //Remove named destination by index. - namedCollection.RemoveAt(1); - //Save and close the document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the named destinations. - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove named destination by named destination name. - namedCollection.Remove("Page 1") - 'Remove named destination by index. - namedCollection.RemoveAt(1) - 'Save and close the document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Remove the specified named destination from the document. - - The title of the named destination. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove named destination by named destination name. - namedCollection.Remove("Page 1"); - //Remove named destination by index. - namedCollection.RemoveAt(1); - //Save and close the document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the named destinations. - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove named destination by named destination name. - namedCollection.Remove("Page 1") - 'Remove named destination by index. - namedCollection.RemoveAt(1) - 'Save and close the document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Removes all the named destination from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the Named destinations - PdfNamedDestinationCollection namedCollection = loadedDocument.NamedDestinationCollection; - //Remove all the named destination form the collection - namedCollection.Clear(); - //Save and close the PDF document - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the Named destination - Dim namedCollection As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Remove all the named destination form the collection - namedCollection.Clear() - 'Save and close the document - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Inserts a new named destination at the specified index. - - The index. - The named destination to be added to the collection.. - The new named destination. - /// - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Insert a new named destination in the existing named destinations. - PdfNamedDestination namedDestination = new PdfNamedDestination("Page 2"); - //Set the destination page and location. - namedDestination.Destination = new PdfDestination(loadedDocument.Pages[0]); - namedDestination.Destination.Location = new PointF(0, 300); - //Insert the named destination - loadedDocument.NamedDestinationCollection.Insert(1, namedDestination); - //Save and close the PDF document. - loadedDocument.Save("NamedDestination.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Insert a new named destination in the existing named destinations. - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Page 2") - 'Set the destination page and location. - namedDestination.Destination = New PdfDestination(loadedDocument.Pages(0)) - namedDestination.Destination.Location = New PointF(0, 300) - Insert the named destination - loadedDocument.NamedDestinationCollection.Insert(1, namedDestination) - 'Save and close the PDF document. - loadedDocument.Save("NamedDestination.pdf") - loadedDocument.Close(True) - - - - - - Initializes instance. - - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Gets number of the elements in the collection. - - The total number of elements in the collection. - - - - Gets the at the specified index. - - the - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - - - - Gets the element. - - - - - - Implements a colored tiling brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Provides objects used to fill the interiors of graphical shapes such as rectangles, ellipses, pies, polygons, and paths. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing brush. - PdfBrush brush1 = brush.Clone(); - (brush1 as PdfSolidBrush).Color = Color.Green; - //Draw circle. - graphics.DrawEllipse(brush1, new RectangleF(300, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing brush. - Dim brush1 As PdfBrush = brush.Clone() - TryCast(brush1, PdfSolidBrush).Color = Color.Green - 'Draw circle. - graphics.DrawEllipse(brush1, New RectangleF(300, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store rectanble box. - - - - - Local variable to store graphics. - - - - - Local variable to store brush Stream. - - - - - Local variable to store resources . - - - - - Local variable to store Stroking. - - - - - Local variable to store the page. - - - - - Local variable to store the tile start location. - - - - - Local variable to store the Matrix. - - - - - Initializes a new instance of the class. - - The boundaries of the smallest brush cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The boundaries of the smallest brush cell. - The Current Page Object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale; - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11), page); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11), page) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The size of the smallest brush cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new SizeF(11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New SizeF(11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The size of the smallest brush cell. - The Current Page Object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale; - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new SizeF(11, 11), page); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Set document color space - doc.ColorSpace = PdfColorSpace.GrayScale - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New SizeF(11, 11), page) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - Sets the obligatory fields. - - - - - Sets the BBox coordinates. - - The box. - - - - Gets the resources. - - PDF resource dictionary. - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing tile brush. - PdfTilingBrush cBrush = brush.Clone() as PdfTilingBrush; - //Draw rectangle. - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing tile brush. - Dim cBrush As PdfTilingBrush = TryCast(brush.Clone(), PdfTilingBrush) - 'Draw rectangle. - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - currentColorSpace parameter doesn't have any impact on the output result. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Location representing the start position of the tiles. - - - - - Transformation matrix to store the brush matrix. - - - - - Gets the boundary box of the smallest brush cell. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Get the smallest cell bounds. - RectangleF smallestCellBounds = brush.Rectangle; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Get the smallest cell bounds. - Dim smallestCellBounds As RectangleF = brush.Rectangle - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the smallest brush cell. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Get the smallest cell size. - SizeF smallestCellSize = brush.Size; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Get the smallest cell size. - Dim smallestCellSize As SizeF = brush.Size - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets Graphics context of the brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF tile brush. - PdfTilingBrush brush = new PdfTilingBrush(new RectangleF(0, 0, 11, 11)); - //Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 10, 10)); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF tile brush. - Dim brush As New PdfTilingBrush(New RectangleF(0, 0, 11, 11)) - 'Draw rect inside the tile. - brush.Graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 10, 10)) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the resources dictionary. - - - - - Gets or sets a value indicating whether this - is used for stroking operations. - - true if, the brush is for stroking operations; otherwise, false. - This property allows to use tiling brush like a pen to draw lines. - - - - Gets the element. - - - - - Draws the cross brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the backward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the forward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the vertical pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the downward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws Weave style. - - Pdf Graphics on which style draws. - Pdf pen which draws style. - The size of the brush. - - - - Draws the upward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the brick tails for the brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws a checker board dash pattern. - - The graphics. - The pen. - Size of the brush. - Size of the cell. - - - - Class which represents the html internal link used during the html to Pdf conversion to preserve internal links. - This class is used internally and should not be used directly. - - - - - Maximum header level - - - - - Internal variable to store the page bottom margin - - - - - Draw hierarchical bookmarks - - - - - Gets or sets the URI - - - - - Gets or sets the URI page number - - - - /// - Gets or sets the URI bounds. - - - - - Gets or sets the header tag level from H1 to H6 - - - - - Gets or sets the id of destination - - - - - Gets or sets the header content - - - - - Gets or sets the destination page number - - - - - Gets or sets the destination page - - - - - Gets or sets the destination x and y position - - - - - Gets or sets the TOC x-coordinates with header hierarchy - - - - - Gets or sets the TOC rectangle height - - - - - Gets or sets the TOC page count - - - - - Class which provides method and properties to apply styles in automatic creation of a table of contents items for the H1 to H6 HTML elements - - To know more about HTML to PDF TOC refer this link. - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Rectangle begin position - - - - - TOC title begin position - - - - - Rectangle left padding - - - - - Rectangle right padding - - - - - Space between two rectangle - - - - - Maximum header level - - - - - Indicating whether it is next page - - - - - Indicating whether it is first page - - - - - Indicating whether the tab leader char empty - - - - - Internal variable to store the page layout result - - - - - Internal variable to store the pageLayout bottom value. - - - - - Internal variable to store the page template - - - - - Holds the list of header style - - - - - Initializes a new instance of the class. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Calculate number of pages required to draw table of content and each rectangle heights - - - - - Calculate rectangle height - - - - - Draw table of content - - - - - Draw rectangle inner text - - - - - Draw tab leader - - - - - Add page navigation - - - - - Sets the style of a table of contents item on a given level. The item level is a number from 1 to 6 - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set header1 style. - toc.SetItemStyle(1, style); - //Set header2 style. - toc.SetItemStyle(2, style); - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set header1 style. - toc.SetItemStyle(1, style) - 'Set header2 style. - toc.SetItemStyle(2, style) - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the TOC title - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the horizontal title text alignment:By default left - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the TOC style of the table of contents title. When this property is set with a value, the default style of the title is replaced with the style given by this property. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tab leader:By default Dot - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tab leader character to connect the chapter titles and section headings to their corresponding page numbers - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the maximum header level (H1 to H6) :By default 6 - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the header style - - - - - Gets or sets TOC page count - - - - - The type defines the tab leader list to connect the chapter titles and section headings to their corresponding page numbers - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set the maximum header level. - toc.MaximumHeaderLevel = 5; - //Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash; - //Set table leader character. - toc.TabLeaderChar = 'c'; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set the maximum header level. - toc.MaximumHeaderLevel = 5 - 'Set tab leader style. - toc.TabLeader = HtmlToPdfToc.TabLeaderStyle.Dash - 'Set table leader character. - toc.TabLeaderChar = "c" - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Don't apply tab leader - - - - - Connect the chapter titles and section headings to their corresponding page number with dotted line - - - - - Connect the chapter titles and section headings to their corresponding page number with dashed line - - - - - Connect the chapter titles and section headings to their corresponding page numbers with solid line - - - - - This class contains the necessary properties to apply style in the automatic creation of a table of contents in a PDF document. - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the back ground color - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the font - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the fore color - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the padding - - - - //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"/QtBinaries/"; - //Enable toc. - settings.EnableToc = true; - //Create a new instance for HTML to PDF toc. - HtmlToPdfToc toc = new HtmlToPdfToc(); - //Set title. - toc.Title = "HTML to PDF"; - //Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center; - //Create new HTML to PDF Toc Style. - HtmlToPdfTocStyle style = new HtmlToPdfTocStyle(); - //Set background color. - style.BackgroundColor = new PdfSolidBrush(Color.LightCyan); - //Set font. - style.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Set fore color. - style.ForeColor = new PdfSolidBrush(Color.Red); - //Set paddings. - style.Padding = new PdfPaddings(5, 5, 5, 5); - //Set toc style. - toc.TitleStyle = style; - //Set toc to webkit settings. - settings.Toc = toc; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "/QtBinaries/" - 'Enable toc. - settings.EnableToc = True - 'Create a new instance for HTML to PDF toc. - Dim toc As New HtmlToPdfToc() - 'Set title. - toc.Title = "HTML to PDF" - 'Set title alignment. - toc.TitleAlignment = PdfTextAlignment.Center - 'Create new HTML to PDF Toc Style. - Dim style As New HtmlToPdfTocStyle() - 'Set background color. - style.BackgroundColor = New PdfSolidBrush(Color.LightCyan) - 'Set font. - style.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Set fore color. - style.ForeColor = New PdfSolidBrush(Color.Red) - 'Set paddings. - style.Padding = New PdfPaddings(5, 5, 5, 5) - 'Set toc style. - toc.TitleStyle = style - 'Set toc to webkit settings. - settings.Toc = toc - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents compression options of the loaded document. - - - To know more about refer this link . - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Indicates whether remove metadata. - - - - - Indicates compress the image objects based on the image quality. - - - - - Represents the image quality. - - - - - Indicates optimize the page content streams. - - - - - Indicates optimize the font data. - - - - - Gets or sets whether remove metadata informations. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether compress images based on the image quality. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets the image quality. - - Default value is 50. - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether to optimize page contents. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Gets or sets whether to optimize font data. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Initialize new instance of PdfCompressionOptions class. - PdfCompressionOptions options = new PdfCompressionOptions(); - //set the compress images based on the image quality. - options.CompressImages = true; - //set the image quality. - options.ImageQuality = 50; - //set the optimize font. - options.OptimizeFont = true; - //set the optimize page contents. - options.OptimizePageContents = true; - //set the remove metadata informations. - options.RemoveMetadata = true; - ldoc.CompressionOptions = options; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Initialize new instance of PdfCompressionOptions class. - Dim options As PdfCompressionOptions = New PdfCompressionOptions() - 'set the compress images based on the image quality. - options.CompressImages = True - 'set the image quality. - options.ImageQuality = 50 - 'set the optimize font. - options.OptimizeFont = True - 'set the optimize page contents. - options.OptimizePageContents = True - 'set the remove metadata informations. - options.RemoveMetadata = True - ldoc.CompressionOptions = options - 'Save and Close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - - - - Represernts the PDF optimizer. - - - - - Indicates the optimization options. - - - - - Indicates the font references. - - - - - Indicates the image references. - - - - - Indicates the TTF font common table list - - - - - Initialize the new instance of the class with input file name. - - Input file name. - - - - Optimize the PDF document - - - - - Close the optimizer - - - - - Optimze the annotations content streams. - - - - - - optimize the Apperance dictionary. - - - - - - Optimize the page resources (font, image, xobject contents). - - - - - - Optimize the page content. - - - - - - Optimize the content stream. - - - - - - Trim the operand if contains .00 - - - - - - - Remove the meta data entry - - - - - - Optimize all the PDF resources - - - - - - - Optimize the font data - - - - - - - optimize the image - - - - - - - Replace the existing image - - - - - - - - - - Get the image interpolation. - - - - - - - Optimize the PDF true type font - - - - - - - optimize the type 0 font - - - - - - - - Get the local table last index - - - - - - - Optimize type0 font - - - - - - - Update the existing font data - - - - - - - Set the font tables. - - - - - - - - - - Update the embedded subset font Name based on the PDF specification. - - - - - - - Get the object from parent dictionary - - - - - - - - Get the object from IPdfPrimitive - - - - - - - Calulates the check sum value. - - - - - - - Get the font table entry. - - - - - - - - calculate the local and hmtx table length. - - - - - - - - - Represents the loaded Circle annotation class. - - - - - Represents the PdfLoadedStyledAnnotation class - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - // Set the file link annotation border. - fileLinkAnnotation.Border=new PdfAnnotationBorder(4, 0, 0); - //Set the file link annotation color. - fileLinkAnnotation.Color=new PdfColor(Color.Blue); - //Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation"; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default - 'Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt" - ' Set the file link annotation border. - fileLinkAnnotation.Border=New PdfAnnotationBorder(4, 0, 0) - 'Set the file link annotation color. - fileLinkAnnotation.Color=New PdfColor(Color.Blue) - 'Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - The class provides methods and properties to handle the loaded annotations from the existing PDF document. - - Please refer UG documentation link for from this link - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Get the page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the Form field identifier - - - - - Cross Table. - - - - - Indicates was field changed or not. - - - - - Represents index used to default annotation. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the name of the annotation - - New name of the annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the annotation text. - soundAnnotation.SetText("Sound Annotation"); - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the annotation text. - soundAnnotation.SetText("Sound Annotation") - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Searches the in parents. - - The dictionary. - The cross table. - The value. - Searched primitive. - - - - Gets the value. - - The dictionary. - The cross table. - The value. - if it is inheritable, set to true. - The founded value. - - - - Gets the widget annotation. - - The dictionary. - The cross table. - The widget annotation dictionary. - - - - Aplies field name - - specified field name - - - - Begins the save. - - - - - Exports the form fields. - - Stream. - Object identifier. - - - - Raises when user manualy chages the name of the field. - - - - - Gets or sets the changed. - - - - - Gets or sets the cross table. - - - - - Gets and sets the where the annotation is present. - - The of the existing PDF document - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Get the page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - NameChanged event handler. - - New name of the field. - - - - Gets the text. - - The text. - - - - Gets the Author. - - The Author. - - - - Gets the Subject. - - The Subject. - - - - Gets the ModifiedDate. - - The ModifiedDate. - - - - Gets the creation date. - - The creation date. - - - - Gets the bounds. - - The dictionary. - The cross table. - The bounds. - - - - Gets the border. - - The border. - - - - Gets the color. - - The color. - - - - Gets the Opacity. - - The Opacity. - - - - Gets the number value. - - Name of the key. - The value of the number specified by the string key. - - - - Get the inner line color - - - - - Gets the annotation flags. - - The annotation flags. - - - - Draw CloudStye to the Shapes - - - - - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Flatten the popup window - - - - - Parse the XML string to get the required styles - - - - - - Convert the HTML string to Color - - - - - - - Get the popup bounds - - returns the popup window bounds - - - - Remove both the annotation and popup window - - current page. - annotation to be removed. - - - - Gets or sets the color. - - The color. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Set the file link annotation color. - fileLinkAnnotation.Color=new PdfColor(Color.Blue); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Set the file link annotation color. - fileLinkAnnotation.Color=New PdfColor(Color.Blue) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the Opacity of the annotation, Default value is 1.0f - - - - - Gets or sets the inner color of the annotation, Default color is transparent - - - - - Gets or sets the text. - - The text. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation"; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link annotation text. - fileLinkAnnotation.Text = "File Link Annotation" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or Sets the Author of the annotation. - - - - - Gets or Sets the Subject of the annotation. - - - - - Gets or Sets the ModifiedDate of the annotation. - - - - - Gets the creation date of the annotation. - - - - - Gets or sets the name of the annotation. - - - - - Gets or sets the annotation's bounds. If this property is not set, bounds are calculated automatically - based on Location property and content of annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - 'Sets the file link annotation bounds. - fileLinkAnnotation.Bounds = new RectangleF(100,100,50,50); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link annotation bounds. - fileLinkAnnotation.Bounds = New RectangleF(100,100,50,50) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the annotation's border. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - // Set the file link annotation border. - fileLinkAnnotation.Border=new PdfAnnotationBorder(4, 0, 0); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - ' Set the file link annotation border. - fileLinkAnnotation.Border=New PdfAnnotationBorder(4, 0, 0) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the location. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the file link Annotation location. - fileLinkAnnotation.Location new PointF(100,100); - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file link Annotation location - fileLinkAnnotation.Location =New PointF(100,100) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the size. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the size - attchmentAnnotation.Size=new SizeF(100,50) - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the size - attchmentAnnotation.Size=New SizeF(100,50) - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the annotation flags. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the annotation flags - attchmentAnnotation.AnnotationFlags=PdfAnnotationFlags.Default - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Get or set the border style of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Get or set the line border of the annotation. - - - - - Represents the Polygon annotation - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - Gets the polygon points of the annotation. - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line style of the annotation. - - choice - The line style. - - - - Gets line style of the annotation. - - Type of line style - The line style. - - - - Gets line style of the annotation. - - The line style. - - - - Gets line points of the annotation. - - line points. - - - - Gets back color of the annotation. - - The back color. - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Gets the line border of the annotation. - - - - - Gets or sets the begin line style of the annotation. - - - - - Gets or sets the end line style of the annotation. - - - - - - Cross Table - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets line border of the annotation. - - The line border. - - - - Gets border style of the annotation. - - border style - The border style. - - - - Saves an annotation. - - - - - Gets the line border of the annotation. - - - - - Represents the ink annotation class. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //set the points - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Create a new ink annotation - RectangleF rectangle = new RectangleF(0, 0, 300, 400); - //Create a inkAnnotation and set the properties - PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(rectangle, linePoints); - inkAnnotation.Color = new PdfColor(Color.Red); - inkAnnotation.BorderWidth = 4; - inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled; - //Add annotation to the page - page.Annotations.Add(inkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'set the points - Dim linePoints As New List(Of Single) (New Single() {40, 300, 60, 100, 40, 50, 40, 300}) - 'Create a new ink annotation - Dim rectangle As New RectangleF(0, 0, 300, 400) - 'Create a inkAnnotation and set the properties - Dim inkAnnotation As New PdfInkAnnotation(rectangle, linePoints) - inkAnnotation.Color = New PdfColor(Color.Red) - inkAnnotation.BorderWidth = 4 - inkAnnotation.BorderStyle = PdfLineBorderStyle.Beveled - 'Add annotation to the page - page.Annotations.Add(inkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Indicate the path of the ink annotation - - - - - Indicate path collection of the ink annotation - - - - - Internal variable to store Border Dash. - - - - - border width - - - - - Indicate the border Dictionary - - - - - Indicat the border style - - - - - - Initializes a new instance of the class. - - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Calculates control points for all the path points input given by Beizer spline curve control points calculation. - - - - - Calculates single control point for the vector input given. - - - - - - Gets or sets multiple list of the InkList value. - - The value specifies multiple list of lines to be drawn. - - - - - - - Represents the PDF text annotation. - - This class is used to add the text directly on the page. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the PdfFreeTextAnnotation class. - - - - - Initializes a new instance of the PdfFreeTextAnnotation class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Initializes Annotation object. - - - - - Saves an Text Markup Annotation . - - - - - Gets or sets the line ending style of the text annotation. - - The object selects the different line ending styles of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the intent of the text annotation - - The object sets the annotation intent. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the markup text of the text annotation - - The string value which contains the markup text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the font of the text annotation - ` - The object which defines the annotation text font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Gets or sets the points array to be called out the lines. - - The array of points to call out lines. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation textAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - textAnnotation.MarkupText = "Text Annotation"; - textAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond; - //Sets the points array to be called out the lines - textAnnotation.CalloutLines = new PointF[] { new PointF(0, 0), new PointF(1, 1) }; - //Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red; - //Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple; - //Add this annotation to a new page. - page.Annotations.Add(textAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim textAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - textAnnotation.MarkupText = "Text Annotation" - textAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - textAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Set the line ending style. - textAnnotation.LineEndingStyle = PdfLineEndingStyle.Diamond - 'Sets the points array to be called out the lines - textAnnotation.CalloutLines = New PointF() {New PointF(0, 0), New PointF(1, 1)} - 'Sets the markup color of the text annotation. - textAnnotation.TextMarkupColor = Color.Red - 'Sets the border color of the text annotation. - textAnnotation.BorderColor = Color.Purple - 'Add this annotation to a new page. - page.Annotations.Add(textAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - - - Represents a line annotation. - - This class is used to represents line annotation in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create PDF line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Create PDF line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Indicates PdfLine Begin style - - - - - Indicates PdfLine End style - - - - - To Specify the Line Border - - - - - An array of four numbers specifying the starting and ending coordinates - - - - - An array of two names specifying the line ending styles - - - - - To specifying the Inner Line color color with which to fill the annotation’s line endings - - - - - To specifying the Background Color - - - - - To specifying the Leader Line Extension size - - - - - To specifying the Leader Line size - - - - - To specifying the caption in the appearance of the line, - - - - - To specifying the intent of the line annotation - - - - - To specifying Caption Type - - - - - To Specifying the LinePoints of the line annotation - - - - - Initializes new instance of class with specified points. - - The line points is to be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation and set properties. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points); - lineAnnotation.Text = "Line Annotation"; - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation and set properties. - Dim lineAnnotation As New PdfLineAnnotation(points) - lineAnnotation.Text = "Line Annotation" - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes new instance of class with set of points and annotation text. - - The line points to be drawn. - The line caption text of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new pag . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new pag . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation and set properties. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(new RectangleF(80, 420, 150, 420)); - lineAnnotation.Text = "Line Annotation"; - lineAnnotation.LinePoints = points; - //Create pdf line border - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Assign the leader line - lineAnnotation.LeaderLineExt = 0; - lineAnnotation.LeaderLine = 0; - //Assign the Line caption type - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation and set properties. - Dim lineAnnotation As New PdfLineAnnotation(New RectangleF(80, 420, 150, 420)) - lineAnnotation.Text = "Line Annotation" - lineAnnotation.LinePoints = points - 'Create pdf line border - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Default - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Assign the leader line - lineAnnotation.LeaderLineExt = 0 - lineAnnotation.LeaderLine = 0 - 'Assign the Line caption type - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes annotation object. - - - - - Gets line points of the annotation. - - line points. - - - - Saves an annotation. - - - - - Gets or sets whether the line annotation caption should be displayed. - - true if the line caption should be displayed, otherwise false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line caption. - lineAnnotation.LineCaption = true; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line caption. - lineAnnotation.LineCaption = True - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the leader line - - The value specifies the leader line of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the leader line. - lineAnnotation.LeaderLine = 10; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the leader line. - lineAnnotation.LeaderLine = 10 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LeaderLineExtension. - - The value specifies the leader line extension of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the leader line extension. - lineAnnotation.LeaderLineExt = 10; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the leader line extension. - lineAnnotation.LeaderLineExt = 10 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the border style of the LineAnnotation. - - A enumeration member specifying the border style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line border. - Dim lineBorder As LineBorder = New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the style used for the beginning of the line. - - A enumeration member specifying the begin style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the begin line style. - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the begin line style. - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Butt - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the style used for the end of the line. - - A enumeration member specifying the end style for the line. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line ending style. - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line ending style. - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Diamond - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the line caption text type of annotation. - - A enumeration specifying the line caption type. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LineIntent of the annotation. - - A specifies the Line Intent Style is to be used in the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line intent. - lineAnnotation.LineIntent = PdfLineIntent.LineDimension; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line intent. - lineAnnotation.LineIntent = PdfLineIntent.LineDimension - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets an InnerColor of the PdfLineAnnotation. - - The which draws the outline of the inner color of the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the inner line color. - lineAnnotation.InnerLineColor = new PdfColor(Color.Green); - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the inner line color. - lineAnnotation.InnerLineColor = New PdfColor(Color.Green) - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the BackgroundColor of the PdfLineAnnotation. - - The which draws the border of the line annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Sets the line back color. - lineAnnotation.BackColor = new PdfColor(Color.Green); - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Sets the line back color. - lineAnnotation.BackColor = New PdfColor(Color.Green) - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the LinePoints of the PdfLineAnnotation. - - The value specifies array of the line points to be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(new RectangleF(100, 100, 100, 20)); - //Sets the LinePoints. - lineAnnotation.LinePoints = points; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(New RectangleF(100, 100, 100, 20)) - 'Sets the LinePoints. - lineAnnotation.LinePoints = points - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Represents the border style of the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = {80, 420, 150, 420} - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store border width. - - - - - Internal variable to store Border Dash. - - - - - Internal variable to store border style; - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Converts border style to string. - - The style. - - - - - Gets or sets the width of the line border. - - The width of the line border. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - lineAnnotation.lineBorder.BorderWidth = 4; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = {80, 420, 150, 420} - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - lineAnnotation.lineBorder.BorderWidth = 4 - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the border style. - - The Specifies the available styles for a field border - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets the line dash of the annotation - - The dash array of the line border. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points. - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - //Create pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.BorderWidth = 1; - lineBorder.DashArray = 1; - lineAnnotation.lineBorder = lineBorder; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points. - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annotation") - 'Create pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.BorderWidth = 1 - lineBorder.DashArray = 1 - lineAnnotation.lineBorder = lineBorder - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - - Gets the element. - - - - - - Represents the 3D annotation for a PDF document. - - This class is used to represents the 3D annotation for a PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create pdfFont, pdfFont style and brush. - Font font = new Font("Calibri", 11, FontStyle.Regular); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - PdfBrush brush = new PdfSolidBrush(Color.DarkBlue); - //Create 3D activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.PageVisible; - activation.ShowToolbar = true; - pdf3dAnnotation.Activation = activation; - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Set the 3D background. - Pdf3DBackground background=new Pdf3DBackground(); - background.Color=new PdfColor(Color.Blue); - defaultView.Background = background; - //Set the projection. - Pdf3DProjection projection = new Pdf3DProjection(Pdf3DProjectionType.Orthographic); - defaultView.Projection = projection; - //Set the render mode. - Pdf3DRendermode renderMode = new Pdf3DRendermode(Pdf3DRenderStyle.Solid); - defaultView.RenderMode = renderMode; - //Set the lighting scheme. - Pdf3DLighting lighting = new Pdf3DLighting(Pdf3DLightingStyle.Night); - defaultView.LightingScheme = lighting; - //Add the view. - pdf3dAnnotation.Views.Add(defaultView); - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, new PointF(40, 40)); - //Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, new PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)); - //Adds annotation to page. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create pdfFont, pdfFont style and brush. - Dim font As New Font("Calibri", 11, FontStyle.Regular) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - Dim brush As PdfBrush = New PdfSolidBrush(Color.DarkBlue) - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.PageVisible - activation.ShowToolbar = True - pdf3dAnnotation.Activation = activation - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Set the 3D background. - Dim background As New Pdf3DBackground() - background.Color = New PdfColor(Color.Blue) - defaultView.Background = background - 'Set the projection. - Dim projection As New Pdf3DProjection(Pdf3DProjectionType.Orthographic) - defaultView.Projection = projection - 'Set the render mode. - Dim renderMode As New Pdf3DRendermode(Pdf3DRenderStyle.Solid) - defaultView.RenderMode = renderMode - 'Set the lighting scheme. - Dim lighting As New Pdf3DLighting(Pdf3DLightingStyle.Night) - defaultView.LightingScheme = lighting - 'Add the view. - pdf3dAnnotation.Views.Add(defaultView) - pdf3dAnnotation.Appearance.Normal.Graphics.DrawString("Click to activate", pdfFont, brush, New PointF(40, 40)) - 'Add this annotation to a new page. - pdf3dAnnotation.Appearance.Normal.Draw(page, New PointF(pdf3dAnnotation.Location.X, pdf3dAnnotation.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - Represents a base class for file attachment annotation. - - Class - Class - Class - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with specified bounds. - - Bounds of the annotation. - - - - Saves an annotation. - - - - - Gets or sets file name of the annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Get file name of the annotation. - string fileName = annotation.FileName; - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Get file name of the annotation. - Dim fileName As String = annotation.FileName - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the appearance of the annotation. - - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a font - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Create a brush - PdfBrush brush = PdfBrushes.Blue; - //Create a new pdf3d annotation. - Pdf3DAnnotation annotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Create a new pdf appearance - annot.Appearance = new PdfAppearance(annotation); - annot.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, new PointF(40, 40)); - //Add this annotation to a new page - annot.Appearance.Normal.Draw(page, new PointF(annot.Location.X, annot.Location.Y)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Create a brush - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a new pdf3d annotation. - Dim annotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Create a new PDF appearance. - annot.Appearance = New PdfAppearance(annotation) - annot.Appearance.Normal.Graphics.DrawString("Click to activate", font, brush, New PointF(40, 40)) - 'Add this annotation to a new page - annot.Appearance.Normal.Draw(page, New PointF(annot.Location.X, annot.Location.Y)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store U3D. - - - - - Internal variable to store apperance. - - - - - Initializes a new instance of the class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150)); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150)) - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - The bounds of the annotation. - The name of the sound file. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150),"Input.u3d"); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Adds the annotation on a page. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - - Initializes instance. - - - - - Saves instance. - - - - - Gets the list of available views for the current 3D artwork. Read-Only. - - The specifies the collection of PDF 3D views. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - Pdf3DView defaultView = new Pdf3DView(); - defaultView.ExternalName = "Near View"; - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - //Add views. - pdf3dAnnotation.Views.Add(defaultView); - //Get the views. - Pdf3DViewCollection viewCollection = pdf3dAnnotation.Views; - //Add the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - Dim defaultView As New Pdf3DView() - defaultView.ExternalName = "Near View" - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - 'Add views. - pdf3dAnnotation.Views.Add(defaultView) - 'Get the views. - Dim viewCollection As Pdf3DViewCollection = pdf3dAnnotation.Views - 'Add the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the default view. - - The default view of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - pdf3dAnnotation.DefaultView = 0; - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - pdf3dAnnotation.DefaultView = 0 - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - - - - Gets or sets the code to execute when the 3D artwork is instantiated. - JavaScript code to be executed when the 3D artwork is instantiated. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - pdf3dAnnotation.OnInstantiate = "host.getURL(\"http://www.syncfusion.com\")"; - //Create a pdf 3d view. - Pdf3DView defaultView = new Pdf3DView(); - defaultView.CameraToWorldMatrix = new float[] { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f }; - defaultView.CenterOfOrbit = 131.695f; - pdf3dAnnotation.Views.Add(defaultView); - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - pdf3dAnnotation.OnInstantiate = "host.getURL(\"http://www.syncfusion.com\")" - 'Create a pdf 3d view. - Dim defaultView As New Pdf3DView() - defaultView.CameraToWorldMatrix = New Single() { -0.382684f, 0.92388f, -0.0000000766026f, 0.18024f, 0.0746579f, 0.980785f, 0.906127f, 0.37533f, -0.19509f, -100, -112.432f, 45.6829f } - defaultView.CenterOfOrbit = 131.695f - pdf3dAnnotation.Views.Add(defaultView) - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True). - - - Class - Class - - - - Gets or sets the activation options for the annotation. - - specifies activation states for the annotation. - - Defines the times at which the annotation should be activated and deactivated and the state of the 3D artwork instance at those times. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Creates a new pdf3d activation. - Pdf3DActivation activation = new Pdf3DActivation(); - activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation; - activation.ShowToolbar = false; - pdf3dAnnotation.Activation = activation; - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Creatas a new pdf3d actviation. - Dim activation As New Pdf3DActivation() - activation.ActivationMode = Pdf3DActivationMode.ExplicitActivation - activation.ShowToolbar = False - pdf3dAnnotation.Activation = activation - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class - Class - - - Filename with Full path - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf3d annotation. - Pdf3DAnnotation pdf3dAnnotation = new Pdf3DAnnotation(new RectangleF(10, 50, 300, 150), @"Input.u3d"); - //Gets the filename. - string fileName = pdf3dAnnotation.FileName; - //Adds the annotation. - page.Annotations.Add(pdf3dAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf3d annotation. - Dim pdf3dAnnotation As New Pdf3DAnnotation(New RectangleF(10, 50, 300, 150), "Input.u3d") - 'Gets the filename. - Dim fileName As String = pdf3dAnnotation.FileName - 'Adds the annotation. - page.Annotations.Add(pdf3dAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True). - - - Class - - - - Represents the rubber stamp annotation for a PDF document. - - This class is used to displays text or graphics stamped on the page. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rectangle = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation"); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rectangle As New RectangleF(40, 60, 80, 20) - Dim rubberstampAnnotation As New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberstampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - internal variable for the rubberstamp annotation icon - - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberstampAnnotation As New PdfRubberStampAnnotation() - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberstampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds. - RectangleF structure that specifies the bounds of the annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rubberStampAnnotationBounds = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberstampAnnotation = new PdfRubberStampAnnotation(rubberStampAnnotationBounds); - rubberstampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberstampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberstampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberStampAnnotationBounds As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rubberStampAnnotationBounds) - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds and text. - - The rectangleF structure that specifies the bounds of the annotation. - The text of the rubber stamp annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rubberStampAnnotationBounds = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberStampAnnotation = new PdfRubberStampAnnotation(rubberStampAnnotationBounds, " Text Rubber Stamp Annotation"); - //Sets the PDF appearance. - rubberStampAnnotation.Appearance = new PdfAppearance(rubberstampAnnotation); - rubberStampAnnotation.Appearance.Normal.Draw(page, new PointF(rubberStampAnnotation.Location.X, rubberStampAnnotation.Location.Y)); - page.Annotations.Add(rubberStampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rubberStampAnnotationBounds As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rubberStampAnnotationBounds, " Text Rubber Stamp Annotation") - 'Sets the PDF appearance. - rubberStampAnnotation.Appearance = New PdfAppearance(rubberstampAnnotation) - rubberStampAnnotation.Appearance.Normal.Draw(page, New PointF(rubberStampAnnotation.Location.X, rubberStampAnnotation.Location.Y)) - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Gets or sets the annotation's icon. - - A enumeration member specifying the icon for the annotation when it is displayed in closed state. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new pdf rubber stamp annotation. - RectangleF rectangle = new RectangleF(40, 60, 80, 20); - PdfRubberStampAnnotation rubberStampAnnotation = new PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation"); - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft; - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation"; - page.Annotations.Add(rubberStampAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new pdf rubber stamp annotation. - Dim rectangle As New RectangleF(40, 60, 80, 20) - Dim rubberStampAnnotation As New PdfRubberStampAnnotation(rectangle, " Text Rubber Stamp Annotation") - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Draft - rubberStampAnnotation.Text = "Text Properties Rubber Stamp Annotation" - page.Annotations.Add(rubberStampAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - - Represents the widget annotation. - - - - - Internal variable to store parent field. - - - - - Internal variable to store extended appearance. - - - - - Internal variable to store border parameters. - - - - - Internal variable to store appearance of the widget. - - - - - Internal variable to store highlighting mode. - - - - - Internal variable to store default appearance. - - - - - Internal variable to store alignment. - - - - - Internal variable to store annotation's actions. - - - - - Annotation's appearance. - - - - - Internal variable to store default appearance state value. - - - - - Initializes annotation object. - - - - - Raises the event. - - The instance containing the event data. - - - - Saves an annotation. - - - - - Highlightings the mode to string. - - The m_highlighting mode. - String representation of the highlighting mode in Pdf suiatable format. - - - - Gets the appearance. - - - - - - Gets or sets the parent. - - The parent. - - - - Gets or sets the extended appearance. - - The extended appearance. - - - - Gets the default appearance. - - The default appearance. - - - - Gets or sets annotation's border. - - The widget border. - - - - Gets the widget appearance. - - The widget appearance. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets or sets the text alignment. - - The text alignment. - - - - Gets the actions of the annotation. - - The actions. - - - - Gets or sets appearance of the annotation. - - - - - Gets or sets default appearance name. - - The state of the appearance. - - - - Raise before object saves. - - - - - Represents collection of widget annotations. - - - - - Internal variable to store array of anootation's primitives. - - - - - Initializes a new instance of the class. - - - - - Adds the specified annotation. - - The annotation. - - - - - Inserts the specified index. - - The index. - The annotation. - - - - Removes the specified annotation. - - The annotation. - - - - Removes the annotation at the specified position. - - The index. - - - - Gets the index of the specified annotation. - - The annotation. - - - - - Determines whether the annotation is present in collection. - - The annotation. - - true if collection contains the specified annotation; otherwise, false. - - - - - Clears the collection. - - - - - Adds the annotation. - - The annotation. - - - - - Insters.the annotation at the specified position. - - The index. - The annotation. - - - - Removes the annotation. - - The annotation. - - - - Removes the annotation at the specified position. - - The index. - - - - Clears the collection. - - - - - Gets the at the specified index. - - Annotation at the specified position. - - - - Gets the element. - - - - - - Represents appearance of the widget annotation. - - - - - Internal variable to store border's color. - - - - - Internal variable to store color of the background. - - - - - Internal variable to store normal cation text. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the normal caption. - - The normal caption. - - - - Gets the element. - - - - - - Represents the border style of the widget annotation. - - - - - Internal variable to store border width. - - - - - Internal variable to store border style; - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Converts border style to string. - - The style. - - - - - Gets or sets the width. - - The width. - - - - Gets or sets the style. - - The style. - - - - Gets the element. - - - - - - Represents the class for text web link annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text web link annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yahoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the text area with the ability to span several pages and inherited from the class - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the base class for all elements that can be layout on the pages. - - [System.Security.Permissions.PermissionSet(System.Security.Permissions.SecurityAction.Assert, Name = "FullTrust")] - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - - Initializes a new instance of the class. - - - - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Draws the element on the page with the specified page and structure - - Current page where the element should be drawn. - Start location on the page. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page and pair of coordinates - - Current page where the element should be drawn. - X co-ordinate of the element on the page. - Y co-ordinate of the element on the page. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, 10, 10); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, 10, 10) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page and structure - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 1000); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, new RectangleF(10, 10, 300, 500)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 1000) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, New RectangleF(10, 10, 300, 500)) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page. - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutResult that represents the layout result of the drawn element. - - - - Draws the element on the page with the specified page, structure and layout format - - Current page where the element should be drawn. - Start location on the page. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page, pair of coordinates and layout format - - Current page where the element should be drawn. - X co-ordinate of the element on the page. - Y co-ordinate of the element on the page. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, 10, 20, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, 10, 20, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Draws the element on the page with the specified page, structure and layout format - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - PdfLayoutFormat that represents the layout settings - PdfLayoutResult that represents the layout result of the drawn element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Draws the element on the page. - - Current page where the element should be drawn. - RectangleF structure that specifies the bounds of the element. - Layout format. - Layout result. - - - - Draws the specified page. - - The page. - The top. - The format. - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Layouts the specified param. - - The param. - null - - - - Raises EndPageLayout event. - - Event arguments. - - - - Raises BeginPageLayout event. - - Event arguments. - - - - Raises after the element was printed on the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Raise end page layout event. - rect.EndPageLayout += Rect_EndPageLayout; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Raise the end page layout event - AddHandler rect.EndPageLayout, AddressOf Rect_EndPageLayout - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Raises before the element should be printed on the page. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Create new PDF layout format. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set layout. - format.Layout = PdfLayoutType.Paginate; - //Set break type. - format.Break = PdfLayoutBreakType.FitPage; - //Create layout rectangle. - RectangleF layoutRect = new RectangleF(10, 10, 300, 500); - //Raise begin page layout event. - rect.BeginPageLayout += Rect_BeginPageLayout; - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, layoutRect, format); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Create new PDF layout format. - Dim format As New PdfLayoutFormat() - 'Set layout. - format.Layout = PdfLayoutType.Paginate - 'Set break type. - format.Break = PdfLayoutBreakType.FitPage - 'Create layout rectangle. - Dim layoutRect As New RectangleF(10, 10, 300, 500) - 'Raise the begin page layout event. - AddHandler rect.BeginPageLayout, AddressOf Rect_BeginPageLayout - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, layoutRect, format) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets a value indicating whether EndPageLayout is not null. - - - - - Gets a value indicating whether BeginPageLayout is not null. - - - - - Gets a value indicating whether [embed fonts]. - - true if [embed fonts]; otherwise, false. - - - - Gets or sets the tag for the element - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 800); - //Set PDF tag element. - rect.PdfTag = new PdfStructureElement(PdfTagType.Figure); - //Draw the rectangle to PDF page. - PdfLayoutResult result = rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 800) - 'Draw the rectangle to PDF page. - Dim result As PdfLayoutResult = rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Text data. - - - - - Text data. - - - - - Pen for text drawing. - - - - - Brush for text drawing. - - - - - Font for text drawing. - - - - - Text format. - - - - - indicate whether the PdfGridCell value is PdfTextElement - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text to draw into the PDF. - - The text to draw into the PDF. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!"); - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!") - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the text and . - - The text to draw into the PDF. - The that defines the text format. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color, width, and style of the text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color and texture of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with text,,, and . - - The text to draw into the PDF. - The that defines the text format. - The that determines the color, width, and style of the text - The that determines the color and texture of the drawn text. - The that determines string format. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set alignments. - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Red, PdfBrushes.Black, format); - //Draw the text element. - element.Draw(page, new RectangleF(0, 0, 200, 20)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set alignments. - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Red, PdfBrushes.Black, format) - 'Draw the text element. - element.Draw(page, New RectangleF(0, 0, 200, 20)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the text on the page in the specified location with . - It returns the which contains last page and bounds where the text element drawn. - - Current page where the text should be drawn. - PointF structure that specifies the start location on the page. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New PointF(0, 0), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Draws the text on the page in the specified location,width and . - It returns the which contains last page and bounds where the text element drawn - - Current page where the text should be drawn. - PointF structure that specifies the start location on the page. - Width of the text bounds. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new PointF(0, 0), 200, format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New PointF(0, 0), 200, format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Draws the text on the page with specified layout rectangle and . - It returns the which contains last page and bounds where the text element drawn. - - Current page where the text should be drawn. - RectangleF structure that specifies the bounds of the text. - The that represents the layout settings - The that represents the layout result of the drawn text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfBrushes.Black); - //Create layout format - PdfLayoutFormat format=new PdfLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw the text with layout format - element.Draw(page, new RectangleF(0, 0, 200, 400), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfBrushes.Black) - 'Create layout format - Dim format As New PdfLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw the text with layout format - element.Draw(page, New RectangleF(0, 0, 200, 400), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a brush for drawing. - - Gets a brush for drawing. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Gets or sets a value indicating the text that should be printed. - - The to draw to the PDF - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating the text that should be printed. - - - - - Gets or sets a that determines the color, width, and style of the text - - The that determines the color, width, and style of the text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF pen. - element.Pen = PdfPens.Red; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF pen. - element.Pen = PdfPens.Red - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the that will be used to draw the text with color and texture. - - The that determines the color and texture of the drawn text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a that defines the text format. - - The that defines the text format - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF text element - PdfTextElement element = new PdfTextElement(); - //Set text. - element.Text = "Hello World!!!"; - //Set font. - element.Font = font; - //Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue; - //Draw the text element. - element.Draw(graphics); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF text element - Dim element As New PdfTextElement() - 'Set text. - element.Text = "Hello World!!!" - 'Set font. - element.Font = font - 'Set PDF brush. - element.Brush = PdfBrushes.RoyalBlue - 'Draw the text element. - element.Draw(graphics) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the that will be used to set the string format - - The used to set the string format - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Use the font installed in the machine - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14)); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set alignments. - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - //Create PDF text element - PdfTextElement element = new PdfTextElement("Hello World!!!", font, PdfPens.Red); - //Set PDF string format. - element.StringFormat = format; - //Draw the text element. - element.Draw(page, new RectangleF(0, 0, 200, 20)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Use the font installed in the machine - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14)) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set alignments. - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - 'Create PDF text element - Dim element As New PdfTextElement("Hello World!!!", font, PdfPens.Red) - 'Draw the text element. - element.Draw(page, New RectangleF(0, 0, 200, 20)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Internal variable to store Url. - - - - - Internal variable to store Uri Annotation object. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text web link annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yahoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Draws a Text Web Link on the Page - - The page where the annotation should be placed. - The location of the annotation. - Pdf Layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text weblink annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yagoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation); - //Save the document to disk. - document.Save("TextWebLink(.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As PdfTextWebLink = New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)) - 'Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation) - 'Save the document to disk. - document.Save("TextWebLink(.pdf") - - - Class - Class - Class - - - - Draw a Text Web Link on the Graphics - - The object specifies where annotation should be placed.. - The location of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text weblink annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yagoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page.Graphics, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation); - //Save the document to disk. - document.Save("TextWebLink(.pdf"); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As PdfTextWebLink = New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page.Graphics, new PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)) - 'Add this annotation to a new page. - page.Annotations.Add(webLinkAnnotation) - 'Save the document to disk. - document.Save("TextWebLink(.pdf") - - - Class - Class - Class - - - - Gets or sets the Uri address. - - The string value which contains the Uri address. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Set the font - float fontSize = 10f; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a text web link annotation - PdfTextWebLink webLinkAnnotation = new PdfTextWebLink(); - webLinkAnnotation.Url = "http://www.yahoo.com"; - webLinkAnnotation.Text = "Yahoo Mail"; - webLinkAnnotation.Brush = brush; - webLinkAnnotation.Font = font; - webLinkAnnotation.Pen = PdfPens.Brown; - webLinkAnnotation.DrawTextWebLink(page, new PointF(50, 40)); - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, new PointF(110, 40)); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Set the font - Dim fontSize As Single = 10f - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a text weblink annotation - Dim webLinkAnnotation As New PdfTextWebLink() - webLinkAnnotation.Url = "http://www.yahoo.com" - webLinkAnnotation.Text = "Yagoo Mail" - webLinkAnnotation.Brush = brush - webLinkAnnotation.Font = font - webLinkAnnotation.Pen = PdfPens.Brown - webLinkAnnotation.DrawTextWebLink(page, New PointF(50, 40)) - page.Graphics.DrawString("Go to Yahoo Web Site", font, brush, New PointF(110, 40)) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the text markup annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and PDF font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new pdf brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and pdf font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - To specifying the TextMarkupAnnotationType . - - - - - To specifying the QuadPoints . - - - - - To store the QuadPoints to the PdfArray - - - - - To specifying the Text Markup Color . - - - - - To specifying the Text Markup Annotation Title . - - - - - To specifying the Text Size . - - - - - To specifying the Text Location . - - - - - To specifying the Text Font. - - - - - To indicate collection of rectagle bounds of annotation - - - - - Initializes new instance of class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation(); - markupAnnotation.Text = "Text Markup annotation"; - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation() - markupAnnotation.Text = "Text Markup annotation" - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes new instance of class with specified title, markup text, annotation text and font. - - The markup annotation title. - The string specifies the text of the annotation. - The string specifies the markup text of the annotation. - The location of the markup text annotation. - The specifies the text appearance of the markup text annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation. - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create PDF font and font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PDF brush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation. - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes new instance of class with specified bounds. - - The bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - PdfFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a pdf text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation(rectangle); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdffont and pdffont style . - Dim pdfFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Create a new pdfbrush . - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation(rectangle) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes Annotation object. - - - - - Saves an Text Markup Annotation . - - - - - Flatten the TextMarkup annotation's - - - - - Gets or sets TextMarkupAnnotationType. - - The enumeration value which contains the different types of mark up annotation types. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create PDF font and font style . - Font font = new Font("Calibri", 10, FontStyle.Bold); - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Create a new PDF brush. - PdfBrush pdfBrush = new PdfSolidBrush(Color.Black); - //Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, new PointF(150, 10)); - string markupText = "Text Markup"; - SizeF size = pdfFont.MeasureString(markupText); - RectangleF rectangle = new RectangleF(175, 40, size.Width, size.Height); - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle); - //Create a PDF text markup annotation . - PdfTextMarkupAnnotation markupAnnotation = new PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, new PointF(175, 40), pdfFont); - markupAnnotation.TextMarkupColor = new PdfColor(Color.BlueViolet); - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Add this annotation to a new page. - page.Annotations.Add(markupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create pdf font and pdf font style . - Dim font As New Font("Calibri", 10, FontStyle.Bold) - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Create a new PdfBrush. - Dim pdfBrush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draw text in the new page. - page.Graphics.DrawString("Text Markup Annotation Demo", pdfFont, pdfBrush, New PointF(150, 10)) - Dim markupText As String = "Text Markup" - Dim size As SizeF = pdfFont.MeasureString(markupText) - Dim rectangle As New RectangleF(175, 40, size.Width, size.Height) - page.Graphics.DrawString(markupText, pdfFont, pdfBrush, rectangle) - 'Create a pdf text markup annotation . - Dim markupAnnotation As New PdfTextMarkupAnnotation("Markup annotation", "Markup annotation with highlight style", markupText, New PointF(175, 40), pdfFont) - markupAnnotation.TextMarkupColor = New PdfColor(Color.BlueViolet) - markupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Add this annotation to a new page. - page.Annotations.Add(markupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - - Gets or sets text markup bounds collection. - - - - - The Syncfusion.Pdf.ColorSpace namespace contains classes for enhanced printing support with various Color channels. - - - - - Represents a calibrated gray color, based on a CalGray colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Represents the extended color, based on a complex colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - To store the Colorspace. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - Gets the Colorspace - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Get the Color space. - PdfColorSpaces colorSpace = gray.ColorSpace; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Get the Color space - Dim colorSpace As PdfColorSpaces = gray.ColorSpace - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - - - - Local Variable to store the Gray value. - - - - - Initializes a new instance of the class. - - The color space. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create Gray ColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the gray level for this color. - - The gray level of this color. - The acceptable range for this value is [0.0 1.0]. - 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - To know more about color spaces refer this link . - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Gets the graphics object. - PdfGraphics g = page.Graphics; - // Created font object - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor red = new PdfCalGrayColor(calGrayCS); - red.Gray = 0.2; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - g.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - ' Created font object - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim red As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - red.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - g.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - Class - - - - Represents a CalGray colorspace. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Represents the base class for all colorspaces. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale; - PdfPen pen = new PdfPen(PdfBrushes.Red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, new RectangleF(0,0,100,200)); - doc.Save("ColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale - Dim pen As PdfPen = New PdfPen(PdfBrushes.Red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, New RectangleF(0,0,100,200)) - doc.Save("ColorSpace.pdf") - - - Class - Interface - - - - Interface of the objects that support caching of their internals. - - - - - Checks whether the object is similar to another object. - - The object to compare with the current object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Internal variable to store the resources. - - - - - Internal variable to store the internal object. - - - - - Internal variable to store the color Internals. - - - - - Internal variable to store the dictionary. - - - - - Internal variable to store the colorspace. - - - - - Checks whether the object is similar to another object. - - The object to compare witht ehcurrent object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Gets Pdf primitive representing the font. - - - - - Local variable to store the White point of this colorspace. - - - - - Local variable to store the Game value of this colorspace. - - - - - Local variable to store the black point of this colorspace. - - - - - Initializes a new instance of the class. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates GrayColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Initializes the PdfLab Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Gets or sets the black point. - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. Default value: [ 0.0 0.0 0.0 ]. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create CalGraycolor space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - calGrayCS.BlackPoint = new double[] { 0.2, 0.3, 0.8 }; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor red = new PdfCalGrayColor(calGrayCS); - red.Gray = 0.2; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create CalGraycolor space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - calGrayCS.BlackPoint = New Double() { 0.2, 0.3, 0.8 } - ' Create new instance for PdfCalGrayColor - Dim red As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - red.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the gamma. - - - The gamma value for the gray component. - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Creates gray color space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Update color values - calGrayCS.Gamma = 0.7; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Creates gray color space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - ' Update color values - calGrayCS.Gamma = 0.7 - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the white point. - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. The numbers XW and ZW must be positive, and YW must be equal to 1.0. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 100, 50); - // Create CalGraycolor space - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - PdfPen pen = new PdfPen(gray); - PdfBrush brush = new PdfSolidBrush(gray); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalGrayColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 100, 50) - ' Create CalGraycolor space - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - Dim pen As PdfPen = New PdfPen(gray) - Dim brush As PdfBrush = New PdfSolidBrush(gray) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalGrayColorSpace.pdf") - - - Class - Class - Class - - - - Represents a calibrated RGB color, based on a CalRGB colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the Red Color. - - - - - Local variable to store the Green Color. - - - - - Local variable to store the Blue Color. - - - - - Initializes a new instance of the class. - - The colorspace - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the Blue value. - - The blue level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Green = 1 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the green level for this color. - - The green level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Green = 1; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Green = 1 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the red level for this color. - - The red level of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the darkest color that can be achieved, and 1.0 means the lightest color. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - Class - - - - Representing a CalRGB colorspace. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Local variable to store the Whitepoint of this colorspace. - - - - - Local variable to store the BlackPoint of this colorspace. - - - - - Local variable to store the Gama of this colorspace. - - - - - Local variable to store the Matrix value of this colorspace. - - - - - Initializes a new instance of the class. - - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates RedColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates RedColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Initializes the PdfCalRGB ColorSpace - - - - - Creates PdfCalRGB ColorSpace Array - - PdfCalRGB's ColorSpace Array. - - - - Gets or sets the black point. - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.BlackPoint = new double[] { 0.5, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.BlackPoint = New Double() { 0.5, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the gamma. - - An array of three numbers [GR GG GB] specifying the gamma for the red, green, and blue components of the color space. - - - // Create a new PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 1.6, 1.1, 2.5 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - red.Green = 1; - red.Blue = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draw the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Gets the graphics object. - Dim g As PdfGraphics = page.Graphics - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 1.6, 1.1, 2.5 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - red.Green = 1 - red.Blue = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draw the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the colorspace transformation matrix. - - An array of nine numbers [XA YA ZA XB YB ZB XC YC ZC] specifying the linear interpretation of the decoded A, B, and C components of the color space with respect to the final XYZ representation. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Matrix = new double[] { 1, 0, 0, 0, 1, 0, 0, 0, 1 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Matrix = New Double() { 1, 0, 0, 0, 1, 0, 0, 0, 1 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the white point. - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - // Creates redColorSpace - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - PdfCalRGBColor red = new PdfCalRGBColor(calRgbCS); - red.Red = 0; - PdfPen pen = new PdfPen(red); - PdfBrush brush = new PdfSolidBrush(red); - // Draws the rectangle - page.Graphics.DrawRectangle(pen, rect); - doc.Save("CalRedColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - ' Creates redColorSpace - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - Dim red As PdfCalRGBColor = New PdfCalRGBColor(calRgbCS) - red.Red = 0 - Dim pen As PdfPen = New PdfPen(red) - Dim brush As PdfBrush = New PdfSolidBrush(red) - ' Draws the rectangle - page.Graphics.DrawRectangle(pen, rect) - doc.Save("CalRedColorSpace.pdf") - - - Class - Class - Class - - - - Represents a device colorspace. - - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[3]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(2){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Local variable to store the Device Colospace Type. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[3]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - ' Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(2){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Gets or sets the DeviceColorSpaceType - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[1]; - numArray[0] = 0.38f; - function.C1 = numArray; - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - // Creates device color space - PdfDeviceColorSpace deviceColorspace1 = new PdfDeviceColorSpace(PdfColorSpace.CMYK); - deviceColorspace1.DeviceColorSpaceType = PdfColorSpace.GrayScale; - // Set the device color space - colorspace.AlternateColorSpaces = deviceColorspace1; - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - PdfBrush brush = new PdfSolidBrush(color); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(brush, rect); - doc.Save("DeviceColorSpace.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(0){} - numArray(0) = 0.38f - [function].C1 = numArray - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - ' Creates device color space - Dim deviceColorspace1 As PdfDeviceColorSpace = New PdfDeviceColorSpace(PdfColorSpace.CMYK) - deviceColorspace1.DeviceColorSpaceType = PdfColorSpace.GrayScale - ' Set the device color space - colorspace.AlternateColorSpaces = deviceColorspace1 - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim brush As PdfBrush = New PdfSolidBrush(color) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(brush, rect) - doc.Save("DeviceColorSpace.pdf") - - - Class - Class - Class - - - - Represents an ICC color, based on an ICC colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Local variable to store the color components. - - - - - Local variable to store the Alternatic Colorspace of this Color. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Gets or sets the color components. - - An array of values that describe the color in the ICC colorspace. - The length of this array must match the value of ColorComponents property on the underlying ICC colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - Class - - - - Gets the Colorspace. - - - - - Class represents the ICC Colorspace. - Used during creation of documents with PDF/A1B compliance. - - - - - Internal variable to store the stream.. - - - - - Initializes a new instance of the class. - - - - - Saves an instance. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets the profile data. - - bytes - - - - Gets the element. - - - - - - Represents an ICC based colorspace.. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the Alternative Colorspaces. - - - - - Loacal variable to store the Color Components. - - - - - Local variable to store the Color Profile Data. - - - - - Local variable to store the Color Range. - - - - - Local variable to store the internal stream. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Get the default Color Profile. - - ICC profile data. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create RGB color space. - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - //Set the default ICC profile data. - IccBasedCS.ProfileData = IccBasedCS.GetProfileData(); - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - doc.Close(true); - - - 'Creates a new document - Dim doc As PdfDocument = New PdfDocument - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add - 'Create RGB color space. - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace - calRgbCS.Gamma = New Double() - { 7.6, 5.1, 8.5} - 'Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace - 'Set the default ICC profile data. - IccBasedCS.ProfileData = IccBasedCS.GetProfileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() - { 0, 1, 0, 1, 0, 1} - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1} - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - doc.Close(True) - - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the alternate color space. - - The alternate color space to be used in case the one specified in the stream data is not supported. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the color components. - - The number of color components in the color space described by the ICC profile data. - This number must match the number of components actually in the ICC profile. As of PDF 1.4, this value must be 1, 3 or 4. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the profile data. - - The ICC profile data. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the range for color components. - - An array of 2 � ColorComponents numbers [ min0 max0 min1 max1 ... ] specifying the minimum and maximum valid values of the corresponding color components. These values must match the information in the ICC profile. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Read the ICC profile from disk. - FileStream fs = new FileStream("rgb.icc", FileMode.Open, FileAccess.Read); - byte[] profileData = new byte[fs.Length]; - fs.Read(profileData, 0, profileData.Length); - fs.Close(); - PdfCalRGBColorSpace calRgbCS = new PdfCalRGBColorSpace(); - calRgbCS.Gamma = new double[] { 7.6, 5.1, 8.5 }; - // Creating instance for ICCColorSpace - PdfICCColorSpace IccBasedCS = new PdfICCColorSpace(); - IccBasedCS.ProfileData = profileData; - IccBasedCS.AlternateColorSpace = calRgbCS; - IccBasedCS.ColorComponents = 3; - IccBasedCS.Range = new double[] { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 }; - PdfICCColor iccColorSpace = new PdfICCColor(IccBasedCS); - iccColorSpace.ColorComponents = new double[] { 1, 0, 1 }; - PdfPen pen = new PdfPen(iccColorSpace); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("ICCColorCS.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Read the ICC profile from disk. - Dim fs As FileStream = New FileStream("rgb.icc", FileMode.Open, FileAccess.Read) - Dim profileData() As Byte = New Byte(fs.Length - 1){} - fs.Read(profileData, 0, profileData.Length) - fs.Close() - Dim calRgbCS As PdfCalRGBColorSpace = New PdfCalRGBColorSpace() - calRgbCS.Gamma = New Double() { 7.6, 5.1, 8.5 } - ' Creating instance for ICCColorSpace - Dim IccBasedCS As PdfICCColorSpace = New PdfICCColorSpace() - IccBasedCS.ProfileData = profileData - IccBasedCS.AlternateColorSpace = calRgbCS - IccBasedCS.ColorComponents = 3 - IccBasedCS.Range = New Double() { 0.0, 1.0, 0.0, 1.0, 0.0, 1.0 } - Dim iccColorSpace As PdfICCColor = New PdfICCColor(IccBasedCS) - iccColorSpace.ColorComponents = New Double() { 1, 0, 1 } - Dim pen As PdfPen = New PdfPen(iccColorSpace) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("ICCColorCS.pdf") - - - Class - Class - Class - Class - - - - Represents an indexed color, based on an indexed colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Local variable to store the color index. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Gets or sets the color index - - The index of the select color. - The acceptable range for this value is 0 - MaxColorIndex. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - Class - - - - Represents an indexed colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the base colorspace. - - - - - Local variable to store the maximum Color Index. - - - - - Local variable to store the indexed Color Table. - - - - - Local variable to store the stream. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets the profile data. - - The profile data. - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the base colorspace. - - The color space in which the values in the color table are to be interpreted. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the index of the max color. - - The maximum index that can be used to access the values in the color table. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the color table. - - The table of color components. - The color table data must be m * (maxIndex + 1) bytes long, where m is the number of color components in the base color space. Each byte is an unsigned integer in the range 0 to 255 that is scaled to the range of the corresponding color component in the base color space; that is, 0 corresponds to the minimum value in the range for that component, and 255 corresponds to the maximum. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates indexed color space - PdfIndexedColorSpace colorspace = new PdfIndexedColorSpace(); - colorspace.BaseColorSpace = new PdfDeviceColorSpace(PdfColorSpace.RGB); - colorspace.MaxColorIndex = 3; - colorspace.IndexedColorTable = new byte[] { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 }; - // Creates index color - PdfIndexedColor color = new PdfIndexedColor(colorspace); - color.SelectColorIndex = 3; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("IndexedColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates indexed color space - Dim colorspace As PdfIndexedColorSpace = New PdfIndexedColorSpace() - colorspace.BaseColorSpace = New PdfDeviceColorSpace(PdfColorSpace.RGB) - colorspace.MaxColorIndex = 3 - colorspace.IndexedColorTable = New Byte() { 150, 0, 222, 255, 0, 0, 0, 255, 0, 0, 0, 255 } - ' Creates index color - Dim color As PdfIndexedColor = New PdfIndexedColor(colorspace) - color.SelectColorIndex = 3 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("IndexedColor.pdf") - - - Class - Class - Class - Class - - - - Represents a calibrated Lab color, based on a Lab colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Local variable to store the A value. - - - - - Local variable to store the B value. - - - - - Local variable to store the L value. - - - - - Initializes a new instance of the class. - - The ColorSpace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the a* component for this color. - - The a* component of this color. - The range for this value is defined by the Range property of the underlying Lab colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the b* component for this color. - - The b* component of this color. - The range for this value is defined by the Range property of the underlying Lab colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the l component for this color. - - The l component of this color. - The acceptable range for this value is [0.0 100.0]. 0.0 means the darkest color that can be achieved, and 100.0 means the lightest color. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Represents a Lab colorspace - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Local variable to store the WhitePoint. - - - - - Local variable to store the BlackPoint - - - - - Local variable to store the Range - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Initializes the PdfLab Colorspace. - - - - - Creates PdfLab colorspace Array - - PdfLab's colorspace Array. - - - - Gets or sets BlackPoint - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.BlackPoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.BlackPoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the Range - - An array of three numbers [XB YB ZB] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse black point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Gets or sets the white point - - An array of three numbers [XW YW ZW] specifying the tristimulus value, in the CIE 1931 XYZ space, of the diffuse white point. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Create lab color space - PdfLabColorSpace calGrayCS = new PdfLabColorSpace(); - calGrayCS.Range = new double[] { 0.2, 1, 0.8, 23.5 }; - calGrayCS.WhitePoint = new double[] { 0.2, 1, 0.8 }; - // Create lab color - PdfLabColor labColor = new PdfLabColor(calGrayCS); - labColor.L = 90; - labColor.A = 0.5; - labColor.B = 20; - PdfPen pen = new PdfPen(labColor); - RectangleF rect = new RectangleF(20, 70, 200, 100); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("LabColor.pdf"); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates lab color space - Dim calGrayCS As PdfLabColorSpace = New PdfLabColorSpace() - calGrayCS.Range = New Double() { 0.2, 1, 0.8, 23.5 } - calGrayCS.WhitePoint = New Double() { 0.2, 1, 0.8 } - ' Create lab color - Dim labColor As PdfLabColor = New PdfLabColor(calGrayCS) - labColor.L = 90 - labColor.A = 0.5 - labColor.B = 20 - Dim pen As PdfPen = New PdfPen(labColor) - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("LabColor.pdf") - - - Class - Class - Class - - - - Represents a separation color, based on a separation colorspace. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Local variable to store the tint value. - - - - - Initializes a new instance of the class. - - The colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the Tint Value. - - A float value specifying the tint of this color. - The acceptable range for this value is [0.0 1.0]. 0.0 means the lightest color that can be achieved, and 1.0 means the darkest color. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - Class - - - - Represents a separation colorspace - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Local variable to store the Coloring. - - - - - Local variable to store teh Pdffuncion. - - - - - Local variable to store the internal stream. - - - - - Local variable to store the Alternative Colorspaces. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Get the profile data. - - The profile data - - - - Saves an instance. - - - - - Initializes the PdfICCBased Colorspace. - - - - - Creates PdfCalGray ColorSpace Array - - PdfCalGray's ColorSpace Array. - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Gets or sets the alternate color spaces. - - The alternate color space to be used when the destination device does not support separation colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Gets or sets the colorant represented by this separation colorspace. - - The name of the colorant. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Gets or sets the tint transform function for the this colorspace. - - Tint transform function for the colorspace. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Creates ExponentialInterpolationFunction function - PdfExponentialInterpolationFunction function = new PdfExponentialInterpolationFunction(true); - float[] numArray = new float[4]; - numArray[0] = 0.38f; - numArray[1] = 0.88f; - function.C1 = numArray; - // Creates SeparationColorSpace - PdfSeparationColorSpace colorspace = new PdfSeparationColorSpace(); - colorspace.AlternateColorSpaces = new PdfDeviceColorSpace(PdfColorSpace.GrayScale); - colorspace.TintTransform = function; - colorspace.Colorant = "PANTONE Orange 021 C"; - PdfSeparationColor color = new PdfSeparationColor(colorspace); - color.Tint = 0.7; - RectangleF rect = new RectangleF(20, 70, 200, 100); - PdfPen pen = new PdfPen(color); - page.Graphics.DrawRectangle(pen, rect); - doc.Save("SeparationColor.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Creates ExponentialInterpolationFunction function - Dim [function] As PdfExponentialInterpolationFunction = New PdfExponentialInterpolationFunction(True) - Dim numArray() As Single = New Single(3){} - numArray(0) = 0.38f - numArray(1) = 0.88f - [function].C1 = numArray - ' Creates SeparationColorSpace - Dim colorspace As PdfSeparationColorSpace = New PdfSeparationColorSpace() - colorspace.AlternateColorSpaces = New PdfDeviceColorSpace(PdfColorSpace.GrayScale) - colorspace.TintTransform = [function] - colorspace.Colorant = "PANTONE Orange 021 C" - Dim color As PdfSeparationColor = New PdfSeparationColor(colorspace) - color.Tint = 0.7 - Dim rect As RectangleF = New RectangleF(20, 70, 200, 100) - Dim pen As PdfPen = New PdfPen(color) - page.Graphics.DrawRectangle(pen, rect) - doc.Save("SeparationColor.pdf") - - - Class - Class - Class - - - - Compresses the TIFF using JBIG2 encoder. - - - - - Read Pix information for the image. - - - - - Read pix information from Tiff. - - - - - Create Pix from the tiff. - - - - - Swap bytes for Little Endian byte order. - - - - - Swap bytes for Little Endian byte order. - - - - - Read Tiff compression format. - - - - - Read file format. - - - - - Initialize encoder. - - - - - Initialize encoder context. - - - - - Produces symbol. - - - - - Classify and record information about a page. - - - - - Adds page. - - - - - Finds image components. - - - - - Filter. - - - - - Gets the value from the array. - - - - - - - - - - Adds number and extends the array. - - - - - - - - Returns Box rectangle. - - - - - Returns Pixa - - - - - Return pix with dilated word mask. - - - - - Sequence of binary rasterop morphological operations. - - - - - Replicated integer expansion. - - - - - Replicated expansion integer scaling. - - - - - Power of 2 expansion. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Removes border of the pix. - - - - - Pix with pixels removed around border. - - - - - Adds border to the pix. - - - - - Adds border to the pix. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Image display for debugging. - - - - - Image display for debugging. - - - - - Top level scaling dispatcher. - - - - - Top level scaling dispatcher without sharpening. - - - - - Linearly interpreted (up) scaling. - - - - - Color interpolated scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Color interpolated scaling: 2x upscaling. - - - - - Color interpolated scaling: 2x upscaling. - - - - - Linearly interpreted (up) scaling. - - - - - Grayscale interpolated scaling 4x upscaling. - - - - - Grayscale interpolated scaling. - - - - - Linearly interpreted (up) scaling. - - - - - Grayscale interpolated scaling: 2x upscaling. - - - - - Unsharp masking. - - - - - Full image set to arbitrary value - - - - - Grayscale block convolution - - - - - Grayscale Block Convolution - - - - - Accumulator for 1, 8 and 32 bpp convolution - - - - - Grayscale block convolution. - - - - - Unsharp masking. - - - - - Unsharp masking. - - - - - Unsharp masking. - - - - - Assign border pixels. - - - - - Downscaling with (antialias) area mapping. - - - - - Color and grayscale downsampling with (antialias) area mapping. - - - - - Color and grayscale downsampling with (antialias) area mapping. - - - - - Downscaling with (antialias) area mapping. - - - - - 2x area mapped downscaling. - - - - - Top-level conversion to 8 or 32 bpp, without colormap. - - - - - Top level conversion to 8 bpp. - - - - - Conversion from RGB color to grayscale. - - - - - Conversion from RGB color to grayscale. - - - - - Convert colored image to grayscale. - - - - - Add colormap losslessly (8 to 8). - - - - - Colormap creation. - - - - - Unpacking conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Unpacking conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Colormap creation. - - - - - Colormap creation and addition. - - - - - Conversion from 1, 2 and 4 bpp to 8 bpp. - - - - - Binary scaling by closest pixel sampling. - - - - - Binary scaling by closest pixel sampling. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 2x. - - - - - Returns an 8 bit value for the sum of ON pixels in a 2x2 square. - - - - - Table of 256 uint. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 3x. - - - - - Returns an 8 bit value for the sum of ON pixels in a 3x3 square. - - - - - Table of 64 uint. - - - - - Pix scaled down by 4x in each direction. - - - - - Scale to gray 4x. - - - - - 8 bit value for the sum of ON pixels in a 4x4 square. - - - - - Table of 256 uint. - - - - - Scale-to-gray (1 bpp --> 8 bpp; integer downscaling). - - - - - Scale to gray 8x. - - - - - Scale to gray 8x. - - - - - Table of integers. - - - - - Conversion from 16 bpp to 8 bpp. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Erodes source Pix using hits in Sel. - - - - - Max translations for erosion and hmt. - - - - - Sets all data to 1. - - - - - Helpers for arg processing. - - - - - Reallocate image data if sizes are different. - - - - - Binary morphological (raster) ops with brick Sels. - - - - - Creates rectangular sel of all hits, misses or don't cares. - - - - - Generic binary morphological ops implemented with rasterop. - - - - - Full image clear to arbitrary value. - - - - - Parser verifier for binary morphological operations. - - - - - Rank filtered binary reductions. - - - - - Pix is downscaled by 2x from source - - - - - Low level subsampled reduction - - - - - This table permutes the bits in a byte. - - - - - Returns pix at the index. - - - - - Gets bounding boxes or Pixa of the components. - - - - - Adds Pix - - - - - Doubles the size of the pixa and boxa ptr arrays. - - - - - Doubles the size of the pixa and boxa ptr arrays. - - - - - Copies Boxa. - - - - - Returns Box at the specified index. - - - - - Extract retangular region. - - - - - Clip box to the rectangle - - - - - Finds bounding boxes of 4 or 8 connected components in a binary image. - - - - - Adds Box. - - - - - Doubles the size of the boxa ptr array. - - - - - Stack based Seed fill algorithm. - - - - - Stack based 4 connected components seedfill algorithm. - - - - - Stack based 8 connected component seedfill algorithm. - - - - - Removes line segment. - - - - - Stack helper functions. - - - - - Identify the connection component to be erased. - - - - - Identify the connected component to be erased. - - - - - Pixel counting. - - For a binary image, if there are no black pixels, returns 1. - For a grayscale image, if all pixels are black, returns 1. - For an RGB image, if all 4 components in every pixel is 0, returns 1. - - - - Low level power of 2 binary expansion - - - - - Expansion tables for 8x expansion. - - - - - Expansion tables for 2x expansion. - - - - - Expansion tables for 4x expansion. - - - - - Pixelwise binarization with fixed threshold. - - - - - Binarization with fixed threshold. - - - - - Simple pixelwise binarization. - - - - - 4x upscale Pix, using linear interpolation, followed by thresholding to binary. - - - - - 2x upscale Pix, using linear interpolation, followed by thresholding to binary. - - - - - Grayscale interpolated scaling: 2x upscaling. - - - - - Scales resolution of the Pix - - - - - Removes colormap for the Pix. - - - - - General raster operation. - - - - - Scales width, performs clipping, checks alignment, and dispatches for the rasterop. - - - - - Rasterop without vertical word alignment. - - - - - Rasterop with vertical word alignment. - - - - - Rasterop with vertical word alignment. - - - - - Scales width, performs clipping, checks alignment, and dispatches for the rasterop. - - - - - Low level uni rasterop. - - - - - Dest rect is left aligned on (32-bit) word boundaries. - - - - - - - - - - Color sample setting and extraction. - - - - - Creates Pix. - - - - - Reads color for colormap. - - - - - Copy Pix. - - - - - Creates Pix of the same size as the input Pix. - - - - - Creates Pix of the same size as the input Pix. - - - - - Copies colormap from source Pix. - - - - - Copies resolution from source Pix. - - - - - Creates Pix. - - - - - Create Pix. - - - - - Checks if Colormap has color. - - - - - Read colormap array. - - - - - Regenerated line info. - - - - - No errors detected. - - - - - Receiver regenerated lines. - - - - - Uncorrected errors exist. - - - - - Compression scheme. - - - - - Dump mode. - - - - - CCITT modified Huffman RLE. - - - - - CCITT Group 3 fax encoding. - - - - - CCITT T.4 (TIFF 6 name for CCITT Group 3 fax encoding). - - - - - CCITT Group 4 fax encoding. - - - - - CCITT T.6 (TIFF 6 name for CCITT Group 4 fax encoding). - - - - - Lempel-Ziv & Welch. - - - - - Original JPEG / Old-style JPEG (6.0). - - - - - JPEG DCT compression. - - - - - NeXT 2-bit RLE. - - - - - CCITT RLE. - - - - - Macintosh RLE. - - - - - ThunderScan RLE. - - - - - IT8 CT w/padding. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Linework RLE. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Monochrome picture. Reserved for ANSI IT8 TIFF/IT. - - - - - IT8 Binary line art. Reserved for ANSI IT8 TIFF/IT. - - - - - Pixar companded 10bit LZW. Reserved for Pixar. - - - - - Pixar companded 11bit ZIP. Reserved for Pixar. - - - - - Deflate compression. - - - - - Deflate compression, as recognized by Adobe. - - - - - Kodak DCS encoding. - - - - - ISO JBIG. - - - - - SGI Log Luminance RLE. - - - - - SGI Log 24-bit packed. - - - - - Leadtools JPEG2000. - - - - - Information about extra samples. - - - - - Unspecified data. - - - - - Associated alpha data. - - - - - Unassociated alpha data. - - - - - Group 3/4 format control. - - - - - Default, include RTC. - - - - - No RTC at end of data. - - - - - No EOL code at end of row. - - - - - Byte align row. - - - - - Word align row. - - - - - TIFF Class F. - - - - - Subfile data descriptor. - - - - - Reduced resolution version. - - - - - One page of many. - - - - - Transparency mask. - - - - - Data order within a byte. - - - - - Most significant -> least. - - - - - Least significant -> most. - - - - - Options for CCITT Group 3/4 fax encoding. - - - - - Unknown (uninitialized). - - - - - 2-dimensional coding. - - - - - Data not compressed. - - - - - Fill to byte boundary. - - - - - Inks in separated image. - - - - - Cyan-magenta-yellow-black color. - - - - - Multi-ink or hi-fi color. - - - - - Auto RGB<=>YCbCr convert. - - - - - No conversion (default). - - - - - Do auto conversion. - - - - - Jpeg Tables Mode. - - - - - None. - - - - - Include quantization tables. - - - - - Include Huffman tables. - - - - - Kind of data in subfile. - - - - - Full resolution image data. - - - - - Reduced size image data. - - - - - One page of many. - - - - - Image orientation. - - - - - Row 0 top, Column 0 lhs. - - - - - Row 0 top, Column 0 rhs. - - - - - Row 0 bottom, Column 0 rhs. - - - - - Row 0 bottom, Column 0 lhs. - - - - - Row 0 lhs, Column 0 top. - - - - - Row 0 rhs, Column 0 top. - - - - - Row 0 rhs, Column 0 bottom. - - - - - Row 0 lhs, Column 0 bottom. - - - - - Photometric interpretation. - - - - - Min value is white. - - - - - Min value is black. - - - - - RGB color model. - - - - - Color map indexed. - - - - - [obsoleted by TIFF rev. 6.0] Holdout mask. - - - - - Color separations. - - - - - CCIR 601. - - - - - 1976 CIE L*a*b*. - - - - - ICC L*a*b*. Introduced post TIFF rev 6.0 by Adobe TIFF Technote 4. - - - - - ITU L*a*b*. - - - - - CIE Log2(L). - - - - - CIE Log2(L) (u',v'). - - - - - Storage organization. - - - - - Unknown (uninitialized). - - - - - Single image plane. - - - - - Separate planes of data. - - - - - Prediction scheme w/ LZW. - - - - - No prediction scheme used. - - - - - Horizontal differencing. - - - - - Floating point predictor. - - - - - Units of resolutions. - - - - - No meaningful units. - - - - - English. - - - - - Metric. - - - - - Data sample format. - - - - - Unsigned integer data - - - - - Signed integer data - - - - - IEEE floating point data - - - - - Untyped data - - - - - Complex signed int - - - - - Complex ieee floating - - - - - Thresholding used on data. - - - - - B&W art scan. - - - - - Dithered scan. - - - - - Usually Floyd-Steinberg. - - - - - Tag data type. - - - - - Placeholder. - - - - - For field descriptor searching. - - - - - 8-bit unsigned integer. - - - - - 8-bit bytes with last byte null. - - - - - 16-bit unsigned integer. - - - - - 32-bit unsigned integer. - - - - - 64-bit unsigned fraction. - - - - - 8-bit signed integer. - - - - - 8-bit untyped data. - - - - - 16-bit signed integer. - - - - - 32-bit signed integer. - - - - - 64-bit signed fraction. - - - - - 32-bit IEEE floating point. - - - - - 64-bit IEEE floating point. - - - - - 32-bit unsigned integer (offset) - - - - - Subsample positioning. - - - - - As in PostScript Level 2 - - - - - As in CCIR 601-1 - - - - - TIFF tag definitions. - - - - - Tag placeholder - - - - - Subfile data descriptor. - For the list of possible values, see . - - - - - Kind of data in subfile. For the list of possible values, see . - - - - - Image width in pixels. - - - - - Image height in pixels. - - - - - Bits per channel (sample). - - - - - Data compression technique. - For the list of possible values, see . - - - - - Photometric interpretation. - For the list of possible values, see . - - - - - Thresholding used on data. For the list of possible values, see . - - - - - Dithering matrix width. - - - - - Dithering matrix height. - - - - - Data order within a byte. - - - - - Name of document which holds for image. - - - - - Information about image. - - - - - Scanner manufacturer name. - - - - - Scanner model name/number. - - - - - Offsets to data strips. - - - - - Image orientation. For the list of possible values, see . - - - - - Samples per pixel. - - - - - Rows per strip of data. - - - - - Bytes counts for strips. - - - - - Minimum sample value. - - - - - Maximum sample value. - - - - - Pixels/resolution in x. - - - - - Pixels/resolution in y. - - - - - Storage organization. - For the list of possible values, see . - - - - - Page name image is from. - - - - - X page offset of image lhs. - - - - - Y page offset of image lhs. - - - - - Byte offset to free block. - - - - - Sizes of free blocks. - - - - - Gray scale curve accuracy. - - - - - Gray scale response curve. - - - - - Options for CCITT Group 3 fax encoding. 32 flag bits. - - - - - - - - - Options for CCITT Group 4 fax encoding. 32 flag bits. - - - - - - - - - Units of resolutions. - - - - - Page numbers of multi-page. - - - - - Color curve accuracy. - - - - - Colorimetry info. - - - - - Name & release. - - - - - Creation date and time. - - - - - Creator of image. - - - - - Machine where created. - - - - - Prediction scheme w/ LZW. - - - - - Image white point. - - - - - Primary chromaticities. - - - - - RGB map for pallette image. - - - - - Highlight + shadow info. - - - - - Tile width in pixels. - - - - - Tile height in pixels. - - - - - Offsets to data tiles. - - - - - Byte counts for tiles. - - - - - Lines with wrong pixel count. - - - - - Regenerated line info. - - - - - Max consecutive bad lines. - - - - - Subimage descriptors. - - - - - Inks in separated image. - - - - - ASCII names of inks. - - - - - Number of inks. - - - - - 0% and 100% dot codes. - - - - - Separation target. - - - - - Information about extra samples. - - - - - Data sample format. - - - - - Variable MinSampleValue. - - - - - Variable MaxSampleValue. - - - - - ClipPath. - - - - - XClipPathUnits. - - - - - YClipPathUnits. - - - - - Indexed. - - - - - JPEG table stream. - - - - - OPI Proxy. - - - - - JPEG processing algorithm. - - - - - Pointer to SOI marker. - - - - - JFIF stream length - - - - - Restart interval length. - - - - - Lossless proc predictor. - - - - - Lossless point transform. - - - - - Q matrice offsets. - - - - - DCT table offsets. - - - - - AC coefficient offsets. - - - - - RGB -> YCbCr transform. - - - - - YCbCr subsampling factors. - - - - - Subsample positioning. - - - - - Colorimetry info. - - - - - XML packet. - - - - - OPI ImageID. - - - - - Image reference points. - - - - - Region-xform tack point. - - - - - Warp quadrilateral. - - - - - Affine transformation matrix. - - - - - Use EXTRASAMPLE tag. - - - - - Use SAMPLEFORMAT tag. - - - - - Z depth of image. - - - - - Z depth/data tile. - - - - - Full image size in X. - - - - - Full image size in Y. - - - - - Texture map format. - - - - - S&T wrap modes. - - - - - Cotan(fov) for env. maps. - - - - - Used to identify special image modes and data used by Pixar's texture formats. - - - - - Used to identify special image modes and data used by Pixar's texture formats. - - - - - Device serial number. - - - - - Copyright string. - - - - - IPTC TAG from RichTIFF specifications. - - - - - Site name. - - - - - Color seq. [RGB, CMYK, etc]. - - - - - DDES Header. - - - - - Raster scanline padding. - - - - - The number of bits in short run. - - - - - The number of bits in long run. - - - - - LW colortable. - - - - - BP/BL image color switch. - - - - - BP/BL bg color switch. - - - - - BP/BL image color value. - - - - - BP/BL bg color value. - - - - - MP pixel intensity value. - - - - - HC transparency switch. - - - - - Color characterization table. - - - - - HC usage indicator. - - - - - Trapping indicator (untrapped = 0, trapped = 1). - - - - - CMYK color equivalents. - - - - - Sequence Frame Count. - - - - - - - - - Pointer to EXIF private directory. - - - - - ICC profile data. - - - - - JBIG options. - - - - - Pointer to GPS private directory. - - - - - Encoded Class 2 ses. params. - - - - - Received SubAddr string. - - - - - Receive time (secs). - - - - - Encoded fax ses. params, Table 2/T.30. - - - - - Sample value to Nits. - - - - - - - - - Pointer to Interoperability private directory. - - - - - DNG version number. - - - - - DNG compatibility version. - - - - - Name for the camera model. - - - - - Localized camera model name. - - - - - CFAPattern->LinearRaw space mapping. - - - - - Spatial layout of the CFA. - - - - - Lookup table description. - - - - - Repeat pattern size for the BlackLevel tag. - - - - - Zero light encoding level. - - - - - Zero light encoding level differences (columns). - - - - - Zero light encoding level differences (rows). - - - - - Fully saturated encoding level. - - - - - Default scale factors. - - - - - Origin of the final image area. - - - - - Size of the final image area. - - - - - XYZ->reference color space transformation matrix 1. - - - - - XYZ->reference color space transformation matrix 2. - - - - - Calibration matrix 1. - - - - - Calibration matrix 2. - - - - - Dimensionality reduction matrix 1. - - - - - Dimensionality reduction matrix 2. - - - - - Gain applied the stored raw values. - - - - - Selected white balance in linear reference space. - - - - - Selected white balance in x-y chromaticity coordinates. - - - - - How much to move the zero point. - - - - - Relative noise level. - - - - - Relative amount of sharpening. - - - - - How closely the values of the green pixels in the blue/green rows - track the values of the green pixels in the red/green rows. - - - - - Non-linear encoding range. - - - - - Camera's serial number. - - - - - Information about the lens. - - - - - Chroma blur radius. - - - - - Relative strength of the camera's anti-alias filter. - - - - - Used by Adobe Camera Raw. - - - - - Manufacturer's private data. - - - - - Whether the EXIF MakerNote tag is safe to preserve along with the rest of the EXIF data. - - - - - Illuminant 1. - - - - - Illuminant 2. - - - - - Best quality multiplier. - - - - - Unique identifier for the raw image data. - - - - - File name of the original raw file. - - - - - Contents of the original raw file. - - - - - Active (non-masked) pixels of the sensor. - - - - - List of coordinates of fully masked pixels. - - - - - Used to map cameras's color space into ICC profile space. - - - - - Used to map cameras's color space into ICC profile space. - - - - - - - - - - - - - - - Undefined tag used by Eastman Kodak, hue shift correction data. - - - - - Group 3/4 format control. - - - - - Compression quality level. Quality level is on the IJG 0-100 scale. Default value is 75. - - - - - Auto RGB<=>YCbCr convert. - - - - - Default is | . - - - - - G3/G4 fill function. - - - - - PixarLogCodec I/O data sz. - - - - - Imager mode & filter. - - - - - Interpolation mode. - - - - - Color balance values. - - - - - Color correction values. - - - - - Gamma value. - - - - - Toe & shoulder points. - - - - - Calibration file description. - - - - - Compression quality level. - Quality level is on the ZLIB 1-9 scale. Default value is -1. - - - - - PixarLog uses same scale. - - - - - Area of image to acquire. - - - - - SGILog user data format. - - - - - SGILog data encoding control. - - - - - Exposure time. - - - - - F number. - - - - - Exposure program. - - - - - Spectral sensitivity. - - - - - ISO speed rating. - - - - - Optoelectric conversion factor. - - - - - Exif version. - - - - - Date and time of original data generation. - - - - - Date and time of digital data generation. - - - - - Meaning of each component. - - - - - Image compression mode. - - - - - Shutter speed. - - - - - Aperture. - - - - - Brightness. - - - - - Exposure bias. - - - - - Maximum lens aperture. - - - - - Subject distance. - - - - - Metering mode. - - - - - Light source. - - - - - Flash. - - - - - Lens focal length. - - - - - Subject area. - - - - - Manufacturer notes. - - - - - User comments. - - - - - DateTime subseconds. - - - - - DateTimeOriginal subseconds. - - - - - DateTimeDigitized subseconds. - - - - - Supported Flashpix version. - - - - - Color space information. - - - - - Valid image width. - - - - - Valid image height. - - - - - Related audio file. - - - - - Flash energy. - - - - - Spatial frequency response. - - - - - Focal plane X resolution. - - - - - Focal plane Y resolution. - - - - - Focal plane resolution unit. - - - - - Subject location. - - - - - Exposure index. - - - - - Sensing method. - - - - - File source. - - - - - Scene type. - - - - - CFA pattern. - - - - - Custom image processing. - - - - - Exposure mode. - - - - - White balance. - - - - - Digital zoom ratio. - - - - - Focal length in 35 mm film. - - - - - Scene capture type. - - - - - Gain control. - - - - - Contrast. - - - - - Saturation. - - - - - Sharpness. - - - - - Device settings description. - - - - - Subject distance range. - - - - - Unique image ID. - - - - - The unit of density. - - - - - Unknown density - - - - - Dots/inch - - - - - Dots/cm - - - - - Known color spaces. - - - - - Unspecified color space. - - - - - Grayscale - - - - - RGB - - - - - YCbCr (also known as YUV) - - - - - CMYK - - - - - YCbCrK - - - - - Algorithm used for the DCT step. - - - - - Slow but accurate integer algorithm. - - - - - Faster, less accurate integer method. - - - - - Floating-point method. - - - - - Dithering options for decompression. - - - - - No dithering: fast, very low quality - - - - - Ordered dither: moderate speed and quality - - - - - Floyd-Steinberg dither: slow, high quality - - - - - Message codes used in code to signal errors, warning and trace messages. - - - - - Must be first entry! - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Describes a result of read operation. - - - - - Suspended due to lack of input data. Can occur only if a suspending data source is used. - - - - - Found valid image datastream. - - - - - Found valid table-specs-only datastream. - - - - - Reached a SOS marker (the start of a new scan) - - - - - Reached the EOI marker (end of image) - - - - - Completed reading one MCU row of compressed data. - - - - - Completed reading last MCU row of current scan. - - - - - JPEG marker codes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Operating modes for buffer controllers - - - - - Use MSB2LSB (most significant -> least) fill order - - - - - Use LSB2MSB (least significant -> most) fill order - - - - - natural bit fill order for machine - - - - - current directory must be written - - - - - data buffers setup - - - - - encoder/decoder setup done - - - - - written 1+ scanlines to file - - - - - byte swap file information - - - - - inhibit bit reversal logic - - - - - my raw data buffer; free on close - - - - - file is tile, not strip- based - - - - - need call to postencode routine - - - - - currently writing a subifd - - - - - library is doing data up-sampling - - - - - enable strip chopping support - - - - - read header only, do not process the first directory - - - - - skip reading of raw uncompressed image data - - - - - Field bits (flags) for tags. - - - - - This value is used to signify custom tags. - - - - - This value is used as a base (starting) value for codec-private tags. - - - - - Last usable value for field bit. All tags values should be less than this value. - - - - - Holds a value of a Tiff tag. - - - - - Retrieves value converted to byte. - - - - - Retrieves value converted to short. - - - - - Retrieves value converted to ushort. - - - - - Retrieves value converted to int. - - - - - Retrieves value converted to uint. - - - - - Retrieves value converted to float. - - - - - Retrieves value converted to double. - - - - - Retrieves value converted to string. - - - - - Retrieves value converted to byte array. - - - - - Retrieves value converted to array of bytes. - - - - - Retrieves value converted to array of short values. - - - - - Retrieves value converted to array of ushort values. - - - - - Retrieves value converted to array of int values. - - - - - Retrieves value converted to array of uint values. - - - - - Retrieves value converted to array of float values. - - - - - Retrieves value converted to array of double values. - - - - - Gets the value. - - The value. - - - - Base class for all codecs within the library. - - - - - An instance of . - - - - - Compression scheme this codec impelements. - - - - - Codec name. - - - - - Initializes a new instance of the class. - - - - - Initializes this instance. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Flushes any internal data buffers and terminates current operation. - - - - - Seeks the specified row in the strip being processed. - - - - - Cleanups the state of the codec. - - - - - Calculates and/or constrains a strip size. - - - - - Calculate and/or constrains a tile size - - - - - Gets a value indicating whether this codec can decode data. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Flushes any internal data buffers and terminates current operation. - - - - - Cleanups the state of the codec. - - - - - Decode the requested amount of G3 1D-encoded data. - - - - - Decode the requested amount of G3 2D-encoded data. - - - - - Decode the requested amount of RLE-encoded data. - - - - - Decode the requested amount of G4-encoded data. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Tiff tag methods. - - - - - untyped data - - - - - signed integer data - - - - - unsigned integer data - - - - - IEEE floating point data - - - - - Sets the value(s) of a tag in a TIFF file/stream open for writing. - - - - - Gets the value(s) of a tag in an open TIFF file. - - - - - Install extra samples information. - - - - - predictor tag value - - - - - sample stride over data - - - - - tile/strip row size - - - - - horizontal differencer/accumulator - - - - - Setups the decoder part of the codec. - - - - - Decodes one row of image data. - - - - - - Decodes one tile of image data. - - - - - Floating point predictor accumulation routine. - - - - - Floating point predictor differencing routine. - - - - - Decode a scanline and apply the predictor routine. - - - - - Decode a tile/strip and apply the predictor routine. Note that horizontal differencing - must be done on a row-by-row basis. The width of a "row" has already been calculated - at pre-decode time according to the strip/tile dimensions. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Seeks the specified row in the strip being processed. - - - - - Decode a hunk of pixels. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Tag Image File Format (TIFF) - - - - - undefined state - - - - - undefined state - - - - - name of open file - - - - - open mode (O_*) - - - - - file offset of current directory - - - - - internal rep of current directory - - - - - current scanline - - - - - current strip for read/write - - - - - current tile for read/write - - - - - # of bytes in a tile - - - - - # of bytes in a scanline - - - - - raw data buffer - - - - - # of bytes in raw data buffer - - - - - current spot in raw buffer - - - - - bytes unread from raw buffer - - - - - callback parameter - - - - - post decoding method type - - - - - tag get/set/print routines - - - - - file offset of following directory - - - - - list of offsets to already seen directories to prevent IFD looping - - - - - number of entires in offset list - - - - - number of already seen directories - - - - - file's header block - - - - - data type shift counts - - - - - data type masks - - - - - current directory (index) - - - - - current offset for read/write - - - - - current offset for writing dir - - - - - remaining subifds to write - - - - - offset for patching SubIFD link - - - - - current column (offset by row too) - - - - - sorted table of registered tags - - - - - # entries in registered tag table - - - - - cached pointer to already found tag - - - - - extra client information. - - - - - stream used for read|write|etc. - - - - - post decoding routine - - - - - Compression schemes statically built into the library. - - - - - Checks the directory offset against the list of already seen directory - offsets. - - - - - Reads IFD structure from the specified offset. - - - - - Fetches a contiguous directory item. - - - - - Fetches an ASCII item from the file. - - - - - Fetch a single floating point value from the offset field and - return it as a native float. - - - - - Fetches an array of BYTE or SBYTE values. - - - - - Fetch an array of SHORT or SSHORT values. - - - - - Fetches an array of LONG or SLONG values. - - - - - Fetch an array of RATIONAL or SRATIONAL values. - - - - - Fetches an array of FLOAT values. - - - - - Fetches an array of DOUBLE values. - - - - - Fetches an array of ANY values. - - - - - Fetches a tag that is not handled by special case code. - - - - - Fetches samples/pixel short values for the specified tag and verify - that all values are the same. - - - - - Fetches samples/pixel long values for the specified tag and verify - that all values are the same. - - - - - Fetches samples/pixel ANY values for the specified tag and verify - that all values are the same. - - - - - Fetches a set of offsets or lengths. - - - - - Fetches and sets the RefBlackWhite tag. - - - - - Replace a single strip (tile) of uncompressed data with multiple - strips (tiles), each approximately 8Kbytes. - - - - - Set state to appear as if a strip has just been read in. - - - - - Read the specified strip and setup for decoding. - The data buffer is expanded, as necessary, to hold the strip's data. - - - - - Read the specified tile and setup for decoding. - The data buffer is expanded, as necessary, to hold the tile's data. - - - - - Retrieves the codec registered for the specified compression scheme. - - - - - Checks whether library has working codec for the specific compression scheme. - - - - - Initializes new instance of class and opens a TIFF file for - reading or writing. - - - - - Initializes new instance of class and opens a stream with TIFF data - for reading or writing. - - - - - Closes a previously opened TIFF file. - - - - - Frees and releases all resources allocated by this . - - - - - Merges given field information to existing one. - - - - - Retrieves field information for the specified tag. - - - - - Retrieves field information for the tag with specified name. - - - - - Retrieves field information for the specified tag. - - - - - Gets the value(s) of a tag in an open TIFF file. - - - - - Gets the value(s) of a tag in an open TIFF file or default value(s) of a tag if a tag - is not defined in the current directory and it has a default value(s). - - - - - Reads the contents of the next TIFF directory in an open TIFF file/stream and makes - it the current directory. - - - - - Reads a custom directory from the arbitrary offset within file/stream. - - - - - Calculates the size in bytes of a row of data as it would be returned in a call to - , or as it would be - expected in a call to . - - - - - Computes the number of bytes in a row-aligned strip. - - - - - Computes the number of bytes in a row-aligned strip with specified number of rows. - - - - - Computes the number of bytes in a raw (i.e. not decoded) strip. - - - - - Retrives the number of strips in the image. - - - - - Compute the number of bytes in a row-aligned tile. - - - - - Computes the number of bytes in a row-aligned tile with specified number of rows. - - - - - Compute the number of bytes in each row of a tile. - - - - - Computes which tile contains the specified coordinates (x, y, z, plane). - - - - - Checks whether the specified (x, y, z, plane) coordinates are within the bounds of - the image. - - - - - Retrives the number of tiles in the image. - - - - - Gets the value indicating whether the image data of this has a - tiled organization. - - - - - Gets the value indicating whether the image data returned through the read interface - methods is being up-sampled. - - - - - Gets the tiff stream. - - - - - Sets up the data buffer used to read raw (encoded) data from a file. - - - - - Setups the strips. - - - - - Releases storage associated with current directory. - - - - - Sets the value(s) of a tag in a TIFF file/stream open for writing. - - - - - Reads and decodes a scanline of data from an open TIFF file/stream. - - - - - Reads and decodes a scanline of data from an open TIFF file/stream. - - - - - Gets the number of bytes occupied by the item of given type. - - - - - Swaps the bytes in a single 16-bit item. - - - - - Swaps the bytes in a single 32-bit item. - - - - - Swaps the bytes in specified number of values in the array of 16-bit items. - - - - - Swaps the bytes in specified number of values in the array of 16-bit items starting at - specified offset. - - - - - Swaps the bytes in specified number of values in the array of triples (24-bit items) - starting at specified offset. - - - - - Swaps the bytes in specified number of values in the array of 32-bit items. - - - - - Swaps the bytes in specified number of values in the array of 32-bit items - starting at specified offset. - - - - - Swaps the bytes in specified number of values in the array of double-precision - floating-point numbers. - - - - - Swaps the bytes in specified number of values in the array of double-precision - floating-point numbers starting at specified offset. - - - - - Replaces specified number of bytes in with the - equivalent bit-reversed bytes. - - - - - Replaces specified number of bytes in with the - equivalent bit-reversed bytes starting at specified offset. - - - - - Retrieves a bit reversal table. - - - - - Converts a byte buffer into array of 32-bit values. - - - - - Converts array of 32-bit values into array of bytes. - - - - - Converts a byte buffer into array of 16-bit values. - - - - - Converts array of 16-bit values into array of bytes. - - - - - Delegate for LibTiff.Net extender method - - - - - Delegate for a method used to image decoded spans. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Cleanups the state of the codec. - - - - - Calculates and/or constrains a strip size. - - - - - Calculate and/or constrains a tile size - - - - - Decode a chunk of pixels. - "Standard" case: returned data is not downsampled. - - - - - Decode a chunk of pixels. - - - - - Gets a value indicating whether this codec can decode data. - - - - - JPEG library source data manager. - - - - - Data source object for decompression. - - - - - Initializes this instance. - - - - - Fills input buffer - - - - - Initializes the internal buffer. - - - - - Skip data - used to skip over a potentially large amount of - uninteresting data (such as an APPn marker). - - - - - This is the default resync_to_restart method for data source - managers to use if they don't have any better approach. - - - - - Terminate source - called by jpeg_finish_decompress - after all data has been read. Often a no-op. - - - - - Reads two bytes interpreted as an unsigned 16-bit integer. - - - - - Read a byte into variable V. - If must suspend, take the specified action (typically "return false"). - - - - - Gets the bytes. - - - - - Functions for fetching data from the data source module. - - - - - Alternate source manager for reading from JPEGTables. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Setups the decoder part of the codec. - - - - - Prepares the decoder part of the codec for a decoding. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Cleanups the state of the codec. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Initializes this instance. - - - - - Fills input buffer - - - - - Skip data - used to skip over a potentially large amount of - uninteresting data (such as an APPn marker). - - - - - This is the default resync_to_restart method for data source - managers to use if they don't have any better approach. - - - - - Terminate source - called by jpeg_finish_decompress - after all data has been read. Often a no-op. - - - - - Decodes one row of image data. - - - - - Decodes one strip of image data. - - - - - Decodes one tile of image data. - - - - - Gets a value indicating whether this codec can decode data. - - - - - Internal format of a TIFF directory entry. - - - - - bit vector of fields that are set - - - - - size of offset and bytecount arrays - - - - - is the bytecount array sorted ascending? - - - - - number of items; length in spec - - - - - byte offset to field data - - - - - magic number (defines byte order) - - - - - TIFF version number - - - - - byte offset to first directory - - - - Base class for both JPEG compressor and decompresor. - - - - Base constructor. - - - - - Creates the array of samples. - - - - - Creates the array of blocks. - - - - - Creates 2-D sample array. - - - - - Gets a value indicating whether this instance is Jpeg decompressor. - - - - - Progress monitor. - - - - - JPEG decompression routine. - - - - - Initializes a new instance of the class. - - - - - Sets input stream. - - - - - Decompression startup: this will read the source datastream header markers, up to the beginning of the compressed data proper. - - - - - Decompression initialization. - - - - - Read some scanlines of data from the JPEG decompressor. - - - - - Finish JPEG decompression. - - - - - Alternate entry point to read raw data. - - - - - Is there more than one scan? - - - - - Initialize for an output pass in buffered-image mode - - - - - Finish up after an output pass in buffered-image mode. - - - - - Indicates if we have finished reading the input file. - - - - - Consume data in advance of what the decompressor requires. - - - - - Pre-calculate output image dimensions and related values for current decompression parameters. - - - - - Read or write the raw DCT coefficient arrays from a JPEG file (useful for lossless transcoding). - - - - - Aborts processing of a JPEG decompression operation. - - - - - Sets processor for special marker. - - - - - Control saving of COM and APPn markers into Marker_list. - - - - - Determine whether merged upsample/color conversion should be used. - - - - - Initialization of JPEG compression objects. - - - - - Master selection of decompression modules for transcoding (that is, reading - raw DCT coefficient arrays from an input JPEG file.) - - - - - Set up for an output pass, and perform any dummy pass(es) needed. - - - - - Set default decompression parameters. - - - - - Retrieves true because this is a decompressor. - - - - - Gets or sets the source for decompression. - - - - - Gets the width of image, set by - - - - - Gets the height of image, set by - - - - - Gets the number of color components in JPEG image. - - - - - Gets or sets the colorspace of JPEG image. - - - - - Gets the list of loaded special markers. - - - - - Gets or sets the output color space. - - - - - Gets or sets the numerator of the fraction of image scaling. - - - - - Gets or sets the denominator of the fraction of image scaling. - - - - - Gets or sets a value indicating whether to use buffered-image mode. - - - - - Enable or disable raw data output. - - - - - Gets or sets the algorithm used for the DCT step. - - - - - Enable or disable upsampling of chroma components. - - - - - Apply interblock smoothing in early stages of decoding progressive JPEG files. - - - - - Colors quantization. - - - - - Selects color dithering method. - - - - - Gets or sets a value indicating whether to use two-pass color quantization. - - - - - Maximum number of colors to use in generating a library-supplied color map. - - - - - Enable future use of 1-pass quantizer. - - - - - Enable future use of external colormap. - - - - - Enable future use of 2-pass quantizer. - - - - - Gets the actual width of output image. - - - - - Gets the actual height of output image. - - - - - Gets the number of color components in . - - - - - Gets the number of color components returned. - - - - - Gets the recommended height of scanline buffer. - - - - - The number of colors in the color map. - - - - - The color map, represented as a 2-D pixel array of rows - and columns. - - - - - Gets the number of scanlines returned so far. - - - - - Gets the number of SOS markers seen so far. - - - - - Gets the number of iMCU rows completed. - - - - - Gets the nominal scan number being displayed. - - - - - Gets the number of iMCU rows read. - - - - - Gets the current progression status.. - - - - - Gets the resolution information from JFIF marker. - - - - - Gets the horizontal component of pixel ratio. - - - - - Gets the vertical component of pixel ratio. - - - - - Gets the data precision. - - - - - Gets the largest vertical sample factor. - - - - - Gets the last read and unprocessed JPEG marker. - - - - - Comp_info[i] describes component that appears i'th in SOF - - - - - The delegate for application-supplied marker processing methods. - - - - - Basic info about one component (color channel). - - - - - Identifier for this component (0..255) - - - - - Its index in SOF or . - - - - - Horizontal sampling factor (1..4) - - - - - Vertical sampling factor (1..4) - - - - - Quantization table selector (0..3) - - - - - DC entropy table selector (0..3) - - - - - AC entropy table selector (0..3) - - - - - Gets or sets the width in blocks. - - - - - Gets the downsampled width. - - - - - Representation of special JPEG marker. - - - - - Gets the special marker. - - - - - Gets the full length of original data associated with the marker. - - - - - Gets the data associated with the marker. - - - - - Bitreading state saved across MCUs - - - - - Bitreading working state within an MCU - - - - - Encapsulates buffer of image samples for one color component - - - - - Derived data constructed for each Huffman table - - - - - - - - - Color quantization or color precision reduction - - - - - Module initialization routine for 1-pass color quantization. - - - - - Initialize for one-pass color quantization. - - - - - Finish up at the end of the pass. - - - - - Switch to a new external colormap between output passes. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Create the colormap. - - - - - Create the color index table. - - - - - Create the ordered-dither tables. - - - - - Allocate workspace for Floyd-Steinberg errors. - - - - - Return largest input value that should map to j'th output value - - - - - Return j'th output value, where j will range from 0 to maxj - - - - - Determine allocation of desired colors to components, - and fill in Ncolors[] array to indicate choice. - Return value is total number of colors (product of Ncolors[] values). - - - - - Create an ordered-dither array for a component having ncolors - distinct output values. - - - - - - - - - Module initialization routine for 2-pass color quantization. - - - - - Initialize for each processing pass. - - - - - Switch to a new external colormap between output passes. - - - - - Prescan some rows of pixels. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Map some rows of pixels to the output colormapped representation. - - - - - Finish up at the end of each pass. - - - - - Compute representative color for a box, put it in colormap[icolor] - - - - - Master routine for color selection - - - - - Repeatedly select and split the largest box until we have enough boxes - - - - - Find the splittable box with the largest color population - - - - - Find the splittable box with the largest (scaled) volume - - - - - Shrink the min/max bounds of a box to enclose only nonzero elements, - and recompute its volume and population - - - - - Initialize the error-limiting transfer function (lookup table). - - - - - - - - - Find the closest colormap entry for each cell in the update box, - - - - - Fill the inverse-colormap entries in the update box that contains - histogram cell c0/c1/c2. - - - - - Upsampling (note that upsampler must also call color converter) - - - - - Initialize for an upsampling pass. - - - - - Control routine to do upsampling (and color conversion). - - - - - Control routine to do upsampling (and color conversion). - - - - - Upsample and color convert for the case of 2:1 horizontal and 1:1 vertical. - - - - - Upsample and color convert for the case of 2:1 horizontal and 2:1 vertical. - - - - - Initialize tables for YCC->RGB colorspace conversion. - - - - - Expanded data source object for stdio input - - - - - Initialize source - called by jpeg_read_header - before any data is actually read. - - - - - Fill the input buffer - called whenever buffer is emptied. - - - - - Initialize for an upsampling pass. - - - - - Control routine to do upsampling (and color conversion). - - - - - This is a no-op version used for "uninteresting" components. - - - - - For full-size components, we just make color_buf[ci] point at the - input buffer, and thus avoid copying any data. - - - - - Fancy processing for the common case of 2:1 horizontal and 1:1 vertical. - - - - - Fast processing for the common case of 2:1 horizontal and 1:1 vertical. - - - - - Fancy processing for the common case of 2:1 horizontal and 2:1 vertical. - - - - - Fast processing for the common case of 2:1 horizontal and 2:1 vertical. - - - - - This version handles any integral sampling ratios. - - - - - Compute a/b rounded up to next integer, ie, ceil(a/b) - - - - - Compute a rounded up to next multiple of b, ie, ceil(a/b)*b - - - - - Copy some rows of samples from one place to another. - - - - - Expanded entropy decoder object for Huffman decoding. - - - - - Entropy decoding - - - - - Expand a Huffman table definition into the derived format - - - - - Initialize for a Huffman-compressed scan. - - - - - Decode and return one MCU's worth of Huffman-compressed coefficients. - - - - - Check for a restart marker and resynchronize decoder. - Returns false if must suspend. - - - - - Colorspace conversion - - - - - Module initialization routine for output colorspace conversion. - - - - - Convert some rows of samples to the output colorspace. - - - - - Initialize tables for YCC->RGB colorspace conversion. - - - - - Adobe-style YCCK->CMYK conversion. - - - - - Convert grayscale to RGB: just duplicate the graylevel three times. - - - - - Color conversion for grayscale: just copy the data. - - - - - Color conversion for no colorspace change: just copy the data, - converting from separate-planes to interleaved representation. - - - - - Coefficient buffer control - - - - - Initialize for an input processing pass. - - - - - Consume input data and store it in the full-image coefficient buffer. - - - - - Initialize for an output processing pass. - - - - - Decompress and return some data in the single-pass case. - - - - - Decompress and return some data in the multi-pass case. - - - - - Variant of decompress_data for use when doing block smoothing. - - - - - Determine whether block smoothing is applicable and safe. - - - - - Reset within-iMCU-row counters for a new row (input side) - - - - - Main buffer control (downsampled-data buffer) - - - - - Initialize for a processing pass. - - - - - Process some data. - This handles the simple case where no context is required. - - - - - Process some data. - This handles the case where context rows must be provided. - - - - - Process some data. - - - - - Allocate space for the funny pointer lists. - - - - - Create the funny pointer lists discussed in the comments above. - - - - - Set up the "wraparound" pointers at top and bottom of the pointer lists. - - - - - Change the pointer lists to duplicate the last sample row at the bottom - of the image. - - - - - Decompression postprocessing (color quantization buffer control) - - - - - Initialize postprocessing controller. - - - - - Initialize for a processing pass. - - - - - Process some data in the one-pass (strip buffer) case. - This is used for color precision reduction as well as one-pass quantization. - - - - - Process some data in the first pass of 2-pass quantization. - - - - - Process some data in the second pass of 2-pass quantization. - - - - - Master control module - - - - - Per-pass setup. - - - - - Finish up at end of an output pass. - - - - - Master selection of decompression modules. - - - - - Allocate and fill in the sample_range_limit table. - - - - - Input control module - - - - - Initialize the input controller module. - - - - - Reset state to begin a fresh datastream. - - - - - Initialize the input modules to read a scan of compressed data. - - - - - Finish up after inputting a compressed-data scan. - - - - - Read JPEG markers before, between, or after compressed-data scans. - - - - - Routines to calculate various quantities related to the size of the image. - - - - - Save away a copy of the Q-table referenced by each component present - in the current scan, unless already saved during a prior scan. - - - - - Do computations that are needed before processing a JPEG scan - cinfo.comps_in_scan and cinfo.cur_comp_info[] were set from SOS marker - - - - - - - - - Prepare for an output pass. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce an int result. In this module, both inputs and result - are 16 bits or less, so either int or short multiply will work. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Multiply a DCTELEM variable by an int constant, and immediately - descale to yield a DCTELEM result. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce a DCTELEM result. - - - - - Like DESCALE, but applies to a DCTELEM and produces an int. - - - - - Perform dequantization and inverse DCT on one block of coefficients. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce a float result. - - - - - Inverse-DCT routines that produce reduced-size output: - either 4x4, 2x2, or 1x1 pixels from an 8x8 DCT block. - - - - - Perform dequantization and inverse DCT on one block of coefficients, - producing a reduced-size 2x2 output block. - - - - - Perform dequantization and inverse DCT on one block of coefficients, - producing a reduced-size 1x1 output block. - - - - - Dequantize a coefficient by multiplying it by the multiplier-table - entry; produce an int result. - - - - - Marker reading and parsing - - - - - Initialize the marker reader module. - - - - - Reset marker processing state to begin a fresh datastream. - - - - - Read markers until SOS or EOI. - - - - - Read a restart marker, which is expected to appear next in the datastream; - - - - - Find the next JPEG marker, save it in cinfo.unread_marker. - - - - - Install a special processing method for COM or APPn markers. - - - - - Save an APPn or COM marker into the marker list - - - - - Skip over an unknown or uninteresting variable-length marker - - - - - Process an APP0 or APP14 marker without saving it - - - - - Examine first few bytes from an APP0. - - - - - Examine first few bytes from an APP14. - - - - - Process an SOI marker - - - - - Process a SOFn marker - - - - - Process a SOS marker - - - - - Process a DHT marker - - - - - Process a DQT marker - - - - - Process a DRI marker - - - - - Like next_marker, but used to obtain the initial SOI marker. - - - - - Expanded entropy decoder object for progressive Huffman decoding. - - - - - Initialize for a Huffman-compressed scan. - - - - - MCU decoding for DC initial scan (either spectral selection, - or first pass of successive approximation). - - - - - MCU decoding for AC initial scan (either spectral selection, - or first pass of successive approximation). - - - - - MCU decoding for DC successive approximation refinement scan. - - - - - Check for a restart marker and resynchronize decoder. - - - - - MCU decoding for AC successive approximation refinement scan. - - - - - Defines some JPEG constants. - - - - - The basic DCT block is 8x8 samples - - - - - DCTSIZE squared; the number of elements in a block. - - - - - Quantization tables are numbered 0..3 - - - - - Huffman tables are numbered 0..3 - - - - - JPEG limit on the number of components in one scan. - - - - - Compressor's limit on blocks per MCU. - - - - - Decompressor's limit on blocks per MCU. - - - - - JPEG limit on sampling factors. - - - - - Maximum number of color channels allowed in JPEG image. - - - - - The size of sample. - - - - - DCT method used by default. - - - - - Fastest DCT method. - - - - - A tad under 64K to prevent overflows. - - - - - The maximum sample value. - - - - - The medium sample value. - - - - - Offset of Red in an RGB scanline element. - - - - - Offset of Green in an RGB scanline element. - - - - - Offset of Blue in an RGB scanline element. - - - - - Bytes per RGB scanline element. - - - - - The number of bits of lookahead. - - - - - DCT coefficient quantization tables. - - - - - Gets or sets a value indicating whether the table has been output to file. - - - - - JPEG virtual array. - - - - - Request a virtual 2-D array - - - - - Access the part of a virtual array. - - - - - Gets or sets the error processor. - - - - - One block of coefficients. - - - - - Gets or sets the element at the specified index. - - - - - Huffman coding table. - - - - - Gets or sets a value indicating whether the table has been output to file. - - - - - The progress monitor object. - - - - - Indicates that progress was changed. - - - - - Occurs when progress is changed. - - - - - Gets or sets the number of work units completed in this pass. - - - - - Gets or sets the total number of work units in this pass. - - - - - Gets or sets the number of passes completed so far. - - - - - Gets or sets the total number of passes expected. - - - - - Represents a TIFF field information. - - - - - marker for variable length tags - - - - - marker for SamplesPerPixel-bound tags - - - - - marker for integer variable length tags - - - - - Initializes a new instance of the class. - - - - - Returns a that represents this instance. - - - - - The tag described by this instance. - - - - - Number of values to read when reading field information or - one of , and . - - - - - Number of values to write when writing field information or - one of , and . - - - - - Type of the field values. - - - - - Index of the bit to use in "Set Fields Vector" when this instance - is merged into field info collection. Take a look at class. - - - - - If true, then it is permissible to set the tag's value even after writing has commenced. - - - - - If true, then number of value elements should be passed to - method as second parameter (right after tag type AND before values itself). - - - - - The name (or description) of the tag this instance describes. - - - - - A stream used by the library for TIFF reading and writing. - - - - - Reads a sequence of bytes from the stream and advances the position within the stream - by the number of bytes read. - - - - - Sets the position within the current stream. - - - - - Closes the current stream. - - - - - Gets the length in bytes of the stream. - - - - - Compresses data using the ASCII85 compression - method, reproducing the original text or binary data. - - - - - - Summary description of IPDFCompressor. - - - - - - Compresses bytes data. - - Bytes data. - - Compressed bytes data. - - - - - - Compresses string data. - - String data. - - Compressed string data. - - - - - - Compresses stream data. - - Stream data. - - Compressed streams data. - - - - - - Decompresses string data. - - String data. - - Decompressed bytes data. - - - - - - Decompresses bytes data. - - Bytes data. - - Decompressed bytes data. - - - - - - Decompresses stream data. - - Stream data. - - Decompressed stream data. - - - - - - Gets the compressor type. - - - - - - Gets the compressor name in PDF format. - - - - - Internal variable contains the ascii offset. - - - - - Internal variable contains the encoded block. - - - - - Internal variable contains the decoded block. - - - - - Internal variable. - - - - - The code Table. - - - - - Initializes a new instance of the class. - - - - - Decompresses the specified input data. - - The input data. - The output data. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Compresses stream data. - - Stream data to be compressed. - Compressed streams data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - decompressed bytes data - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Decodes the block. - - - - - Decodes the block. - - The bytes. - - - - Gets the Type of the compressor. - - - - - - Gets name of compressor in PDF format. - - - - - - Encodes data to CCITT format. - - - - - End of line. - - - - - Invalide data. - - - - - End of input data. - - - - - Incomplete run code. - - - - - Bit length of g3 code. - - - - - G3 code. - - - - - Run length in bits. - - - - - EOL code value - 0000 0000 0000 1. - - - - - Holds table zero span. - - - - - Holds table one span. - - - - - Holds terminating white codes. - - - - - Holds terminating black codes. - - - - - 001 - - - - - 0001 - - - - - holds mask table. - - - - - Holds vertical table. - - - - - Holds row bytes. - - - - - Holds row pixels. - - - - - Holds bit count. - - - - - Holds data. - - - - - Holds reference line. - - - - - Holds out buffer array list. - - - - - Holds image data. - - - - - Holds offset data. - - - - - Initializes a new instance of the class. - - - - - Initializes the class. - - - - - Encodes the image. - - The image data. - The image width. - The image height. - - - - - Creates ccitt vertical table. - - - - - Creates ccitt zero span. - - - - - Creates citt one span. - - - - - Creates terminating white codes. - - - - - Creates terminating black codes. - - - - - Putcodes the specified table. - - The table. - - - - Putspans the specified span. - - The span. - The tab. - - - - Puts the bits. - - The bits. - The length. - - - - Implements Fax3Encode. - - - - - Implements Fax4Encode. - - - - - Pixels the specified data. - - The data. - The offset. - The bit. - - - - - Finds the first span. - - The bp. - The offset. - The bs. - The be. - - - - - Finds the zero span. - - The bp. - The offset. - The bs. - The be. - - - - - Finddiffs the specified bp. - - The bp. - The offset. - The bs. - The be. - The color. - - - - - Finddiff2s the specified bp. - - The bp. - The offset. - The bs. - The be. - The color. - - - - - Represents the attachments of the PDF document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document. - document.Attachments.Add(attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document. - document.Attachments.Add(attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Represents specification of embedded file. - - - - - Represents base class for file specification objects. - - - - - Internal variable to store dictionary. - - - - Name of the file. - - - - Initializes instance. - - - - - Saves an instance. - - - - - Formats file name to Unix format. - - File name to format. - bool value which represents the file path type. - Formatted file name. - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The - instance containing the event data. - - - - Gets or sets the name of the file. - - The name of the file. - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Internal variable to store description. - - - - - Embedded file instance. - - - - - Dictionary to store file specification properties. - - - - - PortfolioAttributes instance. - - - - file name - - - Name of the file. - The data. - - - Name of the file. - The stream. - - - - Initializes instance. - - - - - Saves object state. - - - - - - - - Gets or sets the data. - - The data. - - - - Gets or sets the description. - - The description. - - - - Gets or sets the MIME type of the embedded file. - - The MIME type of the embedded file. - - - - Gets or sets creation date. - - Creation date. - - - - Gets or sets modification date. - - Modification date. - - - - Gets or sets the Portfolio attributes. - - - - - Gets the embedded file. - - The Embedded file. - - - Name of the file. - - - The name of the file to be attached. - The data to be attached as a file. - - - The name of the file to be attached. - The stream to be attached. - - - - Represents a collection of the attachment objects. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document. - document.Attachments.Add(attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document. - document.Attachments.Add(attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Internal variable to store internal array of attachments. - - - - - Internal variable to store dictionary wrapper. - - - - - internal Variable to store filename and attachment. - - - - - internal variable to store ordered filename. - - - - - internal variable to store file count value. - - - - - store the cross table - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The attachment dictionary. - The table. - - - - Internal method to get attachement information. - - The Pdfarray. - - - - - Inserts the attachment at specified index. - - The index at which attachment to be inserted. - The attachment to be inserted. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create an attachment. - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //insert the attachment at specified index. - document.Attachments.Insert(0, attachment); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create an attachment. - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'insert the attachment at specified index. - document.Attachments.Insert(0, attachment) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Removes the specified attachment from the collection. - - The attachment to be removed. - /// - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Load an attachment collection. - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Get the attachment at the specified index. - PdfAttachment attachment = loadedDocument.Attachments[0]; - //Remove attachment by attachment name. - attachments.Remove(attachment); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Load an attachment collection. - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Get the attachment at the specified index. - attachment As PdfAttachment = loadedDocument.Attachments(0) - 'Remove attachment by attachment name. - attachments.Remove(attachment) - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Removes attachment at the specified index. - - The index at which the attachment to be removed. - /// - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Load an attachment collection - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Remove attachment by index - attachments.RemoveAt(0); - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Load an attachment collection - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Remove attachment by index - attachments.RemoveAt(0) - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - search and find the index of the attachment. - - The attachment to find the position. - The index of the specified attachment. - /// - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create an attachment - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document - document.Attachments.Add(attachment); - //Get the index of attachment - int index = document.Attachments.IndexOf(attachment); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create an attachment - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document - document.Attachments.Add(attachment) - 'Get the index of attachment - Dim index As Integer = document.Attachments.IndexOf(attachment) - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Determines whether the attachment collection contains the specified attachment. - - The attachment to be searched. - - if it contains the specified attachment, set to true. otherwise false - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create an attachment - PdfAttachment attachment = new PdfAttachment("Input.txt"); - attachment.Description = "Input.txt"; - attachment.MimeType = "application/txt"; - //Add the attachment to the document - document.Attachments.Add(attachment); - //check the collection contains the specified attachment. - bool isAttachmentContained = document.Attachments.Contains(attachment); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document - Dim document As New PdfDocument() - 'Create an attachment - Dim attachment As New PdfAttachment("Input.txt") - attachment.Description = "Input.txt" - attachment.MimeType = "application/txt" - 'Add the attachment to the document - document.Attachments.Add(attachment) - 'check the collection contains the specified attachment. - Dim isAttachmentContained As Boolean = document.Attachments.Contains(attachment) - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Remove all the attachments from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the attachments - PdfAttachmentCollection attachments = loadedDocument.Attachments; - //Remove all the bookmarks form the collection - attachments.Clear(); - //Save and close the PDF document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the attachments - Dim attachments As PdfAttachmentCollection = loadedDocument.Attachments - 'Remove all the bookmarks form the collection - attachments.Clear() - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Adds the attachment. - - The attachment. - The index of the attachment. - - - - Does the insert. - - The index. - The attachment. - - - - Removes the attachment. - - The attachment. - - - - Removes the attachment. - - The index. - - - - Clears the collection. - - - - - - Gets the element. - - - - - - Internal variable to store field's bounds. - - - - - Internal variable to store font. - - - - - Internal variable to store brush. - - - - - Internal variable to store pen. - - - - - Internal variable to store string format. - - - - - Internal variable to store template size. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with - - The represents the format of the text. - - - - Initializes a new instance of the class with and . - - The represents the format of the text. - The provides color and texture to the text. - - - - Initializes a new instance of the class with and bounds. - - The represents the format of the text. - The bounds. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - X co-ordinate of the element. - Y co-ordinate of the element. - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - - Gets the template size. - - The template size. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - - Gets the brush. If brush is undefined default black brush will be used. - - The brush - - - - - Gets the font. If font is undefined default font will be used. - - - - - - - - - - - - - Gets or sets the of the field. - - The determines text layout information on PDF - - - - Represents information about the automatic field. - - - - - Internal variable to store location of the field. - - - - - Internal variable to store field. - - - - - Internal variable to store x scaling factor. - - - - - Internal variable to store y scaling factor. - - - - - Initializes a new instance of the class. - - The field. - The location. - - - - Initializes a new instance of the class. - - The field. - The location. - The scaling X. - The scaling Y. - - - - Initializes a new instance of the class. - - The field info. - - - - Gets or sets the location. - - The location. - - - - Gets or sets the field. - - The field. - - - - Gets or sets the scaling X factor. - - The scaling X factor. - - - - Gets or sets the scaling Y factor. - - The scaling Y factor. - - - - Represent a collection of automatic fields information. - - Class - - - - Initializes a new instance of the class. - - - - - Adds the specified field info. - - The field info. - field Info - - - - Represents class to display creation date of the document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which has the same value in the whole document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create new PDF brush. - PdfBrush brush = PdfBrushes.Black; - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - Class - - - - Represents automatic field which value is dynamically evaluated. - - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - . - - - - Initializes a new instance of the class with and bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The Rectangle bounds. - - - - Gets the page from a graphics. - - The graphics. - The proper PdfPage instance. - - - - Gets the Loaded page from a graphics. - - The graphics - The graphics - - - - Internal variable to store templates associated with the document. - - - - - Internal variable to array of graphics. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - - Initializes a new instance of the class with and rectangle bounds of the field - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Internal variable to store format of the date. - - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Creates Date time field - PdfCreationDateField dateTimeField = new PdfCreationDateField(); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField() - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates Date time field - PdfCreationDateField dateTimeField = new PdfCreationDateField(font); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font,brush); - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates Date time field. - Dim dateTimeField As New PdfCreationDateField(font,brush) - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - for (int i = 0; i !=3; i++) - { - //Creates a new page. - PdfPage page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates Date time field. - Dim dateTimeField As PdfCreationDateField = New PdfCreationDateField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - For i As Integer = 0 To 2 - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - Gets or sets the format string. - - The format string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates Date time field. - PdfCreationDateField dateTimeField = new PdfCreationDateField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i != 3; i++) - { - //Creates a new page. - PdfPage page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates Date time field. - Dim dateTimeField As PdfCreationDateField = New PdfCreationDateField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Represents date and time automated field. - - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i !=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which value can be evaluated in the moment of creation. - - Class - - - - Internal variable to store template of the field. - - - - - Internal variable to store list of graphics - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with - - The represents the format of the text. - - - - Initializes a new instance of the class with and - - The represents the format of the text. - The provides color and texture to the text. - - - - Initializes a new instance of the class with and bounds - - The represents the format of the text. - The Rectangle bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Internal variable to store date value of the field. - - - - - Internal variable to store format of the date. - - - - - Initializes a new instance of the class. - - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField() - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i !=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, PdfBrushes.Aquamarine); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, PdfBrushes.Aquamarine) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and clos ethe document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Get the value of the field at the specified graphics. - - The graphics. - value - - - - - Gets or sets the date format string. - - The format string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document. - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates DateTime field. - PdfDateTimeField dateTimeField = new PdfDateTimeField(font, new RectangleF(new PointF(10,10), new SizeF(100,200))); - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy"; - for (int i = 0; i!=3; i++) - { - page = doc.Pages.Add(); - dateTimeField.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates DateTime field. - Dim dateTimeField As PdfDateTimeField = New PdfDateTimeField(font, New RectangleF(New PointF(10,10), New SizeF(100,200))) - dateTimeField.DateFormatString = "dd'/'MMMM'/'yyyy" - For i As Integer = 0 To 2 - page = doc.Pages.Add() - dateTimeField.Draw(page.Graphics) - Next i - 'Save and clos ethe document. - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - - - - Represents class which displays destination page's number. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DateTimeField.pdf") - doc.Close(True) - - - Class - - - - Represents PDF document page number field. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - Class - - - - Represents automatic field which has the same value within the - - Class - - - - Represents automatic field which has the same value within the - - Class - - - - Internal variable to store templates associated with the graphics. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The specifies the color and texture to the text. - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The rectangle bounds. - - - - Performs draw. - - The graphics. - The location. - The scaling X. - The scaling Y. - - - - Gets or sets the tag for the element - - - - - Internal variable to store numbering style. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The specifies the color and texture to the text. - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - - Gets or sets the specific number style. - - The provides specific number style. - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField() - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, PdfBrushes.Beige); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, PdfBrushes.Beige) - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use.s - The bounds. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, new RectangleF(10, 10, 100, 200)); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageNumber.Draw(page.Graphics); - } - doc.Save("PageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, new RectangleF(10, 10, 100, 200)); - pageNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageNumber.Draw(page.Graphics) - Next i - doc.Save("PageNumberField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Internal method to get value of the field. - - The page. - - - - - Internal method to get value of the field. - - The page - - - - - Internal variable to store destination page. - - - - - Internal variable to store the Loaded Page. - - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(); - for (int i = 0; i !=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField() - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, PdfBrushes.Azure); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, PdfBrushes.Azure) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - Specifies the location and size of the field. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, new RectangleF(10, 10, 100, 200)); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, New RectangleF(10, 10,100,200)) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - Get and sets the PdfLoadedPage - - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SrcDocument.pdf"); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font, new RectangleF(10, 10,100,200)); - for (int i = 0; i != doc.Pages.Count; i++) - { - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.LoadedPage = doc.Pages[1] as PdfLoadedPage; - pageNumber.Draw(doc.Pages[1].Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font, New RectangleF(10, 10,100,200)) - For i As Integer = 0 To doc.Pages.Count - 1 - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.LoadedPage = TryCast(doc.Pages(1), PdfLoadedPage) - pageNumber.Draw(doc.Pages(1).Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Gets or sets the page. - - The page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page number field - PdfDestinationPageNumberField pageNumber = new PdfDestinationPageNumberField(font); - for (int i = 0; i !=2; i++) - { - PdfPage page = doc.Pages.Add(); - // Draws the page number only on the second page - if (i == 1) - { - pageNumber.Page = page; - pageNumber.Draw(page.Graphics); - } - } - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page number field - Dim pageNumber As PdfDestinationPageNumberField = New PdfDestinationPageNumberField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - ' Draws the page number only on the second page - If i = 1 Then - pageNumber.Page = page - pageNumber.Draw(page.Graphics) - End If - Next i - doc.Save("DestinationPageNumberField.pdf"); - doc.Close(True) - - - - - - Represent automatic field which contains document's author name. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField() - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font); - for (int i = 0; i!=2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font, brush); - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font, brush) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with and rectangle bounds. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The bounds. - - - // Create a new document - PdfDocument doc = new PdfDocument(); - // Set the document`s information - doc.DocumentInformation.Author = "Syncfusion"; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfDocumentAuthorField documentAuthorField = new PdfDocumentAuthorField(font, new RectangleF(0, 0, 100, 200)); - for (int i = 0; i!= 2; i++) - { - PdfPage page = doc.Pages.Add(); - documentAuthorField.Draw(page.Graphics); - } - doc.Save("DocumentAuthorField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the document`s information - doc.DocumentInformation.Author = "Syncfusion" - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim documentAuthorField As PdfDocumentAuthorField = New PdfDocumentAuthorField(font, New RectangleF(0,0,100,200)) - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - documentAuthorField.Draw(page.Graphics) - Next i - doc.Save("DocumentAuthorField.pdf") - doc.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - - Internal variable to store list of automatic fields. - - - - - Internal variable to store value. - - - - - - - - - - Initializes a new instance of the class with text and list of automatic fields - - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.Font = font; - pageCount.Brush = brush; - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.Font = font; - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - dateField.Brush = brush; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField("page {0}, date {1} ", auto); - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.Font = font - pageCount.Brush = brush - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.Font = font - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - dateField.Brush = brush - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField("page {0}, date {1} ", auto) - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with ,text and list of automatic fields - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(font, "page {0}, date {1} ", auto); - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField(font, "page {0}, date {1} ", auto) - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with ,,text and list of automatic fields. - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - The wide-character string to be drawn. - The list of objects. - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(font, brush, "page {0}, date {1} ", auto); - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField(font, brush, "page {0}, date {1} ", auto) - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets the value of the field at the specified graphics. - - The graphics. - - - - - - - Gets or sets the automatic fields. - - The array of automatic fields . - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage mainPage = document.Pages.Add(); - //Create the PDF font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create the PDF brsh instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create page count field. - PdfPageCountField pageCount = new PdfPageCountField(); - pageCount.Bounds = new RectangleF(0, 0, 150, 150); - pageCount.Font = font; - pageCount.Brush = brush; - pageCount.NumberStyle = PdfNumberStyle.Numeric; - //Create date time field. - PdfDateTimeField dateField = new PdfDateTimeField(); - dateField.Font = font; - dateField.DateFormatString = "MM'/'ddd'/'yyyy"; - dateField.Brush = brush; - //Set value for automatic field. - PdfAutomaticField[] auto = { pageCount, dateField }; - //Create composite field. - PdfCompositeField comp = new PdfCompositeField(); - comp.Text = "page {0}, date {1}"; - comp.AutomaticFields = auto; - comp.Brush = brush; - comp.Location = new PointF(100, 100); - comp.Draw(mainPage.Graphics); - comp.Size = new SizeF(300, 300); - comp.Font = font; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document - Dim document As PdfDocument = New PdfDocument() - 'Create a new page. - Dim mainPage As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create the PDF font instance. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField() - pageCount.Bounds = New RectangleF(0, 0, 150, 150) - pageCount.Font = font - pageCount.Brush = brush - pageCount.NumberStyle = PdfNumberStyle.Numeric - 'Create date time field. - Dim dateField As PdfDateTimeField = New PdfDateTimeField() - dateField.Font = font - dateField.DateFormatString = "MM'/'ddd'/'yyyy" - dateField.Brush = brush - 'Set value for automatic field. - Dim auto As PdfAutomaticField() = {pageCount, dateField } - 'Create composite field. - Dim comp As PdfCompositeField = New PdfCompositeField() - comp.Text = "page {0}, date {1}" - comp.AutomaticFields = auto - comp.Brush = brush - comp.Location = New PointF(100, 100) - comp.Draw(mainPage.Graphics) - comp.Size = New SizeF(300, 300) - comp.Font = font - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Utility class for number conversion. - - - - - Limit number of converting arabic to \"A\" format. - - - - - Index of A char in the ASCII table. - - - - - Converts the specified number to numberStyle format. - - The arabic value. - The number style. - - - - - Converts arabic number to roman. - - Number in arabic format. - Number in Roman format. - - - - Converts arabic number to \"A\" format. - - Number in arabic format. - Number in \"A\" format. - - - - Utility metnod for converting arabic number to roman format. - - Current number value. - Max current number. - Roman equivalent. - Roman equivalent. - - - - Utility metnod. Helps to convert arabic number to \"A\" format. - - Arabic number. - Sequence of number. - - - - Adds letter instead of number. - - String builder object. - Number to be converted to letter. - - - - Represents total PDF document page count automatic field. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Create a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - Class - - - - Internal variable to store numbering style. - - - - - - Initializes a new instance of the class with . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Initializes a new instance of the class with and . - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - A object that is used to fill the string. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font,brush); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Initializes a new instance of the class with and rectangle bounds - - A object that specifies the font attributes (the family name, the size, and the style of the font) to use. - The rectangle bounds of the field. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - RectangleF rect = new RectangleF(10, 10, 50, 30); - //Creates page count field. - PdfPageCountField pageCount = new PdfPageCountField(font,rect); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - //Save and close the document. - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim rect As RectangleF = New RectangleF(10, 10, 50, 30) - 'Creates page count field. - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - 'Save and close the document. - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Gets or sets the number style. - - The number style. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - PdfBrush brush = PdfBrushes.Black; - // Creates page count field - PdfPageCountField pageCount = new PdfPageCountField(font); - pageCount.NumberStyle = PdfNumberStyle.Numeric; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - pageCount.Draw(page.Graphics); - } - doc.Save("PageCountField.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - ' Creates page count field - Dim pageCount As PdfPageCountField = New PdfPageCountField(font) - pageCount.NumberStyle = PdfNumberStyle.Numeric - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - pageCount.Draw(page.Graphics) - Next i - doc.Save("PageCountField.pdf") - doc.Close(True); - - - - - - Represents an automatic field to display the section number. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Creates section number field. - Dim sectionNumber As New PdfSectionNumberField(font) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Creates section number field - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - for (int i = 0; i != 2; i++) - { - PdfPage page = doc.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - doc.Save("SectionNumberField.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Creates section number field - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField() - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - For i As Integer = 0 To 1 - Dim page As PdfPage = doc.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - doc.Save("SectionNumberField.pdf") - - - Class - - - - Initializes a new instance of the class. - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Creates section number field. - Dim sectionNumber As New PdfSectionNumberField(font) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creates section number field. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font, brush); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create a PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creates section number field. - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField(font, brush) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - RectangleF rect = new RectangleF(10, 10, 30, 10); - //Creates section number field within specified bounds. - PdfSectionNumberField sectionNumber = new PdfSectionNumberField(font, rect); - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the section number in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 10) - 'Creates section number field within specified bounds. - Dim sectionNumber As PdfSectionNumberField = New PdfSectionNumberField(font, rect) - sectionNumber.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the section number in each page of a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the value of the field at the specified graphics. - - The graphics. - The value of the field. - - - - Represents an automatic field to display number of pages in section. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField() - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class with . - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class with and . - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = PdfBrushes.Blue; - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font,brush); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - 'Create a PDF brush. - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a PDF brush. - Dim sectionPageCount As PdfSectionPageCountField = New PdfSectionPageCountField(font, brush) - 'Create section page count field. - Dim sectionPageCount As New PdfSectionPageCountField(font) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with and . - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - - //Create section page count field. - PdfSectionPageCountField sectionPageCount = new PdfSectionPageCountField(font,rect); - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin; - //Draw the sectionPageCount in each page of a section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageCount.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 30) - 'Create section page count field. - Dim sectionPageCount As PdfSectionPageCountField = New PdfSectionPageCountField(font, rect) - sectionPageCount.NumberStyle = PdfNumberStyle.UpperLatin - 'Draw the sectionPageCount each page in a section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageCount.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Represents an automatic field to display page number within a section. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section. - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField() - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - The brush. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create a PDF brush. - PdfBrush brush = PdfBrushes.Blue; - //Create section page number field. - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font,brush); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - 'Create a PDF brush. - Dim brush As PdfBrush = PdfBrushes.Blue - 'Create a PDF brush. - 'Create section page number field. - Dim sectionPageNumber As New PdfSectionPageNumberField(font,brush) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - The bounds. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f); - //Create section page number field with and - PdfSectionPageNumberField sectionPageNumber = new PdfSectionPageNumberField(font); - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman; - //Draw the sectionPageNumber in section. - for (int i = 0; i != 2; i++) - { - PdfPage page = section.Pages.Add(); - sectionPageNumber.Draw(page.Graphics); - } - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Create a PDF font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F) - Dim rect As RectangleF = New RectangleF(10, 10, 30, 30) - 'Create section page number field with and . - Dim sectionPageNumber As New PdfSectionPageNumberField(font,rect) - sectionPageNumber.NumberStyle = PdfNumberStyle.LowerRoman - 'Draw the sectionPageNumber in section - For i As Integer = 0 To 1 - Dim page As PdfPage = section.Pages.Add() - sectionPageNumber.Draw(page.Graphics) - Next i - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the value of the field at the specified graphics. - - The graphics. - result - - - - Represent class to store information about template and value pairs - used in automatic fields. - - - - - Internal variable to store template. - - - - - Intenal variable to store value. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The template. - The value. - - - - Gets or sets the template. - - The template. - - - - Gets or sets the value. - - The value. - - - - Each instance of this class represents an bookmark node in the bookmark tree. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - This class plays two roles: it's a base class for all bookmarks - and it's a root of a bookmarks tree. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //get the bookmark count. - int count = bookmarks.Count; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'get the bookmark count. - Dim count As Integer = bookmarks.Count - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Collection of the descend outlines. - - - - - Internal variable to store dictinary. - - - - - Cross table of the document; - - - - - Internal variable to store loaded bookmark. - - - - - Temp variable to store loaded bookmark. - - - - - Gets or sets the whether the bookmark tree is expanded or not - - - - - Initializes a new instance of the class. - - Note that the Type field shouldn't be generated. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Creates and adds an outline. - - The title of the new outline. - PdfBookmark - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Determines whether the specified outline presents in the collection. - - The outline. - - true if the specified outline is in the collection; - otherwise, false. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //check whether the specified bookmark present in the collection - document.Bookmarks.Contains(bookmark); - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'check whether the specified bookmark present in the collection - Dim isBookMarkContained As Boolean = document.Bookmarks.Contains(bookmark) - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - - - - Remove the specified bookmark from the document. - - The title of the outline. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove bookmark by bookmark name. - bookmarks.Remove("Page 1"); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'Remove bookmark by bookmark name. - bookmarks.Remove("Page 1") - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Remove the bookmark from the document at the specified index. - - The index. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove bookmark by index. - bookmarks.RemoveAt(0); - //Save and close the document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'Remove bookmark by index. - bookmarks.RemoveAt(0) - 'Save and close the document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Removes all the bookmark from the collection. - - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get the bookmarks - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Remove all the bookmarks form the collection - bookmarks.Clear(); - //Save and close the PDF document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get the Bookmarks - Dim Bookmarks As PdfAttachmentCollection = loadedDocument.Bookmarks - 'Remove all the bookmarks form the collection - Bookmarks.Clear() - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Inserts a new outline at the specified index. - - The index. - The title of the new outline. - The new outline. - /// - - //Create a new document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Insert a new bookmark in the existing bookmark collection. - PdfBookmark bookmark = loadedDocument.Bookmarks.Insert(1, "New bookmark 2"); - //Set the destination page and location. - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Destination.Location = new PointF(0, 300); - //Save and close the PDF document. - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Create a new document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Insert a new bookmark in the existing bookmark collection. - Dim bookmark As PdfBookmark = loadedDocument.Bookmarks.Insert(1, "New bookmark 2") - 'Set the destination page and location. - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Destination.Location = New PointF(0, 300) - 'Save and close the PDF document. - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - To get the BookMark Collection - - - - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Reproduces the tree. - - The list of bookmark kids. - - - - Updates all outline dictionary fields. - - - - - Gets the first book mark. - - The bookmark. - First Bookmark - - - - Gets number of the elements in the collection. Read-Only. - - The value which contains count of the collection.> - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //get the bookmark count. - int count = bookmarks.Count; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = loadedDocument.Bookmarks - 'get the bookmark count. - Dim count As Integer = bookmarks.Count - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class. - - - - Gets the at the specified index. Read-Only. - - The PdfBookmark object returns from the collection by index. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and change the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and change the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class. - Class. - - - - Gets the sub items. - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the cross table. - - - - - Gets or sets the whether to expand the node or not - - - - - Gets the element. - - - - - - - Internal variable to store destination. - - - - - Internal variable to store named destination. - - - - - Internal variable to store color. - - - - - Internal variable to store text Style. - - - - - Internal variable to store previous. - - - - - Internal variable to store next. - - - - - Internal variable to store parent. - - - - - Internal variable to store action. - - - - - Initializes a new instance of the class. - - The title to be displayed. - The parent. - The previous. - The next. - - - - Initializes a new instance of the class. - - The title. - The parent. - The previous. - The next. - The destination. - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the parent. - - The parent. - - - - Updates the color. - - - - - Updates the outline text style. - - - - - - - Gets or sets the outline title. - - A string value which contains the bookmark title - The outline title is the text, - which appears in the outline tree as a tree node. - /// - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Set the destination page. - bookmark.Destination = new PdfDestination(page); - //Set the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Set the Bookmark Title. - bookmark.Title = "Bookmark"; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Set the destination page. - bookmark.Destination = New PdfDestination(page) - 'Set the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Set the bookmark title. - bookmark.Title = "Bookmark" - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - - - - Gets or sets the whether to expand the node or not. - - true If the bookmark is expanable , otherwise false. > - - - //Create a new document. - PdfDocument Document = new PdfDocument(); - //Add a page. - PdfPage page = Document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = Document.Bookmarks.Add("page1"); - //Set color. - bookmark.Color = Color.Red; - bool expand = bookmark.IsExpanded; - //Create a Uri action - PdfUriAction uriAction = new PdfUriAction("http://www.google.com"); - //Set the Uri action - bookmark.Action = uriAction; - //Save and close the PDF document. - Document.Save("Output.pdf"); - Document.Close(true); - - - 'Create a new document. - Dim Document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = Document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = Document.Bookmarks.Add("page1") - 'Set color. - bookmark.Color = Color.Red - bool expand = bookmark.IsExpanded - 'Create a Uri action - Dim uriAction As New PdfUriAction("http://www.google.com") - 'Set the Uri action - bookmark.Action = uriAction - 'Save and close the PDF document. - Document.Save("Output.pdf") - Document.Close(True) - - - Class. - Class. - - - - Gets or sets the previous outline object. - - The null value means that the object is the first outline. - - - - Gets the parent outline base. - - - - - Gets or sets the next outline object. - - The null value means that the object is the last outline. - - - - Allows to choose outline text style. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and set the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and set the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class - Class - Class - - - - Regular text style. - - - - - Italic text style. - - - - - Bold text style. - - - - - Represents a booklet creator, which allows to create a booklet from a PDF document. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the document. - doc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True); - - - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with and page size. - - The existing PDF document. - Size of the page. - - The initialized PDF document, which could be saved. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class with source path,destination,page size and flag to set two side print. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The path to the file on the disk, which the booklet should be created from. - The path to the file on the disk, which the booklet should be saved into. - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Create booklet with two sides. - PdfDocument doc = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",new SizeF(300, 500), true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Create booklet with two sides. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",New SizeF(300, 500), true) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class with source PDF path,destination file name and page size. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The path to the file on the disk, which the booklet should be created from. - The path to the file on the disk, which the booklet should be saved into. - Size of the page. - - The initialized PDF document, which could be saved. - - - - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet("SourceDocument.pdf","Booklet.pdf",new SizeF(300, 500)); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500)) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class , page size and - flag to set two side print. - - The . - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - - The initialized PDF document, which could be saved. - - - - //Load a PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(ldoc, new SizeF(300, 500), false); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - ldoc.Close(true); - - - 'Load a PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(ldoc, New SizeF(300, 500), False) - 'Save the document. - doc.Save("Booklet.pdf") - 'Close the document. - doc.Close(True) - ldoc.Close(True) - - - - - - - - Initializes a new instance of the class. - - The - Size of the page. - if set to true if the result in document should be printed - on both sides of paper. - The margin value for generated PDF document. - The initialized PDF document, which could be saved. - - - //Loads an existing document. - PdfLoadedDocument srcDoc = new PdfLoadedDocument("sourceDoc.pdf"); - //Specify the margin. - PdfMargins margin = new PdfMargins(); - margin.All = 10; - //Creates a booklet from the given PDF document. - PdfDocument doc = PdfBookletCreator.CreateBooklet(srcDoc,new SizeF(300, 500), false,margin); - //Save the document. - doc.Save("Booklet.pdf"); - //Close the documents. - doc.Close(true); - srcDoc.Close(true); - - - 'Loads an existing document. - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - 'Specify the margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 10 - 'Creates a booklet from the given PDF document. - Dim doc As PdfDocument = PdfBookletCreator.CreateBooklet(srcDoc,New SizeF(300, 500), False,margin) - 'Save the document - doc.Save("Booklet.pdf") - 'Close the documents. - doc.Close(True) - srcDoc.Close(True) - - - - - - - - Gets the next pair of page indeces. - - The current iteration index. - The pages count. - if set to true if the result in document should be printed - on both sides of paper. - - An array of integers that holds the indices. - - - - - Represents names dictionary of the document's catalog entry. - - Interface - - - - Internal variable to store collection of attachments. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The root. - - - - Gets the named object from a tree. - - The tree root. - The name. - The named object. - - - - Finds the name in the tree. - - The current. - The name. - The object specified by its name or null. - - - - Gets the proper kid from an array. - - The current node. - The name we're looking for. - The proper kid. - The name should be within the kid limits. - - - - Checks the limits of the named tree node. - - The kid. - The name. - Returns true if the kid should have the name (the name is within its limits). - - - - Merges the embedded name trees. - - The names. - - - - Appends the list of embedded file dictionaries. - - The list. - - - - Gets the node left limit. - - The node. - The node left limit. - - - - Appends the objects to the node of the name tree. - - Name of the base. - The node. - The embedded. - if set to true the limits should be updated. - - - - Generates the list of embedded file dictionaries. - - The list of embedded file dictionaries. - - - - Collects the objects. - - The leaf node. - The array. - - - - Clear catalog names. - - - - - Gets or sets the embedded files. - - The embedded files. - - - - Gets the destinations. - - - - - Gets the element. - - - - - - Holds info about current base node and its current child. - - - - - Internal variable to store Dictionary entry. - - - - - Internal variable to store index value. - - - - - Internal variable to store dictionary entries count. - - - - - Internal variable to store Kids value. - - - - - Initializes a new instance of the class. - - The node. - - - - Initializes a new instance of the class. - - The index. - The count. - - - - Represent common properties of PdfDocument and PdfLoadedDocument classes. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft; - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - doc.Save("ViewerPreferences.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - doc.Save("ViewerPreferences.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Collection of the main objects. - - - - - internal variable to store locked array - - - - - Security properties. - - - - - Object that is saving currently. - - - - - Document catlog. - - - - - Cross table. - - - - - Document information and properties. - - - - - String contain either user or owner password. - - - - - Dictionary used to get the collection of images for extraction. - - - - - Desired level of the new stream compression. - - - - - Specifies file structure. - - - - - A list of the objects that have to be disposed after document closing. - - - - - Internal variable to store if memory optimization should be done. - - - - - Internal varible to store portfolio - - - - - Internal variable to store OCG groups. - - - - - Internal variable to store position. - - - - - Internal variable to store order position. - - - - - Internal variable to store on position. - - - - - Internal variable to store off position. - - - - - Internal variable to store layer order. - - - - - Internal variable to store visible layers. - - - - - Internal variable to store invisible layers. - - - - - Internal variable to store Sub Layers. - - - - - Internal variable to store Sub Layers Position. - - - - - Stores the array of Print layer references - - - - - Specifies the document should be compressed in best. - - - - - Specifies the document is merging. - - - - - Specifies the collection of layer in document - - - - - If PDF is set as tagged, initializes StructTree in the catalog. - - - - - - - Merges the specified source documents and return destination document. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The destination document, where the other documents are merged into. - If it's null a new document object will be created. - The source documents. - The document containing merged documents. - - - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - // Source PDF documents - string[] source = { "Src1.pdf", "Src2.pdf" }; - //Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, source); - destDoc.Save("Merge.pdf"); - - - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - ' Source PDF documents - Dim source() As String = { "Src1.pdf", "Src2.pdf" } - 'Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, source) - destDoc.Save("Merge.pdf") - - - Class - - - - Merges the PDF documents specified by the paths. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The array of string paths. - A new PDF document containing all merged documents. - - - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - // Source PDF documents - string[] source = { "Src1.pdf", "Src2.pdf" }; - //Merge the source pdf document. - destDoc = PdfDocument.Merge(source); - destDoc.Save("Merge.pdf"); - - - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - ' Source PDF documents - Dim source() As String = { "Src1.pdf", "Src2.pdf" } - 'Merge the source pdf document. - destDoc = PdfDocument.Merge(source) - destDoc.Save("Merge.pdf") - - - Class - - - - Merges the specified dest. - - The destination document. - The source document. - The merged document - - - // Source document. - PdfLoadedDocument srcDoc = new PdfLoadedDocument("Src1.pdf"); - // Destination PDF document - PdfDocument destDoc = new PdfDocument(); - //Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, srcDoc); - destDoc.Save("Merge.pdf"); - - - ' Source document. - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("Src1.pdf") - ' Destination PDF document - Dim destDoc As PdfDocument = New PdfDocument() - 'Merge the source pdf document. - PdfDocumentBase.Merge(destDoc, srcDoc) - destDoc.Save("Merge.pdf") - - - Class - - - - Adds an object to a collection of the objects that will be disposed during document closing. - - The object that will be disposed during document closing. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - Image img = Image.FromFile("input.png"); - PdfImage pdfImg = new PdfBitmap(img); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("DisposeOnClose.pdf"); - // Dispose the Img object along with the document. - doc.DisposeOnClose(img); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim img As Image = Image.FromFile("Logo.png") - Dim pdfImg As PdfImage = New PdfBitmap(img) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("DisposeOnClose.pdf") - ' Dispose the Img object along with the document. - doc.DisposeOnClose(img) - 'Close the document - doc.Close(True) - - - Class - Class - Class - - - - Saves the document to the specified filename. - - The name of the file where to save the document. It can be a full path or a relative path. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("SaveExample.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("SaveExample.pdf") - - - - - - Saves the document into a HTTP response stream. - - The name of the document. - The HTTP response stream object. - The type of the reading document. - - If a document containing digital signature needs to be saved then - the destination stream must support seeking, otherwise an exception will be raised. - Since the HTTP response stream does not support seeking please write the document to a memory stream first and then flush it to the destination stream to avoid raising an exception. - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - doc.Save("SaveExample.pdf", Response, HttpReadType.Open); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - doc.Save("SaveExample.pdf", Response, HttpReadType.Open) - 'Close the document - doc.Close(True) - - - Class - Class - - - - Saves the document into a HTTP response stream. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - The stream where to save the PDF document. - The HTTP response stream object. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - MemoryStream stream = new MemoryStream(); - // Save the document as a stream - doc.Save(stream, Response); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - Dim stream As MemoryStream = New MemoryStream() - ' Save the document as a stream - doc.Save(stream, Response) - 'Close the document - doc.Close(True) - - - Class - Class - - - - Closes the document. Releases all common resources. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document - doc.Save("Close.pdf"); - //Close the document - doc.Close(); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document - doc.Save("Close.pdf") - ' Closes the document - doc.Close() - - - Class - Class - - - - Closes the document. - - if set to true the document should close its stream as well. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document - doc.Save("Close.pdf"); - // Closes the document completely. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document - doc.Save("Close.pdf") - ' Closes the document completely. - doc.Close(True) - - - Class - Class - - - - Saves the document to the specified output stream. - - The stream object where PDF document will be saved. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200); - // Save the document as a stream - MemoryStream stream = new MemoryStream(); - doc.Save(stream); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200) - ' Save the document as a stream - Dim stream As MemoryStream = New MemoryStream() - doc.Save(stream) - - - Class - Class - - - - Imports the specified page into the current document pages collection - - The loaded document to be imported. - The page to be inserted. - The page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPage(srcDoc, srcDoc.Pages[0]); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPage(srcDoc, srcDoc.Pages(0)) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports the loaded document's page index to the current document. - - The loaded document to be imported. - Index of the page. - The page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPage(srcDoc, 0); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPage(srcDoc, 0) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports a page range from a loaded document to the current document - - The loaded document to be imported. - The start page index. - The end page index. - The last created page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Imports a page range from a loaded document to the current document - - The loaded document to be imported. - The start page index. - The end page index. - Gets value whether to import bookmarks from the imported page. - The last created page in the target document. - The loaded document must remain open until the current document is saved - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Importing pages from source document without bookmarks. - doc.ImportPageRange(srcDoc, 0, 2, false); - doc.Save("ImportPages.pdf"); - //Close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Importing pages from source document. - doc.ImportPageRange(srcDoc, 0, 2, true) - doc.Save("ImportPages.pdf") - 'Close both the instance - doc.Close(True) - srcDoc.Close(True) - - - - - - Appends the loaded document given as parameter to the current document. - - The loaded document to be imported. - The appended loaded document must remain open until the current document is saved. - - - // Source document - PdfLoadedDocument srcDoc = new PdfLoadedDocument("SrcDocument.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Appending the document with source document. - doc.Append(srcDoc); - // Save the document. - doc.Save("Append.pdf"); - //close both the instance - doc.Close(true); - srcDoc.Close(true); - - - ' Source document - Dim srcDoc As PdfLoadedDocument = New PdfLoadedDocument("SrcDocument.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Appending the document with source document. - doc.Append(srcDoc) - ' Save the document. - doc.Save("Append.pdf") - 'Close bothe the instance - doc.Close(True) - srcDoc.Close(True) - - - Class - Class - - - - Checks whether the PDF document was encrypted. - - True if the document was encrypted. - - - - Gets the form. - - The proper PdfForm instance. - - - - Sets the main object collection. - - The main object collection. - Allows to use null values as the parameter, - which causes assigning null value to the variable. That's used for clearing. - - - - Sets the security object. - - The security. - Allows to set null. - - - - Sets the cross table. - - The cross table. - - - - Sets the catalog. - - The catalog. - - - - - Raises DocumentSaved event. - - Event arguments. - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - Clones pages and their resource dictionaries and adds them into the document. - - The loaded document. - The page being cloned. - The destinations. - page - - - - Checks form fields are connected with the page. - - The loaded document. - The page. - An array where the fields connected to the page are stored. - - - - Merges the attachments. - - The loaded document. - This method merges only named attachments. - - - - Get the Named Destination - - - - - - - - Get the Destination - - - - - - - - Exports the bookmarks to the new document. - - The loaded document. - The bookmarks. - The page correspondance dictionary. - - - - Marks the bookmarks pointing to the page for exporting. - - The page bookmarks. - The bookmarks. - - - - Marks the bookmarks pointing to the page for exporting. - - The page bookmarks. - The bookmarks. - - - - Fixes the destinations. - - The page correspondance. - The destinations. - - - - - Event. Rises when the document has been saved. - - - - - Gets the security features of the document like encryption. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Reading security settings of the document - PdfSecurity security = doc.Security; - doc.Save("Security.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Reading security settings of the document - Dim security As PdfSecurity = doc.Security - doc.Save("Security.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Gets a value indicating whether this instance is security granted. - - - true if this instance is security granted; otherwise, false. - - - - - Gets or sets document's information and properties such as document's title, subject, keyword etc. - - - To know more about refer this link . - - - - //Create new pdf document. - PdfDocument document = new PdfDocument(); - //Set the document author property. - document.DocumentInformation.Author = "Syncfusion"; - //Get the document author property value. - string author = document.DocumentInformation.Author; - //Save and close the document. - document.Save("output.pdf"); - document.Close(true); - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("output.pdf"); - //Get the loaded document author property value. - author = ldoc.DocumentInformation.Author; - //Save and close the document. - ldoc.Save("output.pdf"); - ldoc.Close(true); - - - 'Create new pdf document. - Dim document As PdfDocument = New PdfDocument() - 'Set the document author property. - document.DocumentInformation.Author = "Syncfusion" - 'Get the document author property value. - Dim author As String = document.DocumentInformation.Author - 'Save and close the document. - document.Save("output.pdf") - document.Close(True) - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("output.pdf") - 'Get the loaded document author property value. - author = ldoc.DocumentInformation.Author - 'Save and close the document. - ldoc.Save("output.pdf") - ldoc.Close(True) - - - Class - Class - - - - Gets or sets a viewer preferences. This property is used for presenting the PDF document in a viewer. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft; - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - doc.Save("ViewerPreferences.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageLayout = PdfPageLayout.TwoPageLeft - doc.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - doc.Save("ViewerPreferences.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - - - - Gets or sets the PDF document compression level. By default the compression level is None - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set the document`s compression level. - doc.Compression = PdfCompressionLevel.Best; - //Creates a new page - PdfPage page = doc.Pages.Add(); - doc.Save("Compression.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set the document`s compression level. - doc.Compression = PdfCompressionLevel.Best - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - doc.Save("Compression.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - - - - Gets or sets the internal structure of the PDF document. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference Type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the pdf version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference Type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' set the pdf version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - - - Class - Class - - - - Gets or sets the portfolio information to the Document. - - - To know more about refer this link . - - - - // Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Creating new portfolio - document.PortfolioInformation = new PdfPortfolioInformation(); - //setting the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile; - //Creating the attachment - PdfAttachment pdfFile = new PdfAttachment("Input.pdf"); - pdfFile.FileName = "EmployeeDetails.pdf"; - //Setting the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile; - //Adding the attachment into document - document.Attachments.Add(pdfFile); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Creating new portfolio - document.PortfolioInformation = New PdfPortfolioInformation() - 'setting the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile - 'Creating the attachment - Dim pdfFile As New PdfAttachment("Input.pdf") - pdfFile.FileName = "EmployeeDetails.pdf" - 'Setting the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile - 'Adding the attachment into document - document.Attachments.Add(pdfFile) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - Gets a value indicating whether the document was encrypted. - - - - - Gets a value indicating whether the document was Pdf viewer document. - - - - - Gets the PDF objects collection, which stores all objects and references to it.. - - - - - Gets or sets the current saving object number. - - - - - Gets the cross-reference table. - - - - - Gets the PDF document catalog. - - - - - Gets a list of the objects that have to be disposed after document closing. - - - - - Gets the number of pages. - - - - - Gets or sets whether to optimize memory. - - Optimization will be effective only with merge, append and import functions. - Only memory will be optimized, different in time occur based on the document size. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Enable memory optimization. - document.EnableMemoryOptimization = true; - //Merge source document - PdfDocument.Merge(document, "Source.pdf"); - //Save and close the pdf document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Enable memory optimization. - document.EnableMemoryOptimization = True - 'Merge source document. - PdfDocument.Merge(document, "Source.pdf") - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets the collection of PdfLayer from the PDF document - - - - - Delegate. Is used for raising events after document saving. - - - - - Holds info about current node. - - - - - Internal variable to store index value. - - - - - Internal variable to store Bookmark. - - - - - Internal variable to store ArrayList. - - - - - Initializes a new instance of the class. - - The bookmark base. - The kids. - - - - This class represents a set of the properties that define the internal structure of PDF file. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - //Create new instance for PDF file structure. - PdfFileStructure structure = new PdfFileStructure(); - //Set the file structure cross reference type. - structure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Set the document`s file structure. - doc.FileStructure = structure; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create new instance for PDF file structure. - Dim pdfstructure As PdfFileStructure = New PdfFileStructure() - 'Set the file structure cross reference type - pdfstructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Set the document`s file structure - doc.FileStructure = pdfstructure - 'Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - Class - Class - - - - the version of the file. - - - - - The type of the cross-reference. - - - - - Indicates the file format. - - - - - Incremental operator bool value - - - - - Tagged bool value - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - PdfFileStructure structure = new PdfFileStructure(); - //Set the document`s cross reference type - structure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Set the PDF version. - doc.FileStructure = structure; - //Draw the text. - page.Graphics.DrawString("File structure", new PdfStandardFont(PdfFontFamily.Courier, 12), PdfBrushes.Green, new PointF(10, 10)); - //Save and close the document. - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new instance for PDF file structure. - Dim pdfstructure As PdfFileStructure = New PdfFileStructure() - 'Set the document`s cross reference type - pdfstructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Set the PDF version. - doc.FileStructure = pdfstructure - 'Draw the text. - page.Graphics.DrawString("File structure", New PdfStandardFont(PdfFontFamily.Courier, 12), PdfBrushes.Green, New PointF(10, 10)) - 'Save and close the document. - doc.Save("FileStructure.pdf") - doc.Close(True) - - - Class - Class - enum. - - - - Notifies if TaggedPDF property is changed. - - - - - Gets or sets the version of the PDF document. - - The document version. - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether [incremental update]. - - true if [incremental update]; otherwise, false. - - - // Load an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Sets the incremental update as True - lDoc.FileStructure.IncrementalUpdate = true; - //Create a new page - lDoc.Pages.Add(); - // Saves the document - lDoc.Save("FileStructure.pdf"); - lDoc.Close(true); - - - ' Load an existing document - Dim lDoc As New PdfLoadedDocument("SourceDoc.pdf") - ' Sets the incremental update as True - lDoc.FileStructure.IncrementalUpdate = True - 'Create a new page - lDoc.Pages.Add() - ' Saves the document - lDoc.Save("FileStructure.pdf") - lDoc.Close(True) - - - - - - Gets or sets the type of PDF cross-reference. - - Please see the description of for more details. - - - //Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - // Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6; - // Save the document - doc.Save("FileStructure.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s cross reference type - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - ' Set the PDF version - doc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the document - doc.Save("FileStructure.pdf") - doc.Close(True) - - - - - - Gets or sets the value indicating the format of the file. - - - - - Gets the value indicating whether the PDF document is tagged one or not. - - If true PDF document is tagged, otherwise false. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - bool tagged = document.FileStructure.TaggedPdf; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - Dim tagged As Boolean = document.FileStructure.TaggedPdf - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - The class represents the creation of PDF portfolio - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Create new portfolio. - document.PortfolioInformation = new PdfPortfolioInformation(); - //Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details; - //Create portfolio schema. - PdfPortfolioSchema schema = new PdfPortfolioSchema(); - //Create portfolio schema field. - PdfPortfolioSchemaField fromField = new PdfPortfolioSchemaField(); - fromField.Name = "From"; - fromField.Type = PdfPortfolioSchemaFieldType.String; - fromField.Order = 1; - fromField.Visible = true; - fromField.Editable = false; - schema.AddSchemaField(fromField); - PdfPortfolioSchemaField toField = new PdfPortfolioSchemaField(); - toField.Name = "To"; - toField.Type = PdfPortfolioSchemaFieldType.String; - toField.Order = 2; - toField.Visible = true; - toField.Editable = false; - schema.AddSchemaField(toField); - //Add schema to the portfolio. - document.PortfolioInformation.Schema = schema; - //Create attachment. - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set schema field attributed. - pdfFile.PortfolioAttributes = new PdfPortfolioAttributes(); - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven"); - pdfFile.PortfolioAttributes.AddAttributes("To", "John"); - //Add attachment to document. - document.Attachments.Add(pdfFile); - //Add new page to document. - document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Create new portfolio. - document.PortfolioInformation = New PdfPortfolioInformation() - 'Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details - 'Create portfolio schema. - Dim schema As New PdfPortfolioSchema() - 'Create portfolio schema field. - Dim fromField As New PdfPortfolioSchemaField() - fromField.Name = "From" - fromField.Type = PdfPortfolioSchemaFieldType.[String] - fromField.Order = 1 - fromField.Visible = True - fromField.Editable = False - schema.AddSchemaField(fromField) - Dim toField As New PdfPortfolioSchemaField() - toField.Name = "To" - toField.Type = PdfPortfolioSchemaFieldType.[String] - toField.Order = 2 - toField.Visible = True - toField.Editable = False - schema.AddSchemaField(toField) - 'Add schema to the portfolio. - document.PortfolioInformation.Schema = schema - 'Create attachment. - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set schema field attributed. - pdfFile.PortfolioAttributes = New PdfPortfolioAttributes() - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven") - pdfFile.PortfolioAttributes.AddAttributes("To", "John") - 'Add attachment to document. - document.Attachments.Add(pdfFile) - 'Add new page to document. - document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - - - - - - Internal variable to store value specifying document's catalog. - - - - - Internal variable to store dictionary; - - - - - internal variable to store schema of portfolio - - - - - internal variable to store view mode - - - - - internal varible to store startup attachment document - - - - - Initializes new instance of class - - - - - Initialize the new instance - - portfolio dictionary - - - - Initializes instance. - - - - - Gets or sets the collection of portfolio schema field - - the - - - - Gets and sets the view mode of the portfolio - - The represents visual mode of the files in portfolio - - - - Get and set the startup document of portfolio - - The , represents the attached documents - - - - Gets the element. - - - - - - The class represents attributes of attached files in the portfolio such as Title,Name,Author..etc - - - - - Internal variable to store dictionary; - - - - - Internal variable to store attribute keys - - - - - Internal variable to store attributes - - - - - Internal variable to store attributes - - - - - Initialize the instance of the class - - - - - Initialize the instance of the class - - - - - - Initializes instance. - - - - - Add the attributes into portfolio - - The attribute key such as name,date,author..etc - The attribute value - - - - Remove the attributes from the portfolio - - The attribute key - - - - Remove the attributes from the portfolio - - The attribute key - - - - Gets attribute keys - - The array of attribute keys - - - - Gets the element. - - - - - - The class represents the collection of schema attributes. - - - - - The class represents the collections of schema field - - - - - Internal variable to store dictionary; - - - - - Variable to store Schema field - - - - - internal variable to store field keys - - - - - Internal variable to store field collections - - - - - Initialize the instance of the class - - - - - Initialize the instance of the class - - - - - - used to add the schema field into schema dictionary - - The ,contains custom fields of the attached file - - - - used to remove the schema field from schema dictionary - - The field key - - - - used to retrieve the schema fields from schema dictionary - - The ,contains custom fields of the attached file - - - - Initializes instance. - - - - - Get the field keys from schema field - - The array of field keys - - - - Gets the element. - - - - - - The class represents the creation of schema filed - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Create new portfolio. - document.PortfolioInformation = new PdfPortfolioInformation(); - //Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details; - //Create portfolio schema. - PdfPortfolioSchema schema = new PdfPortfolioSchema(); - //Create portfolio schema field. - PdfPortfolioSchemaField fromField = new PdfPortfolioSchemaField(); - fromField.Name = "From"; - fromField.Type = PdfPortfolioSchemaFieldType.String; - fromField.Order = 1; - fromField.Visible = true; - fromField.Editable = false; - schema.AddSchemaField(fromField); - PdfPortfolioSchemaField toField = new PdfPortfolioSchemaField(); - toField.Name = "To"; - toField.Type = PdfPortfolioSchemaFieldType.String; - toField.Order = 2; - toField.Visible = true; - toField.Editable = false; - schema.AddSchemaField(toField); - //Add schema to the portfolio. - document.PortfolioInformation.Schema = schema; - //Create attachment. - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set schema field attributed. - pdfFile.PortfolioAttributes = new PdfPortfolioAttributes(); - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven"); - pdfFile.PortfolioAttributes.AddAttributes("To", "John"); - //Add attachment to document. - document.Attachments.Add(pdfFile); - //Add new page to document. - document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Create new portfolio. - document.PortfolioInformation = New PdfPortfolioInformation() - 'Set the view mode of the portfolio. - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Details - 'Create portfolio schema. - Dim schema As New PdfPortfolioSchema() - 'Create portfolio schema field. - Dim fromField As New PdfPortfolioSchemaField() - fromField.Name = "From" - fromField.Type = PdfPortfolioSchemaFieldType.[String] - fromField.Order = 1 - fromField.Visible = True - fromField.Editable = False - schema.AddSchemaField(fromField) - Dim toField As New PdfPortfolioSchemaField() - toField.Name = "To" - toField.Type = PdfPortfolioSchemaFieldType.[String] - toField.Order = 2 - toField.Visible = True - toField.Editable = False - schema.AddSchemaField(toField) - 'Add schema to the portfolio. - document.PortfolioInformation.Schema = schema - 'Create attachment. - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set schema field attributed. - pdfFile.PortfolioAttributes = New PdfPortfolioAttributes() - pdfFile.PortfolioAttributes.AddAttributes("From", "Steven") - pdfFile.PortfolioAttributes.AddAttributes("To", "John") - 'Add attachment to document. - document.Attachments.Add(pdfFile) - 'Add new page to document. - document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - - - - - - variable to store editable value - - - - - Variable to store name of the schema field - - - - - variable to store the order of the schema field - - - - - variable to store visibility of schema field - - - - - Internal variable to store dictionary; - - - - - initialize the instance of the class - - - - - initialize the instance of the class - - schema field dictionary - - - - Initializes instance. - - - - - Gets or Sets the whether the value of the schema field is editable - - if true editable,else can't editable - - - - Gets or Sets the name of the schema field - - The name of the schema field - - - - Gets or sets the order of the Schema field. - - the numeric value show the order of the field - - - - Gets or Sets the schema field Type - - The provides the data type of the field - - - - Gets or Sets the visibility of the Schema field - - if true the filed is visible,otherwise field is not visible - - - - Gets the element. - - - - - - Specifies the type of PDF file format. - - - - - Specifies plain PDF file format. - - - - - Specifies Linearized PDF file format. - - - - - Specifies the different way of presenting the document at the client browser. - - - To know more about using HttpReadType refer this - link. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Load an existing image. - PdfBitmap bmp = new PdfBitmap("Logo.png"); - //Draw the image in PDF page. - page.Graphics.DrawImage(bmp, 20, 20, 100, 200); - //Open the document in browser after saving it. - doc.Save("Sample.pdf", Response, HttpReadType.Open); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Load an existing image. - Dim bmp As PdfBitmap = New PdfBitmap("Logo.png") - 'Draw the image in PDF page. - page.Graphics.DrawImage(bmp, 20, 20, 100, 200) - 'Open the document in browser after saving it. - doc.Save("Sample.pdf", Response, HttpReadType.Open) - - - Class - - Class - - - - Send the generated document to the client browser and will open document inside browser or using application associated with .pdf extension externally. - - - - - Send the generated document to the client browser and presents an option to save the document to disk or open inside the browser. - - - - - Specifies the available PDF versions to save the PDF document. - - - Default Value is Version1_5 - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Set the pdf version as Version1_7. - doc.FileStructure.Version = PdfVersion.Version1_7; - //Save the PDF document to disk. - doc.Save("FileStructure.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Set the pdf version as Version1_7. - doc.FileStructure.Version = PdfVersion.Version1_7 - 'Save the PDF document to disk. - doc.Save("FileStructure.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - PDF version 1.0. - - - - - PDF version 1.1. - - - - - PDF version 1.2. - - - - - PDF version 1.3. Adobe Acrobat 4. - - - - - PDF version 1.4. Adobe Acrobat 5. - - - - - PDF version 1.5. Adobe Acrobat 6. - - - - - PDF version 1.6. Adobe Acrobat 7. - - - - - PDF version 1.7. Adobe Acrobat 8. - - - - - Specifies the type of the PDF cross-reference. - - Default value is CrossReferenceStream - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Add a page in the PDF document. - PdfPage page = doc.Pages.Add(); - //Set the CrossReferenceType as CrossReferenceStream. - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream; - //Save the PDF document to disk. - doc.Save("FileStructure.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page in the PDF document. - Dim page As PdfPage = doc.Pages.Add() - 'Set the CrossReferenceType as CrossReferenceStream. - doc.FileStructure.CrossReferenceType = PdfCrossReferenceType.CrossReferenceStream - 'Save the PDF document to disk. - doc.Save("FileStructure.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - The cross-reference table contains information that permits random access to indirect objects within the file so that the entire file need not be read to locate any particular object. The structure is useful for incremental updates, since it allows a new cross-reference section to be added to the PDF file, containing entries only for objects that have been added or deleted. Cross-reference is represented by cross-reference table. The cross-reference table is the traditional way of representing reference type. - - - - - Cross-reference is represented by cross-reference stream. Cross-reference streams are stream objects, and contain a dictionary and a data stream. - This leads to more compact representation of the file data especially along with the compression enabled. - This format is supported by PDF 1.5 version and higher only. - - - - - Specifies the Pdf document's Conformance-level. - - - - Default value is None. - To know more about PDF conformance refer this - link. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create a 'Times New Roman' font. - Font font = new Font("Times New Roman", 10); - //Create the PDF font instance. - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, new PointF(10, 10)); - //Save the document to disk. - document.Save("ConformanceLevel.pdf"); - //Close the document. - //document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - 'Create a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create a 'Times New Roman' font - Dim font As Font = New Font("Times New Roman", 10) - 'Create the PDF font instance. - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document to disk. - document.Save("ConformanceLevel.pdf") - 'Close the document. - document.Close(True) - - - Class - Namespace - Class - - - - Specifies Default / No Conformance. - - - - - This PDF/A ISO standard [ISO 19005-1:2005] is based on Adobe PDF version 1.4 - and This Level B conformance indicates minimal compliance to ensure that the - rendered visual appearance of a conforming file is preservable over the long term. - - - - - This PDF/X-1a:2001 ISO standard [ISO 15930-1] is based on Adobe PDF version 1.3 - which uses only CMYK + Spot Color and this compliance to ensure that the - contents will be reliably reproduced in the repress environment. - - - - - Specifies the different page scaling option that shall be selected when a print dialog is displayed for this document. - - Default value is AppDefault. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set AppDefault mode as page`s scaling mode. - document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault; - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save documen to disk. - document.Save("ScalingMode.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set AppDefault mode as page`s scaling mode. - document.ViewerPreferences.PageScaling = PageScalingMode.AppDefault - 'Add a page in the PDF document. - Dim page As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save document to disk. - document.Save("ScalingMode.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Indicates the conforming reader�s default print scaling. - - - - - Indicates no page scaling. - - - - - indicates the type of the portfolio schema field. - - - - - indicates the type of the portfolio view mode. - - - - - Decodes the ASCII85 encoded byte[] - - encoded byte[] - decoded byte[] - - - - asciihexdecode using our own implementation - - - - - - - - local variable to store the value true if image is used for extraction - - - - - Converts DeviceCMYK colorspace to RGB colourspace - - - - - Converts the CMYK values to RGB - - - - - Process the ColorSpace property in the Image dictionary - - - - - To Apply the ICCBased Colorspace in the Image Stream - - - - - Skips the escape sequence from the given input string - - String with the escape sequence - String without escape sequence - - - - - - - - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Decodes the Flate encoded stream - - Encoded stream - Decoded Stream - - - - Decodes JBIG2 encoded input stream - - Input image stream - Returns the output as image. - - - - Merges the stream of the two images - - Stream of the original image - Encoded stream of the mask image - Stream of the merged image - - - - sRgbToScRgb conversion - - Byte value of the color - Equivalent float value - - - - ScRgbTosRgb conversion - - Float value of the color - Equivalent byte value - - - - Decodes the stream of the mask image in the PDF document - - Encoded stream from the PDF document - Decoded stream of the image - - - - Decodes the stream based on the predictor values - - Predictor from the decode params - Colors from the decode params - Columns from the decode params - Stream the encoded image - Decoded stream - - - - Converts YCCK colorspace to RGB colorspace - - Byte array of YCCK image - Byte array of RGB image - - - - Converts YCC colorspace image to RGB image - - Byte array of YCC image - Byte array of RGB image - - - - Render the RGB Pixels from the Image Bytes - - Image Bytes which converts into Pixels - - - - - Gets or sets "true" when an image is used for Extraction. - - - - - Holds the stream of the mask image associated with the original image - - - - - Gets BitsPerComponent value of the original image - - - - - Occurs prior to the rendering of every image in the document - - - ImagePreRenderEventArgs - - - - Custom event argument class used to notify before image is rendered in the viewer. - - - - - Gets or sets the content stream of the image. - - - - - Gets or sets height of the image. - - - - - Gets or sets width of the image. - - - - - Returns filter names used in the image. - - - - - - - - - - - white run lengths - - - - black run lengths - - - - - - - - - - - - - - - - - - Display information found in this COD marker segment - - - Display information found in this COC marker segment - - - Display information found in this RGN marker segment - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Decodes the image stream in the PDF document into an image - - - - - Sets the fields associated with the TIFF image - - Number of fields - Value of the field - Name of the TIFF tag - Type of the tag value - - - - Writes the header to the TIFF image - - Specifies the header of the TIFF image - - - - Writes the list of fields associated with the TIFF image - - List of TIFF fields - - - - Writes short value into the TIFF stream - - Short value to be written - - - - Writes integer value into the TIFF stream - - Integer value to be written - - - - Structure of the TIFF header - - - - - Size of the byte order of the tiff image - - - - - TIFF version number - - - - - byte offset to first directory - - - - - Tag entry to the TIFF stream - - - - - Represents the TIFF tag - - - - - Represents the type of the TIFF tag - - - - - number of items; length in spec - - - - - byte offset to field data - - - - - Width of the image in pixels - - - - - Height of the image in pixels - - - - - Bits per channel (sample). - - - - - Compression technique - - - - - Photometric interpretation. - - - - - Offsets to data strips. - - - - - Samples per pixel. - - - - - Bytes counts for strips. - - - - - 16-bit unsigned integer. - - - - - 32-bit unsigned integer. - - - - - The Syncfusion.Pdf.Exporting namespace contains classes to perform export operations. - - - - - Represents the utility class to store information about Images and its location. - - - - //Load PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); - //Gets ImageInfo from the first page. - PdfImageInfo[] imageInfo = document.Pages[0].ImagesInfo; - //Gets the Image Boundary location. - RectangleF imageBounds = imageInfo[0].Bounds; - //Gets the Image. - Image image = imageInfo[0].Image; - //Gets the Image index. - int imageIndex = imageInfo[0].Index; - //Closing the PDF document. - document.Close(true); - - - 'Load PDF document. - Dim document As New PdfLoadedDocument("Input.pdf") - 'Gets ImageInfo from the first page. - Dim imageInfo As PdfImageInfo() = document.Pages(0).ImagesInfo - 'Gets the Image Boundary location. - Dim imageBounds As RectangleF = imageInfo(0).Bounds - 'Gets the Image. - Dim image As Image = imageInfo(0).Image - 'Gets the Image index. - Dim imageIndex As Integer = imageInfo(0).Index - 'Closing the PDF document. - document.Close(True) - - - - - - Local Variable to store the image bounds. - - - - - Local Variable to store the image. - - - - - Local Variable to store the image index. - - - - - Internal variable to store the image name. - - - - - Internal variable to store the matrix. - - - - - Internal variable to store the image name. - - - - - Internal variable , it identifies the image is extracted or not. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Image bounds - Image - Image index - - - - Initializes a new instance of the class. - - Image bounds - Image - Image index - Image name - - - - Gets the Image Boundary location. - - - - - Gets the Image. - - - - - Gets the Image index. - - - - - Gets the image name. - - - - - Gets the matrix. - - - - - Gets the matrix. - - - - - Returns true, if soft masking is applied. Set to true when the image is undergone soft masking. - - - - - Returns true, if image masking is applied. Set to true when the image is undergone image masking. - - - - - Returns true, when the image property in the PDF document is set to undergo interpolation. - - - - - Gets or sets the image is extracted or not. - - - - - Represents the utility class for extracting text from the stream. - - - - - Internal variable to store the number of characters. - - - - - variable to hold font name and difference arrary. - - - - - variable to hold decoded Character - - - - - Initializes a new instance of the class. - - - - - Extracts text from the bytes. - - The byte array. - The Extracted Text. - - - - Extracts text from the bytes. - - The byte array. - type - The Extracted Text. - - - - Extracts text from the bytes. - - The byte array. - The Current Page Object. - Font Name Collection. - Font Reference Holder Colllection. - The Extracted Text. - - - - Extracts text from the bytes(True Type Font Documents). - - The byte array. - The Extracted Text. - - - - Extracts text from the bytes(Embed Fonts). - - The byte array. - The Current Page Object. - Font Name Collection. - Font Reference Holder Colllection. - The Extracted Text. - - - - Extracts text from Type0 - - The byte array. - The Extracted Text. - - - - Checks the token. - - The tokens. - The recent. - token - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Writes short value into the font stream - - Short value to be written - - - - Writes integer value into the font stream - - Integer value to be written - - - - Writes string value into the font stream - - String value to be written - - - - Write the bytes into the font stream - - byte array to be written - - - - Generate the font stream with respect to the font tables present in the entries - - list of font tables in the font - stream of the font - - - - Writes the header into the font stream - - Header information of the font - - - - Writes table entry into the font stream - - Table entry - - - - Writes short value into the font stream - - Short value to be written - - - - Writes integer value into the font stream - - Integer value to be written - - - - Writes string value into the font stream - - String value to be written - - - - Write the bytes into the font stream - - byte array to be written - - - - Calculates the search range of the font - - Number of tables in the font - Value of the search range - - - - Calculates the entry selector of the font - - Number of tables in the font - Value of the entry selector - - - - Calculates the range shift of the font - - Number of tables in the font - Search range of the font - Value of the range shift - - - - - - - Reads the header of the font - - - - - Reads the table part to get the details about the tables in the font - read - - - - Returns the id of the font table corresponding to the tag - - Font tag - Corresponding table ID - - - - Reads 4 bytes from the byte array - - Corresponding value - - - - Reads 8 bytes from the byte array - - Corresponding value - - - - Read 4 bytes from the byte array - - Corresponding string value - - - - Read 2 bytes from the byte array - - Corresponding integer value - - - - Separated the byte array corresponding to the table entry from the font stream - - Table ID - Byte array of the table - - - - Get table bytes - - - - - - - - Reads 4 bytes from the byte array - - Corresponding value - - - - Reads 8 bytes from the byte array - - Corresponding value - - - - Read 4 bytes from the byte array - - Corresponding string value - - - - Read 2 bytes from the byte array - - Corresponding integer value - - - - - - - Internal variable that holds cff glyphs - - - - - Takes in the encoded text, identifies the type of encoding used, decodes the encoded text, returns the decoded text. - - - Encoded string from the PDF document. - - - - Decoded string, human readable. - - - - - Decodes the octal text in the encoded text. - - The text encoded from the PDF document - Decoded text with replaced octal texts - - - - Decodes the HEX encoded string. - - - HEX encoded string. - - - Decoded string. - - - - - Extracts the font name associated with the string. - - - Font name. - - - - - Extracts the font style associated with the text string - - - Font style. - - - - - Extracts the font encoding associated with the text string - - - Font style. - - - - - Parsing the stream from the Adobe-Japan1-6.cidmap resource to create CIDMapTable - - CID map table resource - Adobe Japan CID map table - - - - Parse the Japanese character where the value is reference to another key in the Adobe Japan Cid Map Table - - mapped value which is a reference to another key - Mapped Character present in the Adobe Japan Cid Map table - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Decodes the Flate encoded stream - - Encoded stream - Decoded Stream - - - - Builds the mapping table that is used to map the decoded text to get the expected text. - - - A dictionary with key as the encoded element and value as the value to be mapped to. - - - - - Builds the mapping table that is used to map the decoded text to get the expected text. - - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Gets Latin Character - - The decodedCharacter. - decodedCharacter - - - - Takes in the decoded text and maps it with its corresponding entry in the CharacterMapTable - - decoded text - Expected text string - - - - Takes in the decoded text and maps it with its corresponding entry in the CharacterMapTable - - encoded text - Expected text string - - - - Method to remove the new line character - - Text with new line character - Text without new line character - - - - - Checks whether the specified character is Non-Printable character or not. - - The character to be verified as either Non-Printable or not - Returns true, if the specified character is Non-Printable character. Otherwise it returns false - - - - Gets or sets the value indicating whether the encoded text is hexa decimal string - - - - - Holds the font name associated with the text element - - - - - Holds the font style of the text to be decoded. - - - - - Gets and sets whether same font is denoted in more than one XObject. - - - - - Holds the font encoding associated with the text element - - - - - Extracts the pageResource from the page - - Page whose resouce is needed - pageResource of the given page - - - - Collects all the ExtendedGraphicsSatate elements in the pdf document - - containing all the resources of the document - dictionary of ExtGState elements - - - - Collects all the fonts in the page in a dictionary - - dictionary containing all the resources in the Xobjects - dictionary containing font name and the font - - - - Extracts the text from the page given - - page from which text is extracted - font used in the text - text in the page to be decoded - decoded text - - - - Collects all the fonts in the page in a dictionary - - dictionary containing all the resources in the page - page in which text is to be extracted - dictionary containing font name and the font - - - - Collects all the images in the pdf document - - containing all the resources of the document - dictionary of images - - - - Updates the resources in the page - - Existing page resources - Dictionary items to the updated - Updated page resource - - - - The class provides methods and properties to access the PDF page resources. - - - - - Returns if the FontCollection has same font face. - - if font present true, else false - - - - Initializes the new instance of the class - - - - - Adds the resource with the specified name. - - Name of the resource - Resource to add - - - - Returns if the key already exists. - - if key present true,else false - - - - Gets the PDF page resources. - - - - - Gets or sets the value associated with the key. - - - - - constant used in eexec and charset decode - - - - - constant used in eexec and charset decode - - - - - Represents the number of random bytes in stream to ignore - - - - - Variable to hold the glyph string and its glyph shapes - - - - - Variable to hold the character code and character - - - - - Variable to hold the font matrix - - - - - Variable to cff glyphs - - - - - needed so CIDFOnt0 can extend - - - - - Parse the difference encoding - - - - - Handle encoding for type1 fonts - - - - - parse the encoded part from a type 1 font - - - - - extract the subroutine data - - - - - Extract Font Data - - - - - extract bytestream with char data - - - - - Represents the graphics object - - - - - Variable to hold the font matrix - - - - - Variable to cff glyphs - - - - lookup table for names for type 1C glyphs - - - Lookup table to map values - - - lookup data to convert Expert values - - - - Variable to hold the glyph string and its glyph shapes - - - - - Variable to hold the font matrix - - - - - Variable to hold the character code and character - - - - - Variable to hold the already cached path - - - - - Variable to hold the globalBias value for glyphs - - - - - Gets or sets the glyph string and its shapes - - - - - Gets or sets the globalbias - - - - - Gets or sets the font matrix - - - - - Gets or sets the character code and character - - - - - Gets or sets the already cached path - - - - - Represents form's field with style parameters. - - Class - Class - Class - Class - - - - Represents field of the PDF document's interactive form. - - Interface - - - - Internal variable to store field's name. - - - - - Internal variable to store page. - - - - - Internal variable to store flags of the field. - - - - - Internal variable to store form. - - - - - Internal variable to store mapping name. - - - - - Internal variable to store value whether to export field's data. - - - - - Internal variable to store value whether the field is read only. - - - - - Internal variable to store value whether the field is required. - - - - - Internal variable to store tool tip. - - - - - Internal variable to store dictionary. - - - - - Form flatten. - - - - - Indicates if AutoFormat has to be removed. - - - - - Internal variable to store tab index of the field - - - - - Internal variable to store form field index - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Sets the form. - - The form. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Sets the proper name to the field. - - The name. - - - - Clones the field. - - The page. - The copy of the field. - - - - Defines default appearance. - - - - - Initializes this instance. - - - - - Handles the BeginSave event of the m_dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets the name of the .[Read-Only] - - The name. - - - - Gets the form of the .[Read-Only] - - The form. - - - - Gets or sets the mapping name to be used when exporting interactive form - field data from the document. - - The mapping name. - - - - Gets or sets a value indicating whether this is export. - - true if export; otherwise, false. - - - - Gets or sets a value indicating whether this field is read-only. - - if the field is read only, set to true. - - - - Gets or sets a value indicating whether this is required. - - true if required; otherwise, false. - - - - Gets or sets the tool tip. - - The tool tip. - - - - Gets the page of the field.[Read-Only] - - The page. - - - - Gets or sets a value indicating whether to flatten this . - - - - - Gets or sets the flags. - - The flags. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Gets or sets a value indicating whether to disable auto format this . - - - - - Get or set tag for the field - - - - - Gets or sets the tab index for form fields - - - - - Gets or sets the form field index - - - - - Gets the element. - - - - - - Internal variable to store color shift value. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store actions of the field. - - - - - Internal variable to store appearance template. - - - - - Internal variable to store back color. - - - - - Internal variable to store border pen. - - - - - Internal variable to store shadow brush. - - - - - Internal variable to store visibility of the field. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Removes the annotation from page. - - The page. - The widget. - - - - Adds the annotation to page. - - The page. - The widget. - - - - Bounds at loaded page. - - The page. - The value. - - - - Gets the bounds at loaded page. - - The page. - The rect. - The bounds of field. - - - - Initializes an instance. - - - - - Creates the border pen. - - - - - Creates the back brush. - - - - - Gets or sets the bounds of the field. - - The bounds. - - - - Gets or sets the location. - - The location. - - - - Gets or sets the size. - - The size. - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets the actions of the field.[Read-Only] - - The actions. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets a value indicating whether this is visible. - - true if visible; otherwise, false. - - - - Gets the right bottom beveled Shadow brush. - - The right bottom beveled Shadow brush. - - - - Gets the widget. - - The widget. - - - - Gets the appearance template. - - The appearance template. - - - - Gets the back brush. - - The back brush. - - - - Gets the border pen. - - The border pen. - - - - Represents class which draws form fields. - - - - - Internal variable to store white brush. - - - - - Internal variable to store black brush. - - - - - Internal variable to store silver brush. - - - - - Internal variable to store gray brush. - - - - - Internal variable to store cached pens. - - - - - Internal variable to store string format for check field symbols. - - - - - Draws a button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a pressed button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a button. - - The g. - The paint params. - The text. - The font. - The format. - - - - Draws a list box. - - The graphics. - The paint params. - The items. - The selected item index. - The font. - The string format. - - - - Draws a check box. - - The g. - The paint params. - The check symbol. - The state. - - - - Draws a check box. - - The g. - The paint params. - The check symbol. - The state. - The font. - - - - Draws a combo box. - - The g. - The paint params. - - - - Draws a combo box. - - The g. - The paint params. - - - - Draws the radio button. - - The g. - The paint params. - The check symbol. - The state. - - - - Draws the signature. - - The g. - The paint params. - - - - Draws the ellipseannotation. - - The g. - The paint params. - The x. - The y. - The width. - The height. - - - - Draws the rectangleannotation. - - The g. - The paint params. - The x. - The y. - The width. - The height. - - - - Draws the freetextannotation. - - The g. - The paint params. - The text. - The font. - The rect. - - - - Draws a border. - - The g. - The bounds. - The border pen. - The style. - Width of the border. - - - - Draws the round border. - - The g. - The bounds. - The border pen. - Width of the border. - - - - Draws a rectangular control. - - The g. - The paint params. - - - - Draws the left top shadow. - - The g. - The bounds. - The width. - The brush. - - - - Draws the right bottom shadow. - - The g. - The bounds. - The width. - The brush. - - - - Draws the round shadow. - - The g. - The paint params. - The state. - - - - Gets the pen. - - The color. - The width. - - - - - Gets the white brush. - - The white brush. - - - - Gets the black brush. - - The black brush. - - - - Gets the gray brush. - - The gray brush. - - - - Gets the silver brush. - - The silver brush. - - - - Gets the check box format. - - The check box format. - - - - Represents class with field's paint parameters. - - - - - Internal variable to store back brush. - - - - - Internal variable to store fore brush. - - - - - Internal variable to store border width. - - - - - Internal variable to store border pen. - - - - - Internal variable to store border style. - - - - - Internal variable to store bounds. - - - - - Internal variable to store shadow brush. - - - - - Rotation angle of the form fields. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The bounds. - The back brush. - The fore brush. - The border pen. - The style. - Width of the border. - The shadow brush. - - - - Gets or sets the back brush. - - The back brush. - - - - Gets or sets the fore brush. - - The fore brush. - - - - Gets or sets the border pen. - - The border pen. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the bounds. - - The bounds. - - - - Gets or sets the shadow brush. - - The shadow brush. - - - - Gets or Set the rotation angle. - - - - - - Represents form field with appearance custom support. - - Class - - - - Represents form's field with style parameters. - - Class - - - - Internal variable to store color shift value. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store field's font. - - - - - Internal variable to store actions of the field. - - - - - Internal variable to store appearance template. - - - - - Internal variable to store back color. - - - - - Internal variable to store color of background rectangle. - - - - - Internal variable to store fore pen. - - - - - Internal variable to store border pen. - - - - - Internal variable to store string format. - - - - - Internal variable to store shadow brush. - - - - - Internal variable to store visibility of the field. - - - - - Represents the visibility of the field - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the field should be placed. - The name. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Removes the annotation from page. - - The page. - The widget. - - - - Adds the annotation to page. - - The page. - The widget. - - - - Bounds at loaded page. - - The page. - The value. - - - - Gets the bounds at loaded page. - - The page. - The rect. - The bounds of field. - - - - Gets the font. If font is undefined default font will be used. - - font - - - - Initializes an instance. - - - - - Defines the default appearance. - - - - - Creates the border pen. - - - - - Creates the back brush. - - - - - Gets or sets the bounds. - - The bounds. - - - - Gets or sets the form field visibility - - - - - Gets or sets the location of the field. - - The location. - - - - Gets or sets the size of the field. - - The size. - - - - Gets or sets the color of the border. - - The color of the border. - - - - Gets or sets the color of the background. - - The color of the background. - - - - Gets or sets the color of the background rectangle of field. - - The color of the background rectangle of field. - - - - Gets or sets the color of the text. - - The color of the text. - - - - Gets or sets the width of the border. - - The width of the border. - - - - Gets or sets the highlighting mode. - - The highlighting mode. - - - - Gets or sets the font. - - The font. - - - - Gets or sets the text alignment. - - The text alignment. - This property is meaningful for fields containing variable text only. - (i.e. , and - ). - - - - - Gets the actions of the field.[Read-Only] - - The actions. - - - - Gets or sets the border style. - - The border style. - - - - Gets or sets a value indicating whether this is visible. - - true if visible; otherwise, false. - - - - Gets the right bottom beveled Shadow brush. - - The right bottom beveled Shadow brush. - - - - Gets the widget. - - The widget. - - - - Gets the appearance template. - - The appearance template. - - - - Gets the back brush. - - The back brush. - - - - Gets the border pen. - - The border pen. - - - - Gets the fore pen. - - The fore pen. - - - - Gets the string format. - - The string format. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Page - The name. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance. - - The template. - - - - Gets the appearance.[Read-Only] - - The appearance. - - - - Represents button field in the PDF form. - - This class is used to add the button field to the PDF form. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store button's caption. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the button. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Adds Print action to current button field. - Clicking on the specified button will trigger the Print Dialog Box. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - // Subscribing print action - submitButton.AddPrintAction(); - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - ' Subscribing print action - submitButton.AddPrintAction() - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Saves an instance. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Draws the pressed appearance. - - The template. - - - - Gets or sets the caption text. - - The caption text. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - // Creating action - PdfSubmitAction submitAction = new PdfSubmitAction("http://stevex.net/dump.php"); - submitAction.DataFormat = SubmitDataFormat.Html; - //Create submit button to transfer the values in the form - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - submitButton.Actions.MouseUp = submitAction; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - ' Creating action - Dim submitAction As PdfSubmitAction = New PdfSubmitAction("http://stevex.net/dump.php") - submitAction.DataFormat = SubmitDataFormat.Html - 'Create submit button to transfer the values in the form - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - submitButton.Actions.MouseUp = submitAction - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - - - - Represents check box field in the PDF form. - - This class is used to add the check box field to the PDF form. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents base class for field which can be in checked and unchecked states. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store check box' style. - - - - - Internal variable to store template for checked state. - - - - - Internal variable to store template for unchecked state. - - - - - Internal variable to store template for pressed checked state. - - - - - Internal variable to store template for presssed unchecked state. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Styles to string. - - The style. - String representation of the check box' style. - - - - Initializes an instance. - - - - - Saves an instance. - - - - - Draws the appearance. - - - - - Ensures the template is created. - - The template. - - - - Releases the template. - - - - - Draws this instance if it is flatten. - - - - - Gets or sets the style. - - The object specifies the style of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - //Set the value for the check box - checkBox.Style = PdfCheckBoxStyle.Circle; - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - 'Set the value for the check box - checkBox.Style = PdfCheckBoxStyle.Circle - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the checked template. - - The checked template. - - - - Gets or sets the unchecked template. - - The unchecked template. - - - - Gets or sets the pressed checked template. - - The pressed checked template. - - - - Gets or sets the pressed unchecked template. - - The pressed unchecked template. - - - - Internal variable to store value whether the check box is checked. - - - - - Initializes a new instance of the class with the specific page and name. - - The page where the fields should be placed. - The name of the check box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Saves an instance. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance of the field. - - - - - Gets or sets a value indicating whether this is checked. - - true if checked; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics graphics = page.Graphics; - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - //Set the value for the check box - checkBox.Checked = true; - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim graphics As PdfGraphics = page.Graphics - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - 'Set the value for the check box - checkBox.Checked = True - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents combo box field in the PDF Form. - - This class is used to create the combo box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents base class for form's list fields. - - Class - - - - Internal variable to store collection of items. - - - - - Internal variable to store selected item index. - - - - - Internal variable to store mulitple selected items. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Gets the list field items.[Read-Only] - - The items. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets the first selected item in the list. - - The index of the selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Set the first selected item in the list. - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Set the first selected item in the list. - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - The selected value. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Set the value of the first selected item in the list. - listBox.SelectedValue = "English"; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Set the value of the first selected item in the list. - listBox.SelectedValue = "English" - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets the first selected item in the list.[Read-Only] - - The selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - //Get the first selected item in the list. - PdfListFieldItem selectedItem = listBox.SelectedItem; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - 'Get the first selected item in the list. - Dim selectedItem As PdfListFieldItem = listBox.SelectedItem - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Gets or sets multiple selected indexes - - - - - Internal variable to store value whether the combobox is editable. - - - - - Initializes a new instance of the class with the specific page and name. - - Page of the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets a value indicating whether this is editable. - - true if editable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - - Internal variable to store duplicate field exception message. - - - - - Internal variable to store array of fields. - - - - - Private variable to store the form field names and thier index - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = new PdfFieldCollection(); - fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = New PdfFieldCollection() - fieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Interface - - - - Adds the specified field to the collection. - - The field item which is added in the PDF form. - The field to be added on the page. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - fieldCollection.Add(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - fieldCollection.Add(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Add the XFA form fields - - - - - - - Inserts the field at the specified index. - - The index of the field. - The field which should be inserted at the specified index. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - //Set the value for the check box - checkBox.Checked = true; - document.Form.Fields.Add(checkBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - // Insert the field at first position in the collection - fieldCollection.Insert(0, positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - 'Set the value for the check box - checkBox.Checked = True - document.Form.Fields.Add(checkBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - ' Insert the field at first position in the collection - fieldCollection.Insert(0, TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Determines whether field is contained within the collection. - - Check whether object is present in the field collection or not. - - true if field is present in the collection, otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - if (fieldCollection.Contains(positionComboBox as PdfField)) - MessageBox.Show("Already added field"); - else - fieldCollection.Add(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - If fieldCollection.Contains(TryCast(positionComboBox, PdfField)) Then - MessageBox.Show("Already added field") - Else - fieldCollection.Add(TryCast(positionComboBox, PdfField)) - End If - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the specific field. - - The object whose index is requested. - Index of the field in collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - document.Form.Fields.Add(positionComboBox); - int index = fieldCollection.IndexOf(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - document.Form.Fields.Add(positionComboBox) - Dim index As Integer = fieldCollection.IndexOf(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Removes the specified field in the collection. - - The object to be removed from collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - document.Form.Fields.Add(positionComboBox); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - fieldCollection.Remove(positionComboBox as PdfField); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - document.Form.Fields.Add(positionComboBox) - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - fieldCollection.Remove(TryCast(positionComboBox, PdfField)) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Removes field at the specified position. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfFieldCollection fieldCollection = document.Form.Fields; - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - document.Form.Fields.Add(positionComboBox); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - // Remove the first element - fieldCollection.RemoveAt(0); - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - document.Form.Fields.Add(positionComboBox) - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - ' Remove the first element - fieldCollection.RemoveAt(0) - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - - Adds the specified field. - - The field. - The new page. - Index of added field. - - - - Add the specified XFA form fields - - - - - - - Adds a field to collection. - - The field. - field. - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Inserts the loaded field. - - The field. - The new page. - field. - - - - Updates the references. - - The kids array. - The array. - The new array. - - - - Returns the form field index by validating the fieldnames - - - - - Gets the at the specified index.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the with their field name.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - fieldCollection["positionComboBox"].Flatten = true; - //Save the document to disk. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - fieldCollection("positionComboBox").Flatten = True - 'Save the document to disk. - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the items. - - The items. - - - - Gets the element. - - - - - - Represents interactive form of the PDF document. - - Please refer the UG docuemntation link for more details of working with forms. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - Internal variable to store form's collection of fields. - - - - - Internal variable to store resources. - - - - - Internal value indicating whether the form is read only. - - - - - Internal variable to store signature flags. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store value whether to generate default appearancesof the fields. - - - - - Indicates is form flatten or not. - - - - - Internal variable to store value whether to change the name of the field. - - - - - Holds the fields names of the form. - - - - - Internal values to hold form fields values. - - - - - Internal variable to ensure the form is XFA or not - - - - - Indicates if AutoFormat has to be removed. - - - - - Holds the reference of the loaded page and the cloned page - - - - - Internal field to check whether any field is modified. - - - - - field to check whether use DefaultEncoding - - - - - field to check whether use DefaultAppearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = new PdfForm(); - form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = New PdfForm() - form = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Clears PdfForm. - - - - - Checks for the flatten fields. - - - - - Deletes from pages. - - The field. - - - - Deletes the annotation from the page dictionary. - - The field. - - - - Gets the new name of the field. - - The name. - The field name. - - - - Specifies whether to set the default appearance for the form or not. - - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multi-select option - listBox.MultiSelect = true; - //Enable the default Appearance - form.SetDefaultAppearance(true); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multi-select option - listBox.MultiSelect = True - 'Enable the default Appearance - form.SetDefaultAppearance(True) - document.Save("Form.pdf") - document.Close(True) - - - Interface - Class - Class - - - - XFA document - - - - - Gets or sets whether the form is default encoding or not. - - True if the form is default encoding , otherwise false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - Set default encoding to form. - form.IsDefaultEncoding = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - Set default encoding to form. - form.IsDefaultEncoding = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the field names. - - The field names. - - - - Gets or sets a value indicating whether the form is XFA. - - - - - Gets the fields collection.[Read-Only] - - The Form fields. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - 'Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is flatten. - - True if the is flatten , otherwise false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the form is read only. - - true if the form is read only; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - PdfForm form = document.Form; - // Sets the form as read only - form.ReadOnly = true; - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a form - Dim form As PdfForm = document.Form - ' Sets the form as read only - form.ReadOnly = True - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether [field auto naming]. - - true if the form is field auto naming; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - // Creates a form - PdfForm form = document.Form; - // Sets the form fields as auto naming. - form.FieldAutoNaming = true; - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a form - Dim form As PdfForm = document.Form - ' Sets the form fields as auto naming. - form.FieldAutoNaming = True - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a combo box - Dim positionComboBox As PdfComboBoxField = New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - For i As Integer = 0 To fieldCollection.Count - 1 - fieldCollection(i).Flatten = True - Next i - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether the viewer must generate appearances for fields. - - true if viewer must generate appearance; otherwise, false. - - - - Gets or sets the signature flags. - - The signature flags. - - - - Gets or sets the resources. - - The resources. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Gets or sets whether to disable auto formating. - - - - - Specifies if any formfield is changed since loading that would affect the appearance. - - - - - Gets the element. - - - - - - Represents a collection of form fields. - - This class is used to get the collection of form fields. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12F) - 'Create a combo box - Dim positionComboBox As New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFieldCollection = document.Form.Fields - ' Flatten the form collection - Dim i As Integer = 0 - While i != fieldCollection.Count - fieldCollection(i).Flatten = True - i += 1 - End While - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store form. - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a combo box - PdfComboBoxField positionComboBox = new PdfComboBoxField(page, "positionComboBox"); - positionComboBox.Editable = true; - positionComboBox.Bounds = new RectangleF(100, 115, 200, 20); - positionComboBox.Font = font; - positionComboBox.Editable = true; - //Add it to document - document.Form.Fields.Add(positionComboBox); - PdfFieldCollection fieldCollection = new PdfFormFieldCollection(); - fieldCollection = document.Form.Fields; - // Flatten the form collection - for (int i = 0; i != fieldCollection.Count; i++) - { - fieldCollection[i].Flatten = true; - } - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12F) - 'Create a combo box - Dim positionComboBox As New PdfComboBoxField(page, "positionComboBox") - positionComboBox.Editable = True - positionComboBox.Bounds = New RectangleF(100, 115, 200, 20) - positionComboBox.Font = font - positionComboBox.Editable = True - 'Add it to document - document.Form.Fields.Add(positionComboBox) - Dim fieldCollection As PdfFormFieldCollection = New PdfFormFieldCollection() - fieldCollection = document.Form.Fields - ' Flatten the form collection - Dim i As Integer = 0 - While i != fieldCollection.Count - fieldCollection(i).Flatten = True - i += 1 - End While - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - - - - Adds a field to collection. - - The field. - - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Check whether the field with the same name already exists. - - The name. - - true if there are no fields with the same name within the collection; - otherwise false. - - - - - Gets or sets the form. - - - - - Represents list box field of the PDF form. - - This class is used to create the list box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Internal variable to store value whether the fiels is multiselectable. - - - - - Initializes a new instance of the class with the specific page and name. - - Page the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets a value indicating whether the field is multiselectable. - - true if multiselectable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - - Text position it the primitive array. - - - - - Value position in the primitive array. - - - - - Internal variable to store caption of the list item. - - - - - Internal variable to store value of the list item. - - - - - Internal variable to store array primitive. - - - - - Initializes a new instance of the class. - - - - - - Initializes the specified text. - - The text. - The value. - - - - - - Gets the element. - - The primitive. - - - - Represents list field item collection. - - This class is used to get the collection of list field items in PDF forms. Please refer the UG docuemntation link for more details - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - Internal variable to store array of - - - - - Initializes a new instance of the class. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = new PdfListFieldItemCollection(); - itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = New PdfListFieldItemCollection() - itemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Interface - Class - Class - Class - - - - - Inserts the list item field at the specified index. - - The index where to insert the new item. - The object to be added to collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - PdfListFieldItem item = new PdfListFieldItem("Arabic", "Arabic"); - // Inserting an item at second position - itemCollection.Insert(1, item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - Dim item As PdfListFieldItem = New PdfListFieldItem("Arabic", "Arabic") - ' Inserting an item at second position - itemCollection.Insert(1, item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the specified . - - The object which to be removed in the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Remove an item from collection - itemCollection.Remove(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Remove an item from collection - itemCollection.Remove(item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the item at the specified position. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Remove an item from collection - itemCollection.RemoveAt(1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Remove an item from collection - itemCollection.RemoveAt(1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Determines whether the item is present in the collection. - - Check whether object is exists in the collection or not. - - true if the item is contained within the collection; otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - if (itemCollection.Contains(item)) - MessageBox.Show("Already, item has added!"); - else - itemCollection.Add(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - If itemCollection.Contains(item) Then - MessageBox.Show("Already, item has added!") - Else - itemCollection.Add(item) - End If - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the specified item. - - A object whose index is requested. - The index of the given item, -1 if the item does not exist. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Gets the index of an item - int index = itemCollection.IndexOf(item); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Gets the index of an item - Dim index As Integer = itemCollection.IndexOf(item) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Clears the collection. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - PdfListFieldItem item = new PdfListFieldItem("English", "English"); - itemCollection.Add(item); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Clear the collection - itemCollection.Clear(); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - Dim item As PdfListFieldItem = New PdfListFieldItem("English", "English") - itemCollection.Add(item) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Clear the collection - itemCollection.Clear() - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Adds the item. - - The item. - Index of the added item. - - - - Inserts the item. - - The index. - The item. - - - - Removes the element at the specified position. - - The index. - - - - Removes the item. - - The item. - - - - Gets the at the specified index.[Read-Only] - - The object. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - document.Form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - // Creates list items - PdfListFieldItemCollection itemCollection = listBox.Items; - //Add the items to the list box - itemCollection.Add(new PdfListFieldItem("English", "English")); - itemCollection.Add(new PdfListFieldItem("French", "French")); - itemCollection.Add(new PdfListFieldItem("German", "German")); - // Reading the second item in the collection and assigning new values - PdfListFieldItem item = itemCollection[1]; - item.Text = "Arabic"; - item.Value = "Arabic"; - listBox.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - document.Form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - ' Creates list items - Dim itemCollection As PdfListFieldItemCollection = listBox.Items - 'Add the items to the list box - itemCollection.Add(New PdfListFieldItem("English", "English")) - itemCollection.Add(New PdfListFieldItem("French", "French")) - itemCollection.Add(New PdfListFieldItem("German", "German")) - ' Reading the second item in the collection and assigning new values - Dim item As PdfListFieldItem = itemCollection(1) - item.Text = "Arabic" - item.Value = "Arabic" - listBox.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents radio button field in the PDF form. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store collection of items. - - - - - Internal variable to store selected item index. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - - - Class - Class - Class - - - - Draws this instance if it is flatten. - - - - - Gets or sets the first selected item in the list. - - The index of the selected item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - // Set the selected item index index - employeesRadioList.SelectedIndex = 0; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - ' Set the selected item index index - employeesRadioList.SelectedIndex = 0 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - The selected value of the list field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item value - employeesRadioList.SelectedValue = "1-9"; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Set the selected item value - employeesRadioList.SelectedValue = "1-9" - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the first selected item in the list.[Read-Only] - - The selected item of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item - employeesRadioList.SelectedItem = radioItem1; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Set the selected item - employeesRadioList.SelectedItem = radioItem1 - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the items of the radio button field.[Read-Only] - - The radio button field item collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Set the selected item value - employeesRadioList.SelectedValue = "1-9"; - // Getting item collection - PdfRadioButtonItemCollection itemCollection = employeesRadioList.Items; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item employeesRadioList.Items.Add(radioItem2) - ' Set the selected item value - employeesRadioList.SelectedValue = "1-9" - ' Getting item collection - Dim itemCollection As PdfRadioButtonItemCollection = employeesRadioList.Items - document.Save("Form.pdf"); - document.Close(True) - - - Class - Class - Class - - - - Represents an item of a radio button list. - - Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store field which this item belongs to. - - - - - Internal variable to store item's value. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specific value. - - The value. - - - - Initializes instance. - - - - - Sets the field. - - The field. - - - - Handles the Save event of the Widget control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Draws the appearance. - - - - - Gets the value. - - m_value - - - - Draws this instance if it is flatten. - - - - - - Gets or sets the bounds. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the value. - - The value. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem(); - radioItem1.Value = "1-9"; - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem() - radioItem1.Value = "1-9" - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents collection of radio buttons items. - - This class is used to . Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - PdfBrush brush = PdfBrushes.Black; - PdfGraphics g = page.Graphics; - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - g.DrawString("10-49", font, brush, new RectangleF(150, 175, 180, 20)); - PdfRadioButtonListItem radioItem3 = new PdfRadioButtonListItem("50-99"); - radioItem3.Bounds = new RectangleF(100, 200, 20, 20); - g.DrawString("50-99", font, brush, new RectangleF(150, 205, 180, 20)); - PdfRadioButtonListItem radioItem4 = new PdfRadioButtonListItem("100-499"); - radioItem4.Bounds = new RectangleF(100, 230, 20, 20); - g.DrawString("100-499", font, brush, new RectangleF(150, 235, 180, 20)); - PdfRadioButtonListItem radioItem5 = new PdfRadioButtonListItem("500-more"); - radioItem5.Bounds = new RectangleF(100, 260, 20, 20); - g.DrawString("500-more", font, brush, new RectangleF(150, 265, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - employeesRadioList.Items.Add(radioItem2); - employeesRadioList.Items.Add(radioItem3); - employeesRadioList.Items.Add(radioItem4); - employeesRadioList.Items.Add(radioItem5); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - Dim brush As PdfBrush = PdfBrushes.Black - Dim g As PdfGraphics = page.Graphics - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - g.DrawString("10-49", font, brush, New RectangleF(150, 175, 180, 20)) - Dim radioItem3 As PdfRadioButtonListItem = New PdfRadioButtonListItem("50-99") - radioItem3.Bounds = New RectangleF(100, 200, 20, 20) - g.DrawString("50-99", font, brush, New RectangleF(150, 205, 180, 20)) - Dim radioItem4 As PdfRadioButtonListItem = New PdfRadioButtonListItem("100-499") - radioItem4.Bounds = New RectangleF(100, 230, 20, 20) - g.DrawString("100-499", font, brush, New RectangleF(150, 235, 180, 20)) - Dim radioItem5 As PdfRadioButtonListItem = New PdfRadioButtonListItem("500-more") - radioItem5.Bounds = New RectangleF(100, 260, 20, 20) - g.DrawString("500-more", font, brush, New RectangleF(150, 265, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - employeesRadioList.Items.Add(radioItem2) - employeesRadioList.Items.Add(radioItem3) - employeesRadioList.Items.Add(radioItem4) - employeesRadioList.Items.Add(radioItem5) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Internal variable to store array of item's primitives. - - - - - Internal variable to store field. - - - - - Initializes a new instance of the class with the specific . - - The field. - - - - Adds the specified item. - - Please refer the UG docuemntation link for more details. - The object to be added to collection. - The index of the added field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Inserts an item at the specified index. - - The index where to insert the new item.. - A object to be added to collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Insert(0, radioItem2); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Insert(0, radioItem2) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the specified item from the collection. - - The object which is to be removed from the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Remove the item - employeesRadioList.Items.Remove(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Remove the item - employeesRadioList.Items.Remove(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Removes the item at the specified index. - - The index where to remove the item. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Remove the item - employeesRadioList.Items.RemoveAt(0); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Remove the item - employeesRadioList.Items.RemoveAt(0) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the index of the item within the collection. - - A object whose index is requested. - Index of the item with the collection. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Find the index - int index = employeesRadioList.Items.IndexOf(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'Add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Find the index - Dim index As Integer = employeesRadioList.Items.IndexOf(radioItem1) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Determines whether the collection contains the specified item. - - Check whether object is exists in the collection or not. - - true if collection contains specified item; otherwise, false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Check whether the specified item is in Collection - if (employeesRadioList.Items.Contains(radioItem1)) - MessageBox.Show("Item already added in the collection"); - else - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Check whether the specified item is in Collection - If employeesRadioList.Items.Contains(radioItem1) Then - MessageBox.Show("Item already added in the collection") - Else - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - End If - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Clears the item collection. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Clears the item - employeesRadioList.Items.Clear(); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Clears the item - employeesRadioList.Items.Clear() - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Adds the item. - - The item. - Index of the inserted item. - - - - Inserts the item. - - The index. - The item. - - - - Removes the specified item. - - The item. - - - - Clears the collection. - - - - - Gets the at the specified index. - - Returns item at the specified position. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a Radiobutton - PdfRadioButtonListField employeesRadioList = new PdfRadioButtonListField(page, "employeesRadioList"); - //Add to document - document.Form.Fields.Add(employeesRadioList); - //Create radiobutton items - PdfRadioButtonListItem radioItem1 = new PdfRadioButtonListItem("1-9"); - radioItem1.Bounds = new RectangleF(100, 140, 20, 20); - g.DrawString("1-9", font, brush, new RectangleF(150, 145, 180, 20)); - //add the items to radio button group - employeesRadioList.Items.Add(radioItem1); - PdfRadioButtonListItem radioItem2 = new PdfRadioButtonListItem("10-49"); - radioItem2.Bounds = new RectangleF(100, 170, 20, 20); - // Insert the item as first item - employeesRadioList.Items.Add(radioItem2); - // Gets the first item from the collection - PdfRadioButtonListItem item = employeesRadioList.Items[0]; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create a Radiobutton - Dim employeesRadioList As PdfRadioButtonListField = New PdfRadioButtonListField(page, "employeesRadioList") - 'Add to document - document.Form.Fields.Add(employeesRadioList) - 'Create radiobutton items - Dim radioItem1 As PdfRadioButtonListItem = New PdfRadioButtonListItem("1-9") - radioItem1.Bounds = New RectangleF(100, 140, 20, 20) - g.DrawString("1-9", font, brush, New RectangleF(150, 145, 180, 20)) - 'add the items to radio button group - employeesRadioList.Items.Add(radioItem1) - Dim radioItem2 As PdfRadioButtonListItem = New PdfRadioButtonListItem("10-49") - radioItem2.Bounds = New RectangleF(100, 170, 20, 20) - ' Insert the item as first item - employeesRadioList.Items.Add(radioItem2) - ' Gets the first item from the collection - Dim item As PdfRadioButtonListItem = employeesRadioList.Items(0) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the element. - - - - - - Represents form field with appearance custom support. - - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - page - The name. - - - - Saves an object. - - - - - Draws this instance if it is flatten. - - - - - Draws the appearance. - - The template. - - - - Gets the appearance of the signature field.[Read-Only] - - The appearance. - - - - Represents signature field in the PDF Form. - - Please refer the UG docuemntation link for more details about signature field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Internal variable to store the signature. - - - - - Initializes a new instance of the class with the specific page and name. - - Page which the field to be placed on. - The name of the field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Initializes an instance. - - - - - Saves the signature. - - - - - Draws the field. - - - - - Draws the appearance. - - The template. - - - - Gets the visual appearance of this field.[Read-Only] - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Gets the signature appearance - PdfAppearance appearance = sign.Appearance; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - ' Gets the signature appearance - Dim appearance As PdfAppearance = sign.Appearance - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Gets or sets the digital signature for signing the field. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Signature = new PdfSignature(page, new PdfCertificate("PDF.pfx", "Syncfusion"), "Signature"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Gets the signature appearance - PdfAppearance appearance = sign.Appearance; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Signature = New PdfSignature(page, New PdfCertificate("PDF.pfx", "Syncfusion"), "Signature") - sign.Bounds = New RectangleF(100, 420, 100, 50) - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - - - Class - Class - - - - Represents text box field in the PDF form. - - This class is used to create the text box field in PDF forms. Please refer the UG docuemntation link for more details. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - The password chrackter. - - - - - Internal variable to store value. - - - - - Internal variable to store default value. - - - - - Internal variable to store value whether to check spelling. - - - - - Internal variable to store value whether the field has comb behavior. - - - - - Internal variable to store value whether the field should be multiline. - - - - - Internal variable to store value whether it is a password field. - - - - - Internal variable to store value whether the field is scrollable. - - - - - Internal variable to store field's maximum length. in characters. - - - - - Initializes a new instance of the class with the provided page and name. - - Page which the field to be placed on. - The name of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Draws this instance if it is flatten. - - - - - Initializes an instance. - - - - - Draws the appearance. - - The template. - - - - Gets or sets the text in the text box. - - The text of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Text = "Cris"; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Text = "Cris" - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the default value. - - The default value of the text box field. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.DefaultValue = "Cris"; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.DefaultValue = "Cris" - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to check spelling. - - true if check spelling; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.SpellCheck = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.SpellCheck = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Meaningful only if the MaxLength property is set and the Multiline, Password properties are false. - If set, the field is automatically divided into as many equally spaced positions, or combs, - as the value of MaxLength, and the text is laid out into those combs. - - true if need to insert spaces; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.InsertSpaces = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.InsertSpaces = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is multiline. - - true if multiline; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Multiline = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Multiline = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is password field. - - true if password field; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Password = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Password = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether this is scrollable. - - true if scrollable; otherwise, false. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Scrollable = true; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Scrollable = True - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the maximum number of characters that can be entered in the text box. - - An integer value specifying the maximum number of characters that can be entered in the text box. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.MaxLength = 8; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.MaxLength = 8 - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents fields flags enum. - - - - - Default field flag. - - - - - If set, the user may not change the value of the field. Any associated widget annotations - will not interact with the user; that is, they will not respond to mouse clicks or - change their appearance in response to mouse motions. This flag is useful - for fields whose values are computed or imported from a database. - - - - - If set, the field must have a value at the time it is exported by a submit-form action. - - - - - If set, the field must not be exported by a submit-form action - - - - - If set, the field can contain multiple lines of text; - if clear, the field�s text is restricted to a single line. - - - - - If set, the field is intended for entering a secure password that should not be - echoed visibly to the screen. Characters typed from the keyboard should instead - be echoed in some unreadable form, such as asterisks or bullet characters. - - - - - If set, the text entered in the field represents the pathname of a file whose - contents are to be submitted as the value of the field. - - - - - If set, text entered in the field is not spell-checked. - - - - - If set, the field does not scroll (horizontally for single-line fields, vertically - for multiple-line fields) to accommodate more text than fits within its annotation - rectangle. Once the field is full, no further text is accepted. - - - - - Meaningful only if the MaxLen entry is present in the text field dictionary and if - the Multiline, Password, and FileSelect flags are clear. If set, the field is - automatically divided into as many equally spaced positions, or combs, as the - value of MaxLen, and the text is laid out into those combs. - - - - - If set, the value of this field should be represented as a rich text string. - If the field has a value, the RVentry of the field dictionary specifies - the rich text string. - - - - - If set, exactly one radio button must be selected at all times; clicking - the currently selected button has no effect. If clear, clicking the selected - button reselects it, leaving no button selected. - - - - - If set, the field is a set of radio buttons; if clear, the field is a check box. - This flag is meaningful only if the Pushbutton flag is clear. - - - - - If set, the field is a pushbutton that does not retain a permanent value. - - - - - If set, a group of radio buttons within a radio button field that use the same value - for the on state will turn on and off in unison; that is if one is checked, they - are all checked. If clear, the buttons are mutually exclusive. - - - - - If set, the field is a combo box; if clear, the field is a list box. - - - - - If set, the combo box includes an editable text box as well as a drop-down - list; if clear, it includes only a drop-down list. This flag is meaningful only - if the Combo flag is set. - - - - - If set, the field�s option items should be sorted alphabetically. This flag - is intended for use by form authoring tools, not by PDF viewer applications. - - - - - If set, more than one of the field�s option items may be selected simultaneously; - if clear, no more than one item at a time may be selected. - - - - - If set, the new value is committed as soon as a selection is made with the pointing - device. This option enables applications to perform an action once a selection is - made, without requiring the user to exit the field. If clear, the new value is not - committed until the user exits the field. - - - - - Specifies the available styles for a field border. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - // Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create submit button - PdfButtonField submitButton = new PdfButtonField(page, "submitButton"); - submitButton.Bounds = new RectangleF(100, 500, 90, 20); - submitButton.Font = font; - submitButton.Text = "Submit"; - // Set the border style for the button field - submitButton.BorderStyle = PdfBorderStyle.Dashed; - document.Form.Fields.Add(submitButton); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - ' Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create submit button - Dim submitButton As PdfButtonField = New PdfButtonField(page, "submitButton") - submitButton.Bounds = New RectangleF(100, 500, 90, 20) - submitButton.Font = font - submitButton.Text = "Submit" - ' Set the border style for the button field - submitButton.BorderStyle = PdfBorderStyle.Dashed - document.Form.Fields.Add(submitButton) - document.Save("Form.pdf") - document.Close(True) - - - Default value is Solid. - Class - Class - Class - - - - A solid rectangle surrounding the annotation. - - - - - A dashed rectangle surrounding the annotation. - - - - - A simulated embossed rectangle that appears to be raised above the surface - of the page. - - - - - A simulated engraved rectangle that appears to be recessed below the surface - of the page. - - - - - A single line along the bottom of the annotation rectangle. - - - - - Specifies the highlight mode for a field. - - - - // Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create the signature field - PdfSignatureField sign = new PdfSignatureField(page, "sign1"); - sign.Bounds = new RectangleF(100, 420, 100, 50); - // Set the high light mode for a signature field - sign.HighlightMode = PdfHighlightMode.Push; - document.Form.Fields.Add(sign); - document.Save("Form.pdf"); - document.Close(true); - - - ' Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create the signature field - Dim sign As PdfSignatureField = New PdfSignatureField(page, "sign1") - sign.Bounds = New RectangleF(100, 420, 100, 50) - ' Set the high light mode for a signature field - sign.HighlightMode = PdfHighlightMode.Push - document.Form.Fields.Add(sign) - document.Save("Form.pdf") - document.Close(True) - - - Default value is Invert. - - - - No highlighting. - - - - - Invert the contents of the field rectangle. - - - - - Invert the field's border. - - - - - Pushed highlighting. - - - - - Specifies the style for a check box field. - - The default value is Check. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a check box - PdfCheckBoxField checkBox = new PdfCheckBoxField(page, "C#.NET"); - checkBox.Bounds = new RectangleF(100, 290, 20, 20); - // Add the check box field in form`s field collection - document.Form.Fields.Add(checkBox); - checkBox.HighlightMode = PdfHighlightMode.Push; - checkBox.BorderStyle = PdfBorderStyle.Beveled; - // Set the check style - checkBox.Style = PdfCheckBoxStyle.Star; - checkBox.Checked = true; - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a check box - Dim checkBox As PdfCheckBoxField = New PdfCheckBoxField(page, "C#.NET") - checkBox.Bounds = New RectangleF(100, 290, 20, 20) - ' Add the check box field in form`s field collection - document.Form.Fields.Add(checkBox) - checkBox.HighlightMode = PdfHighlightMode.Push - checkBox.BorderStyle = PdfBorderStyle.Beveled - ' Set the check style - checkBox.Style = PdfCheckBoxStyle.Star - checkBox.Checked = True - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - A check mark is used for the checked state. - - - - - A circle is used for the checked state. - - - - - A cross is used for the checked state. - - - - - A diamond symbol is used for the checked state. - - - - - A square is used for the checked state. - - - - - A star is used for the checked state. - - - - - Specifies Http request method. - - - - - Data submitted using Http Get method. - - - - - Data submitted using Http Post method. - - - - - Specifies the enumeration of submit data formats. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add a new page - PdfPage page = document.Pages.Add(); - // Create a Button field. - PdfButtonField submitButton = new PdfButtonField(page, "Submit data"); - submitButton.Bounds = new RectangleF(100, 60, 50, 20); - submitButton.ToolTip = "Submit"; - document.Form.Fields.Add(submitButton); - // Create a submit action. It submit the data of the form fields to the mentioned URL - PdfSubmitAction submitAction = new PdfSubmitAction("http://www.example.com/Submit.aspx"); - submitAction.DataFormat = SubmitDataFormat.Html; - submitButton.Actions.GotFocus = submitAction; - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a Button field. - Dim submitButton As New PdfButtonField(page, "Submit data") - submitButton.Bounds = New RectangleF(100, 60, 50, 20) - submitButton.ToolTip = "Submit" - document.Form.Fields.Add(submitButton) - ' Create a submit action. It submit the data of the form fields to the mentioned URL - Dim submitAction As New PdfSubmitAction("http://www.example.com/Submit.aspx") - submitAction.DataFormat = SubmitDataFormat.Html - submitButton.Actions.GotFocus = submitAction - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Data should be transmitted as Html. - - - - - Data should be transmitted as Pdf. - - - - - Data should be transmitted as Forms Data Format. - - - - - Data should be transmitted as XML Forms Data Format . - - - - - Represents states of the check field. - - - - - Indicated unchecked/unpressed state. - - - - - Indicated checked unpressed state. - - - - - Indicated pressed unchecked state. - - - - - Indicated pressed checked state. - - - - - Specifies the form field visibility types - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create a text box - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.MaxLength = 8; - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - //Set the visibility. - firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible; - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55); - //Add the textbox in document - document.Form.Fields.Add(firstNameTextBox); - document.Save("Form.pdf"); - document.Close(true); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create a text box - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.MaxLength = 8 - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - 'Set the visibility. - firstNameTextBox.Visibility = PdfFormFieldVisibility.Visible - page.Graphics.DrawString("First Name", font, PdfBrushes.Black, 10, 55) - 'Add the textbox in document - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - document.Close(True) - - - Class - Class - Class - - - - Indicate visibility of the form field. - - - - - Hidden the visibility of the form field. - - - - - Indicate visibility of the form field and not printable. - - - - - Indicate hidden the visibility of the form field and not printable. - - - - - Defines additional parameters for the embedded file. - - - - - Internal variable to store creation date. - - - - - Internal variable to store modification date. - - - - - Internal variable to store size of the embedded file. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Gets or sets creation date. - - Creation date. - - - - Gets or sets modification date. - - Modification date. - - - - Gets or sets the size of the embedded file. - - The size. - - - - Gets the element. - - - - - - Collection of the cached objects. - - - - - Stores the similar objects. - - - - - Initializes a new instance of the class. - - - - - Searches for the similar cached object. If is not found - adds the object to the cache. - - Object to search for. - Cached similar object if found, null otherwise. - - - - Checks whether a cache contains a group of such objects. - - The object. - true if contains, False otherwise. - - - - Returns number of cached object in a group. - - The object. - Returns number of cached object in a group if found, 0 otherwise. - - - - Removes the object from a cache. - - The object. - - - - Cleares cache. - - - - - Creates a new group. - - A created group. - - - - Searches for a corresponding group. - - A representative of a group. - A group if found, Null otherwise. - - - - Remove a group from the storage. - - A group of the objects. - - - - Gets the at the specified index. - - - - - - Gets the font offset table. - - The font offset table. - - - - Gets the font data. - - The font data. - - - - Represents default appearance string. - - - - - Internal variable to store fore color. - - - - - Internal variable to store font name. - - - - - Internal variable to store font size. - - - - - Initializes a new instance of the class. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Gets or sets the name of the font. - - The name of the font. - - - - Gets or sets the size of the font. - - The size of the font. - - - - Gets or sets the color of the fore. - - The color of the fore. - - - - Represents sound embedded into pdf document. - - - - - Internal variable to store sampling rate. - - - - - Internal variable to store encoding format. - - - - - Internal variable to store number of sound channels. - - - - - Internal variable to store number of bits per sample value per channel. - - - - - Internal variable to store sound file name. - - - - - Internal variable to store stream. - - - - Name of the file. - - - - Initializes a new instance of the class. - - Name of the file. - if set to true [test]. - - - - Initializes a new instance of the class. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Saves an instance. - - - - - Gets or sets the sampling rate, in samples per second (in Hz). - - - - - Gets or sets the number of bits per sample value per channel. - - - - - Gets or sets the encoding format for the sample data. - - - - - Gets or sets the number of sound channels. - - - - The name of the file. - - - - Gets the element. - - - - - - Represents specification of the references file in pdf document. - - - - - Internal variable to store file name. - - - - File name. - Path Type. - - - - Initializes a new instance of the class. - - - - - - Saves object. - - - - The name of the file. - - - - Optimized version of SortedList collection. Instead of keeping two - arrays, one for keys and one for values, the values array on - Hashtable collection are changed. Performance of this collection is better than that of SortedList. - - - - - Default capacity of internal buffers. - - - - - Array which store keys in sorted order. - - - - - Collection stores values. - - - - - Size of collection. - - - - - Version of collection data. - - - - - Default comparer for keys. - - - - - List of keys. - - - - - List of values. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The initial capacity. - - - - Initializes a new instance of the class. - - The comparer. - - - - Initializes a new instance of the class. - - The comparer. - The capacity. - - - - Initializes a new instance of the class. - - The d. - - - - Initializes a new instance of the class. - - The d. - The comparer. - - - - Returns a synchronized (thread-safe) wrapper for the SortedList. - - The SortedList to synchronize. - A synchronized (thread-safe) wrapper for the SortedList. - - When list is null. - - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - When key is null. - - - When list already contains specified key. - - - - - Removes all elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Clone current instance. - - Returns clone of current object. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the SortedListEx to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If specified array is null. - - - If rank of the array is not 1 or there are not enough elements. - - - If specified arrayIndex is less than zero. - - - - - Gets the value at the specified index of the SortedListEx. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the key at the specified index of the SortedListEx. - - The zero-based index of the key to get. - The key at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the keys in the SortedListEx. - - An IList containing the keys in the SortedListEx. - - - - Gets the values in the SortedListEx. - - An IList containing the values in the SortedListEx. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - If specified key is null. - - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - When index is less than zero or greater than size of the list. - - - - - Removes the element with the specified key from SortedListEx. - - The key of the element to remove. - - - - Replaces the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - When index is less than zero or greater than size of the list. - - - - - Sets the capacity to the actual number of elements. - - - - - Returns an IDictionaryEnumerator that can iterate through the SortedListEx. - - An IDictionaryEnumerator for the SortedListEx. - - - - Returns an IEnumerator that can iterate through the SortedListEx. - - An IEnumerator for the SortedListEx. - - - - Inserts element with specified key and value at specified index. - - The zero-based index to insert element at. - The key of the element to insert. - The value of the element to insert. - - - - Ensures that the capacity of this instance is at least the specified value. - - The minimum capacity to ensure. - - - - Gets or sets the capacity. - - The capacity. - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - - Gets an object containing the keys of the object. - - - - An object containing the keys of the object. - - - - - Gets an object containing the values in the object. - - - - An object containing the values in the object. - - - - - Gets a value indicating whether the object is read-only. - - - true if the object is read-only; otherwise, false. - - - - - Gets a value indicating whether the object has a fixed size. - - - true if the object has a fixed size; otherwise, false. - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - true if access to the is synchronized (thread safe); otherwise, false. - - - - - Gets an object that can be used to synchronize access to the . - - - - An object that can be used to synchronize access to the . - - - - - Gets or sets the value associated with the specified key. - - - - - Wrapped SortedListEx. - - - - - Sync object. - - - - - Initializes a new instance of the class. - - The list. - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - - - Removes all the elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of the current instance. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Gets the value at the specified index of the list. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - - - Returns an IDictionaryEnumerator that can iterate through the list. - - An IDictionaryEnumerator for the list. - - - - Gets the key at the specified index of the list. - - The zero-based index of the key to get. - The key at the specified index of the list. - - - - Gets the keys in the list. - - An IList containing the keys in the list. - - - - Gets the values in the list. - - An IList containing the values in the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Replaces the value at a specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Sets the capacity to the actual number of elements. - - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Gets or sets the value associated with the specified key. - - key - - - - If it is assumed to getObjectRetType, Current will return key - of the current element. - - - - - If it is assumed to getObjectRetType, Current will return value - of the current element. - - - - - If it is assumed to getObjectRetType, Current will return both - - key and value (as DictionaryEntry). - - - - - List for which is this enumerator. - - - - - Key of the current element. - - - - - Values of the current element. - - - - - Index of current element. - - - - - Starting index for the enumerator. - - - - - Ending index for this enumerator. - - - - - Version of collection data. - - - - - True if current element is correct, False otherwise - (before beginning or after end). - - - - - Specifies what should return method Current (Key, Value or both). - - - - - Creates enumerator for specified list, starting from specified index - and with specified count. - - list for which to create enumerator. - Starting index. - Number of elements to enumerate. - Type of enumerating values (keys, value, DicEntry). - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; - False if the enumerator has passed the end of the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Gets the key of the current dictionary entry. - - - - The key of the current element of the enumeration. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - Gets both the key and the value of the current dictionary entry. - - - - A containing both the key and the value of the current dictionary entry. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - Gets The current element in the collection. Read-only. - - - If current is false. - - - - - Gets the value of the current dictionary entry. - - - - The value of the current element of the enumeration. - - - The is positioned before the first entry of the dictionary or after the last entry. - - - - - List for which this collection was created. - - - - - Creates KeyList for specified SortedListEx. - - SortedListEx for which KeyList must be created. - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If array is null or rank of the array is not 1. - - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of the key, if the key is found; otherwise, -1. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Gets the number of elements contained in the . - - - - The number of elements contained in the . - - - - - Gets a value indicating whether the is read-only. - - - true if the is read-only; otherwise, false. - - - - - Gets a value indicating whether the has a fixed size. - - - true if the has a fixed size; otherwise, false. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the key at the specified index. - - - - - List for which this collection was created. - - - - - Array list that contain values. - - - - - Creates ValueList for specified SortedListEx. - - SortedListEx for which ValueList must be created. - - - - Re-read values from the list. - - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified value. - - Value to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified value. - - The value to locate. - The zero-based index of the value, if the value is found, otherwise -1. - - - - Removes the specified value from list. - - The value to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Gets the size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value at the specified index. - - - - - Optimized version of SortedList collection. Instead of keeping two - arrays, one for keys and one for values, the values array on - Hashtable collection are changed. Performance of this collection is better than that of SortedList. - - - - - Default capacity of internal buffers. - - - - - Array which store keys in sorted order. - - - - - Collection stores values. - - - - - Size of collection. - - - - - Version of collection data. - - - - - Default comparer for keys. - - - - - List of keys. - - - - - List of values. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The initial capacity. - - - - Initializes a new instance of the class. - - The comparer. - - - - Initializes a new instance of the class. - - The comparer. - The capacity. - - - - Initializes a new instance of the class. - - The d. - - - - Initializes a new instance of the class. - - The d. - The comparer. - - - - Returns a synchronized (thread-safe) wrapper for the SortedList. - - The SortedList to synchronize. - A synchronized (thread-safe) wrapper for the SortedList. - - When list is null. - - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - When key is null. - - - When list already contains specified key. - - - - - Adds the specified pair. - - The pair. - - - - Removes all elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Clone current instance. - - Returns clone of current object. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Determines whether [contains] [the specified pair]. - - The pair. - - if it contains the specified pair, set to true . - - - - - Copies all the elements of the SortedListEx to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If specified array is null. - - - If rank of the array is not 1 or there are not enough elements. - - - If specified arrayIndex is less than zero. - - - - - Gets the value at the specified index of the SortedListEx. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the key at the specified index of the SortedListEx. - - The zero-based index of the key to get. - The key at the specified index of the SortedListEx. - - When index is less than zero or greater than size of the list. - - - - - Gets the keys in the SortedListEx. - - An IList containing the keys in the SortedListEx. - - - - Gets the values in the SortedListEx. - - An IList containing the values in the SortedListEx. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - If specified key is null. - - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - When index is less than zero or greater than size of the list. - - - - - Removes the element with the specified key from SortedListEx. - - The key of the element to remove. - - - - Removes the specified pair. - - The pair. - - - - - Replaces the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - When index is less than zero or greater than size of the list. - - - - - Sets the capacity to the actual number of elements. - - - - - Returns an IDictionaryEnumerator that can iterate through the SortedListEx. - - An IDictionaryEnumerator for the SortedListEx. - - - - Returns an IEnumerator that can iterate through the SortedListEx. - - An IEnumerator for the SortedListEx. - - - - Tries the get value. - - The key. - The value. - - - - - Inserts element with specified key and value at specified index. - - The zero-based index to insert element at. - The key of the element to insert. - The value of the element to insert. - - - - Ensures that the capacity of this instance is at least the specified value. - - The minimum capacity to ensure. - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - List of keys. Read-only. - - - - - List of keys. Read-only. - - - - - List of values. Read-only. - - - - - List of values. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value associated with the specified key. - - - - - Wrapped SortedListEx. - - - - - Sync object. - - - - - Creates SyncSortedListEx for specified SortedListEx. - - SortedListEx that will be wrapped. - - - - Adds an element with the provided key and value to the list. - - The Object to use as the key of the element to add. - The Object to use as the value of the element to add. - - - - Removes all the elements from the collection. - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of the current instance. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Determines whether the list contains the specified value. - - Value of the element to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Gets the value at the specified index of the list. - - The zero-based index of the value to get. - The value at the specified index of the SortedListEx. - - - - Returns an IDictionaryEnumerator that can iterate through the list. - - An IDictionaryEnumerator for the list. - - - - Gets the key at the specified index of the list. - - The zero-based index of the key to get. - The key at the specified index of the list. - - - - Gets the keys in the list. - - An IList containing the keys in the list. - - - - Gets the values in the list. - - An IList containing the values in the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of key, if key is found; otherwise, -1. - - - - Returns the zero-based index of the first occurrence of the specified value. - - The value to locate (can be NULL). - - The zero-based index of the first occurrence of value, if value is found; - otherwise, -1. - - - - - Removes the element at the specified index. - - The zero-based index of the element to remove. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Replaces the value at a specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Sets the capacity to the actual number of elements. - - - - - Capacity of internal buffers. - - - - - Size of the collection. Read-only. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Gets or sets the value associated with the specified key. - - - - - List for which is this enumerator. - - - - - Key of the current element. - - - - - Values of the current element. - - - - - Index of current element. - - - - - Starting index for the enumerator. - - - - - Ending index for this enumerator. - - - - - Version of collection data. - - - - - True if current element is correct, False otherwise - (before beginning or after end). - - - - - Shows if the object was disposed. - - - - - Creates enumerator for specified list, starting from specified index - and with specified count. - - list for which to create enumerator. - Starting index. - Number of elements to enumerate. - - - - Creates a new object that is a copy of the current instance. - - Copy of the current instance. - - - - Advances the enumerator to the next element of the collection. - - - True if the enumerator was successfully advanced to the next element; - False if the enumerator has passed the end of the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Sets the enumerator to its initial position, which is before - the first element in the collection. - - - When the current version is not equal to the SortedListEx version. - - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Returns key of the current element. Read-only. - - - When the current version is not equal to the SortedListEx version - or if current is false. - - - - - The current element in the collection. Read-only. - - - If current is false. - - - - - Returns value for the current element. - - - When the current version is not equal to the SortedListEx version - or if current is false. - - - - - Gets the element in the collection at the current position of the enumerator. - - - The element in the collection at the current position of the enumerator. - - - - List for which this collection was created. - - - - - Creates KeyList for specified SortedListEx. - - The sorted list ex. - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified key. - - Key of the element to search. - True if list contains specified key. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - If array is null or rank of the array is not 1. - - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns the zero-based index of the specified key. - - The key to locate. - The zero-based index of the key, if the key is found; otherwise, -1. - - - - Removes the element with the specified key from list. - - The key of the element to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the key at the specified index. - - - - - List for which this collection was created. - - - - - Array list that contain values. - - - - - Creates ValueList for specified SortedListEx. - - The sorted list ex. - - - - Re-read values from the list. - - - - - Adds an element with the provided key to the list. - - The Object to use as the key of the element to add. - - - - Removes all elements from the collection. - - - - - Determines whether the list contains an element with the specified value. - - Value to search. - True if list contains specified value. - - - - Copies all the elements of the list to the specified one-dimensional Array - starting at the specified destination Array index. - - The one-dimensional Array that is the destination of the - elements copied from the current list. - The index in array at which copying begins. - - - - Insert the value at the specific index. - - The zero-based index at which to save value. - The Object to save into. Can be NULL. - - - - Returns an IEnumerator that can iterate through the list. - - An IEnumerator for the list. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Returns the zero-based index of the specified value. - - The value to locate. - The zero-based index of the value, if the value is found, otherwise -1. - - - - Removes the specified value from list. - - The value to remove. - - - - Removes the element at the specified index from the list. - - The zero-based index of the element to remove. - - - - Size of the collection. Read-only. - - - - - Returns True if list is readonly, False otherwise. Read-only. - - - - - Returns True if collection has fixed size, False otherwise. - - - - - Returns True if the collection is synchronized, False otherwise. - - - - - Returns the object that can be used to synchronize access to the collection. - Read-only. - - - - - Gets or sets the value at the specified index. - - - - - Comparer for strings. - - - - - Compare two strings. - - String to compare. - String to compare. - Returns compared results. - - - - Compares two objects and returns a value indicating whether one is less than, - equal to, or greater than the other. - - The first object to compare. - The second object to compare. - - Value Condition Less than zero. x is less than y.Zero x equals - y.Greater than zero x is greater than y. - - - - - Represents Uri file specification. - - - - - Internal variable to store file name. - - - - File name. - - - - Initializes instance. - - - - - Saves object. - - - - - - - - Utility class. - - - - - Number of decimals in float rounding. - - - - - Initializes a new instance of the class. - - - - - Checks the file path. - - The path. - The path if it exist. - It's thrown if the file wasn't found. - - - - The encoding format for the sample data. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - sound.Channels = PdfSoundChannels.Mono - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Unspecified or unsigned values in the range 0 to 2^B - 1. - - - - - Twos-complement values. - - - - - M-law�encoded samples. - - - - - A-law�encoded samples. - - - - - The number of sound channels. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - sound.Channels = PdfSoundChannels.Mono - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - One channel. - - - - - Two channels. - - - - - Enumeration that represents fit mode. - - - - //Creates a new document. - PdfDocument document = new PdfDocument(); - //Adds a page. - PdfPage page = document.Pages.Add(); - //Creates document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Sets the destination page. - bookmark.Destination = new PdfDestination(page); - //Sets the destination location. - bookmark.Destination.Location = new PointF(20, 20); - //Sets the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Set the destination mode. - bookmark.Destination.Mode = PdfDestinationMode.FitH; - //Saves and closes the PDF document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Creates a new document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page. - Dim page As PdfPage = document.Pages.Add() - 'Creates document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Sets the destination page. - bookmark.Destination = New PdfDestination(page) - 'Sets the destination location. - bookmark.Destination.Location = New PointF(20, 20) - 'Sets the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Set the destination mode. - bookmark.Destination.Mode = PdfDestinationMode.FitH - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Display the page designated by page, with the coordinates (left, top) positioned - at the top-left corner of the window and the contents of the page magnified - by the factor zoom. A NULL value for any of the parameters left, top, or - zoom specifies that the current value of that parameter is to be retained unchanged. - A zoom value of 0 has the same meaning as a NULL value. - - - - - Display the page designated by page, with its contents magnified just enough - to fit the entire page within the window both horizontally and vertically. If - the required horizontal and vertical magnification factors are different, use - the smaller of the two, centering the page within the window in the other - dimension. - - - - - Display the page designated by page, with the horizontal coordinate left positioned - at the left edge of the window and the contents of the page magnified - just enough to fit the entire height of the page within the window. - - - - - Display the page designated by page, with the vertical coordinate top positioned - at the top edge of the window and the contents of the page magnified - just enough to fit the entire width of the page within the window. - - - - - Represents the blend color space - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the base class for PdfBlend and PdfColorBlend classes. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Precision of the GCD calculations. - - - - - Local variable to store the count. - - - - - Local variable to store the positions. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified elements count - - The number of the elements. - - - - Calculate the GCD of the specified values. - - The values. - The calculated GCD value. - - - - Determines greatest common divisor of the specified u and v. - - The u. - The v. - The GCD value - - - - Determines greatest common divisor of the specified u and v. - - The u. - The v. - The GCD value - - - - Determines if both parameters are even numbers. - - The first value. - The second value. - result - - - - Determines if the u value is even. - - The u value. - bool - - - - Interpolates the specified colours according to the t value. - - The t value, which show the imagine position on a line from 0 to 1. - The minimal colour. - The maximal colour. - The color space. - color - - - - - Sets the array. - - The array, which has values. - The array if it's passed all tests. - - - - Gets or sets the array of positions - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the number of elements that specify the blend. - - - - - Local variable to store the factors. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified factor count - - The number of elements in the factors and positions arrays. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(1); - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend(1) - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Generates a correct color blend. - - The colours. - The color space. - A well formed colour blend. - - - - Clones this instance. - - The copy of this instance of PdfBlend. - - - - Gets or sets the array of factor to the blend. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Brushes for all the standard colors - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the brushes. - - - - - Initializes a new instance of the class. - - - - - Creates the default brush. - - The color. - Name of the color. - The proper PdfBrush instance. - - - - Gets the AliceBlue brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AliceBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AliceBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the antique white brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AntiqueWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.AntiqueWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aqua default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aqua, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aqua, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aquamarine default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Aquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Azure default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Azure, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Azure, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Beige default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Beige, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Beige, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Bisque default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Bisque, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Bisque, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Black default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlanchedAlmond default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlanchedAlmond, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlanchedAlmond, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Blue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Blue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Blue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlueViolet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlueViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BlueViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Brown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Brown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Brown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BurlyWood default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CadetBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CadetBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CadetBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chartreuse default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chartreuse, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chartreuse, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chocolate default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chocolate, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Chocolate, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Coral default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Coral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Coral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CornflowerBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CornflowerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.CornflowerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Corn silk default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cornsilk, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cornsilk, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Crimson default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Crimson, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Crimson, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Cyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Cyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkCyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGoldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkKhaki default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkKhaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkKhaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkMagenta default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkMagenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkMagenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOliveGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOliveGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOliveGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrange default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSalmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkViolet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DarkViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepSkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DeepSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DimGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DimGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DimGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DodgerBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DodgerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.DodgerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Firebrick default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Firebrick, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Firebrick, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the FloralWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.FloralWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.FloralWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the ForestGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.ForestGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.ForestGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Fuchsia default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Fuchsia, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Fuchsia, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gainsborough default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gainsboro, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gainsboro, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GhostWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GhostWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GhostWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gold default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gold, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gold, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Goldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Goldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Goldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Gray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Green default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Green, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Green, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GreenYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GreenYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.GreenYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Honeydew default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Honeydew, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Honeydew, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the HotPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.HotPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.HotPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the IndianRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.IndianRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.IndianRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Indigo default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Indigo, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Indigo, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Ivory default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Ivory, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Ivory, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Khaki default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Khaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Khaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lavender default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lavender, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lavender, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LavenderBlush default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LavenderBlush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LavenderBlush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LawnGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LawnGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LawnGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LemonChiffon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LemonChiffon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LemonChiffon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCoral default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCoral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCoral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCyan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGoldenrodYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGoldenrodYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGoldenrodYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightPink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSalmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSteelBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightSteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightYellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LightYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lime default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lime, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Lime, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LimeGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LimeGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.LimeGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Linen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Linen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Linen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Magenta default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Magenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Magenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Maroon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Maroon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Maroon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumAquamarine default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumAquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumAquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumOrchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumPurple default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumPurple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumPurple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSpringGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumSpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumVioletRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MediumVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MidnightBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MidnightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MidnightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MintCream default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MintCream, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MintCream, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MistyRose default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MistyRose, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.MistyRose, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Moccasin default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Moccasin, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Moccasin, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the NavajoWhite default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.NavajoWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.NavajoWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Navy default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Navy, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Navy, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OldLace default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OldLace, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OldLace, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Olive default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Olive, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Olive, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OliveDrab default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OliveDrab, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OliveDrab, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orange default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OrangeRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OrangeRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.OrangeRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orchid default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Orchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGoldenrod default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleTurquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleVioletRed default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PaleVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PapayaWhip default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PapayaWhip, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PapayaWhip, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PeachPuff default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PeachPuff, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PeachPuff, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Peru default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Peru, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Peru, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Pink default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Pink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Pink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Plum default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Plum, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Plum, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PowderBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PowderBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.PowderBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Purple default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Purple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Purple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Red default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RosyBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RosyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RosyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RoyalBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RoyalBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.RoyalBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SaddleBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SaddleBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SaddleBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Salmon default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Salmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Salmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SandyBrown default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SandyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SandyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaShell default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaShell, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SeaShell, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Sienna default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Sienna, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Sienna, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Silver default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Silver, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Silver, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SkyBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateGray default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Snow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Snow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Snow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SpringGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SteelBlue default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.SteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tan default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Teal default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Teal, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Teal, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Thistle default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Thistle, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Thistle, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tomato default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tomato, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Tomato, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Transparent default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Transparent, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Transparent, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Turquoise default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Turquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Turquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Violet default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Violet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Violet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Wheat default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Wheat, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Wheat, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the White default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.White, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.White, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the WhiteSmoke default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.WhiteSmoke, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.WhiteSmoke, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Yellow default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Yellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.Yellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the YellowGreen default brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfBrushes.YellowGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfBrushes.YellowGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the arrays of colors and positions used for - interpolating color blending in a multicolor gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Array of colors. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified elements count - - The count of the element. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(2); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend(2) - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the function. - - The color space. - The properly prepared sampled function. - - - - Clones this instance. - - The copy of this instance of the PdfColorBlend class. - - - - Sets the range. - - The colour components. - The max value. - The ranges array. - - - - Calculates the color components count according to colour space. - - The color space. - The number of colour components. - - - - Gets samples values for specified colour space. - - The color space. - The sample count. - The max component value. - The step. - The byte array of the sample values. - - - - Gets the grayscale samples. - - The sample count. - The max component value. - The step. - - - - - Gets the CMYK samples. - - The sample count. - The max component value. - The step. - - - - - Gets the RGB samples. - - The sample count. - The max component value. - The step. - The values of RGB samples. - - - - Calculates the color that should be at the specified index. - - The index. - The step. - The color space. - The colour obtained from the calculation. - - - - Gets the indices. - - The position. - The index low. - The index hi. - - - - Calculates the max component value. - - The color space. - The maximal component value. - - - - Gets an intervals array from the positions array. - - The positions array. - The intervals obtained from the positions. - - - - Gets or sets the array of colors. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the gradient direction of the linear gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), PdfLinearGradientMode.Vertical); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), PdfLinearGradientMode.Vertical) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies a gradient from upper right to lower left. - - - - - Specifies a gradient from upper left to lower right. - - - - - Specifies a gradient from left to right. - - - - - Specifies a gradient from top to bottom. - - - - - Specifies the constant values specifying whether to extend the shading - beyond the starting and ending points of the axis. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Do not extend any point. - - - - - Extend start point. - - - - - Extend end point. - - - - - Extend both start and end points. - - - - - Shading type constants. - - - - - Function-based shading. - - - - - Axial shading. - - - - - Radial shading. - - - - - Free-form Gouraud-shaded triangle mesh - - - - - Lattice-form Gouraud-shaded triangle mesh. - - - - - Coons patch mesh. - - - - - Tensor-product patch mesh. - - - - - Specifies constant values of PdfHatchStyle pattern. - - - - - Represents a graphics element which can be drawn by a pen. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Base class for the main shapes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets the bounds. - - rect - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Get the bounds. - RectangleF bounds = rect.GetBounds(); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Get the bounds. - Dim bounds As RectangleF = rect.GetBounds() - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - This method doesn't take into consideration a rotation of the element. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - A pen object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified pen - - The pen. - - - - Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. - - Gets the pen for drawing. - - - - - Gets or sets a pen that will be used to draw the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set pen. - line.Pen = new PdfPen(Color.Red); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set pen. - line.Pen = New PdfPen(Color.Red) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Base class for elements lay outing. - - - - - - Layout the element. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the HtmlToPdf element. - - Lay outing parameters. - Lay outing result. - - - - Returns the next page. - - Current page. - The next page. - The next page is taken from the same section the current one was. - If there is not enough pages within the section, the new one is appended. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets paginate bounds. - - Layout parameters. - Gets paginate bounds. - - - - Gets element`s layout. - - - - - Represents a layouting format - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Indicates whether PaginateBounds were set and should be used or not. - - - - - Bounds for the paginating. - - - - - Layout type of the element. - - - - - Break type of the element. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified layout format - - The base format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Create new PDF layout format instance. - PdfLayoutFormat newFormat = new PdfLayoutFormat(format); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), newFormat); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Create new PDF layout format instance. - Dim newFormat As PdfLayoutFormat = New PdfLayoutFormat(format) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), newFormat) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets layout type of the element. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets break type of the element. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bounds on the next page. - - If this property is set, the element will use it for the layouting on the next pages, - otherwise, the element will be layout according to the bounds, used on the first page. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a value indicating whether [use paginate bounds]. - - true if [use paginate bounds]; otherwise, false. - - - - Represents the layouting result format. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The last page where the element was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Holds the total web page layout size - - - - - Creates a new object. - - The current page. - The current bounds. - The page might be null, which means that - lay outing was performed on PdfGraphics. - - - - Gets the last page where the element was drawn. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the bounds of the element on the last page where it was drawn. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfLayoutResult result = table.Draw(page, new PointF(0, 0)); - //Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfLayoutResult = table.Draw(page, New PointF(0, 0)) - 'Draw grid. - table.Draw(result.Page, result.Bounds.X, result.Bounds.Bottom + 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Holds the total web page layout size - - - - - Represents the layouting parameters. - - - - - Start lay outing page. - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets the layouting page for the element. - - - - - Gets or sets layouting bounds for the element. - - - - - Gets or sets layouting settings for the element. - - - - - Represents an element to fill - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(PdfBrushes.Red, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(PdfBrushes.Red, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Internal variable to store brush. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The pen. - - - - Initializes a new instance of the class. - - The brush. - - - - Initializes a new instance of the class. - - The pen. - The brush. - - - - Gets the pen. If both pen and brush are not explicitly defined, default pen will be used. - - - brush - - - - Gets or sets the brush of the element - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set PDF solid brush. - rect.Brush = new PdfSolidBrush(Color.Green); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set PDF solid brush. - rect.Brush = New PdfSolidBrush(Color.Green) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Layouts the metafiles. - - - - - ShapeLayouter class. - - - - - Determines the document link annotation border width. - - - - - Initializes the object to store older form elements of previous page. - - - - - Initializes the offset index. - - - - - Initializes the difference in page height. - - - - - Determines the end of Vertical offset values. - - - - - Total Page size of the web page - - - - - Text region manager to avoid text split between the pages - - - - - Image region manager to avoid image split between the pages - - - - - Form region manager to avoid form fields between pages - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets paginate bounds. - - Layout parameters. - Gets paginate bounds. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the HtmlToPdf element. - - Lay outing parameters. - Lay outing result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Layout parameters. - Corrected lay outing bounds. - - - - Creates layout result. - - Page layout result. - Layout result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Layout parameters. - Corrected lay outing bounds. - - - - Repositions the links. - - The list. - The height. - - - - Layouts the element on the current page. - - The current page. - The current bounds. - Active shape bounds that aren't layouted. - Layout parameters. - Page lay outing result. - - - - Draws shape for Tagged PDF. - - - - - - - - - Calculates the next active shape bounds. - - The current active shape bounds. - The current page layout result. - The next active shape bounds. - - - - Checks whether shape rectangle fits to the lay outing bounds. - - Lay outing bounds. - Shape bounds. - True - if the shape fits into lay outing bounds, false otherwise. - - - - Returns Rectangle for element drawing on the page. - - Lay outing bounds. - Current shape bounds. - Returns Rectangle for element drawing on the page. - - - - Calculates bounds where the shape was layout on the page. - - Current lay outing bounds. - Shape bounds. - Bounds where the shape was layout on the page. - - - - Draws the shape. - - Current graphics. - Current page bounds. - Draw rectangle. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments.. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - If true, stop lay outing. - - - - Corrects the bounds to avoid blank page. - - Current lay outing bounds. - Shape bounds. - Current Page. - Corrected bounds. - - - - Gets shape element. - - - - - Text region manager to avoid text split between the pages - - - - - Image region manager to avoid image split between the pages - - - - - Form region manager to avoid form field split between the pages - - - - - Contains lay outing result settings. - - - - - The last page where the element was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - List of names of the radio button collection. - - - - - ArrayList for store names, number of elements(i.e. count), selected index of each radio button collection. - - - - - Initializes a new instance of the class. - - The element. - - - - Repositions the links. - - The list. - The height. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Lay outing parameters. - Corrected lay outing bounds. - - - - Corrects current bounds on the page to restrict blank pages. - - Current page. - Current lay outing bounds. - The current active shape bounds. - Corrected lay outing bounds. - - - - Gets shape element. - - - - - - Gets the Text regions manager. - - - - - Gets the Image regions manager. - - - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Indicates whether text line can be split among the pages. - - - - - Indicates whether the images can be split among the pages. - - - - - Gets or sets a value indicating whether [split text lines]. - - true if [split text lines]; otherwise, false. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether [split images]. - - true if [split images]; otherwise, false. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or set the HTML page break. - - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - format.IsHTMLPageBreak = true; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - format.IsHTMLPageBreak = True - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Class that layouts the text. - - - - - String format. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Creates layout result. - - Page layout result. - Layout result. - - - - Layouts the text on the page. - - The text that should be printed. - Current page. - Current bounds. - Layout parameters. - Page layout result. - - - - Corrects current bounds on the page. - - Current page. - Current lay outing bounds. - Corrected lay outing bounds. - - - - Returns a rectangle where the text was printed on the page. - - Current page. - Current page text bounds. - Layout result. - Returns a rectangle where the text was printed on the page. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - If true, stops the layout. - - - - Corrects string format. - - The last line infor layouted. - - - - Gets element`s layout. - - - - - - Contains lay outing result settings. - - - - - The last page where the text was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - The text that was not printed. - - - - - Gets or sets a bounds of the last text line that was printed. - - - - - Represents the text lay outing result settings. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - End Sub - - - - - - The text that was not printed. - - - - - The bounds of the last line that was printed. - - - - - Initializes a new instance of the class. - - The page. - The bounds. - The remainder. - The last line bounds. - - - - Gets a value that contains the text that was not printed. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - string remText = tlr.Remainder; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim remText As String = tlr.Remainder - End Sub - - - - - - Gets a value that indicates the bounds of the last line that was printed on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.LastLineBounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.LastLineBounds - End Sub - - - - - - Represents a HTML text area with the ability to span several pages. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - To know more about refer this link . - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(htmlText, font, PdfBrushes.Black); - htmlTextElement.TextAlign = TextAlign.Left; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement(htmlText, font, PdfBrushes.Black) - htmlTextElement.TextAlign = TextAlign.Left - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The font. - - - - - The brush. - - - - - The HTML text. - - - - - The Text Alignment. - - - - - Initializes a new instance of the class. - - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified HTML text, font and brush - - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The HTML text to be rendered in PDF. - The font. - The brush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(htmlText, font, PdfBrushes.Black); - htmlTextElement.TextAlign = TextAlign.Left; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement(htmlText, font, PdfBrushes.Black) - htmlTextElement.TextAlign = TextAlign.Left - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - RectangleF structure that specifies the bounds of the text. - Metafile layout format. - Layout result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the graphics. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics context where the text should be drawn - RectangleF structure that specifies the bounds of the text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Raises EndPageLayout event. - - Event arguments. - - - - Raises BeginPageLayout event. - - Event arguments. - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - Start location on the page. - Width of the text bounds. - Layout format. - Lay outing result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new PointF(0, 0), page.GetClientSize().Width, format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New PointF(0, 0), page.GetClientSize().Width, format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the graphics. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics context where the text should be drawn. - Start location on the page. - Width of the text bounds. - Height of the text bounds. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, new PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(graphics, New PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Draws the text on the page. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Current page where the text should be drawn. - Start location on the page. - Width of the text bounds. - Height of the text bounds. - Lay outing format. - Lay outing result. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - PdfLayoutResult result = htmlTextElement.Draw(page, new PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height, format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - Dim result As PdfLayoutResult = htmlTextElement.Draw(page, New PointF(0, 0), page.GetClientSize().Width, page.GetClientSize().Height, format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the base font for the text element. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the brush for the text element. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Set PDF brush. - htmlTextElement.Brush = new PdfSolidBrush(Color.Red); - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Set PDF brush. - htmlTextElement.Brush = New PdfSolidBrush(Color.Red) - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the HTML Text. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the text alignment. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Event. Raises after the element was printed on the page. - - - - - Event. Raises before the element should be printed on the page. - - - - - Gets a value indicating whether EndPageLayout is not null. - - - - - Gets a value indicating whether BeginPageLayout is not null. - - - - - Internal class which is used converts the html string in to Rich Text. - - - - - Internal variable to store the status of the RichTextBox control. - - - - - Internal variable. - - - - - Internal variable used while parsing the html text. - - - - - Internal variable to check for nested tag. - - - - - Dictionary containg list of support html tags. - - - - - Internal variable to specify font. - - - - - Internal varible to specify the color. - - - - - Internal variable to store copy of m_color. - - - - - Internal variable to store the PDF font size; - - - - - Internal variable to store the Html font size. - - - - - Method for maintaining the performance of RTF control while - updating. - - - - - Method invoked once the RTF control is updated. - - - - - Invoked once the handle has been created. - - The Eventargs. - - - - Converts the the given colorref to Color - - The Color. - The RGB coded color. - - - - Initializes the dictionary. - - - - - Converts the the given color to colorref - - Red - Green - Blue - The ColorRef equivalent for color. - - - - Converts the the given color to colorref - - The color. - The ColorRef - - - - Renders the given html text in to the RTF Control. - - strHTML - font - color - - - - Parses the HtmlString. - - The HtmlString. - - - - Parses the each Html Elements (Xml node) and apply the formatting. - - The htmltag - The Character format. - The Paragraph format. - - - - Converts the the given text to safe text - - The text. - The safe text - - - - Gets or sets the text alignment. - - - - - Gets or sets the paragraph format. - - - - - Gets or sets the default paragraph format. - - - - - Gets or sets the character format. - - - - - Gets or sets the default character format. - - - - - Gets a value indicating whether [internal updating]. - - true if [internal updating]; otherwise, false. - - - - Specifies how text in a is - horizontally aligned. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Simple HTML content - string htmlText = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files "; - //Create new PDF HTML text element. - PdfHTMLTextElement htmlTextElement = new PdfHTMLTextElement(); - //Set text align. - htmlTextElement.TextAlign = TextAlign.Left; - //Set html text. - htmlTextElement.HTMLText = htmlText; - //Set font. - htmlTextElement.Font = font; - //Format Layout. - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitPage; - //Draw htmlString to PDF page. - htmlTextElement.Draw(page, new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Simple HTML content - Dim htmlText As String = "Essential PDF is a .NET " + "library with the capability to produce Adobe PDF files " - 'Create new PDF HTML text element. - Dim htmlTextElement As New PdfHTMLTextElement() - 'Set text align - htmlTextElement.TextAlign = TextAlign.Left - 'Set html text. - htmlTextElement.HTMLText = htmlText - 'Set font. - htmlTextElement.Font = font - 'Format Layout. - Dim format As New PdfMetafileLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitPage - 'Draw htmlString to PDF page. - htmlTextElement.Draw(page, New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The text is aligned to the left. - - - - - The text is aligned to the right. - - - - - The text is aligned in the center. - - - - - The text is justified. - - - - - internal variable to store Size. - - - - - internal variable to store Mask. - - - - - internal variable to store Numbering. - - - - - internal variable to store Reserved. - - - - - internal variable to store Start Indent. - - - - - internal variable to store Right Indent. - - - - - internal variable to store Offset. - - - - - internal variable to store Alignment. - - - - - internal variable to store Tab Count. - - - - - internal variable to store rgxTabs. - - - - - internal variable to store Space Before. - - - - - internal variable to store Space After. - - - - - internal variable to store Line Spacing. - - - - - internal variable to store Style. - - - - - internal variable to store Line Spacing Rule. - - - - - internal variable to store Out line Level. - - - - - internal variable to store Shading Weight. - - - - - internal variable to store Shading Style. - - - - - internal variable to store Numbering Start. - - - - - internal variable to store Numbering Style. - - - - - internal variable to store Numbering Tab. - - - - - internal variable to store Border Space. - - - - - internal variable to store Border Width. - - - - - internal variable to store Borders. - - - - - internal variable to store size. - - - - - internal variable to store Mask. - - - - - internal variable to store Effects. - - - - - internal variable to store Height. - - - - - internal variable to store Offset. - - - - - internal variable to store Text Color. - - - - - internal variable to store CharSet. - - - - - internal variable to store Pitch And Family. - - - - - internal variable to store Weight. - - - - - internal variable to store Spacing. - - - - - internal variable to store BackColor. - - - - - internal variable to store lcid. - - - - - internal variable to store Reserved. - - - - - internal variable to store Style. - - - - - internal variable to store Kerning. - - - - - internal variable to store Under line Type. - - - - - internal variable to store Animation. - - - - - internal variable to store RevAuthor. - - - - - internal variable to store Reserved. - - - - - Provides the data for a cancelable event. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - e.Cancel=true; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - End Sub - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - e.Cancel=True - End Sub - - - - - - Indicates whether lay outing should be stopped. - - - - - Gets or sets a value indicating whether this is cancel. - - true if cancel; otherwise, false. - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - bounds = column; - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - e.Cancel=true; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, 50) - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - End Sub - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - e.Cancel=True - End Sub - - - - - - Provides data for event before lay outing the new page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - The bounds of the lay outing on the page. - - - - - Page where the lay outing should start. - - - - - Initializes a new instance of the class with the specified rectangle and page - - The bounds. - The page. - - - - Gets or sets value that indicates the lay outing bounds on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - Gets the page where the lay outing should start. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - PdfPage page = e.pAGE; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim page As PdfPage = e.Page - End Sub - - - - - - Provides data for event once lay outing completed on the new page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - m_columnBounds = column; - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Layout result. - - - - - The next page for lay outing. - - - - - Initializes a new instance of the class. with the specified - - The result. - - - - Gets the lay outing result of the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Gets or sets a value indicating the next page where the element should be layout - - The default value is null. In this case the element will be layout on the next page. - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler. - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - args.NextPage = tlr.Page - End Sub - - - - - - Represents the base class for classes that contain event data, and provides a value to use for events, once completed the text lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Initializes a new instance of the class with the specified - - The result. - - - - Gets the lay outing result of the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - End Sub - - - - - - Represents the method that will handle an event that before lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //Begin Page Layout Event Handler - private void BeginPageLayout2(object sender, BeginPageLayoutEventArgs e) - { - RectangleF bounds = e.Bounds; - // First column. - if (!m_paginateStart) - { - bounds.X = bounds.Width + 20f; - bounds.Y = 10f; - } - e.Bounds = bounds; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'Begin Page Layout Event Handler - Private Sub BeginPageLayout2(ByVal sender As object, ByVal e As BeginPageLayoutEventArgs) - Dim bounds As RectangleF = e.Bounds - ' First column. - If (Not m_paginateStart) Then - bounds.X = bounds.Width + 20f - bounds.Y = 10f - End If - e.Bounds = bounds - End Sub - - - - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Represents the method that will handle an event, once completed the text lay outing on the page. - - - - // Create a PDF document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - private bool m_paginateStart = true; - PdfSolidBrush brush = new PdfSolidBrush(Color.Black); - PdfPen pen = new PdfPen(Color.Black, 1f); - //Creates a new pdf font - PdfStandardFont pdfFont = new PdfStandardFont(PdfFontFamily.Helvetica, 11.5f); - Font font = new Font("Calibri", 14f, FontStyle.Bold); - PdfTrueTypeFont trueTypeFont = new PdfTrueTypeFont(font, true); - string path = @"..\..\Data\Essential studio.txt"; - StreamReader reader = new StreamReader(path, Encoding.ASCII); - string text = reader.ReadToEnd(); - reader.Close(); - RectangleF column = new RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height); - //Create text element - PdfTextElement element = new PdfTextElement(text, pdfFont); - element.Brush = new PdfSolidBrush(Color.Black); - PdfLayoutFormat layoutFormat = new PdfLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Raise the event when the text flows to next page. - element.BeginPageLayout += new BeginPageLayoutEventHandler(BeginPageLayout2); - //Get the remaining text that flows beyond the boundary. - PdfTextLayoutResult result = element.Draw(page, column, layoutFormat); - //Saves the document. - doc.Save("Sample.pdf"); - //End Text Page Layout Event Handler - private void EndPageLayout2(object sender, EndPageLayoutEventArgs e) - { - EndTextPageLayoutEventArgs args = (EndTextPageLayoutEventArgs)e; - PdfTextLayoutResult tlr = args.Result; - RectangleF bounds = tlr.Bounds; - args.NextPage = tlr.Page; - } - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim m_paginateStart As Bool= True - Dim brush As New PdfSolidBrush(Color.Black) - Dim pen As New PdfPen(Color.Black, 1f) - 'Creates a new pdf font - Dim pdfFont As New PdfStandardFont(PdfFontFamily.Helvetica, 11.5f) - Dim font As New Font("Calibri", 14f, FontStyle.Bold) - Dim trueTypeFont As New PdfTrueTypeFont(font, True) - Dim path As string = "..\..\..\..\..\..\..\..\..\Common\Data\PDF\Essential studio.txt" - Dim reader As New StreamReader(path, Encoding.ASCII) - Dim text As string = reader.ReadToEnd() - reader.Close() - Dim column As New RectangleF(0, 20, page.Graphics.ClientSize.Width / 2f - 10f, page.Graphics.ClientSize.Height) - 'Create text element - Dim element As New PdfTextElement(text, pdfFont) - element.Brush = New PdfSolidBrush(Color.Black) - Dim layoutFormat As New PdfLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Raise the event when the text flows to next page. - element.BeginPageLayout += New BeginPageLayoutEventHandler(BeginPageLayout2) - 'Get the remaining text that flows beyond the boundary. - Dim result As PdfTextLayoutResult = element.Draw(page, column, layoutFormat) - 'Saves the document. - doc.Save("Sample.pdf") - 'End Text Page Layout Event Handler - Private Sub EndPageLayout2(ByVal sender As object, ByVal e As EndPageLayoutEventArgs) - Dim args As EndTextPageLayoutEventArgs = CType(e, EndTextPageLayoutEventArgs) - Dim tlr As PdfTextLayoutResult = args.Result - Dim bounds As RectangleF = tlr.Bounds - args.NextPage = tlr.Page - End Sub - - - - - - Specifies type of paginating. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - If the element exceeds the page, proceed it on the next page. - - - - - Draw the element on the one page only. - - - - - Specifies how the element should be contained on the page. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - for (int i = 20; i>0; i--) - { - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - } - //Assign data source. - table.DataSource = dataTable; - //Create new PDF layout format instance. - PdfLayoutFormat format = new PdfLayoutFormat(); - //Set page break. - format.Break = PdfLayoutBreakType.FitPage; - //Set layout type. - format.Layout = PdfLayoutType.Paginate; - //Set paginate bounds. - format.PaginateBounds = new RectangleF(0, 0, 500, 350); - //Draw grid to the page of PDF document. - table.Draw(page, new RectangleF(0,0, 500, 700), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - For i As Integer = 20 To 1 Step -1 - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - Next - 'Assign data source. - table.DataSource = dataTable - 'Create new PDF layout format instance. - Dim format As New PdfLayoutFormat() - 'Set page break. - format.Break = PdfLayoutBreakType.FitPage - 'Set layout type. - format.Layout = PdfLayoutType.Paginate - 'Set paginate bounds. - format.PaginateBounds = New RectangleF(0, 0, 500, 350) - 'Draw grid to the page of PDF document. - table.Draw(page, New RectangleF(0, 0, 500, 700), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Fit the element according to the bounds specified or the page bounds. - - - - - If the element doesn't fit at the first page, don't draw it on this page. - - - - - Fit the columns withtin the page. - - - - - A Class representing Pdf document which is used for Cid Font Descryptor Factory. - - - - - Defines the basic interace of the various Primitive.. - - - - - Saves the object using the specified writer. - - The writer. - - - - Creates a deep copy of the IPdfPrimitive object. - - - - - Specfies the status of the IPdfPrmitive. Status is registered if it has a reference or else none. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Stores the cloned object for future use. - - - - - Gets or sets the position of the object. - - - - - Interface of the objects that support Changable of their internals. - - - - - Freezes the changes. - - The freezer. - - - - Gets a value indicating whether this is changed. - - true if changed; otherwise, false. - - - - Start marker for dictionary. - - - - - End marker for dictionary. - - - - - Collection of items in the object. - - - - - Flag for PDF file formar 1.5 is dictionary archiving needed. - - - - - Flag is dictionary need to encrypt. - - - - - Flag is dictionary need to decrypt. - - - - - Indicates if the object was changed. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Represents the XFA dictionary - - - - - indicates whether the dictionary is rendered or not. - - - - - Represents the Font dictionary. - - - - - Initializes a new empty instance of the class. - - - - - Initializes a new instance of the class - with values taken from the dictionary. - - The dictionary. - - - - Determines whether the dictionary contains key. - - The key. - - true if the dictionary contains key; otherwise, false. - - - - - Determines whether the dictionary contains the key. - - The key. - - true if the dictionary contains the key; otherwise, false. - - - - - Removes the specified key. - - The key. - - - - Removes the specified key. - - The key. - - - - Clears items from object dictionary. - - - - - Creates a copy of PdfDictionary. - - - - - Gets a value from itself or one of the parent dictionaries. - - The cross table. - The key of the value. - The key to the parent. - The value by the key. - - - - Gets a value from itself or one of the parent dictionaries. - - The key of the value. - The key to the parent. - The value by the key. - - - - Returns the string specified by the propertyName parameter. - - Name of the property. - The string by its name. - - - - Returns the integer value of the dictionary entry specified by the propertyName variable. - - Name of the property. - The integer value of the property. - - - - Save dictionary items. - - Writer object. - - - - Creates a PDF name object. - - The string which the object is initialized with. - The PDF object. - - - - Raises event . - - Event arguments. - - - - Raises event . - - Event arguments. - - - - Saves the object using the specified writer. - - The writer. - - - - Saves the object. - - Writer object. - If true - raises the event, False - doesn't raise. - - - - Sets the internal property. - - The key. - The primitive. - - - - Sets the internal property. - - The PdfName. - The primitive. - - - - Sets the internal property. - - The key. - The wrapper. - - - - Sets the property. - - The dictionary. - The key. - The wrapper. - - - - Sets the property. - - The dictionary. - The key. - The primitive. - - - - Sets the boolean. - - The key. - Boolean value. - - - - Sets the integer number. - - The key. - The value. - - - - Sets the float number. - - The key. - The value. - - - - Sets the array. - - The key. - The list of primitives to be placed into array. - - - - Sets the date time. - - The key. - The date time. - - - - Gets the date time from Pdf standard date format. - - The string, which contains Pdf standard date format. - The time in - - - - Sets the string primitive. - - The key. - The string. - - - - Sets the name. - - The dictionary. - The key. - The name. - - - - Sets the name primitive. - - The key. - The name. - - - - Sets the name. - - The key. - The name. - Determines whether to process special characters. - - - - Checks the changes. - - Returns true if the dictionary was changed. - - - - Freezes the changes. - - The freezer. - - - - Mark this instance modified. - - - - - Gets or sets the with the specified key. - - - - - Gets or sets the with the specified key. - - - - - - Gets the count. - - - - - Gets the values. - - - - - Get or set flag if need to archive dictionary. - - - - - Gets or sets flag if encryption is needed. - - - - - Gets or sets flag if decryption is needed. - - - - - Gets the keys. - - - - - Gets the items. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Represents the Font dictionary - - - - - Event. Raise before the object saves. - - - - - Event. Raise after the object saved. - - - - - Gets a value indicating whether this is changed. - - true if changed; otherwise, false. - - - - Initializes a new instance of the class. - - The font family. - The font style. - The font metrics. - - - - Gets the system info. - - The font family. - The properly formed dictionary. - - - - A Class representing Pdf document which is used for Cjk Font Descryptor Factory. - - - - - Gets the font descryptor. - - The font family. - The font style. - The font metrics. - font Descryptor - - - - Fills the monotype sung light font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the heisei kaku gothic w5 font descryptor. - - The font descryptor. - The font style. - The font family. - The font metrics. - - - - Fills the hanyang systems shin myeong jo medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the heisei mincho w3 font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the sino type song light font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the monotype hei medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the hanyang systems gothic medium font descryptor. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the known info. - - The font descryptor. - The font family. - The font metrics. - - - - Fills the flags. - - The font descryptor. - The font family. - - - - Fills the font BBox. - - The font descryptor. - The font BBox. - - - - Represents the standard CJK fonts. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Defines a particular format for text, including font face, size, and style attributes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Multiplier of the symbol width. - - - - - Synchronization object. - - - - - Size of the font. - - - - - Style of the font. - - - - - Metrics of the font. - - - - - PDf primitive of the font. - - - - - Initializes a new instance of the class. - - The size. - - - - Initializes a new instance of the class. - - The size. - The style. - - - - Measures a string by using this font. - - String to measure. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, format , out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, 100); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, 100, format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100, format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - Maximum width of the string in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, format, 100, out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, 100, format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100,100)); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100)) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100,100) , format); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100), format) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Measures a string by using this font. - - String to measure. - SizeF structure that specifies the maximum layout area for the text in points. - PdfStringFormat that represents formatting information, such as line spacing, for the string. - Number of characters in the string. - Number of text lines in the string. - Size of the text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - PdfStringFormat format = new Syncfusion.Pdf.Graphics.PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - format.LineAlignment = PdfVerticalAlignment.Middle; - string text = "Hello World!"; - int charactersFilled, linesFilled; - //Measure the text. - SizeF size = font.MeasureString(text, new SizeF(100, 100), format , out charactersFilled, linesFilled); - //Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, new RectangleF(PointF.Empty, size), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - Dim format As PdfStringFormat = New Syncfusion.Pdf.Graphics.PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - format.LineAlignment = PdfVerticalAlignment.Middle - Dim text As String = "Hello World!" - Dim charactersFilled As Integer, linesFilled As Integer - 'Measure the text. - Dim size As SizeF = font.MeasureString(text, New SizeF(100,100), format, charactersFilled, linesFilled) - 'Draw string to PDF page. - graphics.DrawString(text, font, PdfBrushes.Black, New RectangleF(PointF.Empty, size), format) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Checks whether the object is similar to another object. - - The object to compare with the current object. - True - if the objects have equal internals and can share them, False otherwise. - - - - Returns internals of the object. - - Returns internals of the object. - - - - Sets internals to the object. - - Internals of the object. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Sets the style. - - The style. - - - - Applies settings to the default line width. - - Text line. - String format. - Default line width. - Line width with settings applied. - - - - Gets the face name of this Font. - - A string representation of the face name of this . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the size of this font. - - The em-size of this Font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the height of the font in points. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets the style information for this font. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is bold. - - true if bold; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this has the italic style applied. - - true if italic; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is strikeout. - - true if strikeout; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is underline. - - true if underline; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Get font Name. - string fontName = font.Name; - //Get font size. - float fontSize = font.Size; - //Get font height. - float fontHeight = font.Height; - //Get the font style. - PdfFontStyle style = font.Style; - StringBuilder builder = new StringBuilder(); - builder.AppendLine("Font Name: " + fontName); - builder.AppendLine("Font Size: " + fontSize); - builder.AppendLine("Font Height: " + FontHeight); - builder.AppendLine("Font Style: " + style.ToString()); - builder.AppendLine("Bold: " + font.Bold.ToString()); - builder.AppendLine("Italic: " + font.Italic.ToString()); - builder.AppendLine("Underline: " + font.Underline.ToString()); - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()); - //Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Get font Name. - Dim fontName As String = font.Name - 'Get font size. - Dim fontSize As Single = font.Size - 'Get font height. - Dim fontHeight As Single = font.Height - 'Get the font style. - Dim style As PdfFontStyle = font.Style - Dim builder As New StringBuilder() - builder.AppendLine("Font Name: " + fontName) - builder.AppendLine("Font Size: " + fontSize) - builder.AppendLine("Font Height: " + fontHeight) - builder.AppendLine("Font Style: " + style.ToString()) - builder.AppendLine("Bold: " + font.Bold.ToString()) - builder.AppendLine("Italic: " + font.Italic.ToString()) - builder.AppendLine("Underline: " + font.Underline.ToString()) - builder.AppendLine("Strikeout: " + font.Strikeout.ToString()) - 'Draw string to PDF page. - graphics.DrawString(builder.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the metrics for this font. - - - - - Gets Pdf primitive representing the font. - - - - - First character position. - - - - - Font family - - - - - Initializes a new instance of the class with the specified , size and style - - The font family. - The size. - The style. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified and size - - The font family. - The size. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified and size - - The prototype. - The size. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfCjkStandardFont cjkFont = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Create PDF cjk font. - PdfFont font = new PdfCjkStandardFont(cjkFont, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim cjkFont As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Create PDF cjk font. - Dim font As PdfFont = New PdfCjkStandardFont(cjkFont, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified , size and style - - The prototype. - The size. - The style. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfCjkStandardFont cjkFont = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Create PDF cjk font. - PdfFont font = new PdfCjkStandardFont(cjkFont, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim cjkFont As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Create PDF cjk font. - Dim font As PdfFont = New PdfCjkStandardFont(cjkFont, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Checks whether fonts are equals. - - Font to compare. - - True if fonts are equal, False otherwise. - - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Initializes the internals. - - - - - Creates font's dictionary. - - font's dictionary. - - - - Returns descendant font. - - Returns descendant font. - - - - Gets the prope CJK encoding. - - The font family. - Proper PDF name for the encoding. - - - - Checks the style. - - - - - Gets the char width internal. - - The character code. - The format. - The width of the character. - - - - Gets the CJK font family. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new PDF cjk font. - PdfCjkStandardFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold); - //Draw the text. - graphics.DrawString("The CJK font family name is " + font.FontFamily.ToString(), font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF cjk font. - Dim font As New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20, PdfFontStyle.Bold) - 'Draw the text. - graphics.DrawString("The CJK font family name is " + font.FontFamily.ToString(), font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - A Class representing Pdf document which is used for Cjk Font Metrics Factory. - - - - - Multiplier of subscript superscript. - - - - - Initializes a new instance of the class. - - - - - Returns font metrics depending on the font settings. - - Font family. - Font style. - Size of the font. - Returns font metrics depending on the font settings. - - - - Gets the hanyang systems gothic medium font metrix. - - The font family. - The font style. - The size. - The filled font metrix. - - - - Gets the monotype hei medium metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the monotype sung light metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the sino type song light font metrics. - - The font family. - The font style. - The size. - PdfFontMetrics instance. - - - - Gets the heisei mincho w3. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the heisei kaku gothic w5 metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Gets the hanyang systems shin myeong jo medium metrix. - - The font family. - The font style. - The size. - The proper PdfFontMetrics class instance. - - - - Metrics of the font. - - - - - Gets ascent of the font. - - - - - Gets descent of the font. - - - - - Name of the font. - - - - - Gets PostScript Name of the font. - - - - - Gets size of the font. - - - - - Gets height of the font. - - - - - First char of the font. - - - - - Last char of the font. - - - - - Line gap. - - - - - Subscript size factor. - - - - - Superscript size factor. - - - - - Gets table of glyphs' width. - - - - - Indicate whether the ttfreader font has bold style. - - - - - Returns ascent taking into consideration font's size. - - Text format settings. - Returns ascent taking into consideration font's size. - - - - Returns descent taking into consideration font's size. - - Text format settings. - Returns descent taking into consideration font's size. - - - - Returns Line gap taking into consideration font's size. - - Text format settings. - Returns line gap taking into consideration font's size. - - - - Returns height taking into consideration font's size. - - Text format settings. - Returns height taking into consideration font's size. - - - - Calculates size of the font depending on the subscript/superscript value. - - Text format settings. - Size of the font depending on the subscript/superscript value. - - - - Clones the metrics. - - Cloned metrics. - - - - Gets or sets the width table. - - - - - The base class for a width table. - - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Toes the array. - - - - - - Gets the at the specified index. - - index - - - - Implements a width table for standard fonts. - - - - - The widths of the supported characters. - - - - - Initializes a new instance of the class. - - The widths table. - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Converts width table to a PDF array. - - The properly formed pdf array. - - - - Gets the at the specified index. - - index - - - - Gets the length of the internal array. - - - - - Implements CJK width table, which is quite complex. - - - - - Local variable to store the width. - - - - - Local variable to store the default width. - - - - - Initializes a new instance of the class. - - The default width of the CJK characters. - This value will be returned if there is no width information for a character. - - - - Adds the specified widths. - - The CJK widths. - - - - Clones this instance of the WidthTable class. - - A copy of this WidthTable instance. - - - - Converts width table to a PDF array. - - A well formed PDF array. - - - - Gets the default character width. - - - - - Gets the at the specified index. - - index - - - - The base class of CJK widths types. - - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Implements capabilities to control a range of character with the same width. - - - - - The Form - - - - - The to - - - - - The Width - - - - - Initializes a new instance of the class. - - From. - To. - The width. - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Implements capabilities to control a sequent range of characters with different width. - - - - - The form - - - - - The width - - - - - Initializes a new instance of the class. - - From. - The widths. - - - - Appends internal data to a PDF array. - - The pdf array. - - - - Clones this instance. - - The proper copy of this instance. - - - - Gets the starting character. - - - - - Gets the ending character. - - - - - Gets the width of the specified character. - - - - - Represents one of the 14 standard PDF fonts. - It's used to create a standard PDF font to draw the text in to the PDF - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - First character position. - - - - - FontFamily of the font. - - - - - Initializes a new instance of the class with font family and it's size - - The font family. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with font family, size and font style - - The font family. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with as prototype and font size - - The using as prototype. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(new PdfStandardFont(PdfFontFamily.Helvetica,12), 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(New PdfStandardFont(PdfFontFamily.Helvetica,12), 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with as prototype,font size and font style - The using as prototype.. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(new PdfStandardFont(PdfFontFamily.Helvetica,12), 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(New PdfStandardFont(PdfFontFamily.Helvetica,12), 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Initializes font internals. - - - - - Initializes font internals. - - - - - Creates font's dictionary. - - font's dictionary. - - - - Checks font style of the font. - - - - - Returns width of the char. This methods doesn't takes into consideration font's size. - - Char symbol. - String format. - Width of the symbol. - - - - Converts the specified text. - - The unicode text. - The ANSI string. - - - - Gets the FontFamily. - - The - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draw string to PDF page. - graphics.DrawString(font.FontFamily.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draw string to PDF page. - graphics.DrawString(font.FontFamily.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Factory of the standard fonts metrics. - - - - - Multiplier os subscript superscript. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Ascender value for the font. - - - - - Ascender value for the font. - - - - - Font type. - - - - - Arial widths table. - - - - - Arial bold widths table. - - - - - Fixed widths table. - - - - - Times widths table. - - - - - Times bold widths table. - - - - - Times italic widths table. - - - - - Times bold italic widths table. - - - - - Symbol widths table. - - - - - Zip dingbats widths table. - - - - - Initializes a new instance of the class. - - - - - Returns metrics of the font. - - Family of the font. - Style of the font. - Size of the font. - Returns metrics of the font. - - - - Creates Helvetica font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Courier font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Times font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates Symbol font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Creates ZapfDingbats font metrics. - - FontFamily of the font. - Style of the font. - Size of the font. - Helvetica font metrics. - - - - Represents the text layout information on PDF - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Horizontal text alignment. - - - - - Vertical text alignment. - - - - - Indicates whether RTL should be checked. - - - - - Character spacing value. - - - - - Word spacing value. - - - - - Text leading. - - - - - Shows if the text should be a part of the current clipping path. - - - - - Indicates whether the text is in subscript or superscript mode. - - - - - The scaling factor of the text being drawn. - - - - - Indent of the first line in the text. - - - - - Indent of the first line in the paragraph. - - - - - Indicates whether entire lines are laid out in the formatting rectangle only or not. - - - - - Indicates whether spaces at the end of the line should be left or removed. - - - - - Indicates whether the text region should be clipped or not. - - - - - Indicates text wrapping type. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with horizontal alignment of a text - - The represents the horizontal alignment of a text in PDF . - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(PdfTextAlignment.Center); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat(PdfTextAlignment.Center) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class with column format - - The column format. - - - Initializes a new instance of the class with horizontal and vertical alignment - The represents the horizontal alignment of a text in PDF . - The represents the vertical alignment of a text in PDF - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat(PdfTextAlignment.Center, PdfVerticalAlignment.Middle) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Clones the object. - - The new created object. - - - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Clone the string format. - PdfStringFormat format1 = format.Clone() as PdfStringFormat; - - - 'Create a new PDF string format instance. - Dim format As New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle - 'Clone the string format. - Dim format1 As PdfStringFormat = TryCast(format.Clone(), PdfStringFormat) - - - - - - Gets or sets the value that indicates text direction. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - format.TextDirection = PdfTextDirection.RightToLeft; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set right to left. - format.TextDirection = PdfTextDirection.RightToLeft - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the horizontal text alignment - - The represents the horizontal alignment of a text in PDF - Default value: PdfTextAlignment.Left - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the vertical text alignment. - - The represents the vertical alignment of a text in PDF - Default Value: PdfVerticalAlignment.Top - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the value that indicates text direction mode. - - true if RightToLeft; otherwise, false. - Note, that this property doesn't change any alignment of the text. - property should be set manually to align the text. This property just enables or disables - support of right to left approach. - If the value is False, the text won't be checked for right to left symbols occurrence. This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - format.RightToLeft = false; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set right to left. - format.RightToLeft = False - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates a size among the characters in the text. - When the glyph for each character in the string is rendered, this value is - added to the glyph�s displacement. - - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates a size among the words in the text. - Word spacing works the same way as character spacing but applies only to the - space character, code 32. - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set word spacing. - format.WordSpacing = 1.5f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set word spacing. - format.WordSpacing = 1.5F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value that indicates the vertical distance between the baselines of adjacent lines of text. - - Default value is 0. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set line spacing. - format.LineSpacing = 1.1f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set line spacing. - format.LineSpacing = 1.1F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether the text - should be a part of the clipping path. - - true if ClipPath; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value indicating whether the text is in subscript or superscript mode. - - The indicating whether the text is in subscript or superscript mode - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the indent of the first line in the paragraph. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [line limit]. - - true if [line limit]; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [measure trailing spaces]. - - - true if [measure trailing spaces]; otherwise, false. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets a value indicating whether [no clip]. - - true if [no clip]; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets value indicating type of the text wrapping. - - The indicating type of the text wrapping - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or sets the scaling factor. - - The default scaling factor is 100, which means 100% and original size. - It's used to make PDF font looking smaller when metafile is rendered into PDF. - - - - Gets or sets the indent of the first line in the text. - - - - - Represents TrueType font. - - [System.Security.Permissions.PermissionSet( System.Security.Permissions.SecurityAction.Assert, Name = "FullTrust" )] - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Code page for the encoding. - - - - - Encoding for the font. - - - - - Indicates whether the font should be embeded. - - - - - Indicates whether the font should use unicode symbols. - - - - - Internal font object. - - - - - - - - - - used to store style of the font - - - - - Indicates whether the font embeding is enabled or disabled . - - - - Initializes a new instance of the class with specified Font - The system font that defines the text format of the string - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with font and Boolean flag to set the Unicode of the PDF font - This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The boolean flag represents the support of unicode text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a truetype font - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14),true); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a truetype font - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14), True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class. - - The system font that defines the text format of the string - The boolean flag represents the support of unicode text - - - - Initializes a new instance of the class with font and it's size - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with font, size and Boolean flag to set Unicode. - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The size of the font. - The boolean flag represents the support of unicode text - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a truetype font - PdfFont font = new PdfTrueTypeFont(new Font("Arial", 14),12,true); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a truetype font - Dim font As PdfFont = New PdfTrueTypeFont(New Font("Arial", 14), 12, True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - This constructor is specific for removing font from cach collection. - - - - - - - - - - - This constructor is specific for removing font from cach collection. - - - - - - - - - - Initializes a new instance of the class with font,font style,size,Boolean flag to set Unicode and Boolean flag to embed the font into the PDF - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The system font that defines the text format of the string - The style of the font. - The size of the font. - The boolean flag represents the support of unicode text - The boolean flag represents to embed the font into the pdf - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(sFont, FontStyle.Regular, 12, true, true); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(sFont, FontStyle.Regular, 12, True, True) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - Initializes a new instance of the class with the path of the font file which has the extension of .ttf and it's size - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font file path which has the extension of .ttf. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont("arial.ttf", 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont("arial.ttf", 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font file path which has the extension of .ttf - The size of the font. - Type of the is true. - - - Initializes a new instance of the class with the path of the font file which has the extension of .ttf, size and font style - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font file path. - The size of the font. - The style of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont("arial.ttf", 12, PdfFontStyle.Regular); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont("arial.ttf", 12, PdfFontStyle.Regular) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font file. - The size. - The style. - - - - Initializes a new instance of the class. - - The font file. - The size. - The style. - - - - Initializes a new instance of the class. - - Font Stream. - Size of the font. - - - - Initializes a new instance of the class. - - The font stream. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Read a font file stream. - Stream fontStream = new MemoryStream(File.ReadAllBytes("arial.ttf")); - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(fontStream, 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Read a font file stream. - Dim fontStream As Stream = New MemoryStream(File.ReadAllBytes("arial.ttf")) - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(fontStream, 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - Font Stream. - Size of the font. - Style of the font. - Embedding. - - - - Initializes a new instance of the class with prototype and it's size - - The PdfTrutypeFont using as a prototype. - The size of the font. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF true type font instance. - PdfFont font = new PdfTrueTypeFont(new PdfTrueTypeFont(new Font("Arial",12,FontStyle.Regular)), 12); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF true type font instance. - Dim font As PdfFont = New PdfTrueTypeFont(New PdfTrueTypeFont(New Font("Arial",12,FontStyle.Regular)), 12) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The prototype. - The size. - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Releases all resources of the font. - - Don't dispose the font until the corresponding document is closed. - - - - Returns width of the char. - - Char symbol. - String format. - Width of the symbol. - - - - Returns width of the line. - - Text line. - String format. - Width of the line. - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Stores used symbols. - - String text. - - - - Stores used symbols. - - Glyphs, used by the line of the text. - - - - Creates internal font object. - - System font. - - - - Creates internal font object. - - Font file. - Suggested style of the font. - - - - Creates a new font from a prototype font. - - Prototype object. - - - - Creates internal font object. - - Font file. - Suggested style of the font. - - - - Initializes font internals. - - - - - Sets the style of the font. - - Suggested style of the font. - - - - Calculates size of the symbol. - - Symbol. - String format. - Symbol size. - - - - Calcuates width of the unicode line. - - String text. - Width of the line. - True if success, false otherwise. - - - Gets a value indicating whether this is Unicode enabled (Read only). - - true if Unicode; otherwise, false. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create new system font. - Font sFont = new Font("Arial", 12, FontStyle.Regular); - //Create a new PDF true type font instance. - PdfTrueTypeFont font = new PdfTrueTypeFont(sFont, 12, true); - //Check unicode support. - bool isUnicode = font.Unicode; - //Draw string to PDF page. - graphics.DrawString("Unicode Font = " + isUnicode, font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create new system font. - Dim sFont As New Font("Arial", 12, FontStyle.Regular) - 'Create a new PDF true type font instance. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(sFont, 12, True) - 'Check unicode support. - Dim isUnicode As Boolean = font.Unicode - 'Draw string to PDF page. - graphics.DrawString("Unicode Font = " + isUnicode, font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether this is embeded it to the PDF document - - true if embeded; otherwise, false. - - - - Gets internals of the font. - - - - - Gets font object of this font. - - - - - Gets path to the font file if the font was created from a file. - - - - - The Syncfusion.Pdf.Graphics.Fonts namespace contains classes for retrieving used fonts in existing PDF documents. - - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The font. - The existing PDF page - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new PDF font object. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create new PDF used font object. - PdfUsedFont usedFont = new PdfUsedFont(font, ldoc.Pages[0] as PdfLoadedPage); - //Get the used font name. - string name = usedFont.Name; - //Get the used font type. - PdfFontType fontType = usedFont.Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create a new PDF used font object. - Dim usedFont As PdfUsedFont = New PdfUsedFont(font, CType(ldoc.Pages(0), PdfLoadedPage)) - 'Get the used font name. - Dim name As String = usedFont.Name - 'Get the used font style. - Dim fontType As PdfFontType = usedFont.Type - 'Close the document. - ldoc.Close(True) - - - - - Replaces the specified new font. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The newFont to be replaced the existing font. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Load the existing used fonts. - PdfUsedFont[] usedFonts = ldoc.UsedFonts; - //Get the used font to be replaced. - PdfUsedFont usedFont = usedFonts[0]; - //Create a new font to be replace. - PdfFont newFont = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Repace the existing font. - usedFont.Replace(newFont); - //Save the document. - ldoc.Save("output.pdf"); - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Load the existing used fonts. - Dim usedFonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font to be replaced. - Dim usedFont As PdfUsedFont = usedFonts(0) - 'Create a new font to be replace. - Dim newFont As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Repace the existing font. - usedFont.Replace(newFont) - 'Save the document. - ldoc.Save("output.pdf") - 'Close the document. - ldoc.Close(True) - - - - - Initializes the internals. - - The font. - - - - Gets the actual name of the font. - - - - - - Checks the preambula. - - - - - Gets the internal font. - - The internal font. - - - - Gets the name. - - The name. - - - //Load the existing PDF document - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font name - string fontName = fonts[0].Name; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font name - Dim fontName As String = fonts(0).Name - 'Close the document. - ldoc.Close(True) - - - - - - Gets the size. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The size. - - - //Load the existing PDF document - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font size - float fontSize = fonts[0].Size; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font size - Dim fontSize As Single = fonts(0).Size - 'Close the document. - ldoc.Close(True) - - - - - - Gets the style. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The style. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font style. - PdfFontStyle fontStyle = fonts[0].Style; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font style - Dim fontStyle As PdfFontStyle = fonts(0).Style - 'Close the document. - ldoc.Close(True) - - - - - - Gets the type. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The type. - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font type. - PdfFontType fontType = fonts[0].Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font type - Dim fontType As PdfFontType = fonts(0).Type - 'Close the document. - ldoc.Close(True) - - - - - - Gets the actual name of the font. - - The actual name of the font. - - - - Renderers text and layouts it for RTL support. - - - - - Open bracket symbol. - - - - - Close bracket symbol. - - - - - Bitmap used for text shaping. - - - - - Initializes a new instance of the class. - - - - - Layouts text. Changes blocks position in the RTL text. - Ligates the text if needed. - - Line of the text. - Font to be used for string printing. - Font alignment. - Indicates whether Word Spacing used or not. - Layout string. - - - - Layouts a string and splits it by the words and using correct lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Determines whether the specified word is english. - - The word. - - true if the specified word is english; otherwise, false. - - - - - Copies words remaining their order. - - The words. - The start index. - The number of the words. - The resulting array. - Index of the result. - - - - Uses system API to layout the text. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - If true - word spacing is used. - Layout string. - - - - Uses system API to layout the text. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - Layout string. - - - - Uses manual algorithm for text lay outing. - - Line of the text to be layouted. - Font which is used for text printing. - Indicates whether we use RTL or RTL lay outing of the text container. - If true - word spacing is used. - layout string array. - - - - Uses manual algorithm for text lay outing. - - Line of the text to be layouted. - Indicates whether we use RTL or LTR layouting of the text container. - layout string. - - - - Reverses the words if they're RTL. - - The words. - The reversed words. - Keep English words in original order. - - - - Retrieves array of glyph indices. - - Line of the text. - Current font. - Indicates whether we use RTL or RTL lay outing of the text container. - Array of glyph indices. - True - if succeed, False otherwise. - - - - Breaks string to the blocks of the runs. - - String to be itemized. - Indicates whether text container is in RTL form or not. - Array describing each run. - Count of the runs in the string. - True - if operation succeed, False otherwise. - - - - Renders each run from the string. - - Input string text. - Run descriptors. - Font to be used for text printing. - Count of the significant runs in the array. - Visual to logical order of the runs. - Resulting glyphs for the specified font. - True - if operation succeed, False otherwise. - - - - Layouts the runs in the visual form. - - Bidi array of the runs. - Count of the runs. - Pointer to an array that receives the run levels reordered to visual order. - Pointer to an array that receives the visual run positions. - True - if succeed, False otherwise. - - - - Adds glyphs to the array. - - Array of the glyphs. - Contains glyphs. - Count of the glyphs. - - - - Gets bidi level for the runs. - - Runs desciprtors. - Count of the runs - Bidi level array. - - - - Add information about used glyphs to the font. - - Font used for text rendering. - Array of used glyphs. - String in the form to be written to the file. - - - - Add information about used glyphs to the font. - - Font used for text rendering. - Line of the text. - String in the form to be written to the file. - - - - Layouts a string and splits it by the words by using system lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Converts string data to RtL format if data contain any RtL symbols. - - Text data being converted. - Converted data. - - - - Converts string data to LtR format if data contain any RtL symbols. - - Text data being converted. - Converted data. - - - - Checks if current symbol is euro number. - - Array of elements types. - Index of current symbol. - True - if current symbol is euro number, False otherwise. - - - - Checks if current symbol is euro number. - - Array of elements types. - Index of current symbol. - True - if current symbol is euro number, False otherwise. - - - - Presevres symbol fro source string data and saves it to new string data. - - Array of new resulting data. - Current processing symbol. - Indicates if we process text in RTL or not. - Index of current symbol. - Length of symbols group. - - - - Checks if array of flags contains at least on RTL symbol. - - Array of flags. - True if array of flags contains at least on RTL symbol, False otherwise. - - - - Formats text which is writing from left to right. - - Array of symbols. - Current symbol. - Indicates if we process text in RTL or not. - Index of current symbol. - Length of symbols group. - - - - Reverses brackets in the text. - - Array of symbols. - Current symbol. - Index of current symbol. - Length of symbols group. - - - - Checks if symbol code is LTR text. - - Symbol code. - True - if symbol code is LTR text, False othervise. - - - - Checks if symbol code is RTL text or number. - - Symbol code. - True - if symbol code is RTL text or number, False othervise. - - - - Checks if symbol code is RTL text. - - Symbol code. - True - if symbol code is RTL text, False othervise. - - - - Checks if symbol code is euro number with separators. - - Symbol code. - True - if symbol code is euro number with separators, False othervise. - - - - Checks if symbol code is euro number. - - Symbol code. - True - if symbol code is euro number, False othervise. - - - - Checks if symbol code has euro terminator format. - - Symbol code. - True - if symbol code has euro terminator format, False othervise. - - - - Checks if symbol code is whitespace. - - Symbol code. - True - if symbol code is whitespace, False othervise. - - - - Checks if symbol is bracket. - - Symbol code. - True - if symbol is bracket, False othervise. - - - - Layouts a string and splits it by the words by using custom lay outing. - - Text line. - Font object. - Indicates whether RTL should be applied. - Indicates whether word spacing is used. - Array of words if converted, null otherwise. - - - - Class lay outing the text. - - - - - Text data. - - - - - Pdf font. - - - - - String format. - - - - - Bounds of the text. - - - - - String tokenizer. - - - - - Initializes a new instance of the class. - - - - - Layouts the text. - - String text. - Font for the text. - String format. - Bounds of the text. - Layout result. - - - - Initializes internal data. - - String text. - Font for the text. - String format. - Bounds of the text. - - - - Layouts the text. - - Lay outing data. - - - - Copies layout result from line result to entire result. Checks whether we can proceed lay outing or not. - - Final result. - Line result. - Lines array. - Number of symbols inserted. - True if we can proceed, False - to stop lay outing. - - - - Finalizes final result. - - Final result. - Lines array. - - - - Cleares all resources. - - - - - Calculates height of the line. - - Height of the line. - - - - Layouts line. - - Text line. - Line indent. - Layout result. - - - - Adds line to line result. - - Line resut. - Array of the lines. - Text line. - Line width. - Line break type. - - - - Trims whitespaces at the line. - - Line info. - Indicates whether the line is the first in the text. - Trimed line info. - - - - Calculates width of the line. - - String line. - Width of the line. - - - - Returns line indent for the line. - - If true - the line is the first in the text. - Line indent for the line. - - - - Returns wrap type. - - Returns wrap type. - - - - Layouter result. - - - - - Layouted lines. - - - - - The text wasn't lay outed. - - - - - Actual layouted text bounds. - - - - - Height of the line. - - - - - Gets the text which is not lay outed - - - - - Gets the actual layouted text bounds - - - - - Gets layouted lines information. - - - - - Gets the height of the line. - - - - - Gets value that indicates whether any text was layouted. - - - - - Gets number of the lines layouted. - - - - - Provides a line information - - - - - Line text. - - - - - Width of the text. - - - - - Breaking type of the line. - - - - - Gets the width of the line text. - - - - - Gets the line text. - - - - - Gets width of the line text. - - - - - Break type of the line. - - - - - Unknown type line. - - - - - The line has new line symbol. - - - - - layout break. - - - - - The line is the first in the paragraph. - - - - - The line is the last in the paragraph. - - - - - Utility class for working with strings. - - - - - Whitespace symbol. - - - - - Whitespace symbol. - - - - - Default RegEx checks object's options. - - - - - Pattern for WhiteSpace. - - - - - Array of spaces. - - - - - Whitespace regex. - - - - - Text data. - - - - - Current position. - - - - - Initializes a new instance of the class. - - The text. - - - - - Returns number of symbols occurred in the text. - - Text data. - Symbol to be searched. - - Number of symbols occurred in the text. - - - - - - Returns number of symbols occurred in the text. - - Text data. - Array of symbols to be searched. - - Number of symbols occurred in the text. - - - - - Reads line of the text. - - Text line. - - - - Reads line of the text. - - Text line. - - - - reads a word from the text. - - A word from the data. - - - - Peeks a word from the text. - - A word from the data. - - - - Reads char form the data. - - Char symbol. - - - - Reads count of the symbols. - - Number of symbols. - String text. - - - - Reads data till the symbol. - - Specified symbol. - If true - to read the symbol. - The data read. - - - - Peeks char form the data. - - Char symbol. - - - - Closes a reader. - - - - - Reads text to the end. - - Reads text to the end. - - - - Indicates whether user specified token is whitespace symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Indicates whether user specified token is whitespace symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Indicates whether user specified token is tab symbols or not. - - Token to check. - True if token is whitespace; False otherwise. - - - - Calculates number of the whitespace symbols at the start or at the end of the line. - - String line. - If true - check start of the line, end of the line otherwise. - Number of the whitespace symbols at the start or at the end of the line. - - - - Checks whether array contains a symbol. - - Array of symbols. - Char symbol. - True - if comtains, False otherwise. - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Creator of TrueType type font. - - - - - Base interface for true type internal fonts. - - - - - Gets the pdf primitive. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False ofhtrwise. - - - - Creates font internals. - - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - Releases all resources. - - - - - Gets system font. - - - - - Gets size of the font. - - - - - Gets font metrics. - - - - - Suffix for bold font name. - - - - - Suffix for bold italic font name. - - - - - Suffix for italic font name. - - - - - Coefficient for calculating font size. - - - - - Display driver name. - - - - - String for generating font name. - - - - - Indicates whether truetypefont has to be emdeded - - - - - ttf reader object. - - - - - Ttf metrics structure. - - - - - System font. - - - - - Size of the font. - - - - - Array of used chars. - - - - - Pdf primitive describing the font. - - - - - Font program. - - - - - Holds font-specific info such as first char/last char, etc. - - - - - Font metrics. - - - - - Indicates the azure rendering - - - - - Initializes a new instance of the class. - - The font. - The size. - - - - Initializes a new instance of the class. - - The font. - The size. - if set to true [embed]. - - - - Creates font program. - - Font program. - - - - Returns binary reader of the font's data. - - Returns binary reader of the font's data. - - - - Gets binary data of font. - - Font object. - Bimary data from font file. - - - - Gets Pdf primitive reprsenting font. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Creates font internals. - - - - - Runs before font program stream save. - - Sender of the event. - Event arguments. - - - - Generates font program. - - - - - Stores used symbols. - - String text. - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - All resources are being to be closed. - - - - - Creates font dictionary. - - Font descriptor. - - - - Creates font descriptor. - - Font descriptor object. - - - - Retrieves data from the font. - - - - - Calculates BoundBox of the descriptor. - - BoundBox of the descriptor. - - - - Calculates flags for the font descriptor. - - Flags for the font descriptor. - - - - Infills font metrics. - - Graphics DC. - - - - Creates width table. - - Graphics DC. - Width table. - - - - Returns error message. - - Returns error message. - - - - Gets the name of the font. - - string - - - - Formats name - - - - - Indicates whether byte of font name needs special formatting. - - - - - Indicates whether byte of font name needs special formatting. - - - - - Gets a value indicating whether font is symbolic - - - - - Gets a value indicating whether font is fixed pitch - - - - - Gets a value indicating whether font is script - - - - - Gets a value indicating whether font is serif - - - - - Gets size of the font. - - - - - Gets system font. - - - - - Gets font metrics. - - - - - Gets ttf reader. - - - - - Reader of the TTF data. - - - - - Width multiplier. - - - - - Version of Ttf file. - - - - - Version of Ttf file. - - - - - Version of Mac Ttf file - - - - - FP. - - - - - Encoding class. - - - - - Aray of table names. - - - - - Array of table names. - - - - - Integer's table. One of this integer would be used as a key - for writing some info in the header of the font program. - - - - - Binary reader object. - - - - - The whole list of tables loaded from Ttf. - - - - - Ttf metrics. - - - - - Width table. - - - - - Glyphs for Macintosh or Symbol fonts (char - key, glyph - value). - - - - - Glyphs for Microsoft Unicode fonts (char - key, glyph - value).. - - - - - Glyphs for Macintosh or Symbol fonts (glyph index - key, glyph - value). - - - - - Glyphs for Microsoft Unicode fonts (glyph index - key, glyph - value). - - - - - Indicates whether loca table is short. - - - - - Indicates whether font is truetype subset - - - - - Indicates the azure rendering - - - - - Indicates the current font which is currently under processing. - - - - - Static constructor. - - - - - Creates a new object. - - The reader. - - - - Creates a new object. - - The reader. - - - - Closes all the resources. - - - - - Gets glyph's info by char code. - - Char symbol. - - - - Gets glyph's info by glyph index.. - - Glyph index. - - - - Creates fonts internals. - - - - - Reads a font's program. - - Array of used chars. - Binary font data. - - - - Reconverts string to be in proper format saved into PDF file. - Return value would be in string. - - String to be reconverted. - Reconverted string. - - - - Gets char width. - - Char for which to measure the width. - Char width. - - - - Gets hashtable with chars indexed by glyph index. - - Chars that are used in destination output. - Hashtable with chars indexed by glyph index. - - - - Provides basic parsing required for font comparing (FontFamily and MacStyle). - - - - - Reads font directory. - - - - - Fixes the offsets of the font tables. - - - - - Reads font metrics. - - - - - Initializes metrics. - - Name table. - Head table. - Horizontal head table. - OS/2 table. - Post table. - Cmap subtables. - - - - Reads name table. - - Name table. - - - - Reads head table. - - Head table. - - - - Reads horizontal header table. - - Horizontal header table. - - - - Reads OS2 table. - - - - - - Reads post table. - - - - - - Reads Width of the glyphs. - - Number of glyphs. - Power of 2. - Width of the glyphs. - - - - Reads cmap table. - - Array of subtables. - - - - Reads cmap subtables. - - Cmap subtable. - - - - Reads Symbol cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads Symbol cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads Trimed cmap table. - - Cmap subtable. - Encoding ID. - - - - Reads loca table. - - If True - table is int16, int32 otherwise. - Loca table. - - - - Reads ushort array. - - Length of the array. - Ushort array. - - - - Reads uint array. - - Length of the array. - Uint array. - - - - Adds glyph to the collection. - - Glyph info. - Encoding ID. - - - - Returns width of the glyph. - - Code of the glyph. - Returns width of the glyph. - - - - Updates chars structure which is used in the case - of ansi encoding (256 bytes). - - - - - Indicates whether code is right Ttf preambula code: - - - - - Gets CMAP encoding based on platform ID and encoding ID. - - - - - Returns table. - - Name of the table. - Returns table. - - - - Updates hashtable of used glyphs. - - Dictionary of used glyphs. - Loca table. - - - - Checks if glyph is composite or not. - If True, it provides additional work. - - Dictionary of glyphs. - Glyph index. - Loca table. - - - - Creates new glyph tables based on chars that are used for output. - - dictionary of glyphs. - Loca table. - The updated table that stores the offsets to the - locations of the glyphs in the font. - The updated glyph table that holds only the glyphs that - are used for destination output. - Glyph table size. - - - - Updates new Loca table. - - New Loca table. - Indicates whether loca is short. - Updated new loca table. - Updated loca table size. - - - - Returns font program data. - - New updated loca table. - New glyph table. - Size of glyph table. - Size of loca table. - Font program data. - - - - Calculate size of the font program. - - Updated new loca table. - New glyph table. - Number of tables used. - Size of the font program. - - - - Gets checksum from source buffer. - - Byte array. - - - - Writing to destination buffer - checksums and sizes of used tables. - - Writer object. - Number of tables. - New updated loca table. - New glyph table. - Size of glyph table. - Size of loca table. - - - - // Writing to destination buffer - used glyphs. - - Writer object. - New updated loca table. - New glyph table. - - - - Initializes font name. - - Name table. - - - - Reads structure from the binary reader. - - Binary reader class. - Type of teh structure. - Structure object. - - - - Aligns number to be divisible on 4. - - - - - Returns default glyph. - - Returns default glyph. - - - - Gets the font data. - - The font. - Name of the table. - - - - - Checks for the additional offset of the tables. - - TTF table. - Name of the table. - Additional ofset of the tables. - Reader of the data. - - - - Checks whether two arrays are equal. - - The first array. - The second array. - True if arrays are equal. - - - - Formats name of the table to int value. - - Name of the table. - Code of the table name. - - - - Gets or sets binary reader. - - - - - Gets BigEndian internal reader. - - - - - Gets metrics of the font. - - - - - The whole list of tables loaded from Ttf. - - - - - Gets glyphs for Macintosh or Symbol fonts (char - key, glyph - value). - - - - - Gets glyphs for Microsoft Unicode fonts (char - key, glyph - value).. - - - - - Gets glyphs for Macintosh or Symbol fonts (glyph index - key, glyph - value). - - - - - Gets glyphs for Microsoft Unicode fonts (glyph index - key, glyph - value). - - - - /// - Array of table names. - - Table names - - - - Gets the font. - - The font. - - - - Indicates the truetypefont is subet - - true if embeded subset; otherwise, false. - - - - Creator of Unicode TrueType type font. - - - - - Display driver name. - - - - - String for generating font name. - - - - - Cmap table's start prefix. - - - - - Cmap table's start suffix. - - - - - Cmap table's end - - - - - Cmap's begin range marker. - - - - - Cmap's end range marker. - - - - - Cmap's next range default value - - - - - Default registry's value - - - - - Index of the default symbol. - - - - - Length of Cid Stream - - - - - - - - - - System font. - - - - - Path to ttf file. - - - - - Size of the font. - - - - - Font metrics. - - - - - Pdf primitive describing the font. - - - - - Descendant font. - - - - - font descripter - - - - - Font program. - - - - - Cmap stream. - - - - - Cid set stream - - - - - ttf reader object. - - - - - Array of used chars. - - - - - Name of the font subset. - - - - - Ttf metrics structure. - - - - - Specifies the composite font types. - - - - - Indicates the azure rendering - - - - - creates a new object. - - Font object. - Font size. - - - - creates a new object. - - Path to ttf file. - Font size. - - - - creates a new object. - - Font object. - Font size. - - - - Creates a new object from a prototype object. - - Prototype object. - - - - Stores used symbols. - - String text. - - - - Stores used symbols. - - Glyphs, used by the line of the text. - - - - Gets Pdf primitive reprsenting font. - - - - - Checks whether fonts are equals. - - Font to compare. - True if fonts are equal, False otherwise. - - - - Creates font internals. - - - - - Returns width of the char symbol. - - Char symbol. - Width of the char symbol in universal units. - - - - Returns width of the text line. - - String line. - Width of the char symbol in universal units. - - - - All resources are being to be closed. - - - - - Initializes the object. - - - - - Returns binary reader of the font's data. - - Returns binary reader of the font's data. - - - - Gets binary data of font. - - Font object. - Bimary data from font file. - - - - Initializes the object. - - - - - Initializes metrics. - - - - - Creates font program. - - Font program. - - - - Generates font program. - - - - - Generates font dictionary. - - - - - Creates descendant font. - - - - - Creates cmap. - - - - - Creates CidSet. - - - - - Creates cmap. - - - - - Creates system info dictionary for CID font. - - Pdf primitive. - - - - Creates font descriptor. - - Pdf primitive. - - - - Generates name of the font. - - - - - Gets random string. - - - - - Gets width description pad array for cid font. - - Width description pad array for cid font. - - - - Converts integer of decimal system to hex integer. - - Integer to be converted. - Hex string. - - - - Calculates flags for the font descriptor. - - Flags for the font descriptor. - - - - Calculates BoundBox of the descriptor. - - BoundBox of the descriptor. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font program stream save. - - Sender of the event. - Event arguments. - - - - Runs before cmap will be saved. - - Sender of the event. - Event arguments. - - - - Runs before Cid will be saved. - - Sender of the event. - Event arguments. - - - - Runs before font Dictionary will be saved. - - Sender of the event. - Event arguments. - - - - This is important for PDF/A conformance validation - - - - - - - Gets size of the font. - - - - - Gets system font. - - - - - Gets or set Embed font. - - - - - Gets font metrics. - - - - - Gets ttf reader. - - - - - Gets path to the font file if the font was created from a file. - - - - - Gets TtfMetrics structure. - - - - - Gets the type. - - The type. - - - - Specifies style information applied to text. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Normal text. - - - - - Bold text. - - - - - Italic text. - - - - - Represents the underline text. - - - - - Strikeout text. - - - - - Indicates type of standard PDF fonts. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Bold) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the Helvetica font. - - - - - Represents the Courier font. - - - - - Represents the Times Roman font. - - - - - Represents the Symbol font. - - - - - Represents the ZapfDingbats font. - - - - - Specifies the type of CJK font. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the standard font. - PdfFont font = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the standard font. - Dim font As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Represents the Hanyang Systems Gothic Medium font. - - - - - Represents the Hanyang Systems shin myeong Jo Medium font. - - - - - Represents the Heisei kaku GothicW5 font. - - - - - Represents the Heisei MinchoW3 font. - - - - - Represents the Monotype Hei Medium font. - - - - - Represents the monotype sung Light font. - - - - - Represents the sinotype song light font. - - - - - Specifies the type of the font. - - - - //Load the existing PDF document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Get the use fonts. - PdfUsedFont[] fonts = ldoc.UsedFonts; - //Get the used font type. - PdfFontType fontType = fonts[0].Type; - //Close the document. - ldoc.Close(true); - - - 'Load the existing PDF document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get the use fonts. - Dim fonts() As PdfUsedFont = ldoc.UsedFonts - 'Get the used font type - Dim fontType As PdfFontType = fonts(0).Type - 'Close the document. - ldoc.Close(True) - - - - - - Indicates the standard Adobe fonts. - - - - - Indicates the non-embedded TrueType fonts. - - - - - Indicates the Embedded TrueType fonts. - - - - - Specifies the types of text wrapping. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Text wrapping between lines when formatting within a rectangle is disabled. - - - - - Text is wrapped by words. If there is a word that is longer than bounds' width, this word is wrapped by characters. - - - - - Text is wrapped by words. If there is a word that is longer than bounds' width, it won't be wrapped at all - and the process will be finished. - - - - - Text is wrapped by characters. In this case the word at the end of the text line can be split. - - - - - Specifies type of the SubSuperScript. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Set character spacing. - format.CharacterSpacing = 1; - //Set clip path. - format.ClipPath = true; - //Set line limit. - format.LineLimit = true; - //Set line spacing. - format.LineSpacing = 1.1f; - //Set measure trailing spaces. - format.MeasureTrailingSpaces = true; - //Set no clip - format.NoClip = true; - //Set paragraph indent. - format.ParagraphIndent = 2.1f; - //Set right to left. - format.RightToLeft = false; - //Set word spacing. - format.WordSpacing = 1.5f; - //Set word wrap type. - format.WordWrap = PdfWordWrapType.Word; - //Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Set character spacing. - format.CharacterSpacing = 1 - 'Set clip path. - format.ClipPath = True - 'Set line limit. - format.LineLimit = True - 'Set line spacing. - format.LineSpacing = 1.1F - 'Set measure trailing spaces. - format.MeasureTrailingSpaces = True - 'Set no clip - format.NoClip = True - 'Set paragraph indent. - format.ParagraphIndent = 2.1F - 'Set right to left. - format.RightToLeft = False - 'Set word spacing. - format.WordSpacing = 1.5F - 'Set word wrap type. - format.WordWrap = PdfWordWrapType.Word - 'Set sub/super script type. - format.SubSuperScript = PdfSubSuperScript.SubScript - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies no subscript or superscript. - - - - - Specifies superscript format. - - - - - Specifies subscript format. - - - - - Ttf platform ID. - - - - - Apple platform. - - - - - Macintosh platform. - - - - - Iso platform. - - - - - Microsoft platform. - - - - - Ttf Name ID. - - - - - The Copyright - - - - - The Font Family - - - - - The Font Sub Family - - - - - The Font Identifier - - - - - The Font Name - - - - - The Version - - - - - The PostScriptName - - - - - The Trademark - - - - - Enumerator that implements CMAP encodings. - - - - - Unknown encoding. - - - - - When building a symbol font for Windows. - - - - - When building a Unicode font for Windows. - - - - - For font that will be used on a Macintosh. - - - - - Microsoft encoding ID - - - - - Undefined encoding. - - - - - Unicode encoding. - - - - - Macintosh encoding ID. - - - - - Roman encoding. - - - - - Japanese encoding. - - - - - Chinese encoding. - - - - - Enumerator that implements CMAP formats. - - - - - This is the Apple standard character to glyph index mapping table. - - - - - This is the Microsoft standard character to glyph index mapping table. - - - - - Format 6: Trimmed table mapping. - - - - - ttf composite glyph flags. - - - - - The ARG_1_AND_2_ARE_WORDS. - - - - - The ARGS_ARE_XY_VALUES. - - - - - The ROUND_XY_TO_GRID. - - - - - The WE_HAVE_A_SCALE. - - - - - The RESERVED. - - - - - The MORE_COMPONENTS. - - - - - The WE_HAVE_AN_X_AND_Y_SCALE. - - - - - The WE_HAVE_A_TWO_BY_TWO. - - - - - The WE_HAVE_INSTRUCTIONS. - - - - - The USE_MY_METRICS. - - - - - Character set encoding type of the font. - - - - - Unknown encoding - - - - - Adobe standard Latin-text encoding - - - - - Mac OS standard encoding - - - - - An encoding for use with expert fonts - - - - - Windows Code Page 1252 - - - - - Encoding for text strings in a PDF document outside the document's content streams. - - - - - The horizontal identity mapping for 2-byte CIDs; may be used with CIDFonts using any - Registry, Ordering, and Supplement values. It maps 2-byte character codes ranging from - 0 to 65,535 to the same 2-byte CID value, interpreted high-order byte first. - - - - - Enumerator that implements font descriptor flags. - - - - - All glyphs have the same width (as opposed to proportional or variable-pitch - fonts, which have different widths). - - - - - Glyphs have serifs, which are short strokes drawn at an angle on the top and - bottom of glyph stems (as opposed to sans serif fonts, which do not). - - - - - Font contains glyphs outside the Adobe standard Latin character set. The - flag and the nonsymbolic flag cannot both be set or both be clear. - - - - - Glyphs resemble cursive handwriting. - - - - - Font uses the Adobe standard Latin character set or a subset of it. - - - - - Glyphs have dominant vertical strokes that are slanted. - - - - - Bold font. - - - - - Specifies the composite font types. - - - - - - - - - - - - - - - Holds offset for TTF table from beginning of TrueType font file. - - - - - Gets or sets ofset from beginning of TrueType font file. - - - - - Gets or sets length of this table. - - - - - Gets or sets table checksum. - - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - ttf metrics. - - - - - Typographic line gap. - Negative LineGap values are treated as DEF_TABLE_CHECKSUM. - - - - - Gets or sets contains CFF. - - - - - Gets or sets value indicating if Symbol font is used. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets post-script font name. - - - - - Gets or sets font family name. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets description font item. - - - - - Gets or sets widths table for the font. - - - - - Regular: 0 - Bold: 1 - Italic: 2 - Bold Italic: 3 - Bit 0- bold (if set to 1) - Bit 1- italic (if set to 1) - Bits 2-15- reserved (set to 0). - NOTE: - Note that macStyle bits must agree with the 'OS/2' table fsSelection bits. - The fsSelection bits are used over the macStyle bits in Microsoft Windows. - The PANOSE values and 'post' table values are ignored for determining bold or italic fonts. - - - - - Subscript size factor. - - - - - Superscript size factor. - - - - - Gets a value indicating whether this instance is italic. - - true if this instance is italic; otherwise, false. - - - - Gets a value indicating whether this instance is bold. - - true if this instance is bold; otherwise, false. - - - - name ttf table. - - - - - Local variable to store Format Selector. - - - - - Local variable to store Records Count. - - - - - Local variable to store Offset. - - - - - Local variable to store Name Records. - - - - - Name record. - - - - - The PlatformID. - - - - - The EncodingID. - - - - - The PlatformIDLanguageID - - - - - The NameID. - - - - - The Length. - - - - - The Offset. - - - - - The Name. - - - - - Names of the tables. - - - - - The cmap. - - - - - The glyf. - - - - - The head. - - - - - The hhea. - - - - - The cmap. - - - - - The loca. - - - - - The maxp. - - - - - The cmap. - - - - - The post. - - - - - The OS2. - - - - - The CFF. - - - - - The cvt. - - - - - The fpgm. - - - - - The prep. - - - - - Head table. - - - - - Modified: International date (8-byte field). - - - - - Created: International date (8-byte field). - - - - - MagicNumber: Set to 0x5F0F3CF5. - - - - - CheckSumAdjustment: To compute: set it to 0, sum the entire font as ULONG, - then store 0xB1B0AFBA - sum. - - - - - FontRevision: Set by font manufacturer. - - - - - Table version number: 0x00010000 for version 1.0. - - - - - Minimum x for all glyph bounding boxes. - - - - - Minimum y for all glyph bounding boxes. - - - - - Valid range is from 16 to 16384. - - - - - Maximum y for all glyph bounding boxes. - - - - - Maximum x for all glyph bounding boxes. - - - - - Regular: 0 - Bold: 1 - Italic: 2 - Bold Italic: 3 - Bit 0 - bold (if set to 1) - Bit 1 - italic (if set to 1) - Bits 2-15 - reserved (set to 0) - NOTE: - Note that macStyle bits must agree with the 'OS/2' table fsSelection bits. - The fsSelection bits are used over the macStyle bits in Microsoft Windows. - The PANOSE values and 'post' table values are ignored for determining bold or italic fonts. - - - - - Bit 0 - baseline for font at y=0 - Bit 1 - left SideBearing at x=0 - Bit 2 - instructions may depend on point size - Bit 3 - force ppem to integer values for all private scaler math; may use fractional ppem sizes if this bit is clear - Bit 4 - instructions may alter advance width (the advance widths might not scale linearly) - Note: All other bits must be zero. - - - - - LowestRecPPEM: Smallest readable size in pixels. - - - - - FontDirectionHint: - 0 Fully mixed directional glyphs - 1 Only strongly left to right - 2 Like 1 but also contains neutrals - -1 Only strongly right to left - -2 Like -1 but also contains neutrals. - - - - - 0 for short offsets, 1 for long. - - - - - 0 for current format. - - - - - This table contains information for horizontal layout. - The values in the minRightSidebearing, minLeftSideBearing, and xMaxExtent should be computed - using only glyphs that have contours. - Glyphs with no contours should be ignored for the purpose of these calculations. - All reserved areas must be set to 0. - - - - - Version. - - - - - Typographic ascent. - - - - - Maximum advance width value in HTML table. - - - - - Typographic descent. - - - - - Number of hMetric entries in HTML table; - may be smaller than the total number of glyphs in the font. - - - - - Typographic line gap. Negative LineGap values are treated as DEF_TABLE_CHECKSUM - in Windows 3.1, System 6, and System 7. - - - - - Minimum left SideBearing value in HTML table. - - - - - Minimum right SideBearing value; calculated as Min(aw - lsb - (xMax - xMin)). - - - - - Max(lsb + (xMax - xMin)). - - - - - Used to calculate the slope of the cursor (rise/run); 1 for vertical. - - - - - 0 for vertical. - - - - - 0 for current format. - - - - - The OS/2 table consists of a set of metrics that are required by Windows and OS/2. - - - - - Struct field. - - - - - The Average Character Width parameter specifies - the arithmetic average of the escapement (width) - of all of the 26 lowercase letters a through z of the Latin alphabet - and the space character. If any of the 26 lowercase letters are not present, - this parameter should equal the weighted average of all glyphs in the font. - For non-UGL (platform 3, encoding 0) fonts, use the unweighted average. - - - - - Indicates the visual weight (degree of blackness or thickness of strokes) - of the characters in the font. - - - - - Indicates a relative change from the normal aspect ratio (width to height ratio) - as specified by a font designer for the glyphs in a font. - - - - - Indicates font embedding licensing rights for the font. - Embeddable fonts may be stored in a document. - When a document with embedded fonts is opened on a system that does not have the font installed - (the remote system), the embedded font may be loaded for temporary (and in some cases, permanent) - use on that system by an embedding-aware application. - Embedding licensing rights are granted by the vendor of the font. - - - - - The recommended horizontal size in font design units for subscripts for this font. - - - - - The recommended vertical size in font design units for subscripts for this font. - - - - - The recommended horizontal offset in font design units for subscripts for this font. - - - - - The recommended vertical offset in font design units from the baseline for subscripts for this font. - - - - - The recommended horizontal size in font design units for superscripts for this font. - - - - - The recommended vertical size in font design units for superscripts for this font. - - - - - The recommended horizontal offset in font design units for superscripts for this font. - - - - - The recommended vertical offset in font design units from the baseline for superscripts for this font. - - - - - Width of the strikeout stroke in font design units. - - - - - The position of the strikeout stroke relative to the baseline in font design units. - - - - - This parameter is a classification of font-family design. - - - - - This 10 byte series of numbers are used to describe the visual characteristics - of a given typeface. These characteristics are then used to associate the font with - other fonts of similar appearance having different names. The variables for each digit are listed below. - The specifications for each variable can be obtained in the specification - PANOSE v2.0 Numerical Evaluation from Microsoft or Elseware Corporation. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - The four character identifier for the vendor of the given type face. - - - - - Information concerning the nature of the font patterns. - - - - - The minimum Unicode index (character code) in this font, - according to the cmap subtable for platform ID 3 and encoding ID 0 or 1. - For most fonts supporting Win-ANSI or other character sets, this value would be 0x0020. - - - - - usLastCharIndex: The maximum Unicode index (character code) in this font, - according to the cmap subtable for platform ID 3 and encoding ID 0 or 1. - This value depends on which character sets the font supports. - - - - - The typographic ascender for this font. - Remember that this is not the same as the Ascender value in the 'hhea' table, - which Apple defines in a far different manner. - DEF_TABLE_OFFSET good source for usTypoAscender is the Ascender value from an AFM file. - - - - - The typographic descender for this font. - Remember that this is not the same as the Descender value in the 'hhea' table, - which Apple defines in a far different manner. - DEF_TABLE_OFFSET good source for usTypoDescender is the Descender value from an AFM file. - - - - - The typographic line gap for this font. - Remember that this is not the same as the LineGap value in the 'hhea' table, - which Apple defines in a far different manner. - - - - - The ascender metric for Windows. - This too is distinct from Apple's Ascender value and from the usTypoAscender values. - usWinAscent is computed as the yMax for all characters in the Windows ANSI character set. - usTypoAscent is used to compute the Windows font height and default line spacing. - For platform 3 encoding 0 fonts, it is the same as yMax. - - - - - The descender metric for Windows. - This too is distinct from Apple's Descender value and from the usTypoDescender values. - usWinDescent is computed as the -yMin for all characters in the Windows ANSI character set. - usTypoAscent is used to compute the Windows font height and default line spacing. - For platform 3 encoding 0 fonts, it is the same as -yMin. - - - - - This field is used to specify the code pages encompassed - by the font file in the 'cmap' subtable for platform 3, encoding ID 1 (Microsoft platform). - If the font file is encoding ID 0, then the Symbol Character Set bit should be set. - If the bit is set (1) then the code page is considered functional. - If the bit is clear (0) then the code page is not considered functional. - Each of the bits is treated as an independent flag and the bits can be set in any combination. - The determination of "functional" is left up to the font designer, - although character set selection should attempt to be functional by code pages if at all possible. - - - - - This field is used to specify the code pages encompassed - by the font file in the 'cmap' subtable for platform 3, encoding ID 1 (Microsoft platform). - If the font file is encoding ID 0, then the Symbol Character Set bit should be set. - If the bit is set (1) then the code page is considered functional. - If the bit is clear (0) then the code page is not considered functional. - Each of the bits is treated as an independent flag and the bits can be set in any combination. - The determination of "functional" is left up to the font designer, - although character set selection should attempt to be functional by code pages if at all possible. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Ttf structure. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Struct field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Holds glyph info and its width of character. - - - - - Holds glyph index. - - - - - Holds character's width. - - - - - Code of the char symbol. - - - - - Compares two WidthDescriptor objects. - - Another object for comparing. - A signed integer that indicates the relative order of this instance and value. - - - - Gets a value indicating whether this is empty. - - true if empty; otherwise, false. - - - - Ttf structure. - - - - - Structure field. - - - - - Ttf structure. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Structure field. - - - - - Left-to-Right (Non-European or non-Arabic digits). - - - - - Left-to-Right Embedding - - - - - Left-to-Right Override - - - - - Right-to-Left (Hebrew alphabet, and related punctuation). - - - - - Right-to-Left Arabic - - - - - Right-to-Left Embedding. - - - - - Right-to-Left Override - - - - - Pop Directional Format - - - - - European Number (European digits, Eastern Arabic-Indic digits). - - - - - European Number Separator (Plus sign, Minus sign). - - - - - European Number Terminator (Degree sign, currency symbols). - - - - - Arabic Number (Arabic-Indic digits, Arabic decimal and thousands separators). - - - - - Common Number Separator (Colon, Comma, Full Stop, No-Break Space. - - - - - Nonspacing Mark (Characters with the General_Category values). - - - - - Boundary Neutral (Default ignorables, non-characters, and control characters, other than those explicitly given other types.) - - - - - Paragraph Separator (Paragraph separator, appropriate Newline Functions, higher-level protocol paragraph determination). - - - - - Segment Separator (tab). - - - - - Whitespace (Space, Figure space, Line separator, Form feed, General Punctuation spaces). - - - - - Other Neutrals (All other characters, including object replacement character). - - - - - Specifies the character types. - - - - - Specifies the text order (RTL or LTR). - - - - - Specifies the text length. - - - - - Specifies the resultant types. - - - - - Specifies the resultant levels. - - - - - Specifies the RTL character types. - - - - - RTL character types. - - - - - Region of the space in which image in metafile can take. - - - - - Y co-ordinate of the region. - - - - - Height of the region. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The y. - The height. - - - - Joins two regions. - - Image region to be joined. - Image region to be joined. - Joined region. - - - - Checks whether region intersect with the current one. - - Region object. - True - if they're intersected, False - otherwise. - - - - Gets or sets Y co-ordinate of the region when the text starts. - - - - - Gets or sets Height of the text region. - - - - - Manages ImageRegion objects. - - - - - Collection of the regions. - - - - - Initializes a new instance of the class. - - - - - Adds a Image region into the collection. - - region - - - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - Y co-ordinate of some text region. - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - - - - Searches for the image region. - - Y co-ordinate of some image region. - - Returns the Y co-ordinate of last before image region. - - - - - Clears the collection. - - - - - Searches for all regions in the collection that are intersested with the current one. - - Current text region. - Array of regions that intersect with the current. - - - - Removes region from the colection. - - Region that should be removed from he collection. - - - - Removes regions from the collection. - - Array of regions that should be removed from he collection. - - - - Joins array of regions and the region into one region. - - Array of the regions. - Current image region. - - - - Helping class that allows to control the graphic handles. - It controls numbering for such handles that are changing - during actions such as SelectObject, DeleteObject - - - - - Flag checking if object is system or created by user. - - - - - Help flag for retrieving object from the stock. - - - - - The collection of standard graphic objects that can be used currently. - - - - - Holds the collection of created graphic objects that can be used currently - - - - - Holds the list of avaible indexes - - - - - Initializes the class. - - - - - Adds the object under specified unique index - - object to be added - unique index for the object - - - - Adds the object under specified unique index - - object to be added - - - - Selects object by the unique index - - unique index for the object - selected object - - - - Deletes objects - - unique index for the object to be deleted - Deleted object. - - - - Cleares collection of selected objects. - - - - - Checks if object is stock object. - - Object for checking. - True -if object is in stock, False otherwise. - - - - Retrieves object from the stock. - - ID of the object. - Object from the stock if found, Null otherwise. - - - - Checks if object is in the stock or it's created by user. - - ID of the object. - True - if object is in the stock, False otherwise. - - - - Retrieves object from the stock. - - ID of the object. - Object from the stock if found, Null otherwise. - - - - Gets the collection of created graphic objects that can be used currently - - - - - Gets the list of avaible indexes - - - - - Help data during EMF metafiles parsing. - - - - - Number of 0.01 millimeter per inch. - - - - - Collection of created objects. - - - - - Unmanaged handle used by the most of the GDI WinApi functions. - - - - - Font object. - - - - - Font object. - - - - - Pen object. - - - - - Current graphics path object. - - - - - Image resource. - - - - - Graphic state of the graphics context. - - - - - Graphics object. - - - - - Indicates if there is open graphics path object. - - - - - Angle of the text. - - - - - Cointrex stack. - - - - - Bitmap for getting graphics from it. - - - - - REsolution of the screen. - - - - - Initializes a new instance of the class. - - The dpi. - - - - Disposes object. - - - - - Recognizes selected object. - - Selected object. - - - - Deletes object from the context. - - Object to be deleted. - - - - Saves state to context stack. - - - - - Restores state from context stack. - - Index in the stack. - - - - Copies data from current object to specified. - - Destination data object. - - - - Disposes selected objects. - - - - - Gets collection of selected objects. - - - - - Gets unmanaged handle used by the most of the GDI WinApi functions. - - - - - Gets or sets graphic state of the graphics context. - - - - - Gets or sets the font. - - The font. - - - - Gets or sets current brush object. - - - - - Gets or sets current pen object. - - - - - Gets or sets current graphics path. - - - - - Gets or sets image object. - - - - - Gets graphics object. - - - - - Gets or sets the current point at DC. - - - - - Gets or sets a value indicating whether this instance is open path. - - - true if this instance is open path; otherwise, false. - - - - - Gets or sets arc direction of current device context. - - - - - Gets or sets text align. - - - - - Gets or sets Text color. - - - - - Gets or sets back color. - - - - - Gets or sets polygon fill mode. - - - - - Gets default resolution of the screen. - - - - - Gets or sets angle of the text. - - - - - Gets context stack object. - - - - - Class holding font and it's rotating angle. - - - - - Font object. - - - - - Structure describing font. - - - - - Initializes a new instance of the class. - - The font. - The structure. - - - - Disposes object. - - - - - Gets font object. - - - - - Gets text rotating angle. - - - - - Gets LOGFONT structure from which font was created. - - - - - Class implementing capabilities to parse EMF metafiles. - - - - - Number of numbers in the point type. - - - - - Number of numbers in the rectangle type. - - - - - Size of Int32 type. - - - - - Size of Short type. - - - - - Size of Single type. - - - - - Handler of function parsing metafile. - - - - - Graphics context object. - - - - - Asociated with parser context object. - - - - - Asociated with parser context object. - - - - - Parsing metafile object. - - - - - - - - - - - - - - - Initializes the class. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The renderer. - - - - Disposes object. - - - - - Check result of function. If function failed - writes debug message. - - Result of the function. - - - - Creates handler of parsing function. - - Handler of parsing function. - - - - Reads number from the array. - - Array of data. - Index in the array. - Size of the number. - Number form the array. - - - - Gets handler of parsing method. - - - - - Gets or sets Graphics context. - - - - - Gets or sets context of the parser. - - - - - Gets or sets context of the parser. - - - - - Gets or sets the parsing metafile object. - - - - - Gets or sets the page scale. - - The page scale. - - - - Gets or sets the page unit. - - The page unit. - - - - Gets type of metafile parser is able to parse. - - - - - Pixels per inch amount - - - - - Number of degrees in one radian. - - - - - Help objects. - - - - - Type of metafile. - - - - - Text Rotation Angle - - - - - Holds the selected font - - - - - Emf text Scaling factor - - - - - Initializes a new instance of the class. - - The type. - The dpi. - - - - Initializes a new instance of the class. - - The dpi. - - - - Initializes a new instance of the class. - - The renderer. - - - - Overloaded. Disposes resources. - - - - - Overloaded. Creates handler of parsing function. - - Handler of parsing function. - - - - Enumerates metafile. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - True - to proceed enumeration, False otherwise. - - - - Starts enumeration. - - - - - Finishes enumeration. - - - - - Saves graphic state of the graphics context. - - Data for the record. - - - - Restores device context to the previous state. - - Data for the record. - - - - Stores miter limit. - - Pointer to data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - The data. - - - - Process record of metafile. - - The data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Pointer on record data. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - The PTR. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Record data. - Indicates if it's 32 or 16 bit version. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Datra of the record. - Pointer to record data. - - - - Process record of metafile. - - Data of the record. - Pointer to record data. - - - - Process record of metafile. - - Datra of the record. - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - if b is arc, set to true. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - - Implements the final stage of the 'Blt'-family functions. - - - - - - - - - - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - True - if string is unicode, False - otherwise. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Process record of metafile. - - Pointer to record data. - - - - Converts glyph indices to unicode charachter codes. - - The glyph indices. - The font. - The unicode string. - - - - Trims the name of the font. - - Name of the font. - - - - - Makes dump of the data. - - Data array. - The type. - - - - Gets structure with data from Record data. - - The PTR. - The type. - Structure from the data. - - - - Gets structure with data from Record data. - - Record data. - Sample structure object. - Structure with data from IntPtr. - This method marshals structures with arrays of unknown length. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts rectangle from logic units to device units. - - System.Drawing.Rectangle object. - Converted rectangle. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts logical point to device point. - - Logical point to be converted. - Converted point to device point. - - - - Converts logic value to device value; - - Value in logic coordinates. - - - - - Converts logic value to device value; - - Value in logic coordinates. - - - - - Converts device point to logical point. - - Device point to be converted. - Converted point to logical point. - - - - Converts device value to logical value; - - Value in device coordinates. - - - - - Converts device value to logical value; - - Value in device coordinates. - - - - - Converts device System.Drawing.Rectangle to logical value; - - The rectangle. - Converted rectangle - - - - Reads RECT structure. - - Data array. - Current index. - RECT structure. - - - - Reads array from the record. - - Record data. - Size of the array. - Current index. - Array of data. - - - - Creates array of points. - - Record data. - Size of the array. - Current index. - If true - reads Int32 numbers, otherwise reads Short numbers. - Array of data. - - - - Reads number. - - Data array. - Current index. - If true - reads Int32 numbers, otherwise reads Short numbers. - Number from the data. - - - - Sets proper graphics mode. - - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Converts points from GDI poiont type to PointF. - - Array of points. - Converted array. - - - - Adds current point to array of points. - - Array of points. - Array with current point. - - - - Converts XFORM structure to Matrix object. - - XFORM structure. - Matrix object. - - - - Calculates angle between two vectors. - - x coordinate of start origin. - y coordinate of start origin. - x coordinate of vector. - y coordinate of vector. - Angle between vector and x origin. - - - - Returns point on the ellipse bounded by rectangle intersecyet with radial point. - - Bounds structure. - Radial point. - Point of intersection. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Bitmap Info header. - Usage of the pixels. - Bitmap image. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Usage of the pixels. - Bitmap image. - - - - Creates bitmap image. - - Offset to image data. - Size of the image data. - Pointer to the data. - Pointer to the BitmapInfo structure. - Usage of the pixels. - Bitmap image. - - - - Converts logical height of the font to it's point's value. - - Logical height of the font. - Size of the font. - - - - Returns metric of the font. - - Font object. - Metric of the font. - - - - Returns string format for the text. - - String format for the text. - - - - Draws text. - - Text to be printed. - String format object. - System.Drawing.Rectangle structure. - Structure describing text settings. - The widths. - - - - Gets current map mode. - - Current map mode. - - - - Retireves array of bytes from the unmanaged memory. - - Pointer to the memory. - Size of the data. - Byte array. - - - - Implements the final stage of the 'Blt'-family functions. - - - - - - - - - - - - - Overloaded. Gets MetafileType.Emf - - - - - Gets help objects. - - - - - Gets text region mananger. - - - - - Gets image region mananger. - - - - - Class for parsing EmfPlus metafiles. - - - - - Flag for recognizing type of region. - - - - - Flag for objects recognizing. - - - - - Flag for object index recognizing. - - - - - Represents path filling type. - - - - - Flag indicating whether color is in the data or it's index of the pen/brush. - - - - - Represents flag indicating whether short type should be used. - - - - - Storage of help objects. - - - - - Type of metafile. - - - - - Indicates whether we should start emf record processing. - - - - - Store the path of current pen's end cap. - - - - - Flag for connecting last and first points. - - - - - Creates new object. - - The dpi. - - - - Creates new object. - - The renderer. - The dpi. - - - - Overloaded. Creates handler of function parsing metafile. - - - - - - Enumerates metafile. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - True - to proceed enumeration, False otherwise. - - - - Parses the meta record. - - The data. - The flags. - - - - Parsing method. - - Method data. - - - - Headers this instance. - - - - - Ends the of file. - - - - - Begins the container. - - The data. - The flags. - - - - Begins the container no params. - - The data. - - - - Clears the specified data. - - The data. - - - - Draws the arc. - - The data. - The flags. - - - - Draws the beziers. - - The data. - The flags. - - - - Draws the closed curve. - - The data. - The flags. - - - - Draws the curve. - - The data. - The flags. - - - - Draws the ellipse. - - The data. - The flags. - - - - Draws the image. - - The data. - The flags. - - - - Draws the image points. - - The data. - The flags. - - - - Draws the lines. - - The data. - The flags. - - - - Draws the path. - - The data. - The flags. - - - - Draws the pie. - - The data. - The flags. - - - - Draws the rectangle. - - The data. - The flags. - - - - Draws string. - - Buffer containing record data. - Record flags. - - - - Draws Driver string. - - Buffer containing record data. - Record flags. - - - - Parses EndContainer record. - - Record data. - - - - Parses FillClosedCurve record. - - Record data. - Record flags. - - - - Parses FillEllipse method. - - Record data. - Record flags. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Fills the region. - - The data. - The flags. - - - - - - - - - Objects the specified data. - - The data. - The flags. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Scales the world transform. - - The data. - The flags. - - - - Sets the antialias mode. - - The data. - The flags. - - - - Sets the clip path. - - The data. - The flags. - - - - - - - - - - - - - - - - - - Sets the composing mode. - - The data. - The flags. - - - - Sets the compositing quality. - - The data. - The flags. - - - - Sets the interpolation mode. - - The data. - The flags. - - - - Sets the page transform. - - The data. - The flags. - - - - Sets the pixel offset mode. - - The data. - The flags. - - - - Sets the rendering origin. - - The data. - - - - Sets the text contrast. - - The flags. - - - - Sets the text rendering hint. - - The flags. - - - - Sets the world transform. - - The data. - - - - Translates the world transform. - - The data. - The flags. - - - - Reads the pen. - - The data. - The index. - - - - - Creates the path of pen's custom end cap. - - The data. - The index. - The flags. - - - - - Reads the image. - - The data. - The index. - - - - - Reads the path. - - The data. - The index. - - - - - Reads the region. - - The data. - The index. - - - - - Reads the font. - - The data. - The index. - - - - - Reads the string format. - - The data. - The index. - - - - - Reads the brush. - - The data. - The index. - - - - - Reads the hatch brush. - - The data. - The index. - - - - - Reads the gradient brush. - - The data. - The index. - - - - - Reads path gradient brush. - - Data for the brush. - The index. - - - - - Reads the texture brush. - - The data. - The index. - The texture brush. - - - - Gets the rectangle step. - - The flags which holds the step value. - The rectangle step. - - - - Reads the wrap mode. - - The data. - The index. - The WrapMode enum. - - - - Reads the gradient brush flags. - - The byte data array. - The index of the flags. - The initialized GradientBrushFlags. - - - - Reads the blend. - - The byte data array. - The start position in the data. - The size of the single value. - The positions array. - The factors array. - The final index within the data. - - - - Reads the color blent. - - The byte data array. - The start position in the data. - The size of the single value. - The blend object. - - - - Reads the points. - - The data. - The index. - The number. - The step. - - - - - Reads the point. - - The data. - The index. - The step. - - - - - - - - - - - - - - Reads an integer from a data array at an index specified. - - The data array. - The index which the integer starts at. - The integer read. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dumps the record data. - - The data. - The type of the record. - - - - Read Graphics path from the region. - - Data of the record. - Current index. - step value. - Graphics path object. - - - - Reads base region from the data. - - Record data. - Current index. - Step value. - Region object. - - - - Combines regions. - - Source region. - Destination region. - Combine mode. - Result region. - - - - Returns index of the object in the table. - - Flags data. - Index of the object in the table. - - - - Checks whether data contains color or index of the object. - - Flags data. - Checks whether data contains color or index of the object. - - - - Gets the fill mode. - - The flags. - - - - - Gets the brush. - - The data. - The index. - The flags. - - - - - Reads the RectL structure. - - The data. - The index. - Rectangle structure initialized. - - - - Starts processing of emf records. - - Type of record. - Help flags. - Size of the data for the record. - Pointer on the memory where data are located. - Callback function. - - - - Determines whether [is valid rect] [the specified rect]. - - The rect. - - true if [is valid rect] [the specified rect]; otherwise, false. - - - - - Converts bitmap to PNG. - - The img. - - - - - Overloaded. Returns metafile type. - - - - - Gets a collection of objects in the stack. - - - - - Number of numbers in the point type. - - - - - Number of numbers in the rectangle type. - - - - - Flag for recognizing type of region. - - - - - Flag for objects recognizing. - - - - - Type of path filling. - - - - - Index where type of the brush is located. - - - - - Size of Int32 type. - - - - - Size of Short type. - - - - - Size of Single type. - - - - - Parsing metafile object. - - - - - Parser of metafile. It depends on the metafile. - - - - - Gets graphics context object. - - - - - Checks if object is already disposed or not. - - - - - Indicates whether image is WMF file and needs to be disposed. - - - - - Static constructor. - - - - - Creates new object. - - - - - Creates new object. - - The renderer. - Metafile for parsing. - - - - Disposes the object. - - - - - Enumerates a metafile. - - True - successful enumeration, False otherwise. - - - - Assigns the metafile. - - The metafile. - - - - Recognizes which parser must be created according to metafile. - - Header of metafile. - The dpi. - - - - Gets or sets the renderer. - - - - - Gets or sets parsing metafile object. - - - - - Gets context data of the parser. - - - - - Gets context data of the parser. - - - - - Gets parser object. - - - - - Summary description for ObjectData. - - - - - Mask for object index recognizing. - - - - - Stores collection of the GDI objects. - - - - - Holds all graphigcs states. - - - - - Internal graphics context. - - - - - Internal image object. - - - - - Creates a new object. - - - - - Disposes the object. - - - - - Gets font by its index. - - Index of the object in the table of GDI objects. - Font by its index. - - - - Gets brush by its index. - - Index of the object in the table of GDI objects. - Brush by its index. - - - - Gets the pen from the collection. - - The index of the pen within the collection. - The pen. - - - - Sets the pen. - - The index of the pen object. - The pen which should be stored.. - - - - Gets object by its index. - - Index of the object in the table of GDI objects. - Object by its index. - - - - Sets object to the collection. - - Index of the object in the collection. - GDI object. - - - - Gets the state by its index. - - The index of the state. - The graphics state stored previously. - - - - Sets the state with it index. - - The index of the state. - The state. - - - - Disposes collection of the GDI objects. - - - - - Gets internal graphics context. - - - - - - - - - - - - - - - - - - - - Matrix indicating bounds for the metafile output. - - - - - Shows if the graphics state was changed. - - - - - Shows if it's the first call to the OnDrawPrimitive method. - - - - - UnitConvertor instance for X coorditate. - - - - - UnitConvertor instance for Y coorditate. - - - - - Holds mapping between .NET graphics states and PDF graphics states. - - - - - Shows if it was the first transformation operation. - - - - - Gets or sets the quality. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - - get or sets the image resolution - - When the image is stored into PDF not as a mask, - you may reduce its resolution, which saves the disk space - - - - Represents flag indicating whether the page has been already transformed or not. - TODO : Process Begin and End Container. - - - - - Shows if the graphics state was restored. - - - - - - - - - - Internal varible to store the alpha pen. - - - - - Internal varible to store the alpha brush. - - - - - Internal varible to store tranaparency is applied or not. - - - - - Internal varible to store the pdf blend mode. - - - - - Internal variable to store whether to connect last and first points. - - - - - Internal variable to store whether the EMF being drawn in a Tagged PDF. - - - - - Asociated with parser context object. - - - - - Used to store real clip value - - - - - Internal variable to store the state change of the EMFplus and EMF - - - - - used to store current emf record type - - - - - used to store prvious record type - - - - - stores the text clip - - - - - internal variable to store custom line cap arrow data - - - - - used to confirm wheather the text is clipped or not. - - - - - Internal variable to store current pdf document - - - - - internal variable to store identical image collection - - - - - used as local font collection to avoid multi threading issues - - - - - Specifies the private font collection. - - - - - Initializes a new instance of the class. - - The graphics. - - - - Initializes a new instance of class. - - - - - - - - Initializes a new instance of the class. - - The graphics. - The bitmap quality. - - - - Initializes a new instance of the - - The Graphics - The Bitmap quality - - - - - Begins a new virtual graphics container. - - A GraphicsContainer instance. - - - - Begins a new virtual container. - - The destination rectangle. - The source rectangle. - The unit. - A GraphicsContainer instance. - - - - Fills the entire graphics with the specified color. - - The color. - - - - Draws an arc. - - The pen. - The rectangle specifying the boundaries of the full circle, - of which the arc is a part. - The start angle. - The sweep angle. - - - - Draws one or more Bezier curves. - - The pen. - The points. - - - - Draws a closed curve. - - The pen. - The points. - The tension. - The fill mode. - - - - Draws a curve. - - The pen. - The points. - Points to custom cap. - The offset. - The number of the segments. - The tension. - It isn't supported. - - - - Draws an ellipse. - - The pen. - The rectangle specifying the boundaries of the ellipse. - - - - Draws an image. - - The image. - The destination rectangle. - The source rectangle. - The units. - - - - Draws an image. - - The image. - The points. - The source rectangle. - The units. - - - - Used to change the image resolution - - value of image resolution to set - original image - - - - - Draws an image and/or brush. - - The image to draw. - The brush to draw. - Where to draw. - Where to draw from. - Raster Operation Code. - - - - Draws extra line between the last and first points. - - The pen. - The points. - If true, connects last and first points. - - - - Draws lines specified by vertices. - - The pen. - The points. - - - - Darw the multiple Line - - - - - - - - - Convert the pen to PdfPen - - - PdfPen - - - - Draws a path. - - The pen. - The path. - - - - Draws polygon. - - Pen object. - Array of points. - - - - Draws a pie. - - The pen. - The rectangle specifying the boundaries of the complete circle, - of which the pie is a part. - The start angle. - The sweep angle. - - - - Draws a series of rectangles. - - The pen. - An array of rectangles. - - - - Draws a text string. - - The text. - The font. - The brush. - The boundaries of the text. - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - - - - Checks if the given rectangle overflows the current page. - - - - - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - Rotation Angle - - - - Corrects the location. - - The location. - The size. - The real size of the text. - The format. - The corrected location. - - - - Ends the specified graphics container. - - The container. - Restores the graphics state saved - by the appropriate BeginContainer method. - - - - Fills a closed curve. - - The brush. - The points of the curve. - The fill mode. - The tension. - It isn't supported. - - - - Fills an ellipse. - - The brush. - The boundaries of the ellipse. - - - - Fills a path. - - The brush. - The path. - - - - Fills a pie. - - The brush. - The x coordinate of the ellipse boundaries, which the pie is a part of. - The y coordinate of the ellipse boundaries, which the pie is a part of. - The width of the ellipse boundaries, which the pie is a part of. - The height of the ellipse boundaries, which the pie is a part of. - The start angle. - The sweep angle. - - - - Fills a polygon. - - The brush. - The points of the polygon. - - - - Fills rectangles. - - The brush. - The rectangles. - - - - Fills a region. - - The brush. - The region. - - - - Performs multiply transformations. - - The matrix. - The order. - - - - Translates the current clip region. - - The dx. - The dy. - - - - Resets the current clip region to the infinite region. - - - - - Resets the transformations. - - - - - Performs the rotate transformations. - - The angle. - The order. - - - - Saves the current graphics state. - - A GraphicsState instance that stores - information about the current graphic state. - - - - Restores the graphics state to the specified graphics state. - - The saved graphics state. - - - - Performs scaling transformations. - - The scaling facto by x coordinate. - The scaling facto by y coordinate. - The order. - - - - Sets the current clip region. - - The path specifying the clip region. - The combining mode. - - - - Sets the current clip region. - - The rectangle specifying the new clip region. - The combining mode. - - - - Sets the current clip region. - - The region. - The combining mode. - - - - Updates the clip region of this Graphics object to exclude the area specified by a Rectangle structure. - - Rectangle structure that specifies the rectangle to exclude from the clip region. - - - - Updates the clip region of this Graphics object to exclude the area specified by a Region object. - - Region object that specifies the region to exclude from the clip region. - - - - Updates the clip region of this Graphics object to the intersection of the current clip region and the specified RectangleF structure. - - RectangleF structure to intersect with the current clip region. - - - - Updates the clip region of this Graphics object to the intersection of the current clip region and the specified Region object. - - Region object to intersect with the current region. - - - - Transforms points. - - Destination space. - Source space. - Array of points. - - - - Sets the current rendering origin. - - The origin. - - - - Sets the specified transformation matrix. - - The matrix. - - - - Performs translate transformation of the graphics. - - The offset by the x coordinate. - The offset by the y coordinate. - The order of the matrix operations. - - - - Is called when the metafile parsing have been started. - - - - - Is called when the metafile is at the end. - - - - - Raises when error occured during metafile parsing. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - - Sets location / bounds for metafile object. - - Location of the metafile. - Size of the metafile. - - - - Sets the Boundaries box. - - The bounds. - - - - Sets transformation matrix. - - - - - Sets clip region. - - - - - Sets clip region. - - - - - Extracts fill mode of the path. - - Graphics path. - Fill mode of the path. - - - - Gets clip path for the graphics. - - - - - Gets PDF font for the text. - - Text to be printed. - Font which will be used for printing. - PDF font object. - - - - Called when we need to draw a primitive. - - - - - Called when the graphics state was changed. - - - - - Draws the cap. - - The cap. - The points. - The Start point index. - The end point index. - The width. - The brush. - - - - Draws the customarrow end cap in the line - - - - - - - - - - - Calculates scaling factor for text that fits to the specifiedboundaries. - - String text to be scaled. - Font object. - Text' boundaries. - Size of the text. - The format. - The scaling factor. - - - - Converts GraphicsUnits to PrintUnits. - - - returns PrintUnits - - - - Converts the .NET pen to a PDF pen. - - The pen. - The alpha channel value. - The proper PDF pen. - - - - Converts a .NET brush into a PDF brush. - - The brush. - The alpha channel value. - The proper PdfBrush class instance. - - - - Checks the alpha. - - The bitmap. - The proper transparency mask. - - - - Checks if the alpha channel is present. - - The flags. - The bitmap. - The array. - The proper mask. - - - - Converts a .NET hatch brush to a PDF tiling brush. - - The hatch brush. - The alpha channel value. - The well formed PdfBrush instance. - - - - Converts the .NET colors to PdfColor array. - - The colors. - The well formed PdfColor array. - - - - Gets the brush from pen. - - The PDF pen. - The brush initialized from pen parameters. - - - - Converts the System.Drawing.StringFormat format to - Syncfusion.Pdf.Graphics.PdfStringFormat format. - - The format. - Proper Syncfusion.Pdf.Graphics.PdfStringFormat format. - - - - Gets the type of the wrap. - - The string format flags. - Proper StringWrapType value. - - - - Converts the line alignment. - - The string alignment. - The proper VerticalAlignment value. - - - - Converts the alingnmet. - - The string alignment. - The proper TextAlignment value. - - - - Converts a .NET pen to a PDF pen and sets transparency. - - The pen. - - - - - Converts a .NET brush to a PDF brush and sets transparency. - - The brush. - - - - - Internally resets clip region. - - - - - Internally resets transformation. - - - - - Draws custom cap. - - Pen used to draw cap. - Path points. - Custom points for cap. - Indicates whether cap is start. - - - - Checks is points line or not. - - Points to be check. - Is points line or not. - - - - Converts a System.Drawing.Drawing2D.LineCap value to the Syncfusion.Pdf.Graphics.LineCap. - - The cap value. - Syncfusion.Pdf.Graphics.LineCap type value. - - - - Converts a System.Drawing.Drawing2D.LineJoin values to respective - Syncfusion.Pdf.Graphics.LineJoin values. - - The join value. - Proper Syncfusion.Pdf.Graphics.LineJoin value. - - - - Converts a System.Drawing.Drawing2D.DashStyle dash style to the corresponding Syncfusion.Pdf.Graphics.DashStyle dash style. - - The dash style. - Proper Syncfusion.Pdf.Graphics.DashStyle value. - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Prepares a matrix to PDF. - - The matrix. - The page scale value. - - A properly prepared PdfTransformationMatrix class instance. - - - - - Draws the cross brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the backward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the forward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the vertical pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the downward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws Weave style. - - Pdf Graphics on which style draws. - Pdf pen which draws style. - The size of the brush. - - - - Draws the upward diagonal brush pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the brick tails for the brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws the horizontal brick pattern. - - The graphics. - The pen. - Size of the brush. - - - - Draws a checker board dash pattern. - - The graphics. - The pen. - Size of the brush. - Size of the cell. - - - - Locates the font file. - - The font. - Not the best way, but will work in most cases incase font substitution fails. - - - - - Gets the font suffix. - - The fs. - - - - - Gets or sets the custom font collection. - - - - - Get or Sets transparency is applied or not. - - - - - - Get or Sets the alpha pen - - - - - Get or Sets the alpha brush. - - - - - Get or Sets the Blend mode. - - - - - get or set the bool value to to idetenctical image - - - - - get or set the PdfDocument - - - - - Gets the PDF graphics object. - - - - - Gets the native graphics object. - - - - - Gets the clip bounds. - - - - - Gets or sets transformation of graphics. - - - - - Gets or sets the scaling between world units and page units for this Graphics object. - - - - - Gets or sets the unit of measure used for page coordinates in this Graphics object. - - - - - Gets the unit converter for X axis. - - - - - Gets the unit converter for Y axis. - - - - - Gets or sets a value indicating whether [page transformed]. - - true if [page transformed]; otherwise, false. - - - - Gets a value indicating whether [embed fonts]. - - true if [embed fonts]; otherwise, false. - - - - Gets text region manager - - - - - Gets or sets context of the parser. - - - - - Gets or Sets real clip value - - - - - Region of the space which text in metafile can take. - - - - - Y co-ordinate of the region. - - - - - Height of the region. - - - - - Creates new text region object. - - - - - Creates new text region object. - - Gets or sets Y co-ordinate of the region when the text starts. - Gets or sets Height of the text region. - - - - Joins two regions. - - Text region to be joined. - Text region to be joined. - Joined region. - - - - Checks whether region intersect with the current one. - - Region object. - True - if they're intersected, False - otherwise. - - - - Gets or sets Y co-ordinate of the region when the text starts. - - - - - Gets or sets Height of the text region. - - - - - Manages TextRegion objects. - - - - - Collection of the regions. - - - - - Creates new object. - - - - - Adds a text region into the collection. - - - - - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - Y co-ordinate of some text region. - - Searches for the largest Y co-ordinate of the region if the y is inside of any region - or returns y if it's out of any region. - - - - - Searches for the last before text region. - - Y co-ordinate of some text region. - - Returns the Y co-ordinate of last before text region. - - - - - Clears the collection. - - - - - Searches for all regions in the collection that are intersested with the current one. - - Current text region. - Array of regions that intersect with the current. - - - - Removes region from the colection. - - Region that should be removed from he collection. - - - - Removes regions from the colection. - - Array of regions that should be removed from he collection. - - - - Joins array of regions and the region into one region. - - Array of the regions. - Current text region. - - - - Type of the object. - - - - - Invalid object type. - - - - - Brush object. - - - - - Pen object. - - - - - Path object. - - - - - Region object. - - - - - Image object. - - - - - Font object. - - - - - String format object. - - - - - Image attributes object. - - - - - Custom line cap object. - - - - - Type of the brush. - - - - - Default value. - - - - - Hatch brush. - - - - - Texture brush. - - - - - Path gradient brush. - - - - - Linear gradient brush. - - - - - Flags for a linear gradient brush. - - - - - Minimal data are present. - - - - - The brush applies a transformation matrix to the source image. - - - - - The brush contains a ColorBlend object for use with its InterpolationColors property. - - - - - The brush contains a Blend object for use with its Blend property. - - - - - The brush has a non-default value for the FocusScales property. - - - - - The brush uses gamma correction. - - - - - Represents pen flags. - - - - - Pen just with color set. - - - - - Transformation set. (20-... - float ) - - - - - StartCap set. ( 20 - int ) - - - - - EndCap set. ( 20 - int ) - - - - - LineJoin set. ( 20 - int ) - - - - - MiterLimit set. ( 20 - float ) - - - - - Pen has DashStyle defined. - - - - - DashCap set. ( 20 - int ) - - - - - DashOffset is defined. (20 - float) - - - - - DashPattern is defined. (20 - int: numArray; 24-... - float: DashPattern ) - - - - - Alignment set. (20 - int ) - - - - - CompoundArray set. (20 - int: numArray; 24-... - float: compoundArray ) - - - - - The pen uses a custom start cap. - - - - - The pen uses a custom end cap. - - - - - Indicates types of the images in the Object record. - - - - - Unknown format. - - - - - Bitmap image. - - - - - Metafile image. - - - - - Initial state of the region. - - - - - Region is from rectangle. - - - - - Region is from graphics path. - - - - - Region is empty. - - - - - Region is infinity. - - - - - Summary description for RtfToWmf. - - - - - Message code. - - - - - Message code. - - - - - Message code. - - - - - Message code. - - - - - Type object of this class. - - - - - Rectangle needed for content displaying inside of rich text paint. - - - - - Creates new object. - - - - - Converts RTF text to Wmf metafile. - - RTF text. - Width of the text. - Height of the text. May be -1. - Type of the image. - Image created from RTF. - - - - Retrieves data from RichTextBox control. - - RichTectBox control instance. - Width of the output. - Height of the output. - Type of the image. - Image created from RTF. - - - - Converts rtf to metafile. - - RichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Converts rtf to metafile. - - HtmlRichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Converts rtf to bitmap. - - RichTextBox control. - Width of the image. - Height of the image. - Image from RTF. - - - - Draws rtf on the graphics context. - - RichTextBox control. - Graphics context. - Bounds of the image. - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Convert between pixels and inches. - - Value in pixels. - Horizontal device resolution. - Vertical device resolution. - Value in inches.. - - - - Determines whether [is valid RTF] [the specified RTF]. - - The RTF. - - if it is valid RTF, set to true. - - - - - - Sets RTF text box. - - Rich text box control. - Rtf text. - - - - Handles contentsResized event. - - Sender of the event. - Event parameters. - - - - The collection of the default pens. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates the default pen. - - The color. - Name of the color. - The proper PdfPen instance. - - - - Disallows to create an instance of PDfPens class. - - - - - Gets the AliceBlue pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.AliceBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.AliceBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the antique white pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.AntiqueWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.AntiqueWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aqua default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Aqua, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Aqua, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Aquamarine default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Aquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Aquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Azure default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Azure, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Azure, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Beige default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Beige, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Beige, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Bisque default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Bisque, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Bisque, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Black default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Black, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlanchedAlmond default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BlanchedAlmond, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BlanchedAlmond, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Blue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Blue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Blue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BlueViolet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BlueViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BlueViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Brown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Brown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Brown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the BurlyWood default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.BurlyWood, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.BurlyWood, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CadetBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.CadetBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.CadetBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chartreuse default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Chartreuse, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Chartreuse, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Chocolate default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Chocolate, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Chocolate, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Coral default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Coral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Coral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the CornflowerBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.CornflowerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.CornflowerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Corn silk default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Cornsilk, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Cornsilk, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Crimson default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Crimson, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Crimson, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Cyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Cyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Cyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkCyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGoldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkKhaki default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkKhaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkKhaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkMagenta default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkMagenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkMagenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOliveGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOliveGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOliveGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrange default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkOrchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSalmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkSlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DarkViolet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkViolet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DarkViolet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DeepSkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DeepSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DimGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DimGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DimGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the DodgerBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.DodgerBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.DodgerBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Firebrick default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Firebrick, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Firebrick, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the FloralWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.FloralWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.FloralWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the ForestGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.ForestGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.ForestGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Fuchsia default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Fuchsia, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Fuchsia, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gainsborough default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gainsboro, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gainsboro, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GhostWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.GhostWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.GhostWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gold default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gold, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gold, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Goldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Goldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Goldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Gray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Gray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Gray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Green default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Green, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Green, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the GreenYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.GreenYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.GreenYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Honeydew default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Honeydew, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Honeydew, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the HotPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.HotPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.HotPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the IndianRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.IndianRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.IndianRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Indigo default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Indigo, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Indigo, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Ivory default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Ivory, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Ivory, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Khaki default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Khaki, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Khaki, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lavender default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Lavender, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Lavender, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LavenderBlush default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LavenderBlush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LavenderBlush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LawnGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LawnGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LawnGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LemonChiffon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LemonChiffon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LemonChiffon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCoral default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCoral, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCoral, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightCyan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCyan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightCyan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGoldenrodYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGoldenrodYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGoldenrodYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightPink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightPink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightPink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSalmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSalmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSalmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightSteelBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightSteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LightYellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LightYellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LightYellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Lime default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Lime, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Lime, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the LimeGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.LimeGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.LimeGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Linen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Linen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Linen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Magenta default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Magenta, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Magenta, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Maroon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Maroon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Maroon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumAquamarine default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumAquamarine, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumAquamarine, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumOrchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumOrchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumOrchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumPurple default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumPurple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumPurple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumSpringGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumSpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MediumVioletRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MediumVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MidnightBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MidnightBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MidnightBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MintCream default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MintCream, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MintCream, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the MistyRose default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.MistyRose, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.MistyRose, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Moccasin default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Moccasin, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Moccasin, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the NavajoWhite default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.NavajoWhite, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.NavajoWhite, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Navy default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Navy, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Navy, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OldLace default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OldLace, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OldLace, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Olive default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Olive, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Olive, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OliveDrab default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OliveDrab, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OliveDrab, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orange default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Orange, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Orange, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the OrangeRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.OrangeRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.OrangeRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Orchid default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Orchid, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Orchid, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGoldenrod default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGoldenrod, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGoldenrod, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleTurquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleTurquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleTurquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PaleVioletRed default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleVioletRed, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PaleVioletRed, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PapayaWhip default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PapayaWhip, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PapayaWhip, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PeachPuff default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PeachPuff, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PeachPuff, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Peru default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Peru, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Peru, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Pink default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Pink, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Pink, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Plum default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Plum, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Plum, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the PowderBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.PowderBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.PowderBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Purple default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Purple, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Purple, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Red default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RosyBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.RosyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.RosyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the RoyalBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.RoyalBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.RoyalBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SaddleBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SaddleBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SaddleBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Salmon default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Salmon, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Salmon, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SandyBrown default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SandyBrown, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SandyBrown, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SeaShell default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaShell, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SeaShell, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Sienna default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Sienna, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Sienna, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Silver default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Silver, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Silver, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SkyBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SkyBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SkyBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SlateGray default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateGray, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SlateGray, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Snow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Snow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Snow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SpringGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SpringGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SpringGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the SteelBlue default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.SteelBlue, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.SteelBlue, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tan default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Tan, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Tan, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Teal default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Teal, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Teal, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Thistle default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Thistle, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Thistle, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Tomato default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Tomato, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Tomato, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Transparent default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Transparent, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Transparent, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Turquoise default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Turquoise, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Turquoise, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Violet default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Violet, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Violet, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Wheat default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Wheat, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Wheat, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the White default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.White, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.White, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the WhiteSmoke default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.WhiteSmoke, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.WhiteSmoke, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the Yellow default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.Yellow, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.Yellow, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the YellowGreen default pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Draw rectangle. - graphics.DrawRectangle(PdfPens.YellowGreen, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Draw rectangle. - graphics.DrawRectangle(PdfPens.YellowGreen, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a simple transparency. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The stroke operation alpha value. - The fill operation alpha value. - The blend mode. - - - - Determines whether the specified - is equal to the current . - - The - to compare with the current . - - true if the specified - is equal to the current ; otherwise, false. - - - - - Serves as a hash function for a particular type. - is suitable - for use in hashing algorithms and data structures like a hash table. - - - A hash code for the current . - - - - - Gets the number value. - - Name of the key. - The value of the number specified by the string key. - - - - Gets the name value. - - Name of the key. - The name value specified by the key. - - - - Gets the stroke operation alpha value. - - - - - Gets the fill operation alpha value. - - - - - Gets the blend mode. - - - - - Gets the element. - - - - - - Represents the Painting and graphics state - - - - - Text - - - - - Grayscale images or image masks - - - - - Color images - - - - - Indexed (color-table) images - - - - - Represents the html hyperlink used during the html to pdf conversion to preserve live-links. - - This class is used internally and should not be used directly. - - - - The bounds which the html element occupies. - - - - - The target Url. - - - - - The matching name of the document link. - - - - - The id of the destination. - - - - - Initializes a new instance of the class. - - The bounds. - The href. - - - - Converts the bounds from pixel to point. - - - - - Gets or sets the bounds. - - - - - Gets or sets the id of the destination. - - - - - Gets or sets the name (id) of the document link. - - - - - Gets or Sets the Url. - - - - - The matching type of form elements (i.e. input,select,button...). - - - - - The bounds which the html form element occupies. - - - - - The matching indepth type of the form element (i.e. radio,select,button,text,password...). - - - - - The matching name of the form element. - - - - - The matching value of the form element. - - - - - The matching isChecked value of the form element. - - - - - The parent name of the form element (form name/body name). - - - - - The matching value of the form element. - - - - - The matching value of the form element. - - - - - The readOnly value of the form element. - - - - - The color of background rectangle of the form element. - - - - - The background color of the form element. - - - - - The text color of the form element. - - - - - The border color of the form element. - - - - - The matching value of the multiple. - - - - - The matching value of the selected Index of select options. - - - - - The matching value of the list element's text,value pair. - - - - - Initializes a new instance of the class. - - The bounds. - The button type (ex: submit,reset,..). - The name of the button element. - The actual value of the button element. - The color value of background rectangle of each button element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The value of checked property of form element. - The parent element name of the form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The possible of maximum no.of. char in form element. - The readOnly value of form element (true/false). - The color value of background rectangle of each form element. - The background color value of each form element. - The text color value of each form element. - The border color value of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The value of checked property of form element. - The color value of background rectangle of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the form element. - The actual value of the form element. - The readOnly value of form element (true/false). - The color value of background rectangle of each form element. - The background color value of each form element. - The text color value of each form element. - The border color value of each form element. - - - - Initializes a new instance of the class. - - The bounds. - The input type (ex: text, radio...). - The name of the select element. - The actual value of the select element. - The multi select value (if true, select element is list. Else Combo) of select element. - The selected index value of the select element. - The color value of background rectangle of each select element. - The list of option vlues of each select element. - - - - Converts the bounds from pixel to point. - - - - - Gets or sets the input type of the form element(i.e. input,select,button...). - - - - - Gets or sets the bounds. - - - - - Gets or sets the indepth input type of the form element(i.e. radio,select,button,text,password...). - - - - - Gets or sets the name/id of the document link/form element. - - - - - Gets or sets the value of the form element. - - - - - Gets or sets the isChecked value of the form element. - - - - - Gets or sets the parent name of the form element. - - - - - Gets or sets the id of the form element. - - - - - Gets or sets the id of the form element. - - - - - Gets or sets the readOnly bool value of the form element. - - - - - Gets or sets the Background Rectangle's Color value of the form element. - - - - - Gets or sets the Background Color value of the form element. - - - - - Gets or sets the text Color value of the form element. - - - - - Gets or sets the border Color value of the form element. - - - - - Gets or sets the value of the selected item's index of select element. - - - - - Gets or sets the value of the multiple field of select element. - - - - - Gets or sets the value of the selected item's index of select element. - - - - - Represents the html forms used during the html to pdf conversion to preserve forms in pdf. - - - - - Gets or sets form field id - - - - - Gets or sets form field value - - - - - Gets or sets a value indicating whether the field is read only. - - - - - Gets or sets whether the element is selected or not - - - - - Gets or sets the field type - - - - - Gets or sets the field page number - - - - - Gets or sets the field bounds - - - - - Represents the layout parameters. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Start lay outing page. - - - - - The top - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets the starting layout page. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Gets or sets the lay outing bounds. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Gets or sets the vertical offsets. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The vertical offsets. - - - - Gets or sets the lay outing settings. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Start lay outing page. - - - - - Lay outing bounds. - - - - - Layout settings. - - - - - Gets or sets start layouting page. - - - - - Gets or sets layouting bounds. - - - - - Gets or sets layouting settings. - - - - - Indicates whether PaginateBounds were set and should be used or not. - - - - - Bounds for the paginating. - - - - - Layout type of the element. - - - - - Break type of the element. - - - - - Is Text Split - - - - - Is Image Split - - - - - Holds the total webpage layout size - - - - - Holds the total Page count - - - - - Holds the Page Number of PDF document - - - - - Holds the split page size - - - - - Image region manager to avoid split between pages - - - - - Text region manager to avoid split between pages - - - - - Form region manager to avoid split between pages - - - - - Holds the Hyperlink Collections - - - - - Holds the internal link collections - - - - - Initializes a new instance of the class. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets layout type of the element. - - - - - Gets or sets break type of the element. - - - - - Gets or sets the bounds on the next page. - - If this property is set, the element will use it for the layouting on the next pages, - otherwise, the element will be layout according to the bounds, used on the first page. - - - - Gets a value indicating whether [use paginate bounds]. - - true if [use paginate bounds]; otherwise, false. - - - - The Syncfusion.Pdf.HtmlToPdf namespace contains classes to perform HTML to PDF conversion - - - - - Represents the result of html to PDF conversion. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Holds the list of Page-Breaks. - - - - - Holds the list of hyperlinks. - - - - - Holds the list of hyperlinks. - - - - - Holds the list of document links. - - - - - Holds the list of input elements. - - - - - Holds the list of select elements. - - - - - Holds the list of button elements. - - - - - Holds the list of internal links - - - - - Holds the list of Form field details. - - - - - Holds the resultant images. - - - - - - Internal variable to hold if conversion is completed. - - - - - Internal variable to store the scroll position. - - - - - Internal variable to store the height yet to be converted. - - - - - Internal variable to store layout result of HTML to PDF. - - - - - Hold the WebKit File path - - - - - Layout details of whole document to update the form field bounds. - - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The image. - The page breaks. - The anchors. - The document links. - - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Initializes new instance of the class. - - - - - - - - - - Initializes new instance of the class. - - - - - - - - - - Delete the file - - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The PDF document where the output should be drawn. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(doc); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(doc) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Renders the WebKit result to single page and returns the PDF document - - PdfDocument - PdfLayoutFormat - PdfDocument with single PDF page - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page where the output will draw. - The Metafile layout format. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Draw the rendered HTML image to the PDF document - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page where the output will draw. - The Metafile layout format. - The Metafile layout result - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Create new PDF layout result. - PdfLayoutResult layoutResult; - //Render the PdfMetafile in the PDF document - result.Render(page, format, out layoutResult); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Create new PDF layout result. - Dim layoutResult As PdfLayoutResult - 'Render the PdfMetafile in the PDF document - result.Render(page, format, layoutResult) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Renders the HTML conversion and returns the layout result - - - - - - - Draws the meta file. - - The page. - The format. - - - - Draws the bitmap. - - The bitmap. - The page. - The bounds. - The format. - - - - - Update the bounds based on the layout result - - Actual size of the page - - - - updates the internal link destination - - - - - Create pdf forms from m_webkitAutoCreateForms list - - Document to draw pdf forms - - - - Performs application-defined tasks associated with releasing, or resetting unmanaged resources. - - - - - Gets or sets the value indicating whether to preserve the bookmark in the converted document or not;By default false - This property is used internally and should not be used directly. - - - - - Gets or sets a value indicating whether to preserve the TOC in the converted document or not;By default false - This property is used internally and should not be used directly. - - - - - Gets or sets TOC styles - /// This property is used internally and should not be used directly. - - - - - Gets the Page-Break Collection. - - - - - Gets the hyper-links Collection. - - - - - Gets if conversion is complete. - - - - - Gets or sets enable forms. - - - - - Gets the next scroll height. - - - - - Gets the rendered image. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The rendered image. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Returns the image array after the conversion. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The images. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.Images[0] as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.Images[0].Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.Images(0), Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.Images(0).Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Handles the quality of Bitmap images in HTML. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Set image quality. - result.Quality = 50; - //Render the PdfMetafile in the PDF document - result.Render(page, new PdfLayoutFormat()); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Set image quality. - result.Quality = 50 - 'Render the PdfMetafile in the PDF document - result.Render(page, New PdfLayoutFormat()) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or set the location. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Set the location. - result.Location = new PointF(100, 100); - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Set the location. - result.Location = New PointF(100, 100); - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or set the metafile transparency. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new PDF document - PdfDocument doc = new PdfDocument(); - //Add a new page - page = doc.Pages.Add(); - //Set the dimension of the PDF page - float width = new PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point); - float height = -1f; - //Initialize HTML to PDF converter - using (Syncfusion.HtmlConverter.HtmlConverter html = new Syncfusion.HtmlConverter.HtmlConverter()) - { - //Convert the URL - HtmlToPdfResult result = html.Convert("http://www.syncfusion.com", ImageType.Metafile, (int)width, (int)height, AspectRatio.KeepWidth); - if (result != null) - { - //Get the HTML as PdfMetafile - PdfMetafile mf = new PdfMetafile(result.RenderedImage as Metafile); - //Formatting options - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.Layout = PdfLayoutType.Paginate; - doc.PageSettings.Height = result.RenderedImage.Size.Height; - format.SplitTextLines = false; - format.SplitImages = false; - //Set transparency. - result.MetafileTransparency = 0.5f; - //Render the PdfMetafile in the PDF document - result.Render(page, format); - } - } - //Save the PDF - doc.Save(@"Output.pdf"); - //Close the PDF - doc.Close(true); - - - 'Create new PDF document - Dim doc As New PdfDocument() - 'Add a new page - page = doc.Pages.Add() - 'Set the dimension of the PDF page - Dim width As Single = New PdfUnitConvertor().ConvertToPixels(page.GetClientSize().Width, PdfGraphicsUnit.Point) - Dim height As Single = -1F - 'Initialize HTML to PDF converter - Using html As New Syncfusion.HtmlConverter.HtmlConverter() - 'Convert the URL - Dim result As HtmlToPdfResult = html.Convert("http://www.syncfusion.com", ImageType.Metafile, CInt(width), CInt(height), AspectRatio.KeepWidth) - If result IsNot Nothing Then - 'Get the HTML as PdfMetafile - Dim mf As New PdfMetafile(TryCast(result.RenderedImage, Metafile)) - 'Formatting options - Dim format As New PdfMetafileLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.Layout = PdfLayoutType.Paginate - doc.PageSettings.Height = result.RenderedImage.Size.Height - format.SplitTextLines = False - format.SplitImages = False - 'Set transparency. - result.MetafileTransparency = 0.5F - 'Render the PdfMetafile in the PDF document - result.Render(page, format) - End If - End Using - 'Save the PDF - doc.Save("Output.pdf") - 'Close the PDF - doc.Close(True) - - - - - - Gets or sets the single page layout type - - - - - Gets or sets a WebKit created temp directory. - - - - - Use this option to render the whole HTML content into a single PDF page - - - - /// //Initialize HTML to PDF converter - HtmlToPdfConverter htmlConverter = new HtmlToPdfConverter(HtmlRenderingEngine.WebKit); - //Create a new instance for webkit converter settings. - WebKitConverterSettings settings = new WebKitConverterSettings(); - //Set WebKit path - settings.WebKitPath = @"QtBinaries"; - //Set signle page layout. - settings.SinglePageLayout = SinglePageLayout.FitHeight; - //Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings; - //Convert URL to PDF - PdfDocument document = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework"); - //Save and close the PDF document - document.Save("Output.pdf"); - document.Close(true); - - - 'Initialize HTML to PDF converter - Dim htmlConverter As New HtmlToPdfConverter(HtmlRenderingEngine.WebKit) - 'Create a new instance for webkit converter settings. - Dim settings As New WebKitConverterSettings() - 'Set WebKit path - settings.WebKitPath = "QtBinaries" - 'Set signle page layout. - settings.SinglePageLayout = SinglePageLayout.FitHeight - 'Assign WebKit settings to HTML converter - htmlConverter.ConverterSettings = settings - 'Convert URL to PDF - Dim document As PdfDocument = htmlConverter.Convert("https://en.wikipedia.org/wiki/.NET_Framework") - 'Save and close the PDF document - document.Save("Output.pdf") - document.Close(True) - - - - - - Do not apply single page layout - - - - - The page width is not resized to fit the HTML content to PDF page - - - - - The page height is not resized to fit the HTML content PDF page - - - - - Reader of the big endian data. - - - - - Size of Int32 type. - - - - - Size of Int16 type. - - - - - Size of long type. - - - - - Fraction coefficient for getting fixed type. - - - - - Reader encoding. - - - - - Binary reader. - - - - - Initializes a new instance of the class. - - The reader. - - - - Closes all resources. - - - - - Seeks reader to the sepcified position. - - Position of the reader. - - - - Skips number of bytes. - - Number of bytes to skip. - - - - Reverts array elements. - - Byte array. - Reverted array. - - - - Reads 64 bit integer. - - 64 bit integer. - - - - Reads 64 bit integer. - - 64 bit integer. - - - - Reads 32 bit integer. - - 32 bit integer. - - - - Reads 32 bit integer. - - 32 bit integer. - - - - Reads 16 bit integer. - - 16 bit integer. - - - - Reads 16 bit integer. - - 16 bit integer. - - - - Reads one byte. - - One byte. - - - - Reads FIXED data type (16.16) fixed point number. - - FIXED data type (16.16) fixed point number. - - - - Reads bytes from the reader. - - Number of bytes. - Byte array. - - - - Reads string. - - Size of the string in bytes. - String data. - - - - Reads string. - - Size of the string in bytes. - Indicates whethere string is unicode or not. - String data. - - - - Reads bytes to array in BigEndian order. - - Byte array. - Start index. - Number bytes to read. - Number bytes that was read. - - - - Gets or sets binary reader. - - - - - Gets base stream. - - - - - Writes data in BigEndian order. - - - - - Size of Int32 type. - - - - - Size of Int16 type. - - - - - Size of long type. - - - - - Fraction coefficient for getting fixed type. - - - - - Reader encoding. - - - - - Internal buffer. - - - - - Current position. - - - - - Creates a new writer. - - Capacity of the data. - - - - Writes short value. - - Value. - - - - Writes ushort value. - - Value. - - - - Writes int value. - - Value. - - - - Writes uint value. - - Value. - - - - Writes string value. - - Value. - - - - Writes byte[] value. - - Value. - - - - Writes array to the buffer. - - Byte data. - - - - Gets data written to the writter. - - - - - Gets position of the internal buffer. - - - - - Utility class to store information about Image transaction or scale matrix. - - - - - Local variable to store content stream. - - - - - Local variable to store the key value. - - - - - Local variable to store the width. - - - - - Local variable to store the height. - - - - - Local variable to store the X co-ordinate value. - - - - - Local variable to store the Y co-ordinate value. - - - - - Local variable to store the transaction matrix value. - - - - - Local variable to store the scale matrix value. - - - - - Local variable to store the page size. - - - - - Local variable to store the cm entries. - - - - - Local variable to store the page margin cm. - - - - - Local variable to store current Rectangle cm.. - - - - - Local variable to store Previous Rectangle cm. - - - - - Local variable to store eftMargin. - - - - - Local variable to store topMargin. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - Content Stream. - Key Value. - Page Size. - - - - Calculate the matrix value from the content stream. - - The matrix value in the form of array list. - - - - Calculate the scale matrix value. - - Page size. - - - - Calculate the translation matrix value. - - - - - Convert the matrix value as array. - - Matrix value. - - - - Gets the X co-ordinate value. - - - - - Gets the Y co-ordinate value. - - - - - Gets the image height - - - - - Gets the image width value. - - - - - gets the image leftmargin - - - - - Gets the top margin - - - - - Represents structure tree required to store document logical structure. - - - - - Internal variable to hold structure elements. - - - - - Internal variable to store PdfPage associated with the element. - - - - - Internal variable to store structure id. - - - - - Internal variable to store the bounding rectangle of the element. - - - - - Internal Variable to store the order for the elements - - - - - Internal Variable to store structure element parent and the tag. - - - - - Internal variable to store current structure element's child - - - - - Internal variable to store structure element's parent hierarchy. - - - - - Internal variable to store tree root's child nodes - - - - - Internal variable to store structure elements's childs - - - - - Internal variable to store tags - - - - - Internal variable to store tree root childs. - - - - - Internal variable to store current parent data. - - - - - Internal variable to store structure element parent data - - - - - Internal variable to store sub-list dictionary - - - - - Internal variable to store sub-list collection - - - - - Internal variable to check whether order included. - - - - - Internal variable to check whether nested grid rendering done. - - - - - Constructor - - - - - Adds the specified element to the document structure tree. - - - - - - - - - - Adds the specified element to the document structure tree. - - - - - - - - - Adds annotation/form fields element to the structure tree root. - - the structure element - Page - the annotation dictionary - - - - Adds structure element to the document tree root - - the structure element - Page - returns an integer marked content identifier denoating marked content sequence - - - - Adds parent entry for Table/List - - structure element's parent hierarchy - returns true if parent is identical - - - - Add entries for the structure elements Table/List - - structure elements's parent hierarchy - returns true if parent is identical - - - - Checks whether table has child grid. - - the structure elements's hierarchy - returns true if the table has child grid. - - - - Adds parent entry for the elements - - the structure element - structure element's parent hierarchy - returns true if parent is identical - - - - Checks whether List element has sub-list - - the structure element's parent hierarchy - returns true if the list has sub-list. - - - - Set sub entries data. - - structure element's parent hierarchy - current parent dictionary - - - - Adds tag for the structure elements - - - - - - - Indicates whether the tag is identical - - - returns true if tag is identical - - - - Sets parent entry for structure element hierarchy. - - the structure element hierarchy - top level structure element dictionary - the start index to add parent entry - - - - Set child entry for tree root - - the structure parent hierarchy - - - - Set child for the structure elements List/Table - - the structure parent hierarchy - the child collection - - - - Dispose all the resources from strurture tree root. - - - - - Finds structure elements parent - - the structure element - returns the parent hierarchy for structure element - - - - Adds order value from structure element - - the structure element - - - - Converts equivalent name for the tag type. - - - returns the converted tag name - - - - Re-Order the List - - the maximum child entries in parent - the order list - - - - Re-arrange the structure elements from tree root - - the tree root child entries - the order list - - - - Arranges order list from zero - - the child element count - - - - - Gets Child elements from structure tree root. - - the structure tree root - - - - Summary description for CryptoApi. - - - - - Default constructor. - - - - - WinAPi functions. - - - - - To prevent construction of a class, we make a private constructor. - - - - - Adds the font resource from the specified file to the system font table. - The font can subsequently be used for text output by any application. - - String that contains a valid font file name. - If the function fails, the return value is zero. - - - - Removes the fonts in the specified file from the system font table. - - String that names a font resource file. - If the function fails, the return value is zero. - - - - Selects an object into the specified device context (DC). - The new object replaces the previous object of the same type. - - Handle to the DC. - Handle to the object to be selected. - If the selected object is not a region and the function succeeds, - the return value is a handle to the object being replaced. - - - - Deletes a logical pen, brush, font, bitmap, region, or palette, - freeing all system resources associated with the object. - After the object is deleted, the specified handle is no longer valid. - - Handle to a logical pen, brush, font, - bitmap, region, or palette. - If the function succeeds, the return value is nonzero. - - - - Retrieves font metric data for a TrueType font. - - Handle to the device context. - Specifies the name of a font metric table - from which the font data is to be retrieved - Specifies the offset from the beginning of the font metric table - to the location where the function should begin retrieving information. - Pointer to a buffer that receives the font information. - Specifies the length in bytes of the information to be retrieved - If the function succeeds, the return value is the number of bytes returned. - - - - Retrieves the widths, in logical coordinates, - of consecutive characters in a specified range from the current font. - - Handle to the device context. - Specifies the first character in - the group of consecutive characters. - Specifies the last character in - the group of consecutive characters, - which must not precede the specified first character. - Pointer to a buffer that receives - the character widths, in logical coordinates. - If the function succeeds, the return value is nonzero. - - - - Computes the width and height of the specified string of text. - - Handle to the device context. - Pointer to a buffer that specifies the text string. - Specifies the length of the lpString buffer. - Pointer to a size structure that receives the dimensions of the string - in logical units. - If the function succeeds, the return value is nonzero. - - - - Computes the width and height of the specified string of text. - - Handle to the device context. - Specifies the first character in the group of - consecutive characters from the current font. - Specifies the last character in the group of - consecutive characters from the current font. - Pointer to an array of ABC structures that receives - the character widths, in logical units. - The function succeeds, the return value is nonzero. - - - - The SetTextColor function sets the text color for the specified - device context to the specified color. - - Handle to the device context. - Specifies the color of the text. - If the function succeeds, the return value is - a color reference for the previous text color as a COLORREF value. - - - - The SetTextAlign function sets the text-alignment flags for - the specified device context. - - Handle to the device context. - Specifies the text alignment by using a mask of values. - If the function succeeds, the return value is the previous - text-alignment setting. - - - - The SetBkColor function sets the current background color to - the specified color value or to the nearest physical color - if the device cannot represent the specified color value. - - Handle to the device context. - Specifies the new background color. - If the function succeeds, the return value specifies - the previous background color as a COLORREF value. - - - - The SaveDC function saves the current state of the specified - device context (DC) - - Handle to the DC whose state is to be saved. - If the function succeeds, the return value identifies - the saved state. - - - - The GetTextColor function retrieves the current text color - for the specified device context. - - Handle to the device context. - If the function succeeds, the return value is - the current text color as a COLORREF value. - - - - The GetBkColor function returns the current background color - for the specified device context. - - Handle to the device context whose - background color is to be returned. - If the function succeeds, the return value is - a COLORREF value for the current background color. - - - - The GetTextAlign function retrieves the text-alignment - setting for the specified device context. - - Handle to the device context. - The function succeeds, the return value is the status of - the text-alignment flags. - - - - The RestoreDC function restores a device context (DC) to the specified state - - Handle to the DC. - Specifies the saved state to be restored. - If the function succeeds, the return value is nonzero. - - - - The LPtoDP function converts logical coordinates into device coordinates. - - Handle to device context. - Pointer to an array of POINT structures. - Specifies the number of points in the array. - If the function succeeds, the return value is nonzero. - - - - The LPtoDP function converts logical coordinates into logical coordinates. - - Handle to device context. - Pointer to an array of POINT structures. - Specifies the number of points in the array. - If the function succeeds, the return value is nonzero. - - - - The CreateIC function creates an information context for the specified device. - - Driver name. - Device name. - Port or file name. - Optional initialization data. - If the function succeeds, the return value is - the handle to an information context. - - - - The SetWindowExtEx function sets the horizontal and vertical extents of - the window for a device context by using the specified values. - - Handle to the device context. - Specifies the window's horizontal extent in - logical units. - Specifies the window's vertical extent in - logical units. - Pointer to a size structure that receives - the previous window extents, in logical units. - - - - - The SetWindowOrgEx function specifies which window point maps - to the viewport origin (0,0). - - Handle to the device context. - Specifies the X coordinate in logical units - of the new window origin. - Specifies the Y coordinate in logical units - of the new window origin. - Pointer to a point structure that receives - the previous origin of the window, in logical units. - If the function succeeds, the return value is nonzero. - - - - The SetViewportExtEx function sets the horizontal and vertical extents - of the viewport for a device context by using the specified values. - - Handle to the device context. - Specifies the horizontal extent - in device units of the viewport. - Specifies the vertical extent - in device units of the viewport. - Pointer to a size structure that - receives the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The GetViewportExtEx function retrieves the horizontal extent and vertical extent - of the current viewport for the specified device context. - - Handle to the device context. - Pointer to a size structure that - receives the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The SetViewportOrgEx function specifies which device point maps - to the window origin (0,0). - - Handle to the device context. - Specifies the x-coordinate, in device units, - of the new viewport origin. - Specifies the Y coordinate in device units - of the new viewport origin. - Pointer to a point structure that receives - the previous viewport origin in device coordinates. - If the function succeeds, the return value is nonzero. - - - - The ScaleWindowExtEx function modifies the window for a device context using - the ratios formed by the specified multiplicands and divisors. - - Handle to the device context. - Specifies the amount by which to multiply - the current horizontal extent. - Specifies the amount by which to divide - the current horizontal extent. - Specifies the amount by which to multiply - the current vertical extent - Specifies the amount by which to divide - the current vertical extent - Pointer to a size structure that receives - the previous window extents in logical units. - If the function succeeds, the return value is nonzero. - - - - The ScaleViewportExtEx function modifies the viewport for a device context - using the ratios formed by the specified multiplicands and divisors. - - Handle to the device context. - Specifies the amount by which to multiply - the current horizontal extent. - Specifies the amount by which to divide - the current horizontal extent. - Specifies the amount by which to multiply - the current vertical extent. - Specifies the amount by which to divide - the current vertical extent. - Pointer to a size structure that receives - the previous viewport extents in device units. - If the function succeeds, the return value is nonzero. - - - - The SetMapMode function sets the mapping mode of the specified device context. - - Handle to device context. - New mapping mode. - If the function succeeds, the return value identifies - the previous mapping mode. - - - - The GetGraphicsMode function retrieves the current graphics mode - for the specified device context. - - Handle to device context. - If the function succeeds, the return value is the current graphics mode. - - - - The GetDeviceCaps function retrieves device-specific information - for the specified device. - - Handle to the DC. - Specifies the item to return. - The return value specifies the value of the desired item. - - - - The GetDC function retrieves a handle to a display device context (DC) - for the client area of a specified window or for the entire screen. - - Handle to the window whose DC is to be retrieved - If the function succeeds, the return value is a handle to the DC - for the specified window's client area. - - - - The CreateDC function creates a device context (DC) for a device using the specified name. - - Driver name. - Device name. - Not used; should be NULL. - Optional printer data. - If the function succeeds, the return value is the handle to a DC for the specified device. - - - - The DeleteDC function deletes the specified device context (DC). - - Handle to the device context. - If the function succeeds, the return value is nonzero. - - - - The ModifyWorldTransform function changes the world transformation for a device context using the specified mode. - - handle to device context. - transformation data. - The modififcation mode. - modification mode. - - - - The SetWorldTransform function sets the world transformation for a device context using the specified mode. - - handle to device context. - transformation data. - modification mode. - - - - The GetMapMode function retrieves the current mapping mode. - - handle to device context. - If the function succeeds, the return value specifies the mapping mode. - - - - The SetMiterLimit function sets the limit for the length of miter joins for the specified device context. - - handle to DC - new miter limit - previous miter limit - If the function succeeds, the return value is nonzero. - - - - The GetMiterLimit function retrieves the miter limit for the specified device context. - - handle to DC - miter limit - If the function succeeds, the return value is nonzero. - - - - The SetPolyFillMode function sets the polygon fill mode for functions that fill polygons. - - handle to DC - polygon fill mode - The return value specifies the previous filling mode. If an error occurs, the return value is zero. - - - - The GetPolyFillMode function retrieves the current polygon fill mode. - - handle to DC - The return value specifies the filling mode. If an error occurs, the return value is zero. - - - - The SetGraphicsMode function sets the graphics mode for the specified device context. - - Handle to the device context. - Specifies the graphics mode. - - - - - The BeginPath function opens a path bracket in the specified device context. - - Handle to the device context. - If the function succeeds, the return value is nonzero. - - - - The MoveToEx function updates the current position to the specified point and optionally returns the previous position. - - Handle to the device context. - Specifies the x-coordinate, in logical units, of the new position, in logical units. - Specifies the y-coordinate, in logical units, of the new position, in logical units. - Pointer to a POINT structure that receives the previous current position. - If the function succeeds, the return value is nonzero. - - - - The LineTo function draws a line from the current position up to, but not including, the specified point. - - Handle to a device context. - Specifies the x-coordinate, in logical units, of the line's ending point. - Specifies the y-coordinate, in logical units, of the line's ending point. - If the function succeeds, the return value is nonzero. - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Retrieves text metrics for TrueType fonts. - - Handle to the device context. - Specifies the size in bytes of the array - that receives the text metrics. - Pointer to an array of OUTLINETEXTMETRIC structures. - If the function succeeds, the return value is nonzero - or the size of the required buffer. - - - - Retrieves text metrics for TrueType fonts. - - Handle to the device context. - Specifies the size in bytes of the array - that receives the text metrics. - Pointer to an array of OUTLINETEXTMETRIC structures. - If the function succeeds, the return value is nonzero - or the size of the required buffer. - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - Exported function from Windows GDI. For more details see Windows GDI reference. - - - - - This function allows an application to get a font that is embedded in a document or a webpage. - A font that is added by AddFontMemResourceEx is always private to the process that made the call and is not enumerable. - - A pointer to a font resource. - The number of bytes in the font resource that is pointed to by pbFont. - Reserved. Must be 0. - A pointer to a variable that specifies the number of fonts installed. - The return value specifies the handle to the font added - - - - WinAPi functions. - - - - - To prevent construction of a class, we make a private constructor. - - - - - The GetLastError function retrieves the calling thread's last-error code value. - - The return value is the calling thread's last-error code value. - - - - Retrieves character-type information for the characters in the specified source string. - - Value that specifies the locale identifier. - Value that specifies the type of character information the user wants to retrieve. - Pointer to the string for which character types are requested. - Size, in characters, of the string pointed to by the lpSrcStr parameter. - Pointer to an array of 16-bit values. - Boolean result, indicates success of WinAPI call - - - - Class containing API for RTL support. - - - - - Operation succeed. - - - - - Out of memory to suceed an operation. - - - - - Default size of the buffer. - - - - - Font doesn't support such glyphs. - - - - - Default script program. - - - - - Mask for setting script as SCRIPT_UNDEFINED. - - - - - Identifies that layout is RTL. - - - - - Default constructor. - - - - - Retieves value from the structure. - - Value of the structure. - Start position of the item inside of the structure. - Length of the item in bits. - Value from the structure. - - - - Class containing API for RTF support. - - - - - Exported funtion. - - - - - Exported funtion. - - - - - Exported funtion. - - - - - Specifies the type of character information the user wants to retrieve. - - - - - Retrieves character type info - - - - - Retrieves bi-directional layout info - - - - - Retrieves text processing info - - - - - These types support ANSI C and POSIX (LC_CTYPE) character-typing functions. - A combination of these values is returned in the array pointed to by the lpCharType parameter - when the dwInfoType parameter is set to CT_CTYPE1. - - - - - Uppercase - - - - - Lowercase - - - - - Decimal digits - - - - - Space characters - - - - - Punctuation - - - - - Control characters - - - - - Blank characters - - - - - Hexadecimal digits - - - - - Any linguistic character: alphabetic, syllabary, or ideographic - - - - - These types support proper layout of Unicode text. The direction attributes are assigned - so that the bidirectional layout algorithm standardized by Unicode produces accurate results. - These types are mutually exclusive. - - - - - Left to right - - - - - Right to left - - - - - European number, European digit - - - - - European numeric separator - - - - - European numeric terminator - - - - - Arabic number - - - - - Common numeric separator - - - - - Block separator - - - - - Segment separator - - - - - White space - - - - - Other neutrals - - - - - No implicit directionality (for example, control codes) - - - - - These types are intended to be placeholders for extensions to the POSIX types - required for general text processing or for the standard C library functions. - A combination of these values is returned when dwInfoType is set to CT_CTYPE3. - - - - - Diacritic nonspacing mark - - - - - Vowel nonspacing mark - - - - - Symbol - - - - - Katakana character - - - - - Hiragana character - - - - - Half-width (narrow) character - - - - - Full-width (wide) character - - - - - Ideographic character - - - - - Arabic Kashida character - - - - - Punctuation which is counted as part of the word - (Kashida, hyphen, feminine/masculine ordinal indicators, equal sign, and so forth) - - - - - All linguistic characters (alphabetical, syllabary, and ideographic) - - - - - Not applicable - - - - - Native enum. - - - - - Record of Emf metafile. - - - - - New miter limit. - - - - - Record of Emf metafile. - - - - - The XFORM structure specifies a world-space to page-space transformation. - - - - - Specifies scaling/rotation/reflection - - - - - Specified shear/rotation - - - - - Specified shear/rotation - - - - - Specifies scaling/rotation/reflection - - - - - Specifies the horizontal translation component, in logical units. - - - - - Specifies the vertical translation component, in logical units. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Point creation from lParam's data. - - lParam's data for initialing point structure. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Performs an implicit conversion from to . - - The p. - The result of the conversion. - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - ABC structure. - - - - - Structure for 32 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Value of Alpha chanel. - - - - - Structure for 24 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Structure for 24 bit images saving. - - - - - Value of Blue chanel. - - - - - Value of Green chanel. - - - - - Value of Red chanel. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Windows structure. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Record of Emf metafile. - - - - - Structure for information about font. - - - - - Class with simple constants. - - - - - ExtTextOut options constants. - - - - - The current background color should be used to fill the rectangle. - - - - - The text will be clipped to the rectangle. - - - - - Windows 95 and Windows NT 4.0 and later: - The lpString array refers to an array returned from - GetCharacterPlacement and should be parsed directly by GDI - as no further language-specific processing is required. - Glyph indexing only applies to TrueType fonts, but the flag - can be used for bitmap and vector fonts to indicate that no further - language processing is necessary and GDI should process the string - directly. - - Note that all glyph indexes are 16-bit values even though the string is - assumed to be an array of 8-bit values for raster fonts. - - For ExtTextOutW, the glyph indexes are saved to a metafile. - However, to display the correct characters the metafile must be - played back using the same font. For ExtTextOutA, the glyph indexes are not saved. - - - - - Windows 95 and Windows NT 4.0 and later: To display numbers, use European digits. - - - - - Windows 95 and Windows NT 4.0 and later: To display numbers, use digits appropriate to the locale. - - - - - Windows 95 and Windows NT 4.0 and later for Middle East - language edition of Windows: If this value is specified - and a Hebrew or Arabic font is selected into the device - context, the string is output using right-to-left reading - order. If this value is not specified, the string is output - in left-to-right order. The same effect can be achieved - by setting the TA_RTLREADING value in SetTextAlign. This - value is preserved for backward compatibility. - - - - - Windows NT 4.0 and later: Reserved for system use. - If an application sets this flag, it loses international scripting - support and in some cases it may display no text at all. - - - - - Windows 2000/XP: When this is set, the array pointed to by lpDx - contains pairs of values. The first value of each pair is, - as usual, the distance between origins of adjacent character cells, - but the second value is the displacement along the vertical direction of the font. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Copies the source rectangle directly to the destination rectangle. - - - - - Combines the colors of the source and destination rectangles by using the Boolean OR operator. - - - - - Combines the colors of the source and destination rectangles by using the Boolean AND operator. - - - - - Combines the colors of the source and destination rectangles by using the Boolean XOR operator. - - - - - Combines the inverted colors of the destination rectangle with the colors of the source rectangle - by using the Boolean AND operator. - - - - - Copies the inverted source rectangle to the destination. - - - - - Combines the colors of the source and destination rectangles - by using the Boolean OR operator and then inverts the resultant color. - - - - - Merges the colors of the source rectangle with the specified pattern - by using the Boolean AND operator. - - - - - Merges the colors of the inverted source rectangle with the colors of the destination rectangle - by using the Boolean OR operator. - - - - - Copies the specified pattern into the destination bitmap. - - - - - Combines the colors of the pattern with the colors of the inverted source rectangle by using the Boolean OR operator. - The result of this operation is combined with the colors of the destination rectangle by using the Boolean OR operator. - - - - - Combines the colors of the specified pattern with the colors of the destination rectangle - by using the Boolean XOR operator. - - - - - Inverts the destination rectangle. - - - - - Fills the destination rectangle using the color associated with index 0 in the physical palette. - This color is black for the default physical palette. - - - - - Fills the destination rectangle using the color associated with index 1 in the physical palette. - This color is white for the default physical palette. - - - - - Combines the colors of the source and destination rectangles by using the Boolean AND operator. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Constants from WinGdi.h file. - - - - - Gdi Charset. - - - - - The class represents the graphics state data. - - - - - Represents the method that executes on a when a new page is created. - - The source of the event. - A that contains the event data. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class - - - - Provides data for event. - - - This event raises when adding the new to the . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Delegate. - Class. - Class. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with . - - A object representing the page which is added in the document. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event. - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class. - - - - Gets the newly added page. - - A object representing the page which is added in the document. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event. - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Save and close the document. - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event. - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Save and close the document. - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event. - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class. - Class - Class - - - - Encapsulates a page template for all the pages in the document. - - - - //Create a PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Creates a new page and adds it as the last page of the document template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Bottom = footer; - //Save the document - doc.Save("Template.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Bottom = footer - doc.Save("Template.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - Left page template object. - - - - - Top page template object. - - - - - Right page template object. - - - - - Bottom page template object. - - - - - Even Left page template object. - - - - - Even Top page template object. - - - - - Even Right page template object. - - - - - Even Bottom page template object. - - - - - Odd Left page template object. - - - - - Odd Top page template object. - - - - - Odd Right page template object. - - - - - Odd Bottom page template object. - - - - - The collection of the stamp elements. - - - - - Initializes a new instance of the class. - - - - - Returns left template. - - Page where the template should be printed. - Returns left template. - - - - Returns top template. - - Page where the template should be printed. - Returns top template. - - - - Returns right template. - - Page where the template should be printed. - Returns right template. - - - - Returns bottom template. - - Page where the template should be printed. - Returns bottom template. - - - - Checks whether the page is even or odd. - - The page object. - True if the page is even, false otherwise. - - - - Checks a template element. - - The template element. - The type that should be assigned to the template element. - - The template element which passed the check. - - - - - Gets or sets a left page template. - - The to draw into the PDF page - - - - Gets or sets a top page template. - - The to draw into the PDF page - - - - Gets or sets a right page template. - - The to draw into the PDF page - - - - Gets or sets a bottom page template. - - The to draw into the PDF page - - - - Gets or sets a left page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a top page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a right page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a bottom page template using on the even pages. - - The to draw into the PDF page - - - - Gets or sets a left page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a top page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a right page template using on the odd pages. - - The to draw into the PDF page - - - - Gets or sets a bottom page template using on the odd pages. - - The to draw into the PDF page - - - - Gets a collection of stamp elements. - - The ,a collection of stamps that are applied to the page templates. - - - - The class provides methods and properties to handle the collections of loaded PDF pages - - - - - Initializes a new instance of the class. - - The document. - The cross table. - - - - Creates a new page and adds it to the collection. - - The created page. - - - - Creates a new page of the specified size and adds it to the collection. - - The size of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The rotation of the new page. - The created page. - - - - Creates a new page of the specified size and with the specified margins - and adds it to the collection. - - The size of the new page. - The margins of the new page. - The rotation of the new page. - The location of the new page. - The created page. - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - The destinations. - - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - - - - - Creates a new page and inserts it at the specified index. - - The index. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size. - - The index. - The size of the page. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size and margins. - - The index. - The size of the page. - The margins of the page. - The created page. - - - - Creates a new page and inserts it at the specified index with specified size, margins and rotation angle - - The index. - The size of the page. - The margins of the page. - The rotation of the new page. - The created page. - - - - Removes the page at the given specified index. - - Index of the page. - - - - Removes the specified page. - - The page to be remove. - - - - Re arrange the Pages in the Loaded Document. - - The page sequence to arrange the pages. - - - //Load the PDF document - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Rearrange the page by index - loadedDocument.Pages.ReArrange(new int[] {1, 0}); - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Rearrange the page by index - loadedDocument.Pages.ReArrange(New Integer() {1, 0}) - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - - - - Creates a new page and inserts it at the specified index with specified size,margins,rotation angle and orientation - - The index. - The size of the page. - The margins of the page. - The rotation of the new page. - The orientation of the new page. - The created page. - - - - Inserts loaded page into loaded document at specified index - - The index at which page to be inserted. - The page to be inserted. - - - - Gets the page. - - The page dictionary. - The loaded page. - - - - Updates number of leaf nodes of corresponding page tree nodes starting with . - - The parent dictionary - - - - Returns the index of the page. - - The page. - The index of the page. - This might be a time consuming operation. - - - - Gets the page by its index. - - The index. - The proper PdfPageBase instance. - - - - Determines whether a node is a leaf nide. - - The node. - - true if the specified node is a leaf node; otherwise, false. - - - - - Gets the node kids. - - The node. - The node kids array. - - - - Gets the node count. - - The node. - The number of the kids in the node. - - - - Gets the parent parent node. - - The index. - Index of the local. - if set to true zero index is a valid index. - - - - - Gets the parent parent node - Should be used only in GetPage method. - - The index. - Index of the local. - if set to true zero index is a valid index. - if set to true fetchs the page collection faster than native GetParent method. - - - - - Clears page cache. - - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Gets the number of sections present in the document - - - - - Get and set the Pdfloaded Document. - - - - - Gets the at the specified index. - - - - - Gets the number of pages presnt in the document - - - - - Gets the page cache. - - - - - Implements enumerator to the loaded page collection. - - - - - Initializes a new instance of the class. - - The . - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, - which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - Gets the current element in the collection. - - - The current element in the collection. - - The enumerator is positioned before the first element of the collection - or after the last element. - - - - The class provides methods and properties to handle the collections of . - - - - - Local variable to store the PageLabel Count. - - - - - Internal variable to store page Label. - - - - - Internal variable to store page Label Collection. - - - - - Add the to the collection - - - - - - Gets the number of from collection (Read only). - - The count. - - - - Gets the at the specified index (Read only). - - - - - - Gets the element. - - - - - - The abstract base class for all pages, Provides methods and properties to create PDF pages and its elements - - - - - Collection of the layers of the page. - - - - - Collection of the annotations of the page. - - - - - Index of the default layer. - - - - - Local variable to store the Font Names. - - - - - Local variable to store the Font Refences. - - - - - Local variable to store information about images. - - - - - Local variable to store page template. - - - - - Local variable to store if page updated. - - - - - Local variable to store annotation count in the page. - - - - - Internal variable to store layers count. - - - - - Internal variable to store combined length. - - - - - Internal variable to store image count for the page. - - - - - Internal variable to store if the page is imported. - - - - - Helps to lock creating template to page in multi threading - - - - - Internal variable to store tab order type for form fields - - - - - Local variable to store resource information - - - - - Local variable to store image information. - - - - - ArrayList to store the extracted images. - - - - - List to store the image information. - - - - - List to store image keys. - - - - - Stack to maintain the current matrix. - - - - - Clear the page resource and record collection - - - - - Initializes a new instance of the class. - - The page dictionary. - - - - Replace the Image at index's Position. - - index of an image - The New Replace image - - - //Load the PDF document - PdfLoadedDocument doc = new PdfLoadedDocument(@"input.pdf"); - //Create an image instance - PdfBitmap bmp = new PdfBitmap(@"Autumn Leaves.jpg"); - //Replace the first image in the page. - doc.Pages[0].ReplaceImage(0, bmp); - //Save the document - doc.Save("output.pdf"); - //Close the document - doc.Close(true); - - - 'Load the PDF document///Dim doc As New PdfLoadedDocument("input.pdf") - 'Create an image instance - Dim bmp As New PdfBitmap("Autumn Leaves.jpg") - 'Replace the first image in the page. - doc.Pages(0).ReplaceImage(0, bmp) - 'Save the document - doc.Save("output.pdf") - 'Close the document - doc.Close(True) - - - - - - Replace the Image at index's Position. - - index of an image - The New Replace image - - - - Replace the Paginated Image. - - Loaded Page - Image key name - New image Reference - Object index - The image is replaced or not - - - - Creates a template from page content and all annotation appearances. - - The created PdfTemplate. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load the page - PdfLoadedPage loadedPage = loadedDocument.Pages[0] as PdfLoadedPage; - //Create the template from the page. - PdfTemplate template = loadedPage.CreateTemplate(); - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Set the document margin - document.PageSettings.SetMargins(2); - //Add the page - PdfPage page = document.Pages.Add(); - //Create the graphics - PdfGraphics graphics = page.Graphics; - //Draw the template - graphics.DrawPdfTemplate(template, PointF.Empty,new SizeF(page.Size.Width/2,page.Size.Height)); - //Save the new document. - document.Save("output.pdf"); - //Close the documents - loadedDocument.Close(true); - document.Close(true); - - - 'Load the existing PDF document. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load the page - Dim loadedPage As PdfLoadedPage = TryCast(loadedDocument.Pages(0), PdfLoadedPage) - 'Create the template from the page. - Dim template As PdfTemplate = loadedPage.CreateTemplate() - 'Create a new PDF document - Dim document As New PdfDocument() - 'Set the document margin - document.PageSettings.SetMargins(2) - 'Add the page - Dim page As PdfPage = document.Pages.Add() - 'Create the graphics - Dim graphics As PdfGraphics = page.Graphics - 'Draw the template - graphics.DrawPdfTemplate(template, PointF.Empty, New SizeF(page.Size.Width \ 2, page.Size.Height)) - 'Save the new document. - document.Save("output.pdf") - 'Close the documents - loadedDocument.Close(True) - - - - - - Extracts text from the PDF Page. - - The Extracted Text. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load the first page. - PdfPageBase page = loadedDocument.Pages[0]; - //Extract text from first page. - string extractedText = page.ExtractText(); - //Close the document - loadedDocument.Close(true); - - - 'Load an existing PDF. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load the first page. - Dim page As PdfPageBase = loadedDocument.Pages(0) - 'Extract the text from first page. - Dim extractedText As String = page.ExtractText() - 'close the document. - loadedDocument.Close(True) - - - - - - Extracts text from the PDF Page based on its layout - - Extracts text based on the Layout of PDF Document if the parameter is set to true, else Extracts text normally. - The Extracted Text. - Extracting the text based on the layout may take additional processing time when compared to the normal extraction. - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load first page. - PdfPageBase page = loadedDocument.Pages[0]; - //Extract text from first page. - string extractedTexts = page.ExtractText(true); - //close the document - loadedDocument.Close(true); - - - 'Load an existing PDF. - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load first page. - Dim page As PdfPageBase = loadedDocument.Pages(0) - 'Extract text from first page. - Dim extractedTexts As String = page.ExtractText(True) - 'close the document - loadedDocument.Close(True) - - - - - - Extracts text along with its format from the PDF Page. - - Provides the text data collection - Returns the extracted text. - - - - Gets the Font from the Xobject. - - - - - Get the XObject font collection - - xobject resource dictionary - font collection dictionary - - - - Collects the Font. - - - - - Gets the XObject from the Resource dictionary - - Page resource - XObject - - - - Get the XObject form the resource dictionary. - - Resource dictionary - xobject - - - - Extracts images from the given PDF Page. - - Returns the extracted image as Image[]. - - - - Extract the Inner XObject Images. - - - - - - Extract the images from the PDF - - returns the List of images - - - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load an existing PDF. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument(fileName); - //Load first page. - PdfPageBase pageBase = loadedDocument.Pages[0]; - //Extract images from first page. - Image[] extractedImages = pageBase.ExtractImages(); - //close the document - loadedDocument.Close(true); - - - 'Load an existing PDF - Dim loadedDocument As New PdfLoadedDocument(fileName) - 'Load first page. - Dim pageBase As PdfPageBase = loadedDocument.Pages(0) - 'Extract images from first page. - Dim extractedImages As Image() = pageBase.ExtractImages() - 'close the document. - loadedDocument.Close(True) - - - - - - Gets the resources and modifies the page dictionary. - - Pdf resources. - - - - Sets the resources. - - The resources object. - - - - Gets the content of the page in form of a PDF template. - - A read-only PdfTemplate object that represents the content of the page - (w/o annotations and other interactive elements). - - - - Re-Initialize page contents references. - - /// Returns the array of re-initialized page contents - - - - Checks the type of External object - - /// Returns the initialized page XObject reference - - - - Re-Initialize External form object references - - - - - Checks the Optical content and re-initialize the references - - - re-initialized Optical content - - - - Re-initialize image External object references - - - - - - Re-Initialize indirect reference for page resources. - - /// Returns the initialized page resources - - - - Checks the references of Page shading and re-initialize it. - - PageShading dictionary - - - - Re-Initialize the page annotation references - - Acroform dictionary - - - - Checks the annotation appearance and re-initialize the references - - The Appearance dictionary - - - - Re-Initialize the acroform references. - - AcroForm dictionary - - - - Re-Initialize thumbnail data references - - - - - Re-initialize the ColorSpace references. - - The ColorSpace dictionary - - - - Re-initialize the page pattern references - - pattern dictionary - - - - Checks the font internals to re-initialize the reference - - The font dictionary - - - - Re-initialize font descriptor reference - - Font descriptor dictionary - re-initialized font descriptor - - - - Re-initialize the external graphics state references. - - External graphics state dictionary - Returns the initialized graphics state reference - - - - Re-Initialize ExternalObject resources - - External object's resource dictionary - - - - Gets the page orientation. - - The orientation of the page. - - - - Clears PdfPageBase. - - - - - Imports all annotations from a page. - - The loaded document. - The page. - The destination list containing the destinations from annotations. - - - - Imports all annotations from a page. - - The loaded document. - The page. - - - - Gets the destination. - - The loaded document. - The annotation. - The destination dictionary. - - - - Gets the annotations array. - - The array of the annotations. - - - - Returns number of annotations in the page. - - - - - - Gets the page rotation. - - The rotation of the page. - - - - Draws the annotation templates. - - The graphics. - - - - Normalizes the annotation location. - - The location. - The graphics. - The annotation template. - The normalized location. - Annotation location treats low left page corner as coordinates origin. - However, graphics translate the origin to the top left corner. This method makes - location relative to the top left page corner. - - - - Gets the annotation location. - - The annotation dictionary. - The annotation location. - - - - Gets the size of the annotation. - - The annotation dictionary. - The size of the annotation. - - - - Gets the size of the interactive element. - - The dictionary. - Name of the property containing size rectangle (e.g. Rect, BBox). - The size of the annotation. - - - - Gets the annotation template. - - The annotation. - The annotation template. - - - - Gets the information about the extracted image from the PDF page - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Load PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("Input.pdf"); - //Gets ImageInfo from the first page. - PdfImageInfo[] imageInfo = document.Pages[0].ImagesInfo; - //Gets the Image Boundary location. - RectangleF imageBounds = imageInfo[0].Bounds; - //Gets the Image. - Image image = imageInfo[0].Image; - //Gets the Image index. - int imageIndex = imageInfo[0].Index; - //Closing the PDF document. - document.Close(true); - - - 'Load PDF document. - Dim document As New PdfLoadedDocument("Input.pdf") - 'Gets ImageInfo from the first page. - Dim imageInfo As PdfImageInfo() = document.Pages(0).ImagesInfo - 'Gets the Image Boundary location. - Dim imageBounds As RectangleF = imageInfo(0).Bounds - 'Gets the Image. - Dim image As Image = imageInfo(0).Image - 'Gets the Image index. - Dim imageIndex As Integer = imageInfo(0).Index - 'Closing the PDF document. - document.Close(True) - - - Class - Class - - - - Gets the graphics of the . - - - The that represents a graphics of the page. - - /// - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a PDF page - PdfPage page = document.Pages.Add(); - //Get graphics - PdfGraphics graphics = page.Graphics; - //Draw a rectangle - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 200)); - //Save and close the document - document.Save("output.pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a PDF page - Dim page As PdfPage = document.Pages.Add() - 'Get graphics - Dim graphics As PdfGraphics = page.Graphics - 'Draw a rectangle - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 200)) - 'Save and close the document - document.Save("output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets if a page is imported. - - - - - Gets the collection of the page's layers (Read only). - - - The that represents the page's layers - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Add page to the document - PdfPage page=document.Pages.Add(); - //Get the page layer - PdfPageLayerCollection angle = page.Layers; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Add page to the document - Dim page As PdfPage = document.Pages.Add() - 'Get the page layer - Dim angle As PdfPageLayerCollection = page.Layers - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - Class - - - - Gets the collection of the page's annotations (Read only). - - - The that represents the page's annotations - - - - //Load the document - PdfLoadedDocument lDoc = new PdfLoadedDocument("inputAnnotation.pdf"); - //get the first page from the document - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document - lDoc.Save("sample.pdf"); - lDoc.Close(true); - - - 'Load the document - Dim lDoc As New PdfLoadedDocument("inputAnnotation.pdf") - 'Get the first page from the document - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collections - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document - lDoc.Save("sample.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets or sets the tab order type for form fields - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual; - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(page, "Hello"); - //Set field tab index as 3. - field.TabIndex = 3; - //Set field bounds. - field.Bounds = new RectangleF(0, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field1 = new PdfTextBoxField(page, "Hello1"); - //Set field tab index as 2. - field.TabIndex = 2; - //Set field bounds. - field1.Bounds = new RectangleF(200, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field2 = new PdfTextBoxField(page, "Hello2"); - //Set field tab index as 1. - field.TabIndex = 1; - //Set field bounds. - field2.Bounds = new RectangleF(0, 50, 100, 30); - //Create new text box field. - PdfTextBoxField field3 = new PdfTextBoxField(page, "Hello3"); - //Set field tab index as 0. - field.TabIndex = 0; - //Set field bounds. - field3.Bounds = new RectangleF(200, 50, 100, 30); - //Adds the form field to the document. - document.Form.Fields.Add(field); - document.Form.Fields.Add(field1); - document.Form.Fields.Add(field2); - document.Form.Fields.Add(field3); - //Save the pdf document. - document.Save("TabOrder.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual - 'Create new text box field. - Dim field As PdfTextBoxField = New PdfTextBoxField(page, "Hello") - 'Set field tab index as 3. - field.TabIndex = 3 - 'Set field bounds. - field.Bounds = New RectangleF(0, 0, 100, 30) - 'Create new text box field. - Dim field1 As PdfTextBoxField = New PdfTextBoxField(page, "Hello1") - 'Set field tab index as 2. - field.TabIndex = 2 - 'Set field bounds. - field1.Bounds = New RectangleF(200, 0, 100, 30) - 'Create new text box field. - Dim field2 As PdfTextBoxField = New PdfTextBoxField(page, "Hello2") - 'Set field tab index as 1. - field.TabIndex = 1 - 'Set field bounds. - field2.Bounds = New RectangleF(0, 50, 100, 30) - 'Create new text box field. - Dim field3 As PdfTextBoxField = New PdfTextBoxField(page, "Hello3") - 'Set field tab index as 0. - field.TabIndex = 0 - 'Set field bounds. - field3.Bounds = New RectangleF(200, 50, 100, 30) - 'Adds the form field to the document. - document.Form.Fields.Add(field) - document.Form.Fields.Add(field1) - document.Form.Fields.Add(field2) - document.Form.Fields.Add(field3) - 'Save document to disk. - document.Save("TabOrder.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Namespace - - - - Gets or sets index of the default layer. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(350, 300)); - //Add new page. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16); - //Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, new PointF(150, 10)); - //Add the first layer - page.Layers.Add(); - //Get default layer graphics. - PdfGraphics graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance for PDF pen. - PdfPen pen = new PdfPen(Color.Red, 50); - RectangleF rect = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Add another layer on the page - page.Layers.Add(); - //Increment the layer - page.DefaultLayerIndex += 1; - graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 180); - graphics.SkewTransform(0, 50); - //Draw another set of elements - pen = new PdfPen(Color.Red, 50); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Save the pdf document. - document.Save("Layer.pdf"); - //Close the document. - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(350, 300)) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 16) - 'Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, New PointF(150, 10)) - 'Add the first layer - page.Layers.Add() - 'Get default layer graphics. - Dim graphics As PdfGraphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance for PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Red, 50) - Dim rect As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Add another layer on the page - page.Layers.Add() - 'Increment the layer - page.DefaultLayerIndex += 1 - graphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 180) - graphics.SkewTransform(0, 50) - 'Draw another set of elements - pen = New PdfPen(Color.Red, 50) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Save and close the document. - document.Save("Layer.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the default layer of the page (Read only). - - - The of the Page - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(350, 300)); - //Add new page. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 16); - //Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, new PointF(150, 10)); - //Add the first layer - page.Layers.Add(); - //Get default layer graphics. - PdfGraphics graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 60); - //Create new instance for PDF pen. - PdfPen pen = new PdfPen(Color.Red, 50); - RectangleF rect = new RectangleF(0, 0, 50, 50); - //Draw arc. - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Add another layer on the page - page.Layers.Add(); - //Increment the layer - page.DefaultLayerIndex += 1; - graphics = page.DefaultLayer.Graphics; - graphics.TranslateTransform(100, 180); - graphics.SkewTransform(0, 50); - //Draw another set of elements - pen = new PdfPen(Color.Red, 50); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Blue, 30); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - pen = new PdfPen(Color.Yellow, 20); - graphics.DrawArc(pen, rect, 360, 360); - pen = new PdfPen(Color.Green, 10); - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360); - //Save the pdf document. - document.Save("Layer.pdf"); - //Close the document. - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(350, 300)) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 16) - 'Draw the text. - page.Graphics.DrawString("Layers", font, PdfBrushes.DarkBlue, New PointF(150, 10)) - 'Add the first layer - page.Layers.Add() - 'Get default layer graphics. - Dim graphics As PdfGraphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 60) - 'Create new instance for PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Red, 50) - Dim rect As RectangleF = New RectangleF(0, 0, 50, 50) - 'Draw arc. - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Add another layer on the page - page.Layers.Add() - 'Increment the layer - page.DefaultLayerIndex += 1 - graphics = page.DefaultLayer.Graphics - graphics.TranslateTransform(100, 180) - graphics.SkewTransform(0, 50) - 'Draw another set of elements - pen = New PdfPen(Color.Red, 50) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Blue, 30) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - pen = New PdfPen(Color.Yellow, 20) - graphics.DrawArc(pen, rect, 360, 360) - pen = New PdfPen(Color.Green, 10) - graphics.DrawArc(pen, 0, 0, 50, 50, 360, 360) - 'Save and close the document. - document.Save("Layer.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets the size of the page (Read only). - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - //Get size of first page - SizeF size = ldoc.Pages[0].Size; - //Save and close the document. - ldoc.Save("Output.pdf"); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Get size of first page - Dim size As SizeF = ldoc.Pages(0).Size - 'Save and close the document. - ldoc.Save("Output.pdf") - ldoc.Close(True) - - - Class - - - - Gets the origin of the page - - - - - Gets array of page's content. - - - - - Gets the page dictionary. - - - - - Gets the PDF page rotation (Read only). - - - The PdfPageRotateAngle that represents the page rotation - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get rotation - PdfPageRotateAngle angle = page.Rotation; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get rotation - Dim angle As PdfPageRotateAngle = page.Rotation - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Gets the page orientation. - - - - - Returns the page template. - - - - - Gets the page fields count. - - - - - Return true, when the page contains colored content. - - - - - Gets the wrapped element. - - - - - Represents a text information - - - - - Gets the text - - - - - Gets the bounds of the text - - - - - Gets the font name of the text. - - - - - Gets the font size of the text. - - - - - Gets the font style of the text. - - - - - Gets the font color of the text. - - - - - - - - The used to identify each page visually on the screen or in print. - - Page labels and page indices need not coincide: the indices are fixed, - running consecutively through the document starting from 0 for the first page, - but the labels can be specified in any way that is appropriate for the particular document. - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - - - - Converts style to a string. - - The style. - The PDF name value representing the specified style. - - - - Converts string to numbering style. - - The PDF name of the style. - The converted numbering style. - - - - Gets or sets the numbering style to be used for the numeric portion of each page label. - - The specifies numbering style of page labels. - - - - Gets or sets the label prefix for page labels. - - - - - Gets or sets the value of the numeric portion for the first page label in the range - - The number must be greater than or equal to 1 - - - - Gets the element. - - - - - - Represents parameters how to display the page in the presentation mode. - - - - //Create a new document - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition - Dim transition As New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - doc.PageSettings.Transition = transition - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - - - - Internal variable to store dictionary. - - - - - Internal variable to store transition style. - - - - - Internal value to store transtion duration. - - - - - Internal variable to store transition dimension. - - - - - Internal variable to store transition motion. - - - - - Internal variable to store transition motion. - - - - - Internal variable to store scale. - - - - - Internal variable to store page duration. - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Converts transition motion to string. - - The motion. - - - - - Converts transition dimension to string. - - The dimension. - - - - - Converts style to string. - - The style. - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Gets or sets the transition style to use when moving to this page from another - during a presentation. - - The , handles the various transition styles - - - - Gets or sets the duration of the transition effect, in seconds. - - The transition duration. - - - - Gets or sets the dimension in which the specified transition effect occurs. - - The handles the dimensions . - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the the direction of motion for the specified transition effect. - - The handles the various transition motions - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - The direction in which the specified transition effect moves, expressed in degrees counter - clockwise starting from a left-to-right direction. (This differs from the page object�s - Rotate property, which is measured clockwise from the top.) - - The handles the various directions - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the starting or ending scale at which the changes are drawn. - If Motion property specifies an inward transition, the scale of the changes drawn progresses - from Scale to 1.0 over the course of the transition. If Motion specifies an outward - transition, the scale of the changes drawn progresses from 1.0 to Scale over the course - of the transition. - - - This property has effect for Fly transition style only. - - The scale. - - - - Gets or sets The page�s display duration (also called its advance timing): the maximum - length of time, in seconds, that the page is displayed during presentations before - the viewer application automatically advances to the next page. By default, - the viewer does not advance automatically. - - The page duration. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets the element. - - - - - - Represents the collection of pages in a . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page. - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The section. - - - - Creates a new page and adds it into the collection. - - The new page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Adds a page into collection. - - The page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Create a new pdf page. - PdfPage page = new PdfPage(); - //Add the page into section. - document.Sections[0].Pages.Add(page); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Create a new pdf page. - Dim page As New PdfPage() - 'Add the page into section. - document.Sections(0).Pages.Add(page) - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Inserts a page at the specified index. - - The index of the page to be added. - The page to be added. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = new PdfPage(); - //Insert a page at specified index. - document.Sections[0].Pages.Insert(0, page); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As New PdfPage() - 'Insert a page at specified index. - document.Sections(0).Pages.Insert(0, page) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Returns the index of the specified page. - - The - Index of the page if the collection contains the specified page; otherwise, -1. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = new PdfPage(); - //Get index of the page from Pdf section page collections. - int index = document.Sections[0].Pages.IndexOf(page); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As PdfPage = New PdfPage() - 'Get index of the page from Pdf section page collections. - Dim index As Integer = document.Sections(0).Pages.IndexOf(page) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Determines whether the specified page is within the collection. - - The - - true if the collection contains the specified page; otherwise, false. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add page to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add page to the section1. - PdfPage page1 = section1.Pages.Add(); - //check whether the specified page is in collection. - bool isExists = document.Sections[0].Pages.Contains(page1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add page to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add page to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'check whether the specified page is in collection. - Dim isExists As Boolean = document.Sections(0).Pages.Contains(page1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Removes the specified page from collection. - - The page. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a page. - PdfPage page1 = section.Pages.Add(); - //Remove the page from Pdf section page collections. - document.Sections[0].Pages.Remove(page); - //Get page count, it will be one - int count = document.Sections[0].Pages.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a page. - Dim page1 As PdfPage = section.Pages.Add() - 'Remove the page from Pdf section page collections. - document.Sections(0).Pages.Remove(page) - 'Get page count, it will be one - Dim count As Integer = document.Sections(0).Pages.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Removes a page at the specified index. - - The index of the page to be removed. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Remove the page at specified index. - document.Sections[0].Pages.RemoveAt(0); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Remove the page at specified index. - document.Sections(0).Pages.RemoveAt(0) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Clears this collection. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add first page to the section. - PdfPage page = section.Pages.Add(); - //Add second page to the section. - PdfPage page1 = section.Pages.Add(); - //Clear all the pages from first section of pdf document. - document.Sections[0].Pages.Clear(); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add first page to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add second page to the section. - Dim page1 As PdfPage = section.Pages.Add() - 'Clear all the pages from first section of pdf document. - document.Sections(0).Pages.Clear() - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object - that can be used to iterate through the collection. - - - - - Gets the at the specified index. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page. - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the count of the pages. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the page count in a section. - int count = document.Sections[0].Pages.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the page count in a section. - Dim count As Integer = document.Sections(0).Pages.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - - - - Represents a page template for all the pages in the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Left settings. - - - - - Top settings. - - - - - Right settings. - - - - - Bottom settings. - - - - - Other templates settings - - - - - Creates a new object. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Left page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentLeftTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentLeftTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Top page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Right page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentRightTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentRightTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether parent Bottom page template should be used or not. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentBottomTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentBottomTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets or sets value indicating whether the parent stamp elements should be used or not. - - /// - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentStamps = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentStamps = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - A collection of stamps that are applied to the page templates. - - - It is used only on PdfPageTemplateElement. - - - - - Creates a new instance of the class. - - - - - Adds a stamp element to the collection. - - The used here to create stamp element. - The index of the stamp element. - - - - Creates a stamp element and adds it to the collection. - - X co-ordinate of the stamp. - Y co-ordinate of the stamp. - Width of the stamp. - Height of the stamp. - The created stamp element. - - - - Checks whether the stamp element exists in the collection. - - The used here to create stamp element. - True - if stamp element exists in the collection, False otherwise. - - - - Inserts a stamp element to the collection at the specified position. - - The index of the stamp in the collection. - The . - - - - Removes the stamp element from the collection. - - The . - - - - Removes a stamp element from the specified position in the collection. - - The index of the stamp in the collection. - - - - Clears the collection. - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Gets a stamp element by its index. - - The describes a page template object - - - - PdfPageTemplate enumerator. - - - - - Stamps collection - - - - - Current index of the enumerator. - - - - - Initializes a new instance of the class. - - The stanps collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The used to create layers in PDF document. - Layers refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers - - - - - Parent page of the layer. - - - - - Graphics context of the layer. - - - - - Content of the object. - - - - - Graphics state of the Graphics. - - - - - Indicates whether the layer should clip page template dimensions or not. - - - - - Indicates if the graphics stream was saved. - - - - - Local Variable to store the colorspace of the document. - - - - - Local Variable to store the layer id - - - - - Local Variable to store the name - - - - - Local Variable to set visiblity - - - - - Stores the print Option dictionary - - - - - Stores the usage dictionary - - - - - Indicates printing state - - - - - Indicates the current layer have end state or not. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store reference holder. - - - - - Internal variable to store layer - - - - - Indicates document of layer - - - - - Indicates to store list of pages used for same layer - - - - - Indicates list of graphics used by layer - - - - - Indicates collection of layer - - - - - Indicates if Sublayer is present. - - - - - indicates the poisition of sublayer - - - - - indicates variable to store sublayer of PDF layer - - - - - Indicates Lock State - - - - - internal variable to store locked array - - - - - Initializes a new instance of the - - - - - Initializes Graphics context of the layer. - - The page. - - - - Clears PdfLayer. - - - - - set visibilty of the layer - - layer visibility - - - - Set lock state for layer - - - - - - Set PrintState for layer - - - - - Catches BeforeSave of the content event. - - Sender of the event. - event arguments. - - - - Catches BeforeSave of the content event - - Sender of the event - event arguments - - - - Gets or sets the Reference holder. - - The reference holder. - - - - Gets or sets the dictionary. - - The dictionary. - - - - Get or set the Colorspace. - - - - - Gets or sets page of the layer. - - - - - Gets or sets the document of layer - - - - - Gets or sets the layerId - - - - - Gets or sets the layer - - - - - Gets or sets the name of the layer - - - - - Gets or sets the visible of the layer - - - - - Gets Graphics context of the layer, used to draw various graphical content on layer. - - The used to draw various graphical content - - - - Gets or sets printing state of the layer - - - - - Gets the collection of child - - The used to handle collection of - - - - Get or set lock state of layer - - - - - Gets the wrapped element. - - - - - The class provides methods and properties to handle the collections of - - - - - Indicates if Sublayer is present. - - - - - Stores the optional content dictionary - - - - - Indicates if the loaded layers have resource dictionary. - - - - - Helps to lock Adding layers to page in multi threading - - - - - Indicates document to create layer in PDF document - - - - - Indicates sublayer of layers in PDF layer - - - - - Indicates a dictionary to store all layer in PDF document - - - - - Initializes a new instance of the class - - - - - Initializes a new instance of the class - - - - - - - Initializes a new instance of the class - - - - - - Creates a new with name and Boolean flag to set the visibility of layer, - and adds it to the end of the collection. - - Layer Name. - Layer Visibility. - Created . - - - - Creates a new with name and adds it to the end of the collection. - - Layer Name. - Created . - - - - Add layer in list collection of PDFLayer - - - index of created layer - - - - Creates a Optional Content Properties and adds it to Catalog. - - Layer. - - - - Creates Usage Dictionary and adds it to OCG dictionary - - - - - - - Creates a pdf layer from loaded PDF document - - - - - - Move into the collection at specified index - - Index of the layer. - object. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Removes layer from the collection of Layer. - - object. - - - - Removes layer from the collection and remove graphical content, If removeGraphicalContent is true. - - object. - - - - Removes from the collection by its name. - If document have muliple layer with same name, it removes all PdfLayers from document. - - Name of the layer. - - - - Remove layer from its collection by its name and remove graphical content, If removeGraphicalContent is true - - - - - - - Removes layer by its index from collections - - Index of the layer. - - - - Removes layer by its index from collections and remove graphical content if removeGraphicalContent is true - - Index of the layer. - - - - Checks whether collection contains . - - object. - True - if collection contains layer, False otherwise. - - - - Checks whether collection contains by layer name. - - - True - if collection contains layer, False otherwise. - - - - Returns index of the in the collection if exists, -1 otherwise. - - object. - Returns index of the layer in the collection if exists, -1 otherwise. - - - - Clears layers from the . - - - - - Remove layer from document and remove graphics if remove content is true - - - - - - - Registers layer at specified index in layer collection - - Index of the layer in the collection. - Pdf layer. - - - - Read content stream from Page layer and set to document layer - - - - - Parsing layer - - - - - - Check and set layer visible - - - - - Check and set layer lock - - - - - Remove layer reference from OCGroup - - - - - - - Remove layer reference from usage application - - - - - - - Remove layer reference from Order - - - - - - - Remove layer reference from On and Off - - - - - - - - Remove layer reference from locked - - - - - - - Remove graphics content for PDF layer - - - - - Remove graphics content for Loaded PDF layer - - - - - Gets or sets by its index from - - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the title. - - The title of the bookmark. - - - - Gets the color. - - The color of the bookmark. - - - - Gets the text style. - - The style of bookmark text. - - - - Gets the next. - - The next bookmark to this bookmark. - - - - Gets the previos. - - The previous bookmark to this bookmark. - - - - Sets the color. - - The color. - - - - Sets the text style. - - The value. - - - - Gets the destination. - - The destination of bookmark. - - - - - - Gets or sets the outline title. - - The string value which contains title of the bookmark.> - The outline title is the text, - which appears in the outline tree as a tree node. - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.pdf"); - //Get all the bookmarks. - PdfBookmarkBase bookmarks = loadedDocument.Bookmarks; - //Get the first bookmark and set the properties of the bookmark. - PdfLoadedBookmark bookmark = bookmarks[0] as PdfLoadedBookmark; - bookmark.Destination = new PdfDestination(loadedDocument.Pages[1]); - bookmark.Color = Color.Green; - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Title = "Changed title"; - //Save the document - loadedDocument.Save("Output.pdf"); - //Close the document - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the bookmarks. - Dim bookmarks As PdfBookmarkBase = document.Bookmarks - 'Get the first bookmark and set the properties of the bookmark. - Dim bookmark As PdfLoadedBookmark = TryCast(bookmarks(0), PdfLoadedBookmark) - bookmark.Destination = New PdfDestination(loadedDocument.Pages(1)) - bookmark.Color = Color.Green - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Title = "Changed title" - 'Save the document - loadedDocument.Save("Output.pdf") - 'Close the document - loadedDocument.Close(True) - - - Class - Class - - - - - - Gets or sets the next outline object. - - The null value means that the object is the last outline. - - - - Gets or sets the previous outline object. - - The null value means that the object is the first outline. - - - - Gets the parent outline base. - - - - - Gets the sub items. - - - - - The class provides methods and properties to handle the collection of . - - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - //Set the sound annotation border. - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Gets the annotation collection. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Set the sound annotation border. - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - - Error constant message. - - - - - Error constant message. - - - - - Parent page of the collection. - - - - - Array of the annotations. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = new PdfAnnotationCollection(); - annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection() - annotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Initializes a new instance of the PdfAnnotationCollection class with the specified page. - - Page which collection is created for. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = new PdfAnnotationCollection(page); - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection(page) - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Adds a new annotation to the collection. - - The new annotation to be added to the collection. - The position of the annotation in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Removes all the annotations from the collection. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Clear the annotation collection. - annotationCollection.Clear(); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Clear the annotation collection. - annotationCollection.Clear() - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Determines whether a specified annotation is in the annotation collection. - - The annotation to search for. - True, if annotation is contained in collection. Otherwise - false. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - //Add the sound annotation to annotation collection. - annotationCollection.Add(soundAnnotation); - bool exist = annotationCollection.Contains(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - 'Add the sound annotation to annotation collection. - annotationCollection.Add(soundAnnotation) - Dim exist As Boolean = annotationCollection.Contains(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Searches the index of the specified annotation from the collection. - - The annotation to be searched. - Index of the element in the collection, if exists, or -1 if the element does not exist in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Get the index - int index = annotationCollection.IndexOf(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Get the index - Dim index As Integer = annotationCollection.IndexOf(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Inserts an annotation to the collection at the specified index. - - The index where to insert the element. - The annotation to be inserted in the collection. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Insert(0, soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Insert(0, soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - Removes the annotation at the specified index. - - The index of the element to be removed. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Removes a sound annotation at specified index. - annotationCollection.RemoveAt(0); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Removes a sound annotation at specified index. - annotationCollection.RemoveAt(0) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class. - Class. - - - - Removes the specified annotation from the collection. - - The annotation to be removed. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - //Remove a sound annotation. - annotationCollection.Remove(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - 'Remove a sound annotation. - annotationCollection.Remove(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - - - - prints the specified annotation. - - The annotation to be printed. - - - - Adds annotation to collection. - - Annotation to be added to collection. - Position of the annotation in collection. - - - - Inserts annotation to the collection at the specified position. - - Position. - Annotation object. - - - - Removes annotation from collection. - - Annotation to be removed. - - - - Removes item from collection at the specified index. - - Index of element to be removed. - - - - Adds a Annotation to collection. - - The Annotation. - - - - - Inserts a annotation into collection. - - The index. - The annotation. - - - - Clears the collection. - - - - - Removes the annotation at the specified position. - - The index. - - - - Removes the annotation. - - - - - - Gets the object at the specified index. Read-Only. - - The specifies the attachment at the specified position. - The index value of the annotation in the collection. - The annotation object at the specified position. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Add this annotation to a new page. - PdfAnnotationCollection annotationCollection = page.Annotations; - annotationCollection.Add(soundAnnotation); - PdfAnnotation annotation = annotationCollection[0] as PdfAnnotation; - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Add this annotation to a new page. - Dim annotationCollection As PdfAnnotationCollection = page.Annotations - annotationCollection.Add(soundAnnotation) - Dim annotation As PdfAnnotation = TryCast(annotationCollection(0), PdfAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class. - Class. - Class. - - - - Gets the annotations array. - - The annotations. - - - - Gets PDF primitive representing this object. - - - - - Loaded page, wich collection belongs to. - - - - - Indicates annotation is flatten or not. - - - - - Initializes a new instance of the class. - - The page. - - - - NameChanged evant handler. - - New Name of the annotation. - - - - Adds annotation to the collection. - - Annotation to be added to collection. - Position of the annotation in collection. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection = document.Pages[0].Annotations; - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - annotationCollection.Add(uriAnnotation); - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As PdfUriAnnotation = New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set the Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - annotationCollection.Add(uriAnnotation) - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Adds a annotation to collection. - - The annotation. - - - - - Gets the new name of the annotation. - - The name. - The annotation name. - - - - Check whether the annotation with the same name already exists. - - The name. - - true if there are no annotation with the same name within the collection; - otherwise false. - - - - - Gets the index of the annotation. - - The name. - The index of the annotation. - - - - Gets the annotation. - - The index. - The created annotation. - - - - Gets the type of the annotation. - - The name. - The dictionary. - The cross table. - The annotation type. - - - - Create file remotegoto link annotation - - - - - - - The created file remotegoto link annotation - - - - Creates the text web link annotation. - - The dictionary. - The cross table. - The created file link annotation. - - - - Creates the file link annotation. - - The dictionary. - The cross table. - The created file link annotation. - - - - Creates the document link annotation. - - The dictionary. - The cross table. - The created widget annotation. - - - - Creates the widget annotation. - - - - - The created the widget annotation. - - - - Creates the Ink annotation. - - - - - Created the Ink annotation. - - - - Creates the watermark annotation. - - The dictionary. - The cross table. - The created watermark annotation. - - - - Creates the Trap Network Annotation. - - The dictionary. - The cross table. - The created Trap Network Annotation. - - - - Creates the Text Markup Annotation. - - The dictionary. - The cross table. - The created Text Markup Annotation. - - - - Creates the Text Annotation. - - The dictionary. - The cross table. - The created Text Annotation. - - - - Creates the Square and Circle Annotation. - - The dictionary. - The cross table. - The created Square and Circle Annotation. - - - - Creates the Sound Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created Sound Annotation. - - - - Creates the Screen Annotation. - - The dictionary. - The cross table. - The created Screen Annotation. - - - - Creates the Rubber Stamp Annotation. - - The dictionary. - The cross table. - The created Rubber Stamp Annotation. - - - - Creates the Printer Mark Annotation. - - The dictionary. - The cross table. - The created Printer Mark Annotation. - - - - Creates the Popup Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Popup Annotation. - - - - Creates the Polygon and Polyline Annotation. - - The dictionary. - The cross table. - The created Polygon and Polyline Annotation. - - - - Creates the Movie Annotation. - - The dictionary. - The cross table. - The created Movie Annotation. - - - - Creates the Markup Annotation. - - The dictionary. - The cross table. - The RectangleF. - The created Markup Annotation. - - - - Creates the Lnk Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created Lnk Annotation. - - - - Creates the Link Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Link Annotation. - - - - Creates the Line Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Line Annotation. - - - - Creates the Circle Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Circle Annotation. - - - - Creates the Ellipse Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Ellipse Annotation. - - - - Creates the Square Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Square Annotation. - - - - Creates the Rectangle Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Rectangle Annotation. - - - - Creates the Polygon Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created Polygon Annotation. - - - - Creates the PolyLine Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Text. - The created PolyLine Annotation. - - - - Creates the Free Text Annotation. - - The dictionary. - The cross table. - The created Free Text Annotation. - - - - Creates the File Attachment Annotation. - - The dictionary. - The cross table. - The RectangleF. - The Filename. - The created File Attachment Annotation. - - - - Creates the Caret Annotation. - - The dictionary. - The cross table. - The created Caret Annotation. - - - - Creates the Annotation States. - - The dictionary. - The cross table. - The created Annotation States. - - - - Inserts a annotation into collection. - - The index. - The annotation. - - - - Clears the collection. - - - - - Removes the annotation at the specified position. - - The index. - - - - Removes the annotation from collection. - - The annotation. - - - - Find the annotation from collection. - - The annotation. - - - - Gets the at the specified index. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the PDF sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - //Set the sound annotation border - soundAnnotation.Border.Width = 4; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation from loaded document. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Set the sound annotation border. - soundAnnotation.Border.Width = 4 - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets the using specified annotation name. - - The specified annotation name. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection. - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the pfd sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection["SoundAnnotation"] as PdfLoadedSoundAnnotation; - //Set the sound annotation border - soundAnnotation.Border.Width = 4; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection. - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the pfd sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection("SoundAnnotation") - 'Set the sound annotation border - soundAnnotation.Border.Width = 4 - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets and sets the where the annotation is present. - - The of the existing PDF document - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Get the PDF sound annotation. - PdfLoadedSoundAnnotation soundAnnotation = annotationCollection[5] as PdfLoadedSoundAnnotation; - 'Get the sound PDF loaded page. - PdfLoadedPage page =soundAnnotation.Page; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Get the PDF sound annotation. - Dim soundAnnotation As PdfLoadedSoundAnnotation = dannotationCollection(5) - 'Get the PDF loaded page. - Dim page As PdfLoadedPage=soundAnnotation.Page - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the boolean flag to flatten the annotations. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"Annotations.pdf"); - //Get the annotation collection - PdfLoadedAnnotationCollection annotationCollection=document.Pages[0].Annotations; - //Set flatten. - annotationCollection.Flatten = true; - //Save the document. - document.Save("output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("Annotations.pdf") - 'Get the annotation collection - Dim annotationCollection As PdfLoadedAnnotationCollection = document.Pages(0).Annotations - 'Set flatten. - annotationCollection.Flatten = True - 'Save the document. - document.Save("output.pdf") - document.Close(True) - - - - - - The represents the attachment annotation loaded from the existing PDF document, it provides methods and properties to modify the attachment. - - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Get the attachment annotation border. - PdfAnnotationBorder border = attchmentAnnotation.Border; - //Save the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = document.Pages(1).Annotations(3) as PdfLoadedAttachmentAnnotation - 'Get the annotation flags - Dim flag As PdfAnnotationFlags = attchmentAnnotation.AnnotationFlags - 'Get the attachment annotation border. - Dim border As PdfAnnotationBorder = attchmentAnnotation.Border - 'Save the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the Icon - - - - - Gets or sets the icon of the attachment annotation. - - The used to set the icon to the attachment annotation - - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - attchmentAnnotation.Icon=PdfAttachmentIcon.PushPin; - //Save the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = document.Pages(1).Annotations(3) as PdfLoadedAttachmentAnnotation - attchmentAnnotation.Icon=PdfAttachmentIcon.PushPin - 'Save the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - The name of the file to be attached. - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the attached file name - string fileName = attchmentAnnotation.FileName; - //Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = TryCast(document.Pages(1).Annotations(3), PdfLoadedAttachmentAnnotation) - 'Get the attached file name - Dim fileName As String = attchmentAnnotation.FileName - 'Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - Get the data bytes from the attached file. - - The array of data bytes of the attached file - /// - - //Load an existing PDF document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Get the annotation from loaded document. - PdfLoadedAttachmentAnnotation attchmentAnnotation = document.Pages[1].Annotations[3] as PdfLoadedAttachmentAnnotation; - //Get the attached file name - string fileName = attchmentAnnotation.FileName; - //Get the array of data bytes of the attached file. - byte[] data = attchmentAnnotation.Data; - //Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf"); - document.Close(true); - - - 'Load an existing PDF document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Get the annotation from loaded document. - Dim attchmentAnnotation As PdfLoadedAttachmentAnnotation = TryCast(document.Pages(1).Annotations(3), PdfLoadedAttachmentAnnotation) - 'Get the attached file name - Dim fileName As String = attchmentAnnotation.FileName - 'Get the array of data bytes of the attached file. - Dim data As Byte() = attchmentAnnotation.Data - 'Save and close the document. - document.Save("LoadedAttachmentAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded document link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags; - //Sets the PDF destination. - documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10)); - //Gets the document link annotation border. - PdfAnnotationBorder border = documentLinkAnnotation.Border; - //Gets the document link annotation bounds. - RectangleF rectangle = documentLinkAnnotation.Bounds; - //Gets the document link annotation color. - PdfColor color = documentLinkAnnotation.Color; - //Gets the document link annotation location. - PointF point = documentLinkAnnotation.Location; - //Gets the document link annotation size. - SizeF size = documentLinkAnnotation.Size; - //Gets the document link annotation text. - string text = documentLinkAnnotation.Text; - //Save the document. - document.Save("documentLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation - 'Sets the destination. - documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10)); - 'Gets the annotation flags - Dim flag As PdfAnnotationFlags = documentLinkAnnotation.AnnotationFlags - 'Gets the document link annotation border. - Dim border As PdfAnnotationBorder = documentLinkAnnotation.Border - 'Gets the document link annotation bounds. - Dim rectangle As RectangleF = documentLinkAnnotation.Bounds - 'Gets the document link annotation color. - Dim color As PdfColor = documentLinkAnnotation.Color - 'Gets the document link annotation location. - Dim point As PointF = documentLinkAnnotation.Location - 'Gets the document link annotation size. - Dim size As SizeF = documentLinkAnnotation.Size - 'Gets the document link annotation text. - Dim text As string = documentLinkAnnotation.Text - 'Save the document. - document.Save("documentLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Cross Table - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - - - - Gets the destination of the document link annotation - - The provides destination page and bounds - - - - Sets the destination of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedDocumentLinkAnnotation documentLinkAnnotation = document.Pages[1].Annotations[4] as PdfLoadedDocumentLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = documentLinkAnnotation.AnnotationFlags; - //Sets the destination. - documentLinkAnnotation.Destination = new PdfDestination(document.Pages[0], new PointF(10, 10)); - //Save the document. - document.Save("documentLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim documentLinkAnnotation As PdfLoadedDocumentLinkAnnotation = document.Pages(1).Annotations(4) as PdfLoadedDocumentLinkAnnotation - 'Sets the destination. - documentLinkAnnotation.Destination = New PdfDestination(document.Pages[0], New PointF(10, 10)); - 'Save the document. - document.Save("documentLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the loaded file link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - //Gets the file link annotation border. - PdfAnnotationBorder border = fileLinkAnnotation.Border; - //Gets the file link annotation bounds. - RectangleF rectangle = fileLinkAnnotation.Bounds; - //Gets the file link annotation bounds. - PdfColor color = fileLinkAnnotation.Color; - //Gets the file link annotation location. - PointF point = fileLinkAnnotation.Location; - //Gets the file link annotation size. - SizeF size = fileLinkAnnotation.Size; - //Gets the file link annotation text. - string text = fileLinkAnnotation.Text; - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file name. - fileLinkAnnotation.FileName = "..\..\Data\Manual.txt" - 'Gets the annotation flags - Dim flag As PdfAnnotationFlags = fileLinkAnnotation.AnnotationFlags - 'Gets the file link annotation border. - Dim border As PdfAnnotationBorder = fileLinkAnnotation.Border - 'Gets the file link annotation bounds. - Dim rectangle As RectangleF = fileLinkAnnotation.Bounds - 'Gets the file link annotation bounds. - Dim color As PdfColor = fileLinkAnnotation.Color - 'Gets the file link annotation location. - Dim point As PointF = fileLinkAnnotation.Location - 'Gets the file link annotation size. - Dim size As SizeF = fileLinkAnnotation.Size - 'Gets the file link annotation text. - Dim text As string = fileLinkAnnotation.Text - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Interger array of destination - - - - - CrossTable - - - - - Action of the page - - - - - Destination array - - - - - Gets the filename. - - File name - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The File name - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The destination - The rectangle - The File name - - - - Gets the destination array - - integer destination array - - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation fileLinkAnnotation = document.Pages[1].Annotations[6] as PdfLoadedFileLinkAnnotation; - //Gets the annotation flags - PdfAnnotationFlags flag = attchmentAnnotation.AnnotationFlags; - //Sets the file name. - fileLinkAnnotation.FileName = @"..\..\Data\Manual.txt"; - //Gets the file link annotation border. - //Save the document. - document.Save("fileLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim fileLinkAnnotation As PdfLoadedFileLinkAnnotation = document.Pages(1).Annotations(6) as PdfLoadedFileLinkAnnotation - 'Sets the file name. - fileLinkAnnotation.FileName = "..\..\Data\Manual.txt" - 'Save the document. - document.Save("fileLinkAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the destination of the filelinkannotation. - - - - - Gets or sets the destination array of the annotation, the destination array contains page number and positions. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedFileLinkAnnotation linkAnnotation = lDoc.Pages[1].Annotations[2] as PdfLoadedFileLinkAnnotation; - //Assign DestinationArray[pagenumber,xaxis,yaxis] - int[] array = new int[3] { 2, 750, 0 }; - linkAnnotation.DestinationArray = array; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim linkAnnotation As PdfLoadedFileLinkAnnotation = lDoc.Pages(1).Annotations(2) as PdfLoadedFileLinkAnnotation - 'Assign DestinationArray[pagenumber,xaxis,yaxis] - Dim array As Integer() = New Integer(2) {2, 750, 0} - linkAnnotation.DestinationArray = array - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded document PdfFreeText annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing Page on document - PdfLoadedPage lPage = document.Pages[0] as PdfLoadedPage; - //load the annotation collection on this page - PdfLoadedAnnotationCollection collection = lPage.Annotations; - //Get the Annotation from the loaded page - PdfLoadedFreeTextAnnotation free = collection[0] as PdfLoadedFreeTextAnnotation; - //Get the Annotation position - RectangleF rectangle = free.Bounds; - //Set a new position - free.Bounds = new RectangleF(200, 100, 150, 50); - //Set Annotation Border - free.Border= new PdfAnnotationBorder(3f); - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing Page on document - Dim lPage As PdfLoadedPage = document.Pages(0) - 'load the annotation collection on this page - Dim collection As PdfLoadedAnnotationCollection = lPage.Annotations - 'Get the Annotation from the loaded page - Dim free As PdfLoadedFreeTextAnnotation = collection(0) - 'Get the Annotation position - Dim rectangle As RectangleF = free.Bounds - 'Set a new position - free.Bounds = new RectangleF(200, 100, 150, 50) - 'Set Annotation Border - free.Border= new PdfAnnotationBorder(3f) - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Saves an annotation. - - - - - //Get or set the Line Ending style for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the line ending style - PdfLineEndingStyle style = free.LineEndingStyle; - //Set the line ending style - free.LineEndingStyle = PdfLineEndingStyle.OpenArrow; - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the line ending style - Dim style As PdfLineEndingStyle = free.LineEndingStyle - 'Set the line ending style - free.LineEndingStyle = PdfLineEndingStyle.OpenArrow - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the MarkUp text for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the MarkUpText - string text= free.MarkUpText; - //Set the MarkUpText - free.MarkUpText = "This is Free Text Annotation"; - //save the document - document.Save("FreetextAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the MarkUpText - Dim text As string = free.MarkUpText - 'Set the MarkUpText - free.MarkUpText = "This is Free Text Annotation" - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the Annotation Intent for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the PdfAnnotation Intent - PdfAnnotationIntent intent = free.AnnotationIntent; - //Set the PdfAnnotation Intent - free.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the PdfAnnotation Intent - Dim intent As PdfAnnotationIntent = free.AnnotationIntent - 'Set the PdfAnnotation Intent - free.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - //Get or set the Font for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the Font - PdfFont font = free.Font; - //Set the Font - free.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 15f); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the Font - Dim font As PdfFont = free.Font - 'Set the Font - free.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 15f) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - //Get or set the TextMarkupColor for the free text annotation - - The text markup color of the free text annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the TextMarkupColor - PdfColor markupColor = free.TextMarkupColor; - //Set the TextMarkupColor - free.TextMarkupColor = new PdfColor(Color.Red); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) as PdfLoadedFreeTextAnnotation - 'Get the TextMarkupColor - Dim markupColor As PdfColor = free.TextMarkupColor - 'Set the TextMarkupColor - free.TextMarkupColor = new PdfColor(Color.Red) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - //Get or set the CelloutLines for the free text annotation - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the CelloutLines - PointF[] celloutLines = free.CalloutLines; - //Set the CelloutLines - free.CalloutLines = new PointF[] { new PointF(107.234f, 550.15f), new PointF(130.023f, 811.707f), new PointF(142.023f, 811.707f) }; - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the document - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) as PdfLoadedFreeTextAnnotation - 'Get the CelloutLines - Dim celloutLines As PointF() = free.CalloutLines - 'Set the CelloutLines - free.CalloutLines = New PointF() {New PointF(107.234F, 550.15F), New PointF(130.023F, 811.707F), New PointF(142.023F, 811.707F)} - 'save the document - document.Save("FreetextAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - //Get or set the BorderColor for the free text annotation - - The border color of the free text annotation. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Load the existing PdfFreeTextAnnotation - PdfLoadedFreeTextAnnotation free = document.Pages[0].Annotations[0] as PdfLoadedFreeTextAnnotation; - //Get the BorderColor - PdfColor borderColor = free.BorderColor; - //Set the BorderColor - free.BorderColor = new PdfColor(Color.Blue); - //save the document - document.Save("FreetextAnnotation.pdf"); - //Close the docuemnt - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Load the existing PdfFreeTextAnnotation - Dim free As PdfLoadedFreeTextAnnotation = document.Pages(0).Annotations(0) - 'Get the BorderColor - Dim borderColor As PdfColor = free.BorderColor - 'Set the BorderColor - free.BorderColor = new PdfColor(Color.Blue) - 'save the document - document.Save("FreetextAnnotation.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Represent Loaded ink annotation, Ink annotation represents freehand scribble comprising one or more disjoint paths. - - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - inkAnnotation.Color = new PdfColor(Color.Red); - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - inkAnnotation.Color = New PdfColor(Color.Red) - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Cross table - - - - - Indicate the path of the ink annotation - - - - - Indicate multiple path of the ink annotation - - - - - Internal variable to store Border Dash. - - - - - border width - - - - - Indicate the border Dictionary - - - - - Indicat the border style - - - - - Initializes a new instance of the class - - The Dictionary - The Crosstable - the Rectangle - - - - Get the Path of the Ink annotation - - the line InkList - - - - Get the Path collection of the Ink annotation - - the line InkList - - - - Get the border width - - The border width - - - - Get the border dtyle - - The Line border style - - - - get the Line style - - - The line Style - - - - Get the Dash array value - - The dashArray - - - - Saves an annotation. - - - - - Calculates control points for all the path points input given by Beizer spline curve control points calculation. - - - - - Calculates single control point for the vector input given. - - - - - - Gets or sets mutiple points of the InkList value. - - - - - Get or sets the border width of the ink annotation. - - The default value of border width is 1. - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - get or sets the border style of the ink annotation, default value is PdfLineBorderStyle.Solid - - The , provides various type of borders - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the value for dashed border of ink annotation. - - - - //Load a PDF document. - PdfLoadedDocument document = new PdfLoadedDocument("InkAnnot.pdf"); - //Load a page - PdfLoadedPage page = document.Pages[0] as PdfLoadedPage; - //Load a ink annotation - PdfLoadedInkAnnotation inkAnnotation = page.Annotations[2] as PdfLoadedInkAnnotation; - List(float) linePoints = new List(float) { 40, 300, 60, 100, 40, 50, 40, 300 }; - //Set the line points - inkAnnotation.InkList = linePoints; - //Set the color of the annotation. - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3; - //Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Set the value for dash border of the annotation - inkAnnotation.DashArray = new int[] { 2, 2 }; - //Save the document to disk. - document.Save("InkAnnot.pdf"); - document.Close(true); - - - 'Load a PDF document. - Dim document As New PdfLoadedDocument("InkAnnot.pdf") - 'Load a page - Dim page As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Load a ink annotation - Dim inkAnnotation As PdfLoadedInkAnnotation = TryCast(page.Annotations(2), PdfLoadedInkAnnotation) - Dim linePoints As New List(Of Single)() From {40, 300, 60, 100, 40, 50, 40,300} - 'Set the line points - inkAnnotation.InkList = linePoints - 'Set the color of the annotation. - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the Border width of the annotation. - inkAnnotation.BorderWidth = 3 - 'Set the border style - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Set the value for dash border of the annotation - inkAnnotation.DashArray = New Integer() {2, 2} - 'Save the document to disk. - document.Save("InkAnnot.pdf") - document.Close(True) - - - Class - Class - - - - Represents the loaded line annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - int[] points = new int[] { 100, 100, 200, 100 }; - //Create a new PDF line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.DashArray = 1; - lineBorder.BorderWidth =3; - lineBorder.DashArray = 8; - //Sets the line border. - lineAnnotation.LineBorder = lineBorder; - //Sets the line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash; - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle; - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Locked; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Blue); - lineAnnotation.BackColor = new PdfColor(Color.Red); - //Assign the leader line - lineAnnotation.LeaderExt = 20; - lineAnnotation.LeaderLine = 20; - lineAnnotation.Size = new SizeF(100, 200); - //Assign the line caption - lineAnnotation.LineCaption = true; - lineAnnotation.Text = "Syncfusion"; - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - Dim points As Integer() = { 100, 100, 200, 100 } - 'Create a new pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.DashArray = 1 - lineBorder.BorderWidth = 3 - lineBorder.DashArray = 8 - 'Sets the line border - lineAnnotation.LineBorder = lineBorder - 'Sets the line indent - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle - lineAnnotation.AnnotationFlags = PdfAnnotationFlags.Locked - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Blue) - lineAnnotation.BackColor = New PdfColor(Color.Red) - 'Assign the leader line - lineAnnotation.LeaderExt = 20 - lineAnnotation.LeaderLine = 20 - lineAnnotation.Size = New SizeF(100, 200) - 'Assign the line caption - lineAnnotation.LineCaption = True - lineAnnotation.Text = "Syncfusion" - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Cross Table - - - - - Indicates the back color. - - - - - Indicates the line border. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the line intent of the annotation. - - The line intent. - - - - Gets line style of the annotation. - - The line style. - - - - Gets line style of the annotation. - - choice - The line style. - - - - Gets line style of the annotation. - - Type of line style - The line style. - - - - Get the inner line color - - - - - Gets back color of the annotation. - - The back color. - - - - Gets caption type of the annotation. - - The caption type. - - - - Gets caption type of the annotation. - - caption type - The caption type. - - - - Gets line caption of the annotation. - - The line caption. - - - - Gets leader line of the annotation. - - The leader line. - - - - Gets leader ext of the annotation. - - The leader ext. - - - - Gets line border of the annotation. - - The line border. - - - - Gets line points of the annotation. - - Line Points - The Line Points. - - - - Gets border style of the annotation. - - border style - The border style. - - - - - Saves an annotation . - - - - - Gets or sets the back color of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the line annotation back color. - lineAnnotation.BackColor = new PdfColor(Color.Red); - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the line annotation back color - lineAnnotation.BackColor = New PdfColor(Color.Red) - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the begin line style of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line ending style - lineAnnotation.BeginLineStyle = PdfLineEndingStyle.Slash - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the caption type of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the end line style of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line ending style - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line ending style - lineAnnotation.EndLineStyle = PdfLineEndingStyle.Circle - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the inner line color of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line color - lineAnnotation.InnerLineColor = new PdfColor(Color.Blue); - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line color - lineAnnotation.InnerLineColor = New PdfColor(Color.Blue) - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the leader line of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Sets the leader line. - lineAnnotation.LeaderLine = 20; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Sets the leader line. - lineAnnotation.LeaderLine = 20 - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the leader ext of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the leader line - lineAnnotation.LeaderExt = 20; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the leader line - lineAnnotation.LeaderExt = 20 - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets the line border of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Create a new pdf line border. - LineBorder lineBorder = new LineBorder(); - lineBorder.BorderStyle = PdfBorderStyle.Solid; - lineBorder.DashArray = 1; - lineBorder.BorderWidth =3; - lineBorder.DashArray = 8; - lineAnnotation.LineBorder = lineBorder; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Create a new pdf line border. - Dim lineBorder As New LineBorder() - lineBorder.BorderStyle = PdfBorderStyle.Solid - lineBorder.DashArray = 1 - lineBorder.BorderWidth = 3 - lineBorder.DashArray = 8 - lineAnnotation.LineBorder = lineBorder - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True); - - - Class - Class - - - - Gets or sets the line points of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Get the line points - int[] linePoints = lineAnnotation.LinePoints; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Get the line points - Dim linePoints As Integer() = lineAnnotation.LinePoints - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the line caption of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - //Assign the line caption - lineAnnotation.LineCaption = true; - lineAnnotation.CaptionType = PdfLineCaptionType.Top; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - 'Assign the line caption - lineAnnotation.LineCaption = True - lineAnnotation.CaptionType = PdfLineCaptionType.Top - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Gets or sets the line intent of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedLineAnnotation lineAnnotation = document.Pages[1].Annotations[5] as PdfLoadedLineAnnotation; - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Save the document. - document.Save("lineAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim lineAnnotation As PdfLoadedLineAnnotation = document.Pages(1).Annotations(5) - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Save the document. - document.Save("lineAnnotation.pdf") - document.Close(True) - - - Class - Class - - - - Represents the loaded pop up annotation class. - - This class is used to load the pop up annotation from the PDF document. Please refer the UG docuemntation link for more details. - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Sets the popup annotation border - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the popup icon - popupAnnotation.Icon = PdfPopupIcon.Key; - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Sets the popup annotation border - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the popup icon - popupAnnotation.Icon = PdfPopupIcon.Key - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CroosTable - - - - - Indicates the open the popup window or not. - - - - - Indicates the icon name. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the boolean value ( if it's true popup window is opened otherwise closed. - - - - - - Gets the popup icon type. - - - - - - Gets the popup icon name - - Icon name - Icon type - - - - Set the popup comment window bounds - - The bounds of the popup comment window. - - - - Gets or sets the open option of the popup annotation. - - if true open,otherwise not open - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Set the popup annotation open option - popupAnnotation.Open = true - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Set the popup annotation open option - popupAnnotation.Open = True - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the icon of the annotation. - - - The , provides icons to the annotation - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedPopupAnnotation popupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedPopupAnnotation; - //Set the PDF popup icon - popupAnnotation.Icon = PdfPopupIcon.Key; - //Save the document. - document.Save("popupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedPopupAnnotation = document.Pages(1).Annotations(5) - 'Set the PDF popup icon - popupAnnotation.Icon = PdfPopupIcon.Key - 'Save the document. - document.Save("popupAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded rubber stamp annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Sets the rubber stamp annotation border - rubberStampAnnotation.Border.Width = 4; - rubberStampAnnotation.Border.HorizontalRadius = 20; - rubberStampAnnotation.Border.VerticalRadius = 30; - //Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - document.Save("RubberStampAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation - 'Sets the rubber stamp annotation border - rubberStampAnnotation.Border.Width = 4 - rubberStampAnnotation.Border.HorizontalRadius = 20 - rubberStampAnnotation.Border.VerticalRadius = 30 - 'Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - document.Save("RubberStampAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Crosstable - - - - - Rubber and Stamp Annotation name. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the popup icon type. - - - - - - Gets the popup icon name - - Icon name - Icon type - - - - Gets or sets the icon of the annotation. - - The used to set icon to the rubber stamp annotation - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = document.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - document.Save("RubberStampAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim popupAnnotation As PdfLoadedRubberStampAnnotation = document.Pages(1).Annotations(5) as PdfLoadedRubberStampAnnotation - 'Set the PDF rubber stamp annotation icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - document.Save("RubberStampAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded sound annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the sound annotation border - soundAnnotation.Border.Width = 4; - soundAnnotation.Border.HorizontalRadius = 20; - soundAnnotation.Border.VerticalRadius = 30; - //Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Sets the sound annotation border - soundAnnotation.Border.Width = 4 - soundAnnotation.Border.HorizontalRadius = 20 - soundAnnotation.Border.VerticalRadius = 30 - 'Set the PDF sound annotation icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Internal variable to store sound. - - - - - Dictionary - - - - - Indicates the sound icon of the annotation. - - - - - Indicates the appearance of the annotation. - - - - - Gets the filename. - - File name - - - - Gets the sound annotation icon. - - Sound annotation icon - - - - Gets the icon name - - Icon type - Sound icon - - - - Gets the sound file. - - Sound file - - - - Gets the sound annottation encoding type - - Encoding type - Encoding type - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The filename - - - - Gets or sets the sound of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Sets the PDF sound. - PdfSound sound = new PdfSound("Startup.wav"); - soundAnnotation.Sound=sound; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - Sets the PDF sound. - Dim sound As PdfSound = New PdfSound("Startup.wav") - soundAnnotation.Sound=sound - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True) - - - - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - 'Gets the file name - string filename =soundAnnotation.FileName; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Gets the file name - Dim filename As String=soundAnnotation.FileName - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True); - - - - - - Gets or sets the icon of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedSoundAnnotation soundAnnotation = document.Pages[1].Annotations[5] as PdfLoadedSoundAnnotation; - //Set the pdfsound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Save the document. - document.Save("SoundAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim soundAnnotation As PdfLoadedSoundAnnotation = document.Pages(1).Annotations(5) as PdfLoadedSoundAnnotation - 'Set the pdfsound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Save the document. - document.Save("SoundAnnotation.pdf") - document.Close(True); - - - - - - Represents the loaded text markup annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - //Sets the text markup color - textMarkupAnnotation.TextMarkupColor=new PdfColor(Color.Blue); - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - 'Sets the text markup color - textMarkupAnnotation.TextMarkupColor=New PdfColor(Color.Blue) - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Dictionary - - - - - Type of the annotation - - - - - Indicates the color. - - - - - To indicate collection of rectagle bounds of annotation - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - - - - Sets the name of the field. - - New name of the field. - - - - Gets back color of the annotation. - - The back color. - - - - Saves an annotation . - - - - - Gets or sets the markup annotation Type. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the PDF text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType=PdfTextMarkupAnnotationType.Highlight - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets the markup color - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the text markup color - textMarkupAnnotation.TextMarkupColor=new PdfColor(Color.Blue); - //Save the document. - document.Save("TextMarkupAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextMarkupAnnotation - 'Sets the text markup color - textMarkupAnnotation.TextMarkupColor=New PdfColor(Color.Blue) - 'Save the document. - document.Save("TextMarkupAnnotation.pdf") - document.Close(True) - - - - - - Gets or sets text markup bounds collection. - - - - - Represents the loaded text web link annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextWebLinkAnnotation textWeblinkAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextWebLinkAnnotation; - //Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("TextWebLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textWeblinkAnnotation As PdfLoadedTextWebLinkAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextWebLinkAnnotation - 'Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("TextWebLinkAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Crosstable - - - - - Gets the web link. - - Web link - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets or sets the Url. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextWebLinkAnnotation textWeblinkAnnotation = document.Pages[1].Annotations[5] as PdfLoadedTextWebLinkAnnotation; - //Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("TextWebLinkAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim textWeblinkAnnotation As PdfLoadedTextWebLinkAnnotation = document.Pages(1).Annotations(5) as PdfLoadedTextWebLinkAnnotation - 'Sets the text web link annotation URI - textWeblinkAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("TextWebLinkAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded unique resource identifier annotation class. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedUriAnnotation UriAnnotation = document.Pages[1].Annotations[5] as PdfLoadedUriAnnotation; - //Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("UriAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim UriAnnotation As PdfLoadedUriAnnotation = document.Pages(1).Annotations(5) as PdfLoadedUriAnnotation - 'Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("UriAnnotation.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - CrossTable - - - - - Indicates the unique resource identifier text. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - Gets the unique resource identifier text - - The unique resource identifier text - - - - Gets or sets the unique resource identifier text of the annotation. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument(@"..\..\Annotations.pdf"); - //Gets the annotation from loaded document. - PdfLoadedUriAnnotation UriAnnotation = document.Pages[1].Annotations[5] as PdfLoadedUriAnnotation; - //Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com"; - //Save the document. - document.Save("UriAnnotation.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As New PdfLoadedDocument("..\..\Annotations.pdf") - 'Gets the annotation from loaded document. - Dim UriAnnotation As PdfLoadedUriAnnotation = document.Pages(1).Annotations(5) as PdfLoadedUriAnnotation - 'Sets the uri annotation URI - UriAnnotation.Url="http://www.syncfusion.com" - 'Save the document. - document.Save("UriAnnotation.pdf") - document.Close(True) - - - - - - Represents the loaded web link annotation class. - - - - - CrossTable - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - The rectangle - The text - - - - The class used to represent a loaded widget annotations - - - - - Internal cross table - - - - - Internal Annotation flags - - - - - Internal variable to store extended appearance. - - - - - Internal variable to store border parameters. - - - - - Internal variable to store appearance of the widget. - - - - - Internal variable to store highlighting mode. - - - - - Internal variable to store default appearance. - - - - - Internal variable to store annotation's actions. - - - - - Annotation's appearance. - - - - - Internal variable to store alignment. - - - - - Internal variable to store default appearance state value. - - - - - Initializes a new instance of the class. - - - - - - - - Highlightings the mode to string. - - The m_highlighting mode. - String representation of the highlighting mode in Pdf suiatable format. - - - - Gets or sets the extended appearance. - - The represents extended appearance of the annotation - - - - Gets or sets the highlighting mode. - - The . - - - - Gets or sets the text alignment. - - The provides alignments of a text. - - - - Gets the actions of the annotation. - - The provides various actions. - - - - Gets or sets appearance of the annotation. - - - - - Gets or sets default appearance name. - - The state of the appearance. - - - - Represents a button field of an existing PDF document. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - buttonField.ToolTip = "SubmitButton"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - buttonField.ToolTip = "SubmitButton" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents loaded styled field. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Represents base class for loaded fields. - - - - //Create a new document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form fields - foreach (PdfLoadedField field in doc.Form.Fields) - { - // Flatten the form - field.Flatten = true; - } - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form fields - For Each field As PdfLoadedField In doc.Form.Fields - ' Flatten the form - field.Flatten = True - Next field - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Form field identifier - - - - - Cross Table. - - - - - Indicates was field changed or not. - - - - - Represents index used to default annotation. - - - - - Represent's the field name. - - - - - Represent's the field page. - - - - - Internal variable to store form. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the name of the field. - - New name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets new name of the first field - field.SetName("fieldFirstName"); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets new name of the first field - field.SetName("fieldFirstName") - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Searches the in parents. - - The dictionary. - The cross table. - The value. - Searched primitive. - - - - Gets the value. - - The dictionary. - The cross table. - The value. - if it is inheritable, set to true. - The founded value. - - - - Gets the widget annotation. - - The dictionary. - The cross table. - The widget annotation dictionary. - - - - Gets the high light. - - The dictionary. - The cross table. - The HighLIght mode. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of loaded field item. - - - - - Applies field name - - specified field name - - - - Begins the save. - - - - - Gets the loaded page. - - The loaded page in which field draw. - - - - Exports the form fields. - - - - - - Exports the form fields. - - Stream. - Object identifier. - - - - Imports the form fields. - - - - - - Validates the string. - - The text1. - - - - - Gets the name of the field. - - - - - - Raises when user manually changes the name of the field. - - - - - Gets the name of the field.[Read-Only] - - A string value specifying the name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Read the field name - String fieldName = field.Name; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Read the field name - Dim fieldName As String = field.Name - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the mapping name to be used when exporting interactive form field data from the document. - - A string value specifying the mapping name of the field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets the Mapping name as 'FirstField' - field.MappingName = "FirstField"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets the Mapping name as 'FirstField' - field.MappingName = "FirstField" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the tool tip of the form field. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Sets the tooltip of the field - field.ToolTip = "FirstField"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Sets the tooltip of the field - field.ToolTip = "FirstField" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the page of the form field.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - PdfPageBase page = field.Page; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - Dim page As PdfPageBase = field.Page - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether [read-only]. - - True if the field is read-only, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - // Set the form field as read only - field.ReadOnly = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - ' Set the form field as read only - field.ReadOnly = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether this is required. - - True if the field is required, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - field.Required = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - field.Required = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether this is export. - - true if export; otherwise, false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the flags. - - - - - Gets the actual field name. - - This returns the field name alone, where Name property returns the field name along with its parent name. - - - - Gets the form of the .[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form field - PdfLoadedField field = doc.Form.Fields[0] as PdfLoadedField; - PdfForm form = field.Form; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form field - Dim field As PdfLoadedField = TryCast(doc.Form.Fields(0), PdfLoadedField) - Dim form As PdfForm = field.Form - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the cross table. - - - - - Gets the parent. - - The parent. - - - - Gets or sets the changed. - - - - - Gets or sets the index of the default. - - - - - NameChanged event handler. - - New name of the field. - - - - Internal variable to store color shift value. - - - - - Internal variable to store Pdf Field Actions. - - - - - Internal variable to store widget of the field. - - - - - Internal variable to store enter action. - - - - - Internal variable to store leave action. - - - - - Internal variable to store mouse down action. - - - - - Internal variable to store mouse up action. - - - - - Internal variable to store get focus action. - - - - - Internal variable to store lost focus action. - - - - - Internal variable to store border pen. - - - - - Internal variable to store field's font. - - - - - Represents the visibility of the field - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the graphics properties. - - The graphics properties. - The item. - - - - Creates the border style. - - The bs. - The border style. - - - - Sets the border style. - - The bs. - The border style. - - - - Gets border pen. - - The border style. - - - - Gets the bounds. - - The dictionary. - The cross table. - The bounds. - - - - Gets the high light string. - - The mode. - The highligt mode. - - - - Creates the color. - - The array. - - - - - Gets the font colour. - - The default appearance. - The colour of the text value. - - - - Parses the float. - - The text. - - - - - Gets the font. - - The font string. - - - - - Reading Font Name from Dictionary. - - - - - - - - Create metrics for embed font - - - - - - - Gets the font by its name. - - The name. - The height of the resulting font. - The proper font object. - - - - Gets the font style. - - The font family string. - The style of pdf font. - - - - Gets the font name - - - font name - - - - Gets the font family. - - The font family string. - The font family. - - - - Gets the border style. - - Border style of the field. - - - - Gets the border style. - - Border style of the field. - - - - Gets DashPatern. - - The DashPatern. - - - - Gets border width. - - The boder width. - - - - Sets border width. - - - - - Gets string format. - - The string format. - - - - Gets back brush. - - The back brush. - - - - Sets the back color of the Field. - - The brush. - - - - Gets fore brush. - - The fore brush. - - - - Gets shadow brush. - - The shadow brush. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of loaded field item. - - - - - Begins the save. - - - - - Gets the height of the font. - - The calculated size of font. - - - - Gets border pen. - - The border style. - - - - Gets the field's annotation. - - The array of fields annotations. - - - - Gets the visibility of the field. - - - - - - Creates the border pen. - - - - - Defines the default appearance. - - - - - Cloning the PdfLoadedStyledField. - - - - - - Gets or sets the action to be performed when the cursor enters the annotation�s - active area. - - The mouse enter action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Entered\";"); - //Set the mouse enter event. - ldField.MouseEnter = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Entered"";") - 'Set the mouse enter event. - ldField.MouseEnter = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the mouse button is released - inside the annotation�s active area. - - The mouse up action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Up\";"); - //Set the event. - ldField.MouseUp = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Up"";") - 'Set the event. - ldField.MouseUp = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the mouse button is pressed inside the - annotation�s active area. - - The mouse down action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Down\";"); - //Set the event. - ldField.MouseDown = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Down"";") - 'Set the event. - ldField.MouseDown = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the cursor exits the annotation�s - active area. - - The mouse leave action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Mouse Leave\";"); - //Set the event. - ldField.MouseLeave = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Mouse Leave"";") - 'Set the event. - ldField.MouseLeave = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the action to be performed when the annotation receives the - input focus. - - The got focus action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Field Focused\";"); - //Set the event. - ldField.GotFocus = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Field Focused"";") - 'Set the event. - ldField.GotFocus = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the fore color of the Field.[Read-Only] - - The color of the text. - - - - Gets or sets the action to be performed when the annotation loses the - input focus. - - The lost focus action. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Create a new PDF java script action instance. - PdfJavaScriptAction action = new PdfJavaScriptAction("getField(\"fn\").value=\"Lost Focus\";"); - //Set the event. - ldField.LostFocus = action; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Create a new PDF java script action instance. - Dim action As New PdfJavaScriptAction("getField(""fn"").value=""Lost Focus"";") - 'Set the event. - ldField.LostFocus = action - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the widget. - - The widget. - - - - Gets or sets the bounds. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields bounds. - ldField.Bounds = new RectangleF(100, 300, 100, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields bounds. - ldField.Bounds = New RectangleF(100, 300, 100, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the location. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset fields location. - ldField.Location = new PointF(100, 300); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset fields location. - ldField.Location = New PointF(100, 300) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the size. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Reset size of the field. - ldField.Size = new SizeF(200, 30); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Reset size of the field. - ldField.Size = New SizeF(200, 30) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the border pen. - - - - - Gets or sets the style of the border. - - The color of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the color of the border. - - The color of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the DashPatern. - - - - - Gets or Sets the width of the border. - - The width of the border. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set border width. - ldField.BorderWidth = 1; - //Set border color. - ldField.BorderColor = Color.Red; - //Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set border width. - ldField.BorderWidth = 1 - 'Set border color. - ldField.BorderColor = Color.Red - 'Set border style. - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the string format. - - The string format. - - - - Gets the back brush. - - The back brush. - - - - Gets the color of the fore. - - The color of the fore. - - - - Gets the shadow brush. - - The shadow brush. - - - - Gets or set the font. - - The font. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set font. - ldField.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12, PdfFontStyle.Italic); - doc.Form.SetDefaultAppearance(false); - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set font. - ldField.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12, PdfFontStyle.Italic) - doc.Form.SetDefaultAppearance(False) - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or set the default index. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - //Set default index. - ldField.DefaultIndex = 2; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - 'Set default index. - ldField.DefaultIndex = 2 - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the kids. - - - - - Gets a value indicating the visibility of the field.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - bool isVisible = ldField.Visible; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - Dim isVisible As Boolean = ldField.Visible - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets the form field visibility - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Visibility = PdfFormFieldVisibility.Hidden; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Visibility = PdfFormFieldVisibility.Hidden - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Structure that holds graphics properties. - - - - - Initializes a new instance of the struct. - - The field. - - - - Initializes a new instance of the struct. - - The item. - - - - Collection of button items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the text. - - The text of the field. - - - - Sets the text of the field. - - Text field. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedButton field. - - - - - Creates a copy of PdfLoadedButtonItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the button. - - The graphics. - The item. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Adds Print action to current button field. - Clicking on the specified button will trigger the Print Dialog Box. - - - //Load an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceDoc.pdf"); - // Load the existing form - PdfLoadedForm form = ldoc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - // Adding print action - buttonField.AddPrintAction(); - // Save the document to a disk - ldoc.Save("Form.pdf"); - ldoc.Close(true); - - - 'Load an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = ldoc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - ' Adding print action - buttonField.AddPrintAction() - ' Save the document to a disk - ldoc.Save("Form.pdf") - ldoc.Close(True) - - - - - - Gets or sets the caption text. - - A string value specifying the caption of the button. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field. - PdfLoadedButtonField buttonField = form.Fields["Submit"] as PdfLoadedButtonField; - buttonField.Text = "Submit"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field. - Dim buttonField As PdfLoadedButtonField = TryCast(form.Fields("Submit"), PdfLoadedButtonField) - buttonField.Text = "Submit" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of button items.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Reading button collection item - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Reading button collection item - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents button group item of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents base class for field's group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Field which item belongs to. - - - - - Item index in collection. - - - - - Local variable to hold page reference. - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Get the current Loaded style Field. - - - - - Gets the parent. - - - - - Gets the cross table. - - - - - Gets the dictionary. - - - - - Gets or sets the bounds. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the location of the field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Location = new PointF(100, 100); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Location = New PointF(100, 100) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the size of the field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - buttonItem.Size = new SizeF(100, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - buttonItem.Size = New SizeF(100, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets the border pen. - - - - - Gets the border style. - - - - - Gets the DashPatern. - - - - - Gets the width of the border. - - - - - Gets the string format. - - - - - Gets the back brush. - - - - - Gets the color of the fore. - - - - - Gets the shadow brush. - - - - - Gets the font. - - - - - Gets the page of the field.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button item - PdfLoadedButtonItem buttonItem = buttonField.Items[0]; - //Get the fields page. - PdfPageBase page = buttonItem.Page; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button item - Dim buttonItem As PdfLoadedButtonItem = buttonField.Items(0) - 'Get the fields page. - Dim page As PdfPageBase = buttonItem.Page - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedButtonItem. - - - - - - Represents the base class for loaded state field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Flatten the radio button field - radiobuttonField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Flatten the radio button field - radiobuttonField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Gets the state template. - - The state. - The item. - The proper PdfTemplate instance. - - - - Sets checked status of the field. - - Checked status. - - - - Gets the item value. - - The value of the item. - - - - Unchecks the others kids. - - The child. - The value. - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the check box item. - - The graphics. - The state. - The item. - - - - Gets the items collection.[Read-Only] - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the first item as selected item - radiobuttonItem.Selected = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the first item as selected item - radiobuttonItem.Selected = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents the loaded state item. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - PdfLoadedStateItem stateItem =stateItemCollection[0]; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - Dim stateItem As PdfLoadedStateItem = stateItemCollection(0) - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Sets checked status of the field. - - Checked status. - - - - Gets or sets a value indicating whether this is checked. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - PdfLoadedStateItem stateItem =stateItemCollection[0]; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItem as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - Dim stateItem As PdfLoadedStateItem = stateItemCollection(0) - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItem, PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Represents collection of button item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button collection - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button collection - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedButtonItemCollection - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the form - PdfLoadedForm form = doc.Form; - // Load an existing button field - PdfLoadedButtonField buttonField = doc.Form.Fields["Submit"] as PdfLoadedButtonField; - // Load an existing button collection - PdfLoadedButtonItemCollection buttonCollection = buttonField.Items; - // Load an existing button button item - PdfLoadedButtonItem buttonItem = buttonCollection[0]; - buttonItem.Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the form - Dim form As PdfLoadedForm = doc.Form - ' Load an existing button field - Dim buttonField As PdfLoadedButtonField = TryCast(doc.Form.Fields("Submit"), PdfLoadedButtonField) - ' Load an existing button collection - Dim buttonCollection As PdfLoadedButtonItemCollection = buttonField.Items - ' Load an existing button button item - Dim buttonItem As PdfLoadedButtonItem = buttonCollection(0) - buttonItem.Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents check box of an existing PDF document. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - checkField.Checked = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - checkField.Checked = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Symbol for check state. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedCheckBoxField. - - - - - Creates a copy of PdfLoadedCheckBoxItem. - - - - - Gets or sets a value indicating whether this is checked. - - True if the check box is checked, false otherwise. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - checkField.Checked = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - checkField.Checked = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of check box items.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents collection of text box group items. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents the collection of loaded state item. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItemCollection[0] as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItemCollection(0), PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedStateItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // State Item collection - PdfLoadedStateItemCollection stateItemCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = stateItemCollection[0] as PdfLoadedRadioButtonItem; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' State Item collection - Dim stateItemCollection As PdfLoadedStateItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = TryCast(stateItemCollection(0), PdfLoadedRadioButtonItem) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedCheckBoxItemCollection - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - checkCollection[0].Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - checkCollection(0).Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents loaded check box item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedCheckBoxField checkField = doc.Form.Fields["Java"] as PdfLoadedCheckBoxField; - // Loads the check box items collection. - PdfLoadedCheckBoxItemCollection checkCollection = checkField.Items; - // Read the first item of the collection - PdfLoadedCheckBoxItem checkItem = checkCollection[0]; - checkItem.Checked = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim checkField As PdfLoadedCheckBoxField = TryCast(doc.Form.Fields("Java"), PdfLoadedCheckBoxField) - ' Loads the check box items collection. - Dim checkCollection As PdfLoadedCheckBoxItemCollection = checkField.Items - ' Read the first item of the collection - Dim checkItem As PdfLoadedCheckBoxItem = checkCollection(0) - checkItem.Checked = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Sets checked status of the field. - - Checked status. - - - - Cloning the PdfLoadedCheckBoxItem. - - - - - - Represents a choice field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets selected index. - - Selected index. - - - - Sets selected index. - - Selected index. - - - - Gets selected value. - - Selected value. - - - - Sets selected value. - - Selected value. - - - - Gets the list item. - - The list item collection - - - - Gets the collection of choice items.[Read-Only] - - - A object specifying the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - // Change the selected item - PdfLoadedListItemCollection items = choiceField.SelectedItem; - items[0].Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - ' Change the selected item - Dim items As PdfLoadedListItemCollection = choiceField.SelectedItem - items(0).Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the first selected item in the list. - - - An integer value specifying the choice item in the list. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedIndex = new int[] { 0 }; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedIndex = New Integer() {0} - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - - A string value specifying the value of the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing choice field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - choiceField.SelectedValue = new string[] { "Employee" }; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing choice field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - choiceField.SelectedValue = New String() { "Employee" } - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the selected items in the list.[Read-Only] - - - A object specifying the selected item. - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing Check field - PdfLoadedChoiceField choiceField = doc.Form.Fields["Java"] as PdfLoadedChoiceField; - // Change the selected item - PdfLoadedListItemCollection items = choiceField.SelectedItem; - items[0].Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing Check field - Dim choiceField As PdfLoadedChoiceField = TryCast(doc.Form.Fields("Java"), PdfLoadedChoiceField) - ' Change the selected item - Dim items As PdfLoadedListItemCollection = choiceField.SelectedItem - items(0).Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents the combo box field of an existing item. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Stores the collection of items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedComboBoxField. - - - - - Creates a copy of PdfLoadedComboBoxItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the combo box. - - The graphics. - The item. - - - - Draws the combo box. - - The graphics. - The item. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Gets or sets a value indicating whether this is editable. - - True if the drop down list is editable, false otherwise. Default is false. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.Editable = false; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing Check field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.Editable = False - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of combo box items.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Reading first item of the collection. - PdfLoadedComboBoxItem item = comboCollection[0]; - item.Location = new PointF(200, 200); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - 'Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - 'Reading first item of the collection. - Dim item As PdfLoadedComboBoxItem = comboCollection(0) - item.Location = New PointF(200, 200) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the index which is to be selected. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedIndex = 0; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedIndex = 0 - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the value which is to be selected. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read a combo box field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - comboField.SelectedValue = "Employee"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'Read a combo box field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - comboField.SelectedValue = "Employee" - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents group for combo box field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning PdfLoadedComboBoxItem. - - - - - - Represents collection of Combo box items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Cloning PdfLoadedComboBoxItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load an existing combo field - PdfLoadedComboBoxField comboField = doc.Form.Fields["EmployeeCombo"] as PdfLoadedComboBoxField; - // Load combo field collection - PdfLoadedComboBoxItemCollection comboCollection = comboField.Items; - // Load combo field item - PdfLoadedComboBoxItem comboItem = comboCollection[0]; - comboItem.Bounds = new RectangleF(10,20,200,300); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load an existing combo field - Dim comboField As PdfLoadedComboBoxField = TryCast(doc.Form.Fields("EmployeeCombo"), PdfLoadedComboBoxField) - ' Load combo field collection - Dim comboCollection As PdfLoadedComboBoxItemCollection = comboField.Items - ' Load combo field item - Dim comboItem As PdfLoadedComboBoxItem = comboCollection(0) - comboItem.Bounds = New RectangleF(10,20,200,300) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents a collection of state items. - - Class - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Gets the at the specified index.[Read-Only] - - The index of specified item. - - - - Represents Loaded form of the PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //load the form field - PdfLoadedField field = form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'load the form field - Dim field As PdfLoadedField = TryCast(form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Collection of fields - - - - - Store crooss table. - - - - - Dictionaries of tremil fields. - - - - - Indicates is field modified or not. - - - - - Indicates is xfa form or not. - - - - - Indicates Extended feature. - - - - - Initializes a new instance of the class. - - The form dictionary. - The cross table. - - - - Initializes a new instance of the class. - - The cross table. - - - - Get the field - - - - - - - Find the given document contain extended feature dictionary. - - - - - - Initializes the specified form dictionary. - - The form dictionary. - The cross table. - - - - Retrieves the terminal fields. - - - - - Determines whether the specified kids is node. - - The kids. - - true if the specified kids is node; otherwise, false. - - - - - Export the form data to a file with the specific and form name. - - Name of the document which is need to export. - The format of exported data. - The name of the PDF file the data is exported from. - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf") - doc.Close(True) - - - - - - Export the form data to a stream with the specific and form name. - - The stream where form data will be exported. - The format of exported data - The name of the PDF file the data is exported from - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - MemoryStream stream = new MemoryStream(); - form.ExportData(stream, DataFormat.Xml, "SourceForm.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - Dim stream As MemoryStream = New MemoryStream() - form.ExportData(stream, DataFormat.Xml, "SourceForm.pdf") - doc.Close(True) - - - - - - Export the form data in XML Forms Data Format file format. - - Stream. - Name of the form. - - - - Export the form data in FDF file format. - - The stream where form data will be exported. - The name of the PDF file the data is exported from. - - - - Exports the form data in XML file format - - - - - - Exports the form data in JSON file format - - - - - - Validate the XML node element - - name of the XML element node. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Clears PdfLoadedForm. - - - - - Removes field and kids annotation from dictionaries. - - The field. - - - - Deletes from pages. - - The field. - - - - Deletes the annotation from the page dictionary. - - The field. - - - - Removes all the reference for particular object - - The form field need to be removed - - - - Removes the content of signature filed from the loaded document - - The form Field collection of the loaded document - The Signature dictionary which is going to be removed - - - - Gets the new name of the field. - - The name. - The field name. - - - - Imports the form data from the file with the specific . - - Name of the file. - The data format. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ImportData("ImportData.xml",DataFormat.Xml); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ImportData("ImportData.xml",DataFormat.Xml) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports the form data from the file with the specific . - - Name of the file. - The data format. - if it is error flag, set to true. - Error messages wile importing. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.ImportData("ImportData.xml",DataFormat.Xml, false); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.ImportData("ImportData.xml",DataFormat.Xml, False) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports the data field. - - Name of the file. - The data format. - if it is continue import on error, set to true. - - - - - Imports Form value from XML file - - Name of the imported file. - The input file format - False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field. - Document form fields filled with data which are imported from XML. - - - - Import form data from FDF file. - - The FDF file stream - False if the import should stop on the first field that generates an error, or true if the import should ignore the error and continue with the next field. - Error messages wile importing. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Load the FDF file - FileStream stream = new FileStream("ImportFDF.fdf", FileMode.Open); - // Import the FDF stream - form.ImportDataFDF(stream,true); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - ' Load the FDF file - Dim stream As FileStream = New FileStream("ImportFDF.fdf", FileMode.Open) - ' Import the FDF stream - form.ImportDataFDF(stream,True) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Sets or resets the form field highlight option. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - form.HighlightFields(true); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - form.HighlightFields(True) - doc.Save("output.pdf") - doc.Close(True) - - - - - - Called when [hex in string]. - - The test string. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - bool isHex = form.OnlyHexInString("123456"); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - Dim isHex As Boolean = form.OnlyHexInString("123456") - doc.Save("output.pdf") - doc.Close(True) - - - - - - Import form data - - - - - - - - Import XML Data - - - - - - - - Imports XFDF Data from the specific file. - - The XFDF file path. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Import the XFDF file. - form.ImportDataXFDF("ImportXFDF.xfdf"); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import the XFDF file. - form.ImportDataXFDF("ImportXFDF.xfdf") - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Imports XFDF Data form the specific stream. - - The XFDF file stream. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - // Load the XFDF file - FileStream stream = new FileStream("ImportXFDF.xfdf", FileMode.Open); - // Import the XFDF stream - form.ImportDataXFDF(stream); - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - ' Load the XFDF file - Dim stream As FileStream = New FileStream("ImportXFDF.xfdf", FileMode.Open) - ' Import the XFDF stream - form.ImportDataXFDF(stream,True) - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets or sets the XFA form - - - - - Gets the field collection.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //load the form field - PdfLoadedField field = form.Fields[0] as PdfLoadedField; - field.Export = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'load the form field - Dim field As PdfLoadedField = TryCast(form.Fields(0), PdfLoadedField) - field.Export = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the form is read only. - - True if the field is read-only, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Set the form as read only - form.ReadOnly = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Set the form as read only - form.ReadOnly = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the signature flags. - - - - - Gets or sets a value indicating whether need appearances. - - - - - Gets the resources. - - - - - Gets or sets a value indicating whether this instance is modified. - - - - - Gets the cross table. - - - - - Gets or sets the terminal fields. - - - - - Gets or sets a value indicating whether this form is XFA Form or AcroForm. - - - - - Represents node information. - - - - - Parsed field count. - - - - - Current kids array. - - - - - Initializes a new instance of the class. - - The fields. - The count. - - - - Gets or sets the current array. - - - - - Gets or sets the count. - - - - - Represents errors on importing loaded field. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets the exception. - - The exception. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Gets the field. - - The field. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = doc.Form; - //Import - PdfLoadedFieldImportError[] error = form.ImportData("out.xml", DataFormat.Xml, true); - //Get the exception. - Exception exception = error[0].Exception; - //Get field - PdfLoadedField field = error[0].Field; - doc.Save("Import.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = doc.Form - 'Import - Dim[error] As PdfLoadedFieldImportError() = form.ImportData("out.xml", DataFormat.Xml, True) - 'Get the exception. - Dim exception As Exception = [error](0).Exception - 'Get field - Dim field As PdfLoadedField = [error](0).Field - doc.Save("Import.pdf") - doc.Close(True) - - - - - - Represents field collection of loaded form. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // PDF loaded field collection - PdfLoadedFormFieldCollection fieldCollection = doc.Form.Fields; - // Remove the first field - fieldCollection.RemoveAt(0); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' PDF loaded field collection - Dim fieldCollection As PdfLoadedFormFieldCollection = doc.Form.Fields - ' Remove the first field - fieldCollection.RemoveAt(0) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Loaded form, wich collection belongs to. - - - - - Initializes a new instance of the class with the specific . - - The PDF loaded form. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedForm form = doc.Form; - //Create a new form fields collection instance. - PdfLoadedFormFieldCollection collection = new PdfLoadedFormFieldCollection(form); - //Remove field. - collection.RemoveAt(0); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim form As PdfLoadedForm = doc.Form - 'Create a new form fields collection instance. - Dim collection As New PdfLoadedFormFieldCollection(form) - 'Remove field. - collection.RemoveAt(0) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initialize the new instance of the class. - - - - - Gets the field. - - The index. - The created field. - - - - Creates the signature field. - - The dictionary. - The cross table. - The created signature field. - - - - Creates the list box. - - The dictionary. - The cross table. - The created list box. - - - - Creates the combo box. - - The dictionary. - The cross table. - The created combo box. - - - - Creates the text field. - - The dictionary. - The cross table. - The created text field. - - - - Creates the radio button. - - The dictionary. - The cross table. - The created radio button. - - - - Creates the check box. - - The dictionary. - The cross table. - The created check box. - - - - Creates the push button. - - The dictionary. - The cross table. - The created push button. - - - - Gets the type of the field. - - The name. - The dictionary. - The cross table. - The field type. - - - - Adds a field to collection. - - The field. - - - - - Inserts a filed into collection. - - The index. - The field. - - - - Removes the field from collection. - - The field. - - - - Removes the field at the specified position. - - The index. - - - - Clears the collection. - - - - - Check whether the field with the same name already exists. - - The name. - - true if there are no fields with the same name within the collection; - otherwise false. - - - - - Gets the new name of the field. - - The name. - The field name. - - - - Adds the field dictionary. - - The field. - - - - NameChanged evant handler. - - New Name of the field. - - - - Gets the index of the field. - - The name. - The index of the field. - - - - Gets the named field. - - The name. - The field with specified name. - - - - Gets the form field with the given field name - - Name of the field - Loaded Form Field - True, if form field exists, else False. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedFormFieldCollection fields = doc.Form.Fields; - PdfLoadedField field = null; - //Get the specific field by name. - fields.TryGetField("fn", out field); - //Set text. - (field as PdfLoadedTextBoxField).Text = "Modified"; - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim fields As PdfLoadedFormFieldCollection = doc.Form.Fields - Dim field As PdfLoadedField = Nothing - 'Get the specific field by name. - fields.TryGetField("fn", field) - 'Set text. - TryCast(field, PdfLoadedTextBoxField).Text = "Modified" - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the filed value from the given field name - - Name of the loaded form filed - Value of the field - True, if form field exists with the specific name, else False. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("Form.pdf"); - //Load the existing PDF form. - PdfLoadedFormFieldCollection fields = doc.Form.Fields; - string fieldValue = null; - //Get the specific field value by name. - fields.TryGetValue("fn", out fieldValue); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("Form.pdf") - 'Load the existing PDF form. - Dim fields As PdfLoadedFormFieldCollection = doc.Form.Fields - Dim fieldValue As String = Nothing - 'Get the specific field value by name. - fields.TryGetValue("fn", fieldValue) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - - - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - //load the form fields - foreach (PdfField field in doc.Form.Fields) - { - // Flatten the form - field.Flatten = true; - } - doc.Save("Form.pdf"); - doc.Close(true); - - - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - 'load the form fields - For Each field As PdfField In doc.Form.Fields - ' Flatten the form - field.Flatten = True - Next field - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Returns field with specified name.[Read-Only] - - The specified field name. - - - // Loads an existing PDF document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the FirstTextBox field - PdfField field = doc.Form.Fields["FirstTextBox"]; - field.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - // Loads an existing PDF document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the FirstTextBox field - Dim field As PdfField = doc.Form.Fields("FirstTextBox") - field.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Gets or sets the form. - - - - // Loads an existing PDF document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the FirstTextBox field - PdfField field = doc.Form.Fields["FirstTextBox"]; - field.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - // Loads an existing PDF document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the FirstTextBox field - Dim field As PdfField = doc.Form.Fields("FirstTextBox") - field.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - - - - Represents loaded list box field. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Flatten the list field - listField.Flatten = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Flatten the list field - listField.Flatten = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Represents collection of items. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Draws this instance if it is flatten. - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedListBoxField. - - - - - Creates a copy of PdfLoadedListField Item. - - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws the list box. - - The graphics. - The item. - - - - Converts to list items. - - The items. - The PdfListItemCollection. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Gets or sets a value indicating whether the field is multi-selectable. - - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Enabling the multi selection option - listField.MultiSelect = true; - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Enabling the multi selection option - listField.MultiSelect = True - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the collection of list field.[Read-Only] - - The collection of list box items. - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List box items collection - PdfLoadedListFieldItemCollection listcollection = listField.Items; - listcollection[0].Location = new PointF(100, 200); - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List box items collection - Dim listcollection As PdfLoadedListFieldItemCollection = listField.Items - listcollection(0).Location = New PointF(100, 200) - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - - - - Represents group item for list field. - - Class - - - // Loads an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Loaded list box field items - PdfLoadedListFieldItem listFieldItem = listField.Items[0]; - listFieldItem.Location = new PointF(100, 200); - doc.Save("Sample.pdf"); - doc.Close(true); - - - ' Loads an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Loaded list box field items - Dim listFieldItem As PdfLoadedListFieldItem = listField.Items(0) - listFieldItem.Location = New PointF(100, 200) - doc.Save("Sample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedListFieldItem. - - - - - - Represents loaded list field item collection. - - Class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // list field item Collection - PdfLoadedListFieldItemCollection listItemCollection = listField.Items; - listItemCollection[0].Bounds = new RectangleF(0, 0, 20, 30); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' list field item Collection - Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items - listItemCollection(0).Bounds = New RectangleF(0, 0, 20, 30) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Cloning the PdfLoadedListFieldItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListFieldItemCollection listItemCollection = listField.Items; - // Reading the first item in the list items collection - PdfLoadedListFieldItem listItem = listItemCollection[0]; - // Relocate the list item - listItem.Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListFieldItemCollection = listField.Items - ' Reading the first item in the list items collection - Dim listItem As PdfLoadedListFieldItem = listItemCollection(0) - ' Relocate the list item - listItem.Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - - - - Represents loaded list item. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = listField.SelectedItem; - listItem.Text = "NewText"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = listField.SelectedItem - listItem.Text = "NewText" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Text of the item. - - - - - Value of the item. - - - - - Field wich item belons to. - - - - - CrossTable of document. - - - - - Initializes a new instance of the class. - - The text. - The value. - The field. - The cross table. - - - - Initializes a new instance of the class with the specific text and value. - - The text. - The value. - - - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = new PdfLoadedListItem("C#.Net",".NET Course"); - // Add the list item in list field - listField.Values.Add(listItem); - - - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("C#.Net",".NET Course") - ' Add the list item in list field - listField.Values.Add(listItem) - - - - - - Sets the text of the item. - - - - - - Sets item value. - - The item value. - - - - - Gets or sets the value of the list item. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // Get the selected list item - PdfLoadedListItem listItem = listField.SelectedItem; - listItem.Value = "C#.NET"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' Get the selected list item - Dim listItem As PdfLoadedListItem = listField.SelectedItem - listItem.Value = "C#.NET" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents a collection of list box field items. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Create a new list item - PdfLoadedListItem listItem = new PdfLoadedListItem("Oracle", "Oracle"); - // Adding item in collection - listItemCollection.Add(listItem); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Create a new list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("Oracle", "Oracle") - ' Adding item in collection - listItemCollection.Add(listItem) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Parents field. - - - - - Initializes a new instance of the class. - - The field. - - - - Inserts an list item at the end of the collection. - - a object to be added to collection. - The index of item. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Create a new list item - PdfLoadedListItem listItem = new PdfLoadedListItem("Oracle", "Oracle"); - // Adding item in collection - listItemCollection.Add(listItem); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Create a new list item - Dim listItem As PdfLoadedListItem = New PdfLoadedListItem("Oracle", "Oracle") - ' Adding item in collection - listItemCollection.Add(listItem) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Adds the item. - - The item. - The index of added item. - - - - Inserts the list item at the specified index. - - The index. - The item. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Getting the first item from the list item collection - PdfLoadedListItem listItem = listItemCollection[0]; - // Insert the item at first index - listItemCollection.Insert(0, listItem); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Getting the first item from the list item collection - Dim listItem As PdfLoadedListItem = listItemCollection(0) - ' Insert the item at first index - listItemCollection.Insert(0, listItem) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Removes the list item at the specified index. - - The index. - Throws IndexOutOfRange exception if the index is out of bounds. - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Remove the first item - listItemCollection.RemoveAt(0); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Remove the first item - listItemCollection.RemoveAt(0) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Clears the item collection. - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Clears the collection - listItemCollection.Clear(); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Clears the collection - listItemCollection.Clear() - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the items. - - - - - Gets the array. - - The item. - The array of item value and text. - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'course' list box field - PdfLoadedListBoxField listField = doc.Form.Fields["Course"] as PdfLoadedListBoxField; - // List field item Collection - PdfLoadedListItemCollection listItemCollection = listField.Values; - // Getting the first item from the list item collection - PdfLoadedListItem listItem = listItemCollection[0]; - listItem.Value = "C#.NET"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'course' list box field - Dim listField As PdfLoadedListBoxField = TryCast(doc.Form.Fields("Course"), PdfLoadedListBoxField) - ' List field item Collection - Dim listItemCollection As PdfLoadedListItemCollection = listField.Values - ' Getting the first item from the list item collection - Dim listItem As PdfLoadedListItem = listItemCollection(0) - listItem.Value = "C#.NET" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents collection of radio box group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Index of the specified item. - - The item. - The index of specified item - - - - Adds the specified item. - - The item. - - - - Cloning the PdfLoadedRadioButtonItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - Returns object at the specified index. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents radio button field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Gets the item value. - - The value of the item. - - - - Stes item value. - - The item value. - - - - Cloning the PdfLoadedRadioButtonItem. - - - - - - Gets or sets the value of the radio button. - - The value of the radio button item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the value of the item - radiobuttonItem.Value = "Male"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the value of the item - radiobuttonItem.Value = "Male" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether this is selected. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Set the first item as selected item - radiobuttonItem.Selected = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Set the first item as selected item - radiobuttonItem.Selected = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the parent. - - - - - Represents radio button field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Flatten the radio button field - radiobuttonField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Flatten the radio button field - radiobuttonField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Symbol for check state. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the item. - - The index. - The item dictionary. - The proper state item. - - - - Gets the index of the selected. - - The index of first selected item. - - - - Sets selected index of the radio button. - - Selected index. - - - - Sets selected value. - - Selected value. - - - - Draws this instance if it is flatten. - - - - - Creates a copy of PdfLoadedRadioButtonListField. - - - - - Creates a copy of PdfLoadedRadioButtonItem. - - - - - Gets the collection of radio button items.[Read-Only] - - A that represents the items within the list. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Getting the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Radio button field collection - PdfLoadedRadioButtonItemCollection radiobuttonFieldCollection = radiobuttonField.Items; - // Radio button field item - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonFieldCollection[0]; - // Selected the item - radiobuttonItem.Checked = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Getting the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Radio button field collection - Dim radiobuttonFieldCollection As PdfLoadedRadioButtonItemCollection = radiobuttonField.Items - ' Radio button field item - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonFieldCollection(0) - ' Selected the item - radiobuttonItem.Checked = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Gets or sets the index of the selected item in the list. - - The lowest ordinal index of the selected items in the list. The default is -1, which indicates that nothing is selected. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the selected index as 1 - radiobuttonField.SelectedIndex = 1; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the selected index as 1 - radiobuttonField.SelectedIndex = 1 - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of the first selected item in the list. - - A string value specifying the value of the first selected item, null (Nothing in VB.NET) if there is no selected item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the selected index as 1 - radiobuttonField.SelectedValue = "Female"; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the selected index as 1 - radiobuttonField.SelectedValue = "Female" - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets the selected item.[Read-Only] - - Return the item as PdfLoadedRadioButtonItem class - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Read the selected item of the radio button - PdfLoadedRadioButtonItem radiobuttonItem = radiobuttonField.SelectedItem; - // Uncheck the selected item - radiobuttonItem.Checked = false; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Read the selected item of the radio button - Dim radiobuttonItem As PdfLoadedRadioButtonItem = radiobuttonField.SelectedItem - ' Uncheck the selected item - radiobuttonItem.Checked = False - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or sets the value of specified item. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the 'Gender' radio button field - PdfLoadedRadioButtonListField radiobuttonField = doc.Form.Fields["Gender"] as PdfLoadedRadioButtonListField; - // Set the radio box value as Male - radiobuttonField.Value = "Male"; - // Save the document to a disk - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the 'Gender' radio button field - Dim radiobuttonField As PdfLoadedRadioButtonListField = TryCast(doc.Form.Fields("Gender"), PdfLoadedRadioButtonListField) - ' Set the radio box value as Male - radiobuttonField.Value = "Male" - ' Save the document to a disk - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Represents the signature field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Gets the signature field - PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField; - signatureField.Flatten = true; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Gets the signature field - Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField) - signatureField.Flatten = True - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - Internal variable to store the signature. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Sets the signature properties - - - - - - Begins the save. - - - - - Creates a copy of PdfLoadedSignatureField. - - - - - Creates a copy of loaded item. - - - - - - Draws this instance if it is flatten. - - - - - Gets or sets the digital signature for signing the field. - - A object specifying the digital signature for signing the field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the first page - PdfPageBase page = doc.Pages[0]; - // Gets the signature field - PdfLoadedSignatureField signatureField = doc.Form.Fields["ManagerSignature"] as PdfLoadedSignatureField; - // Create a new Signature - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5), new SizeF(100, 200)); - // Set the signature of the field - signatureField.Signature = signature; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the first page - Dim page As PdfPageBase = doc.Pages(0) - ' Gets the signature field - Dim signatureField As PdfLoadedSignatureField = TryCast(doc.Form.Fields("ManagerSignature"), PdfLoadedSignatureField) - ' Create a new Signature - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5), New SizeF(100, 200)) - ' Set the signature of the field - signatureField.Signature = signature - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents an item in a text box field collection. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField textBoxField = doc.Form.Fields["EmployeeName"] as PdfLoadedTextBoxField; - // Read the first text box field item from the collection - PdfLoadedTexBoxItem textBoxItem = textBoxField.Items[0]; - textBoxItem.Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim textBoxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields("EmployeeName"), PdfLoadedTextBoxField) - ' Read the first text box field item from the collection - Dim textBoxItem As PdfLoadedTexBoxItem = textBoxField.Items(0) - textBoxItem.Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The field. - The index. - The dictionary. - - - - Cloning the PdfLoadedTexBoxItem. - - - - - - Represents the text box field of an existing PDF document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - RectangleF newBounds = new RectangleF(100, 100, 50, 50); - ldField.Bounds = newBounds; - ldField.SpellCheck = true; - ldField.Text = "New text of the field."; - ldField.Password = false; - ldField.BorderStyle = PdfBorderStyle.Dashed; - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - Dim newBounds As RectangleF = New RectangleF(100, 100, 50, 50) - ldField.Bounds = newBounds - ldField.SpellCheck = True - ldField.Text = "New text of the field." - ldField.Password = False - ldField.BorderStyle = PdfBorderStyle.Dashed - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - - - - The password chrackter. - - - - - Collection of textbox items. - - - - - Internal variable to stroe field`s fore color. - - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Set the back color of the Field. - - PdfColor Value. - - - - Converts the HighlightMode as String value. - - PdfHighlightMode value. - Returns the PdfHighlightMode as string value. - - - - Converts the given string value as PdfHighlightMode. - - Given string value. - Returns the PdfHighlightMode values. - - - - Begins the save. - - - - - Creates a copy of PdfLoadedTextBoxField. - - - - - Creates a copy of PdfLoadedTextBoxItem. - - - - - Applies the appearance. - - The widget. - The item. - - - - Draws this instance if it is flatten. - - - - - Draws the text box. - - The graphics. - The item. - - - - Checks if the text contains RTL character or number. - - Array of symbols. - True if the text contans RTL character or number. - - - - Gets the height of the font. - - - The calculated size of font. - - - - Get or Set the back color of the field - - A object specifying the background color of field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.BackColor = new PdfColor(Color.Transparent); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.BackColor = New PdfColor(Color.Transparent) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or Set the fore color of the field. - - A object specifying the background color of field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.ForeColor = new PdfColor(Color.Red); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field. - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.ForeColor = New PdfColor(Color.Red) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Get or Set the text alignment in a text box. - - A enumeration member specifying the text alignment in a text box. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field. - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.TextAlignment = PdfTextAlignment.Justify; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field. - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.TextAlignment = PdfTextAlignment.Justify - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Get or Set the HighLightMode of the Field. - - A enumeration member specifying the highlight mode in a text box. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.HighlightMode = PdfHighlightMode.Push; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.HighlightMode = PdfHighlightMode.Push - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - - - - Gets or Set value of the text box field. - - A string value representing the value of the item. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Text = "New Text"; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Text = "New Text" - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - - Gets or sets a value indicating whether to check spelling. - - True if the field content should be checked for spelling erorrs, false otherwise. Default is true. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.SpellCheck = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.SpellCheck = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Meaningful only if the MaxLength property is set and the Multiline, Password properties are false. - If set, the field is automatically divided into as many equally spaced positions, or combs, - as the value of MaxLength, and the text is laid out into those combs. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.InsertSpaces = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.InsertSpaces = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is multiline. - - True if the field is multiline, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Multiline = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Multiline = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is password field. - - True if the field is a password field, false otherwise. Default is false. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Password = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Password = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets a value indicating whether this is scrollable. - - True if the field content can be scrolled, false otherwise. Default is true. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.Scrollable = true; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.Scrollable = True - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the maximum length of the field, in characters. - - A positive integer value specifying the maximum number of characters that can be entered in the text edit field. - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField ldField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - ldField.MaxLength = 10; - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim ldField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ldField.MaxLength = 10 - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - - Gets the collection of text box field items.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // TextBox Item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - textboxFieldCollection[0].Location = new PointF(10, 20); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' TextBox Item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - textboxFieldCollection(0).Location = New PointF(10, 20) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - - - - Represents collection of text box group items. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field item - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // TextBox Item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - textboxFieldCollection[0].Location = new PointF(10, 20); - doc.Save("LoadedForm.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field item - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' TextBox Item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - textboxFieldCollection(0).Location = New PointF(10, 20) - doc.Save("LoadedForm.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Cloning the PdfLoadedTextBoxItemCollection. - - - - - - Gets the at the specified index.[Read-Only] - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceForm.pdf"); - // Read the text box field item - PdfLoadedTextBoxField textboxField = doc.Form.Fields[0] as PdfLoadedTextBoxField; - // Read the text box item collection - PdfLoadedTextBoxItemCollection textboxFieldCollection = textboxField.Items; - PdfLoadedTexBoxItem textboxItem = textboxFieldCollection[0]; - textboxItem.Location = new PointF(10, 20); - doc.Save("Form.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Read the text box field item - Dim textboxField As PdfLoadedTextBoxField = TryCast(doc.Form.Fields(0), PdfLoadedTextBoxField) - ' Read the text box item collection - Dim textboxFieldCollection As PdfLoadedTextBoxItemCollection = textboxField.Items - Dim textboxItem As PdfLoadedTexBoxItem = textboxFieldCollection(0) - textboxItem.Location = New PointF(10, 20) - doc.Save("Form.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Represents the area type of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Load the existing XFA area collection. - PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "12345"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Load the existing XFA area collection. - Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "12345" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents Loaded XFA field. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - convert string to float - - - - - - - Read the margin details - - - - - - set the size of the field - - - - - - - - Read the XFA form fields - - - - - - - - - - Represents the XFA subform names - - - - - Represents loaded form fields collection. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Load the existing XFA area collection. - PdfLoadedXfaArea area = (loadedForm.Fields["#subform[0]"] as PdfLoadedXfaForm).Fields["Header[0]"] as PdfLoadedXfaArea; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = area.Fields["InvoiceNumber[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "12345"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Load the existing XFA area collection. - Dim area As PdfLoadedXfaArea = TryCast(TryCast(loadedForm.Fields("#subform[0]"), PdfLoadedXfaForm).Fields("Header[0]"), PdfLoadedXfaArea) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(area.Fields("InvoiceNumber[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "12345" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded XFA check box field. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the abstract class of the loaded XFA form fields styled parameters. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the size of the field. - - - - - - Read the border of the field - - - - - - Read the caption details - - - - - - Read the font info - - - - - - create a new attribute - - - - - - - - Get the fields rotation angle. - - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set read only. - loadedTextBox.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set read only. - loadedTextBox.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the width of the field. - float width = loadedTextBox.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the width of the field. - Dim width As Single = loadedTextBox.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the height of the field. - float height = loadedTextBox.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the height of the field. - Dim height As Single = loadedTextBox.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the location of the field. - PointF location = loadedTextBox.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the location of the field. - Dim location As PointF = loadedTextBox.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the Font - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the font. - loadedTextBox.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the font. - loadedTextBox.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets tool tip - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set tool tip. - loadedTextBox.ToolTip = "Text Box"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set tool tip. - loadedTextBox.ToolTip = "Text Box" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the caption - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the caption text. - string text = loadedTextBox.Caption.Text; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the caption text. - Dim text As string = loadedTextBox.Caption.Text - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or set the fore color. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the fore color of the field - PdfColor foreColor = loadedTextBox.ForeColor; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the fore color of the field. - Dim foreColor As PdfColor = loadedTextBox.ForeColor - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or set the border - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set border color. - loadedTextBox.Border.Color = Color.Red; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set border color. - loadedTextBox.Border.Color = Color.Red - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the horizontal alignment of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the horizontal alignment of the field. - loadedTextBox.HorizontalAlignment = PdfXfaHorizontalAlignment.Center; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the horizontal alignment of the field. - loadedTextBox.HorizontalAlignment = PdfXfaHorizontalAlignment.Center - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the vertical alignment of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the vertical alignment of the field. - loadedTextBox.VerticalAlignment = PdfXfaVerticalAlignment.Middle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the vertical alignment of the field. - loadedTextBox.VerticalAlignment = PdfXfaVerticalAlignment.Middle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets a value indicating whether this is checked or not - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the size of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the checkbox size. - float checkBoxSize = loadedCheckBox.CheckBoxSize; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the checkbox size. - Dim checkBoxSize As Single = loadedCheckBox.CheckBoxSize - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked styles of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the checked style. - PdfXfaCheckedStyle style = loadedCheckBox.CheckedStyle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the checked style. - Dim style As PdfXfaCheckedStyle = loadedCheckBox.CheckedStyle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the appearance of the check box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded check box field. - PdfLoadedXfaCheckBoxField loadedCheckBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["checkBox[0]"] as PdfLoadedXfaCheckBoxField; - //Check the check box - loadedCheckBox.IsChecked = true; - //Get the check box appearance. - PdfXfaCheckBoxAppearance appearance = loadedCheckBox.CheckBoxAppearance; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded check box field. - Dim loadedCheckBox As PdfLoadedXfaCheckBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("checkBox[0]"), PdfLoadedXfaCheckBoxField) - 'Check the check box - loadedCheckBox.IsChecked = True - 'Get the check box appearance. - Dim appearance As PdfXfaCheckBoxAppearance = loadedCheckBox.CheckBoxAppearance - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the existing combo box fields of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - - Gets or sets the default index of the combo box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected index - loadedComboBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or Sets the default value of the combo box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded combo box field. - PdfLoadedXfaComboBoxField loadedComboBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["comboBoxField[0]"] as PdfLoadedXfaComboBoxField; - //Set the combo box selected value - loadedComboBoxField.SelectedValue = "English"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded combo box field. - Dim loadedComboBoxField As PdfLoadedXfaComboBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("comboBoxField[0]"), PdfLoadedXfaComboBoxField) - 'Set the combo box selected value - loadedComboBoxField.SelectedValue = "English" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the hidden items of combo box field. - - - - - Represents the loaded date time field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the date time - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get or sets the date field format - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Get the date time format. - PdfXfaDateTimeFormat format = loadedDateTimeField.Format; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Get the date time format. - Dim format As PdfXfaDateTimeFormat = loadedDateTimeField.Format - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Set the date field pattern - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded date time field. - PdfLoadedXfaDateTimeField loadedDateTimeField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["dateTimeField[0]"] as PdfLoadedXfaDateTimeField; - //Set the value - loadedDateTimeField.Value = DateTime.Now; - //Set the pattern. - loadedDateTimeField.Pattern = "date{MMMM DD, YYYY}"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded date time field. - Dim loadedDateTimeField As PdfLoadedXfaDateTimeField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("dateTimeField[0]"), PdfLoadedXfaDateTimeField) - 'Set the value - loadedDateTimeField.Value = Date.Now - 'Set the pattern. - loadedDateTimeField.Pattern = "date{MMMM DD, YYYY}" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded XFA document. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Intialize the new instance of the class. - - The input file path. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file path. - The password for the input document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf", "password"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf", "password") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file stream. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(new MemoryStream(File.ReadAllBytes("input.pdf"))); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument(New MemoryStream(File.ReadAllBytes("input.pdf"))) - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initialize the new instance of the class. - - The input file stream. - Password of the input file. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument(new MemoryStream(File.ReadAllBytes("input.pdf")), "password"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument(New MemoryStream(File.ReadAllBytes("input.pdf")), "password") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The file path. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The stream where to save the document. - The HTTP response stream object. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - MemoryStream ms = new MemoryStream(); - //Save the document - loadedDocument.Save(ms, Response); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - Dim ms As MemoryStream = New MemoryStream() - 'Save the document - loadedDocument.Save(ms, Response) - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - The name of the document. - The HTTP response stream object. - The type of the reading document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf", Response, HttpReadType.Open); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf", Response, HttpReadType.Open) - 'Close the document - loadedDocument.Close() - - - - - - Save the document - - File stream to be stored in the output document. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - MemoryStream ms = new MemoryStream(); - //Save the document - loadedDocument.Save(ms); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - Dim ms As MemoryStream = New MemoryStream() - 'Save the document - loadedDocument.Save(ms) - 'Close the document - loadedDocument.Close() - - - - - - Close all the instance of the XFA document. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Flatten the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Set flatten. - loadedDocument.Flatten = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Set flatten. - loadedDocument.Flatten = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get value of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents field collection of loaded XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initializes a new instance of the class. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Add the loaded field to the field collection. - - - - - - - Get fields name. - - - - - - - Add new XFA form fields. - - The XFA form field to be added in the collection. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Create a new PdfXfaField. - PdfXfaTextBoxField field = new PdfXfaTextBoxField("text1", new SizeF(100, 20)); - field.Caption.Text = "Text Field"; - //Add the text box field to existing field collection. - loadedForm.Fields.Add(field); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Create a new PdfXfaField. - Dim field As New PdfXfaTextBoxField("text1", New SizeF(100, 20)) - field.Caption.Text = "Text Field" - 'Add the text box field to existing field collection. - loadedForm.Fields.Add(field) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Remove the specified XFA field. - - The lField item which is to be removed to the XFA form. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - PdfLoadedXfaForm subform1 = loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = subform1.Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Remove the field. - subform1.Remove(loadedTextBox); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - Dim subform1 As PdfLoadedXfaForm = (TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm) - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast(subform1.Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Remove the field. - subform1.Remove(loadedTextBox) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Remove the field with specific index. - - The index of the field has been removed. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Remove the field at index. - loadedForm.Fields.RemoveAt(1); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Remove the field at index. - loadedForm.RemoveAt(1) - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Clear all the fields. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Crear all the fields. - loadedForm.Fields.Clear(); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Clear all the fields. - loadedForm.Fields.Clear() - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Returns an enumerator that iterates through a collection. - - Returns an enumerator that iterates through a collection. - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - foreach (PdfLoadedXfaField field in loadedForm.Fields) - { - if(field is PdfLoadedXfaTextBoxField) - { - (field as PdfLoadedXfaTextBoxField).Text = "Test"; - } - } - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - For Each field As PdfLoadedXfaField In loadedForm.Fields - If TypeOf field Is PdfLoadedXfaTextBoxField Then - TryCast(field, PdfLoadedXfaTextBoxField).Text = "Test" - End If - Next - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Returns field with specified name. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Return's the field with the specified index. - - - - - - - Field collection. - - - - - Gets the field count. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the fields count. - int count = loadedForm.Fields.Count; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Gets the fiels count. - Dim count As Integer = loadedForm.Fields.Count - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents Loaded XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - current document catalog - - - - - Represents the XFA array - - - - - Represents the XFA Field collections - - - - - Repersents the XFA image array - - - - - Represents the XFA field names - - - - - Represents the XFA subform names - - - - - Loaded pdf document - - - - - List of XFA fields - - - - - indicating the field count of the current form - - - - - Represent the data set writer of XFA - - - - - XFA document - - - - - Represents the Data set Document - - - - - used to indexing purpose - - - - - denote the node counts - - - - - Represent the complete field names of the XFA - - - - - Represents the acroform field. - - - - - Represents the area name. - - - - - Represents the form name. - - - - - Represents the width of the form. - - - - - Represents the height of the form. - - - - - Represents the location of the form. - - - - - Represents the form visibility. - - - - - Represents the readonly. - - - - - Size of the form. - - - - - Reperesents the XFA form type - - - - - Represents flatten document. - - - - - Represents point. - - - - - Load the XFA documents - - - - - - Save the XFA document - - - - - - Get the subform name - - - - - - - save main form - - - - - Fill and save the subforms and fields - - - - - - - Read the main form details - - - - - Read subForms and fields - - - - - - - Get the fields collection by field name - - Name of the field - Collection of XFA fields - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get fields by name. - PdfLoadedXfaField[] fields = loadedForm.TryGetFieldsByName("InvoiceNumber[0]"); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get fields by name. - Dim fields As PdfLoadedXfaField() = loadedForm.TryGetFieldsByName("InvoiceNumber[0]") - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the XFA field using complete field name - - complete name of the field - - - - - Get the XFA field using complete field name - - Complete name of the field - Return the XFA field - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("invoice.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get fields by name. - PdfLoadedXfaField field = loadedForm.TryGetFieldByCompleteName("form1[0].#subform[0].Header[0].InvoiceNumber[0]"); - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("invoice.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get fields by name. - Dim fields As PdfLoadedXfaField() = loadedForm.TryGetFieldByCompleteName("form1[0].#subform[0].Header[0].InvoiceNumber[0]") - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the name - - - - - - - Save the attributes of the current form - - - - - - Get the complete field names - - - - - - Get complete field names - - - - - - Get the fields by name - - - - - - - Save the new XFA fields - - - - - - Get the loaded fields - - - - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Set readonly. - loadedForm.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Set readonly. - loadedForm.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the visibility of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Set visibility. - loadedForm.Visibility = PdfXfaVisibility.Visible; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Set visibility. - loadedForm.Visibility = PdfXfaVisibility.Visible - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form width. - float width = loadedForm.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form width. - Dim width As Single = loadedForm.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form height. - float height = loadedForm.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form height. - Dim height As Single = loadedForm.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the form location. - PointF location = loadedForm.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the form location. - Dim loaction As PointF = loadedForm.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents loaded form fields collection. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - catalog of the current document - - - - - Represents the XFA array - - - - - Get all the field names - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the field names. - string[] fieldNames = loadedForm.FieldNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the field names. - Dim fieldNames As String() = loadedForm.FieldNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gett all the subforms name - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the subform names. - string[] subformNames = loadedForm.SubFormNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the subform names. - Dim subformNames As String() = loadedForm.SubFormNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the complete names of the fields - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the complete field names. - string[] completeFieldNames = loadedForm.CompleteFieldNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the complete field names. - Dim completeFieldNames As String() = loadedForm.CompleteFieldNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the area name of the form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the area names. - string[] areaNames = loadedForm.AreaNames; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the area names. - Dim areaNames As String() = loadedForm.AreaNames - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded list box field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected index - loadedListBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected index - loadedListBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the items to multi select - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Get the selected items. - string[] selectedItems = loadedListBoxField.SelectedItems; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Get the seleted items. - Dim selectedItems As String() = loadedListBoxField.SelectedItems - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - - Gets or sets the default index of the list box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected index - loadedListBoxField.SelectedIndex = 1; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected index - loadedListBoxField.SelectedIndex = 1 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the default value of the list box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Set the list box selected value - loadedListBoxField.SelectedValue = "English"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Set the list box selected value - loadedListBoxField.SelectedValue = "English" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the if the field is multi select or not - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded list box field. - PdfLoadedXfaListBoxField loadedListBoxField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["listBoxField[0]"] as PdfLoadedXfaListBoxField; - //Get the selection mode - PdfXfaSelectionMode mode = loadedListBoxField.SelectionMode; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded list box field. - Dim loadedListBoxField As PdfLoadedXfaListBoxField = TryCast(TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm).Fields("listBoxField[0]"), PdfLoadedXfaListBoxField) - 'Get the seletion mode. - Dim mode As PdfXfaSeletionMode = loadedListBoxField.SelectionMode - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded numeric field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Save acroform textbox field. - - - - - - - - - Gets or sets the Value of the numeric Field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the comb cells - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //fill the numeric field - loadedNumericField.NumericValue = 945322; - //Set the comb length. - loadedNumericField.CombLenght = 6; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'fill the numeric field - loadedNumericField.NumericValue = 945322 - 'Set the comb length. - loadedNumericField.CombLenght = 6 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the numeric field type - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //Get the numeric field type. - PdfXfaNumericType type = loadedNumericField.FieldType; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'Get the numeric field type. - Dim type As PdfXfaNumericType = loadedNumericField.FieldType - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the pattern string - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded numeric field. - PdfLoadedXfaNumericField loadedNumericField = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["numericField[0]"] as PdfLoadedXfaNumericField; - //Get the pattern string. - string pattern = loadedNumericField.PatternString; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded numeric field. - Dim loadedNumericField As PdfLoadedXfaNumericField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("numericField[0]"), PdfLoadedXfaNumericField) - 'Get the pattern string. - Dim pattern As String = loadedNumericField.PatternString - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the radio button field of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked state of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the radio button size - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the radio button size. - float size = loadedRadioButtonField.RadioButtonSize; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the radio button size. - Dim size As Single = loadedRadioButtonField.RadioButtonSize - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the checked styles of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the checked style. - PdfXfaCheckedStyle style = loadedRadioButtonField.CheckedStyle; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the checked style - Dim style As PdfXfaCheckedStyle = loadedRadioButtonField.CheckedStyle - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the appearance of the radio button - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Get the radio button appearance. - PdfXfaCheckBoxAppearance appearance = loadedRadioButtonField.RadioButtonAppearance; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Get the radio button appearance. - Dim appearance As PdfXfaCheckBoxAppearance = loadedRadioButtonField.RadioButtonAppearance - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the loaded radio button group of the XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Add Radiobutton fields - - - - - - Read the exclGroup items - - - - - - Set the Default Index - - - - - Gets or sets the field is readonly - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Set as read only. - loadedRadioButtonGroup.ReadOnly = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Set as read only. - loadedRadioButtonGroup.ReadOnly = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the visibility of the field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the visibility. - PdfXfaVisibility visibility = loadedRadioButtonGroup.Visibility; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the visibility. - Dim visibility As PdfXfaVisibility = loadedRadioButtonGroup.Visibility - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the width - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the width. - float width = loadedRadioButtonGroup.Width; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the width. - Dim width As Single = loadedRadioButtonGroup.Width - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the height - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the height. - float height = loadedRadioButtonGroup.Height; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the height. - Dim height As Single = loadedRadioButtonGroup.Height - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the location - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the location of the field. - PointF location = loadedRadioButtonGroup.Location; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the location of the field. - Dim location As PointF = loadedRadioButtonGroup.Location - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Get the list of the . - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the radio button group - PdfLoadedXfaRadioButtonGroup loadedRadioButtonGroup = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["radioButtonGroup[0]"] as PdfLoadedXfaRadioButtonGroup; - //Get the radio button field - PdfLoadedXfaRadioButtonField loadedRadioButtonField = loadedRadioButtonGroup.Fields[0] as PdfLoadedXfaRadioButtonField; - //Check the radio button - loadedRadioButtonField.IsChecked = true; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the radio button group - Dim loadedRadioButtonGroup As PdfLoadedXfaRadioButtonGroup = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("radioButtonGroup[0]"), PdfLoadedXfaRadioButtonGroup) - 'Get the radio button field - Dim loadedRadioButtonField As PdfLoadedXfaRadioButtonField = TryCast(loadedRadioButtonGroup.Fields(0), PdfLoadedXfaRadioButtonField) - 'Check the radio button - loadedRadioButtonField.IsChecked = True - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Represents the text box field of an existing PDF document`s XFA form. - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The name of the field. - The value of the field. - - - - Read the text box field. - - - - - - - Save the acroform textbox field. - - - - - - - - - save the textBox - - - - - - Gets or sets the maximum width of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set maxium width. - loadedTextBox.MaximumWidth = 200; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set maximum width. - loadedTextBox.MaximumWidth = 200 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the maximum height of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set maxium height. - loadedTextBox.MaximumHeight = 40; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set maximum height. - loadedTextBox.MaximumHeight = 40 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the minimum width of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set minimum width. - loadedTextBox.MinimumWidth = 100; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set minimum width. - loadedTextBox.MinimumWidth = 100 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the minimum height of the textbox - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set minimum height. - loadedTextBox.MinimumHeight = 20; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set minimum height. - loadedTextBox.MinimumHeight = 20 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the value of the Text Box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //fill the text box - loadedTextBox.Text = "First Name"; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'fill the text box - loadedTextBox.Text = "First Name" - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the type of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the text box type. - PdfXfaTextBoxType type = loadedTextBox.Type; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the text box type. - Dim type As PdfXfaTextBoxType = loadedTextBox.Type - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the password char of the text box field - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the password character. - char password = loadedTextBox.PasswordCharacter; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the password character. - Dim password As Char = loadedTextBox.PasswordCharacter - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the maximum char of the text box - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Set the maximum length. - loadedTextBox.MaximumLength = 10; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Set the maximum length. - loadedTextBox.MaximumLength = 10 - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the comb cells count; - - - - //Load the existing PDF document - PdfLoadedXfaDocument loadedDocument = new PdfLoadedXfaDocument("input.pdf"); - //Load the existing XFA form - PdfLoadedXfaForm loadedForm = loadedDocument.XfaForm; - //Get the loaded text box field. - PdfLoadedXfaTextBoxField loadedTextBox = (loadedForm.Fields["subform1[0]"] as PdfLoadedXfaForm).Fields["text[0]"] as PdfLoadedXfaTextBoxField; - //Get the comb length. - int combLength = loadedTextBox.CombLength; - //Save the document - loadedDocument.Save("output.pdf"); - //Close the document - loadedDocument.Close(); - - - 'Load the existing PDF document - Dim loadedDocument As New PdfLoadedXfaDocument("input.pdf") - 'Load the existing XFA form - Dim loadedForm As PdfLoadedXfaForm = loadedDocument.XfaForm - 'Get the loaded text box field. - Dim loadedTextBox As PdfLoadedXfaTextBoxField = TryCast((TryCast(loadedForm.Fields("subform1[0]"), PdfLoadedXfaForm)).Fields("text[0]"), PdfLoadedXfaTextBoxField) - 'Get the comb length. - Dim combLength As Integer = loadedTextBox.CombLength - 'Save the document - loadedDocument.Save("output.pdf") - 'Close the document - loadedDocument.Close() - - - - - - Gets or sets the hightlight mode of the button field - - - - - Gets or sets the mouse rollover text - - - - - Gets or sets the mouse down text of the button field - - - - - Gets or sets the content of the button field - - - - - Gets or sets the border of the circle - - - - - Gets or sets the tool tip of the circle - - - - - Gets or sets the start angle of the arc - - - - - Gets or sets the sweep angle of the Arc - - - - - Gets or sets the apperance of the circle field - - - - - Gets or sets the rotation angle - - - - - Gets or sets width of the field - - - - - Gets or sets height of the field - - - - - Get the content area - - - - - - Draw the rectangle field to PDF document. - - - - - - - Gets or sets the border - - - - - Gets or sets the tool tip - - - - - Gets or sets the cornor shaps - - - - - Gets or sets the rotation angle - - - - - Draw the tex to the PDF document. - - - - - - - Gets or sets the text - - - - - Draw the background color. - - - - - - Draw the edge - - - - - - - - - Get pens dash style. - - - - - - - Represents base class of XFDF. - - - - - Initializes a new instance of the class. - - The filename. - - - - Identify push button field. - - - - - Identify check box field. - - - - - Identify radio button field. - - - - - Identify text field. - - - - - Identify listbox field. - - - - - Identify combobox field. - - - - - Identify signature field. - - - - - Identify that field has no type. - - - - - Specifies the format of Export or Import data. - - - - //Load an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("SourceForm.pdf"); - // Load the existing form - PdfLoadedForm form = ldoc.Form; - // Export the form data as XML file - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf"); - - - 'Load an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("SourceForm.pdf") - ' Load the existing form - Dim form As PdfLoadedForm = ldoc.Form - ' Export the form data as XML file - form.ExportData("Export.xml", DataFormat.Xml, "SourceForm.pdf") - - - Class - Class - - - - Specifies XML file format - - - - - Specifies Forms Data Format file format - - - - - Specifies XFDF file format. - - - - - Specifies JSON file format. - - - - - You can use this class to replace the system unavailable fonts. - - - - - Raises after the specified font is not available in the system. - - - - - specifies the custom size of the converted image. - - - - - specifies the horizontal DPI of the resultant image. - - - - - specifies the Vertical DPI of the resultant image. - - - - - specifies Whether need to maintain the pdf page size. - - - - - The delegate of the fontnotfound event handler. - - - - - Gets the used font from the document. - - - - - Gets and set the alternate font for the respective fonts. - - - - - The Syncfusion.Pdf.Parsing namespace contains classes, which are used to load or modify an existing PDF document. - - - - - Represents a PdfLoadedDocument. You can use this class to load or modify an existing PDF document - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - String contain either user or owner password. - - - - - The stream with the document data. - - - - - Indicates whether the document was encrypted. - - - - - Indicates whether the document was Pdf Viewer document. - - - - - Stores loaded form. - - - - - Collection of loaded and created pages. - - - - - Bookmarks of the document. - - - - - Named destination of the document. - - - - - Indicates whether the stream should be closed on dispose. - - - - - Indicates whether the object was disposed. - - - - - Internal stream - - - - - Defines the color space of the document - - - - - Defines the attachment collection of the document - - - - - String contain either user or owner password. - - - - - Defines the Pdf Page Label. - - - - - Defined the Pdf Loaded Page Label Collection - - - - - Check whether the Page Label Enabled or not. - - - - - Indicates is xfa form or not. - - - - - Indicates whether PDF document is Extended feature enabled. - - - - - Holds the file name for file saving operation. - - - - - Holds the conformance level of the loaded document. - - - - - Check whether the document is linearized or not. - - - - - Private variable to store the pdf portfolio - - - - - Repairing wrong offset values - - - - - Gets or sets the value whether to skip the changes made in the document to be saved - - - - - Holds the dublin core values of the loaded document. - - - - - Internal variable used to store the font information - - - - A relative or absolute path for the file. - /// This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - // Loads an existing PDF Document - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - // Save the document to a disk - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Loads an existing PDF Document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Save the document to a disk - doc.Save("Output.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class with the specified input file path and repair document - - A relative or absolute path for the file. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. - The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Loads an existing PDF Document - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf", true); - // Save the document to a disk - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Loads an existing PDF Document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", True) - ' Save the document to a disk - doc.Save("Output.pdf") - doc.Close(True) - - - Class - - - - Initializes a new instance of the class with the specified input file path and password - - A relative or absolute path for the file. - The password (user or owner) of the encrypted document to open. - - - // Load the PDF document with password. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf","password"); - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Load the PDF document with password. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", "password") - doc.Save("Output.pdf") - doc.Close(True) - - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - - Initializes a new instance of the class with the specified password and repair document. - - A relative or absolute path for the file. - The password (user or owner) of the encrypted document to open. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. - The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Load the PDF document with password. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf", "password", true); - doc.Save("Output.pdf"); - doc.Close(true); - - - ' Load the PDF document with password. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf", "password", True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified byte array. - - The array of bytes containing the PDF document to load. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with specified byte array and repair document. - - The array of bytes containing the PDF document to load. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData, true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData, True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified byte array and password. - - The array of bytes containing the PDF document to load. - The password (user or owner) of the encrypted document. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData,"password"); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData,"password") - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The array of bytes containing the PDF document to load. - The password (user or owner) of the encrypted document. - True to repair the document to prevent document corruption - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Create a byte array of file stream length - byte[] pdfData = new byte[file2.Length]; - //Read block of bytes from stream into the byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)); - // Load the byte array - PdfLoadedDocument doc = new PdfLoadedDocument(pdfData,"password",true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Create a byte array of file stream length - Dim pdfData() As Byte = New Byte(file2.Length){} - 'Read block of bytes From stream Into the Byte array - file2.Read(pdfData,0,System.Convert.ToInt32(pdfData.Length)) - ' Load the byte array - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(pdfData,"password",True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class with the specified stream. - - The stream containing the PDF document to load. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load - True to repair the document to prevent document corruption. - This constructor loads the document and also repairs the wrong offsets. The repairing engine is not capable of fixing all kinds of corruption and the process may delay the loading time depending on the type of issue. - - - Stream file2 = new FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, true); - doc.Save("Output.pdf"); - doc.Close(true); - - - Dim file2 As Stream = New FileStream("Input.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, True) - doc.Save("Output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load. - The password (user or owner) of the encrypted document. - - - Stream file2 = new FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, "password"); - doc.Save("Samplepdf.pdf"); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, "password") - doc.Save("Samplepdf.pdf") - - - - - - Initializes a new instance of the class. - - The stream containing the PDF document to load. - The password (user or owner) of the encrypted document. - True to repair the document to prevent document corruption. - - - Stream file2 = new FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read); - // Load the stream - PdfLoadedDocument doc = new PdfLoadedDocument(file2, "password", true); - doc.Save("Samplepdf.pdf"); - - - Dim file2 As Stream = New FileStream("sample.pdf", FileMode.Open, FileAccess.Read, FileShare.Read) - ' Load the stream - Dim doc As PdfLoadedDocument = New PdfLoadedDocument(file2, "password", True) - doc.Save("Samplepdf.pdf") - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Creates the stream. - - The filename. - The proper file stream. - - - - Creates the stream. - - The file content. - The proper memory stream. - - - - Saves the document into the same stream or file. - - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - ldoc.FileStructure.Version = PdfVersion.Version1_6; - // Save the changes in the same document. - ldoc.Save(); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ldoc.FileStructure.Version = PdfVersion.Version1_6 - ' Save the changes in the same document. - ldoc.Save() - ldoc.Close(True) - - - Class - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Image with respect to dpi specified. - - The page index to be converted into image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified page as Image with custom resolution - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - Whether need to maintain the pdf page size - Returns the specified page as image with custom size - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified page as image with custom size and resolution - - - - Exports the specified page as Image - - The page index to be converted into image - Specifies the instance of the imageexportsettingclass - Returns the specified page as Image - - - - Exports the specified pages as Images - - The starting page index - The ending page index - Returns the specified pages as Images - - - - Exports the specified pages as Images with respect to dpi specified. - - The starting page index - The ending page index - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified pages as Images with custom resolution - - - - Exports the specified pages as Images - - The starting page index - The ending page index - The custom size of the converted image - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size - - - - Exports the specified pages as Images - - The starting page index - The ending page index - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size and resolution - - - - Returns the page number and rectangle positions of the text matchs - - The text to be searched - Holds the page number and rectangle positions of the text matches - - - - Returns the TextSearchResultCollection instance which contains collection of MatchedItemCollection - - List of items to be searched. - Instance of TextSearchResultCollection - Returns true if found any match - - - - Returns the dictionary of page number and list of text search items in the PDF document. - - List of items to be searched. - The dictionary of page number and list of search results. - Returns true if found any match - - - - Returns the dictionary of page number and list of captured terms in the PDF document. - - List of items to be searched. - The dictionary of page number and list of search results. - Search option to find the texts - Returns true if found any match - - - - Splits a PDF document into individual pages. - - The name of the individual destination pages. - - This method splits a PDF document to individual pages. Each page is named using destFilePattern parameter after which a numeric index is appended. - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Input.pdf"); - // Splits the source document - ldoc.Split("Output.pdf"); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Splits the source document - ldoc.Split("Output.pdf") - ldoc.Close(True) - - - Class - - - - Splits a PDF document into individual pages - - The name of the individual destination pages - The number that is use as a start - point for the page numbering. - This method splits a PDF document to individual pages. Each page is named using destFilePattern parameter after which a numeric index is appended. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - - - // Loads an existing document - PdfLoadedDocument ldoc = new PdfLoadedDocument("Form.pdf"); - // Splits the source document - ldoc.Split("pdfDoc.pdf", 1); - ldoc.Close(true); - - - ' Loads an existing document - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("Form.pdf") - ' Splits the source document - ldoc.Split("pdfDoc.pdf", 1) - ldoc.Close(True) - - - - - - Creates a new form to the loaded document - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create form. - document.CreateForm(); - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(document.Pages[0], "textBox1"); - field.Bounds = new RectangleF(0, 0, 100, 30); - field.Text = "Text Box"; - //Add fields to form. - document.Form.Fields.Add(field); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create form. - document.CreateForm() - 'Create new text box field. - Dim field As New PdfTextBoxField(document.Pages(0), "textBox1") - field.Bounds = New RectangleF(0, 0, 100, 30) - field.Text = "Text Box" - 'Add fields to form. - document.Form.Fields.Add(field) - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a PDF attachments to the loaded document - - The collection of attachments in the loaded document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create attachment collection. - PdfAttachmentCollection collection = document.CreateAttachment(); - PdfAttachment attachment = new PdfAttachment("Attachment1.pdf", File.ReadAllBytes("input.pdf")); - //Add the attachment to the attachment collection. - collection.Add(attachment); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create attachment collection. - Dim collection As PdfAttachmentCollection = document.CreateAttachment() - Dim attachment As New PdfAttachment("Attachment1.pdf", File.ReadAllBytes("input.pdf")) - 'Add the attachment to the attachment collection. - collection.Add(attachment) - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a bookmarks collection to the loaded document. - - The collection of bookmarks in the loaded document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create bookmark. - PdfBookmarkBase bookmark = document.CreateBookmarkRoot(); - bookmark.Add("Page1"); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create bookmark. - Dim bookmark As PdfBookmarkBase = document.CreateBookmarkRoot() - bookmark.Add("Page1") - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Creates a named destination collection to the loaded document. - - The collection of named destination in the loaded document. - - - - Saves the PDF document to the specified stream. - - The stream where to save the PDF document. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Extract the fonts from the loaded PDF document. - - Returns the collection of fonts. - Class - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - Clones pages and their resource dictionaries and adds them into the document. - - The loaded document. - The page being cloned. - The destinations. - - - - - Gets the form. - - The proper PdfForm instance. - - - - Release all the resource used by the document instance - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceDoc.pdf"); - //Creates a new page and adds it as the last page of the document - PdfPageBase page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 8f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, fontSize); - //Draw the text - g.DrawString("HelloWorld", font, brush, new RectangleF(47.835f, 236.835f, 564.165f, 553.937f)); - doc.Save("Dispose.pdf"); - // Dispose the object - doc.Dispose(); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - 'Create a page - Dim page As PdfPageBase = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 8f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, fontSize) - 'Draw the text - g.DrawString("HelloWorld", font, brush, New RectangleF(47.835f, 236.835f, 564.165f, 553.937f)) - doc.Save("Dispose.pdf") - ' Dispose the object - doc.Dispose() - - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed - and unmanaged resources; false to release only unmanaged resources. - - - - Releases all the resources allocated by this PDF document - - if set to true the document should - close its stream as well. - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Creates a shallow copy of the current document. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("SourceDoc.pdf"); - // Clone the existing the document - PdfLoadedDocument doc1 = doc.Clone() as PdfLoadedDocument; - // Save the cloned document to a disk - doc1.Save("ClonedPDF.pdf"); - doc1.Close(true); - - - 'Load an existing document - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("SourceDoc.pdf") - ' Clone the existing the document - Dim doc1 As PdfLoadedDocument = TryCast(doc.Clone(), PdfLoadedDocument) - ' Save the cloned document to a disk - doc1.Save("ClonedPDF.pdf") - doc1.Close(True) - - - - - - Gets the conformance level applied in the loaded document. - - Returns only levels supported by PdfConformanceLevel enum, otherwise None. This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Class - - - - Set the Page Label - - - - - Creates the bookmark destination dictionary. - - Hashtable that uses destination as a key and bookmark list as a value. - - - - Gets the named destination. - - The name of the destination. - The direct destination. - - - - Gets the named destination. - - The name of the destination. - A direct destination. - - - - Extracts the destination from dictionary or returns the object. - - The destination object. - The destination array. - - - - Loads the document. - - The file. - - - - Check whether the loaded PDF is tagged one. - - - - - Gets the PDF version - - - - - Gets the catalog of the loaded document. - - The PdfCatalog instance. - - - - To check the Need Appearance. - - dictionary - - - - Read and parse the document's info dictionary. - - - - - Checks whether the PDF document was encrypted. - - True if the document was encrypted. - - - - Gets the form dictionary. - - The form dictionary. - - - - Gets the form dictionary. - - The form dictionary. - - - - Get the collection dictionary - - - - - - Appends the new document data. - - The writer. - - - - Copies the old stream. - - The writer. - - - - Gets or sets a value indicating whether this form is XFA Form or AcroForm. - - - - - Indicates whether PDF document is Extended feature enabled. - - - - - Gets or sets the compression options. - - - - //Load an existing document - PdfLoadedDocument doc = new PdfLoadedDocument("input.pdf"); - //Create new compression options instance. - dfCompressionOptions options = new PdfCompressionOptions(); - //Set image compression. - options.CompressImages = true; - //Set image quality. - options.ImageQuality = 50; - //Optimize font. - options.OptimizeFont = true; - //Optimize page contents. - options.OptimizePageContents = true; - //Remove metadata information. - options.RemoveMetadata = true; - //Set compression options. - doc.CompressionOptions = options; - //Save and close the PDF document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Load an existing document - Dim doc As New PdfLoadedDocument("input.pdf") - 'Create new compression options instance. - Dim options As New PdfCompressionOptions() - 'Set image compression. - options.CompressImages = True - 'Set image quality. - options.ImageQuality = 50 - 'Optimize font. - options.OptimizeFont = True - 'Optimize page contents. - options.OptimizePageContents = True - 'Remove metadata information. - options.RemoveMetadata = True - 'Set compression options. - doc.CompressionOptions = options - 'Save and close the PDF document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets or sets a value of the metadata Dublin core values. - - - - - Gests or sets the PdfPageLabel for the loaded PDF document page number. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Create page label with upper case roman letters and starts with 1 - PdfPageLabel label = new PdfPageLabel(); - label.NumberStyle = PdfNumberStyle.UpperRoman; - label.StartNumber = 1; - lDoc.LoadedPageLabel = label; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Create page label with upper case roman letters and starts with 1 - Dim label As PdfPageLabel = New PdfPageLabel() - label.NumberStyle = PdfNumberStyle.UpperRoman - label.StartNumber = 1 - lDoc.LoadedPageLabel = label - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Get and Set the Password. - - - - - Gets the list of attachments embedded in the document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Gets the collection of attachments embedded in the document. - PdfAttachmentCollection collection = lDoc.Attachments; - // Creating an attachment - PdfAttachment attachment = new PdfAttachment("logo.jpeg"); - attachment.FileName = "Syncfusion Logo"; - // Adding attachments to an existing document - collection.Add(attachment); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Gets the collection of attachments displayed on a PDF page. - Dim collection As PdfAttachmentCollection = lDoc.Attachments - ' Creating an attachment - Dim attachment As PdfAttachment = New PdfAttachment("logo.jpeg") - attachment.FileName = "Syncfusion Logo" - ' Adding attachments to an existing document - collection.Add(attachment) - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets or set the portfolio information associated with this document - - Class - Class - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Create a new portfolio - document.PortfolioInformation = new PdfPortfolioInformation(); - //set the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile; - //Create the attachment - PdfAttachment pdfFile = new PdfAttachment("CorporateBrochure.pdf"); - pdfFile.FileName = "CorporateBrochure.pdf"; - //Set the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile; - //Add the attachment to the document - document.Attachments.Add(pdfFile); - //Save and close the PDF document. - document.Save("output.pdf"); - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Create a new portfolio - document.PortfolioInformation = New PdfPortfolioInformation() - 'set the view mode of the portfolio - document.PortfolioInformation.ViewMode = PdfPortfolioViewMode.Tile - 'Create the attachment - Dim pdfFile As New PdfAttachment("CorporateBrochure.pdf") - pdfFile.FileName = "CorporateBrochure.pdf" - 'Set the startup document to view - document.PortfolioInformation.StartupDocument = pdfFile - 'Add the attachment to the document - document.Attachments.Add(pdfFile) - 'Save and close the PDF document. - document.Save("output.pdf") - document.Close(True) - - - - - - Gets or sets the color space of the document. This property can be used to create PDF document in RGB, Grayscale or CMYK color spaces. By default the document uses RGB color space. - - This property has impact on the new created pages only. - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Sets the documents colorSpace as GrayScale - lDoc.ColorSpace = PdfColorSpace.GrayScale; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Sets the documents colorSpace as GrayScale - lDoc.ColorSpace = PdfColorSpace.GrayScale - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - - - - Gets the PDF form fields included in the document. - - - - // Load the PDF form - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Gets the form from the existing document - PdfLoadedForm form = lDoc.Form; - // Reading field element - PdfLoadedTextBoxField textField = form[0] as PdfLoadedTextBoxField; - textField.Text = "Syncfusion"; - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Gets the form from the existing document - Dim form As PdfLoadedForm = lDoc.Form - ' Reading field element - Dim textField As PdfLoadedTextBoxField = TryCast(form(0), PdfLoadedTextBoxField) - textField.Text = "Syncfusion" - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the document's collection of pages. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("Input.pdf"); - // Reading page collection from an existing document - PdfLoadedPageCollection pageCollection = lDoc.Pages; - //Creates a new page - pageCollection.Add(); - lDoc.Save("Output.pdf"); - lDoc.Close(true); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - ' Reading page collection from an existing document - Dim pageCollection As PdfLoadedPageCollection = lDoc.Pages - ' Create a page - pageCollection.Add() - lDoc.Save("Output.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the list of bookmarks in the PDF document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("sourceDoc.pdf"); - // Reading bookmark collection from an existing document - PdfBookmarkBase bm = lDoc.Bookmarks; - // Creates a new bookmark - PdfBookmark newbm = bm.Add("Chapter1"); - newbm.Color = Color.DarkBlue; - newbm.TextStyle = PdfTextStyle.Bold; - newbm.Destination = new PdfDestination( lDoc.Pages[0]); - lDoc.Save("BookMark.pdf"); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - ' Reading bookmark collection from an existing document - Dim bm As PdfBookmarkBase = lDoc.Bookmarks - ' Creates a new bookmark - Dim newbm As PdfBookmark = bm.Add("Chapter1") - newbm.Color = Color.DarkBlue - newbm.TextStyle = PdfTextStyle.Bold - newbm.Destination = New PdfDestination(lDoc.Pages(0)) - lDoc.Save("BookMark.pdf") - - - Class - Class - - - - Gets the list of named destinations in the PDF document. - - - - // Loads an existing document - PdfLoadedDocument lDoc = new PdfLoadedDocument("sourceDoc.pdf"); - // Reading named destination collection from an existing document - PdfNamedDestinationCollection destinationCollection = lDoc.NamedDestinationCollection; - // Creates a new named destination - PdfNamedDestination newNamedDestination = new PdfNamedDestination("Chapter1"); - newNamedDestination.Destination = new PdfDestination( lDoc.Pages[0]); - destinationCollection.Add(newNamedDestination); - lDoc.Save("NamedDestination.pdf"); - - - ' Loads an existing document - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("sourceDoc.pdf") - ' Reading named destination collection from an existing document - Dim destinationCollection As PdfNamedDestinationCollection = lDoc.NamedDestinationCollection - ' Creates a new named destination - Dim newNamedDestination As PdfNamedDestination = New PdfNamedDestination("Chapter1") - newNamedDestination.Destination = New PdfDestination(lDoc.Pages(0)) - destinationCollection.Add(newNamedDestination) - lDoc.Save("NamedDestination.pdf") - - - Class - Class - - - - Gets number of pages. - - - - - Gets the conformance level applied in the loaded document. - - Returns only levels supported by PdfConformanceLevel enum, otherwise None. This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Class - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the confirmation level. - PdfConformanceLevel level = document.Conformance; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the confirmation level. - Dim level As PdfConformanceLevel = document.Conformance - 'Close the document. - document.Close(True) - - - - - - - Gets whether the document is linearized or not - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the document is linearisze. - bool linearizedDocument = document.IsLinearized; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the document is linearisze. - Dim linearizedDocument As Boolean = document.IsLinearized - 'Close the document. - document.Close(True) - - - - - - Gets whether the document has portfolio content or not - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Check portfolio - bool portfolio = document.IsPortfolio; - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Check portfolio - Dim portfolio As Boolean = document.IsPortfolio - 'Close the document. - document.Close(True) - - - - - - Gets the instance of the class. - - - - - Gets the document's information such as documents title, keywords, subject etc., - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get the document information. - PdfDocumentInformation inform = document.DocumentInformation; - //Get author of the document. - string author = inform.Author; - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Get the document information. - Dim inform As PdfDocumentInformation = document.DocumentInformation - 'Get author of the document. - Dim author As String = inform.Author - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Gets a value indicating whether the document was PDF viewer document. - - - - - Gets a value indicating whether the document was encrypted. - - - - - Gets whether the document is encrypted or not. - - - - //Load an existing document - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Gets whether the document is encrypted? - bool isEncrypted = document.IsEncrypted; - MemoryStream stream = new MemoryStream(); - //Save the document. - document.Save(stream); - //Close the document. - document.Close(true); - - - 'Load an existing document - Dim document As New PdfLoadedDocument("input.pdf") - 'Gets whether the document is encrypted? - Dim isEncrypted As Boolean = document.IsEncrypted - Dim stream As New MemoryStream() - 'Save the document. - document.Save(stream) - 'Close the document. - document.Close(True) - - - - - - Stores info about current node. - - - - - Internal variable used to store Kids values. - - - - - Internal variable used to store index value. - - - - - Initializes a new instance of the class. - - The kids. - - - - Initializes a new instance of the class. - - The kids. - The index. - - - - Represents the loaded named destination class. - - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection; - //Get the first named destination - PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination; - //Get the destination - PdfDestination dest = namedDestination.Destination; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the named destinations. - Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Get the first named destination - Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination) - 'Get the destination - Dim destination As PdfDestination = namedDestination.Destination - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - The dictionary. - The cross table. - - - - Gets the destination. - - The destination of named destination. - - - - - Gets or sets the named destination title. - - A string value which contains the named destination title - - - //Load the PDF document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Get all the named destinations. - PdfNamedDestinationCollection namedCollections = loadedDocument.NamedDestinationCollection; - //Get the first named destination - PdfLoadedNamedDestination namedDestination = namedCollections[0] as PdfLoadedNamedDestination; - //Get the named destination title. - string title = namedDestination.Title; - //Save and close the document - loadedDocument.Save("Output.pdf"); - loadedDocument.Close(true); - - - 'Load the PDF document. - Dim loadedDocument As New PdfLoadedDocument("Input.pdf") - 'Get all the named destinations. - Dim namedCollections As PdfNamedDestinationCollection = loadedDocument.NamedDestinationCollection - 'Get the first named destination - Dim namedDestination As PdfLoadedNamedDestination = TryCast(namedCollections(0), PdfLoadedNamedDestination) - 'Get the named destination title. - Dim title As String = namedDestination.Title - 'Save and close the document - loadedDocument.Save("Output.pdf") - loadedDocument.Close(True) - - - Class - Class - Class - - - - Interface of the objects that support Decryptable of their internals. - - - - - Decrypts the specified encryptor. - - The encryptor. - The curr obj number. - - - - Gets a value indicating whether [was encrypted]. - - true if [was encrypted]; otherwise, false. - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The data. - - - - Gets bytes of the stream. - - Stream to be converted. - Destination bytes. - - - - Gets bytes of the stream. - - Stream to be converted. - Indicates whether to write the whole stream. - Destination bytes. - - - - Converts a stream to bigendian format. - - A stream containing data. - A stream in bigendian format. - - - - Writes the specified symbol. - - The symbol. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Blocks the encryption. - - - - - Decompresses this instance. - - - - - Cleares a stream. - - - - - Saves the object using the specified writer. - - The writer. - - - - Decrypts the data using the specified encryptor. - - The encryptor. - The current object number. - - - - Decompresses the stream data. - - The data to decompress. - The filter name. - Uncompressed byte array. - - - - Returnes a compressor by its name. - - The name of the compressor. - IPDFCompressor interface. - - - - Performs postprocessing of the data for the filter specified. - - The data to process. - The filter. - Restored data. - - - - Normalizes the filter. If the filter array has only one element store that element - instead of entire array. - - - - - Compresses the content if it's required. - - The writer. - The compressed data. - - - - Adds a filter to the filter array. - - Name of the filter. - - - - Encrypts the stream content. - - The data. - The writer. - The encrypted content. - - - - Gets or sets the animation for this 3D artwork. - - - - - Gets or sets content of this stream. - - - - - Gets or sets the default view. - If there are no views, this value is ignored. If the value is outside of the valid range, the first view is considered to be default. - - - - - Gets or sets the code to execute when the 3D artwork is instantiated. - Javascript code to be executed when the 3D artwork is instantiated. - - - - - Gets the list of views for this 3D artwork. - - - - - Gets the internal stream. - - - - - Gets or sets the data. - - The modifications of the returned stream - have no impact on the real data. - - - - Gets or sets compression flag. - - true if compress; otherwise, false. - - - - Gets a value indicating whether the object was encrypted. - - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - Class used for implementing Advanced Encryption Standard algorithm. - - - - - Initializes a new instance of the Aes class. - - Key size. - Key bytes - - - - Encipher 16 bit input - - 16 bit Input - Output value - - - - Decipher 16-bit input - - - - - - - Dump - - - - - Dump key. - - - - - - Dump two by two. - - - - - - - Possible key sizes. - - - - - 128-bit. - - - - - 192-bit. - - - - - 256-bit. - - - - - Implements both the 128 bit and 256 bit AES encryption. - - - - - Block size for 128 bit encryption - - - - - Aes encryptor - - - - - Cypher Blocking Chain vector - - - - - vector that represents next block of the Chain - - - - - Offset of the initialization vector. - - - - - Buffer containing the initialization vector - - - - - Reprents the current process either encryption/decryption - - - - - Initializes a new instance of the AesEncryptor class. - - - - - Does the initial AES encryption process in CBC mode. - - input data stream. - Offset of input stream. - length of the input stream. - output encrypted stream. - input data stream. - - - - Does the final encryption after padding (PKCS7 standards). - - output encrypted stream. - current offset of the output stream. - - - - Calculates the correct block size for the given input data length - - length of the data. - - - - Calculates the length for padding - - length of the data. - - - - Does Cypher Blocking chain operation and calls for encryption. - - input data stream. - Offset of input stream. - output encrypted stream. - current offset of the output stream. - - - - Add padding in the PKCS7 standards. - - input data. - offset where the padding has to be done. - - - - Checks for the padding added in the encrypted cypher. - - input data. - - - - Get DER ecoded byte - - - - - - Represents the tag of the AsnObject - - - - - Stream used for encoding - - - - - Creates a new instance of the Asnobject - - - - - Creates a new instance of the Asnobject - - - - - - Encodes the AsnObject - - Input bytes - Encoded bytes - - - - Get the DER encoded bytes - - - - - - Calculates the correct length of the encoded bytes - - - - - - Represents the Asn1Boolean value - - - - - Creates a new instance of the As1Boolean object - - boolean value - - - - Creates a new instance of the As1Boolean object - - Bytes containg the boolean value - - - - Converts the boolean value to bytes - - Asn1Boolean object in bytes - - - - Encodes as Asn1object - - Encoded bytes - - - - Gets the vector list count - - - - - Builds the Asnobjects using the tag in the stream - - Tag of the Object - Tag number of the AsnObject - byte length - - - - - Builds the Asnobjects - - - - - - Represents the Asn1Integer - - - - - Creates a new instance of the As1Integer - - Asn1Integer value - - - - Returns the integer - - Encoded Bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Represernts the ASN1Null object - - - - - Returns null bytes - - null bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Seperator in the Oid - - - - - Represents the object identifier string - - - - - Creates a new instance of the Asn1ObjectIdentifier - - Oid String - - - - Creates a new instance of the Object Indentifier - - Oid in bytes - - - - Parses the Oid string and converts it to bytes - - Oid in bytes - - - - Encodes as Asn1Object - - Encoded bytes - - - - Creates the Oid String from the input bytes - - - Oid String - - - - Represents the final output stream - - - - - Creates a new instance of the Asn1OutputStream - - - - - Parses the given time stamp token - - AsnObject, either a sequence or set - Encoded bytes - - - - Parses the time stamp token with the given sequence - - Asnobject, either a sequence or set - Encoded bytes - - - - Calculates the correct output length for the given bytes - - input bytes - - - - object containing the Asn1Objects - - - - - Creates a new instance of the Asn1Sequence - - - - - Creates a new instance of the Asn1Sequence - - List containing the AsnObjects - - - - Encodes as Asn1Object - - Encoded bytes - - - - Returns the Asn1Objects in the sequence - - - - - Encodes as Asn1Object - - Encoded bytes - - - - AsnSequence which represents the Algorithm - - - - - Creates a new instance of the AlgorithmIdentifier class - - Object Identifeier - parameters - - - - Encodes as Asn1Object - - Encoded bytes - - - - for when the public key is raw bits... - - - - - To be signed - - - - - Return our time as DateTime. - - A date time. - - - - Get the public key of the subject of the certificate. - - The public key parameters. - - - - Return a Der encoded version of this certificate. - - A byte array. - - - - Create loading data from byte array. - - - - - - List of Asn Tags. - http://www.obj-sys.com/asn1tutorial/node124.html - - - - - Represents Cipher Block Chaining Mode - - - - - Initilaize the cipher - - - - - - - Size of the cipher - - - - - - Process a block - - - - - - - - - - Reset the cipher to the same state as it was after the last init. - - - - - Algorithm name - - - - - Indicates whether this cipher can handle partial blocks. - - - - - Returns a ObjectIdentifier for a give encoding. - - - - - - - Add more seed material to the generator. - - - - - - Add more seed material to the generator. - - - - - - Fill byte array with random values. - - - - - - Fill byte array with random values. - - - - - - - - initialize the cipher - - - - - - - Get the input size - - - - - - Get output size - - - - - - Process blocks - - - - - - - - - Name of the algorithm - - - - - Returns the size in bytes - - - - - - Returns the buffer length - - - - - - Updates the message digit - - - - - - Updates the message digit - - - - - - - - Retruns the final dighit values - - - - - - - - Reset - - - - - Retuns the agorithm name - - - - - Initialize the padding - - - - - - Add padding - - - - - - - - Pad count - - - - - - - get the padding name - - - - - Algorithm available for signatures since PDF 1.3 - - - - - Algorithm available for signatures since PDF 1.6 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Algorithm available for signatures since PDF 1.7 - - - - - Maps the digest IDs with the human-readable name of the digest algorithm. - - - - - Maps the name of a digest algorithm with its ID. - - - - - Cryptographic Message Syntax - - - - - CMS Advanced Electronic Signatures - - - - - Represent RSA Message digest signer - - - - - Signer Utility class contains methods that can not be specifically grouped into other classes. - - - - - Represents the Certificate object. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create new PDF certificate instance. - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "syncfusion"); - //Create new PDF signature instance. - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF certificate instance. - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "syncfusion") - 'Create new PDF signature instance. - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - User's crypt key set. - - - - - The high word of the dwFlags parameter. - - - - - The high word of the dwFlags parameter. - - - - - The high word of the dwFlags parameter - - - - - The high word of the dwFlags parameter - - - - - Encoding type. - - - - - Encoding type. - - - - - Provider being used. - - - - - Provider being used. - - - - - Encoding type. - - - - - High-word and low-word values combined using a bitwise OR operation. - - - - - Structure type. - - - - - CERT_RDN attribute. - - - - - Structure contains information for signing messages using a specified signing certificate context. - - - - - Certificate's version. - - - - - Certificate's serial number. - - - - - Certificate's issuer name. - - - - - Certificate's subject name. - - - - - Certificate's structure. - - - - - Signature length. - - - - - Date and time before which the certificate is not valid. - - - - - Date and time after which the certificate is not valid. - - - - - Initializes a new instance of the class with the path to the pfx file and the password. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The path to pfx file. - The password for pfx file. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file and the password. - - This constructor is not supported in WinRT and Silverlight. - The path to pfx file. - The password for pfx file. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file,password and storageflag - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The path to pfx file. - The password for pfx file. - The private key storage flag. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with the path to the pfx file,password and storageflag - - This constructor is not supported in WinRT and Silverlight. - The path to pfx file. - The password for pfx file. - The private key storage flag. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - - - - Creates new pdf certificate object. - - The certificate. - - - - - Initialize the new instance of the class. - - The X509 certificate. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Create a new PDF certificate instance using X509Certificate2 object. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Create a new PDF certificate instance using X509Certificate2 object. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - Gets the type of the certificates by. - - The storage type. - The cert list. - - - - Finds the certificate by subject. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The store type. - The certificate subject. - Returns the instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion"); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion") - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Finds the certificate by subject - - The Store type - Certificate subject - The Certificate store Location - Returns the instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns the Store location. - - - - - - - Returns the Store name - - - - - - - - Finds the certificate by serial number. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The certification system store type. - The certificate id. - PDF certificate instance. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load an existing PDF certificate. - PdfCertificate certificate = new PdfCertificate("certificate.Pfx", "password"); - //Get the serial number of the certificate. - byte[] data = certificate.SerialNumber; - //Get the store certificate. - PdfCertificate storeCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data); - //Creates a digital signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load an existing PDF certificate. - Dim certificate As New PdfCertificate("certificate.Pfx", "password") - 'Get the serial number of the certificate. - Dim data As Byte() = certificate.SerialNumber - 'Get the store certificate. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data) - 'Creates a digital signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initializes PdfCertificate object. - - - - - Initializes PdfCertificate object. - - - - - Initializes PdfCertificate object. - - Certificate's structure. - - - - Gets signature length. - - Signature length. - - - - Gets signature value. - - Signature string. - Signature value. - - - - Retrieves data from the file. - - Path to the file. - Data from the file if found, null otherwise. - - - - Converts FILETIME to DataTime. - - FILETIME struct. - DateTime struct. - - - - Decodes a structure. - - Code structure. - Decode value. - - - - Gets the certificate issuer. - - The handle of certificate context. - - - - - Checks whether arrays of bytes are equal. - - First array. - Second array. - True if data are equal, False otherwise. - - - - - Gets the serial number of a certificate.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The serial number of the certificate. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load an existing PDF certificate. - PdfCertificate certificate = new PdfCertificate("certificate.Pfx", "password"); - //Get the serial number of the certificate. - byte[] data = certificate.SerialNumber; - //Get the store certificate. - PdfCertificate storeCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data); - //Creates a digital signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load an existing PDF certificate. - Dim certificate As New PdfCertificate("certificate.Pfx", "password") - 'Get the serial number of the certificate. - Dim data As Byte() = certificate.SerialNumber - 'Get the store certificate. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySerialId(StoreType.MY, data) - 'Creates a digital signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - - - - - Certificate's structure. - - - - - The Syncfusion.Pdf.Security namespace contains classes for creating protected PDF document. - - - - - Represents a digital signature used for signing a PDF document. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Holds signature dictionary. - - - - - Holds pdf signature field. - - - - - Holds pdf Loaded signature field. - - - - - Holds pdf certificate. - - - - - Reason of signing. - - - - - Page on which signature field is initialized. - - - - - The CPU host name or physical location of the signing. - - - - - Information provided by the signer to enable a recipient to contact - the signer to verify the signature; for example, a phone number. - - - - - Holds a value which indicates certefication of the document. - - - - - Permissions of the certificated document. - - - - - Holds timestamping server - - - - - Document that holds page and this signature. That document should be signed. - - - - - Indicates whether the signature corresponds to signature field or not. - Note : We draw appearance in the case of signature field. - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - - Initializes a new instance of the class with the page, certificate and the signature name. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The current pdf page where signature will be replaced. - The pdf certificate. - Name of the signature. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with the PDF document, page, certificate - and the signature name. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The document, which has the page. - The page. - The certificate. - The name of the signature. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - - Initializes a new instance of the class with the PDF document, page, certificate - , signature name and the signature field. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The loaded document, which has the page. - The page. - The certificate. - The name of the signature. - The name of the loaded signature field - - - // Creates a new document - PdfLoadedDocument doc = new PdfLoadedDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfLoadedSignatureField signatureField = loadedDocument.Form.Fields["Signature"] as PdfLoadedSignatureField; - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature",signatureField); - doc.Save("SignedPdfSample.pdf"); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signatureField as PdfLoadedSignatureField = TryCast(loadedDocument.Form.Fields["Signature"],PdfLoadedSignature) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature",signatureField) - doc.Save("SignedPdfSample.pdf") - - - Class - Class - Class - Class - - - - - Handles the BeginSave event of the catalog document. - NOTE: Needed for certifying pdf document. - - The source of the event. - The instance containing the event data. - - - - Handles the BeginSave event of the Dictionary control. - - The source of the event. - The instance containing the event data. - - - - Gets the signature Appearance.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A object defines signature`s appearance. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - PdfAppearance appearance = signature.Appearence; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - Dim appearance As PdfAppearance = signature.Appearence - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets the signature Appearance.[Read-Only] - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A object defines signature`s appearance. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - PdfAppearance appearance = signature.Appearence; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - Dim appearance As PdfAppearance = signature.Appearence - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets signature location on the PDF page. - - This porperty is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Location = new PointF(100, 200); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Location = New PointF(100, 200) - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets bounds of the signature. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Location = new PointF(100, 200); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Location = New PointF(100, 200) - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets information provided by the signer to enable a recipient to contact - the signer to verify the signature; for example, a phone number. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.ContactInfo = "Syncfusion"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.ContactInfo = "Syncfusion" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets reason of signing. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Reason = "PDF is signed"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Reason = "PDF is signed" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the physical location of the signing. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.LocationInfo = "US"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.LocationInfo = "US" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets a value indicating certificate document or not. - NOTE: Works only with Adobe Reader 7.0.8 or higher. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - certificate document if true. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Certificated = true; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Certificated = True - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the permission for certificated document. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The document permission. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.DocumentPermissions = PdfCertificationFlags.AllowComments; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.DocumentPermissions = PdfCertificationFlags.AllowComments - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the signing certificate. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.ContactInfo = "Syncfusion"; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.ContactInfo = "Syncfusion" - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets a value indicating whether signature visible or not.[Read-Only] - - Signature can be set as invisible when its size is set to empty. This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Visible = false; - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Visible = False - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets time stamping server unique resource identifier. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Add time stamp. - signature.TimeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Add time stamp. - signature.TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets pdf signature field. - - - - - Gets whether to draw signature appearance or not. - - - - - Represents signature dictionary. - - - - - Name of type - - - - - Name of the filter. - - - - - Name of the filter. - - - - - Name of the document type. - - - - - Name of the taransformation parameters. - - - - - Holds pdf document for siging. - - - - - Holds pdf signature object. - - - - - Holds pdf certificate object. - - - - - First range length; - - - - - Second range index. - - - - - Start position byte range. - - - - - Position of the digest value for docMDP method. - - - - - Position of the digest value for FieldMDP method. - - - - - Internal variable to store dictionary. - - - - - Identifying the certificate chain - - - - - Representing the PDF stream - - - - - Inicates the range values - - - - - Creates new pdf signature dictionary object. - - The pdf document for signing. - The pdf signature. - The pdf certificate. - - - - Creates new pdf signature dictionary object. - - The pdf document for signing. - - - - Initializes a new instance of the class with specified document and signature. - - The pdf document for signing. - The signature to be added into the dictionary - - - - Adds required items. - - - - - Adds optional items. - - - - - Adds the location. - - - - - Adds the contact info. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds optional items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Adds required items to annotation dictionary. - - - - - Allow single instance of MDP signature. - - true if allow; otherwise, false. - - - - - - Adds the certification dictionary. - - The writer. - - - - Event handler of document saved. - - Sender of the event. - Event data. - - - - Saves range item. - - Writer object. - item value. - Position for save. - Point for save next item. - - - - Adds the certefication reference. - - - - - Creates timestamp request in ASN.1 format. - - SHA1 hash of data which need to be timestamped. - Stream where request will be written. - Request length - - - - Handles the BeginSave event of the pdf signature dictionary object. - - The source of the event. - The events arguments. - - - - Gets or sets a value indicating whether this is archive. - - true if archive; otherwise, false. - - - - Gets the element. - - - - - - Computing hash for Pdf digital signature. - - - - - Array of objects for hashing. - - - - - Contains ID's of Pdf objects. - - - - - Creating hashing object. - - - - - Hashes the document. - - The PdfDocument. - The hash byte array. - - - - Hashes the signature field. - - The page where signature is located. - - - - - Hashes the dictionary item. - - The PdfDictionary. - The dictionary item. - The crypto context. - The list of the Pdf objects. - - - - Hashes the name of the dictionary. - - The PdfDictionary. - The name of the dictionary. - The crypto context. - The list of the Pdf objects. - Is dictionary inheritable. - If dictionary is null then hash - either null. - - Returns state of the hashing. - - - - - Hashes the Pdf object. - - The object to hash. - The crypto context. - The list of the Pdf objects. - - - - Hashes the page. - - The current page for hashing. - The crypto context. - The list of the Pdf objects. - - - - Hashes the pages. - - The collection of Pdf pages. - The crypto context. - The list of the Pdf objects. - - - - Hashes the field. - - The PdfField. - The crypto context. - The list. - - - - Hashes the action. - - The PdfAction. - The crypto context. - The list of the Pdf objects. - - - - Hashes the annotations. - - The current page. - The crypto context. - The list of the Pdf objects. - - - - Hashes the annotation. - - The dictionary. - The crypto context. - The list of the Pdf objects. - - - - Hashes the embedded files. - - The dictionary. - The crypto context. - The list of the Pdf objects. - - - - Converts little endian characters to big endian. - - The input buffer. - - - - - Specifies the name of an icon to be used in displaying the sound annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Sets the sound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Sets the sound icon - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Speaker icon of sound link. - - - - - Microphone icon of sound link. - - - - - Specifies the type of icon to be used in displaying file attachment annotations. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.jpg"); - //Set the Attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.jpg") - 'Set the Attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Type of icon used in file attachment annotation. - - - - - Specifies the enumeration of the annotation flags. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Set the annotation flags to document annotation. - documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate; - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Set the annotation flags to document annotation. - documentAnnotation.AnnotationFlags = PdfAnnotationFlags.NoRotate - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Default value. - - - - - Represents invisible annotation flag's key. - - - - - Represents hidden annotation flag's key. - - - - - Represents print annotation flag's key. - - - - - Represents annotation flag's key with no zooming. - - - - - Represents annotation flag's key with no rotation. - - - - - Represents annotation flag's key with no view. - - - - - Represents read only annotation flag's key. - - - - - Represents locked annotation flag's key. - - - - - Annotation flag's key with no toggle view. - - - - - Specifies the enumeration of popup annotation icons. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates note popup annotation. - - - - - Indicates comment popup annotation. - - - - - Indicates help popup annotation. - - - - - Indicates insert popup annotation. - - - - - Indicates key popup annotation. - - - - - Indicates new paragraph popup annotation. - - - - - Indicates paragraph popup annotation. - - - - - Specifies the enumeration of rubber stamp annotation icons. - - - - //Load an existing document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("Input.Pdf"); - //Gets the annotation from loaded document. - PdfLoadedRubberStampAnnotation rubberStampAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedRubberStampAnnotation; - //Set the icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved; - //Save the document. - loadedDocument.Save("Output.pdf"); - //close the document - loadedDocument.Close(true); - - - 'Load an existing document. - Dim loadedDocument As New PdfLoadedDocument("Input.Pdf") - 'Gets the annotation from loaded document. - Dim rubberStampAnnotation As PdfLoadedRubberStampAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedRubberStampAnnotation) - 'Set the icon - rubberStampAnnotation.Icon = PdfRubberStampAnnotationIcon.Approved - 'Save the document. - loadedDocument.Save("Output.pdf") - 'close the document - loadedDocument.Close(True) - - - - - - Indicates approved rubber stamp annotation - - - - - Indicates AsIs rubber stamp annotation - - - - - Indicates confidential rubber stamp annotation - - - - - Indicates departmental rubber stamp annotation - - - - - Indicates draft rubber stamp annotation - - - - - Indicates experimental rubber stamp annotation - - - - - Indicates expired rubber stamp annotation - - - - - Indicates final rubber stamp annotation - - - - - Indicates for comment rubber stamp annotation - - - - - Indicates for public release rubber stamp annotation - - - - - Indicates not approved rubber stamp annotation - - - - - Indicates not for public release rubber stamp annotation - - - - - Indicates sold rubber stamp annotation - - - - - Indicates top secret rubber stamp annotation - - - - - Specifies the line ending style to be used in the Line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation linkAnnotation = new PdfLineAnnotation(points, "Line Annotation"); - linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond; - //Add this annotation to a new page. - page.Annotations.Add(linkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim linkAnnotation As New PdfLineAnnotation(points, "Line Annotation") - linkannotation.EndLineStyle = PdfLineEndingStyle.Diamond - 'Add this annotation to a new page. - page.Annotations.Add(linkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Square - - - - - Indicates Circle - - - - - Indicates Diamond - - - - - Indicates OpenArrow - - - - - Indicates ClosedArrow - - - - - Indicates None - - - - - Indicates ROpenArrow - - - - - Indicates Butt - - - - - IdicaIndicatestes RClosedArrow - - - - - Indicates Slash - - - - - Specifies the line border Style of the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF inkAnnotationBounds = new RectangleF(10, 40, 30, 30); - //To specify the line points - List(float) points = new List(float) { 50, 50, 30, 30, 40, 40 }; - //Create a new line annotation. - PdfInkAnnotation inkAnnotation = new PdfInkAnnotation(inkAnnotationBounds, points); - inkAnnotation.Color = new PdfColor(Color.Red); - //Set the line border style. - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed; - //Add this annotation to a new page. - page.Annotations.Add(inkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim inkAnnotationBounds As New RectangleF(10, 40, 30, 30) - 'To specify the line points - Dim points As New List(Of Single) (New Single() {50, 50, 30, 30, 40, 40}) - 'Create a new line annotation. - Dim inkAnnotation As New PdfInkAnnotation(inkAnnotationBounds, points) - inkAnnotation.Color = New PdfColor(Color.Red) - 'Set the line border style. - inkAnnotation.BorderStyle = PdfLineBorderStyle.Dashed - 'Add this annotation to a new page. - page.Annotations.Add(inkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Solid - - - - - Indicates Dashed - - - - - Indicates Beveled - - - - - Indicates Inset - - - - - Indicates Underline - - - - - Specifies the Line Intent Style is to be used in the line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the pdf line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the pdf line indent. - lineAnnotation.LineIntent = PdfLineIntent.LineArrow - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Line Arrow as intent of the line annotation - - - - - Indicates LineDimension as intent of the line annotation - - - - - Specifies the Line Caption Type is to be used in the Line annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //To specify the line end points - int[] points = new int[] { 80, 420, 150, 420 }; - //Create a new line annotation. - PdfLineAnnotation lineAnnotation = new PdfLineAnnotation(points, "Line Annoation"); - //Set the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline; - //Add this annotation to a new page. - page.Annotations.Add(lineAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'To specify the line end points - Dim points() As Integer = { 80, 420, 150, 420 } - 'Create a new line annotation. - Dim lineAnnotation As New PdfLineAnnotation(points, "Line Annoation") - 'Set the line caption type. - lineAnnotation.CaptionType = PdfLineCaptionType.Inline - 'Add this annotation to a new page. - page.Annotations.Add(lineAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates Inline as annotation caption positioning - - - - - Indicates Top as annotation caption positioning - - - - - Specifies the Style of the Text Markup Annotation - - - - //Load an existing document. - PdfLoadedDocument loadedDocument = new PdfLoadedDocument("input.pdf"); - //Gets the annotation from loaded document. - PdfLoadedTextMarkupAnnotation textMarkupAnnotation = loadedDocument.Pages[1].Annotations[5] as PdfLoadedTextMarkupAnnotation; - //Sets the pdf text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight; - //Save the document. - loadedDocument.Save("Output.pdf"); - //close the document - loadedDocument.Close(true); - - - 'Load an existing document. - Dim loadedDocument As New PdfLoadedDocument("input.pdf") - 'Gets the annotation from loaded document. - Dim textMarkupAnnotation As PdfLoadedTextMarkupAnnotation = TryCast(loadedDocument.Pages(1).Annotations(5), PdfLoadedTextMarkupAnnotation) - 'Sets the pdf text markup annotation type - textMarkupAnnotation.TextMarkupAnnotationType = PdfTextMarkupAnnotationType.Highlight - 'Save the document. - loadedDocument.Save("Output.pdf") - 'close the document - loadedDocument.Close(True) - - - - - - The Text Markup Annotation Type is Highlight. - - - - - The Text Markup Annotation Type is Underline. - - - - - The Text Markup Annotation Type is Squiggly. - - - - - The Text Markup Annotation Type is StrikeOut. - - - - - Specifies the annotation types. - - - - - Highlight type annotation. - - - - - Underline type annotation. - - - - - StrikeOut type annotation. - - - - - Squiggly type annotation. - - - - - AnnotationStates type. - - - - - TextAnnotation type. - - - - - LinkAnnotation type. - - - - - DocumentLinkAnnotation type. - - - - - FileLinkAnnotation type. - - - - - FreeTextAnnotation type. - - - - - LineAnnotation type. - - - - - CircleAnnotation type. - - - - - Ellipse type. - - - - - SquareAnnotation type. - - - - - RectangleAnnotation type. - - - - - PolygonAnnotation type. - - - - - PolyLineAnnotation type. - - - - - SquareandCircleAnnotation type. - - - - - PolygonandPolylineAnnotation type. - - - - - TextMarkupAnnotation type. - - - - - CaretAnnotation type. - - - - - RubberStampAnnotation type. - - - - - LnkAnnotation type. - - - - - PopupAnnotation type. - - - - - FileAttachmentAnnotation type. - - - - - SoundAnnotation type. - - - - - MovieAnnotation type. - - - - - ScreenAnnotation type. - - - - - WidgetAnnotation type. - - - - - PrinterMarkAnnotation type. - - - - - TrapNetworkAnnotation type. - - - - - WatermarkAnnotation type. - - - - - TextWebLinkAnnotation type. - - - - - InkAnnotation type - - - - - No annotation. - - - - - Specifies the annotation text intent. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF textAnnotationBounds = new RectangleF(10, 40, 100, 30); - //Create a new line annotation. - PdfFreeTextAnnotation actionAnnotation = new PdfFreeTextAnnotation(textAnnotationBounds); - //Set the text and font - actionAnnotation.MarkupText = "Text Annotation"; - actionAnnotation.Font = new PdfStandardFont(PdfFontFamily.Courier, 10); - //Set the line caption type. - actionAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout; - //Add this annotation to a new page. - page.Annotations.Add(actionAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim textAnnotationBounds As New RectangleF(10, 40, 100, 30) - 'Create a new line annotation. - Dim actionAnnotation As New PdfFreeTextAnnotation(textAnnotationBounds) - 'Set the text and font - actionAnnotation.MarkupText = "Text Annotation" - actionAnnotation.Font = New PdfStandardFont(PdfFontFamily.Courier, 10) - 'Set the line caption type. - actionAnnotation.AnnotationIntent = PdfAnnotationIntent.FreeTextCallout - 'Add this annotation to a new page. - page.Annotations.Add(actionAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - Class - Class - Class - - - - Represents annotation intent. - - - - - Represents annotation intent. - - - - - Represents the appearance of an annotation's border. - - This class is used to create the annotation border to . Please refer the UG docuemntation link for more details. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border to popup annotation. - popupAnnotation.Border = new PdfAnnotationBorder(4, 0, 0); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border to popup annotation. - popupAnnotation.Border = New PdfAnnotationBorder(4, 0, 0) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Horizontal corner radius. - - - - - Vertical corner radius. - - - - - Width of the border. - - - - - Pdf primitive representing this object. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder() - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified border width. - - A float value specifying the width of the annotation's border. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(4); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder(4) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("AnnotationBorder.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified border width, horizontal and vertical radius. - - A float value specifying the width of the annotation's border. - A float value specifying the horizontal corner radius value. - A float value specifying the vertical corner radius value. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the annotation border. - popupAnnotation.Border = new PdfAnnotationBorder(4, 0, 0); - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the annotation border. - popupAnnotation.Border = New PdfAnnotationBorder(4, 0, 0) - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Initializes instance. - - Width of the border. - The horizontal radius. - The vertical radius. - - - - Sets the number. - - The index. - The value. - - - - Gets or sets a horizontal corner radius. - - The horizontal radius of the annotation. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the horizontal radius to popup annotation border. - popupAnnotation.Border.HorizontalRadius = 0; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the horizontal radius to popup annotation border. - popupAnnotation.Border.HorizontalRadius = 0 - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets a vertical corner radius. - - The vertical radius of the annotation. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation"); - //Set the vertical radius to popup annotation border. - popupAnnotation.Border.VerticalRadius = 0; - //Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationRectangle, "Test popup annotation") - 'Set the vertical radius to popup annotation border. - popupAnnotation.Border.VerticalRadius = 0 - 'Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets or sets the width of annotation's border. - - A float value specifying the width of the annotation's border. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF popupAnnotationBounds = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(popupAnnotationBounds, "Test popup annotation"); - //Set the width to popup annotation border. - popupAnnotation.Border.Width = 4; - //Add popup annotation annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim popupAnnotationBounds As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(popupAnnotationBounds, "Test popup annotation") - 'Set the width to popup annotation border. - popupAnnotation.Border.Width = 4 - 'Add popup annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - Class. - - - - Gets PDF primitive representing this object. - - - - - Represents an attachment annotation of the PDF document. - - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.png"); - //Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Icon of the annotation. - - - - - File specification of the annotation. - - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.jpg"); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg") - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - A byte array specifying the content of the annotation's embedded file. - If both FileName and FileContent are specified, the FileContent takes precedence. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Load the image as bytes - byte[] imageBytes = File.ReadAllBytes("Input.jpg"); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.jpg", imageBytes); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Load the image as bytes - Dim imageBytes() As Byte = File.ReadAllBytes("Input.jpg") - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", imageBytes) - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class. - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded in the PDF file. - The stream specifying the content of the annotation's embedded file. - If both FileName and FileContent are specified, the FileContent takes precedence. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Load the image as stream. - FileStream stream = new FileStream(@"Input.jpg", FileMode.Open); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", stream); - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentBounds As New RectangleF(10, 40, 30, 30) - 'Load the image as stream. - Dim stream As New FileStream("Input.jpg", FileMode.Open) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentBounds, "Input.jpg", stream) - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Initializes object. - - - - - Saves annotation object. - - - - - Gets or Sets the attachment's icon. - - A enumeration member specifying the icon for the annotation when it is displayed in closed state. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentRectangle = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentRectangle, @"Input.png"); - //Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the attachment icon to attachment annotation. - attachmentAnnotation.Icon = PdfAttachmentIcon.PushPin - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - A string value specifying the full path to the file to be embedded in the PDF file. - - - //Create a new PDF Document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle. - RectangleF attachmentBounds = new RectangleF(10, 40, 30, 30); - //Create a new attachment annotation. - PdfAttachmentAnnotation attachmentAnnotation = new PdfAttachmentAnnotation(attachmentBounds, @"Input.wav"); - //Set the file name. - attachmentAnnotation.FileName = "input.wav"; - //Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create a new PDF Document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle. - Dim attachmentRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new attachment annotation. - Dim attachmentAnnotation As New PdfAttachmentAnnotation(attachmentRectangle, "Input.png") - 'Set the file name. - attachmentAnnotation.FileName = "input.wav" - 'Add this annotation to a new page. - page.Annotations.Add(attachmentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document. - document.Close(True) - - - Class. - - - - Represents an annotation object with holds link on another location within a document. - - This class is used to navigate the specific destination within the document. Please refer the UG docuemntation link for more details. - - - //Create the PDF Document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Set the pdf destination. - documentAnnotation.Destination = new PdfDestination(page2); - //Set the pdf destination location. - documentAnnotation.Destination.Location = new Point(10, 0); - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF Document - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Set the pdf destination. - documentAnnotation.Destination = New PdfDestination(page2) - 'Set the pdf destination location. - documentAnnotation.Destination.Location = New Point(10, 0) - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Destination of the annotation. - - - - - Initializes new instance with specified bounds. - - The bounds of the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Set the pdf destination. - documentAnnotation.Destination = new PdfDestination(page2); - //Set the pdf destination location. - documentAnnotation.Destination.Location = new Point(10, 0); - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Set the pdf destination. - documentAnnotation.Destination = New PdfDestination(page2) - 'Set the pdf destination location. - documentAnnotation.Destination.Location = New Point(10, 0) - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes new instance with specified bounds and destination. - - The bounds of the annotation. - The destination of the annotation. - - - //Create the PDF document - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF docLinkAnnotationRectangle = new RectangleF(10, 40, 30, 30); - //Create a new page . - PdfPage page2 = document.Pages.Add(); - //Create a new pdf destination. - PdfDestination destination = new PdfDestination(page2); - //Create a new document link annotation. - PdfDocumentLinkAnnotation documentAnnotation = new PdfDocumentLinkAnnotation(docLinkAnnotationRectangle, destination); - //Set the annotation text. - documentAnnotation.Text = "Document link annotation"; - //Add this annotation to a new page. - page.Annotations.Add(documentAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document. - document.Close(true); - - - 'Create the PDF document - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim docLinkAnnotationRectangle As New RectangleF(10, 40, 30, 30) - 'Create a new page . - Dim page2 As PdfPage = document.Pages.Add() - 'Create a new pdf destination. - Dim destination As New PdfDestination(page2) - 'Create a new document link annotation. - Dim documentAnnotation As New PdfDocumentLinkAnnotation(docLinkAnnotationRectangle, destination) - 'Set the annotation text. - documentAnnotation.Text = "Document link annotation" - 'Add this annotation to a new page. - page.Annotations.Add(documentAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Saves annotation object. - - - - - - Represents the annotation link to an external file. - - This class is used to link the external file to PDF document. Please refer the UG docuemntation link for more details. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new PDF file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new PDF file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Internal variable to store file launch action. - - - - The bounds of the annotation. - A string value specifying the full path to the file to be embedded. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new pdf file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new pdf file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - Saves annotation object. - - - - A string value specifying the full path to the file to be embedded. - - - //Create a PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new PDF file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, @"Input.png"); - //Get the file name. - string fileName = fileLinkAnnotation.FileName; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As RectangleF = New RectangleF(10, 40, 30, 30) - 'Create a new PDF file link annotation. - Dim fileLinkAnnotation As PdfFileLinkAnnotation = New PdfFileLinkAnnotation(rectangle, "Input.png") - 'Gets the file name. - Dim fileName As String=fileLinkAnnotation.FileName - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(true); - - - Class - - - - Gets or sets the action. - - The action to be executed when the annotation is activated. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new file link annotation. - PdfFileLinkAnnotation fileLinkAnnotation = new PdfFileLinkAnnotation(rectangle, "input.png"); - //Set an action to file link annotation. - PdfJavaScriptAction javaAction = new PdfJavaScriptAction("app.alert(\"You are looking at Java script action of PDF \")"); - fileLinkAnnotation.Action = javaAction; - //Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new file link annotation. - Dim fileLinkAnnotation As New PdfFileLinkAnnotation(rectangle, "input.png") - 'Set an action to file link annotation. - Dim javaAction As New PdfJavaScriptAction("app.alert(""You are looking at Java script action of PDF "")") - fileLinkAnnotation.Action = javaAction - 'Add this annotation to a new page. - page.Annotations.Add(fileLinkAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - - - - - Type of the destination. - - - - - Zoom factor. - - - - - Location of the destination. - - - - - Parent page reference. - - - - - Pdf primitive representing this object. - - - - - Indicates whether destination is valid. - Destination is not valid if it has null location or zoom - otherwise it is valid. - - - - - Initializes a new instance of the class with specified page. - - The page where the destination should be placed. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Initializes a new instance of the class with specified page base and location. - - The page where the destination should be placed. - The location of the page. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Sets the validation. - - if it is valid, set to true. - - - - Translates co-ordinates to PDF co-ordinate system (lower/left). - - The page. - Point in left/top co-ordinate system. - - Co-ordinates to PDF co-ordinate system (lower/left). - - - - - Infills array by correct values. - - - - - Initializes instance. - - - - - Gets or sets zoom factor. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the zoom factor. - destination.Zoom = 100; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the zoom factor. - destination.Zoom = 100 - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets or sets a page where the destination is situated. - - - - - - Gets or sets mode of the destination. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination. - PdfDestination destination = new PdfDestination(page,new PointF(0, 100)); - //Set the destination mode. - destination.Mode = PdfDestinationMode.FitToPage; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination. - Dim destination As PdfDestination = New PdfDestination(page,new PointF(0, 100)) - 'Set the destination mode. - destination.Mode = PdfDestinationMode.FitToPage - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets or sets a location of the destination. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Set the location of the destination. - destination.Location = new PointF(20, 20); - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Set the location of the destinatioin. - destination.Location = new PointF(20, 20) - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets a value indicating whether this instance is valid. - - true if this instance is valid; otherwise, false. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - //Create document bookmarks. - PdfBookmark bookmark = document.Bookmarks.Add("Page 1"); - //Create the destination - PdfDestination destination = new PdfDestination(page); - //Gets a value indicating whether this instance is valid. - bool isValid = destination.IsValid; - //Set the destination page. - bookmark.Destination = destination; - //Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold; - bookmark.Color = Color.Red; - //Save and close the PDF document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - 'Create document bookmarks. - Dim bookmark As PdfBookmark = document.Bookmarks.Add("Page 1") - 'Create the destination - Dim destination As PdfDestination = New PdfDestination(page) - 'Gets a value indicating whether this instance is valid. - bool isValid = destination.IsValid - 'Set the destination page. - bookmark.Destination = destination - 'Set the text style and color. - bookmark.TextStyle = PdfTextStyle.Bold - bookmark.Color = Color.Red - 'Save and close the PDF document. - document.Save("Output.pdf") - document.Close(True) - - - Class. - Class. - - - - Gets pdf primitive representing this object. - - - - - Represents a base class for popup annotation which can be either in open or closed state. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Indicates whether annotation is open or not. - - - - - Type of the icon of the annotation. - - - - - Annotation's appearance. - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(); - popupAnnotation.Text = "Test popup annotation"; - popupAnnotation.Bounds = rectangle; - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation() - popupAnnotation.Text = "Test popup annotation" - popupAnnotation.Bounds = rectangle - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified bounds. - - RectangleF structure that specifies the bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle); - popupAnnotation.Text = "Test popup annotation"; - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle) - popupAnnotation.Text = "Test popup annotation" - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified bounds and annotation text. - - RectangleF structure that specifies the bounds of the annotation. - The string specifies the annotation text. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - popupAnnotation.Border.Width = 4; - popupAnnotation.Border.HorizontalRadius = 20; - popupAnnotation.Border.VerticalRadius = 30; - //Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - popupAnnotation.Border.Width = 4 - popupAnnotation.Border.HorizontalRadius = 20 - popupAnnotation.Border.VerticalRadius = 30 - 'Set the pdf popup icon. - popupAnnotation.Icon = PdfPopupIcon.NewParagraph - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified popup comment window bounds and bool for represents popup. - - RectangleF structure that specifies the bounds of the popup annotation comment window. - Boolean indivate popup comment window - - - - Initializes annotation object. - - - - - Saves an annotation. - - - - - Flatten annotation Icon - - the annotation's subject text - - - - - Gets or sets value whether annotation is initially open or closed. - - - True if the annotation is intially open, otherwise false. - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new popup annotation. - PdfPopupAnnotation popupAnnotation = new PdfPopupAnnotation(rectangle, "Test popup annotation"); - //Set the Open to popupAnnotation. - popupAnnotation.Open = true; - //Add this annotation to a new page. - page.Annotations.Add(popupAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new popup annotation. - Dim popupAnnotation As New PdfPopupAnnotation(rectangle, "Test popup annotation") - 'Set the Open to popupAnnotation. - popupAnnotation.Open = True - 'Add this annotation to a new page. - page.Annotations.Add(popupAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - - - - - Represents the sound annotation. - - This class is used to play a sound clip in PDF document. Please refer the UG docuemntation link for more details. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo - soundAnnotation.Sound.Bits = 16 - soundAnnotation.Color = New PdfColor(Color.Red) - 'Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Type of icon of the sound link. - - - - - Internal variable to store sound. - - - - RectangleF structure that specifies the bounds of the annotation. - The string specifies the file name of the sound annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Set the pdf sound - soundAnnotation.Sound = New PdfSound("Input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes instance. - - - - - Saves instance. - - - - - Gets or sets the icon to be used in displaying the annotation. - - The enumeration member specifying the icon for the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo - soundAnnotation.Sound.Bits = 16 - soundAnnotation.Color = New PdfColor(Color.Red) - 'Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the sound. - - The object specified a sound for the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - soundAnnotation.Sound.Encoding = PdfSoundEncoding.Signed; - soundAnnotation.Sound.Channels = PdfSoundChannels.Stereo; - soundAnnotation.Sound.Bits = 16; - soundAnnotation.Color = new PdfColor(Color.Red); - //Sets the pdf sound icon. - soundAnnotation.Icon = PdfSoundIcon.Speaker; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Set the pdf sound - soundAnnotation.Sound = New PdfSound("Input.wav") - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - The string specifies the file name of the sound annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page . - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new sound annotation. - PdfSoundAnnotation soundAnnotation = new PdfSoundAnnotation(rectangle, @"Input.wav"); - //Gets the file name. - string fileName = soundAnnotation.FileName; - //Add this annotation to a new page. - page.Annotations.Add(soundAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page . - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new sound annotation. - Dim soundAnnotation As New PdfSoundAnnotation(rectangle, "Input.wav") - 'Gets the file name. - Dim fileName As String = soundAnnotation.FileName - 'Add this annotation to a new page. - page.Annotations.Add(soundAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the Uri annotation. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Internal variable to store acton for the annotation. - - - - - Initializes a new instance of the class with specified bounds. - - RectangleF structure that specifies the bounds of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - ' Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class with specified bounds and Uri. - - RectangleF structure that specifies the bounds of the annotation. - unique resource identifier path. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle, "http://www.google.com"); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle, "http://www.google.com") - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Initializes annotation object. - - - - - Gets or sets the Uri address. - - The string value which contains Uri address. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the action. - - The object specifies the action of the annotation. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create a new rectangle - RectangleF rectangle = new RectangleF(10, 40, 30, 30); - //Create a new Uri Annotation. - PdfUriAnnotation uriAnnotation = new PdfUriAnnotation(rectangle); - //Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation"; - // Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com"; - //Creates a new Sound action - PdfSoundAction soundAction = new PdfSoundAction(@"Input.wav"); - soundAction.Sound.Bits = 16; - soundAction.Sound.Channels = PdfSoundChannels.Stereo; - soundAction.Sound.Encoding = PdfSoundEncoding.Signed; - soundAction.Volume = 0.9f; - uriAnnotation.Action = soundAction; - //Add this annotation to a new page. - page.Annotations.Add(uriAnnotation); - //Save the document to disk. - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create a new rectangle - Dim rectangle As New RectangleF(10, 40, 30, 30) - 'Create a new Uri Annotation. - Dim uriAnnotation As New PdfUriAnnotation(rectangle) - 'Set Text to uriAnnotation. - uriAnnotation.Text = "Uri Annotation" - ' Set Uri to uriAnnotation - uriAnnotation.Uri = "http://www.google.com" - 'Creates a new Sound action - Dim soundAction As New PdfSoundAction("Input.wav") - soundAction.Sound.Bits = 16 - soundAction.Sound.Channels = PdfSoundChannels.Stereo - soundAction.Sound.Encoding = PdfSoundEncoding.Signed - soundAction.Volume = 0.9f - uriAnnotation.Action = soundAction - 'Add this annotation to a new page. - page.Annotations.Add(uriAnnotation) - 'Save the document to disk. - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Defines data compression level. - - Default value is Normal. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set document compression level - doc.Compression = PdfCompressionLevel.BestSpeed; - //Obtain PdfGraphics object. - PdfGraphics g = page.Graphics; - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create pen with green color. - PdfPen pen = new PdfPen(System.Drawing.Color.Green); - //Create brush with black color. - PdfBrush brush = new PdfSolidBrush(System.Drawing.Color.Black); - RectangleF rect = new RectangleF(100, 100, 200, 100); - //Draw text in the new page. - g.DrawString("Simple Rectangle", font, PdfBrushes.DarkBlue, new PointF(310, 255)); - //Draw rectangle in the new page. - g.DrawRectangle(pen, brush, rect); - //Save the document. - doc.Save("CompressionLevel.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set document compression level. - doc.Compression = PdfCompressionLevel.BestSpeed - 'Obtain PdfGraphics object. - Dim g As PdfGraphics = page.Graphics - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create pen with green color. - Dim pen As PdfPen = New PdfPen(System.Drawing.Color.Green) - 'Create brush with black color. - Dim brush As PdfBrush = New PdfSolidBrush(System.Drawing.Color.Black) - Dim rect As RectangleF = New RectangleF(100, 100, 200, 100) - 'Draw text in the new page. - g.DrawString("Simple Rectangle", font, PdfBrushes.DarkBlue, New PointF(310, 255)) - 'Draw rectangle in the new page. - g.DrawRectangle(pen, brush, rect) - 'Save document to disk. - doc.Save("CompressionLevel.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - Class - - - - - Pack without compression. - - - - - - Use high speed compression, reduce of data size is low. - - - - - - Something middle between normal and BestSpeed compressions. - - - - - - Use normal compression, middle between speed and size. - - - - - - Pack better but require a little more time. - - - - - - Use best compression, slow enough. - - - - - - Enumerator that implements compression level. - - - - - - No compression. - - - - - - Compresses data using the zlib or deflate compression method, - reproducing the original text or binary data. - - - - - - Compresses data using the LZW compression method, reproducing - the original text or binary data. - - - - - - Compresses data using the ASCII85 compression method, reproducing - the original text or binary data. - - - - - - Represents supported stream filters. - - - - - - Decompresses data encoded using a DCT (discrete cosine transform) - technique based on the JPEG standard, reproducing image sample - data that approximates the original data. - - - - - - Decompresses data encoded using the zlib / deflate - compression method, reproducing the original text or binary - data. - - - - - Class for default compressor. Default compressor does not - compress data. - - - - - - Initializes a new instance of the class. - - - - - Compresses bytes data. - - Bytes data that should be compressed. - Compressed bytes data. - - - - - Compresses stream data. - - Stream data that should be - compressed. - Compressed streams data. - - - - - Compresses string data. - - String data that should be compressed. - Compressed string data. - - - - - Decompresses string data. - - String data that should be decompressed. - Decompressed bytes data. - - - - - Decompresses bytes data. - - Bytes data that should be decompressed. - Decompressed bytes data. - - - - - Decompresses stream data. - - Stream data that should be - decompressed. - Decompressed stream data. - - - - - Gets the name of the compressor in PDF format. - - - - - - - Gets the type of the compressor. - - - - - - - Compresses data using the LZW compression - method, reproducing the original text or binary data. - - - - - EndOfData marker. - - - - - Clear-table marker. - - - - - Start code marker. - - - - - The marker to set the dictionary to 10 bits code length. - - - - - The marker to set the dictionary to 11 bits code length - - - - - The marker to set the dictionary to 12 bits code length - - - - - Table for codes (dictionary). - - - - - Input data. - - - - - Output data. - - - - - Table index. - - - - - The number of bits per code. - - - - - Byte read. - - - - - Next data. - - - - - Nex bits. - - - - - The size of the table. - - - - - IsEarlyChanged of the LzwCompressor, which is set to true by default - - - - - Initializes a new instance of the class. - - - - - Decompresses the specified input data. - - The input data. - The output data. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Compresses stream data. - - Stream data to be compressed. - Compressed streams data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - decompressed bytes data - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Initializes the data table. - - - - - Writes the code to output stream. - - The code. - - - - Adds the code to table. - - The old bytes. - The new byte. - - - - Adds the code to table. - - The data. - - - - Add new data to the olddata array. - - The old data. - The new data. - Result data array. - - - - News the code. - - code - - - - Gets the Type of the compressor. - - - - - - Gets name of compressor in PDF format. - - - - - - PdfPngFilter provides methods that allows to restore original data - being modified by similar filter or modify data to better compression ratio. - - - - - Required for type cast. - - - - - Delegate for the sub filter. - - - - - Delegate for the up filter. - - - - - Delegate for the average filter. - - - - - Delegate for the Paeth filter. - - - - - Delegate for the restore filter. - - - - - Modifies the data by the filter of type 'type'. - - The data to modify. - Bytes per row. - The type of the filter. - The modified data. - - - - Retrieves the original data from the modified. - - The modified data. - Bytes per row. - The original data. - - - - Performs actual compression or decompression. - - The original data buffer. - The BPR. - The filter. - if it is pack, set to true - - - - - Modifies a row by the Sub algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Up algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Average algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Modifies a row by the Paeth algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Retrieves original data for a single row. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row using none filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row using the Sub filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompresses a row compressed by the Up filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Decompress a row compressed by the Average algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Unpacks a row packed by the Paeth algorithm. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Returns the Paeth predictor. - - Left pixel. - Above pixel. - Upper left pixel. - The value of the Paeth predictor. - - - - Defines Png Filtern Type. - - - - - None compression. - - - - - Sub compression - - - - - Up compression - - - - - Average compression - - - - - Paeth compression - - - - - Used to call a row filter. - - The original data buffer. - The current row index within the original buffer. - The byte-per-row value of the original buffer. - The result data buffer. - The current row index within the result buffer. - The byte-per-row value of the result buffer. - - - - Compresses data using the zlib / deflate compression - method, reproducing the original text or binary data. - - - - - Default buffer size for decompression. - - - - - Name of the compressor. - - - - - Level of compression. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The level. - - - - Compresses bytes data. - - Bytes data to be compressed. - Compressed bytes data. - - - - Compresses stream data. - - Stream data. - Compressed streams data. - - - - - Compresses string data. - - String data to be compressed. - Compressed string data. - - - - Decompresses string data. - - String data to be decompressed. - Decompressed bytes data. - - - - Decompresses bytes data. - - Bytes data to be decompressed. - Decompressed bytes data. - - - - Decompresses stream data. - - Stream data to be decompressed. - Decompressed stream data. - - - - Gets name of compressor in PDF format. - - - - - Gets type of compressor. - - - - - Gets encoding value for this compressor. - - - - - Gets or sets level of compression. - - - - - Represents internal catalog of the Pdf document. - - Class - - - - Internal variable to store collection of sections. - - - - - Internal variable to store collection of attachments - - - - - Internal variable to store viewer's preferences. - - - - - Internal variable to store catalog's names. - - - - - The metadata of the stream. - - - - - Internal variable to store form. - - - - - Loaded form. - - - - - Loaded document. - - - - - Internal variable to store dictionary; - - - - - Internal variable to store portfolio - - - - - No Names - - - - - Internal variable to store StructTreeRoot. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The document. - The catalog dictionary. - - - - Creates the names if there is none. - - - - - Initializes struct tree root. - - - - - Reads Xmp from the document. - - - - - Applies the PDF/X Conformance attributes to the document. - - - - - Clear PdfCatalog - - - - - Gets or sets the viewer preferences. - - The viewer preferences. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - // Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - // Save the document - doc.Save("ViewerPreferences.pdf"); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - doc.ViewerPreferences.PageScaling = PageScalingMode.None - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - ' Save the document - doc.Save("ViewerPreferences.pdf") - - - - - - Gets or setsthe Pdfportfolio - - - - - Returns StructTreeRoot associated with the document. - - - - - Gets or sets the interactive form. - - The form. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a form - PdfForm form = document.Form; - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12f); - //Create list box - PdfListBoxField listBox = new PdfListBoxField(page, "list1"); - //Add the field to listbox. - form.Fields.Add(listBox); - //Set the properties. - listBox.Bounds = new RectangleF(100, 350, 100, 50); - listBox.HighlightMode = PdfHighlightMode.Outline; - //Add the items to the list box - listBox.Items.Add(new PdfListFieldItem("English", "English")); - listBox.Items.Add(new PdfListFieldItem("French", "French")); - listBox.Items.Add(new PdfListFieldItem("German", "German")); - //Select the item - listBox.SelectedIndex = 2; - //Set the multiselect option - listBox.MultiSelect = true; - document.Save("Form.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a form - Dim form As PdfForm = document.Form - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12f) - 'Create list box - Dim listBox As PdfListBoxField = New PdfListBoxField(page, "list1") - 'Add the field to listbox. - form.Fields.Add(listBox) - 'Set the properties. - listBox.Bounds = New RectangleF(100, 350, 100, 50) - listBox.HighlightMode = PdfHighlightMode.Outline - 'Add the items to the list box - listBox.Items.Add(New PdfListFieldItem("English", "English")) - listBox.Items.Add(New PdfListFieldItem("French", "French")) - listBox.Items.Add(New PdfListFieldItem("German", "German")) - 'Select the item - listBox.SelectedIndex = 2 - 'Set the multiselect option - listBox.MultiSelect = True - document.Save("Form.pdf") - - - - - - Gets the names. - - The names. - - - - Gets the named destinations' dictionary. - - - - - Gets or sets the loaded form. - - - - - Gets or sets the loaded Document. - - - - - Gets or sets the sections, which contain pages. - - - - - Gets or sets the loaded form. - - - - - Gets or sets the metadata. - - The metadata. - - - - Represents a PDF document and can be used to create a new PDF document from the scratch - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Document.pdf"); - //Close the document. - document.Close(true); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Document.pdf"); - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Default margin value. - - - - - Font used in complex objects to draw strings and text when it is not defined explicitly. - - - - - Cache of the objects. - - - - - Helps to lock s_cache to avoid race conditions. - - - - - Internal variable to store template which is applied to each page of the document. - - - - - Internal variable to store document's collection of attachments. - - - - - Internal variable to store document's collection of pages. - - - - - Internal variable to store document's collection of named destinations. - - - - - Indicates whether the document was Pdf Viewer document. - - - - - Internal variable to store document's collection of sections. - - - - - Default page settings. - - - - - Root outline. - - - - - Indicates if the page labels were set. - - - - - Indicates whether the document was encrypted or not. - - - - - Internal variable to store additional document's actions. - - - - - Defines the color space of the document - - - - - The delegade of the progress event handler. - - - - - Local Variable to store the Conformance Level. - - - - - Indicates whether enable cache or not - - - - - Indicates whether enable unique naming or not - - - - - Indicates whether enable threadsafe or not. - - - - - Indicates whether the object was disposed. - - - - - Indicates whether the document is tagged - - - - - Internal variable to store the structure tree - - - - - Internal variable to store the private font collection. - - - - - internal variable to store image collection - - - - - internal varialbe store fonts to avoid multi threading issues - - - - - Initializes a new instance of the class. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) ; - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Document.pdf"); - //Close the document. - document.Close(true); - - - ' Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Document.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - - - - - Initializes a new instance of the class with the specified . - - The conformance level. - - Not Supported under medium trust environment. This Constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - To know more about document conformance refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfTrueTypeFont(new Font(FontFamily.GenericMonospace, 12f, FontStyle.Bold)); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Saves the document - document.Save("Document.pdf"); - Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - 'Creates a new page - Dim page As PdfPage = document.Pages.Add() - 'Create font and font style. - Dim font As PdfFont = New PdfTrueTypeFont(New Font(FontFamily.GenericMonospace, 12f, FontStyle.Bold)) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - - - Enumeration - - - - Saves the document to the specified output stream. - - The stream object where PDF document will be saved. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - // Loads an Image - PdfImage pdfImg = new PdfBitmap(Image.FromFile("Logo.png")); - //Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200); - // Save the document as a stream - MemoryStream stream = new MemoryStream(); - doc.Save(stream); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - ' Loads an Image - Dim pdfImg As PdfImage = New PdfBitmap(Image.FromFile("Logo.png")) - 'Draw the image - g.DrawImage(pdfImg, 20, 20, 100, 200) - ' Save the document as a stream - Dim stream As MemoryStream = New MemoryStream() - doc.Save(stream) - 'Close the document - doc.Close(True) - - - - - - Close the document completely. - - if set to true the document should be disposed completely. - - The document cannot be saved if Close method was invoked. - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush,new PointF(20,20)); - doc.Save("Sample.pdf"); - // Closes the document. - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush,New PointF(20,20)) - doc.Save("Sample.pdf") - ' Closes the document. - doc.Close(True) - - - - - - Releases all the resources used by document instances. - - - The document cannot be saved if Dispose method was invoked. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Loads an Image - Image img = Image.FromFile("input.png"); - PdfImage pdfImg = new PdfBitmap(img); - //Draw the image - g.DrawImage(pdfImg,20, 20, 100,200); - //Save the document. - doc.Save("DisposeOnClose.pdf"); - //Dispose the document - doc.Dispose(); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Loads an Image - Dim img As Image = Image.FromFile("Logo.png") - Dim pdfImg As PdfImage = New PdfBitmap(img) - 'Draw the image - g.DrawImage(pdfImg,20, 20, 100,200) - 'Save the document. - doc.Save("Dispose.pdf") - 'Dispose the document - doc.Dispose() - - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of this instance. - The resulting clone must be of the same type as or a compatible type to the original instance. - - A new object that is a copy of this instance. - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush,new PointF(20,20)); - // Cloning the document - PdfDocument cloneDoc = doc.Clone() as PdfDocument; - cloneDoc.Save("Clone.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20f - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush,New PointF(20,20)) - ' Cloning the document - Dim cloneDoc As PdfDocument = TryCast(doc.Clone(), PdfDocument) - cloneDoc.Save("Clone.pdf") - doc.Close(True) - - - - - - Checks whether license is valid. - - - - - Called when a page is saved. - - The page. - - - - Informs the document that the page labels were set. - - - - - Raises the Progress event. - - The - instance containing the event data. - - - - Checks the pages presence. - - - - - Processes the page labels. - - - - - Resets the progress mechanism. - - - - - Sets the progress mechanism. - - - - - Embeds the RGB ICC ColorProfile to the document to attain PDF/A conformance. - - - - - Get the hash value from the image - - - - - - - Gets the form. - - The proper PdfForm instance. - - - - Adds the fields connected to the page. - - The loaded document. - The new page. - The lost of the fields. - - - - - Occurs when the document is being saved. - - - This event raised on saving the document. It will keep track of the save progress of the document. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add new pages to the document. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress); - //Saves the document - document.Save("Document.pdf"); - //Close the document - document.Close(true); - // Event handler for PageAdded event - void document_SaveProgress(object sender, ProgressEventArgs arguments) - { - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)); - } - - - 'Create a new PDF document. - Private document As PdfDocument = New PdfDocument() - 'Add new pages to the document. - Private page As PdfPage = document.Pages.Add() - 'Create font and font style. - Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - AddHandler document.SaveProgress, AddressOf document_SaveProgress - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - ' Event handler for PageAdded event - Private Sub document_SaveProgress(ByVal sender As Object, ByVal arguments As ProgressEventArgs) - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)) - End Sub - - - Delegate - - - - Gets or sets a template to all pages in the document. - - - - //Create a PDF document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Creates a new page. - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom. - doc.Template.Bottom = footer; - //Save the document. - doc.Save("Template.pdf"); - //Close the document. - doc.Close(true); - - - - 'Create a PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template. - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Gray) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom. - doc.Template.Bottom = footer - doc.Save("Template.pdf") - 'Close the document. - doc.Close(True) - - - The specifying the default template for the document. - Class - - - - Gets a value indicating whether the document was PDF viewer document. - - - - - Gets the actions to be performed when the document is opened/closed - - - - //Create a new PDF document - PdfDocument document = new PdfDocument(); - //Create and add new launch Action to the document - PdfLaunchAction action = new PdfLaunchAction("input.txt", PdfFilePathType.Relative); - document.Actions.AfterOpen = action; - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create and add new launch Action to the document. - Dim action As PdfLaunchAction = New PdfLaunchAction("myAction.txt", PdfFilePathType.Relative) - document.Actions.AfterOpen = action - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - The specifying the document action. - Class - Class - Class - Class - Class - Class - Class - Class - Class - Class - - - - Gets or sets a value indicates whether the document is auto-tagged or not. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets the collection of pages in the document. - - A object containing the list of document's pages. - - - //Creates a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Page collection. - PdfDocumentPageCollection pageCollection = doc.Pages; - PdfFont standardFont = new PdfStandardFont(PdfFontFamily.TimesRoman,10); - //Drawing string on first page. - pageCollection[0].Graphics.DrawString("FirstPage", standardFont, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Creates a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Page collection. - Dim pageCollection As PdfDocumentPageCollection = doc.Pages - Dim standardFont As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman,10) - 'Drawing string on the page. - pageCollection(0).Graphics.DrawString("FirstPage", standardFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - Class - Class - Class - - - - Gets the named destination collection of the document. - - A specifies the document's named destinations. - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create named destination - PdfNamedDestination namedDestination = new PdfNamedDestination("Interactive Feature"); - namedDestination.Title = "Interactive Feature"; - namedDestination.Destination = new PdfDestination(page); - doc.NamedDestinationCollection.Add(namedDestination); - //Save the document - doc.Save("NamedDestination.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create named destination - Dim namedDestination As PdfNamedDestination = New PdfNamedDestination("Interactive Feature") - namedDestination.Title = "Interactive Feature" - namedDestination.Destination = New PdfDestination(page) - doc.NamedDestinationCollection.Add(namedDestination) - doc.Save("NamedDestination.pdf") - //Close the document - doc.Close(True) - - - Class - - - Gets the collection of the sections in the document. - A object containing the list of document's sections. - - To know more about refer this link . - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - // Create a new section - PdfSection mySection = doc.Sections.Add(); - //Creates a new page - mySection.Pages.Add(); - // Gets the section collection - PdfSectionCollection sectionCollection = doc.Sections; - // Gets the first page from first section - PdfPage page = sectionCollection[0].Pages[0]; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - // Draw the string in first page of the section - page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, new Point(100, 100)); - doc.Save("Sections.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As PdfDocument = New PdfDocument() - ' Create a new section - Dim mySection As PdfSection = doc.Sections.Add() - 'Creates a new page - mySection.Pages.Add() - ' Gets the section collection - Dim sectionCollection As PdfSectionCollection = doc.Sections - ' Gets the first page from first section - Dim page As PdfPage = sectionCollection(0).Pages(0) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - ' Draw the string in first page of the section - page.Graphics.DrawString("Hello World", font, PdfBrushes.Black, New Point(100, 100)) - doc.Save("Sections.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the document's page setting. - - - A object containing the setting for a document`s pages. - - //Create a new document class object. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set page size. - doc.PageSettings.Size = PdfPageSize.A6; - //Set page orientation. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.Save("PageSettings.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new document class object. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = doc.Pages.Add() - 'Set page size. - doc.PageSettings.Size = PdfPageSize.A6 - 'Set page orientation. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.Save("PageSettings.pdf") - 'Close the document. - doc.Close(True) - - - - The changing of the settings doesn't take any effect on the already existing pages. - To know more about refer this link . - - - - - Gets the bookmark collection of the document. - - A specifies the document's bookmark. - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - //Create outline - PdfBookmark bookMark = doc.Bookmarks.Add("InteractiveFeature"); - bookMark.Color = Color.DarkBlue; - bookMark.TextStyle = PdfTextStyle.Bold; - bookMark.Title = "Interactive Feature"; - bookMark.Destination = new PdfDestination(page); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - 'Create outline - Dim bookMark As PdfBookmark = document.Bookmarks.Add("InteractiveFeature") - bookMark.Color = Color.DarkBlue - bookMark.TextStyle = PdfTextStyle.Bold - bookMark.Title = "Interactive Feature" - bookMark.Destination = New PdfDestination(page) - doc.Save("Bookmarks.pdf") - //Close the document - doc.Close(True) - - - Class - - - - Gets the attachment collection of the document. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - // Creates a new page in document - PdfPage page = doc.Pages.Add(); - // Adding an image as attachment - PdfAttachment attachment = new PdfAttachment("Logo.jpg"); - attachment.Description = "Syncfusion Logo"; - attachment.MimeType = "application/jpeg"; - // Add the attachment in document - doc.Attachments.Add(attachment); - //Save the document - doc.Save("Attachment.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document. - Dim doc As PdfDocument = New PdfDocument() - ' Creates a new page in document - Dim page As PdfPage = doc.Pages.Add() - ' Adding an image as attachment - Dim attachment As PdfAttachment = New PdfAttachment("Logo.jpg") - attachment.Description = "Syncfusion Logo" - attachment.MimeType = "application/jpeg" - ' Add the attachment in document - doc.Attachments.Add(attachment) - 'Save the document - doc.Save("Attachment.pdf") - 'Close the document - doc.Close(True) - - - The object contains list of files which are attached in the PDF document. - Class. - - - - Gets the interactive form of the document. - - - To know more about refer this link . - - - - //Create a document. - PdfDocument document = new PdfDocument(); - //Creates a new page. - PdfPage page = document.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14); - //Create a text box. - PdfTextBoxField firstNameTextBox = new PdfTextBoxField(page, "firstNameTextBox"); - firstNameTextBox.Bounds = new RectangleF(100, 20, 200, 20); - firstNameTextBox.Font = font; - //Add the textbox in form. - document.Form.Fields.Add(firstNameTextBox); - //Save the document. - document.Save("Form.pdf"); - //Close the document. - document.Close(true); - - - 'Create a document. - Dim document As PdfDocument = New PdfDocument() - 'Create a page. - Dim page As PdfPage = document.Pages.Add() - 'Create a text box. - Dim firstNameTextBox As PdfTextBoxField = New PdfTextBoxField(page, "firstNameTextBox") - firstNameTextBox.Bounds = New RectangleF(100, 20, 200, 20) - firstNameTextBox.Font = font - 'Add the textbox in form. - document.Form.Fields.Add(firstNameTextBox) - document.Save("Form.pdf") - 'Close the document. - document.Close(True) - - - The object contains the list of form elements of the document. - Class - Class - - - - Gets or sets the color space of the document. This property can be used to create PDF document in RGB, Grayscale or CMYK color spaces. - By default the document uses RGB color space. - - This property has impact on the new created pages only. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page - PdfPage page = doc.Pages.Add(); - // Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale; - doc.Save("ColorSpace.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - ' Set the document`s color spaces as GrayScale - doc.ColorSpace = PdfColorSpace.GrayScale - doc.Save("ColorSpace.pdf") - 'Close the document - doc.Close(True) - - - The of the document. - Class - - - - Gets collection of the cached objects. - - - - - Gets the Private Font Collection - - - - - Gets the default font. It is used for complex objects when font is - not explicitly defined. - - The default font. - - - - Gets a value indicating whether the document was encrypted. - - true if the document was encrypted; otherwise, false. - - - - get the image collection - - - - - Gets the number of pages. - - - - - Gets or sets the PDF conformance level. - This property can be used to create PDF/A-1b or Pdf_X1A2001 compliant documents. By default is None. - - The ENUM. - - Not Supported under Medium Trust environment. - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(PdfConformanceLevel.Pdf_A1B); - //Creates a new page and adds it as the last page of the document to the document. - PdfPage page = document.Pages.Add(); - // Create a 'Times New Roman' font - Font font = new Font("Times New Roman", 10); - // Create font with bold font style. - PdfFont pdfFont = new PdfTrueTypeFont(font, false); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, new PointF(10, 10)); - //Save document to disk. - document.Save("ConformanceLevel.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument(PdfConformanceLevel.Pdf_A1B) - ' Create a page to the document. - Dim page As PdfPage = document.Pages.Add() - ' Create a 'Times New Roman' font - Dim font As Font = New Font("Times New Roman", 10) - ' Create font with bold font style. - Dim pdfFont As PdfFont = New PdfTrueTypeFont(font, False) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", pdfFont, PdfBrushes.Black, New PointF(10, 10)) - 'Save document to disk. - document.Save("ConformanceLevel.pdf") - 'Close the document - document.Close(True) - - - Class - - - Gets or sets the enable cache. This property is used to cache the fonts. Default value is True. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Diable the font cache - PdfDocument.EnableCache = false; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - //Create Pdf graphics for the page - PdfGraphics g = page.Graphics; - //Create a solid brush - PdfBrush brush = new PdfSolidBrush(Color.Black); - float fontSize = 20f; - //Set the font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, fontSize); - //Draw the text - g.DrawString("Hello world!", font, brush, new PointF(20, 20)); - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Diable the font cache - PdfDocument.EnableCache = False - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - 'Create Pdf graphics for the page - Dim g As PdfGraphics = page.Graphics - 'Create a solid brush - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - Dim fontSize As Single = 20.0F - 'Set the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, fontSize) - 'Draw the text - g.DrawString("Hello world!", font, brush, New PointF(20, 20)) - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets boolean value which enables or disables unique resource naming, Default value is true. - - - By default this value will be true, if the uniform resource naming is needed then this value can be set false. - - - - //Disables unique resource naming. - PdfDocument.EnableUniqueResourceNaming = false; - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the colorspace for the document. - graphics.ColorSpace = PdfColorSpace.CMYK; - //Set the transparency of this graphics. - graphics.SetTransparency(0.5f); - //Create new instance for PDF font. - PdfFont font1 = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font1, PdfBrushes.Blue, new PointF(50, 50)); - //Create new instance for PDF font. - PdfFont font2 = new PdfTrueTypeFont(new Font("Arial", 20), true); - //Draw the text. - graphics.DrawString("Hello World!!!", font2, PdfBrushes.Blue, new PointF(50, 100)); - //Create new instance for PDF font. - PdfFont font3 = new PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20); - //Draw the text. - graphics.DrawString("こんにちは世界", font3, PdfBrushes.Blue, new PointF(50, 150)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Disables unique resource naming. - PdfDocument.EnableUniqueResourceNaming = False - 'Create a new PDF document. - Dim doc As PdfDocument = New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the colorspace for the document. - graphics.ColorSpace = PdfColorSpace.CMYK - 'Set the transparency of this graphics - graphics.SetTransparency(0.5F) - 'Create new instance for PDF font. - Dim font1 As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font1, PdfBrushes.Blue, New PointF(50, 50)) - 'Create new instance for PDF font. - Dim font2 As PdfFont = New PdfTrueTypeFont(New Font("Arial", 20), True) - 'Draw the text. - graphics.DrawString("Hello World!!!", font2, PdfBrushes.Blue, New PointF(50, 100)) - 'Create new instance for PDF font. - Dim font3 As PdfFont = New PdfCjkStandardFont(PdfCjkFontFamily.HeiseiMinchoW3, 20) - 'Draw the text. - graphics.DrawString("こんにちは世界", font3, PdfBrushes.Blue, New PointF(50, 150)) - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - - - - - - - Delegate for the event. - - The sender. - The arguments. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add new pages to the document. - PdfPage page = document.Pages.Add(); - //Create font and font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - document.SaveProgress += new PdfDocument.ProgressEventHandler(document_SaveProgress); - //Saves the document - document.Save("Document.pdf"); - Close the document - document.Close(true); - // Handles the event - void document_SaveProgress(object sender, ProgressEventArgs arguments) - { - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)); - } - - - 'Create a new PDF document. - Private document As PdfDocument = New PdfDocument() - 'Add new pages to the document. - Private page As PdfPage = document.Pages.Add() - 'Create font and font style. - Private font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - AddHandler document.SaveProgress, AddressOf document_SaveProgress - 'Saves the document - document.Save("Document.pdf") - 'Close the document - document.Close(True) - ' Handles the event - Private Sub document_SaveProgress(ByVal sender As Object, ByVal arguments As ProgressEventArgs) - MessageBox.Show(String.Format("Current: {0}, Progress: {1}, Total {2}", arguments.Current, arguments.Progress, arguments.Total)) - End Sub - - - - - - Shows the saving progress of the PDF document. - - - - - The Total - - - - - The Current object. - - - - - Initializes a new instance of the class. - - The current index. - The total number. - - - - Initializes a new instance of the class. - - - - - Gets the total number of the elements (pages) that need to be saved. - - - - - Gets the current element (page) index that just was saved. - - The index value increases constantly from 0 to Total. - - - - Gets the progress. - - Progress constantly increases from 0.0 to 1.0. - 1.0 value means that entire document has been saved. - - - - Arguments for event raised after document saving. - - - - - Document's destination stream. - - - - - Initializes a new instance of the class. - - The writer. - - - - Gets document's destination stream. - - - - - A class containing the information about the document. - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Interface - Class - Class - - - - Xmp metadata of the document. - - - - - Parent catalog class. - - - - - Author of the document. - - - - - Title of the document. - - - - - The subject of the document. - - - - - Keywords associated with the document. - - - - - If the document was converted to PDF from another format, the name of - the application that created the original document from which it was converted. - - - - - If the document was converted to PDF from another format, the name of the - application that converted it to PDF. - - - - - The date and time the document was created. - - - - - The date and time the document was modified. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store dictionary. - - - - - To store custom keyvalue m_customValue - To store Array of string customValue m_arrayString - - - - - Internal class to add customMetaData. - - - - - Creates a new object. - - - - - Initializes a new instance of the class. - - The dictionary. - The catalog. - - - - Applies to attributes to attain PDF/X1a:2001 conformance. - - - - - Gets or sets the creation date of the PDF document - - The . - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the modification date. - - The . - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the title. - - The title. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the author. - - The author of the document. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the subject. - - The subject. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the keywords. - - The keywords. - - - //Create a new document. - PdfDocument pdfDoc= new PdfDocument(); - //Creates a new page - PdfPage page = pdfDoc.Pages.Add(); - //Set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - //Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument= New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'set the Document`s properties. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - 'Sets the modification date - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets or sets the creator. - - The creator. - - - //Create a new document - PdfDocument pdfDoc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = pdfDoc.Pages.Add(); - //Set the document`s information - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - // Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'Set the document`s information. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - ' Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - If the document was converted to PDF from another format, - the name of the application (for example, Acrobat Distiller) - that converted it to PDF. - - The producer of the document. - - - //Create a new document - PdfDocument pdfDoc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = pdfDoc.Pages.Add(); - //Set the document`s information - pdfDoc.DocumentInformation.Title = "Document Properties Information"; - pdfDoc.DocumentInformation.Author = "Syncfusion"; - pdfDoc.DocumentInformation.Keywords = "PDF"; - pdfDoc.DocumentInformation.Subject = "PDF demo"; - pdfDoc.DocumentInformation.Producer = "Syncfusion Software"; - // Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF"; - pdfDoc.DocumentInformation.CreationDate = DateTime.Now; - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now; - //Save the document - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - 'Create a new document. - Dim pdfDoc As PdfDocument = New PdfDocument() - 'Create a new page - Dim page As PdfPage = pdfDoc.Pages.Add() - 'Set the document`s information. - pdfDoc.DocumentInformation.Title = "Document Properties Information" - pdfDoc.DocumentInformation.Author = "Syncfusion" - pdfDoc.DocumentInformation.Keywords = "PDF" - pdfDoc.DocumentInformation.Subject = "PDF demo" - pdfDoc.DocumentInformation.Producer = "Syncfusion Software" - ' Sets the documents creator information - pdfDoc.DocumentInformation.Creator = "Essential PDF" - pdfDoc.DocumentInformation.CreationDate = DateTime.Now - pdfDoc.DocumentInformation.ModificationDate = DateTime.Now - 'Save the document - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - Class - Class - - - - Gets Xmp metadata of the document. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight - Represents the document information in Xmp format. - - - PdfDocument pdfDoc = new PdfDocument(); - PdfPage page = pdfDoc.Pages.Add(); - // Get xmp object. - XmpMetadata xmp = pdfDoc.DocumentInformation.XmpMetadata; - // XMP Basic Schema. - BasicSchema basic = xmp.BasicSchema; - basic.Advisory.Add("advisory"); - basic.BaseURL = new Uri("http://google.com"); - basic.CreateDate = DateTime.Now; - basic.CreatorTool = "creator tool"; - basic.Identifier.Add("identifier"); - basic.Label = "label"; - basic.MetadataDate = DateTime.Now; - basic.ModifyDate = DateTime.Now; - basic.Nickname = "nickname"; - basic.Rating.Add(-25); - pdfDoc.Save("DocumentInformation.pdf"); - pdfDoc.Close(true); - - - Dim pdfDoc As PdfDocument = New PdfDocument() - Dim page As PdfPage = pdfDoc.Pages.Add() - ' Get xmp object. - Dim xmp As XmpMetadata = pdfDoc.DocumentInformation.XmpMetadata - ' XMP Basic Schema. - Dim basic As BasicSchema = xmp.BasicSchema - basic.Advisory.Add("advisory") - basic.BaseURL = New Uri("http://google.com") - basic.CreateDate = DateTime.Now - basic.CreatorTool = "creator tool" - basic.Identifier.Add("identifier") - basic.Label = "label" - basic.MetadataDate = DateTime.Now - basic.ModifyDate = DateTime.Now - basic.Nickname = "nickname" - basic.Rating.Add(-25) - pdfDoc.Save("DocumentInformation.pdf") - pdfDoc.Close(True) - - - - - - Class CusotmMetadata used for add CustomMetadata to PDFDictionry - Remove CustomMetadata values - Modify CustomMetadata values - Add CustomMetadata values - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Remove the custom field from CustomMetadataDictionary,Dictionary,CustomSchema - - - - - Gets the the key value at present or not - - - - - Add Cusotm MetaData to CustomMetadataDictionary - - - - - Gets the current count CustomMetadataDictionary - - - - - Gets the dictionary. - - The dictionary. - - - - Defines the way the document is to be presented on the screen or in print. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - doc.ViewerPreferences.PageScaling = PageScalingMode.None - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - Internal variable to store value whether to center document's window. - - - - - Internal variable to store value whether to display window�s title bar. - - - - - Internal variable to store value whether to resize the document�s window - to fit the size of the first displayed page. - - - - - Internal variable to store value whether to hide the viewer application�s - menu bar when the document is active. - - - - - Internal variable to store value whether to hide the viewer application�s - tool bars when the document is active. - - - - - Internal vaiable to store value whether to hide user interface elements - in the document�s window. - - - - - Internal variable to store value how the document should be displayed when opened - - - - - Internal variable to store value specifying the page layout to be used when the - document is opened. - - - - - Internal variable to store value specifying document's catalog. - - - - - Internal variable to store dictionary; - - - - - Internal variable to store value specifying the page scaling mode used while printing. - - - - - Initializes a new instance of the class. - - - - - Initializes new instance. - - Catalog of the document. - - - - A flag specifying whether to position the document�s window in the center of the screen. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether the window�s title bar should display the document title taken - from the Title entry of the document information dictionary. If false, the title bar - should instead display the name of the PDF file containing the document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = true; - doc.ViewerPreferences.DisplayTitle = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.CenterWindow = True - doc.ViewerPreferences.DisplayTitle = True - 'Save and close the document - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to resize the document�s window to fit the size of the first - displayed page. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.FitWindow = true; - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.FitWindow = True - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to hide the viewer application�s menu bar when the - document is active. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideMenubar = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideMenubar = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - Class - Class - - - - A flag specifying whether to hide the viewer application�s tool bars when the document is active. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideToolbar = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideToolbar = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A flag specifying whether to hide user interface elements in the document�s window - (such as scroll bars and navigation controls), leaving only the document�s contents displayed. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.HideWindowUI = true; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.HideWindowUI = True - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A name object specifying how the document should be displayed when opened. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference - doc.ViewerPreferences.PageMode = PdfPageMode.UseAttachments - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - A name object specifying the page layout to be used when the document is opened. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(True) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.PageLayout = PdfPageLayout.SinglePage - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - Gets or Set the page scaling option to be selected - when a print dialog is displayed for this document. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Creates a new page. - PdfPage page = doc.Pages.Add(); - //Set the document`s viewer preference. - doc.ViewerPreferences.PageScaling = PageScalingMode.None; - //Save and close the document. - doc.Save("ViewerPreferences.pdf"); - doc.Close(true) - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Set the document`s viewer preference. - doc.ViewerPreferences.PageScaling = PageScalingMode.None - 'Save and close the document. - doc.Save("ViewerPreferences.pdf") - doc.Close(True) - - - - - - Gets the element. - - - - - - Class which represents embedded file into Pdf document. - - - - - Internal variable to store file name. - - - - - Internal variable to store file path. - - - - - Internal variable to store mime type. - - - - - Internal variable to store embedded data. - - - - - Internal variable to store specification of the embedded file. - - - - - Internal variable to store stream. - - - - Name of the file. - - - Name of the file. - The data. - - - Name of the file. - The stream. - - - - Initializes an instance. - - - - - Saves an object. - - - - - Handles the BeginSave event of the Stream control. - - The source of the event. - The instance containing the event data. - - - - Get attachment's name through names array. - - Attachment's file name. - - - The name of the file. - - - - Gets or sets the path of the file. - - The path of the file. - - - - Gets or sets the data. - - The data. - - - - Gets or sets the type of the MIME. - - The type of the MIME. - - - - Gets the params. - - The params. - - - - Gets the element. - - - - - - Implements PDF Exponential Interpolation Function. - - - - - Implements the base class for all functions. - - - - - Internal variable to store dictionary. - - - - - Initializes a new instance of the class. - - The internal dictionary. - - - - Gets or sets the domain of the function. - - - - - Gets or sets the range. - - - - - Gets the dictionary. - - The dictionary. - - - - Gets the element. - - - - - - Local variable to store the function result when x = 0. - - - - - Local variable to store the function result when x = 1. - - - - - Local variable to store the interpolation exponent. - - - - - Initializes a new instance of the class. - - init - - - - Initializes a new instance of the class. - - - - - TO calulate the interpolation exponent. - - singleArray1 - - - - - Gets or sets the function result when x = 0. - - - - - Gets or sets the function result when x = 1. - - - - - Gets or sets the Exponent. - - - - - Implements PDF PostScript Calculator Function - - - - - Initializes a new instance of the class. - - - - - Implements PDF Sampled Function. - - - - - Initializes a new instance of the class. - - The domain. - The range. - The sizes. - The samples. - - - - Initializes a new instance of the class. - - The domain, which represents the range of the input values. - The range, which represents the range of the output values. - The sizes. - The number of samples in each dimension. - - - - Initializes a new instance of the class. - - The domain of sampled function. - The range of sampled function. - The sizes. - The samples of sampled function, - which should be in the range. - The bit-per-sample value. - - - - Initializes a new instance of the class. - - - - - Checks the input parameters. - - The domain. - The range. - The sizes. - The samples. - If one of the parameters is null. - If dimentions of the arrays don't agree. - - - - Sets the domain and range. - - The domain. - The range. - - - - Sets the size and values. - - The sizes of the sample values. - The sample values. - - - - Sets the size and values. - - The sizes of the sample values. - The sample values. - - - - Implements PDF Stitching Function. - - - - - Initializes a new instance of the class. - - - - - Specifies the type of Horizontal alignment. - - - - - Specifies the element is aligned to Left. - - - - - Specifies the element is aligned to Center. - - - - - Specifies the element is aligned to Right. - - - - - Specifies the type of Vertical alignment. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Set the line alignment. - format.LineAlignment = PdfVerticalAlignment.Middle; - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the element is aligned to Top. - - - - - Specifies the element is aligned to Middle. - - - - - Specifies the element is aligned to Bottom. - - - - - Specifies the type of horizontal text alignment. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create a new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create a new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - //Set the text alignment. - format.Alignment = PdfTextAlignment.Center; - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, new RectangleF(0, 0, 200, 100), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create a new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create a new PDF string format instance. - Dim format As PdfStringFormat = New PdfStringFormat() - 'Set the text alignment. - format.Alignment = PdfTextAlignment.Center - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, New RectangleF(0, 0, 200, 100), format); - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies the text is aligned to Left. - - - - - Specifies the text is aligned to Center. - - - - - Specifies the text is aligned to Right. - - - - - Specifies the text as Justified text. - - - - - Represents the text rendering direction. - - - - - Specifies the default text order. - - - - - Specifies the left to right direction. - - - - - Specifies the right to left direction. - - - - - Specifies the text rendering mode. - - - - - Fill text. - - - - - Stroke text. - - - - - Fill, then stroke text. - - - - - Neither fill nor stroke text (invisible). - - - - - The flag showing that the text should be a part of a clipping path. - - - - - Fill text and add to path for clipping (see above). - - - - - Stroke text and add to path for clipping. - - - - - Fill, then stroke text and add to path for clipping. - - - - - Add text to path for clipping. - - - - - Specifies the corner style of the shapes. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line jion. - pen.LineJoin = PdfLineJoin.Bevel; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Set line jion. - pen.LineJoin = PdfLineJoin.Bevel - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The outer edges for the two segments are extended - until they meet at an angle. - - - - - An arc of a circle with a diameter equal to the line width is drawn - around the point where the two segments meet, connecting the outer edges for the two segments. - - - - - The two segments are finished with caps - and the resulting notch beyond the ends of the segments is filled - with a triangle. - - - - - Specifies the line cap style to be used at the ends of the lines. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line cap. - pen.LineCap = PdfLineCap.Round; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - 'Set line cap. - pen.LineCap = PdfLineCap.Round - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The stroke is squared off at the endpoint of the path. There is no - projection beyond the end of the path. - - - - - A semicircular arc with a diameter equal to the line width is - drawn around the endpoint and filled in. - - - - - The stroke continues beyond the endpoint of the path - for a distance equal to half the line width and is squared off. - - - - - Possible dash styles of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Solid line. - - - - - Dashed line. - - - - - Dotted line. - - - - - Dash-dot line. - - - - - Dash-dot-dot line. - - - - - User defined dash style. - - - - - - - Specifies how the shapes are filled. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - - - Nonzero winding number rule of determining "insideness" - of point. - - - - - - - Even odd rule of determining "insideness" of point. - - - - - - - Defines set of color spaces. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale; - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - RGB color space. - - - - - - - CMYK color space. - - - - - - - GrayScale color space. - - - - - Indexed color space used internally. - - - - - Describes the Color intents. - - - - - Colors are represented solely with respect to the light source; - no correction is made for the output medium�s white point - (such as the color of unprinted paper). - - - - - Colors are represented with respect to the combination of - the light source and the output medium�s white point - (such as the color of unprinted paper). - - - - - Colors are represented in a manner that preserves - or emphasizes saturation. - - - - - Colors are represented in a manner that provides a pleasing - perceptual appearance. - - - - - Specifies the blend mode for transparency. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f, PdfBlendMode.HardLight); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F, PdfBlendMode.HardLight) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Selects the source color, ignoring the backdrop. - - - - - Multiplies the backdrop and source color values. - The result color is always at least as dark as either - of the two constituent colors. Multiplying - any color with black produces black; multiplying - with white leaves the original color unchanged. - Painting successive overlapping objects with a color - other than black or white produces progressively darker colors. - - - - - Multiplies the complements of the backdrop and source - color values, then complements the result. The result - color is always at least as light as either of the two - constituent colors. Screening any color with white - produces white; screening with black leaves the original - color unchanged. The effect is similar to projecting - multiple photographic slides simultaneously onto a single screen. - - - - - Multiplies or screens the colors, depending on - the backdrop color value. Source colors overlay - the backdrop while preserving its highlights and - shadows. The backdrop color is not replaced but - is mixed with the source color to reflect the - lightness or darkness of the backdrop. - - - - - Selects the darker of the backdrop and source colors. - The backdrop is replaced with the source where the source - is darker; otherwise, it is left unchanged. - - - - - Selects the lighter of the backdrop and source colors. - The backdrop is replaced with the source where the source - is lighter; otherwise, it is left unchanged. - - - - - Brightens the backdrop color to reflect the source color. - Painting with black produces no changes. - - - - - Darkens the backdrop color to reflect the source color. - Painting with white produces no change. - - - - - Multiplies or screens the colors, depending on the source color value. - The effect is similar to shining a harsh spotlight on the backdrop. - - - - - Darkens or lightens the colors, depending on the source color value. - The effect is similar to shining a diffused spotlight on the backdrop. - - - - - Subtracts the darker of the two constituent colors from the lighter color. - Painting with white inverts the backdrop color; painting with black produces no change. - - - - - Produces an effect similar to that of the Difference mode - but lower in contrast. Painting with white inverts - the backdrop color; painting with black produces no change. - - - - - Creates a color with the hue of the source color and - the saturation and luminosity of the backdrop color. - - - - - Creates a color with the saturation of the source color - and the hue and luminosity of the backdrop color. Painting - with this mode in an area of the backdrop that is a pure - gray (no saturation) produces no change. - - - - - Creates a color with the hue and saturation of - the source color and the luminosity of the backdrop - color. This preserves the gray levels of the backdrop - and is useful for coloring monochrome images or tinting color images. - - - - - Creates a color with the luminosity of the source color - and the hue and saturation of the backdrop color. This - produces an inverse effect to that of the Color mode. - - - - - Specifies the type of the PdfImage. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the image is bitmap. - - - - - Specifies the image is metafile. - - - - - Specifies the types of the page's logical units. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - RectangleF rect = converter.ConvertToPixels(new RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim rect As RectangleF = converter.ConvertToPixels(New RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Specifies the Measurement is in centimeters. - - - - - Specifies the Measurement is in picas. A pica represents 12 points. - - - - - Specifies the unit of measurement is 1 pixel. - - Pixel unit is device dependent unit. The result depends on the default Dpi on the machine. - - - - Specifies a printer's point (1/72 inch) as the unit of measure. - - - - - Specifies the inch as the unit of measure. - - - - - Specifies the document unit (1/300 inch) as the unit of measure. - - - - - Specifies the Measurement is in millimeters. - - - - - Specifies the alignment type. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - To fit background image to the cell based on the cell with and height. - - - - - The image is rendered by center of the cell. - - - - - The image is stretched by the percentages required to fit the width and height of the cell. - - - - - The imag is rendered by tile mode. - - - - - Implements structures and routines working with color. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(Color.Red); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(Color.Red) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - Max value of color channel. - - - - - - - Holds RGB colors converted into strings. - - - - - - - Holds Grayscale colors converted into strings for stroking. - - - - - - - Holds Grayscale colors converted into strings for filling. - - - - - - - Holds the system-wide empty PDF color. - - - - - - - Value of Red channel. - - - - - - - Value of Cyan channel. - - - - - - - Value of Green channel. - - - - - - - Value of Magenta channel. - - - - - - - Value of Blue channel. - - - - - - - Value of Yellow channel. - - - - - - - Value of Black channel. - - - - - - - Value of Gray channel. - - - - - - - Alpha channel. - - - - - - - Shows if the color is empty. - - - - - Initializes a new instance of the class with source color - - Source color object. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(new PdfColor(Color.Green)); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(New PdfColor(Color.Green)) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with object - - Source color object. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(Color.Red); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(Color.Red) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with gray value - - Gray value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(0.5f); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(0.5F) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with Red,Green and Blue values. - - Red channel value. - Green channel value. - Blue channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(200, 120, 80); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(200, 120, 80) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The red colour value in the range from 0.0 to 1.0. - The green value in the range from 0.0 to 1.0. - The blue value in the range from 0.0 to 1.0. - - - - - - Creates new object. - - Alpha channel. - Red channel value. - Green channel value. - Blue channel value. - - - - Initializes a new instance of the class with Cyan,Magenta,Yellow and Black channels. - - Cyan channel value. - Magenta channel value. - Yellow channel value. - Black channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = new PdfColor(200, 120, 80, 40); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As New PdfColor(200, 120, 80, 40) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Creates the Alpha ,Red ,Green, and Blue value of this PDFColor structure. - - ARGB value. - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.LightBlue); - //Get the ARGB value. - int argb = color1.ToArgb(); - Console.WriteLine("ARGB: "+ argb); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.LightBlue) - 'Get the ARGB value. - Dim argb As Integer = color1.ToArgb() - Console.WriteLine("ARGB: " + argb) - - - - - - Implicit operator. - - System.Drawing.Color. - PDFColor. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF color. - PdfColor color = System.Drawing.Color.Red; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF color. - Dim color As PdfColor = System.Drawing.Color.Red - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Implicit operator. - - System.Drawing.Color. - PDFColor. - - - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(200, 120, 80); - //Convert PDF color to System color. - System.Drawing.Color systemColor = pdfColor; - Console.WriteLine("Red: " + systemColor.R + " Green: " + systemColor.G + " Blue: " + systemColor.B); - - - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(200, 120, 80) - 'Convert PDF color to System color. - Dim systemColor As System.Drawing.Color = pdfColor - Console.WriteLine("Red: " + systemColor.R + " Green: " + systemColor.G + " Blue: " + systemColor.B) - - - - - - Operator ==. - - The color 1. - The color 2. - - True if color 1 is equal to color 2; otherwise False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(255, 0, 0); - //Check both the color are equal. - if (color1 == color2) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(255, 0, 0) - 'Check both the color are equal. - If color1 = color2 Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Operator !=. - - The color 1. - The color 2. - - True if color 1 is not equal to color 2; otherwise False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(250, 0, 0); - //Check both the color are equal. - if (color1 != color2) - Console.WriteLine("The colors are not same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(250, 0, 0) - 'Check both the color are equal. - If color1 = color2 Then - Console.WriteLine("The colors are not same.") - End If - - - - - - Determines whether the specified - is equal to the current . - - The to - compare with the current . - - True if the specified is equal - to the current ; otherwise - - False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(253, 0, 0); - //Check both the color are equal. - if(color1.Equals(color2)) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(253, 0, 0) - 'Check both the color are equal. - If color1.Equals(color2) Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Determines if the specified color is equal to this one. - - The color. - - True if the color is equal; otherwise - False. - - - - - //Create new PDF color. - PdfColor color1 = new PdfColor(Color.Red); - PdfColor color2 = new PdfColor(253, 0, 0); - //Check both the color are equal. - if(color1.Equals(color2)) - Console.WriteLine("Both the colors are same."); - - - 'Create new PDF color. - Dim color1 As New PdfColor(Color.Red) - Dim color2 As New PdfColor(253, 0, 0) - 'Check both the color are equal. - If color1.Equals(color2) Then - Console.WriteLine("Both the colors are same.") - End If - - - - - - Serves as a hash function for a particular type, suitable for - use in hashing algorithms and data structures like a hash - table. - - - A hash code for the current . - - - - - - - - Sets RGB color. - - If color stroking. - - Result string. - - - - - Sets Calibrated RGB color. - - - - - - - Sets Calibrated Lab color. - - - - - - - Sets Calibrated Gray color. - - - - - - - Sets Calibrated RGB color. - - - - - - - Sets Calibrated CMYK color. - - - - - - - Sets Calibrated Lab color. - - - - - - - Sets Calibrated Gray color. - - - - - - - - - Sets gray color. - - If color stroking. - - Result string. - - - - - - - Sets CMYK color. - - If color stroking. - - Result string. - - - - - - - Writes RGB colour to string builder. - - The string builder. - If set to True stroke. - - - - - - Writes CMYK color to string builder. - - The string builder. - If set to true stroke; otherwise, false. - - - - - - Writes grayscale color to string builder. - - The string builder. - If set to True stroke. - - - - - - Converts PDFColor to PDF string representation. - - Color space. - If color stroking. - - Result string. - - - - - Converts PDFColor to PDF string representation. - - - - - - - - - - Writes color value to a string builder. - - The string builder. - The color space. - If set to True stroke. - - - - - - Converts RGB to CMYK. - - Red channel value. - Green channel value. - Blue channel value. - - - - - - Converts CMYK to RGB. - - Cyan channel value. - Magenta channel value. - Yellow channel value. - Black channel value. - - - - - - Compares colors. - - The color 1. - The color 2. - - True if colors are identical; otherwise - False. - - - - - Converts colour to a PDF array of R, G and B float values. - - Filled PdfArray object. - - - - Converts colour to a PDF array. - - The color space. - The well filled PdfArray object. - - - - Gets a null color. - - The empty. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Gets an empty PDF color instance. - PdfColor color = PdfColor.Empty; - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(color); - //Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Gets an empty PDF color instance. - Dim color As PdfColor = PdfColor.Empty - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(color) - 'Draw string to PDF page. - graphics.DrawString("Hello World!", font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets whether the PDFColor is Empty or not. - - true if this instance is empty; otherwise, false. - - - - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(Color.Empty); - //Check the color. - bool isEmpty = pdfColor.IsEmpty; - Console.WriteLine("The Color is " + (isEmpty? "empty" : "not empty")); - - - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(Color.Empty) - 'Check the color. - Dim isEmpty As Boolean = pdfColor.IsEmpty - Console.WriteLine("The Color is " + (If(isEmpty, "empty", "not empty"))) - - - - - - Gets or sets Blue channel value. - - The B. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("SlateBlue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the blue channel value. - string text = "The blue channel value is " + pdfColor.B; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("SlateBlue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the blue channel value. - Dim text As String = "The blue channel value is " + pdfColor.B - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the blue color - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Blue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the blue color value. - string text = "The blue color value is " + pdfColor.Blue; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Blue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the blue color value. - Dim text As String = "The blue color value is " + pdfColor.Blue - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Cyan channel value. - - The C. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("SlateBlue"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the cyan channel value. - string text = "The cyan channel value is " + pdfColor.C; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("SlateBlue") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the cyan channel value. - Dim text As String = "The cyan channel value is " + pdfColor.C - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Green channel value. - - The G. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("LawnGreen"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the green channel value. - string text = "The green channel value is " + pdfColor.G; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("LawnGreen") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the green channel value. - Dim text As String = "The green channel value is " + pdfColor.G - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Gets the green value - - The green. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Green"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the green color value. - string text = "The green color value is " + pdfColor.Green; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Green") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the green color value. - Dim text As String = "The green color value is " + pdfColor.Green - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Gray channel value. - - The gray. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the gray channel value. - string text = "The gray channel value is " + pdfColor.Gray; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the gray channel value. - Dim text As String = "The gray channel value is " + pdfColor.Gray - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Black channel value. - - The K. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the black channel value. - string text = "The black channel value is " + pdfColor.K; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the black channel value. - Dim text As String = "The black channel value is " + pdfColor.K - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Magenta channel value. - - The M. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the megenta channel value. - string text = "The megenta channel value is " + pdfColor.M; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the megenta channel value. - Dim text As String = "The megenta channel value is " + pdfColor.M - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Red channel value. - - The R. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Red"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the red channel value. - string text = "The red channel value is " + pdfColor.R; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Red") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the red channel value. - Dim text As String = "The red channel value is " + pdfColor.R - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the red color - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("Red"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the red color value. - string text = "The red color value is " + pdfColor.Red; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("Red") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the red color value. - Dim text As String = "The red color value is " + pdfColor.Red - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets Yellow channel value. - - The Y. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("YellowGreen"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the yellow channel value. - string text = "The yellow channel value is " + pdfColor.Y; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("YellowGreen") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the yellow channel value. - Dim text As String = "The yellow channel value is " + pdfColor.Y - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - - Gets or sets Alpha channel value. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create color - Color color = Color.FromName("DarkSlateGray"); - //Create a new PDF color instance. - PdfColor pdfColor = new PdfColor(color); - //Create new PDF brush. - PdfBrush brush = new PdfSolidBrush(pdfColor); - //Get the alpha channel value. - string text = "The alpha channel value is " + pdfColor.A; - //Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create color - Dim color As Color = Color.FromName("DarkSlateGray") - 'Create a new PDF color instance. - Dim pdfColor As New PdfColor(color) - 'Create new PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(pdfColor) - 'Get the alpha channel value. - Dim text As String = "The alpha channel value is " + pdfColor.A - 'Draw string to PDF page. - graphics.DrawString(text, font, brush, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - This class helps to fill correctly - External graphics state dictionary. - - - - - Gets the element. - - - - - The Syncfusion.Pdf.Graphics namespace contains classes to render graphics objects - - - - - Represents a graphics context of the objects. - It's used for performing all the graphics operations. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 20, 200, 100)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 20, 200, 100)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Specifies the mask of path type values. - - - - - Check whether it is an emf call - - - - - Check whether it is an emf plus call - - - - - check whether to use font size to calculate the shift - - - - - Check whether it is an emf call - - - - - - Represents the Stream writer object. - - - - - Represents the Resource container for the graphics. - - - - - Represents the Size of the canvas. - - - - - Represents the size of the canvas reduced by margins and templates. - - - - - Represents the state, whether it is saved or not. - - - - - Represents the Current pen. - - - - - Represents the Current brush. - - - - - Represents the Current font. - - - - - Represents the Current color space. - - - - - Indicates whether color space was initialized. - - - - - Stack of the graphics states. - - - - - The transformation matrix monitoring all changes with CTM. - - - - - Stores previous rendering mode. - - - - - Previous character spacing value or 0. - - - - - Previous word spacing value or 0. - - - - - The previously used text scaling value. - - - - - Holds transparencies used in the graphics. - - - - - Current string format. - - - - - Internal variable to store layer on which this graphics lays. - - - - - Internal variable to store layer on which this graphics PdfLayer. - - - - - Internal variable to store collection of automatic fields. - - - - - Internal variable to store layout result after drawing string. - - - - - Internal variable to store position of split. - - - - - Indicates whether the object had trasparency. - - - - - Helps to lock s_mask to avoid race conditions. - - - - - Helps to lock DrawTemplate in multi threading - - - - - Emf Text Scaling Factor - - - - - Check whether it is an emf Text Matrix - - - - - Identifying the Optimized image - - - - - To check wihether its a direct text rendering. - - - - - To store the previous document color spaace. - - - - - To store the previous graphics color spaace. - - - - - To check whether the last color space of document and garphics is saved. - - - - - Stores Text rendering mode. - - - - - Indicates whether the text rendering mode is set. - - - - - Shows if the graphics state was changed. - - - - - Shows if it was the first transformation operation. - - - - - Shows if the graphics state was restored. - - - - - Shows if it's the first call to the OnDrawPrimitive method. - - - - - stores the text clip - - - - - Indicate whether the Word to PDF DirectConversion. - - - - - Initializes a new instance of the class. - - The size. - The resources. - The stream writer of the current layer. - - - - Initializes a new instance of the class. - - The size. - The resources. - The stream of the current layer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Draws the specified PdfImage, using its original physical size, at the specified location.. - - PdfImage to draw. - Point structure that represents the location of the upper-left corner of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new PointF(0, 0)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New PointF(0, 0)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified image, using its original physical size, at the location specified by a coordinate pair. - - PdfImage to draw. - The x-coordinate of the upper-left corner of the drawn image. - The y-coordinate of the upper-left corner of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, 0, 0); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image, 0, 0) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified Image at the specified location and with the specified size. - - PdfImage to draw. - RectangleF structure that specifies the location and size of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new RectangleF(0, 0, 300, 200)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New RectangleF(0, 0, 300, 200)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified Image at the specified location and with the specified shape and size. - - PdfImage to draw. - Point structure that represents the location of the upper-left corner of the drawn image. - SizeF structure that represents the height and width of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, new PointF(0, 0), new SizeF(300, 200)); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image,New PointF(0, 0), New SizeF(300, 200)) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Draws the specified image, using its original physical size, at the location specified by a coordinate pair. - - PdfImage to draw. - The x-coordinate of the upper-left corner of the drawn image. - The y-coordinate of the upper-left corner of the drawn image. - Width of the drawn image. - Height of the drawn image. - - - //Creates a new PDF document. - PdfDocument doc = new PdfDocument(); - //Adds a page to the document. - PdfPage page = doc.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics g = page.Graphics; - //Creates an image object. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draws the image. - g.DrawImage(image, 0, 0, 300, 200); - //Saves the document. - doc.Save("Output.pdf"); - //Closes the document. - doc.Close(true); - - - 'Creates a new PDF document. - Dim doc As New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Creates PDF graphics for the page. - Dim g As PdfGraphics = page.Graphics - 'Creates an image object. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draws the image. - g.DrawImage(image, 0, 0, 300, 200) - 'Saves the document. - doc.Save("Output.pdf") - 'Closes the document. - doc.Close() - - - - - - Set the Page xobject in page parent dictionary. - - - - - - - - - Gets the identical Xobject from Image collection. - - - - - - - - - Draws the specified text string at the specified location with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, brush, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, New PointF(20,20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, brush, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - The x. - The y. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 20,20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Creates a solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, brush, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Creates a solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, brush, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New PointF(20,20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - The text string format. - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string.. - Pen that determines the color, width, and style of the path. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new PointF(20, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New PointF(20, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - PointF structure that specifies the upper-left corner of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new PointF(20, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New PointF(20,20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - The text string format. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20, format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20,20, format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - Brush that determines the color and texture of the drawn text. - The x-coordinate of the upper-left corner of the drawn text. - The y-coordinate of the upper-left corner of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, 20, 20) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush and Font objects. - - The text string. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the bounds of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, new RectangleF(20, 20, 200, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, New RectangleF(20, 20, 200, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Brush that determines the color and texture of the drawn text. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Brush, shift value and Font objects. - - - - - Draws the specified text string at the specified location and size - with the specified Pen and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - RectangleF structure that specifies the bounds of the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new RectangleF(20, 20, 200, 20)); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New RectangleF(20, 20, 200, 20)) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen, Brush and Font objects. - - String to draw. - Font that defines the text format of the string. - Pen that determines the color, width, and style of the path. - The brush. - RectangleF structure that specifies the bounds of the drawn text. - StringFormat that specifies formatting attributes, such as line spacing and alignment, that are applied to the drawn text. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Sets the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - //Create PDF string format. - PdfStringFormat format = new PdfStringFormat(); - //Set text alignement. - format.Alignment = PdfTextAlignment.Left; - format.LineAlignment = PdfVerticalAlignment.Top; - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, new RectangleF(20, 20, 200, 20), format); - //Saves the document. - document.Save("Sample.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Adds a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Sets the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - 'Create PDF string format. - Dim format As New PdfStringFormat() - 'Set text alignement. - format.Alignment = PdfTextAlignment.Left - format.LineAlignment = PdfVerticalAlignment.Top - 'Draws the text. - graphics.DrawString("Hello world!", font, PdfPens.Red, PdfBrushes.Green, New RectangleF(20, 20, 200, 20), format) - 'Saves the document. - document.Save("Sample.pdf") - 'Closes the document - document.Close(true) - - - - - - Draws the specified text string at the specified location and size - with the specified Pen, Brush, shift Value and Font objects. - - - - - Changes the origin of the coordinate system by prepending the specified translation to the transformation matrix of this Graphics. - - The x-coordinate of the translation. - The y-coordinate of the translation. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Applies the specified scaling operation to the transformation matrix of this Graphics by prepending it to the object's transformation matrix. - - Scale factor in the x direction. - Scale factor in the y direction. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Scale transform - graphics.ScaleTransform(0.5f, 0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Scale transform - graphics.ScaleTransform(0.5F, 0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Applies the specified rotation to the transformation matrix of this Graphics. - - Angle of rotation in degrees. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set rotate transform - graphics.RotateTransform(-90); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, -100, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set rotate transform - graphics.RotateTransform(-90) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, -100, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Skews the coordinate system axes. - - Skews the X axis by this angle (in - degrees). - Skews the Y axis by this angle (in - degrees). - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set skew transform - graphics.SkewTransform(10,10); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set skew transform - graphics.SkewTransform(10, 10) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - - Multiplies the world transformation of this Graphics and specified the Matrix. - - The matrix that multiplies the world transformation. - - - - Draws a template using its original size, at the specified location. - - object. - PointF structure that specifies the upper-left corner of the drawn template. - - - //Creates a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Adds a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a PDF Template. - PdfTemplate template = new PdfTemplate(100, 50); - //Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new System.Drawing.RectangleF(0, 0, 100, 50)); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14); - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5); - //Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty); - //Saves the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Creates a new PDF document. - Dim pdfDocument As New PdfDocument() - 'Adds a page to the PDF document - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Creates a PDF Template. - Dim template As New PdfTemplate(100, 50) - 'Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New System.Drawing.RectangleF(0, 0, 100, 50)) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14) - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5) - 'Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty) - 'Saves the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - Draws a template at the specified location and size. - - object. - PointF structure that specifies the upper-left corner of the drawn template. - Size of the template. - - - //Creates a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Adds a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a PDF Template. - PdfTemplate template = new PdfTemplate(100, 50); - //Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new System.Drawing.RectangleF(0, 0, 100, 50)); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14); - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5); - //Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty, template.Size); - //Saves the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Creates a new PDF document. - Dim pdfDocument As New PdfDocument() - 'Adds a page to the PDF document - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Creates a PDF Template. - Dim template As New PdfTemplate(100, 50) - 'Draws a rectangle into the graphics of the template. - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New System.Drawing.RectangleF(0, 0, 100, 50)) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14) - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Draws a string into the graphics of the template. - template.Graphics.DrawString("Hello World", font, brush, 5, 5) - 'Draws the template into the page graphics of the document. - pdfPage.Graphics.DrawPdfTemplate(template, PointF.Empty, template.Size) - 'Saves the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - Forces execution of all pending graphics operations and returns immediately without waiting for the operations to finish. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty); - //Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(0, 20, 200, 100)); - graphics.Flush(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Draw string to PDF page graphics. - graphics.DrawString("Hello World!", font, PdfBrushes.Black, PointF.Empty) - 'Draw the rectangle to PDF page graphics. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(0, 20, 200, 100)) - graphics.Flush() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Saves the current state of this Graphics and identifies the saved state with a GraphicsState. - - This method returns a GraphicsState that represents the saved state of this Graphics. - This method works similar to method. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Restores the state of this Graphics to the state represented by a GraphicsState. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Restores the state of this Graphics to the state represented by a GraphicsState. - - GraphicsState that represents the state to which to restore this Graphics. - This method works similar to method. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - PdfGraphicsState state = graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(state); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - Dim state As PdfGraphicsState = graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore(state) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the rectangle specified by a RectangleF structure. - - RectangleF structure that represents the new clip region. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //set clip. - graphics.SetClip(new RectangleF(0, 0, 50, 12)); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'set clip. - graphics.SetClip(New RectangleF(0, 0, 50, 12)) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the rectangle specified by a RectangleF structure. - - RectangleF structure to combine. - Member of the PdfFillMode enumeration that specifies the filling operation to use. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //set clip. - graphics.SetClip(new RectangleF(0, 0, 50, 12), PdfFillMode.Alternate); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'set clip. - graphics.SetClip(New RectangleF(0, 0, 50, 12), PdfFillMode.Alternate) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the clipping region of this Graphics to the result of the specified operation combining the current clip region and the specified PdfPath. - - PdfPath to clip. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF path. - PdfPath path = new PdfPath(); - path.AddRectangle(new RectangleF(0, 0, 50, 12)); - //set clip. - graphics.SetClip(path); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF path. - Dim path As New PdfPath() - path.AddRectangle(New RectangleF(0, 0, 50, 12)) - 'set clip. - graphics.SetClip(path) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Modifying the current clipping path by intersecting it with the current path. - - PdfPath to fill. - Member of the PdfFillMode enumeration that specifies the filling operation to use. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Create PDF path. - PdfPath path = new PdfPath(); - path.AddRectangle(new RectangleF(0, 0, 50, 12)); - //set clip. - graphics.SetClip(path, PdfFillMode.Alternate); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Create PDF path. - Dim path As New PdfPath() - path.AddRectangle(New RectangleF(0, 0, 50, 12)) - 'set clip. - graphics.SetClip(path, PdfFillMode.Alternate) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified value for pen - - The alpha value for both pen - and brush operations. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified value for pen and brush - - The alpha value for pen operations. - The alpha value for brush operations. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Sets the transparency of this Graphics with the specified PdfBlendMode - - The alpha value for pen operations. - The alpha value for brush operations. - The blend mode. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set transparancy. - graphics.SetTransparency(0.5f, 0.5f, PdfBlendMode.HardLight); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrushes.Red, 0, 0); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set transparancy. - graphics.SetTransparency(0.5F, 0.5F, PdfBlendMode.HardLight) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Black, PdfBrueshes.Red, 0, 0) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Normalizes the text. - - The font. - The text. - The normalized string. - - - - Initializes this instance. - - - - - Sets the layer for the graphics. - - The layer. - - - - Sets the layer for the graphics - - - - - - Handles the Save event of the Page control. - - The source of the event. - The instance containing the event data. - - - - Updates y co-ordinate. - - Y co-ordinate. - Updated y co-ordinate. - - - - Writes a comment line. - - The comment. - - - - Clears an instance. - - - - - Restores graphics state. - - The restored graphics state. - - - - Controls all state modifications and react repectively. - - The pen. - The brush. - The font. - - - - Controls all state modifications and react respectively. - - The pen. - The brush. - The font. - Text settings. - - - - Saves the font and other font settings. - - Current font. - Current format. - If set to true the state's been changed. - - - - Saves the ColorSpace and other ColorSpace settings. - - - - - - Controls the brush state. - - The brush. - if set to true the state's been changed. - - - - Initializes the current color space. - - - - - Initializes the current color space. - - - - - - Controls the pen state. - - The pen. - if set to true the state's been changed. - - - - Draws custom or sets predefined line cap style. - - The pen. - The x2. - The y2. - The x1. - The y1. - - - - Draws the path. - - The pen. - The brush. - if it is need to close, set to true. - - - - Draws the path. - - The pen. - The brush. - The fill mode. - if it is need to close, set to true. - - - - Gets the bezier points for arc constructing. - - The x1. - The y1. - The x2. - The y2. - The start angle. - The extent. - - - - - Constructs the arc path using Bezier curves. - - The x1. - The y1. - The x2. - The y2. - The start angle. - The sweep angle. - - - - Builds up the path. - - The path. - - - - Gets the bezier points from respective arrays. - - The points. - The types. - The i. - The p2. - The p3. - - - - Builds up the path. - - The points. - The types. - - - - Checks path point type flags. - - The path point type. - - - - Gets the text rendering mode. - - The pen. - The brush. - The format. - Proper TextRenderingMode value. - - - - Sets the drawing area and translates origin. - - X co-ordinate of the co-ordinate system. - Y co-ordinate of the co-ordinate system. - Left margin value. - Top margin value. - Right margin value. - Bottom margin value. - - - - Sets the drawing area and translates origin. - - Clip bounds of the graphics. - - - - Initializes coordinate system. - - - - - Initializes coordinate system. - - - - - Flips the hirizontally. - - - - - Flips the coordinates vertically. - - - - - Translates coordinates of the input matrix. - - X translation. - Y translation. - Input matrix. - Output matrix. - - - - Scales coordinates of the input matrix. - - X scaling. - Y scaling. - Input matrix. - Output matrix. - - - - Rotates coordinates of the input matrix. - - Rotation angle. - Input matrix. - Output matrix. - - - - Skews coordinates of the input matrix. - - X skewing. - Y skewing. - Input matrix. - Output matrix. - - - - Draws a CJK string. - - The line info. - The layout rectangle. - The font. - The format. - - - - Gets a CJK string. - - The line. - A proper PdfString class instance. - - - - Draws Ascii line. - - Text line. - Lay outing rectangle. - Font object. - Text format. - - - - Creates PdfString from ASCII string. - - String line. - PdfString object. - - - - Draws unicode line. - - Text line. - Lay outing rectangle. - Font object. - Text format. - - - - Creates PdfString from the unicode text. - - Unicode text. - PdfString object. - - - - Breakes the unicode line to the words and converts symbols to glyphs. - - String text. - TTF font. - Array of real words. - Array of text in glyphs. - - - - Converts to unicode format. - - Unicode text. - The TTF font. - Converted string - - - - Draws array of unicode tokens. - - Unicode tokens. - Array of the real words. - Font object. - Text formatting. - Word spacing value if need to be justified. - - - - Gets the text lines from the text. - - The text. - - - - - Applies all the text settings. - - Font object. - Pen object. - Brush object. - Text format. - - - - Calculates shift value if the line is horizontaly aligned. - - Line width. - Bounds width. - Text format. - Shift value. - - - - Calculates shift value if the text is vertically aligned. - - Text height. - Bounds height. - Text format. - Shift value. - - - - Justifies the line if needed. - - String text. - Width of the bounds. - Text format. - Space width for justifying. - - - - Checks whether the line should be justified. - - String text. - Width of the bounds. - Text format. - True if the line should be justified. - - - - Checks and corrects layoutRectangle for text lay outing. - - Text bounds. - True - if some part of the layoutRectangle fits the canvas ClipBounds, false otherwise. - - - - Creates lay outed rectangle depending on the text settings. - - Size of the text. - X co-ordinate of the text. - Y co-ordinate of the text. - Text format settings. - layout rectangle. - - - - Emulates Underline, Strikeout of the text if needed. - - Current pen. - Current brush. - Lay outing result. - Font object. - Lay outing rectangle. - Text format. - - - - Creates a pen for drawing lines in the text. - - Current pen. - Current brush. - Current font. - Text format. - Pen for the lines. - - - - Draws layout result. - - Layout result. - Text font. - Text format. - Layout rectangle. - - - - Draws a layout result with shift value. - - - - - Draws a layout result. - - Layout result. - Text font. - The pen object. - The brush object. - Layout rectangle. - Text format. - - - - Returns line indent for the line. - - Line info. - Text settings. - Layout Bounds. - Indicates whether the line is the first in the text. - Returns line indent for the line. - - - - Checks whether RTL is enabled. - - Text settings. - Tre if RTL is enabled. - - - - Returns bounds of the line info. - - index of the line in the result. - Layout result. - Font used for this text. - Layout rectangle. - Text settings. - Returns bounds of the line info. - - - - Sets the BBox entry of the graphics dictionary. - - The bounds. - - - - Raise the event on property changed. - - - - - - Draws a text string. - - The text. - The font. - The brush. - The text boundaries. - The string format. - - - - Calculates scaling factor for text that fits to the specifiedboundaries. - - String text to be scaled. - Font object. - Text' boundaries. - Size of the text. - The format. - The scaling factor. - - - - Resets the current clip region to the infinite region. - - - - - Prepares a matrix to PDF. - - The matrix. - The page scale value. - - A properly prepared PdfTransformationMatrix class instance. - - - - - Sets the current clip region. - - The rectangle specifying the new clip region. - The combining mode. - - - - Called when we need to draw a primitive. - - - - - Converts the System.Drawing.StringFormat format to - Syncfusion.Pdf.Graphics.PdfStringFormat format. - - The format. - Proper Syncfusion.Pdf.Graphics.PdfStringFormat format. - - - - Converts the line alignment. - - The string alignment. - The proper VerticalAlignment value. - - - - Gets the type of the wrap. - - The string format flags. - Proper StringWrapType value. - - - - Converts the alingnmet. - - The string alignment. - The proper TextAlignment value. - - - - Performs translate transformation of the graphics. - - The offset by the x coordinate. - The offset by the y coordinate. - The order of the matrix operations. - - - - Performs the rotate transformations. - - The angle. - The order. - - - - Converts GraphicsUnits to PrintUnits. - - - returns PrintUnits - - - - Internally resets clip region. - - - - - Sets transformation matrix. - - - - - Resets the transformations. - - - - - Sets clip region. - - - - - Sets clip region. - - - - - Gets clip path for the graphics. - - - - - Extracts fill mode of the path. - - Graphics path. - Fill mode of the path. - - - - Internally resets transformation. - - - - - Saves the current graphics state. - - A GraphicsState instance that stores - information about the current graphic state. - - - - Restores the graphics state to the specified graphics state. - - The saved graphics state. - - - - Gets the size of the canvas. - - Usually, this value is equal to the size of the object this graphics belongs to. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Get the graphics canvas size. - SizeF canvasSize = graphics.Size; - //Draw string to PDF page graphics. - graphics.DrawString("Canvas size: " + canvasSize.ToString(), font, PdfBrushes.Black, PointF.Empty); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Get the graphics canvas size. - Dim canvasSize As SizeF = graphics.Size - 'Draw string to PDF page graphics. - graphics.DrawString("Canvas size: " + canvasSize.ToString(), font, PdfBrushes.Black, PointF.Empty) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the size of the canvas reduced by margins and page templates. - - It indicates a size of the canvas reduced by margins and template dimensions. - This value doesn't change when any custom clip is set. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the current color space of the document - - The value change of this property has impact on the objects - which will be drawn after the change. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale; - //Get the graphics client size. - SizeF clientSize = graphics.ClientSize; - //Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(PointF.Empty, clientSize)); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Set the color space. - graphics.ColorSpace = PdfColorSpace.GrayScale - 'Get the graphics client size. - Dim clientSize As SizeF = graphics.ClientSize - 'Draw rectangle to PDF graphics. - graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(PointF.Empty, clientSize)) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the stream writer. - - - - - Gets the transformation matrix reflecting current transformation. - - - - - Gets the layer for the graphics, if exists. - - The layer. - - - - Gets the page for this graphics, if exists. - - The page. - - - - Gets the automatic fields. - - The automatic fields. - - - - Returns the result after drawing string. - - - - - Gets or sets the split before being processed by Text and Image region managers. - - - - - Gets the transparency object value - - - - - Gets or sets tag for the element - - - - - Gets a value indicating whether the document is auto-tagged. - - - - - Gets or sets the current tag type. - - - - - Gets or sets a value, indicating the template graphics. - - - - - Gets or sets transformation of graphics. - - - - - Gets or sets the scaling between world units and page units for this Graphics object. - - - - - Gets or sets the unit of measure used for page coordinates in this Graphics object. - - - - - Get or set a value indicates to enable the Direct Word to PDF conversion. - - - - - Delegate declaring a method returning resources. - - - - - - Delegate declaring a method to process tag. - - - - - - Holds info about transparency. - - - - - Initializes a new instance of the class. - - The alpha pen. - The alpha brush. - The blend mode. - - - - Indicates whether this instance and a specified object are equal. - - Another object to compare to. - - true if obj and this instance are the same type and - represent the same value; otherwise, false. - - - - - Returns the hash code for this instance. - - - A 32-bit signed integer that is the hash code for this instance. - - - - - Represents the state of a Graphics object. This object is returned by a call to the Save methods. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular); - //Save the graphics. - PdfGraphicsState state = graphics.Save(); - //Set graphics translate transform. - graphics.TranslateTransform(100, 100); - //Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0); - //Restore the graphics. - graphics.Restore(state); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12, PdfFontStyle.Regular) - 'Save the graphics. - Dim state As PdfGraphicsState = graphics.Save() - 'Set graphics translate transform. - graphics.TranslateTransform(100, 100) - 'Draws the String. - graphics.DrawString("Hello world!", font, PdfPens.Red, 0, 0) - 'Restore the graphics. - graphics.Restore(state) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Parent graphics object. - - - - - The current transformation matrix. - - - - - Stores previous rendering mode. - - - - - Previous character spacing value or 0. - - - - - Previous word spacing value or 0. - - - - - The previously used text scaling value. - - - - - Current pen. - - - - - Current brush. - - - - - Current font. - - - - - Current color space. - - - - - default constructor. - - - - - Creates new object. - - Parent graphics state. - The current transformation matrix. - - - - Gets the parent graphics object. - - - - - Gets the current matrix. - - - - - Gets or sets the current character spacing. - - - - - Gets or sets the word spacing value. - - - - - Gets or sets the text scaling value. - - - - - Gets or sets the current pen object. - - - - - Gets or sets the brush. - - - - - Gets or sets the current font object. - - - - - Gets or sets the current color space value. - - - - - Gets or sets the text rendering mode. - - - - - A class representing PDF page margins. - - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set all the side of the page margin. - margin.All = 20; - //Set margin - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set all the side of page margin. - margin.All = 20 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Represents the Default Page Margin value. - - - - - Initializes a new instance of the class. - - - - - Sets the margins. - - The margin size. - - - - Sets the margins. - - The left right. - The top bottom. - - - - Sets the margins. - - The left. - The top. - The right. - The bottom. - - - - Clones the object. - - The cloned object. - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.All = 20; - //Create new PDF section. - PdfSection section = document.Sections.Add(); - //Set margin. - section.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = section.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Create new PDF section. - section = document.Sections.Add(); - //Clone the margin. - PdfMargins margin1 = margin.Clone() as PdfMargins; - margin1.Left = 30; - //set marign. - section.PageSettings.Margins = margin1; - page = section.Pages.Add(); - //Creates PDF graphics for the page. - graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.All = 20 - 'Create new PDF section. - Dim section As PdfSection = document.Sections.Add() - 'Set margin. - section.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = section.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Create new PDF section. - section = document.Sections.Add() - 'Clone the margin. - Dim margin1 As PdfMargins = TryCast(margin.Clone(), PdfMargins) - margin1.Left = 30 - 'set marign. - section.PageSettings.Margins = margin1 - page = section.Pages.Add() - 'Creates PDF graphics for the page. - graphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the left margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the top margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the right margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Gets or sets the bottom margin size. - - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set left margin. - margin.Left = 20; - //Set right margin. - margin.Right = 40; - //Set top margin. - margin.Top = 100; - //Set bottom margin. - margin.Bottom = 100; - //Set margin. - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set left margin. - margin.Left = 20 - 'Set right margin. - margin.Right = 40 - 'Set top margin. - margin.Top = 100 - 'Set bottom margin. - margin.Bottom = 100 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - Sets margin of each side of the page - - Margin of each side. - Default value: 40 pixels - - - //Creates a new PDF document. - PdfDocument document = new PdfDocument(); - //Create new PDF margin. - PdfMargins margin = new PdfMargins(); - //Set all the side of the page margin. - margin.All = 20; - //Set margin - document.PageSettings.Margins = margin; - //Adds a page.PdfPage - PdfPage page = document.Pages.Add(); - //Creates PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Draws the String. - graphics.DrawRectangle(PdfPens.Red, new RectangleF(new PointF(0, 0), page.GetClientSize())); - //Saves the document. - document.Save("output.pdf"); - //Closes the document. - document.Close(true); - - - 'Creates a new PDF document. - Dim document As New PdfDocument() - 'Create new PDF margin. - Dim margin As New PdfMargins() - 'Set all the side of page margin. - margin.All = 20 - 'Set margin. - document.PageSettings.Margins = margin - 'Adds a page.PdfPage - Dim page As PdfPage = document.Pages.Add() - 'Creates PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Draws the String. - graphics.DrawRectangle(PdfPens.Red, New RectangleF(New PointF(0, 0), page.GetClientSize())) - 'Saves the document. - document.Save("output.pdf") - 'Closes the document. - document.Close(True) - - - - - - A class defining settings for drawing operations, that determines the color, width, and style of the drawing elements. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Indicates if the pen is immutable. - - - - - Initializes a new instance of the class. - - Doesn't change current colour. - - - - Initializes a new instance of the class. - - The color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfColor(Color.Red)); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfColor(Color.Red)) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The system color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with color and width of the pen - - The provides color to the pen. - Width of the pen's line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfColor(Color.Red), 2); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfColor(Color.Red), 2) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with color and width of the pen - - The provides color to the pen. - Width of the pen's line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red, 2); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red, 2) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with - - The provides color and texture to the pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(new PdfSolidBrush(Color.Red)); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(New PdfSolidBrush(Color.Red)) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - Initializes a new instance of the class. - - The provides color to the pen. - if set to true the pen is immutable. - - - - Initializes a new instance of the class with color. - - The provides color to the pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(gray); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - ' Create Gray ColorSpace - Dim calGrayCS As New PdfCalGrayColorSpace() - ' Create new instance for PdfCalGrayColor - Dim gray As New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Create new PDF pen instance. - Dim pen As New PdfPen(gray) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Clones this instance. - - A new pen with the same properties. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Clone the PDF pen. - PdfPen pen1 = pen.Clone(); - pen1.Width = 10; - graphics.DrawRectangle(pen1, new RectangleF(10, 120, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Clone the PDF pen. - Dim pen1 As PdfPen = pen.Clone() - pen1.Width = 10 - graphics.DrawRectangle(pen1, New RectangleF(10, 120, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Sets the brush. - - The brush. - - - - Sets the stroking flag to brush. - - The brush. - - - - Resets the stroking. - - The brush. - - - - Monitors the changes. - - The current pen. - The stream writer. - The get resources. - if it is save state, set to true. - The current color space. - The current transformation matrix. - True if the pen was different. - - - - Gets the pattern. - - The initialized pattern. - - - - Controls the dash style and behaviour of each line. - - The pen. - if set to true the state should be changed anyway. - The stream writer. - True if the dash is different. - - - - Checks the immutability. - - Name of the property. - - - - Get or set the Colorspace. - - - - - Gets or sets the brush, which specifies the pen behavior. - - The that determines the color and texture - If the brush is set, the color values are ignored, - except for PdfSolidBrush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set brush. - pen.Brush = new PdfSolidBrush(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set brush. - pen.Brush = New PdfSolidBrush(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the color of the pen. - - The provide the color to pen - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen color. - pen.Color = new PdfColor(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen color. - pen.Color = New PdfColor(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash offset of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen dash offset. - pen.DashOffset = 0.5f; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen dash offset. - pen.DashOffset = 0.5F - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash pattern of the pen. - - we can't set the Dash pattern for solid dash style - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the dash style of the pen. - - The provides the various dash styles - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the line cap of the pen. - - The gives various line cap options - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line cap. - pen.LineCap = PdfLineCap.Round; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Create a custom dash pattern. - 'Set line cap. - pen.LineCap = PdfLineCap.Round - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the line join style of the pen. - - The provides various line join options. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom; - //Set line jion. - pen.LineJoin = PdfLineJoin.Bevel; - // Create a custom dash pattern. - pen.DashPattern = new float[] { 4.0f, 2.0f, 1.0f, 3.0f } - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set custom dash style. - pen.DashStyle = PdfDashStyle.Custom - 'Set line jion. - pen.LineJoin = PdfLineJoin.Bevel - 'Create a custom dash pattern. - pen.DashPattern = New Single() { 4.0F, 2.0F, 1.0F, 3.0F} - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the width of the pen. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen width. - pen.Width = 4; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen width. - pen.Width = 4 - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the miter limit. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF pen instance. - PdfPen pen = new PdfPen(Color.Red); - //Set pen width. - pen.Width = 4; - //Set miter limit, - pen.MiterLimit = 2; - //Draw rectangle. - graphics.DrawRectangle(pen, new RectangleF(10, 10, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF pen instance. - Dim pen As New PdfPen(Color.Red) - 'Set pen width. - pen.Width = 4 - 'Set miter limit, - pen.MiterLimit = 2 - 'Draw rectangle. - graphics.DrawRectangle(pen, New RectangleF(10, 10, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - - - Class for representing Root transformation matrix. - - - - - - - Value for angle converting. - - - - - - - Value for angle converting. - - - - - - - Transformation matrix. - - - - - Initializes object. - - - - - - Initializes object. - - - - - - Translates coordinates by specified coordinates. - - Offsets for translation. - - - Order of transformation sequence is significant. - - - - - Translates coordinates by specified coordinates. - - The X value by which to translate - coordinate system. - The Y value by which to translate - coordinate system. - - - Order of transformation sequence is significant. - - - - - - - Scales coordinates by specified coordinates. - - Scaling values. - - Order of transformation sequence is significant. - - - - - Scales coordinates by specified coordinates. - - The value by which to scale coordinate - system in the X axis direction. - The value by which to scale coordinate - system in the Y axis direction. - - - Order of transformation sequence is significant. - - - - - Rotates coordinate system in counterclockwise direction. - - The angle of the rotation (in degrees). - - - Order of transformation sequence is significant. - - - - - Skews coordinate system axes. - - Skew angles. - - - Order of transformation sequence is significant. - - - - - Skews coordinate system axes. - - Skews the X axis by this angle (in - degrees). - Skews the Y axis by this angle (in - degrees). - - - Order of transformation sequence is significant. - - - - - Applies the specified shear vector to this Matrix - by prepending the shear transformation. - - The shear X factor. - The shear Y factor. - The transformation applied in this method - is a pure shear only if one of the parameters is 0. - Applied to a rectangle at the origin, when the shearY - factor is 0, the transformation moves the bottom edge - horizontally by shearX times the height of the rectangle. - When the shearX factor is 0, it moves the right edge - vertically by shearY times the width of the rectangle. - Caution is in order when both parameters are nonzero, - because the results are hard to predict. For example, - if both factors are 1, the transformation is singular - (hence noninvertible), squeezing the entire plane to - a single line. - - - - Applies a clockwise rotation about the specified point. - - The angle. - The point. - - - - - - Gets PDF representation. - - - PDF representation. - - - - - - - Multiplies matrixes (changes coordinate system.) - - Matrix to be multiplied. - - - - Converts degrees to radians. - - The degrees X. - The value in radians. - - - - - Converts radians to degress. - - The radians. - The value in degress. - - - - - Clones this instance. - - The cloned instance. - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - - Gets the X translation value. - - - - - Gets the Y translation value. - - - - - - - Gets or sets the internal matrix object. - - - - - Class allowing to convert different unit metrics. Converting is - based on Graphics object DPI settings that is why for differ - graphics settings must be created new instance. For example: - printers often has 300 and greater dpi resolution, for compare - default display screen dpi is 96. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Indicates default horizontal resolution. - - - - - Indicates default vertical resolution. - - - - - Width, in millimeters, of the physical screen. - - - - - Height, in millimeters, of the physical screen. - - - - - Width, in pixels, of the screen. - - - - - Height, in pixels, of the screen. - - - - - Matrix for conversations between different numeric systems - - - - - Static constructor. - - - - - Initializes a new instance of the class with default DPI value of 96. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with DPI value - - The dpi. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(360); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor(360) - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class with System.Drawing.Graphics. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - Graphics for measuring the DPI value - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - Image systemImage = Image.FromFile("Autumn Leaves.jpg"); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap(systemImage); - //Create system graphics. - Graphics graphics = Graphics.FromImage(systemImage); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(graphics); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - Dim systemImage As Image = Image.FromFile("Autumn Leaves.jpg") - 'Create PDF bitmap instance. - Dim image As New PdfBitmap(systemImage) - 'Create system graphics. - Dim graphics As Graphics = Graphics.FromImage(systemImage) - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor(graphics) - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts the value, from one graphics unit to another graphics unit. - - Value to convert - Indicates units to convert from - Indicates units to convert to - Value stored in "to" units - - - - Converts the value to pixel from specified graphics unit. - - Value to convert - Indicates units to convert from - Value stored in pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - float pageWidth = converter.ConvertToPixels(doc.PageSettings.Size.Width, PdfGraphicsUnit.Point); - page.Graphics.DrawString("PDF page width is " + pageWidth + " pixel", new PdfStandardFont(PdfFontFamily.Helvetica,12),PdfBrushes.Red, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim pageWidth As Single = converter.ConvertToPixels(doc.PageSettings.Size.Width, PdfGraphicsUnit.Point) - page.Graphics.DrawString("PDF page width is " + pageWidth + " pixel", New PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Red, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts the rectangle location and size to Pixels from specified - measure units - - source rectangle - source rectangle measure units - Rectangle with Pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - RectangleF rect = converter.ConvertToPixels(new RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim rect As RectangleF = converter.ConvertToPixels(New RectangleF(100, 100, 200, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts point from specified graphics units to pixels - - source point for convert - measure units - point in pixels coordinates - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - PointF location = converter.ConvertToPixels(new PointF(100, 100), PdfGraphicsUnit.Point); - page.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(location, new SizeF(200, 50)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim location As PointF = converter.ConvertToPixels(New PointF(100, 100), PdfGraphicsUnit.Point) - page.Graphics.DrawRectangle(PdfPens.Red, new RectangleF(location, new SizeF(200, 50)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts size from specified graphics units to pixels - - source size - measure units - size in pixels - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF unitconverter. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to pixels. - SizeF pageSize = converter.ConvertToPixels(doc.PageSettings.Size, PdfGraphicsUnit.Point); - page.Graphics.DrawString("PDF page size is " + pageSize + " pixel", new PdfStandardFont(PdfFontFamily.Helvetica,12),PdfBrushes.Red, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF unitconverter. - Dim converter As New PdfUnitConvertor() - 'Convert to pixels. - Dim pageSize As SizeF = converter.ConvertToPixels(doc.PageSettings.Size, PdfGraphicsUnit.Point) - page.Graphics.DrawString("PDF page size is " + pageSize + " pixel", New PdfStandardFont(PdfFontFamily.Helvetica, 12), PdfBrushes.Red, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts value, to specified graphics unit from Pixel. - - Value to convert - Indicates units to convert to - Value stored in "to" units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - float width = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point); - float height = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(0, 0, width, height)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim width As Single = converter.ConvertFromPixels(image.Width, PdfGraphicsUnit.Point) - Dim height As Single = converter.ConvertFromPixels(image.Height, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(0, 0, width, height)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts rectangle in Pixels into rectangle with specified - measure units - - source rectangle in pixels units - convert to units - output Rectangle in specified units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - RectangleF rect = converter.ConvertFromPixels(new RectangleF(100,100,500, 700), PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, rect); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim rect As RectangleF = converter.ConvertFromPixels(New RectangleF(100,100,500, 700), PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, rect) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts rectangle from pixels to specified units - - point in pixels units - convert to units - output Point in specified units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - PointF location = converter.ConvertFromPixels(new PointF(100,100), PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF(location, image.GetBounds().Size)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim location As PointF = converter.ConvertFromPixels(New PointF(100,100), PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(location, image.GetBounds().Size)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Converts Size in pixels to size in specified measure units - - source size - convert to units - output size in specified measure units - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF bitmap instance. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Create a PDF unit converter instance. - PdfUnitConvertor converter = new PdfUnitConvertor(); - //Convert to point. - SizeF size = converter.ConvertFromPixels(image.GetBounds().Size, PdfGraphicsUnit.Point); - //Draw image to PDF page. - page.Graphics.DrawImage(image, new RectangleF( new PointF(0, 0), size)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF bitmap instance. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Create a PDF unit converter instance. - Dim converter As New PdfUnitConvertor() - 'Convert to point. - Dim size As SizeF = converter.ConvertFromPixels(image.GetBounds().Size, PdfGraphicsUnit.Point) - 'Draw image to PDF page. - page.Graphics.DrawImage(image, New RectangleF(New PointF(0, 0), size)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Update proportions matrix according to Graphics settings - - The pixel per inch value. - - - - Encapsulates a with a gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the background color. - - - - - Local variable to store the background color. - - - - - Local variable to store the dictionary. - - - - - Local variable to store the shading. - - - - - Local variable to store the Transformation Matrix. - - - - - Local variable to store the external state. - - - - - Local variable to store the colorSpace. - - - - - Local variable to store the function. - - - - - Initializes a new instance of the class. - - The shading. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectfully.. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Converts colorspace enum to a PDF name. - - The color space enum value. - The correct string value. - - - - Resets the pattern dictionary. - - A new pattern dictionary. - - - - Resets the function. - - - - - Clones the anti aliasing value. - - The brush. - - - - Clones the background value. - - The brush. - - - - Gets or sets the background color of the brush. - - This value is optional. If null is assigned to it, - the associated entry is removed from the appropriate dictionary. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the background. - brush.Background = Color.Black; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the background. - brush.Background = Color.Black - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a value indicating whether use anti aliasing algorithm. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set anti alias. - brush.AntiAlias = true; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set anti alias. - brush.AntiAlias = True - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the function of the brush. - - - - - Gets or sets the boundary box of the brush. - - This value is optional. If null is assigned to it, - the associated entry is removed from the appropriate dictionary. - - - - Gets or sets the color space of the brush. - - - - - Gets or sets a value indicating whether - this is stroking. - - - - - Gets the pattern dictionary. - - - - - Gets or sets the shading dictionary. - - It's obligatory to set this dictionary - as soon as deriving class can. - - - - Gets or sets the transformation matrix. - - - - - Gets or sets the external graphics state, - which would be set temporary while this brush is active. - - The external graphics state. - - - - Gets the wrapped element. - - - - - Implements linear gradient brush by using PDF axial shading pattern. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local variable to store the point start. - - - - - Local variable to store the point end. - - - - - Local variable to store the colours. - - - - - Local variable to store the colour Blend. - - - - - Local variable to store the blend. - - - - - Local variable to store the boundaries. - - - - - Initializes a new instance of the class. - - The starting point of the gradient. - The end point of the gradient. - The starting color of the gradient. - The end color of the gradient. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - A RectangleF structure that specifies the bounds of the linear gradient. - The starting color for the gradient. - The ending color for the gradient. - The mode specifies the orientation of the linear gradient - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), PdfLinearGradientMode.Vertical); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), PdfLinearGradientMode.Vertical) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - A RectangleF structure that specifies the bounds of the linear gradient. - The starting color for the gradient. - The ending color for the gradient. - The angle, measured in degrees clockwise from the x-axis, - of the gradient's orientation line. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new RectangleF(0, 0,200, 100), new PdfColor(Color.Red), new PdfColor(Color.Blue), 90); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New RectangleF(0, 0, 200, 100), New PdfColor(Color.Red), New PdfColor(Color.Blue), 90) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The color of the start point. - The color of the end point. - - - - Adds two points to each other. - - The point1. - The point2. - The resulting point. - - - - Subs the second point from the first one. - - The point1. - The point2. - The resulting point. - - - - Makes scalar multiplication of two points. - - The point1. - The point2. - The result of multiplication. - - - - Multiplies the point by the value specified. - - The point. - The value. - The result in point. - - - - Choosts the point according to the angle. - - The angle. - The correct point. - - - - Sets the start and end points. - - The point1. - The point2. - - - - Initializes the shading dictionary. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the background. - brush.Background = Color.Black; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Clone the existing linear brush. - PdfLinearGradientBrush cBrush = brush.Clone() as PdfLinearGradientBrush; - //Set linear colors. - cBrush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw rectangle. - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the background. - brush.Background = Color.Black - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Clone the existing linear brush. - Dim cBrush As PdfLinearGradientBrush = TryCast(brush.Clone(), PdfLinearGradientBrush) - 'Set linear colors. - cBrush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 300, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets the function. - - - - - Gets or sets a PdfBlend that specifies positions - and factors that define a custom falloff for the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a ColorBlend that defines a multicolor linear gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the starting and ending colors of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Set linear colors. - brush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Set linear colors. - brush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a rectangular region that defines - the boundaries of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Get the linear brush bounds. - RectangleF rect = brush.Rectangle; - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Get the linear brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the value indicating whether the gradient - should extend starting and ending points. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfLinearGradientBrush brush = new PdfLinearGradientBrush(new PointF(0, 0), new PointF(200, 100), Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 300, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfLinearGradientBrush(New PointF(0, 0), New PointF(200, 100), Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 300, 100)) - 'Get the linear brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represent radial gradient brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Local varaible to store the point start. - - - - - Local varaible to store the point start. - - - - - Local varaible to store the point End. - - - - - Local varaible to store the radius End. - - - - - Local varaible to store the colours. - - - - - Local varaible to store the colour blend. - - - - - Local varaible to store the blend. - - - - - Local varaible to store the boundaries. - - - - - Initializes a new instance of the class. - - The start centre. - The start radius. - The end centre. - The end radius. - The start color. - The end color. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The color1. - The color2. - - - - Sets the points. - - The point start. - The point end. - The radius start. - The radius end. - - - - Initializess the shading dictionary. - - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Clone the existing brush. - PdfRadialGradientBrush cBrush = brush.Clone() as PdfRadialGradientBrush; - //Set linear colors. - cBrush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw ellipse. - graphics.DrawEllipse(cBrush, new RectangleF(0, 150, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Clone the existing brush. - Dim cBrush As PdfRadialGradientBrush = TryCast(brush.Clone(), PdfRadialGradientBrush) - 'Set linear colors. - cBrush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw rectangle. - graphics.DrawEllipse(cBrush, New RectangleF(0, 150, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets the function. - - - - - Gets or sets a PdfBlend that specifies positions - and factors that define a custom falloff for the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Create PDF blend - PdfBlend blend = new PdfBlend(); - //Set factors - blend.Factors = new float[] {1}; - //Set poistions - blend.Positions = new float[] {0}; - //Set blend to the brush. - brush.Blend = blend; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Create PDF blend - Dim blend As New PdfBlend() - 'Set factors - blend.Factors = New Single() {1} - 'Set poistions - blend.Positions = New Single() {0} - 'Set blend to the brush. - brush.Blend = blend - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets a ColorBlend that defines a multicolor linear gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Create PDF color blend - PdfColorBlend cblend = new PdfColorBlend(); - //Set colors - cblend.Colors = new PdfColor[] { Color.Blue, Color.Red }; - //Set poistions - cblend.Positions = new float[] { 0, 1 }; - //Set internpolation colors to the brush. - brush.InterpolationColors = cblend; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Create PDF color blend - Dim cblend As New PdfColorBlend() - 'Set colors - cblend.Colors = New PdfColor() { Color.Blue, Color.Red} - 'Set poistions - cblend.Positions = New Single() { 0, 1} - 'Set internpolation colors to the brush. - brush.InterpolationColors = cblend - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the starting and ending colors of the gradient. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - PdfColor startColor = new PdfColor(Color.Black); - PdfColor endColor = new PdfColor(Color.Green); - //Set linear colors. - brush.LinearColors = new PdfColor[] { startColor, endColor }; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - Dim startColor As New PdfColor(Color.Black) - Dim endColor As New PdfColor(Color.Green) - 'Set linear colors. - brush.LinearColors = New PdfColor() { startColor, endColor} - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the rectangle. - - The rectangle. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Get the radial brush bounds. - RectangleF rect = brush.Rectangle; - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Get the radial brush bounds. - Dim rect As RectangleF = brush.Rectangle - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the value indicating whether the gradient - should extend starting and ending points. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF gradient brush. - PdfRadialGradientBrush brush = new PdfRadialGradientBrush(new PointF(50, 50), 0, new PointF(50, 50), 50, Color.Red, Color.Blue); - //Set the extend mode. - brush.Extend = PdfExtend.Both; - //Draw the ellipse. - graphics.DrawEllipse(brush, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfRadialGradientBrush(New PointF(50, 50), 0, New PointF(50, 50), 50, Color.Red, Color.Blue) - 'Set the extend mode. - brush.Extend = PdfExtend.Both - 'Draw the ellipse. - graphics.DrawEllipse(brush, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a brush that fills any object with a solid color. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The colour of the brush. - - - - - The color space of the brush. - - - - - Indicates if the brush is immutable. - - - - - Localvariable to store the Colorspace. - - - - - Initializes a new instance of the class. - - The color - that represents the color of this brush. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The PDF extended color - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - // Create Gray ColorSpace - PdfCalGrayColorSpace calGrayCS = new PdfCalGrayColorSpace(); - // Create new instance for PdfCalGrayColor - PdfCalGrayColor gray = new PdfCalGrayColor(calGrayCS); - gray.Gray = 0.2; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(gray); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create GrayColorSpace - Dim calGrayCS As PdfCalGrayColorSpace = New PdfCalGrayColorSpace() - 'Create new instance for PdfCalGrayColor - Dim gray As PdfCalGrayColor = New PdfCalGrayColor(calGrayCS) - gray.Gray = 0.2 - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(gray) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - class. - - - - Initializes a new instance of the class. - - The color. - if set to true the brush is immutable. - - - - Initializes a new instance of the class. - - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - True if the brush was different. - - - - Monitors the changes of the brush and modify PDF state respectively. - - The brush. - The stream writer. - The get resources delegate. - if set to true the changes should be saved anyway. - The current color space. - check - Indicates the IccBased Color Space. - Indicates the indexed Color Space. - True if the brush was different. - - - - Resets the changes, which were made by the brush. - In other words resets the state to the initial one. - - The stream writer. - - - - Creates a new copy of a brush. - - A new instance of the Brush class. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Clone the existing solid brush. - PdfSolidBrush cBrush = brush.Clone() as PdfSolidBrush; - cBrush.Color = Color.Black; - graphics.DrawRectangle(cBrush, new RectangleF(0, 150, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Clone the existing solid brush. - Dim cBrush As PdfSolidBrush = TryCast(brush.Clone(), PdfSolidBrush) - cBrush.Color = Color.Black - graphics.DrawRectangle(cBrush, New RectangleF(0, 150, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the color of the brush. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create new PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Red); - //Set color. - brush.Color = new PdfColor(Color.Green); - //Draw rectangle. - graphics.DrawRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create new PDF gradient brush. - Dim brush As New PdfSolidBrush(Color.Red) - 'Set color - brush.Color = New PdfColor(Color.Green) - 'Draw rectangle. - graphics.DrawRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the Colorspace. - - - - - Represents an arc shape. - - It ignores brush setting. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents a base class of arc and pie shapes. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents an area bound by a rectangle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Bounds of the element. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The x. - The y. - The width. - The height. - - - - Initializes a new instance of the class. - - The rectangle. - - - - Initializes a new instance of the class. - - The pen. - The brush. - The x. - The y. - The width. - The height. - - - - Initializes a new instance of the class. - - The pen. - The brush. - The rectangle. - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Gets or sets the X co-ordinate of the upper-left corner of this the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the Y co-ordinate of the upper-left corner of this the element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the width of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the height of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0; - //Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0; - //Set the width of the rectangle. - rect.Width = 200; - //Set the height of the rectangle. - rect.Height = 100; - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the X co-ordinate of the upper-left corner of rectangle. - rect.X = 0 - 'Set the Y co-ordinate of the upper-left corner of rectangle. - rect.Y = 0 - 'Set the width of the rectangle. - rect.Width = 200 - 'Set the height of the rectangle. - rect.Height = 100 - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets the size of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the size of the element. - rect.Size = new SizeF(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the size of the element. - rect.Size = New SizeF(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Gets or sets bounds of this element. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Set the bounds of the element. - rect.Bounds = new RectangleF(0, 10, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Set the bounds of the element. - rect.Bounds = New RectangleF(0, 10, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with the specified pair of coordinates, width, height and sweep angle - - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class with the specified structure and sweep angle - - RectangleF structure that defines the boundaries of the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class with the specified pen, brush, pair of coordinates, width and height and sweep angle. - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Initializes a new instance of the class. - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - Angle in degrees measured clockwise from the x-axis to the starting point of the ellipse. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the ellipse. - - - - Gets or sets the start angle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Set start angle. - arc.StartAngle = 0; - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Set start angle. - arc.StartAngle = 0 - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the sweep angle. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Set start angle. - arc.StartAngle = 0; - //Set sweep angle. - arc.SweepAngle = 90; - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Set start angle. - arc.StartAngle = 0 - 'Set sweep angle. - arc.SweepAngle = 90 - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pair of coordinates, width, height and sweep angle - - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(200,100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfArc. - Dim arc As New PdfArc(200,100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, width, height and sweep angle - - Pen that determines the color, width, and style of the arc. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, 200, 100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, 200, 100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(0,0,200,100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfArc. - Dim arc As New PdfArc(0,0,200,100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified structure and sweep angle - - RectangleF structure that defines the boundaries of the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, pair of coordinates, width, height and sweep angle - - Pen that determines the color, width, and style of the arc. - The x-coordinate of the upper-left corner of the rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the rectangle that defines the ellipse. - Width of the rectangle that defines the arc. - Height of the rectangle that defines the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, 0, 0, 200, 100, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, 0, 0, 200, 100, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, structure and sweep angle - - Pen that determines the color, width, and style of the arc. - RectangleF structure that defines the boundaries of the arc. - Angle in degrees measured clockwise from the x-axis to the starting point of the arc. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the arc. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Arc bounds. - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfArc. - PdfArc arc = new PdfArc(pen, bounds, 0, 180); - //Draw the arc to PDF page. - arc.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Arc bounds. - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfArc. - Dim arc As New PdfArc(pen, bounds, 0, 180) - 'Draw the arc to PDF page. - arc.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Represents Bezier curve shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Local variable to store the start Point. - - - - - Local variable to store the firstC ontrol Point. - - - - - Local variable to store the second Control Point. - - - - - Local variable to store the end Point. - - - - - Initializes a new instance of the class with the specified structure - - PointF structure that represents the starting point of the curve. - PointF structure that represents the first control point for the curve. - PointF structure that represents the second control point for the curve. - PointF structure that represents the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100)); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(New PointF(0, 0), New PointF(100, 50), New PointF(50, 50), New PointF(100, 100)) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - Initializes a new instance of the class with the specified pair of coordinates and control points - - The x-coordinate of the starting point of the curve. - The y-coordinate of the starting point of the curve. - The x-coordinate of the first control point of the curve. - The y-coordinate of the first control point of the curve. - The x-coordinate of the second control point of the curve. - The y-coordinate of the second control point of the curve. - The x-coordinate of the ending point of the curve. - The y-coordinate of the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen and structure. - - Pen that determines the color, width, and style of the curve. - PointF structure that represents the starting point of the curve. - PointF structure that represents the first control point for the curve. - PointF structure that represents the second control point for the curve. - PointF structure that represents the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, new PointF(0, 0), new PointF(100, 50), new PointF(50, 50), new PointF(100, 100)); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, New PointF(0, 0), New PointF(100, 50), New PointF(50, 50), New PointF(100, 100)) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - Initializes a new instance of the class with the specified pair of coordinates and control points - - Pen that determines the color, width, and style of the curve. - The x-coordinate of the starting point of the curve. - The y-coordinate of the starting point of the curve. - The x-coordinate of the first control point of the curve. - The y-coordinate of the first control point of the curve. - The x-coordinate of the second control point of the curve. - The y-coordinate of the second control point of the curve. - The x-coordinate of the ending point of the curve. - The y-coordinate of the ending point of the curve. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, 0, 0, 100, 50, 50, 50, 100, 100); - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, 0, 0, 100, 50, 50, 50, 100, 100) - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the starting point of the curve - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the first control point of the curve. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the second control point of the curve - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the ending point of the curve. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PointF startPoint = new PointF(0, 0); - PointF firstControlPoint = new PointF(100, 50); - PointF secondControlPoint = new PointF(50, 50); - PointF endPoint = new PointF(100, 100); - //Create new instance of PdfBezierCurve. - PdfBezierCurve bezier = new PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint); - //Set start point. - bezier.StartPoint = startPoint; - //Set first control point. - bezier.FirstControlPoint = firstControlPoint; - //Set second control point. - bezier.SecondControlPoint = secondControlPoint; - //Set end point. - bezier.EndPoint = endPoint; - //Draw the bezier curve to PDF page. - bezier.Draw(page, new PointF(300, 200)); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - Dim startPoint As New PointF(0, 0) - Dim firstControlPoint As New PointF(100, 50) - Dim secondControlPoint As New PointF(50, 50) - Dim endPoint As New PointF(100, 100) - 'Create new instance of PdfBezierCurve. - Dim bezier As New PdfBezierCurve(pen, startPoint, firstControlPoint, secondControlPoint, endPoint) - 'Set start point. - bezier.StartPoint = startPoint - 'Set first control point. - bezier.FirstControlPoint = firstControlPoint - 'Set second control point. - bezier.SecondControlPoint = secondControlPoint - 'Set end point. - bezier.EndPoint = endPoint - 'Draw the bezier curve to PDF page. - bezier.Draw(page, New PointF(300, 200)) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents an ellipse shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified width and height - - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, width and height. - - Pen that determines the color, width, and style of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush, width and height. - - Brush that determines the color and texture of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush, width and height - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pair of coordinates, width and height - - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the rectangle. - - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, pair of coordinates, width and height - - Pen that determines the color, width, and style of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen and structure - - Pen that determines the color, width, and style of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush, pair of coordinates, width and height - - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified brush and structure - - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(brush, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(brush, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush, pair of coordinates, width and height - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - The x-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - The y-coordinate of the upper-left corner of the bounding rectangle that defines the ellipse. - Width of the bounding rectangle that defines the ellipse. - Height of the bounding rectangle that defines the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Creat new PdfEllipse instance. - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, 0, 0, 200, 100); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, 0, 0, 200, 100) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class with the specified pen, brush and structure - - Pen that determines the color, width, and style of the ellipse. - Brush that determines the color and texture of the ellipse. - RectangleF structure that defines the boundaries of the ellipse. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF Pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Red); - //Bounds - RectangleF bounds = new RectangleF(0, 0, 200, 100); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(pen, brush, bounds); - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF Pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Red) - 'Bounds - Dim bounds As New RectangleF(0, 0, 200, 100) - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(pen, brush, bounds) - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets the radius X. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets the radius Y. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets the center point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Creat new PdfEllipse instance. - PdfEllipse ellipse = new PdfEllipse(200, 100); - //Get the radius X. - float radiusX = ellipse.RadiusX; - //Get the radius Y. - float radiusY = ellipse.RadiusY; - //Get the center radius. - PointF center = ellipse.Center; - //Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Creat new PdfEllipse instance. - Dim ellipse As New PdfEllipse(200, 100) - 'Get the radius X. - Dim radiusX As Single = ellipse.RadiusX - 'Get the radius Y. - Dim radiusY As Single = ellipse.RadiusY - 'Get the center radius. - Dim center As PointF = ellipse.Center - 'Draw the ellipse to PDF page. - ellipse.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Represents a line shape. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Local variable to store x2. - - - - - Local variable to store Y1. - - - - - Local variable to store x1. - - - - - Local variable to store Y2. - - - - - Initializes a new instance of the class from the specified two pair fo coordinates. - - The x-coordinate of the first point. - The y-coordinate of the first point. - The x-coordinate of the end pint. - The y-coordinate of the end pint. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(0, 0, 100, 0); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(0, 0, 100, 0) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The line start point. - The line end point. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The x-coordinate of the first point. - The y-coordinate of the first point. - The x-coordinate of the end pint. - The y-coordinate of the end pint. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, 0, 0, 100, 0); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, 0, 0, 100, 0) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The line start point. - The line end point. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfLine instance. - PdfLine line = new PdfLine(pen, new PointF(0, 0), new PointF(100, 0)); - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfLine instance. - Dim line As New PdfLine(pen, New PointF(0, 0), New PointF(100, 0)) - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the x coordinate of the start point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the y coordinate of the start point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the x coordinate of the end point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Gets or sets the y coordinate of the end point. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfLine instance. - PdfLine line = new PdfLine(new PointF(0, 0), new PointF(100, 0)); - //Set the x coordinate of the start point. - line.X1 = 0; - //Set the y coordinate of the start point. - line.Y1 = 0; - //Set the x coordinate of the end point. - line.X2 = 100; - //Set the y coordinate of the end point. - line.Y2 = 0; - //Draw the line to PDF page. - line.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfLine instance. - Dim line As New PdfLine(New PointF(0, 0), New PointF(100, 0)) - 'Set the x coordinate of the start point. - line.X1 = 0 - 'Set the y coordinate of the start point. - line.Y1 = 0 - 'Set the x coordinate of the end point. - line.X2 = 100 - 'Set the y coordinate of the end point. - line.Y2 = 0 - 'Draw the line to PDF page. - line.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Implements graphics path, which is a sequence of primitive graphics elements. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Local varaible to store the points. - - - - - Local varaible to store the path Types. - - - - - Local varaible to store the Start Figure. - - - - - Local varaible to store the fill Mode. - - - - - Initializes a new instance of the class. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Red); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Red) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red, PdfFillMode.Alternate); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red, PdfFillMode.Alternate) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Red, pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Red, pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create new PDF path. - PdfPath path = new PdfPath(PdfBrushes.Red, PdfFillMode.Alternate, pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create new PDF path. - Dim path As New PdfPath(PdfBrushes.Red, PdfFillMode.Alternate, pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The fill mode specifies how the interiors of shapes in this path are filled. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(PdfPens.Green, PdfBrushes.Red, PdfFillMode.Alternate); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath(PdfPens.Green, PdfBrushes.Red, PdfFillMode.Alternate) - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an arc. - - The boundaries of the arc. - The start angle of the arc. - The angle between startAngle and the end of the arc. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add arc. - path.AddArc(new RectangleF(0, 0, 100, 100), 0, -90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add arc. - path.AddArc(New RectangleF(0, 0, 100, 100), 0, -90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an arc. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - The start angle of the arc. - The angle between startAngle and the end of the arc. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add arc. - path.AddArc(0, 0, 100, 100, 0, -90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add arc. - path.AddArc(0, 0, 100, 100, 0, -90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a bezier curve. - - The start point - represents the starting point of the curve. - The first control point - represents the first control point of the curve. - The second control point - repesents the second control point of the curve. - The end point - represents the end point of the curve. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start figure. - path.StartFigure(); - //Add bezier. - path.AddBezier(new PointF(30, 30), new PointF(90, 0), new PointF(60, 90), new PointF(120, 30)); - //Close figure. - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start figure. - path.StartFigure() - 'Add bezier. - path.AddBezier(New PointF(30, 30), New PointF(90, 0), New PointF(60, 90), New PointF(120, 30)) - 'Close figure. - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a bezier curve. - - The start point X. - The start point Y. - The first control point X. - The first control point Y. - The second control point X. - The second control point Y. - The end point X. - The end point Y. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start figure. - path.StartFigure(); - //Add bezier. - path.AddBezier(30, 30, 90, 0, 60, 90, 120, 30); - //Close figure. - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start figure. - path.StartFigure() - 'Add bezier. - path.AddBezier(30, 30, 90, 0, 60, 90, 120, 30) - 'Close figure. - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an ellipse. - - The boundaries of the ellipse. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add ellipse. - path.AddEllipse(new RectangleF(0, 0, 200, 100)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add ellipse. - path.AddEllipse(New RectangleF(0, 0, 200, 100)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds an ellipse. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add ellipse. - path.AddEllipse(0, 0, 200, 100); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add ellipse. - path.AddEllipse(0, 0, 200, 100) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a line. - - The start point of the line. - The end point of the line. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Adds a line. - - The x-coordinate of the starting point of the line. - The y-coordinate of the starting point of the line. - The x-coordinate of the end point of the line. - The y-coordinate of the end point of the line. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(10, 100, 10, 200); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(10, 100, 10, 200) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the path specified to this one. - - The path, which should be appended. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Create PDF path. - PdfPath pPath = new PdfPath(pathPoints, pathTypes); - //Add PDF path. - path.AddPath(pPath); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Create PDF path. - Dim pPath As New PdfPath(pathPoints, pathTypes) - 'Add PDF path. - path.AddPath(pPath) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the path specified by the points and their types to this one. - - The array of points that represents the points to define the path. - The path types specifies the types of the corresponding points in the path. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - // Create an array of points. - PointF[] pathPoints = { new PointF(0, 0), new PointF(100, 0), new PointF(100, 100), new PointF(0, 100), new PointF(0, 0), new PointF(100, 100), new PointF(0, 100), new PointF(100, 0) }; - //Create path types. - byte[] pathTypes = { 0, 1, 1, 129, 0, 1, 1, 1 }; - //Add path. - path.AddPath(pathPoints, pathTypes); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - ' Create an array of points. - Dim pathPoints As PointF() = {New PointF(0, 0), New PointF(100, 0), New PointF(100, 100), New PointF(0, 100), New PointF(0, 0), New PointF(100, 100), New PointF(0, 100), New PointF(100, 0)} - 'Create path types. - Dim pathTypes As Byte() = {0, 1, 1, 129, 0, 1, 1, 1} - 'Add path. - path.AddPath(pathPoints, pathTypes) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the pie to this path. - - The bounding rectangle of the pie. - The start angle of the pie. - The sweep angle of the pie. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add Pie. - path.AddPie(new RectangleF(20, 20, 70, 70), -45, 90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add Pie. - path.AddPie(New RectangleF(20, 20, 70, 70), -45, 90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the pie to this path. - - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - The start angle of the pie. - The sweep angle of the pie. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add Pie. - path.AddPie(20, 20, 70, 70, -45, 90); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add Pie. - path.AddPie(20, 20, 70, 70, -45, 90) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Append the closed polygon to this path. - - The points of the polygon. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Create polygon points. - PointF[] polygonPoints = { new PointF(23, 20), new PointF(40, 10), new PointF(57, 20), new PointF(50, 40), new PointF(30, 40) }; - //Add polygon. - path.AddPolygon(polygonPoints); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Create polygon points. - Dim polygonPoints As PointF() = {New PointF(23, 20), New PointF(40, 10), New PointF(57, 20), New PointF(50, 40), New PointF(30, 40)} - 'Add polygon. - path.AddPolygon(polygonPoints) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the rectangle to this path. - - The rectangle. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(new RectangleF(0, 0, 200, 100)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(New RectangleF(0, 0, 200, 100)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Appends the rectangle to this path. - - The x-coordinate of the upper-left corner of the rectangular region. - The y-coordinate of the upper-left corner of the rectangular region. - The width of the rectangular region. - The height of the rectangular region. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(0, 0, 200, 100); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(0, 0, 200, 100) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Starts a new figure. - - The next added primitive will start a new figure. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start first figure. - path.StartFigure(); - path.AddArc(10, 10, 50, 50, 0, 270); - path.CloseFigure(); - //Start second figure. - path.StartFigure(); - path.AddRectangle(10, 70, 50, 100); - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start first figure. - path.StartFigure() - path.AddArc(10, 10, 50, 50, 0, 270) - path.CloseFigure() - 'Start second figure. - path.StartFigure() - path.AddRectangle(10, 70, 50, 100) - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Closes the last figure. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Start first figure. - path.StartFigure(); - path.AddArc(10, 10, 50, 50, 0, 270); - path.CloseFigure(); - //Start second figure. - path.StartFigure(); - path.AddRectangle(10, 70, 50, 100); - path.CloseFigure(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Start first figure. - path.StartFigure() - path.AddArc(10, 10, 50, 50, 0, 270) - path.CloseFigure() - 'Start second figure. - path.StartFigure() - path.AddRectangle(10, 70, 50, 100) - path.CloseFigure() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Closes all non-closed figures. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - path.StartFigure(); - path.AddLine(new Point(10, 100), new Point(150, 100)); - path.AddLine(new Point(150, 100), new Point(10, 200)); - path.StartFigure(); - path.AddArc(200, 200, 100, 100, 0, 90); - path.StartFigure(); - PointF point1 = new PointF(300, 300); - PointF point2 = new PointF(400, 325); - PointF point3 = new PointF(400, 375); - PointF point4 = new PointF(300, 400); - PointF[] points = { point1, point2, point3, point4 }; - path.AddPolygon(points); - //Close all the figures. - path.CloseAllFigures(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - path.StartFigure() - path.AddLine(New Point(10, 100), New Point(150, 100)) - path.AddLine(New Point(150, 100), New Point(10, 200)) - path.StartFigure() - path.AddArc(200, 200, 100, 100, 0, 90) - path.StartFigure() - Dim point1 As New PointF(300, 300) - Dim point2 As New PointF(400, 325) - Dim point3 As New PointF(400, 375) - Dim point4 As New PointF(300, 400) - Dim points As PointF() = {point1, point2, point3, point4} - path.AddPolygon(points) - 'Close all the figures. - path.CloseAllFigures() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the last point. - - The last point. - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add rectangle - path.AddRectangle(new RectangleF(0, 0, 200, 100)); - //Get last point. - PointF lastPoint = path.GetLastPoint(); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add rectangle - path.AddRectangle(New RectangleF(0, 0, 200, 100)) - 'Get last point. - Dim lastPoint As PointF = path.GetLastPoint() - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Adds the points along with their type to the path. - - The points. - Type of the points. - - - - Adds the points along with their type to the path. - - The points. - Type of the points. - The start index. - The end index. - - - - Adds a point and its type. - - The point. - Type of the point. - - - - Closes the figure. - - The index of the last figure point. - - - - Gets or sets the fill mode. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the path points. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path Points. - PointF[] pathPoints = path.PathPoints; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path Points. - Dim pathPoints As PointF() = path.PathPoints - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the path point types. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path Types. - byte[] pathTypes = path.PathTypes; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path Types. - Dim pathTypes As Byte() = path.PathTypes - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the point count. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get path point count. - int count = path.PointCount; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get path point count. - Dim count As Integer = path.PointCount - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the last point. - - - - //Create a document. - PdfDocument doc = new PdfDocument(); - //Add a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF path. - PdfPath path = new PdfPath(); - //Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - //Add line path points. - path.AddLine(new PointF(10, 100), new PointF(10, 200)); - path.AddLine(new PointF(100, 100), new PointF(100, 200)); - path.AddLine(new PointF(100, 200), new PointF(55, 150)); - //Get last point. - PointF lastPoint = path.LastPoint; - //Draw PDF path to page. - path.Draw(page, PointF.Empty); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a document. - Dim doc As New PdfDocument() - 'Add a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF path. - Dim path As New PdfPath() - 'Set the path fill mode. - path.FillMode = PdfFillMode.Winding; - 'Add line path points. - path.AddLine(New PointF(10, 100), New PointF(10, 200)) - path.AddLine(New PointF(100, 100), New PointF(100, 200)) - path.AddLine(New PointF(100, 200), New PointF(55, 150)) - 'Get last point. - Dim lastPoint As PointF = path.LastPoint - 'Draw PDF path to page. - path.Draw(page, PointF.Empty) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - - - - Gets the points list. - - The points. - - - - Gets the types. - - The types. - - - - Represents Pdf Template object. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Graphics context of the template. - - - - - Content of the object. - - - - - Resources of the template. - - - - - Size of the template. - - - - - Indicates if the template is read-only. - - - - - Initializes a new instance of the class. - - The size of the PDF template - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The rect - represents the rectangle bounds of the PDF template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new RectangleF(0, 0, 200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New RectangleF(0, 0, 200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the template. - The height of the template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(200, 100); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(200, 100) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The X-coordinate of the template start point. - The Y-coordinate of the template start point. - The width of the template. - The height of the template. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(0, 0, 200, 100); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(0, 0, 200, 100) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The origin points of the Pdf Page - The size of the new template. - The data stream of the new template. - The resources of the new template. - The resulting template is read-only in order to avoid unexpected side effects - caused by non-restored graphics state. - - - - Initializes a new instance of the class. - - The size of the new template. - The data stream of the new template. - The resources of the new template. - The resulting template is read-only in order to avoid unexpected side effects - caused by non-restored graphics state. - - - - Initializes a new instance of the class. - - The template. - - - - Resets the template and sets the specified size. - - The size. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Reset the template. - template.Reset(new SizeF(300, 200)); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 150)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Reset the template. - template.Reset(New SizeF(300, 200)) - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 150)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Resets an instance. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty); - //Reset the template. - template.Reset(); - //Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 150)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Draw the text to the template graphics. - template.Graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, PointF.Empty) - 'Reset the template. - template.Reset() - 'Draw a rectangle on the template graphics - template.Graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 150)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - This method doesn't take into consideration a rotation of the element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Initializes object. - - - - - Gets the resources and modifies the template dictionary. - - Pdf resources. - - - - - Adds type key. - - - - - - Adds SubType key. - - - - - Sets the size of the template. - - The size. - - - - Sets the bounds of the template. - - The bounds. - - - - Sets the size of the template. - - The size. - - - - Copies the resources from the template. - - - - - Gets graphics context of the template. - - It will return null, if the template is read-only. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template size. - SizeF templateSize = template.Size; - Console.Write("Template size: " + templateSize.Width + ", " + templateSize.Height); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template size. - Dim templateSize As SizeF = template.Size - Console.Write("Template size: " + templateSize.Width + ", " + templateSize.Height) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the width of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template width. - float width = template.Width; - Console.Write("Template width: " + width); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template width. - Dim width As Single = template.Width - Console.Write("Template width: " + width) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the height of the template. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create new PdfTemplate object. - PdfTemplate template = new PdfTemplate(new SizeF(200, 100)); - //Get the template graphics. - PdfGraphics graphics = template.Graphics; - //Get the template height. - float height = template.Height; - Console.Write("Template height: " + height); - //Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, new PointF(0,0)); - //Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, new RectangleF(0, 20, 200, 50)); - //Draw the template to PDF page. - template.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create new PdfTemplate object. - Dim template As New PdfTemplate(New SizeF(200, 100)) - 'Get the template graphics. - Dim graphics As PdfGraphics = template.Graphics - 'Get the template height. - Dim height As Single = template.Height - Console.Write("Template height: " + height) - 'Draw the text to the template graphics. - graphics.DrawString("This is PDF template.", font, PdfBrushes.Black, New PointF(0, 0)) - 'Draw a rectangle on the template graphics - graphics.DrawRectangle(PdfBrushes.BurlyWood, New RectangleF(0, 20, 200, 50)) - 'Draw the template to PDF page. - template.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a value indicating whether the template is read-only. - - true if the template is read-only; otherwise, false. - Read-only templates does not expose graphics. They just return null. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create new PDF standard font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 14); - //Create PdfTemplate object. - PdfTemplate template = page.CreateTemplate(); - //Get read-only - bool readOnlyTemplate = template.ReadOnly; - Console.Write("Read-Only template: " + readOnlyTemplate.ToString()); - //Close the document. - doc.Close(true); - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF standard font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 14) - 'Create PdfTemplate object. - Dim template As PdfTemplate = page.CreateTemplate() - 'Get read-only - Dim readOnlyTemplate As Boolean = template.ReadOnly - Console.Write("Read-Only template: " + readOnlyTemplate.ToString()) - 'Close the document. - doc.Close(True) - - - - - - Gets the wrapped element. - - - - - Represents a pie shape. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Red,New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the pie shape. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfBrushes.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfBrushes.Red, New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The x-coordinate of the upper-left corner of the bounding rectangle. - The y-coordinate of the upper-left corner of the bounding rectangle. - The width of the bounding rectangle. - The height of the bounding rectangle. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, 0, 0, 200, 100, 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, 0, 0, 200, 100, 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the pie shape. - The brush of the pie shape. - The rectangle region of the pie shape. - Angle in degrees measured clockwise from the x-axis to the starting point of the pie. - Angle in degrees measured clockwise from the startAngle parameter to ending point of the pie. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create a new PDF pie instance. - PdfPie pie = new PdfPie(PdfPens.Black, PdfBrushes.Red, new RectangleF(0, 0, 200, 100), 0, 180); - //Draw the pie to PDF page. - pie.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF pie instance. - Dim pie As New PdfPie(PdfPens.Black, PdfBrushes.Red, New RectangleF(0, 0, 200, 100), 0, 180) - 'Draw the pie to PDF page. - pie.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Represents a set of points connected with lines, could be drawn and filled. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(50, 50); - PointF point2 = new PointF(100, 50); - PointF point3 = new PointF(150, 100); - PointF point4 = new PointF(150, 150); - PointF point5 = new PointF(100, 200); - PointF point6 = new PointF(50, 200); - PointF point7 = new PointF(0, 150); - PointF point8 = new PointF(0, 100); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(50, 50) - Dim point2 As New PointF(100, 50) - Dim point3 As New PointF(150, 100) - Dim point4 As New PointF(150, 150) - Dim point5 As New PointF(100, 200) - Dim point6 As New PointF(50, 200) - Dim point7 As New PointF(0, 150) - Dim point8 As New PointF(0, 100) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Array of the points. - - - - - Initializes a new instance of the class. - - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(50, 50); - PointF point2 = new PointF(100, 50); - PointF point3 = new PointF(150, 100); - PointF point4 = new PointF(150, 150); - PointF point5 = new PointF(100, 200); - PointF point6 = new PointF(50, 200); - PointF point7 = new PointF(0, 150); - PointF point8 = new PointF(0, 100); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(50, 50) - Dim point2 As New PointF(100, 50) - Dim point3 As New PointF(150, 100) - Dim point4 As New PointF(150, 150) - Dim point5 As New PointF(100, 200) - Dim point6 As New PointF(50, 200) - Dim point7 As New PointF(0, 150) - Dim point8 As New PointF(0, 100) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The brush of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfBrushes.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfBrushes.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - The pen of the polygon shape. - The brush of the polygon shape. - The points that represents the vertices of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Black, PdfBrushes.Red, points); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Black, PdfBrushes.Red, points) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Adds a point to the polygon. - - The last point of the polygon. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Add points. - polygon.AddPoint(new PointF(50, 50)); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Add points. - polygon.AddPoint(New PointF(50, 50)) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Overloaded. Returns a rectangle that bounds this element. - - Returns a rectangle that bounds this element. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets or sets the points of the polygon. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Black, new PointF[] { new PointF(0,100) }); - //Set the polygon points. - polygon.Points = points; - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Black, New PointF() {New PointF(0, 100)}) - 'Set the polygon points. - polygon.Points = points - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets a number of the points in the polygon. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Polygon points. - PointF point1 = new PointF(100, 100); - PointF point2 = new PointF(150, 100); - PointF point3 = new PointF(200, 150); - PointF point4 = new PointF(200, 200); - PointF point5 = new PointF(150, 250); - PointF point6 = new PointF(100, 250); - PointF point7 = new PointF(50, 200); - PointF point8 = new PointF(50, 150); - PointF[] points = { point1, point2, point3, point4, point5, point6, point7, point8 }; - //Create a new PDF polygon instance. - PdfPolygon polygon = new PdfPolygon(PdfPens.Red, points); - //Get the polygon points count. - int count = polygon.Count; - Console.WriteLine("Polygon points count: " + count); - //Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Polygon points. - Dim point1 As New PointF(100, 100) - Dim point2 As New PointF(150, 100) - Dim point3 As New PointF(200, 150) - Dim point4 As New PointF(200, 200) - Dim point5 As New PointF(150, 250) - Dim point6 As New PointF(100, 250) - Dim point7 As New PointF(50, 200) - Dim point8 As New PointF(50, 150) - Dim points As PointF() = {point1, point2, point3, point4, point5, point6, point7, point8} - 'Create a new PDF polygon instance. - Dim polygon As New PdfPolygon(PdfPens.Red, points) - 'Get the polygon points count. - Dim count As Integer = polygon.Count - Console.WriteLine("Polygon points count: " + count) - 'Draw the polygon to PDF page. - polygon.Draw(page, PointF.Empty) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents a simple rectangle that could be drawn and/or filled. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The brush. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(brush, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(brush, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The x-coordinate of the upper-left corner of this Rectangle. - The y-coordinate of the upper-left corner of this Rectangle. - The width of the rectangle. - The height of the rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, 0, 0, 200, 100); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, 0, 0, 200, 100) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - The pen. - The brush. - The rectangle. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a new PDF page. - PdfPage page = document.Pages.Add(); - //Create new PDF pen. - PdfPen pen = new PdfPen(Color.Red); - //Create new PDF solid brush. - PdfBrush brush = new PdfSolidBrush(Color.Green); - //Create new PdfRectangle instance. - PdfRectangle rect = new PdfRectangle(pen, brush, new RectangleF(0, 0, 200, 100)); - //Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty); - //Save the PDF docment. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a new PDF page. - Dim page As PdfPage = document.Pages.Add() - 'Create new PDF pen. - Dim pen As New PdfPen(Color.Red) - 'Create new PDF solid brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Green) - 'Create new PdfRectangle instance. - Dim rect As New PdfRectangle(pen, brush, New RectangleF(0, 0, 200, 100)) - 'Draw the rectangle to PDF page. - rect.Draw(page, PointF.Empty) - 'Save the PDF docment. - document.Save("output.pdf") - Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - - Default compression. - - - - - Uses JBIG2 compression for monochrome TIFF images. - - - - - The contains methods and properties to handle the Bitmap images - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the base class for images and provides functionality for the class - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - The stream containing image data. - - - - - The size of the image in points. - - - - - Horizontal image resolution. - - - - - Vertical image resolution. - - - - - Holds mask type flag. - - - - - Holds list of color space - - - - - Creates from the specified file.. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - A string that contains the name of the file from which to create the - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates PdfImage from the specified data stream.. - - A Stream that contains the data for this . - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromStream(File.OpenRead("Autumn Leaves.jpg")); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromStream(File.OpenRead("Autumn Leaves.jpg")) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a from the existing . - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The from which to create the new . - Returns a created PdfImage object. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfImage image = PdfImage.FromImage(picture); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As PdfImage = PdfImage.FromImage(picture) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new image instance from RTF text with the specified RTF text, width and image type - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The RTF text from which to create the new - Width of the image in points. - Type of the image that should be created. - PdfImage containing RTF text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Creates a new image instance from RTF text with the specified RTF text, width, height and image type - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The RTF text from which to create the new . - Width of the image in points. - Height of the image in points. - Type of the image that should be created. - PdfImage containing RTF text. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - string rtfData = @"{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}"; - //Load image from rtf data. - PdfImage image = PdfImage.FromRtf(rtfData, 200, 200, PdfImageType.Bitmap) - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - Dim rtfData As String = "{\rtf1\ansi\deff0 {\colortbl;\red0\green0\blue0;\red255\green0\blue0; }Default Color\line\cf2Red Color\line\cf1Default Color}" - 'Load image from rtf data. - Dim Image As PdfImage = PdfImage.FromRtf(rtfData, 200, 200, PdfImageType.Bitmap) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Checks the stream existence. - - The stream. - The stream if it exists. - It's thrown if the stream is null. - - - - Calculates the width and height of the image. - - Width of the image in points. - Height of the image in points. - Calculates the width and height of the image. - - - - Saves the image into stream. - - - - - Sets the content stream. - - The content. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Gets bounds of image. - - The DPI is standard, not image DPI. - Bounds of image. - - - - Calculates size of the image in points. - - Width in pixels. - Height in pixels. - size of the image in points. - - - - Calculates size of the image in points. - - Width in pixels. - Height in pixels. - Horizontal resolution. - Vertical resolution. - size of the image in points. - - - - Sets resolution of the image. - - Horizontal resolution of the image. - Vertical resolution of the image. - - - - Gets the height of the image in pixels (Read only). - - The height of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the width of the image in pixels (Read only). - - The width of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the horizontal resolution, in pixels per inch, of this Image (Read only). - - The horizontal resolution of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the vertical resolution, in pixels per inch, of this Image (Read only). - - The vertical resolution of the image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the size of the image in points (Read only). - - The size of the image in points - This property uses HorizontalResolution and VerticalResolution for calculating the size in points. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfImage image = PdfImage.FromFile("Autumn Leaves.jpg"); - //Get image width. - float imageWidth = image.Width; - //Get image height. - float imageHeight = image.Height; - //Get the horizontal resolution. - float hResolution = image.HorizontalResolution; - //Get the vertical resolution. - float vResolution = image.VerticalResolution; - //Get the image physical dimension. - SizeF dimenstion = image.PhysicalDimension; - Console.WriteLine("Image width :" + imageWidth); - Console.WriteLine("Image height :" + imageHeight); - Console.WriteLine("Horizontal resolution :" + hResolution); - Console.WriteLine("Vertical resolution :" + vResolution); - Console.WriteLine("Physical dimension :" + dimenstion); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As PdfImage = PdfImage.FromFile("Autumn Leaves.jpg") - 'Get image width. - Dim imageWidth As Single = image.Width - 'Get image height. - Dim imageHeight As Single = image.Height - 'Get the horizontal resolution. - Dim hResolution As Single = image.HorizontalResolution - 'Get the vertical resolution. - Dim vResolution As Single = image.VerticalResolution - 'Get the image physical dimension. - Dim dimenstion As SizeF = image.PhysicalDimension - Console.WriteLine("Image width :" + imageWidth) - Console.WriteLine("Image height :" + imageHeight) - Console.WriteLine("Horizontal resolution :" + hResolution) - Console.WriteLine("Vertical resolution :" + vResolution) - Console.WriteLine("Physical dimension :" + dimenstion) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Holds list of color space - - An array of component values specifying the matte color - with which the image data in the parent image has been preblended. - The array consists of numbers, where n is the number of components - in the color space specified by the ColorSpace entry in the parent image�s - image dictionary; the numbers must be valid color components - in that color space. - - - - Gets the image. - - The image. - - - - Gets the image stream. - - - - - Gets the mask type. - - true if soft mask; otherwise, hard mask false. - - - - Gets the wrapped element. - - - - - Start of image marker. - - - - - JFIF marker. - - - - - Start of scan marker. - - - - - End of image marker. - - - - - Holds image. - - - - - Holds the index of active frame for multiframe images. - - - - - Holds image frame dimention. - - - - - Holds mask for current image. - - - - - Holds bits per component. - - - - - Holds image color space. - - - - - A flag indicating whether the image is to be treated as an image mask. - - - - - Holds list of saved frames. - - - - - Indicates if the object has been disposed. - - - - - The quality of the stored image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - - Internal variable to store the check value. - - - - - Holds the raw image stream - - - - - Indicates whether the quality is set to custom. - - - - - Initializes a new instance of the class from the specified existing image. - - The from which to create the new Bitmap. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified file. - - The bitmap file name and path. - The file name and path can be relative to the application or an absolute path. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Initializes a new instance of the class from the specified data stream. - - The data stream used to load the image. - /// - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the stream - PdfBitmap image = new PdfBitmap(File.OpenRead("Autumn Leaves.jpg")); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the stream - Dim image As New PdfBitmap(File.OpenRead("Autumn Leaves.jpg")) - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Draw the image - graphics.DrawImage(image, 0, 0); - //Dispose the image object. - image.Dispose(); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Dispose the image object. - image.Dispose() - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Disposes the specified disposing. - - if it is disposing, set to true. - - - - Saves the image into stream. - - - - - Gets the bits per pixel. - - The pixel format of the image. - Number of bits per pixel - - - - Gets the encoder info. - - Type of the MIME. - - - - - Saves the image as JPG. - - - - - Saves the current image as pixel matrix. - - - - - Gets the color space from image stream. - - Memory stream of image. - Color space. - - - - Sets the mask for image. - - - - - Saves the required items. - - - - - Creates the mask from ARGB image. - - The ARGB image. - - - - - Creates the mask from an indexed image. - - The image. - The proper greyscale image, which represents the mask. - - - - Saves the image by pixel format. - - - - - Saves the image. - - The image filters. - - - - Sets the color space. - - - - - Saves the additional items. - - - - - Checks if frame was saved already. - - The frame index. - - true if frame was saved, otherwise false. - - - - - Get or sets the Check Value. - - - - - Gets or sets the active frame of the image. - - The index of the active frame. - - - //Create a PDF document - PdfDocument pdfDocument = new PdfDocument(); - //Add a section to the PDF document - PdfSection section = pdfDocument.Sections.Add(); - //Declare the PDF page - PdfPage page; - //Declare PDF page graphics - PdfGraphics graphics; - //Load multi frame Tiff image - PdfBitmap tiffImage = new PdfBitmap("image.tiff"); - //Get the frame count - int frameCount = tiffImage.FrameCount; - - //Access each frame draw into the page - for (int i = 0; i!=frameCount-1; i++) - { - page = section.Pages.Add(); - section.PageSettings.Margins.All = 0; - graphics = page.Graphics; - tiffImage.ActiveFrame = i; - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - } - //Save and close the document - pdfDocument.Save("Sample.pdf"); - pdfDocument.Close(true); - - - 'Create a PDF document///Dim pdfDocument As New PdfDocument() - 'Add a section to the PDF document - Dim section As PdfSection = pdfDocument.Sections.Add() - 'Declare the PDF page - Dim page As PdfPage - 'Declare PDF page graphics - Dim graphics As PdfGraphics - 'Load multi frame Tiff image - Dim tiffImage As New PdfBitmap("image.tiff") - 'Get the frame count - Dim frameCount As Integer = tiffImage.FrameCount - 'Access each frame draw into the page - For i As Integer = 0 To frameCount - 1 - page = section.Pages.Add() - section.PageSettings.Margins.All = 0 - graphics = page.Graphics - tiffImage.ActiveFrame = i - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - Next - 'Save and close the document - pdfDocument.Save("Sample.pdf") - pdfDocument.Close(True) - - - - - - Gets the number of frames in the bitmap (Read only). - - The frame count of the image. - - - //Create a PDF document - PdfDocument pdfDocument = new PdfDocument(); - //Add a section to the PDF document - PdfSection section = pdfDocument.Sections.Add(); - //Declare the PDF page - PdfPage page; - //Declare PDF page graphics - PdfGraphics graphics; - //Load multi frame Tiff image - PdfBitmap tiffImage = new PdfBitmap("image.tiff"); - //Get the frame count - int frameCount = tiffImage.FrameCount; - //Access each frame draw into the page - for (int i = 0; i!=frameCount-1; i++) - { - page = section.Pages.Add(); - section.PageSettings.Margins.All = 0; - graphics = page.Graphics; - tiffImage.ActiveFrame = i; - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - } - //Save and close the document - pdfDocument.Save("Sample.pdf"); - pdfDocument.Close(true); - - - 'Create a PDF document///Dim pdfDocument As New PdfDocument() - 'Add a section to the PDF document - Dim section As PdfSection = pdfDocument.Sections.Add() - 'Declare the PDF page - Dim page As PdfPage - 'Declare PDF page graphics - Dim graphics As PdfGraphics - 'Load multi frame Tiff image - Dim tiffImage As New PdfBitmap("image.tiff") - 'Get the frame count - Dim frameCount As Integer = tiffImage.FrameCount - 'Access each frame draw into the page - For i As Integer = 0 To frameCount - 1 - page = section.Pages.Add() - section.PageSettings.Margins.All = 0 - graphics = page.Graphics - tiffImage.ActiveFrame = i - graphics.DrawImage(tiffImage, 0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - Next - 'Save and close the document - pdfDocument.Save("Sample.pdf") - pdfDocument.Close(True) - - - - - - Gets or sets the mask of bitmap. - - New PdfMask represents the mask image. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the quality of the image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the image from the disk. - PdfBitmap image = new PdfBitmap("Autumn Leaves.jpg"); - //Set image quality. - image.Quality = 50; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the image from the disk. - Dim image As New PdfBitmap("Autumn Leaves.jpg") - 'Set image quality. - image.Quality = 50 - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets the image. - - - - - - Represents the color mask for Bitmap images. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Base class for bitmap masking objects. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds start color of color mask. - - - - - Holds end color of color mask. - - - - - Initializes a new instance of the class with the specified start and end color - - The start color of the color mask. - The end color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the start color of the mask. - - The which represents the starting color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Set start color. - mask.StartColor = new PdfColor(Color.Green); - //Set end color. - mask.EndColor = new PdfColor(Color.Red); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Set start color. - mask.StartColor = New PdfColor(Color.Green) - 'Set end color. - mask.EndColor = New PdfColor(Color.Red) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Gets or sets the end color of the mask. - - The which represents the ending color of the color mask. - - - //Create a new PDF document.///PdfDocument doc = new PdfDocument(); - //Add a page to the document. - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load image from file - Image picture = Image.FromFile("Autumn Leaves.jpg"); - //Load the image from the Image object - PdfBitmap image = new PdfBitmap(picture); - //Create a color mask - PdfColorMask mask = new PdfColorMask(new PdfColor(Color.Red), new PdfColor(Color.Aqua)); - //Set start color. - mask.StartColor = new PdfColor(Color.Green); - //Set end color. - mask.EndColor = new PdfColor(Color.Red); - //Apply a mask to the image - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Save the document. - doc.Save("Output.pdf"); - //Close the document. - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page to the document. - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load image from file - Dim picture As Image = Image.FromFile("Autumn Leaves.jpg") - 'Load the image from the Image object - Dim image As New PdfBitmap(picture) - 'Create a color mask - Dim mask As New PdfColorMask(New PdfColor(Color.Red), New PdfColor(Color.Aqua)) - 'Set start color. - mask.StartColor = New PdfColor(Color.Green) - 'Set end color. - mask.EndColor = New PdfColor(Color.Red) - 'Apply a mask to the image - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document. - doc.Close(True) - - - - - - Represents the image mask object for bitmap images. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds mask image. - - - - - Holds mask type flag. - - - - - Initializes a new instance of the PdfImageMask class from the specified - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The PdfBitmap which represents the image - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the image mask for the bitmap (Read only). - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The represents the image mask. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - //Get the mask image. - PdfBitmap maskedImage = mask.Mask; - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - 'Get the mask image. - Dim maskedImage As PdfBitmap = mask.Mask - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets the mask type for the bitmap (Read only). - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - true if soft mask; otherwise, hard mask false. - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Load the Tiff image - PdfBitmap image = new PdfBitmap("image.tif"); - //Create masking image - PdfImageMask mask = new PdfImageMask(new PdfBitmap("mask.bmp")); - //Check soft mask. - bool isSoftMask = mask.SoftMask; - image.Mask = mask; - //Draw the image - graphics.DrawImage(image, 0, 0); - //Saves the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Load the Tiff image - Dim image As New PdfBitmap("image.tif") - 'Create masking image - Dim mask As New PdfImageMask(New PdfBitmap("mask.bmp")) - 'Check soft mask. - Dim isSoftMask As Boolean = mask.SoftMask - image.Mask = mask - 'Draw the image - graphics.DrawImage(image, 0, 0) - 'Saves the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Class representing metafile image - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Holds image. - - - - - Holds template for metafile. - - - - - Indicates if the metafile has been parsed. - - - - - Contains the information about the text regions in the metafile. - - - - - Contains the information about the image regions in the metafile. - - - - - Indicates if the object has been disposed. - - - - - Indicates whether we should dispose image or not. - - - - - Indicates the quality of the image. - - - - - Indicates the image resolution - - - - - Contains the html hyperlink - - - - - Contains document links. - - - - - Contains form's input elements. - - - - - Contains select elements. - - - - - Contains button elements. - - - - - - - - - - - - - - - Internal varible to store the alpha pen. - - - - - Internal varible to store the alpha brush. - - - - - Internal varible to store tranaparency is applied or not. - - - - - Internal varible to store the pdf blend mode. - - - - - Internal variable to store current pdf document - - - - - internal variable to store identical image collection - - - - - - - - - - Internal variable to store ShapeLayoutBounds - - - - - Check whether the metafile has PdfGrid - - - - - internal variable to store GridbottomCellpadding - - - - - Initializes a new instance of the class with - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The metafile. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - Metafile metaFile = new Metafile("MetaChart.emf"); - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile(metaFile); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - Dim metaFile As New Metafile("MetaChart.emf") - 'Create a Metafile instance - Dim metaChart As New PdfMetafile(metaFile) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with metafile path - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The metafile path. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Initializes a new instance of the class from stream of the metafile - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The stream. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - byte[] data = File.ReadAllBytes("MetaChart.emf"); - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile(new MemoryStream(data)); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - Dim data As Byte() = File.ReadAllBytes("MetaChart.emf") - 'Create a Metafile instance - Dim metaChart As New PdfMetafile(New MemoryStream(data)) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Dispose the metafile. - metaChart.Dispose(); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Dispose the metafile. - metaChart.Dispose() - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Disposes the specified disposing. - - if it is disposing, set to true. - - - - Saves the image into stream. - - This methods prepares a PDF template (XObject) - for saving and drawing. - - - - Layouts the element. - - Layout parameters. - Returns lay outing results. - - - - Layouts the HtmlToPdf element. - - Layout parameters. - Returns lay outing results. - - - - Checks the format of the metafile. Converts it to supported format. - - Input metafile. - Resulted metafile. - - - - Converts WMF/EmfPlusDual metafile to EMF metafile. - - WMF/EmfPlusDual metafile. - EMF metafile converted from WMF/EmfPlusDual metafile. - - - - Sets the transparency. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The alpha value for pen operations. - The alpha value for brush operations. - The blend mode. - Transparency is applied or not. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set transparency. - metaChart.SetTransparency(0.5f, 0.5f, PdfBlendMode.Overlay, true); - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set transparency. - metaChart.SetTransparency(0.5F, 0.5F, PdfBlendMode.Overlay, True) - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Get or Sets transparency is applied or not. - - - - - Get or Sets the alpha pen - - - - - Get or Sets the alpha brush. - - - - - Get or Sets the Blend mode. - - - - - Gets the image. - - The image. - - - - Gets the information about the text regions in the metafile. - - - - - Gets the information about the image regions in the metafile. - - - - - Returns the internal template. - - - - - get or set the PdfDocument - - - - - get or set the bool value to to idetenctical image - - - - - get or set the bool value to to embed font - - - - - get or set the bool value to to embed complete font - - - - - Gets or sets the quality of the image. - - When the image is stored into PDF not as a mask, - you may reduce its quality, which saves the disk space. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set image quality. - metaChart.Quality = 10; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set image quality. - metaChart.Quality = 10 - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the resolution of the image - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set image resolution. - metaChart.ImageResolution = 72; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set image resolution. - metaChart.ImageResolution = 72 - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Contains the html hyperlink collection. - Used during html to pdf conversion to preserve live-links. - - - - - Contains document links. - - - - - Contains Input Elements. - - - - - Contains List elements. - - - - - Contains List elements. - - - - - Gets or sets the page scale. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page scale. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set page scale. - metaChart.PageScale = 1.2f; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set page scale. - metaChart.PageScale = 1.2F - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Gets or sets the page graphics unit. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - The page unit. - - - // Create a PDF Document. - PdfDocument doc = new PdfDocument(); - //Add pages to the document - PdfPage page = doc.Pages.Add(); - //Create PDF graphics for the page - PdfGraphics graphics = page.Graphics; - //Create the layout format - PdfMetafileLayoutFormat format = new PdfMetafileLayoutFormat(); - //Split text and image between pages - format.SplitImages = true; - format.SplitTextLines = true; - //Create a Metafile instance - PdfMetafile metaChart = new PdfMetafile("MetaChart.emf"); - //Set the page unit. - metaChart.PageUnit = GraphicsUnit.Point; - //Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format); - //Save the document - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a PDF Document. - Dim doc As New PdfDocument() - 'Add pages to the document - Dim page As PdfPage = doc.Pages.Add() - 'Create PDF graphics for the page - Dim graphics As PdfGraphics = page.Graphics - 'Create the layout format - Dim format As New PdfMetafileLayoutFormat() - 'Split text and image between pages - format.SplitImages = True - format.SplitTextLines = True - 'Create a Metafile instance - Dim metaChart As New PdfMetafile("MetaChart.emf") - 'Set the page unit. - metaChart.PageUnit = GraphicsUnit.Point - 'Draw the Metafile in the page - metaChart.Draw(page, PointF.Empty, format) - 'Save the document - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Checks whether the image is direct rendering or template based. - - - - - Get or set current page graphics - - - - - Gets or sets the custom font collection. - - - - - Gets or set the embedded fonts. - - - - - Holds all tokens which might appear in every PDF file. - - - - - All element types. - - - - - Specfies the status of the IPdfPrmitive. Status is registered if it has a reference or else none. - - - - - CrossTable is a class that performs low-level I/O - for parsing a PDF cross reference table. - - - - - Holds the stream. - - - - - Holds the stream reader. - - - - - The parser of the reader. - - - - - A container of all object offsets. - - - - - The document trailer. - - - - - A chache variable for chaching the document catalog offset. - - - - - The last cross-reference table. - - - - - The storage for stream object readers. - - - - - The table of the archives within the document. - - - - - The document encryptor. - - - - - The high level cross-table. It's required for convertion - PDFReferences into PDFReferenceHolders. - - - - - - - - - Repairing wrong offset values - - - - - Read the whitespaces in front of the document - - - - - Searches for all instances of reference tables and parses them. - - The stream with the document. - The high-level cross table. - - - - Looks up for the token startxref. - - - - - Retrieves an object by its reference. - - The reference of the object. - The object read from its reference. - - - - Retrieves a PDF stream from a PDF document. - - The reference object to the stream. - The array of bytes taken from the PDF stream. - - - - Parses the new table. - - The cross-reference table stream. - The hash table of the objects. - - - - Parses current subsection. - - The PDF stream reader with the file in. - The table with the offsets foud. - - - - Retrieves a PDF reader by the archive information. - - - - - - Retrieves an archive by its number. - - The archive. - - - - Parses the dictionary and retrieves the subsection information - in the ArrayList. - - A PDF stream representing a cross-reference - stream dictionary. - The information about subsections. - - - - Parses a subsection within a cros-reference stream. - - A cross-reference stream. - A structure that specifies a subsection. - The table with the offsets foud. - The start position within the stream data. - The start position of the next subsection. - - - - Retrieves an object by its reference. - - The PDF parser. - The position within the reader's stream. - The object read from its reference. - - - - Skip junk string from the PDF - - - - - - Dispose the corsstable. - - - - - Returns the offset of an obkect specified. - - - - - Returns the number of the objects which have been found. - - - - - Gets the document catalog address. - - - - - Returns the stream. - - Use with caution. - - - - Returns the offset of the last cross-reference table. - - - - - Returns the steream reader. - - - - - Gets the parser. - - The parser. - - - - Returns the document's trailer. - - - - - - Gets or sets the encryptor. - - - - - Represents a subsection in a cross-reference stream. - - - - - The first object number in the subsection. - - - - - The total number of the objects within the subsection. - - - - - Initialize the subsection with start number and count. - - The first object number in the subsection. - The total number of the objects within the subsection. - - - - - Initialize the subsection with count. - - The total number of the objects within the subsection. - - - - - Represents a type of an object. - - - - - Stores information about a PDF packed object. - - - - - A number of an object stream that holds the object. - - - - - The index of the object within the archive. - - - - - The archive. - - - - - Delegate that retrieves an archive by its number. - - - - - Initialize the archive information class with the archive number and - the index within the archive. - - The archive number. - The index within the archive. - The GetArchive delegade. - - - - Gets a number of an object stream that holds the object. - - - - - Gets the index of the object within the archive. - - - - - Gets the archive number. - - - - - Stores information about an PDF indirect object. - - - - - The type of the object. - - - - - The archive information. - - - - - The PDF reader wich can read from the archive. - - - - - The offset of the object. - - - - - The CrossTable class instance. - - - - - Converts an Object information into the offset. - - An ObjectInformation class instance. - The offset of zero. - - - - Holds the parsed object. - - - - - Initialize the object information object. - - The object's type. - The object's offset or zero. - The archive info or null. - The low-level reading cross table. - - - - Gets the type of the object. - - - - - The PDF reader wich can read from the archive. - - - - - The offset of the object. - - - - - Gets the archive information. - - - - - - - Implements functionality of PDF object stream (or PDF - archive). - - - - - Internal variable to hold cloned object. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The dictionary. - The data. - - - - Gets bytes of the stream. - - Stream to be converted. - Destination bytes. - - - - Gets bytes of the stream. - - Stream to be converted. - Indicates whether to write the whole stream. - Destination bytes. - - - - Converts a stream to bigendian format. - - A stream containing data. - A stream in bigendian format. - - - - Writes the specified symbol. - - The symbol. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Blocks the encryption. - - - - - Decompresses this instance. - - - - - Hex to Decimal conversion - - Hex character to convert into Decimal - Equivalent decimal value - - - - Decode hex stream to decimal equivalent - - hexadecimal byte stream - decimal equivalent for the hexadecimal byte stream - - - - Cleares a stream. - - - - - Dispose the stream data. - - - - - Saves the object using the specified writer. - - The writer. - - - - Creates a copy of PdfStream. - - - - - Decrypts the data using the specified encryptor. - - The encryptor. - The current object number. - - - - Decompresses the stream data. - - The data to decompress. - The filter name. - Uncompressed byte array. - - - - Returnes a compressor by its name. - - The name of the compressor. - IPDFCompressor interface. - - - - Performs postprocessing of the data for the filter specified. - - The data to process. - The filter. - Restored data. - - - - Normalizes the filter. If the filter array has only one element store that element - instead of entire array. - - - - - Compresses the content if it's required. - - The writer. - The compressed data. - - - - Adds a filter to the filter array. - - Name of the filter. - - - - Encrypts the stream content. - - The data. - The writer. - The encrypted content. - - - - Gets the internal stream. - - - - - Gets or sets the data. - - The modifications of the returned stream - have no impact on the real data. - - - - Gets or sets compression flag. - - true if compress; otherwise, false. - - - - Returns cloned object. - - - - - Gets a value indicating whether the object was encrypted. - - - - - Gets a value indicating whether this is decrypted. - - true if decrypted; otherwise, false. - - - - - - Holds sorted indices. - - - - - - - Holds the objects. - - - - - - - PDF stream writer. - - - - - - - PDF stream writer. - - - - - - - The current document. - - - - - - - Initializes a new instance of the - class. - - The document. - - - - - - Saves the object. - - The object. - The reference. - - - - - - Gets the index of the object referenced by its number. - - The object number. - - The index of the object. - - - - - - - Writes object to defined writer. - - Writer for object saving. - - - - Clears the PdfArchiveStream. - - - - - - - Saves objects. - - - - - - - Saves indices. - - - - - - - Gets the count of objects. - - - - - - - Stores information about current object and index. - - - - - - - Current object. - - - - - - - The current index within the object. - - - - - - - Initializes a new instance of the - class. - - The object. - - - - PDFCrossTable is responsible for intermediate level parsing - and savingof a PDF document. - - - - - The low level implementation of the cross-reference table. - - - - - The document catalog. - - - - - The stream the file within. - - - - - The modified objects that should be saved. - - - - - The number of the objects. - - - - - Shows if the class have been dicposed. - - - - - The trailer for a new document. - - - - - The main PdfDocument class instance. - - - - - Flag that forces an object to be 'a new'. - - - - - The obj number stack. Holds object numbers - that are used to decode strings and streams. - - - - - Holds maximal generation number or offset to object. - - - - - The current object archive. - - - - - The mapped references. - - - - - The value of the count stored - before count was wiped out. - - - - - The list of the completed archives. - - - - - Internal variable to identify the current object is PdfEncryptor or not. - - - - - Internal variable to store pages. - - - - - Internal variable to store reference. - - - - - Internal variable to store if document is being merged. - - - - - internal varible to conform colorspace - - - - - Repair the docuemnt which contains wrong offset values - - - - - Indicates whether the crosstable completely disposed or not. - - - - - Indicates whether the base class is disposed or not. - - - - - The costructor of the table. - - A stream which contains the document. - - - - The costructor of the table. - - A stream which contains the document. - Repair the crosstable witch contains wrong offsets - - - - The costructor of the table. - - - - - - - A costructor thar initialize a new cross table. - - - - - Initializes a new instance of the class. - - The count. - The encryption dictionary. - - - - Initializes a new instance of the class. - - The count. - The encryption dictionary. - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Dereferences the specified primitive object. - - The primitive object. - Dereferenced object. - - - - Retrieves an object by its reference. - - The reference of the object. - The object read from its reference. - - - - Decrypt a decryptable object. Should be called during Prepare(). - - The decrypted object. - - - - Decrypts the specified obj. - - The obj. - - - - Retrieves a PDF stream from a PDF document. - - The reference object to the stream. - The array of bytes taken from the PDF stream. - - - - Registers the object in the cross reference table. - - The offset of the object within the file - The representation of the reference to the object. - - - - - Registers an archived object. - - The archive. - The reference to the object. - - - - Registers the object in the cross reference table. - - The offset of the object within the file - The representation of the reference to the object. - - True if object is free. - - - - Saves the cross-reference table into the stream. - - The stream writer to save the cross-reference table into. - - - - - Retrieves the reference of the object given. - - The object. - The reference. - If there is no registered reference, create a new one and register - it. - - - - Retrieves the reference of the object given. - - The object. - The output flag, which shows if the object is new. - The reference. - - - - Forces all object to be 'a new'. - - - - - Marks the trailer references being saved. - - - - - Checks if an object is a page and convert it into a loaded page if necessary. - - The object, which should be checked. - The checked and modified object. - - - - Prepares the cross-reference stream. - - The offset to the previous cross-reference stream. - The current position. - The reference. - Prepared cross-reference stream. - - - - Gets the minimal number of bytes required to save the number. - - The number. - How much bytes required. - - - - Saves the subsection. - - The binary writer of cross-reference stream. - The object number. - The count. - The format. - - - - Saves the long. - - The xref stream. - The number. - The count of bytes. - - - - - - Sets the security to the document. - - - - - - - Saves all objects in the collection. - - Writer object. - - - - Saves the archives. - - The writer. - - - - Gets the mapped reference. - - The reference. - The mapped reference. - - - - Finds the archive reference. - - The archive. - The reference found. - - - - - - Saves indirect object. - - Indirect object that should be saved. - Writer object. - - - - Retrieves the reference of the given object. - - The object. - The reference. - The writer. - - - - Saves the current archive. - - The writer. - - - - Performs real saving of the save object. - - The object. - The reference. - The writer. - - - - Generates the document page root dictionary object. - - The document page root dictionary object. - - - - Saves the xref section. - - The stream writer. - - - - Prepares a subsection of the current section within the cross-reference table. - - The first object in the subsection. - The number of the entries in the section. - - - - Saves a subsection. - - A PDF writer. - The firs object in the subsection. - The number of the indirect objects in the subsection. - - - - - Generates string for xref table item. - - Offset of the object in the file. - The generation number of the object. - Indicates whether object is free. - String representation of the item. - - - - Saves the new trailer dictionary. - - A PDF writer. - The total number of the objects. - The PrevXRef value. - - - - Forces the ID to be in hex. - - The trailer. - - - - Saves the endess of the file. - - A PDF writer. - The xref position. - - - - Saves the head. - - The writer. - - - - Generates the version of the file. - - the parent document. - The version of the file. - - - - Checks the cross-reference type in the document. - - The parent document. - True if cross-reference is a stream, False otherwise. - - - - Frees all resources. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and - unmanaged resources; false to release only unmanaged resources. - - - - Gets or sets the current object is PdfEncryptor or not. - - - - - Returns the document catalog. - - - - - Returns the source stream. - - - - - Returns next available object number. - - - - - Returns a low-level cross-reference table parser. - - - - - Gets or sets the number of the objects within the document. - - - - - Gets or sets the main PdfDocument class instance. - - - - - Gets the chached PDF object main collection. - - - - - Gets the trailer. - - - - - Gets or sets if the document is merged. - - - - - Gets or sets the encryptor. - - - - - Gets the object collection. - - - - - Gets the security dictionary. - - The security dictionary. - - - - Gets or sets page correspondance up on each page import. - - - - - Gets or sets the PdfReference of latest processed object. - - - - - Represents a registered object. - - - - - The object number of the indirect object. - - - - - The generation number of the indirect object. - - - - - The offset of the indirect object within the file. - - - - - Archive. - - - - - Shows if the object is free. - - - - - Holds the current cross-reference table. - - - - - Initialize the structure with the proper values. - - The offset of the object. - The reference representing the object number and - the generation number of the indirect object. - - - - Initialize the structure with the proper values. - - The offset of the object. - The reference representing the object number and - the generation number of the indirect object. - Shows if the object is free. - - - - Initializes a new instance of the class. - - The xref table. - The archive. - The reference. - - - - Gets the object number. - - - - - Gets the offset. - - - - - Stores information about an archive. - - - - - The object number of the archive. - - - - - The archive stream. - - - - - Initializes a new instance of the class. - - The reference. - The archive. - - - - PDF dictionary properties. - - - - - Start marker for dictionary. - - - - - Holds the current string being read. - - - - - Holds the current parentessis index. - - - - - Holds the current dictionary is structured or unstructured. - - - - - Resets the lexer. - - - - - Reads the count bytes from the stream. - - The number of bytes to read. - - The data which were read from the stream. - - - - - Skips the new line. - - - - - Skips the token. - - - - - Gets the next token. - - - - - - Returns the current text value. - - - - - Gets current line number. - - - - - Gets the current string being read. - - - - - Returns file position. - - - - - Gets or sets the current dictionary is structured or unstructured. - - - - - The collection of all objects within a PDF document. - - - - - The collection of the indirect objects. - - - - - The collection of the Indirect objects - - - - - The collection of primitive objects. - - - - - Holds the index of the object. - - - - - Initializes a new instance of the - class. - - - - - Adds the specified element. - - The element. - - - - Adds the specified object. - - The object. - The reference. - - - - Removes the entry using index. - - - - - Determines whether the specified element is within the collection. - - The element. - - true if the specified element is within the collection; otherwise, false. - - - - - Determines whether the collection contains the specified reference. - - The reference. - - true if there is the specified reference; otherwise, false. - - - - - Gets the reference of the object. - - The index. - The reference of the object. - - - - Gets the reference of the object. - - The object. - if set to true the object hasn't been found in the collection. - The reference of the object. - - - - Gets the object specified by the index. - - The index. - The object. - - - - Gets the object specified by the index. - - The index. - The object. - - - - Gets the index of the object. - - The reference. - The index of the object within the general object collection. - - - - Tries to set the reference to the object. - - The object. - The reference. - if set to true the object was found. - - True if the reference have been set successfully. - - - - - Determines the index of the element within the collection. - - The element. - The index of the element. - - - - Reregisters the reference. - - Old index of the obj. - The new object. - - - - Reregisters reference from one object to another. - - The old (primitive) object. - The new (complex) object. - This method is useful when PDF primitives are converted into - More complex objects. - - - - Looks through the collection for the object specified. - - The object to look for. - The index of the object. - - - - Looks through the collection for the object specified by the reference. - - The reference. - The index of the objec. - - - - Gets the at the specified index. - - - - - Gets the count. - - - - - Stores info about objects in the PDF document. - - - - - Shows if the object was modified and requires saving. - - - - - The PDF object. - - - - - Object number and generation number of the object. - - - - - Initializes a new instance of the class. - - The PDF object. - - - - Initializes a new instance of the class. - - The PDF object. - The reference. - - - - Marks the object modified. - - - - - Sets the reference. - - The reference. - - - - Returns a that represents the current . - - - A that represents the current . - - - - - Implements the operator ==. - - The object information. - The object. - The result of the operator. - - - - Implements the operator !=. - - The oi. - The obj. - The result of the operator. - - - - Determines whether the specified - is equal to the current . - - The - to compare with the current . - - true if the specified - is equal to the current ; otherwise, false. - - - - - Gets a value indicating whether the object has been modified. - - - - - Gets the reference. - - - - - Gets the object. - - - - - A class of string messages. - - - - - Class of string PDF common operators. - - - - - Operator for starting indirect object. - - - - - Operator for ending indirect object. - - - - - Operator for reference on indirect object. - - - - - Whitespace symbol. - - - - - Slash symbol. - - - - - Less than symbol. - - - - - Greater than symbol. - - - - - New Line symbol. - - - - - Regex New Line symbol. - - - - - Operator for starting stream object. - - - - - Operator for ending indirect object. - - - - - Operator for starting cross-reference table. - - - - - Operator in cross-reference table. - - - - - Operator in cross-reference table. - - - - - Trailer begining. - - - - - Operator in trailer object. - - - - - End of File (trailer) operator. - - - - - Start of File (trailer) operator. - - - - - Begin text operator. - - - - - End text operator. - - - - - Begin path operator. - - - - - Append line segment operator. - - - - - Stroke operator. - - - - - Fill by nonzero winding rule operator. - - - - - Fill by even-odd rule operator. - - - - - Fill && Stroke operator. - - - - - Fill && Stroke operator. - - - - - Append a cubic Bezier curve to the current path. - - - - - Append a rectangle to the current path as a complete subpath. - - - - - Save graphics state operator. - - - - - Restore graphics state operator. - - - - - Paint XObject operator. - - - - - Modifies CTM (current transformation matrix). - - - - - Modifies CTM (current transformation matrix). - - - - - Sets line width. - - - - - Sets line cap style. - - - - - Sets line join style. - - - - - Sets dash pattern. - - - - - Sets flatness tolerance. - - - - - Closes path. - - - - - Closes and strokes path. - - - - - Operator for closing then filling and stroking a path. - - - - - Sets character space. - - - - - Sets word space. - - - - - Sets horizontal scaling. - - - - - Sets text leading. - - - - - Sets font operator. - - - - - Sets rendering mode. - - - - - Sets text rise. - - - - - Sets text horizontal scaling. - - - - - Set coordinates operator. - - - - - Operator that sets the start of the new line and leading simultaneously. - - - - - Sets text pointer to next line. - - - - - Set text operator - - - - - Operator to set text with formatting. - - - - - Operator that writes text on the new line. - - - - - Operator that writes text on the new line and set spacings. - - - - - Selects a color space for the stroking color. - - - - - Selects a color space for the nonstroking color. - - - - - Sets RGB color for stroking operations. - - - - - Same as RGB but for nonstroking operations. - - - - - Sets CMYK color for stroking operations. - - - - - Same as CMYK but for nonstroking operations. - - - - - Sets gray color for stroking operations. - - - - - Same as RGB but for nonstroking operations. - - - - - Set pattern operator. - - - - - Same as SC, but also supports Pattern, Separation, DeviceN, and ICCBased - color spaces. For non-stroking operations. - - - - - Same as SC, but also supports Pattern, Separation, DeviceN, and ICCBased - color spaces. For stroking. - - - - - Modify the current clipping path by intersecting it with the current path, using the - nonzero winding number rule to determine which regions lie inside the clipping path. - - - - - Modify the current clipping path by intersecting it with the current path, using the - odd-even rule to determine which regions lie inside the clipping path. - - - - - End the path object without filling or stroking it. This operator is a "path-painting - no-op," used primarily for the side effect of changing the current clipping path (see - "Clipping Path Operators"). - - - - - Graphics state operator. - - - - - Symbol of commenting. - - - - - Indicates any symbol (regex syntax). - - - - - Begins a marked-content sequence. - - - - - Ends a marked-content sequence. - - - - - Even-odd filling method marker. - - - - - The operator to apped bezier curve with x2 y2 x3 y3 set. - - - - - The operator to apped bezier curve with x1 y1 x3 y3 set. - - - - - Set miter limit operator. - - - - - Set color rendering intent operator. - - - - - Set colour of the current colour space for stroking. - - - - - Set colour of the current colour space for non-stroking operations. - - - - - Private constructor. - - - - - The cross-reference table. - - - - - The reader. - - - - - PDF lexer. - - - - - The next token. - - - - - Holds all integers that have been read ahead. - - - - - he high level cross-table. It's required for convertion - PDFReferences into PDFReferenceHolders. - - - - - Internal variable to identify the current object is PdfEncryptor or not. - - - - - To identify whether the dictionary contains colorspace - - - - - Internal variable to indicate the string is password or not. - - - - - Initializes a new instance of the class. - - The cross-reference table. - The reader. - The cross table. - - - - Parses a PDF object. - - The offset to the object. - The object. - - - - Parses a PDF object. - - The object. - - - - Reads a trailer from the stream at the offset. - - The offset. - The trailer dictionary. - - - - Reads a trailer from the stream at the offset. - - The trailer dictionary. - - - - Reads startxref entry. - - The offset to the XRef table. - - - - Sets the offset. - - The offset. - - - - Parses the XRef table. - - The objects. - The cross-reference table. - The trailer dictionary. - - - - Rebuild the xref table for corrupted PDF Documents - - - - - - - Reads a simple object from the stream. - - - - - - Reads the object flag. - - A string that holds the flag. - - - - Starts from the offset specified. - - The offset. - - - - Parses old xref table. - - Cross table object. - A collection of the objects. - - - - Determines whether there is a subsection. - - - true if there is subsection; otherwise false. - - - - - Reacts on an error. - - The error. - The additional information. - - - - Matches the specified token. - - The token. - The match. - - - - Reads the next token. - - - - - Reads the name. - - The PDFName. - - - - Reads the boolean. - - The PDF boolean object. - - - - Reads the unicode string. - - The PDF string object. - - - - Processes the unicode escapes. - - The text. - A nornal string. - - - - Reads the string. - - The string. - - - - Checks if the string is Big Endian Encoded - - Encoded string - True if the string is Big Endian Encoded - - - - Processes escapes. - - A text string. - A string without escape sequences. - - - - Processes the octal number. - - The text. - The index. - The caracter which value is equal to the octal number. - - - - Processes escapes in password string. - - A text string. - A string without escape sequences. - - - - Processes the octal number. - - The text. - The index. - The caracter which value is equal to the octal number. - - - - Read a string coded in hexadecimal digits. - - A string object. - - - - Reads an integer number. - - A PDF integer. - - - - Parses the integer. - - The integer. - - - - Read a real number. - - A PDF real. - - - - Reads an array. - - The well formed array. - - - - Reads a dictionary from the stream. - - The filled PDF dictionary object. - - - - Reads the stream. - - The stream dictionary. - The PDFStream. - - - - Checks the given stream length is correct or not. - - - - - - - - Reads the pair. - - The well filled pair on success or Pair.Emty on failure. - - - - Gets or sets the current object is PdfEncryptor or not. - - - - - Contains constants of errors. - - - - - Holds the name-value pair. - - - - - Holds the empty pair. - - - - - Compares an object and a pair. - - The pair. - The obj. - True if the object is equal to the pair. - - - - Compares an object and a pair. - - The pair. - The obj. - True if the object is not equal to the pair. - - - - The name. - - - - - The value. - - - - - Initializes a new instance of the class. - - The name. - The value. - - - - Indicates whether this instance and a specified object are equal. - - Another object to compare to. - - true if obj and this instance are the same type and represent the same value; otherwise, false. - - - - - Returns the hash code for this instance. - - - A 32-bit signed integer that is the hash code for this instance. - - - - - Summary description for PDFReader. - - - - - The stream our reader works with. - - - - - A string with all delimeter characters except whitespaces, - which are listed elsewhere. - - - - - A string with all delimeter characters of json format except whitespaces, - which are listed elsewhere. - - - - - Holds peeked byte. - - - - - Indicates if a byte was peeked. - - - - - Initialize an instance of the PDFReader class. - - The stream. - - - - Disposes the object. - - - - - - Closes the object. - - - - - Reads a single line from the stream. - - The line read. - - - - Reads a character from the stream and andvances the current position. - - A character read, or -1 if EOF reached. - - - - Reads a character from the stream and preserves the current position of - the stream. - - A character read, or -1 if EOF reached. - - - - Read the sequence of bytes from the stream. - - The storage for the characters. - The index in the buffer. - The number of characters to read. - The count of the characters read. - - - - Read the sequence of bytes from the stream. - - The storage for the characters. - The index in the buffer. - The number of characters to read. - The count of the characters read. - - - - Read all bytes to the end of the stream and returns them as a single string. - - The characters read. - - - - Informs whether the character is from the EOL character. - - The character to test. - True if the character is from EOL characters, false otherwise. - - - - - Determines if the character specified is a separator character. - - The character to test. - True is the character is a separator character. - - - - Determines if the character specified is a delimeter character. - - The character to test. - True is the character is a delimeter character, false otherwise. - - - - - Looks up for the token. - - What to look for. - - - - - Searches for a token specified by 'token' string. - - What to search. - The position of the found token. - - - - Reads a string from a stream in the oppozite direction. - - The string. - - - - Skip any whitespace at the tail. - NOTE: stream.Position points to the last encounted whitespace. - - - - - Skips all white spaces. stream.Position will point to the first nonspase - character or EOF. - - - - - Returns next string separated by delimiters. - - A string. - - - - Seeks for the position specified. - - The origin relative offset. - The origin for the offset. - The zero based position in the stream. - - - - Appends a line with the next character from the stream. - Also it advances the current stream position. - - A text string. - The resulting the character read, - or -1 if EOF was reached during reading. - - - - Gets the peeked byte value. - - The byte value. - True if the byte was acquired. - - - - Sets or gets the position within the stream. - - - - - Returns the underlying stream. - - - - - Helper class to write PDF graphic streams easily. - - - - - Defines the basic interace of the various writers. - - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets or sets the current position within the stream. - - - - - Stream length. - - - - - The document required for saving process. - - - - - The PDF stream where the data should be write into. - - - - - Initializes a new instance of the class. - - The PDF stream. - - - - Modifies TM (text matrix). - - Matrix to be inserted. - - - - Sets font. - - The font. - The name of the font. - Font size. - - - - Sets font. - - The font. - The name of the font. - Font size. - - - - Set the Colorspace. - - - - - - - Sets the character spacing. - - The character spacing value. - - - - Sets the word spacing. - - The word spacing value. - - - - Sets the scaling. - - The scaling factor. - The scaling factor of 100 means "normal size". - - - - Sets text leading. - - The leading value. - - - - Sets the text rendering mode. - - The rendering mode. - - - - Sets text rise. - - The text rise value. - - - - Sets the text scaling. - - The text scaling. - - - - Starts the next line. - - - - - Starts the next line. - - The start point of the line. - - - - Shifts the text to the point. - - The x coordinate. - The y coordinate. - - - - Sets the start of the next line and set leading. - - The point. - - - - Sets the start of the next line and set leading. - - The x. - The y. - - - - Shows the text. - - The text. - if set to true the text is in hex. - - - - Shows the text. - - The text. - if set to true the text should be in hex. - - - - Shows the text. - - The text. - - - - Flushes tokens to the stream. - - String tokens. - - - - Shows the next line text. - - The text. - if set to true the text should be in hex. - - - - Shows the next line text. - - The text. - if set to true the text should be in hex. - - - - Shows the next line text. - - The text. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - if set to true the text should be in hex. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - if set to true the text should be in hex. - - - - Shows the text on the next line and sets word and character spacings. - - The word spacing. - The char spacing. - The text. - - - - Shows the text. - - The formatting. - - - - Begins text. - - - - - Writes tags. - - - - - - Ends text. - - - - - Begins start markup sequence text. - - The name of the markup sequence. - - - - Begins start markup sequence text. - - The name of the markup sequence. - - - - Ends markup sequence text. - - - - - Writes comment to the file. - - - - - - Begins the path. - - The start point. - - - - Begins the path. - - The x. - The y. - - - - Appends bezier segment. - - - - - Appends bezier segment. - - The x1. - The y1. - The x2. - The y2. - The x3. - The y3. - - - - Appends the bezier segment. - - The p2. - The p3. - if set to true p2 is used as p1. - - - - Appends the bezier segment. - - The x2. - The y2. - The x3. - The y3. - if set to true - x2 is used as x1 and y2 is used as y1. - - - - Appends a line segment. - - The point. - - - - Appends a line segment. - - The x. - The y. - - - - Appends the rectangle. - - The rectangle. - - - - Appends the rectangle. - - The x. - The y. - The width. - The height. - - - - Closes path object. - - - - - Closes the sub path. - - - - - Fills path. - - if set to true use even-odd rule. - - - - Strokes path. - - - - - Fills and strokes path. - - if set to true use even-odd rule. - - - - Closes and strokes the path. - - - - - Closes, then fills and strokes the path. - - if set to true use even odd rule. - - - - Closes and fills the path. - - if set to true [use even odd rule]. - - - - Clips the path. - - if set to true use even odd rule. - - - - Ends the path. - - - - - Saves the graphics state. - - - - - Restores the graphics state. - - - - - Modifies current transformation matrix. - - Matrix to be inserted. - - - - Sets the width of the line. - - The width. - - - - Sets the line cap. - - The line cap style. - - - - Sets the line join. - - The line join style. - - - - Sets the miter limit. - - The miter limit. - - - - Sets the line dash pattern. - - The pattern. - The pattern offset. - - - - Sets the line dash pattern. - - The pattern. - The pattern offset. - - - - Sets the color rendering intent. - - The intent value. - - - - Sets the flatness tolerance. - - The tolerance value. - - - - Sets the graphics state. - - Name of the graphics state dictionary. - - - - Sets the graphics state. - - Name of the graphics state dictionary. - - - - Sets the color space. - - The name of the colour space. - if set to true - the space is set for stroking operations. - - - - Sets the color space. - - The name of the colour space. - if set to true - the space is set for stroking operations. - - - - Sets the color and color space. - - The color. - The color space. - if set to true - the colour is set for stroking operations. - - - - Sets the color and color space. - - - - - - - - - Sets the color and space. - - The color. - The color space. - if it is for stroking, set to true. - if it is check, set to true. - if it is iccbased, set to true. - - - - Sets the color and space. - - The color. - The color space. - if it is for for stroking, set to true. - if it is to check, set to true. - if it is iccbased, set to true. - if it is indexed, set to true. - - - - Sets the color. - - The color. - The current space. - if set to true - the colour is set for stroking operations. - - - - Sets the colour with pattern. - - The colour array. - The name of the pattern. - if set to true the colours and pattern - are set for stroking operations. - - - - Executes the XObject. - - The name of the XObject. - - - - Executes the XObject. - - The name of the XObject. - - - - Gets the stream. - - The internal PdfStream object. - - - - Clears a stream. - - - - - Writes the point. - - The point. - - - - Writes the point. - - The x. - The y. - - - - Writes the text. - - The text. - - - - Writes the text. - - The text. - if set to true the text is in hex. - - - - Writes the text. - - The text. - if set to true the text is in hex. - - - - Writes the text. - - The text. - - - - Writes the operator. - - The operator code. - - - - Checks the text param. - - The text. - - - - Checks the text param. - - The text. - - - - Checks the text param. - - The text. - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets or sets the current position within the stream. - - - - - Gets stream length. - - - - - - Initializes a new instance of the class. - - The stream. - - - - Performs application-defined tasks associated with freeing, - releasing, or resetting unmanaged resources. - - - - - Closes this instance. - - - - - Writes the specified PDF object. - - The PDF object. - - - - Writes the specified number. - - The number. - - - - Writes the specified number. - - The number. - - - - Writes the specified text. - - The text. - - - - Writes the specified text. - - The text. - - - - Writes the specified data. - - The data. - - - - Gets the stream. - - The stream. - - - - Gets the stream. - - - - - Gets or Sets the document required for saving process. - - - - - Gets or sets the current position within the stream. - - - - - Gets stream length. - - - - - Dictionary of the objects names. - - - - - Dictionary of the properties names. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The base dictionary. - - - - Generates name for the object and adds to the resource if the object is new. Otherwise - returns object's name in the context of the resources. - - Object contained by a resource. - Returns object's name in the context of the resources. - - - - Gets resource names to font dictionaries. - - The names to font dictionaries. - - - - Requires the proc set. - - Name of the proc set. - - - - Generates Unique string name. - - - - - - Adds object to the resources. - - Object to be added to resources. - Name of the object. - - - - Adds the font to the "Fonts" sub dictionary. - - The font to add. - The name. - - - - Adds the Layer Properties to the "Properties" dictionary. - - The layer properties to add. - The reference. - - - - Adds the template to the "XObject" sub dictionary. - - The template to add. - The name. - - - - Adds the image to the "XObject" sub dictionary. - - The image to add. - The name. - - - - Adds the specified brush to the resources. - - The brush. - The name of the brush. - - - - Adds the specified transparancy to the resources. - - The transparancy. - The name of the brush. - - - - Adds the specified ColorSpaces to the resources. - - - - - - - Adds the specified Dictionary to the resources. - - - - - - - Gets the font names. - - - - - Get or set the type1 font name other than PdfStandardFonts,inorder to refer exact font from page's font resource - - - - - Get or set the page document. - - - - - Enumerator that represents the PDF page orientations. - - - Default value is Portrait. - To know more about document settings refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set the page size. - document.PageSettings.Size = PdfPageSize.A4; - //Change the page orientation to landscape. - document.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set the page size.' - document.PageSettings.Size = PdfPageSize.A4 - 'Change the page orientation to landscape. - document.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Portrait orientation. - - - - - Landscape orientation. - - - - - The number of degrees by which the page should be rotated clockwise when displayed or printed. - - - To know more details about document settings refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Set rotation angle. - document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90; - //Add a page to the document. - PdfPage page = document.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document to disk. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Set rotation angle. - document.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle90 - 'Add a page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document to disk. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - The page is rotated as 0 angle. - - - - - The page is rotated as 90 angle. - - - - - The page is rotated as 180 angle. - - - - - The page is rotated as 270 angle. - - - - - Specifies numbering style of page labels. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Create new true type font. - PdfTrueTypeFont font = new PdfTrueTypeFont(new Font("Times New Roman", 12f)); - //Create new solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.Green); - //Create new section. - PdfSection sec = document.Sections.Add(); - //Declare new page. - PdfPage page; - //Creates page number field. - PdfDestinationPageNumberField dest = new PdfDestinationPageNumberField(); - //Add pages to the section. - page = sec.Pages.Add(); - //Set page for pagenumber field. - dest.Page = page; - //Set Number style. - dest.NumberStyle = PdfNumberStyle.LowerRoman; - //Set font for pagenumber field. - dest.Font = font; - //Set brush for pagenumber field. - dest.Brush = brush; - //Set size for the page number field. - dest.Size = new SizeF(50, 20); - //Draws the page number on page. - dest.Draw(page.Graphics); - //Save the document. - document.Save("NumberStyle.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Create new true type font. - Dim font As PdfTrueTypeFont = New PdfTrueTypeFont(New Font("Times New Roman", 12.0F)) - 'Create new solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Green) - 'Create new section. - Dim sec As PdfSection = document.Sections.Add() - 'Declare new page. - Dim page As PdfPage - 'Creates page number field. - Dim dest As PdfDestinationPageNumberField = New PdfDestinationPageNumberField() - 'Add pages to the section. - page = sec.Pages.Add() - 'Set page for pagenumber field. - dest.Page = page - 'Set Number style. - dest.NumberStyle = PdfNumberStyle.LowerRoman - 'Set font for pagenumber field. - dest.Font = font - 'Set brush for pagenumber field. - dest.Brush = brush - 'Set size for the page number field. - dest.Size = New SizeF(50, 20) - 'Draws the page number on page. - dest.Draw(page.Graphics) - 'Save document to disk. - document.Save("NumberStyle.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - Class - - - - No numbering at all. - - - - - Decimal arabic numerals. - - - - - Lowercase letters a-z. - - - - - Lowercase roman numerals. - - - - - Uppercase letters A-Z. - - - - - Uppercase roman numerals. - - - - - Specifies the docking style of the page template. - - - This enumeration is used in class. - To know more details about refer this - link. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Create a page - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Create a page template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - //set the dock style - footer.Dock = PdfDockStyle.Right; - //Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Right = footer; - //Save the document - doc.Save("Template.pdf"); - //Close the document - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As New PdfPageTemplateElement(rect) - 'set the dock style - footer.Dock = PdfDockStyle.Right - 'Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As New PdfPageCountField(font, brush) - Dim compositeField As New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Right = footer - 'Save the document - doc.Save("Template.pdf") - 'Close the document - doc.Close(True) - - - Class - Class - Class - Class - Class - Class - Class - Class - - - - The page template is not docked. - - - - - The page template edge is docked to the bottom page's side. - - - - - The page template edge is docked to the top page's side. - - - - - The page template edge is docked to the left page's side. - - - - - The page template edge is docked to the right page's side. - - - - - The page template stretch on full page. - - - - - Specifies how the page template is aligned relative to the template area. - - - - //Create a PDF document - PdfDocument doc = new PdfDocument(); - //Create a page - PdfPage page = doc.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height); - //Create a page template - PdfPageTemplateElement footer = new PdfPageTemplateElement(rect); - //set the dock style - footer.Dock = PdfDockStyle.Right; - //Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight; - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - PdfSolidBrush brush = new PdfSolidBrush(Color.Gray); - //Create page number field - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field - PdfPageCountField count = new PdfPageCountField(font, brush); - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - compositeField.Draw(footer.Graphics, new PointF(40, footer.Height - 50)); - //Add the footer template at the bottom - doc.Template.Right = footer; - doc.Save("Template.pdf"); - doc.Close(true); - - - 'Create a PDF document - Dim doc As New PdfDocument() - 'Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim rect As New RectangleF(0, 0, page.GetClientSize().Width, page.GetClientSize().Height) - 'Create a page template - Dim footer As New PdfPageTemplateElement(rect) - 'set the dock style - footer.Dock = PdfDockStyle.Right - 'Set the template alignment as top right - footer.Alignment = PdfAlignmentStyle.TopRight - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - Dim brush As New PdfSolidBrush(Color.Gray) - 'Create page number field - Dim pageNumber As New PdfPageNumberField(font, brush) - 'Create page count field - Dim count As New PdfPageCountField(font, brush) - Dim compositeField As New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - compositeField.Draw(footer.Graphics, New PointF(40, footer.Height - 50)) - 'Add the footer template at the bottom - doc.Template.Right = footer - doc.Save("Template.pdf") - doc.Close(True) - - - This enumeration is used in class. - Class - Class - Class - Class - Class - Class - Class - Class - - - - Specifies no alignment. - - - - - The template is top left aligned. - - - - - The template is top center aligned. - - - - - The template is top right aligned. - - - - - The template is middle left aligned. - - - - - The template is middle center aligned. - - - - - The template is middle right aligned. - - - - - The template is bottom left aligned. - - - - - The template is bottom center aligned. - - - - - The template is bottom right aligned. - - - - - A name object specifying the page layout to be used when the - document is opened. - - - - //Source document. - PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument document = new PdfDocument(); - //Appending the document with source document. - document.Append(lDoc); - //Set page layout. - document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight; - //Save the document. - document.Save("Output.pdf"); - //Close the documents. - document.Close(true); - lDoc.Close(true); - - - 'Source document. - Dim lDoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Appending the document with source document. - document.Append(lDoc) - 'Set page layout. - document.ViewerPreferences.PageLayout = PdfPageLayout.TwoColumnRight - 'Save the document. - document.Save("Output.pdf") - 'Close the documents. - document.Close(True) - lDoc.Close(True) - - - Class - Class - Class - Class - - - - Default Value. Display one page at a time. - - - - - Display the pages in one column. - - - - - Display the pages in two columns, with odd numbered - pages on the left. - - - - - Display the pages in two columns, with odd numbered - pages on the right. - - - - - Display the pages two at a time, with odd-numbered pages on the left - - - - - Display the pages two at a time, with odd-numbered pages on the right - - - - - Represents mode of document displaying. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set page mode. - document.ViewerPreferences.PageMode = PdfPageMode.UseOC; - //Add a page in the PDF document. - PdfPage page = document.Pages.Add(); - //Create the PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - //Save the document. - document.Save("Output.pdf"); - //Close the documents. - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page mode. - document.ViewerPreferences.PageMode = PdfPageMode.UseOC - 'Add a page in the PDF document. - Dim page As PdfPage = document.Pages.Add() - 'Create the PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12.0F, PdfFontStyle.Bold) - 'Draw the text in PDF page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - 'Save the document. - document.Save("Output.pdf") - 'Close the documents. - document.Close(True) - - - Class - Class - Class - Class - - - - Default value. Neither document outline nor thumbnail images visible. - - - - - Document outline visible. - - - - - Thumbnail images visible. - - - - - Full-screen mode, with no menu bar, window - controls, or any other window visible. - - - - - Optional content group panel visible. - - - - - Attachments are visible. - - - - - TemplateArea can be header/footer on of the following types. - - - - - Page template is not used as header. - - - - - Page template is used as Top. - - - - - Page template is used as Bottom. - - - - - Page template is used as Left. - - - - - Page template is used as Right. - - - - - - Two lines sweep across the screen, revealing the new page. The lines may be either - horizontal or vertical and may move inward from the edges of the page or outward - from the center. - - - - - Multiple lines, evenly spaced across the screen, synchronously sweep in the same - direction to reveal the new page. The lines may be either horizontal or vertical. - Horizontal lines move downward; vertical lines move to the right. - - - - - A rectangular box sweeps inward from the edges of the page or outward from the center, - revealing the new page. - - - - - A single line sweeps across the screen from one edge to the other, revealing the new page. - - - - - The old page dissolves gradually to reveal the new one. - - - - - Similar to Dissolve, except that the effect sweeps across the page in a wide band moving from - one side of the screen to the other. - - - - - The new page simply replaces the old one with no special transition effect. - - - - - Changes are flown out or in, to or from a location that is offscreen. - - - - - The old page slides off the screen while the new page slides in, pushing the old page out. - - - - - The new page slides on to the screen, covering the old page. - - - - - The old page slides off the screen, uncovering the new page. - - - - - The new page gradually becomes visible through the old one. - - - - - Enumeration of transition dimensions. - - - - - Horizontal effect. - - - - - Vertical effect. - - - - - Enumeration of transition motions. - - - - - Inward motion from the edges of the page to center.. - - - - - Outward motion from the center of the page to edges. - - - - - Enumeration of transition directions. - - - - - Left to Right direction. - - - - - Bottom to Top direction. - - - - - Right to Left direction. - - - - - Top to Bottom direction. - - - - - TopLeft to BottomRight direction. - - - - - Used to represent the print state of . - - - - - The visble PDF page layers get print - - - - - The PDF page layer never get print - - - - - The PDF pageLayers always get print - - - - - Specifies tab order types for form fields - - Default value is None. - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create a new page. - PdfPage page = document.Pages.Add(); - //Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual; - //Create new text box field. - PdfTextBoxField field = new PdfTextBoxField(page, "Hello"); - //Set field tab index as 3. - field.TabIndex = 3; - //Set field bounds. - field.Bounds = new RectangleF(0, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field1 = new PdfTextBoxField(page, "Hello1"); - //Set field tab index as 2. - field.TabIndex = 2; - //Set field bounds. - field1.Bounds = new RectangleF(200, 0, 100, 30); - //Create new text box field. - PdfTextBoxField field2 = new PdfTextBoxField(page, "Hello2"); - //Set field tab index as 1. - field.TabIndex = 1; - //Set field bounds. - field2.Bounds = new RectangleF(0, 50, 100, 30); - //Create new text box field. - PdfTextBoxField field3 = new PdfTextBoxField(page, "Hello3"); - //Set field tab index as 0. - field.TabIndex = 0; - //Set field bounds. - field3.Bounds = new RectangleF(200, 50, 100, 30); - //Adds the form field to the document. - document.Form.Fields.Add(field); - document.Form.Fields.Add(field1); - document.Form.Fields.Add(field2); - document.Form.Fields.Add(field3); - //Save the pdf document. - document.Save("TabOrder.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page. - Dim page As PdfPage = document.Pages.Add() - 'Set form fields tab order. - page.FormFieldsTabOrder = PdfFormFieldsTabOrder.Manual - 'Create new text box field. - Dim field As PdfTextBoxField = New PdfTextBoxField(page, "Hello") - 'Set field tab index as 3. - field.TabIndex = 3 - 'Set field bounds. - field.Bounds = New RectangleF(0, 0, 100, 30) - 'Create new text box field. - Dim field1 As PdfTextBoxField = New PdfTextBoxField(page, "Hello1") - 'Set field tab index as 2. - field.TabIndex = 2 - 'Set field bounds. - field1.Bounds = New RectangleF(200, 0, 100, 30) - 'Create new text box field. - Dim field2 As PdfTextBoxField = New PdfTextBoxField(page, "Hello2") - 'Set field tab index as 1. - field.TabIndex = 1 - 'Set field bounds. - field2.Bounds = New RectangleF(0, 50, 100, 30) - 'Create new text box field. - Dim field3 As PdfTextBoxField = New PdfTextBoxField(page, "Hello3") - 'Set field tab index as 0. - field.TabIndex = 0 - 'Set field bounds. - field3.Bounds = New RectangleF(200, 50, 100, 30) - 'Adds the form field to the document. - document.Form.Fields.Add(field) - document.Form.Fields.Add(field1) - document.Form.Fields.Add(field2) - document.Form.Fields.Add(field3) - 'Save document to disk. - document.Save("TabOrder.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Namespace - - - - Form fields are visited default order - - - - - Form fields are visited rows running horizontally across the page - - - - - Form fields are visited column running vertically up and down the page - - - - - Form fields are visited based on the structure tree - - - - - Form fields are visited manual order - - - - - Represents information about various predefined page sizes. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set page page for document. - document.PageSettings.Size = PdfPageSize.A4; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set page page for document. - document.PageSettings.Size = PdfPageSize.A4 - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - - - Letter format. - - - - - - - Note format. - - - - - - - Legal format. - - - - - - - A0 format. - - - - - - - A1 format. - - - - - - - A2 format. - - - - - - - A3 format. - - - - - - - A4 format. - - - - - - - A5 format. - - - - - - - A6 format. - - - - - - - A7 format. - - - - - - - A8 format. - - - - - - - A9 format. - - - - - - - A10 format. - - - - - - - B0 format. - - - - - - - B1 format. - - - - - - - B2 format. - - - - - - - B3 format. - - - - - - - B4 format. - - - - - - - B5 format. - - - - - - - ArchE format. - - - - - - - ArchD format. - - - - - - - ArchC format. - - - - - - - ArchB format. - - - - - - - ArchA format. - - - - - - - The American Foolscap format. - - - - - - - HalfLetter format. - - - - - - - 11x17 format. - - - - - - - Ledger format. - - - - - - - Private constructor. - - - - - Represents a page loaded from a PDF document. - - - - //Load the document - PdfLoadedDocument lDoc = new PdfLoadedDocument("input.pdf"); - //get the first page from the document - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document - lDoc.Save("output.pdf"); - lDoc.Close(true); - - - 'Load the document - Dim lDoc As New PdfLoadedDocument("input.pdf") - 'get the first page from the document - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collection - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document - lDoc.Save("output.pdf") - lDoc.Close(True) - - - - - - Dictionaries of terminal annotation. - - - - - Collection of annotations. - - - - - Holds the reference numbers of the widget annotations - - - - - Internal variable to store array of annotation reference - - - - - Gets the resources and modifies the page dictionary. - - Pdf resources. - - - - Initializes a new instance of the class. - - The document. - The cross-reference table. - The page's dictionary. - - - - Retrieves the terminal annotations. - - - - - Check whether annotation is form field or not. - - The annotation need to be check - Returns true if the annotation is used by Acroform field, otherwise false. - - - - Gets the documents widget reference collection - - - - - - Removes field and kids annotation from dictionaries. - - The field. - - - - Removes all the reference for particular object - - The annotation need to be removed - - - - Raises event. - - Event arguments. - - - - Raises when page dictionary is going to be saved. - - Sender of the event. - Event arguments. - - - - Raises after the page dictionary was saved. - - Sender of the event. - The - instance containing the event data. - - - - Extract the font which are used in a given page. - - returns the extracted fonts as a PdfFont[]. - - - - Clears PdfLoadedPage. - - - - - Gets the text size of a specified font. - - Font key - Returns the text size of the specified font - - - - Gets the content size of the specified font. - - Font Key - Content stream - Font height - - - - Reading Font Name from Dictionary. - - - - - - - - Create metrics for embed font - - - - - - - Gets the font style. - - The font family string. - The style of pdf font. - - - - Gets the font family. - - The font family string. - The font family. - - - - Gets the key value for a given font - - PdfFont value. - Returns the key value. - - - - Gets or Sets the collection of the page's annotations. - - - The that represents the page's annotations - - - - //Load the document. - PdfLoadedDocument lDoc = new PdfLoadedDocument("inputAnnotation.pdf"); - //get the first page from the document. - PdfLoadedPage page = lDoc.Pages[0] as PdfLoadedPage; - //Get the annotation collection. - PdfLoadedAnnotationCollection annotations = page.Annotations; - //Save the document. - lDoc.Save("sample.pdf"); - lDoc.Close(true); - - - 'Load the document. - Dim lDoc As New PdfLoadedDocument("inputAnnotation.pdf") - 'Get the first page from the document. - Dim page As PdfLoadedPage = TryCast(lDoc.Pages(0), PdfLoadedPage) - 'Get the annotation collections. - Dim annotations As PdfLoadedAnnotationCollection = page.Annotations - 'Save the document. - lDoc.Save("sample.pdf") - lDoc.Close(True) - - - Class - Class - - - - Gets the size of the page (Read only). - - /// - The SizeF that represents the size of the page - - - - - Gets the visible region of the page (Read only). - - - The RectangleF that represents the crop box of the page - - - Crop box is only read only, we cann't set value for loaded page crop box value. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page crop box value. - RectangleF rect = lpage.CropBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page crop box value. - Dim rect As RectangleF = lpage.CropBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets page region after clipping (Read only). - - - The RectangleF that represents the bleed box of a page - - - Bleed box is only read only, we cann't set value for loaded page bleed box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page bleed box value. - RectangleF rect = lpage.BleedBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page bleed box value. - Dim rect As RectangleF = lpage.BleedBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Returns page region after trimming (Read only). - - - The RectangleF that represents the trim box of a page - - - Trim box is only read only, we cann't set value for loaded page trim box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page trim box value. - RectangleF rect = lpage.TrimBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page trim box value. - Dim rect As RectangleF = lpage.TrimBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets page region containing meaningful content (Read only). - - - The RectangleF that represents the art box of the page - - - Art box is only read only, we cann't set value for loaded page art box. - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page art box value. - RectangleF rect = lpage.ArtBox; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page art box value. - Dim rect As RectangleF = lpage.ArtBox - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets the base document (Read only). - - - The , which is base class of PdfLoadedDocument - - - - //Load an existing document. - PdfLoadedDocument document = new PdfLoadedDocument("input.pdf"); - //Get first page of loaded document. - PdfLoadedPage lpage = document.Pages[0] as PdfLoadedPage; - //Get loaded page base document. - PdfLoadedDocument basedoc = lpage.Document as PdfLoadedDocument; - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Load an existing document. - Dim document As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Get first page of loaded document. - Dim lpage As PdfLoadedPage = TryCast(document.Pages(0), PdfLoadedPage) - 'Get loaded page base document. - Dim basedoc As PdfLoadedDocument = TryCast(lpage.Document, PdfLoadedDocument) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Gets the cross table. - - - - - Gets or sets the terminal fields. - - - - - Gets the origin coordinate of the loaded page - - - - - Gets or sets the array of annotation reference - - - - - Raises before the page saves. - - - - Provides methods and properties to create PDF pages and its elements, PdfPage class inherited from the PdfPageBase class - - The following example shows the several properties and methods of PdfPage class - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Get annotation collection - PdfAnnotationCollection annotation = page.Annotations; - //Get Graphics - PdfGraphics graphics = page.Graphics; - //Get page Layers - PdfPageLayerCollection layers = page.Layers; - //Get actual page size - SizeF clientSize = page.GetClientSize(); - //Insert page in the document - document.Pages.Insert(0, page); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Get annotation collection - Dim annotation As PdfAnnotationCollection = page.Annotations - 'Get Graphics - Dim graphics As PdfGraphics = page.Graphics - 'Get page Layers - Dim layers As PdfPageLayerCollection = page.Layers - 'Get actual page size - Dim clientSize As SizeF = page.GetClientSize() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - Class - Class - - - Initializes a new instance of the PdfPage class. - - The following code example demonstrates how to construct a PdfPage - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - Get the PDF page size reduced by page margins and page template dimensions. - - - It's the actual size of the page where some output can be performed. - - - Type: System.Drawing.SizeF - The actual page size reduced by page margins and page template dimensions - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get size of the page - SizeF size = page.GetClientSize(); - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get size of the page - Dim size As SizeF = page.GetClientSize() - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Raises event. - - Event arguments. - - - - Clears PdfPage. - - - - - Sets parent section to the page. - - The parent section. - - - - Sets the progress. - - - - - Resets the progress. - - - - - Initializes a page. - - - - - Draws page templates. - - Parent document. - - - - Removes template layers from the page layers. - - Parent document. - - - - Raises when page dictionary is going to be saved. - - Sender of the event. - Event arguments. - - - - Raises after the page dictionary was saved. - - Sender of the event. - The - instance containing the event data. - - - - Gets the section of a page- Read only - - - The PdfSection. - - Page must be added to some section before using. - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get Section of a page - PdfSection section = page.Section; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get Section of a page - Dim section As PdfSection = page.Section - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - Class - - - - Gets size of the PDF page- Read only - - - A SizeF that represents the size of the page - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get size of a page - SizeF size = page.Size; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get size of a page - Dim size As SizeF = page.Size - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - Class - - - - Gets the origin of the page - - - - - Gets a collection of the annotations of the page- Read only. - - - A PdfAnnotationCollection that represents the annotations of the page. - - - - //Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a page - PdfPage page = new PdfPage(); - //Insert page in the document - document.Pages.Insert(0, page); - //Get annotation collection - PdfAnnotationCollection annotation = page.Annotations; - //Save and close the PDF document - document.Save("output.Pdf"); - document.Close(true); - - - 'Create a PDF document - Dim document As New PdfDocument() - 'Create a page - Dim page As New PdfPage() - 'Insert page in the document - document.Pages.Insert(0, page) - 'Get annotation collection - Dim annotation As PdfAnnotationCollection = page.Annotations - 'Save and close the PDF document - document.Save("output.Pdf") - document.Close(True) - - - - - - Gets current document. - - The pdf document. - - - - Raises before the page saves. - - - - - Implements a virtual collection of all pages in the document. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - int newCount = 0; - //Parse through pages from page collection. - foreach (PdfPageBase page in docPages) - { - newCount++; - } - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages from new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - Dim newCount As Integer = 0 - 'Parse through pages from page collection. - For Each page As PdfPageBase In docPages - newCount += 1 - Next - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Parent document. - - - - - It holds the page collection with the index - - - - - It counts the index of the page - - - - - Initializes a new instance of the class. - - The document. - - - - Creates a page and adds it to the last section in the document. - - Created object. - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Add new page in the document. - docPages.Add(); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Add new page in the document. - docPages.Add() - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Adds the specified page to the last section. - - The page.i - - - - Inserts a page at the specified index to the last section in the document. - - The index of the page in the section. - The . - - Page index start from 0 to (TotalPageCount - 1). - Selected index must be within 0 to (TotalPageCount - 1) range. - - - - //Create new a document. - PdfDocument document = new PdfDocument(); - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - //Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = document.Pages; - //Insert page to the specified index. - docPages.Insert(1, new PdfPage()); - docPages.Insert(10, new PdfPage()); - //Save and Close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new a document. - Dim document As PdfDocument = New PdfDocument() - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = document.Pages - 'Insert page to the specified index. - docPages.Insert(1, New PdfPage()) - docPages.Insert(10, New PdfPage()) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - Inserts a loaded page in the new PDF document at specified index. - - The index at which the page to be inserted - The page to be inserted - - Page index start from 0 to (TotalPageCount - 1). - Selected index must be within 0 to (TotalPageCount - 1) range. - - - - //Create new a document. - PdfDocument document = new PdfDocument(); - //Load an existing document. - PdfLoadedDocument doc = new PdfLoadedDocument("Input.pdf"); - //Get first page from source document. - PdfLoadedPage lpage = doc.Pages[0] as PdfLoadedPage; - //Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = document.Pages; - //Insert page to the specified index. - docPages.Insert(1, lpage); - //Save and Close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new a document. - Dim document As PdfDocument = New PdfDocument() - 'Load an existing document. - Dim doc As PdfLoadedDocument = New PdfLoadedDocument("Input.pdf") - 'Get first page from source document. - Dim lpage As PdfLoadedPage = TryCast(doc.Pages(0), PdfLoadedPage) - 'Importing pages from source document. - document.ImportPageRange(doc, 0, doc.Pages.Count - 1) - 'Insert page to the specified index. - document.Pages.Insert(1, lpage) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - - - - - Removes the specified page. - - The page. - - - - - Clears the page collection. - - - - - Counts the pages. - - The total number of pages. - - - - Searches a page by its index in the document. - - Zero-based index of the page. - Page by its index in the document. - - - - Adds a loaded page to the last section in the document. - - The loaded page. - - - - Returns last section in the document. - - Returns last section in the document. - - - - Called when new page has been added - - Event arguments. - - - - Adds a cloned page from a loaded document. - - The loaded document. - The page. - The destinations. - - - - - Determines whether the page fit last section. - - The page. - - true if the page fit last section; otherwise, false. - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Gets the total number of the pages. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Get total page count. - int newCount = docPages.Count; - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Get total page count. - Dim newCount As Integer = docPages.Count - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Gets a page by its index in the document. - - - - //Load an existing document. - PdfLoadedDocument ldoc = new PdfLoadedDocument("input.pdf"); - //Create a new document. - PdfDocument doc = new PdfDocument(); - int startIndex = 0; - int endIndex = ldoc.Pages.Count - 1; - //Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex); - //Get all the pages fron new document. - PdfDocumentPageCollection docPages = doc.Pages; - //Gets a page by its index in the document. - PdfPage page = docPages[0] as PdfPage; - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - ldoc.Close(true); - - - 'Load an existing document. - Dim ldoc As PdfLoadedDocument = New PdfLoadedDocument("input.pdf") - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - Dim startIndex As Integer = 0 - Dim endIndex As Integer = ldoc.Pages.Count - 1 - 'Importing pages from source document. - doc.ImportPageRange(ldoc, startIndex, endIndex) - 'Get all the pages fron new document. - Dim docPages As PdfDocumentPageCollection = doc.Pages - 'Gets a page by its index in the document. - Dim page As PdfPage = TryCast(docPages(0), PdfPage) - 'Save and close the document. - doc.Save("Output.pdf") - doc.Close(True) - ldoc.Close(True) - - - Class - Class - - - - Gets a page index from the document. - - - - - Represents the method that executes on a PdfDocument when a new page is created. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the event - document.Pages.PageAdded += new PageAddedEventHandler(Pages_PageAdded); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Create font with Bold font style. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 12f, PdfFontStyle.Bold); - //Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, new PointF(10, 10)); - page = document.Pages.Add(); - //Saves the document - document.Save("Sample.pdf"); - document.Close(true); - //Event handler for PageAdded event - void Pages_PageAdded(object sender, PageAddedEventArgs args) - { - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 10); - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, new PointF(100, 100)); - } - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the event - document.Pages.PageAdded += New PageAddedEventHandler(Pages_PageAdded) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Create font with Bold font style. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 12F, PdfFontStyle.Bold) - 'Draw text in the new page. - page.Graphics.DrawString("Essential PDF", font, PdfBrushes.Black, New PointF(10, 10)) - page = document.Pages.Add() - 'Saves the document - document.Save("Sample.pdf") - document.Close(True) - 'Event handler for PageAdded event - Private Sub Pages_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 10) - args.Page.Graphics.DrawString("New Page", font, PdfBrushes.Black, New PointF(100, 100)) - End Sub - - - Class - Class - - - - Section collection enumerator. - - - - - Parent page collection. - - - - - Current index of the enumerator. - - - - - Initializes a new instance of the class. - - The section collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The used to create layers in PDF document. - Layers refers to sections of content in a PDF document that can be selectively viewed or hidden by document authors or consumers - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Parent page of the layer. - - - - - Graphics context of the layer. - - - - - Content of the object. - - - - - Graphics state of the Graphics. - - - - - Indicates whether the layer should clip page template dimensions or not. - - - - - Indicates if the graphics stream was saved. - - - - - Local Variable to store the colorspace of the document. - - - - - Local Variable to store the layer id - - - - - Local Variable to store the name - - - - - Local Variable to set visiblity - - - - - Collection of the layers of the page. - - - - - Indicates if Sublayer is present. - - - - - Local variable to store length of the graphics. - - - - - Stores the print Option dictionary - - - - - Stores the usage dictionary - - - - - Indicates printing state - - - - - Indicates the current layer have end state or not. - - - - - Internal variable to store dictionary. - - - - - Internal variable to store reference holder. - - - - - Adds a new PDF Page layer. - - The - - - - Initializes a new instance of the class with specified PDF page. - - The ,parent page of the layer. - - - - Initializes a new instance of the class. - - The page. - The stream. - - - - Creates a new layer. - - Parent page of the layer. - Indicates whether the layer should clip page template dimensions or not. - - - - Initializes Graphics context of the layer. - - The page. - - - - Clears PdfPageLayer. - - - - - set visibilty of layer - - layer visibility - - - - Catches BeforeSave of the content event. - - Sender of the event. - event arguments. - - - - Gets the Reference holder. - - The reference holder. - - - - Gets the dictionary. - - The dictionary. - - - - Get or set the Colorspace. - - - - - Gets parent page of the layer. - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the name of the layer - - - - - Gets Graphics context of the layer, used to draw various graphical content on layer. - - The used to draw various graphical content - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Gets and sets printing state of the PDF page layer - - - - - Gets the collection of , this collection handle by the class - - The used to handle collection of - - - - Gets the wrapped element. - - - - - The class provides methods and properties to handle the collections of - - - - //Create PDF document. - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - //Add the first layer. - PdfPageLayer layer = page.Layers.Add("Layer1"); - PdfGraphics graphics = layer.Graphics; - graphics.TranslateTransform(100, 60); - //Draw arc. - PdfPen pen = new PdfPen(System.Drawing.Color.Red, 50); - RectangleF bounds = new RectangleF(0, 0, 50, 50); - graphics.DrawArc(pen, bounds, 360, 360); - //Add another layer on the page. - PdfPageLayer layer2 = page.Layers.Add("Layer2"); - graphics = layer2.Graphics; - graphics.TranslateTransform(100, 180); - //Draw ellipse. - graphics.DrawEllipse(pen, bounds); - //Save the document. - document.Save("Sample.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document. - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - 'Add the first layer. - Dim layer As PdfPageLayer = page.Layers.Add("Layer1") - Dim graphics As PdfGraphics = layer.Graphics - graphics.TranslateTransform(100, 60) - 'Draw arc. - Dim pen As New PdfPen(System.Drawing.Color.Red, 50) - Dim bounds As New RectangleF(0, 0, 50, 50) - graphics.DrawArc(pen, bounds, 360, 360) - 'Add another layer on the page. - Dim layer2 As PdfPageLayer = page.Layers.Add("Layer2") - graphics = layer2.Graphics - graphics.TranslateTransform(100, 180) - 'Draw ellipse. - graphics.DrawEllipse(pen, bounds) - 'Save the document. - document.Save("Sample.pdf") - 'Close the document - document.Close(True) - - - - - - Parent page. - - - - - Indicates if Sublayer is present. - - - - - Stores the number of first level layers in the document. - - - - - Stores the optional content dictionary - - - - - Stores the layer id and helps to avoid the duplicate entries. - - - - - Indicates if the loaded layers have resource dictionary. - - - - - Helps to lock Adding layers to page in multi threading - - - - - Initializes a new instance of the class - - - - - Initializes a new instance of the class with PDF page - - Parent page for the layers in the collection. - - - - Creates a new and adds it to the end of the collection. - - Created - - - - Creates a new with name and Boolean flag to set the visibility of layer, - and adds it to the end of the collection. - - Layer Name. - Layer Visibility. - Created . - - - - Creates a new with name and adds it to the end of the collection. - - Layer Name. - Created . - - - - Adds to the collection. - - The object. - The layers belonging to the same page can be added to the collection only. - - - - Creates a Optional Content Properties and adds it to Catalog. - - Layer. - - - - Creates Usage Dictionary and adds it to OCG dictionary - - - - - - - creates a pdf page layer from loaded page - - - - - - Inserts into the collection at specified index - - Index of the layer. - object. - The layers belonging to the same page can be added to the collection only. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Creates a Optional Content Groups and adds it to OC Properties. - - Layer. - primitive as pdfarray. - - - - Writes End of Marked Content in Content Stream - - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Creates Optional Content Views and adds it to OC Properties. - - Layer. - m_dictionary. - - - - Removes layer from the collection. - - object. - - - - Removes from the collection by its name. - - Name of the layer. - - - - Removes layer by its index from collections - - Index of the layer. - - - - Checks whether collection contains . - - object. - True - if collection contains layer, False otherwise. - - - - Returns index of the in the collection if exists, -1 otherwise. - - object. - Returns index of the layer in the collection if exists, -1 otherwise. - - - - Clears layers from the . - - - - - Combines the content into the specified stream. - - The stream. - - - - Registers layer at the page. - - Index of the layer in the collection. - The new layer. - - - - Removes layer from the page. - - The layer. - - - - Remove layer reference from ocg, order, on and off array - - - - - - - Remove layer reference from ocg, order, on and off array - - - - - - - Registers layer at the page. - - Index of the layer in the collection. - The new layer. - - - - Parses the layers. - - The loaded page. - - - - Gets or sets by its index from - - The layers belonging to the same page can be added to the collection only. - - - - The class provides various setting related with PDF pages - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Internal variable to store transition. - - - - - Initializes a new instance of the class. - - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings. - PdfPageSettings setting = new PdfPageSettings(); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings. - Dim setting As PdfPageSettings = New PdfPageSettings() - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size. - - The size. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page size. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300,300)); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page size. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 300)) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with page orientation. - - The . - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page orientation. - PdfPageSettings setting = new PdfPageSettings(PdfPageOrientation.Landscape); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page orientation. - Dim setting As PdfPageSettings = New PdfPageSettings(PdfPageOrientation.Landscape) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size and page orientation. - - The size. - The page orientation. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Create new instance for page settings with predefined page orientation. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape); - //Set document margin. - setting.Margins = margin; - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Create new instance for page settings with predefined page size and orientation. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape) - 'Set document margin. - setting.Margins = margin - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with margins. - - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with margin value. - PdfPageSettings setting = new PdfPageSettings(50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with left margin,top margin,right margin. - - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with left margin,top margin,right margin. - PdfPageSettings setting = new PdfPageSettings(20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with left margin,top margin,right margin. - Dim setting As PdfPageSettings = New PdfPageSettings(20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size and margins - - The size of the page. - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600),20f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), 20F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size left,top,right,bottom margins. - - The size. - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), 20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), 20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size,page orientation,margins - - The size. - The page orientation. - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size , orientation and margin value. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape, 20f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size , orientation and margin value. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape,20F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Initializes a new instance of the class with size page orientation,left,top,right,bottom margins. - - The size. - The page orientation. - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for page settings with predefined page size , orientation and left,top,right,bottom margins. - PdfPageSettings setting = new PdfPageSettings(new SizeF(300, 600), PdfPageOrientation.Landscape, 20f, 50f, 20f, 50f); - doc.PageSettings = setting; - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for page settings with predefined page size , orientation and left,top,right,bottom margins. - Dim setting As PdfPageSettings = New PdfPageSettings(New SizeF(300, 600), PdfPageOrientation.Landscape,20F, 50F, 20F, 50F) - doc.PageSettings = setting - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the margins to the page. - - The margins. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the left right and top bottom margins. - - The left right margin. - The top bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Sets the left,top,right,bottom margins. - - The left margin. - The top margin. - The right margin. - The bottom margin. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10, 10, 10); - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("Output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Set margins for pdf document. - doc.PageSettings.SetMargins(10, 10, 10, 10) - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Creates a clone of the object. - - Cloned object. - - - - Returns size, shrinked by the margins. - - Returns size, shrinked by the margins. - - - - Gets the transition. - - - - - - Update page size depending on orientation. - - Page orientation settings. - - - - Sets size to the page aaccording to the orientation. - - Size of the page. - - - - Gets or sets the page orientation. - - The , provides the orientation of the PDF page - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the size of the page. - - Default value: 595 * 842 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page size. - doc.PageSettings.Size = new SizeF(600, 600); - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page size - doc.PageSettings.Size = New SizeF(600, 600) - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the width of the page. - - Default value: 595 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page width. - doc.PageSettings.Width = 300; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page width - doc.PageSettings.Width = 300 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the height of the page. - - Default value: 842 pixels - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page size. - doc.PageSettings.Height = 300; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page size - doc.PageSettings.Height = 300 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the margins of the page. - - The , provides margins to the PDF page - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Create new instance for document margin. - PdfMargins margin = new PdfMargins(); - margin.All = 20; - //Set document margin. - doc.PageSettings.Margins = margin - //Create a new page. - PdfPage page = doc.Pages.Add(); - //Create new PDF font instance. - PdfFont font = new PdfStandardFont(PdfFontFamily.Courier, 12); - //Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, new PointF(100, 100)); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - 'Create new instance for document margin. - Dim margin As PdfMargins = New PdfMargins() - margin.All = 20 - 'Set document margin. - doc.PageSettings.Margins = margin - 'Create a new page. - Dim page As PdfPage = doc.Pages.Add() - 'Create new PDF font instance. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Courier, 12) - 'Draw the text. - page.Graphics.DrawString("Hello world", font, PdfBrushes.Blue, New PointF(100, 100)) - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the number of degrees by which the page should be rotated clockwise when displayed or printed. - - The ,provides number of degrees by which the page should be rotated clockwise when displayed or printed - Default value: RotateAngle0 - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - //Set page settings. - doc.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Set rotation angle. - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180; - //Create a new page. - PdfPage page = doc.Pages.Add(); - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document - Dim doc As New PdfDocument() - 'Set page settings - doc.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Set rotation angle - doc.PageSettings.Rotate = PdfPageRotateAngle.RotateAngle180 - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the transition, it determines how to display the page in the presentation mode - - The determines how to display the page in the presentation mode. - - - //Create a new document. - PdfDocument doc = new PdfDocument(); - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen; - //create a page transition. - PdfPageTransition transition = new PdfPageTransition(); - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight; - transition.Dimension = PdfTransitionDimension.Vertical; - transition.Motion = PdfTransitionMotion.Outward; - transition.PageDuration = 3; - //Set page transition. - doc.PageSettings.Transition = transition; - //Create a new page - PdfPage page = doc.Pages.Add(); - //Save and close the document. - doc.Save("output.pdf"); - doc.Close(true); - - - 'Create a new document. - Dim doc As PdfDocument = New PdfDocument() - doc.ViewerPreferences.PageMode = PdfPageMode.FullScreen - 'create a page transition. - Dim transition As PdfPageTransition = New PdfPageTransition() - transition.Direction = PdfTransitionDirection.TopLeftToBottomRight - transition.Dimension = PdfTransitionDimension.Vertical - transition.Motion = PdfTransitionMotion.Outward - transition.PageDuration = 3 - 'Set page transition. - doc.PageSettings.Transition = transition - Dim page As PdfPage = doc.Pages.Add() - 'Save and close the document. - doc.Save("output.pdf") - doc.Close(True) - - - Class - - - - Gets or sets the type of default user space units. - - For PDF 1.6 and later versions. - - - - Gets or sets the origin of the page - - - - - Describes a page template object that can be used as header/footer, watermark or stamp. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(bounds); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Layer type of the template. - - - - - Docking style. - - - - - Alignment style. - - - - - PdfTemplate object. - - - - - Usage type of this template. - - - - - Location of the template on the page. - - - - - Initializes a new instance of the class with specified value. - - Bounds of the template. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(bounds); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - Dim bounds As RectangleF = New RectangleF(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(bounds) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Initializes a new instance of the class with specified value and . - - The bounds. - The page. - - - - Creates a new page template. - - Location of the template. - Size of the template. - - - - Initializes a new instance of the class. - - The location. - The size. - The page. - - - - Creates new page template object. - - Size of the template. - - - - Creates a new page template. - - Width of the template. - Height of the template. - - - - Creates a new page template. - - Width of the template. - Height of the template. - The Current Page object. - - - - Creates a new page template. - - X co-ordinate of the template. - Y co-ordinate of the template. - Width of the template. - Height of the template. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - //Add a page to the PDF document. - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a header and draw the image. - PdfPageTemplateElement header = new PdfPageTemplateElement(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - PdfImage image = new PdfBitmap(@"Logo.png"); - //Draw the image in the header. - header.Graphics.DrawImage(image, new PointF(0, 0), new SizeF(100, 50)); - //Add the header at the top. - pdfDocument.Template.Top = header; - //Create a Page template that can be used as footer. - PdfPageTemplateElement footer = new PdfPageTemplateElement(0, 0, pdfDocument.Pages[0].GetClientSize().Width, 50); - //Create new instance for PDF font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 7); - //Create new brush for PDF brush. - PdfBrush brush = new PdfSolidBrush(Color.Black); - //Create page number field. - PdfPageNumberField pageNumber = new PdfPageNumberField(font, brush); - //Create page count field. - PdfPageCountField count = new PdfPageCountField(font, brush); - //Add the fields in composite fields. - PdfCompositeField compositeField = new PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count); - compositeField.Bounds = footer.Bounds; - //Draw the composite field in footer. - compositeField.Draw(footer.Graphics, new PointF(470, 40)); - //Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer; - //Save and close the document. - pdfDocument.Save("Output.pdf"); - pdfDocument.Close(true); - - - 'Create new document. - Dim pdfDocument As PdfDocument = New PdfDocument() - 'Add a page to the PDF document. - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a header and draw the image. - Dim header As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - Dim image As PdfImage = New PdfBitmap("in.png") - 'Draw the image in the header. - header.Graphics.DrawImage(image, New PointF(0, 0), New SizeF(100, 50)) - 'Add the header at the top. - pdfDocument.Template.Top = header - Dim footer As PdfPageTemplateElement = New PdfPageTemplateElement(0, 0, pdfDocument.Pages(0).GetClientSize().Width, 50) - 'Create new instance for PDF font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 7) - 'Create new instance for PDF brush. - Dim brush As PdfBrush = New PdfSolidBrush(Color.Black) - 'Create page number field. - Dim pageNumber As PdfPageNumberField = New PdfPageNumberField(font, brush) - 'Create page count field. - Dim count As PdfPageCountField = New PdfPageCountField(font, brush) - 'Add the fields in composite fields. - Dim compositeField As PdfCompositeField = New PdfCompositeField(font, brush, "Page {0} of {1}", pageNumber, count) - compositeField.Bounds = footer.Bounds - 'Draw the composite field in footer. - compositeField.Draw(footer.Graphics, New PointF(470, 40)) - 'Add the footer template at the bottom. - pdfDocument.Template.Bottom = footer - 'Save and close the document. - pdfDocument.Save("Output.pdf") - pdfDocument.Close(True) - - - Class - Class - Class - Class - Class - - - - Creates a new page template. - - X co-ordinate of the template. - Y co-ordinate of the template. - Width of the template. - Height of the template. - The Current Page object. - - - - Draws the template. - - Parent layer. - Parent document. - - - - Updates Dock property if template is used as header/footer. - - Type of the template. - - - - Resets alignment of the template. - - - - - Sets alignment of the template. - - Alignment style. - - - - Calculates bounds of the page template. - - Parent page. - Parent document. - Bounds of the page template. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the alignment. - - Parent page. - Parent document. - Bounds according to the alignment. - - - - Calculates bounds according to the docking. - - Parent page. - Parent document. - Bounds according to the docking. - - - - Calculates template bounds basing on docking if template is not page template. - - Parent page. - Parent document. - - - - Calculates template bounds basing on docking if template is a page template. - - Parent page. - Parent document. - - - - Gets or sets the dock style of the page template element. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set dock style - custom.Dock = PdfDockStyle.Right; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set dock style - custom.Dock = PdfDockStyle.Right - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets alignment of the page template element. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set alignment style - custom.Alignment = PdfAlignmentStyle.TopCenter; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set alignment style - custom.Alignment = PdfAlignmentStyle.TopCenter - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Indicates whether the page template is located in front of - the page layers or behind of it. If false, the page template will be located behind of page layer. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set margin for document. - document.PageSettings.SetMargins(25f); - //Add new page. - PdfPage page = document.Pages.Add(); - RectangleF rect = new RectangleF(0, 0, 100, 100); - //Create new instance of PDF solid brush. - PdfSolidBrush brush = new PdfSolidBrush(Color.LightBlue); - //Create new instance of PDF pen. - PdfPen pen = new PdfPen(Color.Orange, 3f); - //Create new instance for PDF page template element. - PdfPageTemplateElement custom = new PdfPageTemplateElement(rect); - document.Template.Stamps.Add(custom); - //Set alignment style - custom.Dock = PdfDockStyle.Left; - //Set foreground - custom.Foreground = false; - //Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set margin for document. - document.PageSettings.SetMargins(25.0F) - 'Add new page. - Dim page As PdfPage = document.Pages.Add() - Dim rect As RectangleF = New RectangleF(0, 0, 100, 100) - 'Create new instance of PDF solid brush. - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.LightBlue) - 'Create new instance of PDF pen. - Dim pen As PdfPen = New PdfPen(Color.Orange, 3.0F) - 'Create new instance for PDF page template element. - Dim custom As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - document.Template.Stamps.Add(custom) - 'Set dock style - custom.Dock = PdfDockStyle.Left - 'Set foreground - custom.Foreground = True - 'Draw template into pdf page. - custom.Graphics.DrawRectangle(pen, brush, rect) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Indicates whether the page template is located behind of - the page layers or in front of it. - - - - - Gets or sets location of the page template element. - - - - - Gets or sets X co-ordinate of the template element on the page. - - - - - Gets or sets Y co-ordinate of the template element on the page. - - - - - Gets or sets size of the page template element. - - - - - Gets or sets width of the page template element. - - - - - Gets or sets height of the page template element. - - - - - Gets or sets bounds of the page template element. - - - - - Gets graphics context of the page template element. - - - - - Gets Pdf template object. - - - - - Gets or sets type of the usage of this page template. - - - - - Gets or sets the tag for the element - - - - - Represents a section entity. A section it's a set of the pages with similar page settings. - - - To know more about PdfSection refer this - link. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Get the document section collection. - PdfSectionCollection sections = document.Sections; - //Add the section. - PdfSection section = sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Get the document section collection. - Dim sections As PdfSectionCollection = document.Sections - 'Add the section. - Dim section As PdfSection = sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Page settings of the pages in the section. - - - - - Page template for the section. - - - - - An instance of the class manipulating with a page label. - - - - - Indicates if the progress is turned on. - - - - - Internal variable to store initial page settings. - - - - - Internal variable to store cached saved settings. - - - - - Internal variable to store whether transition has been saved already. - - - - - A virtual collection of pages. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The page settings. - - - - Creates a new instance of PDfSection class. - - Parent document for the section. - - - - Creates a page and adds it to the collection. - - Created page. - - - - Adds the specified page. - - The page. - - - - Inserts a page at the specified index. - - The index of the page in the section. - The page. - - - - Inserts a page at the specified index. - - The index of the page in the section. - The page to be inserted. - - - - Get the index of the page. - - The page. - The index of the page. - - - - Determines whether the page in within the section. - - The page. - - true if the specified page is within the section; otherwise, false. - - - - - Removes the page from the section. - - The page that should be removed from the section. - - - - Removes the page by its index in the section. - - Zero-based index of the page in the section. - - - - Removes all the pages from the section. - - If the document contains one section only, this section should contain at least one page. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Checks whether any template should be printed on this layer. - - Parent document. - The parent page. - Layer z-order. - True - if some content should be printed on the layer, False otherwise. - - - - draws page templates on the page. - - The page. - Page layer where the templates should be drawn. - Parent document. - Foreground layer if True, False otherwise. - - - - Calculates actual bounds of the page. - - Page where the bounds should be calculated. - If true - take into consideration Margins. - Actual bounds of the page. - - - - Calculates actual bounds of the page. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Actual bounds of the page. - - - - Calculates width of the left indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Width of the left indent. - - - - Calculates Height of the top indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Height of the top indent. - - - - Calculates width of the right indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Width of the right indent. - - - - Calculates Height of the bottom indent. - - Parent document. - Page where the bounds should be calculated. - If true - take into consideration Margins. - Height of the top indent. - - - - Translates point into native coordinates of the page. - - The parent page. - Point to translate. - Point in native page coordinates. - - - - Draws an array of the templates. - - Parent layer. - PArent document. - Array of templates. - - - - Returns array of the document templates. - - Parent document. - the parent page. - If true - return headers/footers, if false - return simple templates. - If true - return foreground templates, if false - return background templates. - Returns array of the document templates. - - - - Returns array of the section templates. - - The parent page. - If true - return headers/footers, if false - return simple templates. - If true - return foreground templates, if false - return background templates. - Returns array of the document templates. - - - - Called when the page has been added - - Event arguments. - - - - Sets the progress. - - - - - Resets the progress. - - - - - Called when a page is being saved. - - The page. - - - - Checks the presence. - - The page. - - - - Infills dictionary by the data from Page settings. - - Pdf container of the data. - Parent page settings. - - - - Initializes the object. - - - - - Gets the transition settings. - - Transition settings of the section. - - - - Resets crop box to the default one. - - - - - Call two event's methods - - Added page - - - - Catches the Save event of the dictionary. - - Sender of the event. - Event arguments. - - - - End save event handler. - - The sender. - The instance containing the event data. - - - - Gets the collection of pages in a section (Read only). - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section - PdfSection section = document.Sections.Add(); - //Get the page collection from a section. - PdfSectionPageCollection pageCollection = document.Sections[0].Pages; - //Add the page - PdfPage page = pageCollection.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Get the page collection from a section. - Dim pageCollection As PdfSectionPageCollection = document.Sections(0).Pages - 'Add the page. - Dim page As PdfPage = pageCollection.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the of the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create the page label. - PdfPageLabel label = new PdfPageLabel(); - label.NumberStyle = PdfNumberStyle.LowerRoman; - label.StartNumber = 2; - section.PageLabel = label; - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create the page label. - Dim label As New PdfPageLabel() - label.NumberStyle = PdfNumberStyle.LowerRoman - label.StartNumber = 2 - section.PageLabel = label - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the of the section. - - - To know more about refer this link . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add the pages to section1. - PdfPage page1 = section1.Pages.Add(); - //Set the page settings. - section.PageSettings.Orientation = PdfPageOrientation.Landscape; - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add the pages to section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Set the page settings. - section.PageSettings.Orientation = PdfPageOrientation.Landscape - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the for the pages in the section. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create a header and draw the image. - RectangleF bounds = new RectangleF(0, 0, document.Pages[0].GetClientSize().Width, 50); - PdfSectionTemplate template = new PdfSectionTemplate(); - template.ApplyDocumentTopTemplate = true; - //Create a page template. - PdfPageTemplateElement header = new PdfPageTemplateElement(bounds); - PdfImage image = new PdfBitmap(@"Input.jpg"); - //Draw the image in the header. - header.Graphics.DrawImage(image, bounds); - template.Top = header; - //Add the header at the top of the section - section.Template = template; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create a header and draw the image. - Dim bounds As New RectangleF(0, 0, document.Pages(0).GetClientSize().Width, 50) - Dim template As New PdfSectionTemplate() - template.ApplyDocumentTopTemplate = True - 'Create a page template. - Dim header As New PdfPageTemplateElement(bounds) - Dim image As PdfImage = New PdfBitmap("Input.jpg") - 'Draw the image in the header. - header.Graphics.DrawImage(image, bounds) - template.Top = header - 'Add the header at the top of the section. - section.Template = template - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - - - - Gets the at the specified index. - - - - - Gets the count of the pages in the section. - - - - - Gets or sets the parent. - - The parent. - - - - Gets the resources. - - The resources. - - - - Gets the document. - - The document. - - - - Gets the parent document. - - - - - Event rises when the new page has been added - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Set page size. - document.PageSettings = new PdfPageSettings(new SizeF(300, 400)); - //Add the event. - section.PageAdded += new PageAddedEventHandler(sec_PageAdded); - //Add new page to section. - section.Pages.Add(); - //Add new page document. - document.Pages.Add(); - //Save and close the document. - document.Save("PageCreatedTest.pdf"); - document.Close(true); - //Event handler for PageAdded event - void sec_PageAdded(object sender, PageAddedEventArgs args) - { - PdfPage page = args.Page; - PdfSection section = (sender as PdfSection); - //Get page graphics. - PdfGraphics graphics = page.Graphics; - //Create new font instance. - PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 14f); - //Create new brush instance. - PdfSolidBrush brush = new PdfSolidBrush(Color.Blue); - string text = String.Format("Page number : {0} added to Section", section.Pages.Count); - //Draw the text. - graphics.DrawString(text, font, brush, PointF.Empty); - } - - - 'Create a new PDF document. - Dim document As PdfDocument = New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Set page size. - document.PageSettings = New PdfPageSettings(New SizeF(300, 400)) - 'Add the event. - section.PageAdded += New PageAddedEventHandler(sec_PageAdded) - 'Add new page to section. - section.Pages.Add() - 'Add new page document. - document.Pages.Add() - 'Save and close the document. - document.Save("PageCreatedTest.pdf") - document.Close(True) - 'Event handler for PageAdded event - Private Sub sec_PageAdded(sender As Object, args As PageAddedEventArgs) - Dim page As PdfPage = args.Page - Dim section As PdfSection = (TryCast(sender, PdfSection)) - Dim graphics As PdfGraphics = page.Graphics - Dim font As PdfStandardFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 14.0F) - Dim brush As PdfSolidBrush = New PdfSolidBrush(Color.Blue) - Dim text As String = String.Format("Page number : {0} added to Section", section.Pages.Count) - graphics.DrawString(text, font, brush, PointF.Empty) - End Sub - - - Class - Class - Class - Class - Class - - - - Gets the wrapped element. - - - - - Initializes a new instance of the class. - - The section. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, - which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current. - - - - - Represents the collection of the . - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Get the document section collection. - PdfSectionCollection sections = document.Sections; - //Add the section. - PdfSection section = sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Get the document section collection. - Dim sections As PdfSectionCollection = document.Sections - 'Add the section. - Dim section As PdfSection = sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Rotate factor for page rotation. - - - - - Initializes a new instance of the class. - - - - - Creates a new and adds it to the collection. - - Created section object. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add the pages to section1. - PdfPage page1 = section1.Pages.Add(); - //Create PDF graphics for the page. - PdfGraphics graphics = page.Graphics; - //Set the font. - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 20); - //Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add the pages to section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Create PDF graphics for the page. - Dim graphics As PdfGraphics = page.Graphics - 'Set the font. - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 20) - 'Draw the text. - graphics.DrawString("Hello World!!!", font, PdfBrushes.Black, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Determines the index of the specified . - - The section which is to be found the index. - The index of the specified section. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the index of the specified section. - int index = document.Sections.IndexOf(section); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the index of the specified section. - Dim index As Integer = document.Sections.IndexOf(section) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Inserts the at the specified index. - - The index of the section to be added. - The section to be added. - - Index value should start from zero. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add the section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //insert the section at specified index. - document.Sections.Insert(0, section1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add the section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'insert the section at specified index. - document.Sections.Insert(0, section1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Checks whether the collection contains the specified section. - - The - True - if the sections belongs to the collection, False otherwise. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section - PdfSection section = document.Sections.Add(); - //Add pages to the section - PdfPage page = section.Pages.Add(); - //Add the section - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1 - PdfPage page1 = section1.Pages.Add(); - //Check whether the specified section is in the collection - bool isExists = document.Sections.Contains(section1); - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section - Dim page As PdfPage = section.Pages.Add() - 'Add the section - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1 - Dim page1 As PdfPage = section1.Pages.Add() - 'Check whether the specified section is in the collection - Dim isExists As Boolean = document.Sections.Contains(section1) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - - Informs the section collection that the page labels were set. - - - - - Resets the progress. - - - - - Sets the progress. - - - - - Called when a page is saving. - - The page. - - - - Infills dictionary by the data from Page settings. - - Pdf container of the data. - Page settings. - - - - Checks if the section is within the collection. - - The section. - The reference holder of the section. - Throws ArgumentException - if the section is within the collection. - - - - Counts the pages. - - - - - - Adds the specified section. - - The section. - Index of the section in the collection. - - - - Adds the specified section. - - The section. - - - - Initializes the object. - - - - - Clears section collection of the document. - - - - - Catches the Save event of the dictionary. - - Sender of the event. - Event arguments. - - - - Gets the at the specified index.Read only. - - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section1. - PdfPage page = section.Pages.Add(); - //Get the section from collection. - PdfSection section2 = document.Sections[0]; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page As PdfPage = section.Pages.Add() - 'Get the section from collection. - Dim section2 As PdfSection = document.Sections(0) - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets the total number of in a document.Read only. - - The count of the sections. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add the section. - PdfSection section = document.Sections.Add(); - //Add pages to the section. - PdfPage page = section.Pages.Add(); - //Add another section. - PdfSection section1 = document.Sections.Add(); - //Add pages to the section1. - PdfPage page1 = section1.Pages.Add(); - //Get the sections count. - int count = document.Sections.Count; - //Save the document. - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add the section. - Dim section As PdfSection = document.Sections.Add() - 'Add pages to the section. - Dim page As PdfPage = section.Pages.Add() - 'Add another section. - Dim section1 As PdfSection = document.Sections.Add() - 'Add pages to the section1. - Dim page1 As PdfPage = section1.Pages.Add() - 'Get the sections count. - Dim count As Integer = document.Sections.Count - 'Save the document. - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - - - - Gets a parent document. - - - - - Gets the wrapped element. - - - - - Section collection enumerator. - - - - - Initializes a new instance of the class. - - The section collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; - false if the enumerator has passed the end of the collection. - - The collection was modified after the enumerator was created. - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - The collection was modified after the enumerator was created. - - - - Checks the index. - - - - - Gets the current section. - - - - - The elements of the PDF array. - - - - - Indicates if the array was changed. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Represents the Font array. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The list of array. - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The array. - - - - Initializes a new instance of the class. - - The array. - - - - Creates filled PDF array from the rectangle. - - The rectangle. - The filled in PdfArray instance. - - - - Creates filled PDF array from the rectangle. - - The rectangle. - The filled in PdfArray instance. - - - - Adds the specified element to the PDF array. - - The element. - - - - Adds the specified list of elements to array. - - The list. - - - - Determines whether the specified element is within the array. - - The element. - - true if the array contains the specified element; otherwise, false. - - - - - Inserts the element into the array. - - Zero-based index of the element in the array. - The element that should be added to the array. - - - - Checks whether array contains the element. - - The element object. - Index of the element in the array if exists, -1 otherwise. - - - - Removes element from the array. - - The element that should be removed from the array. - - - - ReArrange the Nested page kids array - - To specify the in which sequence the pages are arranged. - - - - Remove the element from the array by its index. - - Zero-based index of the element in the array. - - - - Cleares the array. - - - - - Converts an instance of the PdfArray to the RectangleF. - - The properly filled RectangleF structure. - - - - Saves the object using the specified writer. - - The writer. - - - - Returns an enumerator that iterates through a collection. - - - An - object that can be used to iterate through the collection. - - - - - Marks the object changed. - - - - - Freezes the changes. - - The freezer. - - - - Gets the number from the array. - - The index. - The proper instance of the PdfNumber. - - - - Creates a copy of PdfArray. - - - - - Gets the at the specified index. - - - - - Gets the count. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Gets the elements of the Pdf Array - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Represents the Font dictionary - - - - - Gets a value indicating whether this is changed. - - - - - The value of the PDF boolean. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - if it is value, set to true. - - - - Creates a copy of PdfBoolean. - - - - - Saves the object using the specified writer. - - The writer. - - - - Gets or sets the value of this instance. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Internal structure describing a pair of Key/Value. - - - - - Event arguments class. - - - - - Pdf document writer. - - - - - Creates the new object. - - The writer. - - - - Gets a document that is currently generating. - - - - - Delegate type. - - - - - Implementation of the name object. - - - - - Start symbol of the name object. - - - - - PDF special characters. - - - - - The symbols that are not allowed in PDF names and should be replaced. - - - - - Value of the element. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Creates object with defined string value. - - Value of the string. - - - - Initializes a new instance of the class. - - The enum value. - - - - Makes the string more correct from the PDF's point of view. - - The string to normalize as PDF name. - The normalized string. - - - - Replace a symbol with its code with the precedence of the sharp sign. - - The string which the symbol should be replaced in. - The symbol to replace. - - - - - Replace some characters with its escape sequences. - - The string value. - Modified string. - - - - Explicit operator. Converts a string to a PdfName. - - The string representation of the name. - Properly initialized PdfName instance. - - - - Gets string representation of the primitive. - - - - - Compares two PDF names. - - PDFName to compare - The result of comparison. - - - - Returns a hash code for the name. - - The hash code. - - - - Compares two names. - - The name1. - The name2. - - - - - Determines if two names aren't equal. - - The name1. - The name2. - - - - - Determines if two names are equal. - - The name1. - The name2. - - - - - Determines if two names aren't equal. - - The name1. - The name2. - - - - - Saves the name using the specified writer. - - The writer. - - - - Creates a copy of PdfName. - - - - - Gets or sets the value of the object. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Represent the PDF null object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - - - - Saves the object. - - PDF writer. - - - - - Creates a copy of PdfNull. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Initializes a new instance of the class. - - The value. - - - - Converts a float value to a string using Adobe PDF rules. - - The number. - - - - - Determines the minimum of the three values. - - The 1st value. - The 2nd value. - The 3d value. - The min value. - - - - Determines the maximum of the three values. - - The 1st value. - The 2nd value. - The 3d value. - The max value. - - - - Saves the object. - - PDF writer. - - - - Creates a copy of PdfNumber. - - - - - Gets or sets the integer value. - - - - - Gets or sets the float value. - - - - - Gets or sets a value indicating whether this instance is integer. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Represents a PDF reference. - - - - - Holds the object number. - - - - - Holds the generation number of the object. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Initialize the class. - - The object number. - The generation number. - - - - Initialize the class. - - The object number. - The generation number. - - - - Returns a string representing the object. - - The string. - - - - Compares two object. - - The object to compare with. - The result of comparison. - - - - Returns a hash code. - - The hash code. - - - - Creates a copy of PdfReference. - - - - - Compares two reference objects. - - The first object to compare. - The second object to compare. - The result of the comparison. - - - - Compares two reference objects. - - The first object to compare. - The second object to compare. - The result of the comparison. - - - - Writes a reference into a PDF document. - - A PDF writer. - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Class that is like a reference but during saving it is replaced by - a real reference to the object it holds. - - - - - The object which the reference is of. - - - - - The cross-reference table, which the object is within. - - - - - The reference to the object, which was read from the PDF document. - - - - - The index of the object within the object collection. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Use to avoid multi threading issue - - - - - Initializes a new instance of the class. - - The wrapper. - - - - Initializes the class instance with an object. - - The object. - - - - Initializes a new instance of the class. - - The reference. - The cross-reference table. - - - - Saves the object. - - A PDF writer. - - - - Create a copy of the referenced object. - - - - - Compares two reference holders. - - Object to compare. - The result of comparison. - - - - Returns a hashcode for a hashtable. - - The hashcode. - - - - Compares two reference holders whether they are equal. - - A reference holder to compare. - A reference holder to compare. - The result of the comparison. - - - - Compares two reference holders whether they are different. - - A reference holder to compare. - A reference holder to compare. - The result of the comparison. - - - - Gets the object. - - - - - - Gets the object the reference is of. - - - - - Gets the index of the object. - - - - - Gets the reference. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Returns cloned object. - - - - - Implements PDF string object. - - - - - General markers for string. - - - - - Hex markers for string. - - - - - Format of password data. - - - - - Value indicating whether the string was converted to hex. - - - - - Value of the object. - - - - - The byte data of the string. - - - - - Indicates whether to check if the value has unicode characters. - - - - - Indicates whether we should convert data to Unicode. - - - - - Shows if the data of the stream was decrypted. - - - - - Shows the type of object status whether it is object registered or other status; - - - - - Indicates if the object is currently in saving state or not. - - - - - Holds the index number of the object. - - - - - Internal variable to store the position. - - - - - Shows if the data of the stream was decrypted. - - - - - Internal variable to hold PdfCrossTable reference. - - - - - Internal variable to hold cloned object. - - - - - Gets a value indicating whether the object is packed or not - - - - - Initializes a new instance of the class. - - - - - Creates new PDF string object. - - Value of the object. - - - - Initialize a string from a hex string. - - The value. - if set to true the string has been encrypted. - - - - Creates new PDF string object. - - Value of the object. - - - - Converts byte data to string. - - Bytes to be converted. - Destination string. - - - - Converts byte data to string. - - Bytes to be converted. - The actual length of the buffer. - Destination string. - - - - Determines if the string is a unicode one. - - String value. - True if string is in Unicode format; otherwise False. - - - - Converts string to array of unicode symbols. - - String value. - Indicates whether we should add Unicode prefix to output data. - Array of data in unicode format. - - - - FromDate in PDF suitable form. - - The datetime. - - - - - Compare two PDF strings by their bytes. - - The first string. - The second string. - If the first string is greater then the second one it returns a value greater then 0, - if the second string is greater then the first one, it returns a value lower then 0, - if both are equal the 0 is returned. - - - - Explicit operator. Converts system string into PdfString. - - The system string. - Properly initialized PdfString. - - - - Converts PDFString to string. - - Byte array containing PDF representation of this object. - - - - Gets ascii bytes for specified string value. - - String for which to get bytes. - Bytes retrieved from specified text. - - - - Converts bytes to string using hex format for representing string. - - Bytes to be converted. - String int hex format. - - - - If needed encryption of data, encrypts data and returns new content. - - Bytes to be encrypted. - A PDF document. - Encrypted data. - - - - Escapes special symbols. - - Data from which must be escaped special symbols. - Data from which are escaped special symbols. - - - - Escapes special symbols. - - Data from which must be escaped special symbols. - Data from which are escaped special symbols. - - - - Converts hexadecimal digits into a byte array. - - The string value. - The byte array. - - - - Parses the hex. - - The character representing a hex digit. - A byte value. - - - - Converts hex digits into byte numbers. - - The hex numbers. - The byte array. - - - - Converts the Value to array of bytes. - - An array of bytes. - - - - Returns a byta array based on the value. - - Shows if should be unicode encoding. - The byte array. - - - - Saves the object using the specified writer. - - The writer. - - - - Forces PdfString to the hex mode. - - - - - Creates a copy of PdfString. - - - - - Converts string value to a byte array. - - The string data. - The resulting byte array. - - - - Processes the unicode string - - - - - - - Decrypts the specified encryptor. - - The encryptor. - The current object number. - - - - Gets or sets string value of the object. - - - - - Gets a value indicating whether string is in hex. - - - - - Gets a value indicating whether the object is packed or not - - - - - Gets or sets a value indicating whether to check if the value - has unicode characters. - - - - - Gets or sets value indicating whether we should convert data to Unicode. - - - - - Gets a flag that shows if the object has been decrypted already. - - - - - Gets the bytes. - - - - - Gets or sets the Status of the specified object. - - - - - Gets or sets a value indicating whether this document is saving or not. - - - - - Gets or sets the integer value of the specified object. - - - - - Gets or sets the position of the object. - - - - - Gets or set the flag indicating whether the string in the stream is decrypted or not. - - - - - Returns PdfCrossTable associated with the object. - - - - - Returns cloned object. - - - - - Gets a value indicating whether the object was encrypted. - - - - - Shows what encoding must be used. - - - - - The types of the PDFString data source. - - - - - AsnObject that represents the encoded time stamp response - - - - - Represents the Public Key Infrastructure status info - - - - - Time stamp token of the obtained time stamp response - - - - - Oid type of the time stamp response - - - - - Intializes a new instance and reads the timestamp response - - Array containing the time stamp request bytes - - - - Encodes the timestamp response from the Asn1Sequence - - Asn1Sequence containing the AsnObjects - Encoded bytes - - - - Reads the Asn objects in the time stamp response stream - - Input response stream - - - - Parses the time stamp response and encodes the content - - Asn1Sequence containing the AsnObjects - Encoded bytes - - - - Reads the content type of the response and encodes it - - Encoded bytes - - - - Encodes the time stamp content info - - Encoded bytes - - - - Returns the final encoded AsnSequence - - - - - Represent a time stamp to add in PDF document, - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The timestamp server uri - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The time stamp server uri. - The user name of the timestamp server. - The password of the timestamp server. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456"); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456") - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Initialize a new instance of the class. - - The timestamp server uri. - The user name of the timestamp server. - The password of the user. - The time out seconds. - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com"), "user", "123456", 5); - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As TimeStampServer = New TimeStampServer(New Uri("http://syncfusion.digistamp.com"), "user", "123456", 5) - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the server uri. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the user name. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the password. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Gets or set the timeout. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Load the x509 certificate. - X509Certificate2 cert = new X509Certificate2("certificate.pfx", "password"); - //Find by subject. - PdfCertificate pdfCert = new PdfCertificate(cert); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Create a new PDF time stamp server - TimeStampServer timeStampServer = new TimeStampServer(new Uri("http://syncfusion.digistamp.com")); - //Set server uri. - timeStampServer.Server = new Uri("http://syncfusion.digistamp.com"); - //Set user. - timeStampServer.UserName = "user"; - //Set password. - timeStampServer.Password = "123456"; - //Set time out. - timeStampServer.TimeOut = 5; - //Add time stamp. - signature.TimeStampServer = timeStampServer; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Load the x509 certificate. - Dim cert As New X509Certificate2("certificate.pfx", "password") - 'Find by subject. - Dim pdfCert As New PdfCertificate(cert) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Create a new PDF time stamp server - Dim timeStampServer As New TimeStampServer(New Uri("http://syncfusion.digistamp.com")) - 'Set server uri. - timeStampServer.Server = New Uri("http://syncfusion.digistamp.com") - 'Set user. - timeStampServer.UserName = "user" - 'Set password. - timeStampServer.Password = "123456" - 'Set time out. - timeStampServer.TimeOut = 5 - 'Add time stamp. - signature.TimeStampServer = timeStampServer - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Specifies length of the encryption key for encryption. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - The key is 40 bit long. - - - - - The key is 128 bit long. - - - - - The key is 256 bit long. - - - - - The key is 256 bit long with revision 6. - AES algorithm for PDF 2.0 security feature. - - - - - Specifies the type of encryption algorithm used. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - - - - The encryption algorithm is RC4. - - - - - The encryption algorithm is AES. - - - - - Specifies the available permissions set for the signature. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Default value. - - - - - Print the document. - - - - - Edit content. - - - - - Copy content. - - - - - Add or modify text annotations, fill in interactive form fields. - - - - - Fill form fields. (Only for 128 bits key). - - - - - Copy accessibility content. - - - - - Assemble document permission. (Only for 128 bits key). - - - - - Full quality print. - - - - - Enumerator that implements possible security handlers. - - - - - The built-in password-based security handler. - - - - - Specifies the naming of a system store. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion"); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion") - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - A certificate store that holds certificates with associated private keys. - - - - - Root certificates. - - - - - Certification authority certificates. - - - - - Software Publisher Certificate. - - - - - Certificate store for directly trusted people and resources - - - - - Certificate store for directly trusted publishers - - - - - Certificate store for third party certificate publishers - - - - - Certificate store for other users - - - - - Specifies the Location of the store - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - //Find by subject. - PdfCertificate storeCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine); - //Creates a signature. - PdfSignature signature = new PdfSignature(document, page, storeCertificate, "Signature"); - signature.Bounds = new RectangleF(new PointF(0, 0), new SizeF(100, 100)); - signature.ContactInfo = "johndoe@owned.us"; - signature.LocationInfo = "Honolulu, Hawaii"; - signature.Reason = "I am author of this document."; - //Save the document. - document.Save("output.pdf"); - //Close the document. - document.Close(true); - - - ' Creates a new document - Dim document As New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - 'Find by subject. - Dim storeCertificate As PdfCertificate = PdfCertificate.FindBySubject(StoreType.MY, "syncfusion", StoreRegion.LocalMachine) - 'Creates a signature. - Dim signature As New PdfSignature(document, page, storeCertificate, "Signature") - signature.Bounds = New RectangleF(New PointF(0, 0), New SizeF(100, 100)) - signature.ContactInfo = "johndoe@owned.us" - signature.LocationInfo = "Honolulu, Hawaii" - signature.Reason = "I am author of this document." - 'Save the document. - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - - - - Certificate store assigned to local machine - - - - - Certificate store used by current user. - - - - - Specifies the available permissions on certificated document. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate("Pdf.pfx", "123"); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.DocumentPermissions = PdfCertificationFlags.AllowComments; - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate("Pdf.pfx", "123") - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.DocumentPermissions = PdfCertificationFlags.AllowComments - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Restrict any changes to the document. - - - - - Only allow form fill-in actions on this document. - - - - - Only allow commenting and form fill-in actions on this document. - - - - - Enumeration of signature flags. - - - - - No flags specified. - - - - - If set, the document contains at least one signature field. This flag allows a viewer - application to enable user interface items (such as menu items or pushbuttons) related - to signature processing without having to scan the entire document for the presence - of signature fields. - - - - - If set, the document contains signatures that may be invalidated if the file is saved - (written) in a way that alters its previous contents, as opposed to an incremental - update. Merely updating the file by appending new information to the end of the - previous version is safe. Viewer applications can use this flag to present - a user requesting a full save with an additional alert box warning that signatures - will be invalidated and requiring explicit confirmation before continuing with the operation. - - - - - Represents where and how to import private key of the certificate. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfCertificate pdfCert = new PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet); - PdfSignature signature = new PdfSignature(doc, page, pdfCert, "Signature"); - signature.Bounds = new RectangleF(new PointF(5, 5),new SizeF(100,200)); - doc.Save("SignedPdfSample.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = doc.Pages.Add() - Dim pdfCert As PdfCertificate = New PdfCertificate(certificateStream, "123",KeyStorageFlags.DefaultKeySet) - Dim signature As PdfSignature = New PdfSignature(doc, page, pdfCert, "Signature") - signature.Bounds = New RectangleF(New PointF(5, 5),New SizeF(100,200)) - doc.Save("SignedPdfSample.pdf") - doc.Close(True) - - - - - - New key offset length. - - - - - Key length of 40 bit key. - - - - - Key length of 128 bit key. - - - - - Key length of 256 bit key. - - - - - Revision number. A number specifying which revision of the - standard security handler should be used to interpret this dictionary. - - - - - Revision number. A number specifying which revision of the - standard security handler should be used to interpret this dictionary. - - - - - Amount of bytes. - - - - - Amount of random bytes. - - - - - Optimal string length. - - - - - Number of iteration of the loop during owner pass calculation. - - - - - Number of iteration of the loop during owner pass calculation. - - - - - Flag, used during enc. key calculating. - - - - - Number of bits in one byte. - - - - - A value indicating whether password values were already computed. - - - - - The object that allows to compute the MD5 hash for the input data - using the implementation provided by the cryptographic service provider (CSP). - - - - - Bytes array for manipulating by Custom algo. - - - - - Bytes array of random numbers. - - - - - Output owner password. - - - - - Output user password. - - - - - Changed owner password. It's needed to encryption purpose. - - - - - Changed user password. It's needed to encryption purpose. - - - - - The encryption key. - - - - - Length of encryption key. - - - - - Permission flags. - - - - - A revision number that has been read from a PDF document. - - - - - Shows if the encryptor's settings have been changed. - - - - - Predefined bytes for empty string. - - - - - Helps to control access to s_paddingString. - - - - - Holds ecryptor status enable/disable ecryption. - - - - - The valuse that should be stored in the encryptor dictionary. - - - - - The array used to add padding to the encryption key in AES mode. - - - - - The object that describes the type of encryption algorithm that should be used. - - - - - The user encryption key (UE), that should stored in encryption dictionary. - - - - - The Owner encryption key (OE), that should stored in encryption dictionary. - - - - - The permission flag (Perms), that should stored in encryption dictionary. - - - - - The 32 byte random number used as key for encrypting contents. - - - - - The random bytes used in computing U and UE entries. - - - - - The random bytes used in computing O and OE entries. - - - - - Used to derive random byte array. - - - - - Used to compute SHA256 hash. - - - - - Shows if metadata has to be encrypted or not. - - - - - The integer which represents revision of the encryption dictionary. - - - - - The integer which represents the version of the encryption dictionary. - - - - - AcrobatX security hash computation algorithms. - - - - - Initializes a new instance of the class. - - - - - Clones the specified document. - - A new cloned encryptor. - - - - Reads the essential values from a dictionary. - - The dictionary. - - - - Checks the password. - - The password. - The key. - - - - Encrypts the data. - - The curr obj number. - The data. - Encrypted byte array. - - - - Saves this instance. - - - - - Pads or truncates string to string with length equals to c_stringLength == 32. - - Bytes of newly created string. - - - - Pads or truncates data with length equals to c_stringLength == 32. - - Bytes of newly created string. - - - - Preperes hash code for cryptographic algorithm and executes it. - - Data to be encrypted / decrypted. - Key for using by Custom algo. - - - - Prepares hash code for cryptographic algorithm and executes it. - - Data to be encrypted / decrypted. - Key for using by Custom algo. - The length of a key. - - - - Encrypts the data using AES cryptographic algorithm using initialization vector in CBC mode - - Data to be encrypted / decrypted. - Key for using by Custom algo. - The encrypted data - - - - Decrypts the data using AES cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Key for using by Custom algo. - The decrypted data - - - - Encrypts the data using AES(256 Bit) cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Encrypted data - - - - Decrypts the data using AES(256 Bit) cryptographic algorithm using initialization vector in CBC mode - - Data to be decrypted. - Decrypted data - - - - Creates initialization vector for AES encryption - - Initialization vector - - - - Recreates CustomArray array. This method is the part of - implementation Custom algo. - - Key for using by Custom algo. - The length of a key. - - - - Returns length of the encryption key. - - Length of the encryption key. - - - - Calculates owner password. - - Data of calculated owner password. - Algorithm 3.3 of PDF 1.6 reference. - - - - Algorithm 2.B from ISO 32000-2 - - input for the advance compute hash - password for the custom algorithm - key for the computation hash algorithm - returns the byte array of computed hash - - - - Calculates owner password for 256 bit encryption algorithm. - - Data of calculated owner password. - Algorithm 3.9 of adobe_supplement_iso32000. - - - - Calculates owner password for 256-bit AcrobatX encryption algorithm. - - Algorithm 2.B of adobe_supplement_iso32000-2. - - - - Calculates owner encryption key for 256 bit encryption algorithm. - - Data of calculated owner encryption key. - Algorithm 3.9 of adobe_supplement_iso32000. - - - - Computes first 4 steps from algorithm 3.3 to calculate the encryption key. - - The owner password. - The encryption key. - - - - Computes the file encryption key of 256 bit AES encrypted documents. - - The owner/user password. - The algorithm 3.2a of adobe_supplement_iso32000 - - - - Compute the owner file encryption key of 256-bit AcrobatX encrypted documents. - - The owner password - Algorithm 2.B from ISO 32000-2 - - - - Compute the ueser file encryption key of 256-bit AcrobatX encrypted documents. - - The user password - Algorithm 2.B from ISO 32000-2 - - - - Calculates temporary key used for calculating owner password value. - - Orignial key value. - Current index. - Temporary key used for calculating owner password value. - - - - Creates encryption key. - - Input password string. - Owner password value. - Key created. - - - - Creates file encryption key for 256 bit encryption scheme (random 32 byte array). - - - - - Creates user password. - - Created user password. - - - - Calculates user encryption key for 256 bit encryption algorithm. - - Data of calculated user encryption key. - Algorithm 3.8 of adobe_supplement_iso32000. - - - - Calculates user encryption key for 256-bit AcrobatX encryption algorithm. - - Data of calculated user encryption key. - Algorithm 2-B of adobe_supplement_iso32000-2. - - - - Calculates user encryption key for 256 bit encryption algorithm. - - Data of calculated user encryption key. - Algorithm 3.8 of adobe_supplement_iso32000. - - - - Calculates permission flag(Perms) for 256 bit encryption algorithm. - - Data of calculated Permission flag. - Algorithm 3.10 of adobe_supplement_iso32000. - - - - Creates user password when encryption key is 40 bits length. - - Created user password. - - - - Creates user password when encryption key is 128 bits length. - - Created user password. - - - - Initializes data. - - - - - Transforms key before encryption. - - Original key to be transformed. - Transformed key. - - - - Checks if the password given is the user password. - - The password, which was given by the user. - A flag indicating if the password is the user password. - - - - Checks if the password given is the user password (256 bit encryption scheme). - - The password, which was given by the user. - A flag indicating if the password is the user password. - - - - Checks if the password given is the owner password. - - The password, which was given by the user. - A flag indicating if the password is the owner password. - - - - Checks if the password given is the owner password (256 bit encryption scheme). - - The password, which was given by the user. - A flag indicating if the password is the owner password. - - - - Converts an array into a password string. Before the convertion to string - cutts off the padding string if there is one. - - The array, which should be converted. - A string that should be a valid password string. - - - - Determines if the arrays are equal. - - One array that should be compared. - Another array. - True if arrays are equal, false otherwise. - - - - Determines if the first bytes of the arrays are equal. - - One array that should be compared. - Another array. - The actual size of the arrays to compare. - - True if arrays are equal, false otherwise. - - - - - Standard encryption dictionary for AES encryption - - - - - Gets security handler. Filter's value. - - - - - Gets or sets the cryptographic algorithm. V's value. - - - - - Gets or sets encryption algorithm. - - - - - Gets or sets permission set. - - - - - Gets revision number. R's value. - - - - - Gets or sets the password required to change permissions - for the PDF document. O's value. - - - - - Gets or sets the password required to open the PDF document. P's value. - - - - - Gets bytes array of random numbers. - - - - - Gets or sets bytes array for manipulating by Custom algo. - - - - - Gets or sets the object that allows to compute the MD5 hash for the input data - using the implementation provided by the cryptographic service provider (CSP). - - - - - Gets encoding. - - - - - Gets or sets encryption key. - - - - - Gets or sets value indicating whether document should be encrypted or not. - - - - - Gets calculated user password. - - - - - Gets calculated owner password. - - - - - Shows if the encryptor's setting have been changed. - - - - - Shows if the metadata should be encrypted. - - - - - Bytes for empty string. - - - - - Represents the SfBigInteger - - - - - Represents the security settings of the PDF document. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - PdfStandardFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold); - PdfBrush brush = PdfBrushes.Black; - //Document security - PdfSecurity security = document.Security; - //use 128 bits key - security.KeySize = PdfEncryptionKeySize.Key128Bit; - security.OwnerPassword = "syncfusion"; - security.Permissions = PdfPermissionsFlags.Print | PdfPermissionsFlags.FullQualityPrint; - security.UserPassword = "password"; - document.Save("Security.pdf"); - document.Close(true); - - - ' Creates a new document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim font As PdfStandardFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 20f, PdfFontStyle.Bold) - Dim brush As PdfBrush = PdfBrushes.Black - 'Document security - Dim security As PdfSecurity = document.Security - 'use 128 bits key - security.KeySize = PdfEncryptionKeySize.Key128Bit - security.OwnerPassword = "syncfusion" - security.Permissions = PdfPermissionsFlags.Print Or PdfPermissionsFlags.FullQualityPrint - security.UserPassword = "password" - document.Save("Security.pdf") - document.Close(True) - - - - - - Owner password value. - - - - - User password value. - - - - - Object encrypting the data. - - - - - Initializes a new instance of the class. - - - - - Logically ORs flag and mask and return result. - - The mask of set bit that should be set in the result. - The ORed value of flag and mask. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfSecurity security = doc.Security; - security.SetPermissions(PdfPermissionsFlags.AssembleDocument); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - 'Document security - Dim security As PdfSecurity = doc.Security - security.SetPermissions(PdfPermissionsFlags.AssembleDocument) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Logically ANDs flag and inverted mask and return result. - - The mask of set bit that should be cleared in the result. - The ANDed value of flag and inverted mask. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - PdfSecurity security = doc.Security; - security.ResetPermissions(PdfPermissionsFlags.AssembleDocument); - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - 'Document security - Dim security As PdfSecurity = doc.Security - security.ResetPermissions(PdfPermissionsFlags.AssembleDocument) - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the owner password, If the PDF document is password protected you can use the - owner password to open the document and change its permissions. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the user password which is required when the PDF document is opened in a viewer. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the permissions when the document is opened with user password. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the encryptor. - - - - - Gets or sets the length of the encryption key for encryption. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations; - doc.Security.UserPassword = "123"; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations - doc.Security.UserPassword = "123" - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - Class - Class - Class - Class - - - - Gets or sets the type of encryption algorithm used. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - // Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit; - doc.Security.OwnerPassword = "Syncfusion"; - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print; - doc.Security.UserPassword = "123"; - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES; - //Creates a new page and adds it as the last page of the document - PdfPage page = doc.Pages.Add(); - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 10); - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, new PointF(10,10)); - doc.Save("Security.pdf"); - doc.Close(true); - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - ' Set the documents permission settings - doc.Security.KeySize = PdfEncryptionKeySize.Key128Bit - doc.Security.OwnerPassword = "Syncfusion" - doc.Security.Permissions = PdfPermissionsFlags.EditAnnotations | PdfPermissionsFlags.Print - doc.Security.UserPassword = "123" - doc.Security.Algorithm = PdfEncryptionAlgorithm.AES - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = doc.Pages.Add() - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 10) - page.Graphics.DrawString("Permission",font,PdfBrushes.Blue, New PointF(10,10)) - doc.Save("Security.pdf") - doc.Close(True) - - - - - - Gets or sets a value indicating whether this is enabled. - - - - - list of parent cell index - - - - - cell index of PdfGrid which moves to next page - - - - - Initializes a new instance of the class with the grid. - - The parent grid. - - - - Layouts the specified graphics. - - The graphics. - The location. - - - - Layouts the specified graphics. - - The graphics. - The bounds. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Layouts the on page. - - The param. - - - - - Draw ParentGrid Rows when the ChildGrid has draw in secondPage - - - - - - - Rearranges the pages. - - The layouted pages. - - - - Draws the row. - - The row. - Start index of the cell. - End index of the cell. - - - - Draws row till it fits the page and then calculates height for the next page. - - The RowLayoutResult. - Row being drawn. - Height of the row. - - - - Draws row - - The RowLayoutResult. - Row being drawn. - Height of the row. - - - - Recalculate row height for the split cell to be drawn. - - - - - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - The current row. - If true, stop lay outing. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises the before cell layout. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The cell value. - - - - Raises the after cell layout event. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The value of the cell. - - - - Checks if the given format is default format or not. - - - - - - - Determines the column draw ranges. - - - - - Rearranges the pages - - - - - Gets the next page. - - - - - - Gets the format. - - The format. - - - - - Gets the layout result. - - - - - - Gets the grid. - - The grid. - - - - Initializes a new instance of the class. - - - - - Gets or sets a value indicating whether this instance is finish. - - true if this instance is finish; otherwise, false. - - - - Gets or sets the bounds. - - The bounds. - - - - Provides parameters definition for PdfGrid layout. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Layout format - PdfGridLayoutFormat format = new PdfGridLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.PaginateBounds = new RectangleF(0, 0, 400, 500); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10),format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Layout format - Dim format As New PdfGridLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.PaginateBounds = New RectangleF(0, 0, 400, 500) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10),format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Layout format - PdfGridLayoutFormat format = new PdfGridLayoutFormat(); - format.Break = PdfLayoutBreakType.FitPage; - format.PaginateBounds = new RectangleF(0, 0, 400, 500); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10),format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Layout format - Dim format As New PdfGridLayoutFormat() - format.Break = PdfLayoutBreakType.FitPage - format.PaginateBounds = New RectangleF(0, 0, 400, 500) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10),format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with a base format. - - The base format. - - - - Represents the results of the PdfGrid including bounds and resultant page. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - PdfGridLayoutResult result = pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - Dim result As PdfGridLayoutResult = pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the current page and bounds. - - The current page. - The current bounds. - The page might be null, which means that - lay outing was performed on PdfGraphics. - - - - The Syncfusion.Pdf.Grid namespace contains classes for creating tables by entering the data manually or from an external data source. - - - - - Represents a flexible grid that consists of columns and rows. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Internal variable to store layout format. - - - - - check whether the Grid is drawn. - - - - - RowLayoutBoundsWidth. - - - - - list of drawn page index by PdfGrid - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The location. - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, new PointF(10, 10), 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, New PointF(10, 10), 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The x. - The y. - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, 10, 10, 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, 10, 10, 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified graphics. - - The graphics. - The bounds. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page.Graphics, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The location. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The location. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The bounds. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new RectangleF(0, 0, 100, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New RectangleF(0, 0, 100, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The bounds. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new RectangleF(0, 0, 100, 100), format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New RectangleF(0, 0, 100, 100), format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The width. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the in the specified . - - The page. - The x. - The y. - The width. - The format. - The grid layout result - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating layout format - PdfGridLayoutFormat format=new PdfGridLayoutFormat(); - format.Layout=PdfLayoutType.Paginate; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100, format); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating layout format - Dim format As New PdfGridLayoutFormat() - format.Layout = PdfLayoutType.Paginate - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, 10, 10, 100, format) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Layouts the element. - - Layout parameters. - Returns the results of layout. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Applies the span. - - - - - Measures this instance. - - - - - - Apply built-in table style to the grid. - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Apply built-in table style to the table - - enum of PdfGridBuiltinStyle - - - - Apply built-in table style to the table - - enum of PdfGridBuiltinStyle - The PdfGridBuiltinStyleSettings - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Create Bold style font - - - - - - - Create Regular style font - - - - - - - Create Italic style font - - - - - - - Change font style - - - - - - - Sets the data source. - - - - - Populates the grid. - - - - - Populates the header row. - - - - - Calculates the column widths. - - - - - Calculates the width of the columns. - - The bounds. - - - - Gets the headers collection from the PdfGrid.[Read-Only] - - Represents the headers of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add(); - dataTable.Columns.Add(); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - // Add a new header to PdfGrid. - pdfGrid.Headers.Add(1); - // Get the header collection. - PdfGridHeaderCollection collection = pdfGrid.Headers; - // Set the header names. - collection[0].Cells[0].Value = "Header1"; - collection[0].Cells[1].Value = "Header2"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add() - dataTable.Columns.Add() - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - ' Add a new header to PdfGrid. - pdfGrid.Headers.Add(1) - ' Get the header collection. - Dim collection As PdfGridHeaderCollection = pdfGrid.Headers - ' Set the header names. - collection(0).Cells(0).Value = "Header1" - collection(0).Cells(1).Value = "Header2" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the row collection from the PdfGrid.[Read-Only] - - Represents the rows collection of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get the rows collection from the PdfGrid - PdfGridRowCollection rowCollection = pdfGrid.Rows; - rowCollection[0].Cells[0].Value = "Row Collection Sample"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get the rows collection from the PdfGrid - Dim rowCollection As PdfGridRowCollection = pdfGrid.Rows - rowCollection(0).Cells(0).Value = "Row Collection Sample" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the data bind to the PdfGrid by associating it with an external data source. - - The data source. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the data member. - - The data member. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Create data table. - DataTable stdTable = new DataTable("StdTable"); /// - /Add columns - stdTable.Columns.Add("ID"); - stdTable.Columns.Add("Name"); - //Add rows. - stdTable.Rows.Add(new object[] { "S01", "George" }); - stdTable.Rows.Add(new object[] { "S02", "Stefan" }); - //Create new data set. - DataSet dataSet = new DataSet(); - dataSet.Tables.Add(dataTable); - dataSet.Tables.Add(stdTable); - //Set data member. - pdfGrid.DataMember = "StdTable"; - //Assign data source. - pdfGrid.DataSource = dataSet; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Create data table. - Dim stdTable As New DataTable("StdTable") - 'Add columns - stdTable.Columns.Add("ID") - stdTable.Columns.Add("Name") - 'Add rows. - stdTable.Rows.Add(New Object() { "S01", "George"}) - stdTable.Rows.Add(New Object() { "S02", "Stefan"}) - 'Create new data set. - Dim dataSet As New DataSet() - dataSet.Tables.Add(dataTable) - dataSet.Tables.Add(stdTable) - 'Set data member. - pdfGrid.DataMember = "StdTable" - 'Assign data source. - pdfGrid.DataSource = dataSet - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the grid style. - - Represents the style information applied to a PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding different style - PdfGridStyle style = new PdfGridStyle(); - style.BackgroundBrush = PdfBrushes.Cyan; - style.TextBrush = PdfBrushes.BlueViolet; - style.TextPen = new PdfPen(PdfBrushes.Black, 0.25F); - //Add style to the PdfGrid - pdfGrid.Style = style; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding different style - Dim style As New PdfGridStyle() - style.BackgroundBrush = PdfBrushes.Cyan - style.TextBrush = PdfBrushes.BlueViolet - style.TextPen = New PdfPen(PdfBrushes.Black, 0.25F) - 'Add style to the PdfGrid - pdfGrid.Style = style - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the first row. - - The first row. - - - - Gets the column collection of the PdfGrid.[Read-Only] - - Represents the columns collection of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get the column collection from the PdfGrid - PdfGridColumnCollection columnCollection = pdfGrid.Columns; - columnCollection[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get the column collection from the PdfGrid - Dim columnCollection As PdfGridColumnCollection = pdfGrid.Columns - columnCollection(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - - Gets the size. - - The size. - - - - Gets or sets a value indicating whether to split or cut rows that overflow a page. - - Default Value: true - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Set row break. - pdfGrid.AllowRowBreakAcrossPages = true; - //Get the rows collection from the PdfGrid - PdfGridRowCollection rowCollection = pdfGrid.Rows; - rowCollection[0].Cells[0].Value = "Row Collection Sample"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Set row break. - pdfGrid.AllowRowBreakAcrossPages = True - 'Get the rows collection from the PdfGrid - Dim rowCollection As PdfGridRowCollection = pdfGrid.Rows - rowCollection(0).Cells(0).Value = "Row Collection Sample" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or set if grid is nested grid. - - - - - Gets or sets the parent cell of the nested grid. - - - - - Gets layout format of the grid. - - - - - Gets a value indicating whether the start cell layout event should be raised. - - - - - Gets a value indicating whether the end cell layout event should be raised. - - - - - - - The event raised on starting cell lay outing. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table=new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender,PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - The event raised on finished cell layout. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents the schema of a cell in a . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Alignment of the image. - - - - - Rowspanned cell remaining height - d - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the row. - - The row of the cell. - - - - Draws the specified graphics. - - The graphics. - The bounds. - - - - Calculates the width. - - - - - - Calcualtes the height. - - - - - - Adjusts the outer layout area. - - The bounds. - - - - - Adjusts the text layout area. - - The bounds. - - - - - Draws the cell border constructed by drawing lines. - - The Current Graphics. - The CellStyle. - The bounds. - - - - Sets the transparency. - - The graphics. - The pen. - - - - Gets the next cell. - - - - - - Gets the text font. - - - - - - Gets the text brush. - - - - - - Gets the text pen. - - - - - - Gets the background brush. - - - - - - Gets the width of the PdfGrid cell.[Read-Only] - - The width of the cell which is set by the column width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Get cell width. - float cellWidth = cell.Width; - //Get cell height. - float cellHeight = cell.Height; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Get cell width. - Dim cellWidth As Single = cell.Width - 'Get cell height. - Dim cellHeight As Single = cell.Height - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the height of the PdfGrid cell.[Read-Only] - - The height. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set cell style. - cell.Style.BackgroundBrush = new PdfSolidBrush(Color.Red); - //Get cell width. - float cellWidth = cell.Width; - //Get cell height. - float cellHeight = cell.Height; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set cell style. - cell.Style.BackgroundBrush = New PdfSolidBrush(Color.Red) - 'Get cell width. - Dim cellWidth As Single = cell.Width - 'Get cell height. - Dim cellHeight As Single = cell.Height - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value that indicates the total number of rows that cell spans within a PdfGrid. - - The number of rows that cell should span. The default value is 1. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value that indicates the total number of columns that cell spans within a PdfGrid. - - The number of columns that cell should span. The default value is 1. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell style. - - Represents the style information applied to individual cells within a PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell content is HTML text or not - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the value of the cell. - - Value can be string or PdfGrid, PdfGrid will create a nested grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the string format. - - The string format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the parent row. - - The parent row. - - - - Gets or sets a value indicating whether this instance is cell merge continue. - - - true if this instance is cell merge continue; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is cell merge start. - - - true if this instance is cell merge start; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is row merge start. - - - true if this instance is row merge start; otherwise, false. - - - - - Gets or sets a value indicating whether this instance is row merge continue. - - - true if this instance is row merge continue; otherwise, false. - - - - - Gets the next cell. - - The next cell. - - - - Gets or sets the remaining string after the row split between pages. - - - - - Gets or sets whether drawing of cell is completed. - - - - - Gets or sets the image alignment type of the PdfGridCell background image. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Get or set the tag for the element - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //PDF grid cell - PdfGridCell cell = pdfGrid.Rows[0].Cells[0]; - //Set row span - cell.RowSpan = 2; - //set column span. - cell.ColumnSpan = 2; - //Check whether the text is HTML text? - bool isHtmlText = cell.IsHtmlText; - //Set Value. - cell.Value = "George"; - //Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center; - //Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit; - //Set PDF tag. - cell.PdfTag = new PdfStructureElement(PdfTagType.TableDataCell); - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'PDF grid cell - Dim cell As PdfGridCell = pdfGrid.Rows(0).Cells(0) - 'Set row span - cell.RowSpan = 2; - 'set column span. - cell.ColumnSpan = 2; - 'Check whether the text is HTML text? - Dim isHtmlText As Boolean = cell.IsHtmlText - 'Set Value. - cell.Value = "George" - 'Set string format. - cell.StringFormat.Alignment = PdfTextAlignment.Center - 'Set image position. - cell.ImagePosition = PdfGridImagePosition.Fit - 'Set PDF tag. - cell.PdfTag = New PdfStructureElement(PdfTagType.TableDataCell) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the row. - - The row of cell collection. - - - - Adds this instance. - - - - - - Adds the specified cell. - - The cell. - - - - Returns the index of a particular cell in the collection. - - The cell. - Index of the particular cell. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Get the index of the cell. - int index = collection.IndexOf(cell); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Get the index of the cell. - Dim index As Integer = collection.IndexOf(cell) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //custom collection enumerator. - foreach (PdfGridCell cell in collection) - { - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - } - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'custom collection enumerator. - For Each cell As PdfGridCell In collection - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - Next - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - The index of the required PdfGridCell - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the cells count.[Read-Only] - - The count representing the number of cells present in a Row. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable("EmpDetails"); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Get grid cells for the particular row. - PdfGridCellCollection collection = pdfGrid.Rows[0].Cells; - //Get cells count. - int count = collection.Count; - //Get cell - PdfGridCell cell = collection[0]; - //Set cell style. - cell.Style.BackgroundImage = new PdfBitmap("Autumn leaves.jpg"); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable("EmpDetails") - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Get grid cells for the particular row. - Dim collection As PdfGridCellCollection = pdfGrid.Rows(0).Cells - 'Get cells count. - Dim count As Integer = collection.Count - 'Get cell - Dim cell As PdfGridCell = collection(0) - 'Set cell style. - cell.Style.BackgroundImage = New PdfBitmap("Autumn leaves.jpg") - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The column collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - Represents the schema of a column in a . - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Gets or sets the width of the . - - The width. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Gets the width of the 1st column - float columnWidth = pdfGrid.Columns[0].Width; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Gets the width of the 1st column - Dim columnWidth As Single = pdfGrid.Columns(0).Width - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the information about the text formatting. - - The format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Creating new string formatting - PdfStringFormat stringFormat = new PdfStringFormat(); - stringFormat.Alignment = PdfTextAlignment.Right; - //Set string format - pdfGrid.Columns[0].Format = stringFormat; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Creating new string formatting - Dim stringFormat As New PdfStringFormat() - stringFormat.Alignment = PdfTextAlignment.Right - 'Set string format - pdfGrid.Columns(0).Format = stringFormat - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the parent .[Read-Only] - - The grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Gets the parent grid - PdfGrid parentGrid = pdfGrid.Columns[0].Grid; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - /// 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Gets the parent grid - Dim parentGrid As PdfGrid = pdfGrid.Columns(0).Grid - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Clears this instance. - - - - - Add a new column to the . - - The added column - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(); - pdfGrid.Columns.Add(); - pdfGrid.Columns.Add(); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add() - pdfGrid.Columns.Add() - pdfGrid.Columns.Add() - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the number of specified count. - - The count. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add(3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the specified column. - - The column. - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create PDF grid column. - PdfGridColumn column1 = new PdfGridColumn(pdfGrid); - column1.Width = 100; - PdfGridColumn column2 = new PdfGridColumn(pdfGrid); - column2.Width = 200; - PdfGridColumn column3 = new PdfGridColumn(pdfGrid); - column3.Width = 100; - //Add three columns. - pdfGrid.Columns.Add(column1); - pdfGrid.Columns.Add(column2); - pdfGrid.Columns.Add(column3); - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create PDF grid column. - Dim column1 As New PdfGridColumn(pdfGrid) - column1.Width = 100 - Dim column2 As New PdfGridColumn(pdfGrid) - column2.Width = 200 - Dim column3 As New PdfGridColumn(pdfGrid) - column3.Width = 100 - 'Add three columns. - pdfGrid.Columns.Add(column1) - pdfGrid.Columns.Add(column2) - pdfGrid.Columns.Add(column3) - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Adds the columns. - - The count. - - - - Calculates the column widths. - - - - - Gets the widths of the columns. - - The total width. - The start column. - The end column. - An array containing widths. - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument pdfDocument = new PdfDocument(); - PdfPage pdfPage = pdfDocument.Pages.Add(); - //Create a new PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Add three columns. - pdfGrid.Columns.Add(3); - foreach(PdfGridColumn column in pdfGrid.Columns) - { - //Set width. - column.Width = 150; - } - //Add header. - pdfGrid.Headers.Add(1); - PdfGridRow pdfGridHeader = pdfGrid.Headers[0]; - pdfGridHeader.Cells[0].Value = "Employee ID"; - pdfGridHeader.Cells[1].Value = "Employee Name"; - pdfGridHeader.Cells[2].Value = "Salary"; - //Add rows. - PdfGridRow pdfGridRow = pdfGrid.Rows.Add(); - pdfGridRow.Cells[0].Value = "E01"; - pdfGridRow.Cells[1].Value = "Clay"; - pdfGridRow.Cells[2].Value = "$10,000"; - //Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty); - //Save the document. - pdfDocument.Save("Output.pdf"); - //Close the document - pdfDocument.Close(true); - - - 'Create a new PDF document. - Dim pdfDocument As New PdfDocument() - Dim pdfPage As PdfPage = pdfDocument.Pages.Add() - 'Create a new PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Add three columns. - pdfGrid.Columns.Add(3) - For Each column As PdfGridColumn In pdfGrid.Columns - 'Set width. - column.Width = 150 - Next - 'Add header. - pdfGrid.Headers.Add(1) - Dim pdfGridHeader As PdfGridRow = pdfGrid.Headers(0) - pdfGridHeader.Cells(0).Value = "Employee ID" - pdfGridHeader.Cells(1).Value = "Employee Name" - pdfGridHeader.Cells(2).Value = "Salary" - 'Add rows. - Dim pdfGridRow As PdfGridRow = pdfGrid.Rows.Add() - pdfGridRow.Cells(0).Value = "E01" - pdfGridRow.Cells(1).Value = "Clay" - pdfGridRow.Cells(2).Value = "$10,000" - 'Draw the PdfGrid. - pdfGrid.Draw(pdfPage, PointF.Empty) - 'Save the document. - pdfDocument.Save("Output.pdf") - 'Close the document - pdfDocument.Close(True) - - - - - - Gets the at the specified index.[Read-Only] - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the number of columns in the .[Read-Only] - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Get the columns count. - int count = pdfGrid.Columns.Count; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Get the columns count. - Dim count As Integer = pdfGrid.Columns.Count - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the widths. - - The widths. - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The column collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - Provides customization of the settings for the particular row. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Check whether the row height set explicity. - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Calculates the height. - - - - - - Measures the width. - - - - - - Enables you to set the appearance of the row in a . - - The cell style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the specific row - pdfGrid.Rows[0].ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the specific row - pdfGrid.Rows(0).ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the cells from the selected row.[Read-Only] - - The cells. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Usage of cell collection - pdfGrid.Rows[0].Cells[0].Value = "E03"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Usage of cell collection - pdfGrid.Rows(0).Cells(0).Value = "E03" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the parent grid. - - The parent grid. - - - - Gets or sets the row style. - - The row style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - rowStyle.BackgroundBrush = PdfBrushes.Cyan; - //Apply style to the row - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create row style - Dim rowStyle As New PdfGridRowStyle() - rowStyle.BackgroundBrush = PdfBrushes.Cyan - 'Apply style to the row - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the height of the row. - - The height. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Apply row height - pdfGrid.Rows[0].Height = 100; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Apply row height - pdfGrid.Rows(0).Height = 100 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the width. - - The width. - - - - Gets or sets a value indicating whether [row span exists]. - - true if [row span exists]; otherwise, false. - - - - Gets or sets a value indicating whether [column span exists]. - - true if [column span exists]; otherwise, false. - - - - Height of the row yet to be drawn after split. - - - - - Gets or sets the index of the cell at which the row breaks when AllowHorizonalOverflow is true. - - - - - Holds the result of nested grid. - - - - - Returns index of the row. - - - - - Check whether the Row has row span or row merge continue. - - - - - Get or set the tag for the element - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Apply row height - pdfGrid.Rows[0].Height = 100; - //Set PDF tag. - pdfGrid.Rows[0].PdfTag = new PdfStructureElement(PdfTagType.TableRow); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Apply row height - pdfGrid.Rows(0).Height = 100 - 'Set PDF tag. - pdfGrid.Rows(0).PdfTag = New PdfStructureElement(PdfTagType.TableRow) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides access to an ordered, strongly typed collection of objects. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row - PdfGridRow row = pdfGrid.Rows.Add(); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row - Dim row As PdfGridRow = pdfGrid.Rows.Add() - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Add new row to the grid. - - The added row - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row - PdfGridRow row = pdfGrid.Rows.Add(); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row - Dim row As PdfGridRow = pdfGrid.Rows.Add() - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Add the row to the grid. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Adding new Row - PdfGridRow row = new PdfGridRow(pdfGrid); - pdfGrid.Rows.Add(row); - row.Cells[0].Value = "E03"; - row.Cells[1].Value = "Bran"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Adding new Row - Dim row As New PdfGridRow(pdfGrid) - pdfGrid.Rows.Add(row) - row.Cells(0).Value = "E03" - row.Cells(1).Value = "Bran" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets the row span and column span to a cell. - - Index of the row. - Index of the cell. - The row span. - The col span. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Set Span to the cell - pdfGrid.Rows.SetSpan(0, 0, 2, 2); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Set Span to the cell - pdfGrid.Rows.SetSpan(0, 0, 2, 2) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Applies the style to all the rows in the grid. - - The style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the specific row - pdfGrid.Rows.ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the specific row - pdfGrid.Rows.ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the settings for the header. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - pdfGrid.Headers[0].Cells[0].Value="Column1"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with the parent grid. - - The parent grid. - - - - Adds the specified row. - - The row. - - - - enables you to quickly and easily add rows to the header at run time. - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Add new row to the header - PdfGridRow[] header = pdfGrid.Headers.Add(1); - header[1].Cells[0].Value = "New Header"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Add new row to the header - Dim header As PdfGridRow() = pdfGrid.Headers.Add(1) - header(1).Cells(0).Value = "New Header" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Removes all the header information in the . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Removes all the header in the PdfGrid - pdfGrid.Headers.Clear(); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Removes all the header in the PdfGrid - pdfGrid.Headers.Clear() - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Enables you to set the appearance of the header row in a . - - The style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Create Cell Style - PdfGridCellStyle style = new PdfGridCellStyle(); - style.TextBrush = PdfBrushes.Cyan; - //Apply style to the header - pdfGrid.Headers.ApplyStyle(style); - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Create Cell Style - Dim style As New PdfGridCellStyle() - style.TextBrush = PdfBrushes.Cyan - 'Apply style to the header - pdfGrid.Headers.ApplyStyle(style) - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Returns an enumerator that iterates through a collection. - - - An object that can be used to iterate through the collection. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - foreach (PdfGridRow hRow in pdfGrid.Headers) - { - hRow.Cells[0].Value = "Column1"; - } - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a object that represents the header row in a control.[Read-Only] - - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Header collection - pdfGrid.Headers[0].Cells[0].Value="Column1"; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Header collection - pdfGrid.Headers(0).Cells(0).Value = "Column1" - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the number of header in the .[Read-Only] - - The count. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Gets the number of rows in the header - int count = pdfGrid.Headers.Count; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Gets the number of rows in the header - Dim count As Integer = pdfGrid.Headers.Count - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Column collection enumerator. - - - - - Initializes a new instance of the struct. - - The row collection. - - - - Advances the enumerator to the next element of the collection. - - - true if the enumerator was successfully advanced to the next element; false if the enumerator has passed the end of the collection. - - - The collection was modified after the enumerator was created. - - - - - Sets the enumerator to its initial position, which is before the first element in the collection. - - - The collection was modified after the enumerator was created. - - - - - Checks the index. - - - - - Gets the current. - - The current. - - - - The class used represents the cell border of the PDF grid - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initialize a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the left. - - The left. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the right. - - The right. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the top. - - The top. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bottom. - - The bottom. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.Left = PdfPens.Red; - border.Right = PdfPens.Blue; - border.Top = PdfPens.Green; - border.Bottom = PdfPens.Orange; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - pdfGrid.Style.CellSpacing = 2; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.Left = PdfPens.Red - border.Right = PdfPens.Blue - border.Top = PdfPens.Green - border.Bottom = PdfPens.Orange - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - pdfGrid.Style.CellSpacing = 2 - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets all. - - All. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = new PdfBorders(); - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As New PdfBorders() - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets a value indicating whether this instance is all. - - true if this instance is all; otherwise, false. - - - - Gets the default border. - - The default. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle rowStyle = new PdfGridCellStyle(); - //Creating Border - PdfBorders border = PdfBorders.Default; - border.All = PdfPens.Blue; - //setting border to the style - rowStyle.Borders = border; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim rowStyle As New PdfGridCellStyle() - 'Creating Border - Dim border As PdfBorders = PdfBorders.Default - border.All = PdfPens.Blue - 'setting border to the style - rowStyle.Borders = border - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The class used represents the edges of the grid cells - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class with left,right,top and bottom values. - - The left. - The right. - The top. - The bottom. - - - - Gets or sets the left value of the edge - - The left value of the edge. - - - - Gets or sets the right value of the edge. - - The right value of the edge. - - - - Gets or sets the top value of the edge - - The top value of the edge. - - - - Gets or sets the bottom value of the edge. - - The bottom value of the edge. - - - - Sets value to all sides left,right,top and bottom - - The integer value to all sides - - - - Gets a value indicating whether this instance is all. - - true if this instance is all; otherwise, false. - - - - The class used represents the cell padding of the PDF grid - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Adding cell padding - gridStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Adding cell padding - gridStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class with spacing of all sides Left,Right,Top,Bottom - - The left space. - The right space. - The top space. - The bottom space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Adding cell padding - gridStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Adding cell padding - gridStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the left space of padding. - - The left space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the right space of padding. - - The right space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the top space of padding. - - The top space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the bottom space of padding. - - The bottom space. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.Left = 5; - paddings.Top = 10; - paddings.Bottom = 10; - paddings.Right = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.Left = 5 - paddings.Top = 10 - paddings.Bottom = 10 - paddings.Right = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Sets space value to all sides of a cell Left,Right,Top,Bottom. - - The space value of all sides Left,Right,Top,Bottom. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Create new padding instance. - PdfPaddings paddings = new PdfPaddings(); - paddings.All = 5; - //Adding cell padding - gridStyle.CellPadding = paddings; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Create new padding instance. - Dim paddings As PdfPaddings = New PdfPaddings() - paddings.All = 5 - 'Adding cell padding - gridStyle.CellPadding = paddings - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Represents the grid built-in style settings. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the columns in a table, - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the rows in a table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Base class for the grid style - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Creates a new object that is a copy of the current instance. - - - A new object that is a copy of this instance. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Clone the PDF grid style instance. - PdfGridStyle style1 = gridStyle.Clone() as PdfGridStyle; - style1.Font = new PdfStandardFont(PdfFontFamily.Courier, 8); - pdfGrid.Style = style1; - pdfGrid.Draw(page, new PointF(10, 100)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Clone the PDF grid style. - Dim style1 As PdfGridStyle = TryCast(gridStyle.Clone(), PdfGridStyle) - style1.Font = New PdfStandardFont(PdfFontFamily.Courier, 8) - pdfGrid.Style = style1 - pdfGrid.Draw(page, New PointF(10, 100)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the background brush. - - The background brush of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the text brush. - - The text brush of the PdfGrid. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the text pen. - - The text pen. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Set text pen. - gridStyle.TextPen = PdfPens.Red; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Set text pen. - gridStyle.TextPen = PdfPens.Red - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the font. - - The font. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Set text pen. - gridStyle.TextPen = PdfPens.Red; - //Set font. - gridStyle.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 16, PdfFontStyle.Bold); - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set background brush. - gridStyle.BackgroundBrush = PdfBrushes.Pink - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Set text pen. - gridStyle.TextPen = PdfPens.Red - 'Set font. - gridStyle.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 16, PdfFontStyle.Bold) - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the . - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Setting text pen for grid - gridStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell spacing of the . - - The cell spacing. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the cell padding. - - The cell padding. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the border overlap style of the . - - The border overlap style. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to allow horizontal overflow. - - - true if [allow horizontal overflow]; otherwise, false. - - Defalult Value: false - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the type of the horizontal overflow of the . - - The type of the horizontal overflow. - Default value: PdfHorizontalOverflowType.LastPage - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - //Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid row style - Dim rowStyle As New PdfGridRowStyle() - 'Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid row style - PdfGridRowStyle rowStyle = new PdfGridRowStyle(); - //Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Style = rowStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid row style - Dim rowStyle As New PdfGridRowStyle() - 'Setting text pen for row - rowStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Style = rowStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Provides customization of the appearance for the - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Setting text pen for cell - cellStyle.TextBrush = PdfBrushes.Blue; - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Setting text pen for cell - cellStyle.TextBrush = PdfBrushes.Blue - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Initializes a new instance of the class. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets the default format. - - - - - - Gets the string format of the . - - The string format. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the border of the . - - The border. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the background image in the - - The background image. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets the edges. - - The edges. - - - - Gets or sets the cell padding. - - The cell padding. - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid cell style - PdfGridCellStyle cellStyle = new PdfGridCellStyle(); - //Create new PDF string format instance. - PdfStringFormat format = new PdfStringFormat(); - format.Alignment = PdfTextAlignment.Center; - //Set string format to grid cell. - cellStyle.StringFormat = format; - //Set borders. - PdfBorders borders = new PdfBorders(); - borders.All = PdfPens.Red; - cellStyle.Borders = borders; - //Set background image. - cellStyle.BackgroundImage = new PdfBitmap("Autumn Leaves.jpg"); - //Set cell paddings. - cellStyle.CellPadding = new PdfPaddings(5, 5, 5, 5); - //Applying style to grid - pdfGrid.Rows[0].Cells[0].Style = cellStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid cell style - Dim cellStyle As New PdfGridCellStyle() - 'Create new PDF string format instance. - Dim format As New PdfStringFormat() - format.Alignment = PdfTextAlignment.Center - 'Set string format to grid cell. - cellStyle.StringFormat = format - 'Set borders. - Dim borders As New PdfBorders() - borders.All = PdfPens.Red - cellStyle.Borders = borders - 'Set background image. - cellStyle.BackgroundImage = New PdfBitmap("Autumn Leaves.jpg") - 'Set cell paddings. - cellStyle.CellPadding = New PdfPaddings(5, 5, 5, 5) - 'Applying style to grid - pdfGrid.Rows(0).Cells(0).Style = cellStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Describe the possible values of PdfHorizontalOverflowType. If a grid is drawn which doesn't fits within a single page, it will be splited to several pages. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a PdfGrid. - PdfGrid pdfGrid = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - //Assign data source. - pdfGrid.DataSource = dataTable; - //Using the Column collection - pdfGrid.Columns[0].Width = 100; - //Adding grid style - PdfGridStyle gridStyle = new PdfGridStyle(); - //Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = true; - //Set cell padding - gridStyle.CellPadding = new PdfPaddings(5,5,5,5); - //Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F; - //Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - //Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage; - //Applying style to grid - pdfGrid.Style = gridStyle; - //Draw grid to the page of PDF document. - pdfGrid.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a PdfGrid. - Dim pdfGrid As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() {"E01", "Clay"}) - dataTable.Rows.Add(New Object() {"E02", "Thomas"}) - 'Assign data source. - pdfGrid.DataSource = dataTable - 'Using the Column collection - pdfGrid.Columns(0).Width = 100 - 'Adding grid style - Dim gridStyle As New PdfGridStyle() - 'Allow grid to overflow horizontally - gridStyle.AllowHorizontalOverflow = True - 'Set cell padding - gridStyle.CellPadding = New PdfPaddings(5,5,5,5) - 'Adding cell spacing between cells - gridStyle.CellSpacing = 0.5F - 'Set border ovelay style. - gridStyle.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - 'Set horizontal overflow type. - gridStyle.HorizontalOverflowType = PdfHorizontalOverflowType.LastPage - 'Applying style to grid - pdfGrid.Style = gridStyle - 'Draw grid to the page of PDF document. - pdfGrid.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draws the overflowing grid as next page - - - - - Draws the overflowing grid as last page - - - - - Delegate for handling StartCellLayoutEvent. - - The sender of the event. - The arguments of the event. - This event is raised when laying out a cell on a page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table=new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender,PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - Class - Class - - - - Delegate for handling EndCellLayoutEvent. - - The sender of the event. - The arguments of the event. - This event is raised when you have finished laying out a page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Arguments of BeginPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The bounds. - The page. - The start row. - - - - Gets the start row index.[Read-Only] - - The start row. - - - - Arguments of EndPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The result. - The start row. - The end row. - - - - Represents arguments of StartCellLayout Event. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the abstract class of the . - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets the index of the row. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Gets the index of the cell. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - //Get the cell index. - int index = args.CellIndex; - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - 'Get the cell index. - Dim index As Integer = args.CellIndex - End Sub - - - - - - Gets the value. - - The value might be null or an empty string, - which means that either no text were acquired or all - text was on the previous page. - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - //Get the cell value. - string text = args.Value; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - 'Get value - Dim text As String = args.Value - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) /// - End If - End Sub - - - - - - Gets the bounds of the cell. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Gets the graphics, on which the cell should be drawn. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.BeginCellLayout += new PdfGridBeginCellLayoutEventHandler(table_BeginCellLayout); - table.DataSource = dataTable; - table.Style.CellPadding = 16; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_BeginCellLayout(object sender, PdfGridBeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.BeginCellLayout, AddressOf table_BeginCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As PdfGridBeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White,args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets or sets a value indicating whether the value of this cell should be skipped. - - - - - Represents arguments of EndCellLayout Event. - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Get the PdfGridCellStyle - - - - // Creates a new document - PdfDocument doc = new PdfDocument(); - RectangleF rect = new RectangleF(0, 0, 500, 50); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - PdfPage page = doc.Pages.Add(); - PdfPageTemplateElement top = new PdfPageTemplateElement(rect); - PdfGrid table = new PdfGrid(); - // Subscribe the cell layout event - table.EndCellLayout += new PdfGridEndCellLayoutEventHandler(table_EndCellLayout); - table.DataSource = dataTable; - // Draws the table in page - table.Draw(page.Graphics); - doc.Save("Tables.pdf"); - // Cell layout event handler - void table_EndCellLayout(object sender, PdfGridEndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Creates a new document - Dim doc As PdfDocument = New PdfDocument() - Dim rect As RectangleF = New RectangleF(0, 0, 500, 50) - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - Dim page As PdfPage = doc.Pages.Add() - Dim top As PdfPageTemplateElement = New PdfPageTemplateElement(rect) - Dim table As PdfGrid = New PdfGrid() - ' Subscribe the cell layout event - AddHandler table.EndCellLayout, AddressOf table_EndCellLayout - table.DataSource = dataTable - table.Style.CellPadding = 16 - ' Draws the table in page - table.Draw(page.Graphics) - doc.Save("Tables.pdf") - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As PdfGridEndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents base class for markers. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Marker font. - - - - - Marker brush. - - - - - Marker pen. - - - - - The string format of the marker. - - - - - Marker alignment. - - - - - Gets or sets marker font. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets marker brush. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets marker pen. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the format. - - The format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets a value indicating whether the marker is - situated at the left of the list or at the right of the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set font. - marker.Font = font; - //Set pen. - marker.Pen = PdfPens.Red; - //Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left; - //Set marker string format. - marker.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set font. - marker.Font = font - 'Set pen. - marker.Pen = PdfPens.Red - 'Set marker alignment. - marker.Alignment = PdfListMarkerAlignment.Left - 'Set marker string format. - marker.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Indicates is alignment right. - - - - - Represents marker for ordered list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Holds numbering style. - - - - - Start number for ordered list. - - - - - Delimiter for numbers. - - - - - Finalizer for numbers. - - - - - Current index of item. - - - - - Initializes a new instance of the class. - - Number style of marker. - Number delimiter of marker. - Number suffix of marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, ".", ".", font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, ".", ".", font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - Number style of marker. - Number suffix of the marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, ".", font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, ".", font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - Number style of marker. - Number font of marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Draw marker in specified point at graphics. - - Pdf graphics. - The location point. - - - - Draw marker in specified point at page. - - The page. - The point. - - - - Gets the marker number. - - Number in string. - - - - Gets or sets the list numbering style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets ar sets start number for ordered list. Default value is 1. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the delimiter. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Delimiter = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Delimiter = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the suffix of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Alignment = PdfListMarkerAlignment.Right; - subList.Marker.Suffix = "."; - subList.Marker.StartNumber = 2; - subList.Marker.Style = PdfNumberStyle.UpperRoman; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Creates a new page and adds it as the last page of the document - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Alignment = PdfListMarkerAlignment.Right - subList.Marker.Suffix = "." - subList.Marker.StartNumber = 2 - subList.Marker.Style = PdfNumberStyle.UpperRoman - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Gets or sets the index of the current item. - - - - - Represents bullet for the list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Holds the marker text. - - - - - Holds the marker style. - - - - - Holds the marker image. - - - - - Marker temlapte. - - - - - Marker size. - - - - - Font used when draws styled marker - - - - - Initializes a new instance of the class. - - The text of the marker. - Marker font. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker("list", font); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker("list", font) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The style of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - The image of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker = new PdfUnorderedMarker(new PdfBitmap("Bullet.jpg")); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - list.Marker = New PdfUnorderedMarker(New PdfBitmap("Bullet.jpg")) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Initializes a new instance of the class. - - Template of the marker. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Create a new PDF template instance. - PdfTemplate template = new PdfTemplate(100, 100); - template.Graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 100)); - //Set template to marker. - list.Marker = new PdfUnorderedMarker(template); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Create a new PDF template instance. - Dim template As PdfTemplate = New PdfTemplate(100, 100) - template.Graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 100)) - 'Set template to marker. - list.Marker = New PdfUnorderedMarker(template) - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - - - - Draws the specified graphics. - - The graphics. - The point. - The brush. - The pen. - - - - Draws the specified page. - - The page. - The point. - The brush. - The pen. - - - - Gets the styled text. - - Returns symbol represented of style. - - - - Gets or sets template of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Create a new PDF template instance. - PdfTemplate template = new PdfTemplate(100, 100); - template.Graphics.DrawRectangle(PdfBrushes.Red, new RectangleF(0, 0, 100, 100)); - //Set template to marker. - list.Marker.Template = template; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Create a new PDF template instance. - Dim template As PdfTemplate = New PdfTemplate(100, 100) - template.Graphics.DrawRectangle(PdfBrushes.Red, New RectangleF(0, 0, 100, 100)) - 'Set template to marker. - list.Marker.Template = template - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - - - - Gets or sets image of the marker. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the list image - list.Marker.Image = new PdfBitmap("Bullet.jpg"); - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the list image - list.Marker.Image = new PdfBitmap("Bullet.jpg") - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Gets or sets marker text. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker Text - list.Marker.Text = "List: "; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker Text - list.Marker.Text = "List: " - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - - - - Gets or sets the style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Gets or sets the size. - - - - - Gets or sets the unicode font. - - - - - Specifies the marker style. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Marker have no style. - - - - - Marker is like a disk. - - - - - Marker is like a square. - - - - - Marker is like a Asterisk. - - - - - Marker is like a circle. - - - - - Marker is custom string. - - - - - Marker is custom image. - - - - - Marker is custom template. - - - - - Represents marker alignment. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(); - //Set the marker style - list.Marker.Alignment = PdfListMarkerAlignment.Left - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 20f; - font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold); - //Apply formattings to list - list.Font = font; - list.StringFormat = format; - //Set list indent - list.Indent = 10; - //Add items to the list - list.Items.Add("List of Essential Studio products"); - list.Items.Add("IO products"); - //Set text indent - list.TextIndent = 10; - //Draw list - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("UnOrderList.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList() - 'Set the marker alignment - list.Marker.Alignment = PdfListMarkerAlignment.Left - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14, PdfFontStyle.Bold) - 'Create string format - Dim format As PdfStringFormat = New PdfStringFormat() - format.LineSpacing = 20f - font = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Bold) - 'Apply formattings to list - list.Font = font - list.StringFormat = format - 'Set list indent - list.Indent = 10 - 'Add items to the list - list.Items.Add("List of Essential Studio products") - list.Items.Add("IO products") - 'Set text indent - list.TextIndent = 10 - 'Draw list - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("UnOrderList.pdf") - - - Class - Class - Class - Class - - - - Left alignment for marker. - - - - - Right alignment for marker. - - - - - Represents base class for lists. - - Class - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - The characters for splitting. - - - - - Creates an item collection. - - The text. - The item collection initialized properly. - - - - - Holds collection of items. - - - - - Tabulation for items. - - - - - Indent between marker and text. - - - - - List's font. - - - - - The pen for the list. - - - - - The brush for the list. - - - - - The string format for the list. - - - - - Creates new list. - - - - - Creates new list with items. - - Collection of list items. - - - - Initializes a new instance of the class. - - The font. - - - - Draws an list on the Graphics. - - Graphics context where the list should be printed. - X co-ordinate of the list. - Y co-ordinate of the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Draws list on the Graphics. - - Pdf graphics. - - - - Layouts list at page. - - Pdf layout parameters. - Returns layout results. - - - - Rise the BeginItemLayout event. - - The instance containing the event data. - - - - Rise the EndItemLayout event. - - The instance containing the event data. - - - - Gets items of the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets tabulation for the list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the indent from the marker to the list item text. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the list font. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets list brush. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets list pen. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the format of the list. - - The format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(graphics, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(graphics, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets a value indicating whether to raise begin item layout event. - - - - - Gets a value indicating whether to raise end item layout event. - - - - - Event that rises when item begin layout. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Event that rises when item end layout. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Represents the list item of the list. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Holds item font. - - - - - Holds item text. - - - - - Holds text format. - - - - - Holds pen. - - - - - Holds brush. - - - - - Sub list. - - - - - Text indent for current item. - - - - - Creates new empty pdf list item. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem(); - item1.Text = "PDF"; - PdfListItem item2 = new PdfListItem(); - item2.Text = "XlsIO"; - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem() - item1.Text = "PDF" - Dim item2 As New PdfListItem() - item2.Text = "XlsIO" - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates new pdf list item with default settings. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF"); - PdfListItem item2 = new PdfListItem("XlsIO"); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF") - Dim item2 As New PdfListItem("XlsIO") - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The text of item. - The font of item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font); - PdfListItem item2 = new PdfListItem("XlsIO", font); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font) - Dim item2 As New PdfListItem("XlsIO", font) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The text of item. - The font of item. - The string format. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font, format); - PdfListItem item2 = new PdfListItem("XlsIO", font, format); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font, format) - Dim item2 As New PdfListItem("XlsIO", font, format) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates new list item. - - The item text. - The item font. - The string format of item. - The item pen. - The item brush. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem("PDF", font, format, PdfPens.Red, PdfBrushes.Black); - PdfListItem item2 = new PdfListItem("XlsIO", font, format, PdfPens.Red, PdfBrushes.Black); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem("PDF", font, format, PdfPens.Red, PdfBrushes.Black) - Dim item2 As New PdfListItem("XlsIO", font, format, PdfPens.Red, PdfBrushes.Black) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets item font. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets item text. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Text = "Grid"; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Text = "Grid" - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets item string format. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets list item pen. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Pen = new PdfPen(PdfBrushes.Blue); - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Pen = New PdfPen(PdfBrushes.Blue) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets list item brush. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates an item - PdfListItem item = new PdfListItem("Tools"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Tools") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - gridItem.Brush = PdfBrushes.BlueViolet - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets sublist for item. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Brush = PdfBrushes.Black; - subList.Indent = 20; - subList.Items.Add("Essential PDF"); - subList.Items.Add("Essential DocIO"); - subList.Items.Add("Essrntial XlsIO"); - list.Items[0].SubList = subList; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Brush = PdfBrushes.Black - subList.Indent = 20 - subList.Items.Add("Essential PDF") - subList.Items.Add("Essential DocIO") - subList.Items.Add("Essrntial XlsIO") - list.Items(0).SubList = subList - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Gets or sets indent for item. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.TextIndent = 10; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker.Brush = PdfBrushes.Black; - subList.Indent = 20; - subList.Items.Add("Essential PDF"); - subList.Items.Add("Essential DocIO"); - subList.Items.Add("Essrntial XlsIO"); - list.Items[0].SubList = subList; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.TextIndent = 10 - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker.Brush = PdfBrushes.Black - subList.Indent = 20 - subList.Items.Add("Essential PDF") - subList.Items.Add("Essential DocIO") - subList.Items.Add("Essrntial XlsIO") - list.Items(0).SubList = subList - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Get or set the tag for the element - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Create new PDF list items. - PdfListItem item1 = new PdfListItem(); - item1.Text = "PDF"; - item1.PdfTag = new PdfStructureElement(PdfTagType.ListItem); - PdfListItem item2 = new PdfListItem(); - item2.Text = "XlsIO"; - item2.PdfTag = new PdfStructureElement(PdfTagType.ListItem); - list.Items.Add(item1); - list.Items.Add(item2); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Create new PDF list items. - Dim item1 As New PdfListItem() - item1.Text = "PDF" - item1.PdfTag = New PdfStructureElement(PdfTagType.ListItem) - Dim item2 As New PdfListItem() - item2.Text = "XlsIO" - item2.PdfTag = New PdfStructureElement(PdfTagType.ListItem) - list.Items.Add(item1) - list.Items.Add(item2) - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Represents collection of list items. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - - - - Initializes a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - A string array that contains items separated by the new line character. - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - - - - Adds the specified item. - - The item. - The item index in collection. - - - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.TextIndent = 10; - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item); - listItemCollection.Add(gridItem); - - - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.TextIndent = 10 - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item) - listItemCollection.Add(gridItem) - - - - - - Adds the specified item. - - The item. - The item indent. - - - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(); - // Creates an item - PdfListItem item = new PdfListItem("Backoffice"); - item.TextIndent = 10; - item.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Creates Grid list item - PdfListItem gridItem = new PdfListItem("Grid"); - gridItem.Brush = PdfBrushes.BlueViolet; - gridItem.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Adding items in collection - listItemCollection.Add(item, 10); - listItemCollection.Add(gridItem, 10); - - - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection() - ' Creates an item - Dim item As PdfListItem = New PdfListItem("Backoffice") - item.TextIndent = 10 - item.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Creates Grid list item - Dim gridItem As PdfListItem = New PdfListItem("Grid") - gridItem.Brush = PdfBrushes.BlueViolet - gridItem.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - ' Adding items in collection - listItemCollection.Add(item, 10) - listItemCollection.Add(gridItem, 10) - - - - - - Adds the item with a specified text. - - The text. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The item indent. - List item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", 10); - collection.Add("XlsIO", 10); - collection.Add("DocIO",10); - collection.Add("PPT", 10); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", 10) - collection.Add("XlsIO", 10) - collection.Add("DocIO", 10) - collection.Add("PPT", 10) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The font. - The item index in collection. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", font); - collection.Add("XlsIO", font); - collection.Add("DocIO", font); - collection.Add("PPT", font); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", font) - collection.Add("XlsIO", font) - collection.Add("DocIO", font) - collection.Add("PPT", font) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Adds the specified text. - - The text. - The font. - The item indent. - List item. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF", font, 10); - collection.Add("XlsIO", font, 10); - collection.Add("DocIO", font, 10); - collection.Add("PPT", font, 10); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF", font, 10) - collection.Add("XlsIO", font, 10) - collection.Add("DocIO", font, 10) - collection.Add("PPT", font, 10) - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Inserts item at the specified index. - - The specified index. - The item. - The item index - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem newItem = new PdfListItem("PDF"); - // Insert a new item in the collection - listItemCollection.Insert(0, newItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim newItem As PdfListItem = New PdfListItem("PDF") - ' Insert a new item in the collection - listItemCollection.Insert(0, newItem) - - - - - - Inserts the specified index. - - The index. - The item. - The item indent. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem newItem = new PdfListItem("PDF"); - // Insert a new item in the collection - listItemCollection.Insert(0, newItem, 10); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim newItem As PdfListItem = New PdfListItem("PDF") - ' Insert a new item in the collection - listItemCollection.Insert(0, newItem, 10) - - - - - - Removes the specified item from the list. - - The specified item. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - PdfListItem toolsItem = new PdfListItem("Tools"); - // Remove 'Tools' list item - listItemCollection.Remove(toolsItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - Dim toolsItem As PdfListItem = New PdfListItem("Tools") - ' Remove 'Tools' list item - listItemCollection.Remove(toolsItem) - - - - - - Removes the item at the specified index from the list. - - he specified index. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Remove the firse item from the collection - listItemCollection.RemoveAt(0); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Remove the firse item from the collection - listItemCollection.RemoveAt(0) - - - - - - Determines the index of a specific item in the list. - - The item to locate in the list. - The index of item if found in the list; otherwise, -1. - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Creates 'Tools' list item - PdfListItem toolsItem = new PdfListItem("Tools"); - int indexOf = listItemCollection.IndexOf(toolsItem); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Creates 'Tools' list item - Dim toolsItem As PdfListItem = New PdfListItem("Tools") - Dim indexOf As Integer = listItemCollection.IndexOf(toolsItem) - - - - - - Clears collection. - - - - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - // Clears the list - listItemCollection.Clear(); - - - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - ' Clears the list - listItemCollection.Clear() - - - - - - Gets the PdfListItem from collection at the specified index. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - Dim products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Dim listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Dim list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - - - - Layouts list. - - Class - - - - Current graphics for lay outing. - - - - - Indicates end of lay outing. - - - - - List that layouts at the moment. - - - - - Stack than contains ListInfo. - - - - - Index of item that lay outing. - - - - - The indent of current list. - - - - - Height in which it stop lay outing. - - - - - Lay outing bounds. - - - - - Current page for layout. - - - - - Size for item lay outing. - - - - - If true it use paginate bounds if it is set. - - - - - Current brush for lay outing. - - - - - Current pen for layout. - - - - - Current font for layout. - - - - - Current string format. - - - - - Marker maximum width. - - - - - Initializes a new instance of the class. - - The element. - - - - Layouts on the specified Graphics. - - The Graphics. - The x-coordinate of element. - The y-coordinate of element. - - - - Layouts on the specified Graphics. - - The graphics to draw. - The location point. - - - - Layouts on the specified Graphics. - - The graphics to draw. - The location boundaries. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets the width of the marker max. - - The list. - The info. - - - - Sets the current parameters. - - The list. - - - - Sets the current parameters. - - The item. - - - - Layouts the on the page. - - The page layout result. - Returns page layout result. - - - - Draws the item. - - The page result. - The x position. - The current list. - The index of the item. - The indent of the list. - The list info. - The current item. - The current height. - The y position. - - - - Determines whether is null or empty the specified text. - - The text. - - true if is null or empty the specified text, otherwise, false. - - - - - Afters the item layouted. - - The item that layout. - The page at which item layouted. - - - - Before the item layout. - - The item that layouts. - The page at which item layout. - - - - After the page layouted. - - The current bounds. - The current page. - The current list. - - - - Before the page layout. - - The current bounds. - The current page. - The cuurent list. - - - - Creates the marker result. - - The index of the item. - The current list. - The list info. - The current item. - Returns marker layout result. - - - - Craetes the unordered marker result. - - The current list. - The current item. - Size of the marker. - - - - - Creates the ordered marker result. - - The list. - The item. - The index. - The info. - if it is to find max width, set to true. - - - - - Sets the marker alingment. - - The marker. - The marker format. - Markers string format. - - - - Draws the marker. - - The current list. - The current item. - The current marker result. - The current Y position. - The current X position. - Returns true if marker have been drawn. - - - - Draws the unordered marker. - - The current list. - The current marker result. - The current item. - The current X position. - The current Y position. - - - - - Draws the ordered marker. - - The current list. - The marker result. - The current item. - The current X position. - The current Y position. - - - - - Gets the markers font. - - The marker. - The item. - Returns font of the marker - - - - Gets the marker format. - - The marker. - The item. - Markers format. - - - - Gets the marker pen. - - The marker. - The item. - Markers pen. - - - - Gets the marker brush. - - The marker. - The item. - Markers brush. - - - - Gets or sets element. - - - - - Represents information about list. - - - - - Index of list. - - - - - Represents list. - - - - - The number of item at specified index. - - - - - Lists brush. - - - - - Lists pen. - - - - - Lists font. - - - - - Lists format. - - - - - Marker width; - - - - - Initializes a new instance of the class. - - The list. - The index of the list. - The number if list is ordered list otherwise null. - - - - Initializes a new instance of the class. - - The list. - The index. - - - - Gets or sets the index. - - The indexof the list. - - - - Gets or sets the list. - - The list. - - - - Gets or sets the number. - - The number of ordered list. - - - - Gets or sets the brush. - - - - - Gets or sets the pen. - - - - - Gets or sets the font. - - - - - Gets or sets the format. - - The format. - - - - Represents Page Layout result. - - - - - If true item finished layout on page. - - - - - Y-ordinate of broken item of marker. - - - - - Text of item that was not draw. - - - - - Text of marker that was not draw. - - - - - If true marker start draw. - - - - - Width of marker. - - - - - X-coordinate of marker. - - - - - Represents begin page layout event arguments. - - Class - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - string[] products = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" }; - // Creates an item collection - PdfListItemCollection listItemCollection = new PdfListItemCollection(products); - //Create a unordered list - PdfUnorderedList list = new PdfUnorderedList(listItemCollection); - //Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - // Event handler - list.BeginPageLayout += new BeginPageLayoutEventHandler(list_BeginPageLayout); - list.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - // Event handler - void list_BeginPageLayout(object sender, BeginPageLayoutEventArgs e) - { - // Set the new bounds for the list - e.Bounds = new RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height); - } - - - 'Create a new PDf document - Private document As PdfDocument = New PdfDocument() - 'Create a page - Private page As PdfPage = document.Pages.Add() - Private graphics As PdfGraphics = page.Graphics - Private products() As String = { "Tools", "Grid", "Chart", "Edit", "Diagram", "XlsIO", "Grouping", "Calculate", "PDF", "HTMLUI", "DocIO" } - ' Creates an item collection - Private listItemCollection As PdfListItemCollection = New PdfListItemCollection(products) - 'Create a unordered list - Private list As PdfUnorderedList = New PdfUnorderedList(listItemCollection) - 'Set the marker style - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - ' Event handler - AddHandler list.BeginPageLayout, AddressOf list_BeginPageLayout - list.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - ' Event handler - Private Sub list_BeginPageLayout(ByVal sender As Object, ByVal e As BeginPageLayoutEventArgs) - ' Set the new bounds for the list - e.Bounds = New RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height) - End Sub - - - - - - List that that starts layout. - - - - - Initializes a new instance of the class. - - The bounds of the list. - The page in which list layouts. - The list that starts layout. - - - - Gets the list that starts layout. - - The list that starts layout. - - - // Event handler - void list_BeginPageLayout(object sender, BeginPageLayoutEventArgs e) - { - PdfUnorderedList list = sender as PdfUnorderedList; - list.Font = new PdfStandardFont(PdfFontFamily.Helvetica, 12); - // Set the new bounds for the list - e.Bounds = new RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height); - } - - - ' Event handler - Private Sub list_BeginPageLayout(ByVal sender As Object, ByVal e As BeginPageLayoutEventArgs) - Dim list As PdfUnorderedList = TryCast(sender, PdfUnorderedList) - list.Font = New PdfStandardFont(PdfFontFamily.Helvetica, 12) - ' Set the new bounds for the list - e.Bounds = New RectangleF(0, 0, e.Page.GetClientSize().Width, e.Page.GetClientSize().Height) - End Sub - - - - - - Represents begin page layout event arguments. - - Class - - - - List that ended layout. - - - - - Initializes a new instance of the class. - - The layout result. - The list that ended layout. - - - - Gets the list that ended layout. - - The list that ended layout. - - - - The Syncfusion.Pdf.Lists namespace contains classes for creating structure elements in PDF document. - - - - - Represents the ordered list. - - Class - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - - - - Marker of the list. - - - - - True if user want to use numbering hierarchy, otherwise false. - - - - - Initialize a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(font); - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Set marker to the ordered list. - list.Marker = marker; - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList(font) - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Set marker to the ordered list. - list.Marker = marker - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The style. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(PdfNumberStyle.Numeric); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create Ordered list - Dim list As New PdfOrderedList(PdfNumberStyle.Numeric) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates ordered list using items. - - Items for a list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new PDF list item instance. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(collection); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new PDF list item instance. - Dim collection As New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create Ordered list - Dim list As New PdfOrderedList(collection) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(marker); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Add items to the list - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Create Ordered list - Dim list As New PdfOrderedList() - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Add items to the list - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The item collection. - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new order list marker. - PdfOrderedMarker marker = new PdfOrderedMarker(PdfNumberStyle.Numeric, font); - //Set marker brush. - marker.Brush = PdfBrushes.Black; - //Create new PDF list item instance. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create Ordered list - PdfOrderedList list = new PdfOrderedList(collection, marker); - //Set line indent. - list.Indent = 20; - //Set format for sub list. - list.Font = font; - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new order list marker. - Dim marker As New PdfOrderedMarker(PdfNumberStyle.Numeric, font) - 'Set marker brush. - marker.Brush = PdfBrushes.Black - 'Create new PDF list item instance. - Dim collection As New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create Ordered list - Dim list As New PdfOrderedList(collection, marker) - 'Set line indent. - list.Indent = 20 - 'Set format for sub list - list.Font = font - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - - - Creates the marker. - - The style of the list marker. - Returns marker with specified style. - - - - Gets or sets marker of the list items. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - True if user want to use numbering hierarchy, otherwise false. - - - - //Create a new PDf document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - PdfGraphics graphics = page.Graphics; - //Create a font and write title - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold); - //Create a unordered list - PdfOrderedMarker list = new PdfOrderedMarker(PdfNumberStyle.LowerRoman, font); - //Create Ordered list as sublist of parent list - PdfOrderedList subList = new PdfOrderedList(); - subList.Marker = list; - subList.MarkerHierarchy = true; - //Add items to the list - subList.Items.Add("List of Essential Studio products"); - subList.Items.Add("IO products"); - subList.Items.Add("Grid products"); - subList.Items.Add("Tools products"); - //Draw list - subList.Draw(page, new RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)); - document.Save("List.pdf"); - - - 'Create a new PDf document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - Dim graphics As PdfGraphics = page.Graphics - 'Create a font and write title - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 14,PdfFontStyle.Bold) - 'Create a unordered list - Dim list As PdfOrderedMarker = New PdfOrderedMarker(PdfNumberStyle.LowerRoman, font) - 'Create Ordered list as sublist of parent list - Dim subList As PdfOrderedList = New PdfOrderedList() - subList.Marker = list - subList.MarkerHierarchy = True - 'Add items to the list - subList.Items.Add("List of Essential Studio products") - subList.Items.Add("IO products") - subList.Items.Add("Grid products") - subList.Items.Add("Tools products") - 'Draw list - subList.Draw(page, New RectangleF(0, 130, page.Graphics.ClientSize.Width, page.Graphics.ClientSize.Height)) - document.Save("List.pdf") - - - Class - Class - Class - - - - Represents unordered list. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - - - - Marker for the list. - - - - - Initializes a new instance of the class. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates unordered list using items. - - Items for a list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - PdfUnorderedList list = new PdfUnorderedList(collection); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The font. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(font); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(font) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The items collection. - The marker for the list. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - //Create new list items. - PdfListItemCollection collection = new PdfListItemCollection(); - collection.Add("PDF"); - collection.Add("XlsIO"); - collection.Add("DocIO"); - collection.Add("PPT"); - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - PdfUnorderedList list = new PdfUnorderedList(collection, marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create new list items. - Dim collection As PdfListItemCollection = New PdfListItemCollection() - collection.Add("PDF") - collection.Add("XlsIO") - collection.Add("DocIO") - collection.Add("PPT") - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(collection, marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class. - - The formatted text. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - string text = "PDF\nXlsIO\ndDocIO\nPPT"; - PdfUnorderedList list = new PdfUnorderedList(text); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - Dim text As String = "PDF\nXlsIO\ndDocIO\nPPT"; - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(text) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Initializes a new instance of the class - from formatted text that is splitted by new lines. - - The formatted text. - The marker. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - string text = "PDF\nXlsIO\ndDocIO\nPPT"; - //Create new unorder marker instance. - PdfUnorderedMarker marker = new PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - PdfUnorderedList list = new PdfUnorderedList(text, marker); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - Dim text As String = "PDF\nXlsIO\ndDocIO\nPPT"; - 'Create new unorder marker instance. - Dim marker As PdfUnorderedMarker = New PdfUnorderedMarker(PdfUnorderedMarkerStyle.Asterisk); - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList(text, marker) - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Creates the marker. - - The style marker of the marker. - Returns marker with specified style. - - - - Gets or sets the marker. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a PDF unordered list. - PdfUnorderedList list = new PdfUnorderedList(); - list.Marker.Style = PdfUnorderedMarkerStyle.Disk; - //Set line indent. - list.Indent = 20; - //Set font - list.Font = font; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - list.Items.Add("PPT"); - //Draw the PDF list to page. - list.Draw(page, new RectangleF(0, 20, size.Width, size.Height)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10F - 'Create a PDF unordered list. - Dim list As New PdfUnorderedList() - list.Marker.Style = PdfUnorderedMarkerStyle.Disk - 'Set line indent. - list.Indent = 20 - 'Set font - list.Font = font - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - list.Items.Add("PPT") - 'Draw the PDF list to page. - list.Draw(page, New RectangleF(0, 20, size.Width, size.Height)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Delegate for handling BeginItemLayoutEvent. - - The item that begin layout. - Begin Item Layout arguments. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Delegate for handling EndItemLayoutEvent. - - The item that end layout. - End Item Layout arguments. - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Represents begin layout event arguments. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Item that layout. - - - - - The page in which item start layout. - - - - - Initializes a new instance of the class. - - The item that layout. - The page in which item start layout. - - - - Gets the item. - - The item that layout. - - - - Gets the page. - - The page in which item start layout. - - - - Represents end layout event arguments. - - - - //Create a new instance of PdfDocument class. - PdfDocument document = new PdfDocument(); - //Add a new page to the document. - PdfPage page = document.Pages.Add(); - //Get the PDF page graphics. - PdfGraphics graphics = page.Graphics; - SizeF size = page.Graphics.ClientSize; - //Create font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic); - //Create string format - PdfStringFormat format = new PdfStringFormat(); - format.LineSpacing = 10f; - //Create a new list. - PdfOrderedList list = new PdfOrderedList(); - //Begin item layout event. - list.BeginItemLayout += List_BeginItemLayout; - //End item layout event. - list.EndItemLayout += List_EndItemLayout; - //Set indent. - list.Indent = 10; - //Set text indent. - list.TextIndent = 10; - //Set font. - list.Font = font; - //Set brush. - list.Brush = new PdfSolidBrush(Color.Red); - //Set pen. - list.Pen = PdfPens.Green; - //Set string format. - list.StringFormat = format; - //Add items. - list.Items.Add("PDF"); - list.Items.Add("XlsIO"); - list.Items.Add("DocIO"); - //Draw the PDF list to page. - list.Draw(page, 10,10); - // Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - private void List_EndItemLayout(object sender, EndItemLayoutEventArgs args) - { - //End item layout event. - } - - private void List_BeginItemLayout(object sender, BeginItemLayoutEventArgs args) - { - args.Item.Text += "_BeiginItem"; - } - - - 'Create a new instance of PdfDocument class. - Dim document As New PdfDocument() - 'Add a new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Get the PDF page graphics. - Dim graphics As PdfGraphics = page.Graphics - Dim size As SizeF = page.Graphics.ClientSize - 'Create font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 10, PdfFontStyle.Italic) - 'Create string format - Dim format As New PdfStringFormat() - format.LineSpacing = 10.0F - 'Create a new list. - Dim list As New PdfOrderedList() - 'Begin item layout event. - AddHandler list.BeginItemLayout, AddressOf List_BeginItemLayout - 'End item layout event. - AddHandler list.EndItemLayout, AddressOf List_EndItemLayout - 'Set indent. - list.Indent = 10 - 'Set text indent. - list.TextIndent = 10 - 'Set font. - list.Font = font - 'Set brush. - list.Brush = New PdfSolidBrush(Color.Red) - 'Set pen. - list.Pen = PdfPens.Green - 'Set string format. - list.StringFormat = format - 'Add items. - list.Items.Add("PDF") - list.Items.Add("XlsIO") - list.Items.Add("DocIO") - 'Draw the PDF list to page. - list.Draw(page, 10, 10) - ' Save and close the document. - document.Save("Output.pdf") - document.Close(True) - Private Sub List_EndItemLayout(sender As Object, args As EndItemLayoutEventArgs) - 'End item layout event. - End Sub - - Private Sub List_BeginItemLayout(sender As Object, args As BeginItemLayoutEventArgs) - args.Item.Text += "_BeiginItem" - End Sub - - - - - - Item that layouted. - - - - - The page in which item ended layout. - - - - - Initializes a new instance of the class. - - The item that layout. - The page in which item end layout. - - - - Gets the item that layout. - - The item that layout. - - - - Gets the page in which item ended layout. - - The page in which item ended layout. - - - - Represents the lay outing of tables. - - Class - - - - Cell values of a row being shared by pages. - - - - - The latest text results. - - - - - Current cell width. - - - - - Current page. - - - - - The chached bounds of the current page. - - - - - Holds the current graphics and is used when current page - is not available (e.g. drawing on a graphics). - - - - - Current bounds. - - - - - Stores cell spacing value. - - - - - Holds an array of integers that specify column spanning (horizontal mergin) - - - - - The index of the row dropped to the next page. - - - - - The index of the start column. - - - - - Initializes a new instance of the class. - - The table. - - - - Layouts the table on the specified graphics. - - The graphics. - The location. - - - - Layouts the table on the specified graphics. - - The graphics. - The boundaries. - - - - Layouts the element. - - Lay outing parameters. - Lay outing result. - - - - Gets the format. - - The format structure passed through parameters. - - PdfLightTableLayoutFormat class instance. - - - - - Gets the layout result. - - The page result. - Table layout result. - - - - Layouts the table part on a page. - - Start row index. - The lay outing parameters. - if set to true the current page is the first one. - Result of the lay outing. - - - - Crops a row to make it fit the starting and ending columns. - - The row. - The cropped row. - - - - Resizes rectangle so that the border will be drawn insize the bounds specified. - - The bounds. - The pen. - - - - - Create Bold style font - - - - - - - Create Regular style font - - - - - - - Create Italic style font - - - - - - - Draws a row. - - The param. - Index of the row. - The row data. - The row bouds. - Height of the row. - if it is header, set to true. - if it is stop, set to true. - Indicator if the row was drawn partly. - - - - Sets the transparency. - - The graphics. - The pen. - - - - Validates the span map. - - - - - Determines whether the specified row is incomplete. - - The results. - - true if the specified results is incomplete; otherwise, false. - - - - - Determines the height of the row. - - The param. - Index of the row. - The row. - The row bouds. - The results. - The cell style. - The height of the row. - - - - Drops lay outing to the next page. - - The results. - The count. - The row. - - - - Returns the width of the cell specified by the index. - - Index of the cell. - The width of the cell. - - - - Reduces the height (or width) according to overlapped and border width value. - - The height. - Width of the border. - if it is overlapped, set to true. - The proper height. - - - - Draws a cell. - - The layout result. - The bounds. - Index of the row. - Index of the cell. - The cell style. - The result of the drawing. - - - - Gets the cell style. - - Index of the row. - if set to true the cell is in header. - The cell style. - - - - Gets the widths. - - The bounds. - An array containing the widhts. - - - - Retrieves the next row. - - Start index of the row. - The param. - The next row. - - - - Gets the alpha channel value. - - The brush. - The alpha channel value. - - - - Raises BeforePageLayout event. - - The current page. - The current bounds. - The current row. - If true, stop lay outing. - - - - Raises PageLayout event if needed. - - Page layout result. - Event arguments. - - - - Raises the before row layout. - - Index of the row. - The cell style. - The arguments modified by the user. - - - - Raises the after row layout. - - Index of the row. - if set to true the row was drawn completely. - The row bouds. - Indicator whether the user stopped lay outing. - - - - Raises the before cell layout. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The cell value. - - - - Raises the after cell layout event. - - The graphics. - Index of the row. - Index of the cell. - The bounds of the cell. - The value of the cell. - - - - Gets shape element. Read only. - - - - - The last page where the text was drawn. - - - - - The bounds of the element on the last page where it was drawn. - - - - - Indicates whether the lay outing has been finished. - - - - - The index of the first row on the page. - - - - - The index of the last row on the page. - - - - - Represents the result of PdfLightTable which contains bounds and resultant page. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format) - 'Save the document. - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - Class - - - - Holds text layout results for the last row. - - - - - The index of the last row. - - - - - Initializes a new instance of the class. - - The current page. - The current bounds. - Index of the row. - The cell results. - - - - Gets the at the specified index. - - - - - Gets the index of the last row. Read-Only. - - - - // Create a new document - PdfDocument doc = new PdfDocument(); - //Create a new page - PdfPage page = doc.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - // Gets the last row index - int lastRow = result.LastRowIndex; - //Save the document. - doc.Save("Output.pdf"); - //Close the document - doc.Close(true); - - - ' Create a new document - Dim doc As New PdfDocument() - 'Create a new page - Dim page As PdfPage = doc.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format) - ' Gets the last row index - Dim lastRow As Integer = result.LastRowIndex - 'Save the document. - doc.Save("Output.pdf") - 'Close the document - doc.Close(True) - - - - - - Represents the arguments of BeginPageLayoutEvent. - - Class - - - - Initializes a new instance of the class. - - The bounds of the table. - The page to be drawn. - The starting row to be drawn at first. - - - - Gets the start row. Read-Only. - - The index of the start row. - - - - Represents the arguments of LightTableEndPageLayout Event. - - Class - - - - Initializes a new instance of the class. - - The PdfLightTable layout result. - The starting row to be drawn at first. - The ending row to be drawn at last. - - - - Gets the start row. Read-Only. - - The index of the start row. - - - - Gets the end row. Read-Only. - - The index of the last row. - - - - The Syncfusion.Pdf.Tables namespace contains classes for creating tables. - - - - - Create table by entering the data manually or from an external data source. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - // Add a page. - PdfPage page = document.Pages.Add(); - //Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - //Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - // Assign data source. - pdfLightTable.DataSource = table; - // Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - // Save the document. - document.Save("output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() {"abc", "21", "Male"}) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("output.pdf") - 'Close the document - document.Close(True) - - - - - - Stores current column collection. - - - - - Stores current row collection. - - - - - The table name from the data set. - - - - - Indicates the datasource type. - - - - - Specifies whether to break the last row of the table or not when the space is not enough - - - - - Draw the in the specified with specified graphics ,location and width. - - Graphics context where the element should be printed. - The location of the element. - The width of the table. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, new PointF(0, 0),500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, New PointF(0, 0),500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the with the specified ,x and y coordinates and width. - - Graphics context where the element should be drawn. - The x co-ordinate of the element. - The y co-ordinate of the element. - The width of the table. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10, 500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10, 500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - Draw the in the specified and bounds. - Graphics context where the element should be drawn. - The bounds of the table should be drawn. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, new RectangleF(0, 0,500,500)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, New RectangleF(0, 0,500,500)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified and location. - - The page of the table should be drawn. - The x,y coordinates of the table. - The PdfLightTable layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified ,location and . - - The page of the table should be drawn. - The x,y coordinates of the table. - The PdfLightTable layout format. - - The PdfLightTable layout result. - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0), layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0), layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified and bounds. - - The page of the table should be drawn. - The bounds of the table. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new RectangleF(0,0,500,500)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New RectangleF(0,0,500,500)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified ,bounds and layout format. - - The page of the table should be drawn. - The bounds of the table. - The PdfLightTable layout format. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new RectangleF(0, 0,500,500), layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New RectangleF(0, 0,500,500), layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified and x, y coordinates. - - The page of the table should be drawn. - The X co-ordinate of the element. - The y coordinate of the element. - - The PdfLightTable layout result - - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the DataTable. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the DataTable. - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the DataTable. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the DataTable. - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - - - - - - Draw the in the specified , x,y coordinates and layout format. - - The page of the table should be drawn. - The x co-ordinate of the element. - The y coordinate of the element. - The PdfLightTable layout format. - The PdfLightTable layout result. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Draw the in the specified ,x,y coordinates and width. - - The page of the table should be drawn. - The x co-ordinate of the element. - The y coordinate of the element. - The width of the table. - The PdfLightTable layout result - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, 500); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10, 10, 500) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Draw the in the specified ,x,y coordinates,width and layout format. - - The page of the table should be drawn. - The x coordinate of the element. - The y coordinate of the element. - The width of the table. - The PdfLightTable layout format. - The PdfLightTable layout result. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Set properties to paginate the table. - PdfLightTableLayoutFormat layoutFormat = new PdfLightTableLayoutFormat(); - layoutFormat.Break = PdfLayoutBreakType.FitPage; - layoutFormat.Layout = PdfLayoutType.Paginate; - //Draw PdfLightTable. - pdfLightTable.Draw(page, 10,10,500, layoutFormat); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Set properties to paginate the table. - Dim layoutFormat As New PdfLightTableLayoutFormat() - layoutFormat.Break = PdfLayoutBreakType.FitPage - layoutFormat.Layout = PdfLayoutType.Paginate - 'Draw PdfLightTable. - pdfLightTable.Draw(page, 10,10,500, layoutFormat) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Apply built-in table style to the table - - enum of PdfLightTableBuiltinStyle - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Apply built-in table style to the table - - enum of PdfLightTableBuiltinStyle - The PdfLightTableBuiltinStyleSettings - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Draw the in the specified and x,y coordinates. - - Graphics context where the element should be printed. - The x co-ordinate of the element. - The y co-ordinate of the element. - - - //Create a new PDF document. - PdfDocument document = new PdfDocument(); - //Add a page. - PdfPage page = document.Pages.Add(); - // Create a PdfLightTable. - PdfLightTable pdfLightTable = new PdfLightTable(); - // Initialize DataTable to assign as DataSource to the light table. - DataTable table = new DataTable(); - //Include columns to the Data Table. - table.Columns.Add("Name"); - table.Columns.Add("Age"); - table.Columns.Add("Sex"); - //Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(new string[] { "abc", "21", "Male" }); - //Assign data source. - pdfLightTable.DataSource = table; - //Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new PDF document. - Dim document As New PdfDocument() - 'Add a page. - Dim page As PdfPage = document.Pages.Add() - ' Create a PdfLightTable. - Dim pdfLightTable As New PdfLightTable() - ' Initialize DataTable to assign as DataSource to the light table. - Dim table As New DataTable() - 'Include columns to the Data Table. - table.Columns.Add("Name") - table.Columns.Add("Age") - table.Columns.Add("Sex") - 'Include rows to the Data Table.//you can add multiple rows - table.Rows.Add(New String() { "abc", "21", "Male" }) - 'Assign data source. - pdfLightTable.DataSource = table - 'Draw PdfLightTable. - pdfLightTable.Draw(page.Graphics, 10, 10) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Layouts the element. - - Lay outing parameters. - Returns lay outing results. - - - - Draws an element on the Graphics. - - Graphics context where the element should be printed. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Raises the event. - - The - instance containing the event data. - - - - Gets the next row. - - The index. - The array of the strings. - - - - Gets the column captions. - - Column captions - - - - Creates a data source consumer. - - The data source. - The proper data source consumer - - - - Initializes the PdfLightTable data source. - - - - - Creates the columns. - - The filled column collection. - - - - Creates the row. - - The filled row collection. - - - - Called when geting next row. - - Index of the row. - The row data passed by the user. - - - - Called when getting column number. - - The number provided by the user. - - - - Called when getting row number. - - The number provided by the user. - - - - Gets the collection of columns contained in the table.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Get the row collection - PdfRowCollection rows = table.Rows; - // Adding Rows - rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - 'Create a PDF document - Dim document As PdfDocument = New PdfDocument() - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - 'Creating Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - 'Adding Rows - table.Rows.Add(New Object() {"111", "Maxim", "III"}) - 'Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets the collection of rows contained in the table.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Get the row collection - PdfRowCollection rows = table.Rows; - // Adding Rows - rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - ' Create a PDF document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - Dim table As PdfLightTable = New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Get the row collection - Dim rows As PdfRowCollection = table.Rows - ' Adding Rows - rows.Add(New Object() {"111", "Maxim", "III"}) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document. - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the data source to bind into PdfLightTable. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document. - document.Close(true); - - - Class - Class - Class - - - - Gets or sets the data member which binds the specific data source when there is more than one data source. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the data member - table.DataMember = "ID1"; - table.Style.CellPadding = 16; - //Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - table.DataSource = dataTable - 'Set the data member - table.DataMember = "ID1" - table.Style.CellPadding = 16 - 'Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the data source type of the PdfLightTable. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - //Set the data table - table.DataSource = dataTable; - Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Set the data source - table.DataSource = dataTable - ' Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the style properties in PdfLightTable. - - - - //Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Create the font - PdfFont font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - // Alternative cell style - PdfCellStyle altStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.Green); - altStyle.BackgroundBrush = PdfBrushes.DarkGray; - // Table header cell style - PdfCellStyle headerStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.Brown); - headerStyle.BackgroundBrush = PdfBrushes.Red; - //Set the table style - table.Style.AlternateStyle = altStyle; - table.Style.HeaderStyle = headerStyle; - //set the data source - table.DataSource = dataTable; - // Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Create the font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Alternative cell style - Dim altStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.Green) - altStyle.BackgroundBrush = PdfBrushes.DarkGray - 'Table header cell style - Dim headerStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.Brown) - headerStyle.BackgroundBrush = PdfBrushes.Red - 'Set the table style - table.Style.AlternateStyle = altStyle - table.Style.HeaderStyle = headerStyle - 'set the data source - table.DataSource = dataTable - 'Draw the table - table.Draw(page.Graphics) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether PdfLightTable should ignore sorting in data table. - - This property is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //create the page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Disabling sorting - table.IgnoreSorting = true; - //Set the data source - table.DataSource = dataTable; - //Draw the table - table.Draw(page.Graphics); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - ' Disabling sorting - table.IgnoreSorting = True - 'Set the data table - table.DataSource = dataTable - 'Draw the table in page - table.Draw(page.Graphics) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets a value indicating whether to raise start row layout event. - - - - - Gets a value indicating whether to raise end row layout event. - - - - - Gets a value indicating whether the start cell layout event should be raised. - - - - - Gets a value indicating whether the end cell layout event should be raised. - - - - - Gets a value indicating the row break is to be made or not. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Set row break. - table.AllowRowBreakAcrossPages = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.GridTable1Light); - //Draw light table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Set row break. - table.AllowRowBreakAcrossPages = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.GridTable1Light) - 'Draw light table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - The event raised on starting row lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - The event raised on having finished row lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - The event raised on starting cell lay outing. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - The event raised on having finished cell layout. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - The event raised when the next row data is requested. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - The event raised when the column number is requested. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - The event raised when the row number is requested. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - - - - Represents the styles of PdfLightTable. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create Pdf pen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - //Create brush - PdfColor color = new PdfColor(192, 201, 219); - PdfSolidBrush brush = new PdfSolidBrush(color); - //Create alternative cell styles - PdfCellStyle altStyle = new PdfCellStyle(); - altStyle.Font = font; - altStyle.BackgroundBrush = brush; - altStyle.BorderPen = borderPen; - // Create default cell style - PdfCellStyle defStyle = new PdfCellStyle(); - defStyle.Font = font; - defStyle.BackgroundBrush = PdfBrushes.White; - defStyle.BorderPen = borderPen; - // Create header cell style - PdfCellStyle headerStyle = new PdfCellStyle(font, PdfBrushes.White, PdfPens.DarkBlue); - brush = new PdfSolidBrush(new PdfColor(33, 67, 126)); - headerStyle.BackgroundBrush = brush; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.AlternateStyle = altStyle; - table.Style.DefaultStyle = defStyle; - table.Style.HeaderStyle = headerStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create Pdf pen for drawing border - Dim borderPen As PdfPen = New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - 'Create brush - Dim color As PdfColor = New PdfColor(192, 201, 219) - Dim brush As PdfSolidBrush = New PdfSolidBrush(color) - 'Create alternative cell styles - Dim altStyle As PdfCellStyle = New PdfCellStyle() - altStyle.Font = font - altStyle.BackgroundBrush = brush - altStyle.BorderPen = borderPen - ' Create default cell style - Dim defStyle As PdfCellStyle = New PdfCellStyle() - defStyle.Font = font - defStyle.BackgroundBrush = PdfBrushes.White - defStyle.BorderPen = borderPen - ' Create header cell style - Dim headerStyle As PdfCellStyle = New PdfCellStyle(font, PdfBrushes.White, PdfPens.DarkBlue) - brush = New PdfSolidBrush(New PdfColor(33, 67, 126)) - headerStyle.BackgroundBrush = brush - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - 'Set the cell styles - table.Style.AlternateStyle = altStyle - table.Style.DefaultStyle = defStyle - table.Style.HeaderStyle = headerStyle - 'Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - PdfLightTableStyle style = new PdfLightTableStyle(); - style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - table.Style = style; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - Dim style As PdfLightTableStyle = New PdfLightTableStyle() - style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - table.Style = style - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the default cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the alternate style which is the style of the odd rows. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - //Create brush - PdfColor color = new PdfColor(192, 201, 219); - PdfSolidBrush brush = new PdfSolidBrush(color); - //Create alternative cell style - PdfCellStyle alternateStyle = new PdfCellStyle(); - alternateStyle.Font = font; - alternateStyle.BackgroundBrush = brush; - alternateStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.AlternateStyle = alternateStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - 'Create brush - Dim color As New PdfColor(192, 201, 219) - Dim brush As New PdfSolidBrush(color) - 'Create alternative cell style - Dim alternateStyle As New PdfCellStyle() - alternateStyle.Font = font - alternateStyle.BackgroundBrush = brush - alternateStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the cell styles - table.Style.AlternateStyle = alternateStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to use rows or column captions for forming header. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the header rows count. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.ShowHeader = true; - table.Style.HeaderRowCount = 2; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.ShowHeader = True - table.Style.HeaderRowCount = 2 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the header cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create header cell style - PdfCellStyle headerStyle = new PdfCellStyle(); - headerStyle.Font = font; - headerStyle.BackgroundBrush = PdfBrushes.White; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source - table.DataSource = dataTable; - // Set the cell styles - table.Style.HeaderStyle = headerStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create header cell style - Dim headerStyle As New PdfCellStyle() - headerStyle.Font = font - headerStyle.BackgroundBrush = PdfBrushes.White - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the cell styles - table.Style.HeaderStyle = headerStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets a value indicating whether to repeat header on each page. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - table.Style.RepeatHeader = true; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - table.Style.RepeatHeader = True - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the header is visible. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the properties - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - table.Style.ShowHeader = true; - table.Style.HeaderRowCount = 2; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the properties - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - table.Style.ShowHeader = True - table.Style.HeaderRowCount = 2 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the space between cells. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - //Set the cell spacing - table.Style.CellSpacing = 10; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - 'Set the cell spacing - table.Style.CellSpacing = 10 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the space inside the cells. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Set the cell padding - table.Style.CellPadding = 8; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Set the cell padding - table.Style.CellPadding = 8 - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets a value indicating whether the cell borders should overlap its neighbor's borders - or be drawn in the cell interior. - - Please, use this property with caution,because it might cause unexpected results - if borders are not the same width and color. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color of the table border. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Add the border pen - table.Style.BorderPen = PdfPens.BlueViolet; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Add the border pen - table.Style.BorderPen = PdfPens.BlueViolet - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Represents the information about the cell style. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Initializes a new instance of the class. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.Red; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.Red - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified font,brush and pen. - - The font of the cell text. - the color which fills the cell text. - The color of the cell border. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(font, PdfBrushes.Red, PdfPens.Blue); - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle(font, PdfBrushes.Red, PdfPens.Blue) - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the font of the text. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - //Create PdfPen for drawing border - PdfPen borderPen = new PdfPen(PdfBrushes.DarkBlue); - borderPen.Width = 0; - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = borderPen; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - // Set the default cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page.Graphics, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - 'Create PdfPen for drawing border - Dim borderPen As New PdfPen(PdfBrushes.DarkBlue) - borderPen.Width = 0 - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = borderPen - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - 'Create PdfLightTable - Dim table As New PdfLightTable() - 'Set the data source - table.DataSource = dataTable - ' Set the default cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page.Graphics, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the string format of the cell text. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.White; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.White - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which draws the text outlines. - - It should be null for default text representation. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.TextPen = PdfPens.BlueViolet - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which fills the cell text. - - This brush will be used to fill glyphs interior, which is the default. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - 'set the text brush - defaultStyle.TextBrush = PdfBrushes.BlueViolet - 'set the border pen - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which draws the border of the cell. - - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.TextPen = PdfPens.BlueViolet; - defaultStyle.BorderPen = PdfPens.Black; - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - 'set the text brush - defaultStyle.TextBrush = PdfBrushes.BlueViolet - 'set the border pen - defaultStyle.BorderPen = PdfPens.Black - 'Create DataTable for source - Dim dataTable As New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the color which fills the background of the cell. - - It's null by default. - - - //Create PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Set font - PdfFont font = new PdfStandardFont(PdfFontFamily.Helvetica, 8); - // Create default cell style - PdfCellStyle defaultStyle = new PdfCellStyle(); - defaultStyle.Font = font; - defaultStyle.BackgroundBrush = PdfBrushes.Red; - defaultStyle.BorderPen = PdfPens.Blue; - //set the string format - defaultStyle.StringFormat = new PdfStringFormat(PdfTextAlignment.Justify); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - // Create a new table - PdfLightTable table = new PdfLightTable(); - table.DataSource = dataTable; - //Set the cell style - table.Style.DefaultStyle = defaultStyle; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - 'Create PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Set font - Dim font As PdfFont = New PdfStandardFont(PdfFontFamily.Helvetica, 8) - ' Create default cell style - Dim defaultStyle As New PdfCellStyle() - defaultStyle.Font = font - defaultStyle.BackgroundBrush = PdfBrushes.Red - defaultStyle.BorderPen = PdfPens.Blue - 'set the string format - defaultStyle.StringFormat = New PdfStringFormat(PdfTextAlignment.Justify) - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Table Features Demo", "" } - dataTable.Rows.Add(values) - ' Create a new table - Dim table As New PdfLightTable() - table.DataSource = dataTable - 'Set the cell style - table.Style.DefaultStyle = defaultStyle - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - - - - Gets or sets the border of the PdfLightTable - - - - - Represents the collection of the columns. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - - Add the specified in specified - - The . - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Gets the widths of the columns. - - The total width. - An array containing widths. - - - - Gets the widths of the columns. - - The total width. - The start column. - The end column. - An array containing widths. - - - - Gets the at the specified index.Read-Only. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - //Get the table colum by index. - PdfColumn column = tableColumns[0]; - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - 'Get the table colum by index. - Dim column As PdfColumn = tableColumns(0) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents a single column of the table. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class with specified width. - - The width. - - - - Initializes a new instance of the class with specified column name. - - The name of the column. - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the string format of the column text - - The format of the cell text. - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn("Roll Number"); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Right); - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn("Roll Number") - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Right) - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets the width of the column. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn("Roll Number"); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the width - rollNumber.Width = 20; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn("Roll Number") - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the width - rollNumber.Width = 20 - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets or sets name of the column. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Creating Columns - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Create a new column - PdfColumn rollNumber = new PdfColumn(); - //Set the string format - rollNumber.StringFormat = new PdfStringFormat(PdfTextAlignment.Left); - //set the column name - rollNumber.ColumnName = "Roll Number"; - //Add the column - tableColumns.Add(rollNumber); - // Adding Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Creating Columns - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Create a new column - Dim rollNumber As New PdfColumn() - 'Set the string format - rollNumber.StringFormat = New PdfStringFormat(PdfTextAlignment.Left) - 'set the column name - rollNumber.ColumnName = "Roll Number" - 'Add the column - tableColumns.Add(rollNumber) - ' Adding Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents a single row of the table. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Initializes a new instance of the class. - - The width. - - - - Gets or sets the values which adds to the row. - - - - // Create a PDF document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Get the columns collection - PdfColumnCollection tableColumns = table.Columns; - // Add Columns - tableColumns.Add(new PdfColumn("Roll Number")); - tableColumns.Add(new PdfColumn("Name")); - tableColumns.Add(new PdfColumn("Class")); - // Add Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a PDF document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Get the columns collection - Dim tableColumns As PdfColumnCollection = table.Columns - ' Add Columns - tableColumns.Add(New PdfColumn("Roll Number")) - tableColumns.Add(New PdfColumn("Name")) - tableColumns.Add(New PdfColumn("Class")) - ' Add Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents the collection of the rows in a PdfLightTable. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - - - - Initializes a new instance of the class. - - - - - Adds the specified row into collection. - - The to be added into list. - - - - Gets or sets the values which adds the row into . - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Gets the at the specified index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // get the row collection - PdfRowCollection rowCollection = table.Rows; - //Add the rows - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - //Get the row by index. - PdfRow row = rowCollection[0]; - // Draw the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' get the row collection - Dim rowCollection As PdfRowCollection = table.Rows - 'Add the rows - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - //Get the row by index. - Dim row As PdfRow = rowCollection(0) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - Represents as a message deliverer from PdfLightTable class to the user. - - Class - - - - Initializes a new instance of the class with specified message. - - The message to be thrown. - - - - Represents the light table built-in style settings. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the columns in a table, - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply style bands to the rows in a table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply heading-row formatting to the first row of the table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply first-column formatting to the first column of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Gets or sets a value indicating whether to apply last-row formatting to the last row of the specified table. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Represents the parameters for PdfLightTable layout. - - - - // Creates a new document - PdfDocument document = new PdfDocument(); - //Creates a new page and adds it as the last page of the document - PdfPage page = document.Pages.Add(); - // Creates a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Creates the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - // Draws the table with the layout format - table.Draw(page, new PointF(0, 0), format); - document.Save("Tables.pdf"); - - - ' Creates a new document - Dim document As PdfDocument = New PdfDocument() - ' Create a page - Dim page As PdfPage = document.Pages.Add() - ' Creates a new table - Dim table As PdfLightTable = New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Creates the layout format - Dim format As PdfLightTableLayoutFormat = New PdfLightTableLayoutFormat() - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - format.StartColumnIndex = 1 - format.EndColumnIndex = 2 - ' Draws the table with the layout format - table.Draw(page, New PointF(0, 0), format) - document.Save("Tables.pdf") - - - Class - Class - Class - - - - Initializes a new instance of the class. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Initializes a new instance of the class with specified layout format. - - The layout format. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - PdfLayoutFormat lformat = new PdfLayoutFormat(); - lformat.Break = PdfLayoutBreakType.FitPage; - lformat.Layout = PdfLayoutType.Paginate; - lformat.PaginateBounds = new RectangleF(0, 0, 500, 700); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(lformat); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - Dim lformat As PdfLayoutFormat = New PdfLayoutFormat(); - lformat.Break = PdfLayoutBreakType.FitPage; - lformat.Layout = PdfLayoutType.Paginate; - lformat.PaginateBounds = new RectangleF(0, 0, 500, 700); - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat(lformat) - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Gets or sets the start column index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the end column index. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - // Create a new table - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Creating Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - // Adding rows - PdfRowCollection rowCollection = table.Rows; - // Gets the first row from the collection. - rowCollection.Add(new object[] { "111", "Maxim", "III" }); - // Create the layout format - PdfLightTableLayoutFormat format = new PdfLightTableLayoutFormat(); - //set the column index - format.StartColumnIndex = 1; - format.EndColumnIndex = 2; - format.Layout = PdfLayoutType.Paginate; - format.Break = PdfLayoutBreakType.FitElement; - // Draw the table - PdfLightTableLayoutResult result = table.Draw(page, new PointF(0, 0), format); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - ' Create a new table - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Creating Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' Adding rows - Dim rowCollection As PdfRowCollection = table.Rows - ' Gets the first row from the collection. - rowCollection.Add(New Object() { "111", "Maxim", "III" }) - ' Create the layout format - Dim format As New PdfLightTableLayoutFormat() - 'set the column index - format.EndColumnIndex = 2 - format.StartColumnIndex = 1 - format.Layout = PdfLayoutType.Paginate - format.Break = PdfLayoutBreakType.FitElement - ' Draw the table - Dim result As PdfLightTableLayoutResult = table.Draw(page, New PointF(0, 0), format - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - Class - Class - Class - - - - Represents the method that handles StartRowLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when starting a row layout. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - Class - Class - - - - Represents the method that will handle EndRowLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when finishing a row in a layout. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - Class - Class - - - - Represents the method that handles StartCellLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when starts laying out a cell on a page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the method that will handle EndCellLayout event of PdfLightTable. - - The sender of the event. - The arguments of the event. - This event is raised when finished laying out a cell on a page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Represents the method for handling NextRowEvent of PdfLightTable - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex ) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Represents the method for handling ColumnNumberEvent. - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Represents the method for handling RowNumberEvent - - The sender of the event. - The arguments of the event. - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex ) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - Class - Class - - - - Represents the arguments of StartRowLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - Index of the row. - The cell style. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Gets or sets the cell style. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.CellStyle.TextPen = PdfPens.Red; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.CellStyle.TextPen = PdfPens.Red - End If - End Sub - - - - - - Gets or sets the span map. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Gets or sets a value indicating whether table drawing should stop. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.Cancel = True - End If - End Sub - - - - - - Gets or sets a value indicating whether this row should be ignored. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Skip = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.Skip = True - End If - End Sub - - - - - - Gets or sets a value indicating whether column string format should be ignored. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.IgnoreColumnFormat = true; - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - args.IgnoreColumnFormat = True - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Sets the minimal height of the row. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the begin row event - pdfLightTable.BeginRowLayout += new BeginRowLayoutEventHandler(table_BeginRowLayout); - //Set the data source - pdfLightTable.DataSource = dataTable; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_BeginRowLayout(object sender, BeginRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - PdfLightTable table = (PdfLightTable)sender; - int count = table.Columns.Count; - int[] spanMap = new int[count]; - // Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap[0] = 2; - spanMap[1] = 3; - args.ColumnSpanMap = spanMap; - //Set row height. - args.MinimalHeight = 30f; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the begin row event - AddHandler pdfLightTable.BeginRowLayout, AddressOf table_BeginRowLayout - 'Set the data source - pdfLightTable.DataSource = dataTable - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_BeginRowLayout(ByVal sender As Object, ByVal args As BeginRowLayoutEventArgs) - If args.RowIndex = 1 Then - Dim table As PdfLightTable = CType(sender, PdfLightTable) - Dim count As Integer = table.Columns.Count - Dim spanMap(count - 1) As Integer - ' Set just spanned cells. Other values are not important except negatives that are not allowed. - spanMap(0) = 2 - spanMap(1) = 3 - args.ColumnSpanMap = spanMap - 'Set row height. - args.MinimalHeight = 30f - End If - End Sub - - - - - - Represents the arguments of EndRowLayoutEvent. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - Index of the row. - if set to true the row was drawn completely. - The row bounds. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets a value indicating whether the row was drawn completely - (nothing should be printed on the next page). Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - bool isCompleted = args.LayoutCompleted; - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - Dim isCompleted As Boolean = args.LayoutCompleted - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets or sets a value indicating whether this row should be the last one printed. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - Gets or sets the row bounds. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - //Set the data source - pdfLightTable.DataSource = dataTable; - // Subscribe the end row event - pdfLightTable.EndRowLayout += new EndRowLayoutEventHandler(table_EndRowLayout); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_EndRowLayout(object sender, EndRowLayoutEventArgs args) - { - //Get row bounds. - RectangleF bounds = args.Bounds; - if (args.RowIndex == 1) - { - // Cancel property used to cancel the table rendering operation - args.Cancel = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - 'Set the data source - pdfLightTable.DataSource = dataTable - ' Subscribe the end row event - AddHandler pdfLightTable.EndRowLayout, AddressOf table_EndRowLayout - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_EndRowLayout(ByVal sender As Object, ByVal args As EndRowLayoutEventArgs) - 'Get row bounds. - Dim bounds As RectangleF = args.Bounds - If args.RowIndex = 1 Then - ' Cancel property used to cancel the table rendering operation - args.Cancel = True - End If - End Sub - - - - - - The base class for cell layout arguments. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell inder. - The bounds of the cell. - The value. - - - - Gets the index of the row. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the index of the cell. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - //Get cell index - int cellIndex = args.CellIndex; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - 'Get cell index - Dim cellIndex As Integer = args.CellIndex - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the value of the cell. Read-Only. - - The value might be null or an empty string, - which means that either no text were acquired or all - text was on the previous page. - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - string text = args.Value; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - Dim text As String = args.Value - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the bounds of the cell. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - RectangleF bounds = args.Bounds; - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - Dim bounds As RectangleF = args.Bounds - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Gets the graphics, on which the cell should be drawn. Read-Only. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - - - - Represents arguments of StartCellLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The cell index. - The bounds of the cell. - The value. - - - - Gets or sets a value indicating whether the value of this cell should be skipped. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.BeginCellLayout += new BeginCellLayoutEventHandler(table_BeginCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_BeginCellLayout(object sender, BeginCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - if(args.RowIndex == 2) - { - args.Skip = true; - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.BeginCellLayout, AddressOf table_BeginCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_BeginCellLayout(ByVal sender As Object, ByVal args As BeginCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - if args.RowIndex =2 Then - args.Skip = True - End If - End Sub - - - - - - Represents arguments of EndCellLayout Event. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create DataTable for source - DataTable dataTable = new DataTable("myTable"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Roll Number", "Student Name" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Cris" }; - dataTable.Rows.Add(values); - values = new object[] { "011", "Clay" }; - dataTable.Rows.Add(values); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Subscribe the cell layout event - pdfLightTable.EndCellLayout += new EndCellLayoutEventHandler(table_EndCellLayout); - pdfLightTable.DataSource = dataTable; - pdfLightTable.Style.CellPadding = 16; - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - // Cell layout event handler - void table_EndCellLayout(object sender, EndCellLayoutEventArgs args) - { - if (args.RowIndex == 1) - { - args.Graphics.DrawRectangle(new PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds); - } - } - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create DataTable for source - Dim dataTable As New DataTable("myTable") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = { "Roll Number", "Student Name" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Cris" } - dataTable.Rows.Add(values) - values = New Object() { "011", "Clay" } - dataTable.Rows.Add(values) - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Subscribe the cell layout event - AddHandler pdfLightTable.EndCellLayout, AddressOf table_EndCellLayout - pdfLightTable.DataSource = dataTable - pdfLightTable.Style.CellPadding = 16 - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - ' Cell layout event handler - Private Sub table_EndCellLayout(ByVal sender As Object, ByVal args As EndCellLayoutEventArgs) - If args.RowIndex = 1 Then - args.Graphics.DrawRectangle(New PdfPen(PdfBrushes.Red, 2), PdfBrushes.White, args.Bounds) - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The graphics, on which the cell should be drawn. - Index of the row. - The index of the cell. - The bounds of the cell. - The value. - - - - Represents arguments of the NextRowEvent. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - The column count. - Index of the row. - - - - Gets or sets the row data. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Gets the column count. Read-Only. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Gets the index of the row. Read-Only. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Represents the arguments of the ColumnNumberEvent. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Gets or sets the column number. - - - - public string[][] datastring = new string[2][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - ' Create a new document' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndexThen - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - - - - - Represents the arguments of the RowNumberEvent. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - Class - Class - - - - Initializes a new instance of the class. - - - - - Gets or sets the column number. - - - - public string[][] datastring = new string[3][]; - // Specify values for the table - datastring[0] = new string[] { "111", "Maxim", "100" }; - datastring[1] = new string[] { "222", "Calvin", "95" }; - datastring[2] = new string[] { "333", "Criss", "99" }; - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a Page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable pdfLightTable = new PdfLightTable(); - // Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External; - //Subscribing Events - pdfLightTable.QueryRowCount += new QueryRowCountEventHandler(table_QueryRowCount); - pdfLightTable.QueryColumnCount += new QueryColumnCountEventHandler(table_QueryColumnCount); - pdfLightTable.QueryNextRow += new QueryNextRowEventHandler(table_QueryNextRow); - //Draw PdfLightTable. - pdfLightTable.Draw(page, new PointF(0, 0)); - //Save the document. - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - void table_QueryColumnCount(object sender, QueryColumnCountEventArgs args) - { - args.ColumnCount = 3; - } - - void table_QueryNextRow(object sender, QueryNextRowEventArgs args) - { - if (datastring.Length > args.RowIndex) - args.RowData = new string[] { datastring[args.RowIndex][0], datastring[args.RowIndex][1], datastring[args.RowIndex][2] }; - } - - void table_QueryRowCount(object sender, QueryRowCountEventArgs args) - { - args.RowCount = 2; - } - - - Public datastring(2)() As String - ' Specify values for the table - datastring(0) = New String() { "111", "Maxim", "100" } - datastring(1) = New String() { "222", "Calvin", "95" } - datastring(2) = New String() { "333", "Criss", "99" } - ' Create a new document - Dim document As New PdfDocument() - 'Create a Page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim pdfLightTable As New PdfLightTable() - ' Setting the DataSourceType as Direct - pdfLightTable.DataSourceType = PdfLightTableDataSourceType.External - 'Subscribing Events - AddHandler pdfLightTable.QueryRowCount, AddressOf table_QueryRowCount - AddHandler pdfLightTable.QueryColumnCount, AddressOf table_QueryColumnCount - AddHandler pdfLightTable.QueryNextRow, AddressOf table_QueryNextRow - 'Draw PdfLightTable. - pdfLightTable.Draw(page, New PointF(0, 0)) - 'Save the document. - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - Private Sub table_QueryColumnCount(ByVal sender As Object, ByVal args As QueryColumnCountEventArgs) - args.ColumnCount = 3 - End Sub - - Private Sub table_QueryNextRow(ByVal sender As Object, ByVal args As QueryNextRowEventArgs) - If datastring.Length > args.RowIndex Then - args.RowData = New String() { datastring(args.RowIndex)(0), datastring(args.RowIndex)(1), datastring(args.RowIndex)(2) } - End If - End Sub - - Private Sub table_QueryRowCount(ByVal sender As Object, ByVal args As QueryRowCountEventArgs) - args.RowCount = 2 - End Sub - - - - - - Specifies the values where the header should formed from. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Add a page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draw the table - table.Draw(page, new PointF(0, 0)); - //save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Add a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - 'Set the header source - table.Style.HeaderSource = PdfHeaderSource.ColumnCaptions - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draw the table - table.Draw(page, New PointF(0, 0)) - 'save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - Class - Class - - - - The header is formed from column captions' values. - - - - - The header is formed from rows. - - - - - Specifies the data source type. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create DataTable for source - DataTable dataTable = new DataTable("Table"); - dataTable.Columns.Add("ID1"); - dataTable.Columns[0].Caption = "id"; - dataTable.Columns.Add("ID2"); - object[] values = new object[] { "Table Features Demo", "" }; - dataTable.Rows.Add(values); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create the PdfLightTable - PdfLightTable table = new PdfLightTable(); - //Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - //Set the data table - table.DataSource = dataTable; - Draw the table - table.Draw(page.Graphics); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - 'Create a new document - Dim document As PdfDocument = New PdfDocument() - 'Create DataTable for source - Dim dataTable As DataTable = New DataTable("Table") - dataTable.Columns.Add("ID1") - dataTable.Columns(0).Caption = "id" - dataTable.Columns.Add("ID2") - Dim values() As Object = New Object() {"Table Features Demo", ""} - dataTable.Rows.Add(values) - 'Create a page - Dim page As PdfPage = document.Pages.Add() - 'Create the PdfLightTable - Dim table As PdfLightTable = New PdfLightTable() - 'Set the data source type - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - 'Set the data source - table.DataSource = dataTable - ' Draw the table - table.Draw(page.Graphics) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - Class - Class - - - - Specifies that the PdfLightTable has been bind to an external data source. - - - - - Specifies that the values are directly bind to the PdfLightTable. - - - - - Specifies the values of the border overlap style. - - - - // Create a new document - PdfDocument document = new PdfDocument(); - //Create a new page - PdfPage page = document.Pages.Add(); - //Create PdfLightTable - PdfLightTable table = new PdfLightTable(); - // Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect; - // Create new Columns - table.Columns.Add(new PdfColumn("Roll Number")); - table.Columns.Add(new PdfColumn("Name")); - table.Columns.Add(new PdfColumn("Class")); - //set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside; - // Add new Rows - table.Rows.Add(new object[] { "111", "Maxim", "III" }); - // Draws the table - table.Draw(page, new PointF(0, 0)); - //Save the document - document.Save("Output.pdf"); - //Close the document - document.Close(true); - - - - ' Create a new document - Dim document As New PdfDocument() - 'Create a new page - Dim page As PdfPage = document.Pages.Add() - 'Create PdfLightTable - Dim table As New PdfLightTable() - ' Set the DataSourceType as Direct - table.DataSourceType = PdfLightTableDataSourceType.TableDirect - ' Create new Columns - table.Columns.Add(New PdfColumn("Roll Number")) - table.Columns.Add(New PdfColumn("Name")) - table.Columns.Add(New PdfColumn("Class")) - ' set the border overlap style - table.Style.BorderOverlapStyle = PdfBorderOverlapStyle.Inside - ' Add new Rows - table.Rows.Add(New Object() { "111", "Maxim", "III" }) - ' Draws the table - table.Draw(page, New PointF(0, 0)) - 'Save the document - document.Save("Output.pdf") - 'Close the document - document.Close(True) - - - - - - - Cell borders overlap (are drawn using the same coordinates). - - - - - Cell borders are drawn in the cell's interior. - - - - - Specifies PdfGrid built-in table styles. - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF grid instance. - PdfGrid table = new PdfGrid(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF grid build style settings instance. - PdfGridBuiltinStyleSettings settings = new PdfGridBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings); - //Draw grid to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF grid instance. - Dim table As New PdfGrid() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF grid build style settings instance. - Dim settings As New PdfGridBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - Apply built-in table style - table.ApplyBuiltinStyle(PdfGridBuiltinStyle.GridTable3, settings) - 'Draw grid to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Specifies the grid to render Plain Table 1 style. - - - - - Specifies the grid to render Plain Table 2 style. - - - - - Specifies the grid to render Plain Table 3 style. - - - - - Specifies the grid to render Plain Table 4 style. - - - - - Specifies the grid to render Plain Table 5 style. - - - - - Specifies the grid to render Grid Table 1 Light style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 1 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 2 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 3 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 4 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 5 style. - - - - - Specifies the grid to render Grid Table 1 Light - Accent 6 style. - - - - - Specifies the grid to render Grid Table 2 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 2 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 3 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 3 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 4 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 1 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 2 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 3 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 4 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 5 style. - - - - - Specifies the grid to render Grid Table 4 - Accent 6 style. - - - - - Specifies the grid to render Grid Table 5 Dark style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 1 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 2 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 3 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 4 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 5 style. - - - - - Specifies the grid to render Grid Table 5 Dark - Accent 6 style. - - - - - Specifies the grid to render Grid Table 6 Colorful style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 1 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 2 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 3 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 4 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 5 style. - - - - - Specifies the grid to render Grid Table 6 Colorful - Accent 6 style. - - - - - Specifies the grid to render Grid Table 7 Colorful style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 1 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 2 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 3 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 4 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 5 style. - - - - - Specifies the grid to render Grid Table 7 Colorful - Accent 6 style. - - - - - Specifies the grid to render Light Table 1 Light style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 1 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 2 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 3 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 4 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 5 style. - - - - - Specifies the grid to render Light Table 1 Light - Accent 6 style. - - - - - Specifies the grid to render Light Table 2 style. - - - - - Specifies the grid to render Light Table 2 - Accent 1 style. - - - - - Specifies the grid to render Light Table 2 - Accent 2 style. - - - - - Specifies the grid to render Light Table 2 - Accent 3 style. - - - - - Specifies the grid to render Light Table 2 - Accent 4 style. - - - - - Specifies the grid to render Light Table 2 - Accent 5 style. - - - - - Specifies the grid to render Light Table 2 - Accent 6 style. - - - - - Specifies the grid to render Light Table 3 style. - - - - - Specifies the grid to render Light Table 3 - Accent 1 style. - - - - - Specifies the grid to render Light Table 3 - Accent 2 style. - - - - - Specifies the grid to render Light Table 3 - Accent 3 style. - - - - - Specifies the grid to render Light Table 3 - Accent 4 style. - - - - - Specifies the grid to render Light Table 3 - Accent 5 style. - - - - - Specifies the grid to render Light Table 3 - Accent 6 style. - - - - - Specifies the grid to render Light Table 4 style. - - - - - Specifies the grid to render Light Table 4 - Accent 1 style. - - - - - Specifies the grid to render Light Table 4 - Accent 2 style. - - - - - Specifies the grid to render Light Table 4 - Accent 3 style. - - - - - Specifies the grid to render Light Table 4 - Accent 4 style. - - - - - Specifies the grid to render Light Table 4 - Accent 5 style. - - - - - Specifies the grid to render Light Table 4 - Accent 6 style. - - - - - Specifies the grid to render Light Table 5 Dark style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 1 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 2 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 3 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 4 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 5 style. - - - - - Specifies the grid to render Light Table 5 Dark - Accent 6 style. - - - - - Specifies the grid to render Light Table 6 Colorful style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 1 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 2 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 3 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 4 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 5 style. - - - - - Specifies the grid to render Light Table 6 Colorful - Accent 6 style. - - - - - Specifies the grid to render Light Table 7 Colorful style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 1 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 2 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 3 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 4 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 5 style. - - - - - Specifies the grid to render Light Table 7 Colorful - Accent 6 style. - - - - - Specifies the grid to render Table Grid Light style. - - - - - Specifies the grid to render Table Grid style. - - - - - Specified PdfLightTable built-in table styles - - - - //Create a new PDF document. - PdfDocument doc = new PdfDocument(); - //Add a page. - PdfPage page = doc.Pages.Add(); - //Create a new PDF light table instance. - PdfLightTable table = new PdfLightTable(); - //Create a DataTable. - DataTable dataTable = new DataTable(); - //Add columns to the DataTable - dataTable.Columns.Add("ID"); - dataTable.Columns.Add("Name"); - //Add rows to the DataTable. - dataTable.Rows.Add(new object[] { "E01", "Clay" }); - dataTable.Rows.Add(new object[] { "E02", "Thomas" }); - dataTable.Rows.Add(new object[] { "E03", "George" }); - dataTable.Rows.Add(new object[] { "E04", "Stefan" }); - dataTable.Rows.Add(new object[] { "E05", "Mathew" }); - //Assign data source. - table.DataSource = dataTable; - //Create PDF light table build style settings instance. - dfLightTableBuiltinStyleSettings settings = new PdfLightTableBuiltinStyleSettings(); - settings.ApplyStyleForBandedColumns = true; - settings.ApplyStyleForBandedRows = true; - settings.ApplyStyleForFirstColumn = true; - settings.ApplyStyleForHeaderRow = true; - settings.ApplyStyleForLastColumn = true; - settings.ApplyStyleForLastRow = true; - //Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings); - //Draw table to the page of PDF document. - table.Draw(page, new PointF(10, 10)); - //Save the document. - doc.Save("Output.pdf"); - //close the document - doc.Close(true); - - - 'Create a new PDF document. - Dim doc As New PdfDocument() - 'Add a page. - Dim page As PdfPage = doc.Pages.Add() - 'Create a new PDF light table instance. - Dim table As New PdfLightTable() - 'Create a DataTable. - Dim dataTable As New DataTable() - 'Add columns to the DataTable - dataTable.Columns.Add("ID") - dataTable.Columns.Add("Name") - 'Add rows to the DataTable. - dataTable.Rows.Add(New Object() { "E01", "Clay"}) - dataTable.Rows.Add(New Object() { "E02", "Thomas"}) - dataTable.Rows.Add(New Object() { "E03", "George"}) - dataTable.Rows.Add(New Object() { "E04", "Stefan"}) - dataTable.Rows.Add(New Object() { "E05", "Mathew"}) - 'Assign data source. - table.DataSource = dataTable - 'Create PDF light table build style settings instance. - Dim settings As New PdfLightTableBuiltinStyleSettings() - settings.ApplyStyleForBandedColumns = True - settings.ApplyStyleForBandedRows = True - settings.ApplyStyleForFirstColumn = True - settings.ApplyStyleForHeaderRow = True - settings.ApplyStyleForLastColumn = True - settings.ApplyStyleForLastRow = True - 'Apply built-in table style - table.ApplyBuiltinStyle(PdfLightTableBuiltinStyle.ListTable6ColorfulAccent4, settings) - 'Draw table to the page of PDF document. - table.Draw(page, New PointF(10, 10)) - 'Save the document. - doc.Save("Output.pdf") - 'close the document - doc.Close(True) - - - - - - Specifies the table to render Plain Table 1 style. - - - - - Specifies the table to render Plain Table 2 style. - - - - - Specifies the table to render Plain Table 3 style. - - - - - Specifies the table to render Plain Table 4 style. - - - - - Specifies the table to render Plain Table 5 style. - - - - - Specifies the table to render Grid Table 1 Light style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 1 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 2 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 3 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 4 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 5 style. - - - - - Specifies the table to render Grid Table 1 Light - Accent 6 style. - - - - - Specifies the table to render Grid Table 2 style. - - - - - Specifies the table to render Grid Table 2 - Accent 1 style. - - - - - Specifies the table to render Grid Table 2 - Accent 2 style. - - - - - Specifies the table to render Grid Table 2 - Accent 3 style. - - - - - Specifies the table to render Grid Table 2 - Accent 4 style. - - - - - Specifies the table to render Grid Table 2 - Accent 5 style. - - - - - Specifies the table to render Grid Table 2 - Accent 6 style. - - - - - Specifies the table to render Grid Table 3 style. - - - - - Specifies the table to render Grid Table 3 - Accent 1 style. - - - - - Specifies the table to render Grid Table 3 - Accent 2 style. - - - - - Specifies the table to render Grid Table 3 - Accent 3 style. - - - - - Specifies the table to render Grid Table 3 - Accent 4 style. - - - - - Specifies the table to render Grid Table 3 - Accent 5 style. - - - - - Specifies the table to render Grid Table 3 - Accent 6 style. - - - - - Specifies the table to render Grid Table 4 style. - - - - - Specifies the table to render Grid Table 4 - Accent 1 style. - - - - - Specifies the table to render Grid Table 4 - Accent 2 style. - - - - - Specifies the table to render Grid Table 4 - Accent 3 style. - - - - - Specifies the table to render Grid Table 4 - Accent 4 style. - - - - - Specifies the table to render Grid Table 4 - Accent 5 style. - - - - - Specifies the table to render Grid Table 4 - Accent 6 style. - - - - - Specifies the table to render Grid Table 5 Dark style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 1 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 2 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 3 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 4 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 5 style. - - - - - Specifies the table to render Grid Table 5 Dark - Accent 6 style. - - - - - Specifies the table to render Grid Table 6 Colorful style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 1 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 2 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 3 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 4 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 5 style. - - - - - Specifies the table to render Grid Table 6 Colorful - Accent 6 style. - - - - - Specifies the table to render Grid Table 7 Colorful style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 1 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 2 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 3 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 4 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 5 style. - - - - - Specifies the table to render Grid Table 7 Colorful - Accent 6 style. - - - - - Specifies the table to render Light Table 1 Light style. - - - - - Specifies the table to render Light Table 1 Light - Accent 1 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 2 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 3 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 4 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 5 style. - - - - - Specifies the table to render Light Table 1 Light - Accent 6 style. - - - - - Specifies the table to render Light Table 2 style. - - - - - Specifies the table to render Light Table 2 - Accent 1 style. - - - - - Specifies the table to render Light Table 2 - Accent 2 style. - - - - - Specifies the table to render Light Table 2 - Accent 3 style. - - - - - Specifies the table to render Light Table 2 - Accent 4 style. - - - - - Specifies the table to render Light Table 2 - Accent 5 style. - - - - - Specifies the table to render Light Table 2 - Accent 6 style. - - - - - Specifies the table to render Light Table 3 style. - - - - - Specifies the table to render Light Table 3 - Accent 1 style. - - - - - Specifies the table to render Light Table 3 - Accent 2 style. - - - - - Specifies the table to render Light Table 3 - Accent 3 style. - - - - - Specifies the table to render Light Table 3 - Accent 4 style. - - - - - Specifies the table to render Light Table 3 - Accent 5 style. - - - - - Specifies the table to render Light Table 3 - Accent 6 style. - - - - - Specifies the table to render Light Table 4 style. - - - - - Specifies the table to render Light Table 4 - Accent 1 style. - - - - - Specifies the table to render Light Table 4 - Accent 2 style. - - - - - Specifies the table to render Light Table 4 - Accent 3 style. - - - - - Specifies the table to render Light Table 4 - Accent 4 style. - - - - - Specifies the table to render Light Table 4 - Accent 5 style. - - - - - Specifies the table to render Light Table 4 - Accent 6 style. - - - - - Specifies the table to render Light Table 5 Dark style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 1 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 2 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 3 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 4 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 5 style. - - - - - Specifies the table to render Light Table 5 Dark - Accent 6 style. - - - - - Specifies the table to render Light Table 6 Colorful style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 1 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 2 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 3 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 4 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 5 style. - - - - - Specifies the table to render Light Table 6 Colorful - Accent 6 style. - - - - - Specifies the table to render Light Table 7 Colorful style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 1 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 2 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 3 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 4 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 5 style. - - - - - Specifies the table to render Light Table 7 Colorful - Accent 6 style. - - - - - Specifies the table to render Table Grid Light style. - - - - - Specifies the table to render Table Grid style. - - - - - Represents DataSource for tables - - - - - Data table - - - - - Rows count - - - - - Columns count - - - - - Data column - - - - - An array - - - - - Use sorting data - - - - - Cached rows - - - - - Initializes a new instance of the PdfDataSource class - - - - - Initializes a new instance of the PdfDataSource class using DataTable - - Data table - - - - Initializes a new instance of the PdfDataSource class using DataSet - - Data set - Table name - - - - Initializes a new instance of the PdfDataSource class using DataView - - Data View - - - - Initializes a new instance of the PdfDataSource class using DataColumn - - Data column - - - - Initializes a new instance of the PdfDataSource class using array - - Source array - - - - Gets row of data for visible columns - - The index - An array of text values or null indicating reaching the end. - - - - Verify is the column read only - - The index - Is current column read only - - - - Gets Column Mapping type - - The index - Column mapping type - - - - Gets Column Data type - - The index - Column data type - - - - Get column default value - - The index - Column default value - - - - Gets whether column allow DBNull - - The index - Allow DBNull - - - - Gets array base type - - The array - Base type for array - - - - Gets columns names - - Columns names - - - - Gets columns captions. - - Columns captions - - - - Verify is the input array valid - - Array to check - Columns count - Is array valid - - - - Set data Table - - Data table - - - - Handles the RowDeleted event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Handles the RowChanged event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Handles the ColumnChanged event of the dataTable control. - - The source of the event. - The instance containing the event data. - - - - Refreshes the cache. - - - - - Gets visible columns count - - Returns visible columns count - - - - Convert input index to real index - - The index - Gets real table index - - - - Gets row from array - - The array - The index - Returns array of values - - - - Gets row from data column - - The column - The index - Returns array of values - - - - Gets row from table - - The Data Table - The index - Returns array of values - - - - Gets table form DataSet - - The DataSet - Table name - Returns table - - - - Gets table from DataView - - The DataView - Returns table - - - - True if use data sorting, otherwise false - - - - - Gets rows counts - - - - - Gets column count - - - - - Gets visible columns names - - - - - Gets visible columns captions - - - - - Represents the Artifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the tag for the element - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the order for the element - - - To know more about refer this link . - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout); - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout) - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - represents the attachment for artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout,new PdfAttached(PdfEdge.Left)); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New PdfAttached(PdfEdge.Left)) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - attachment for artifact - Subtype of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout, new PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the instance of PdfArtifact - - Type of the artifact - Bounding box of the artifact - attachment for the artifact - Subtype of the artifact - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(PdfArtifactType.Layout, new RectangleF(0, 0, 100, 100), new PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact(PdfArtifactType.Layout, New RectangleF(0, 0, 100, 100), New PdfAttached(PdfEdge.Left), PdfArtifactSubType.Watermark) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the bounding box for the artifact. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the artifact type - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the subtype of the artifact - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set artifact subtype. - artifact.SubType = PdfArtifactSubType.Footer; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set artifact subtype. - artifact.SubType = PdfArtifactSubType.Footer - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Gets or sets the attachment for the artifact. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Represents the type of the artifact - - - - - Represents the logically attached artifcat on the page. - - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - page edge - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - edge of the page - edge of the page - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left, PdfEdge.Right); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left, PdfEdge.Right) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Initialize the PdfAttached - - left edge of the page - right edge of the page - top edge of the page - bottom edge of the page - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - //Set the attachement for the artifact. - artifact.Attached = new PdfAttached(PdfEdge.Left, PdfEdge.Right, PdfEdge.Top, PdfEdge.Bottom); - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - 'Set the attachement for the artifact. - artifact.Attached = New PdfAttached(PdfEdge.Left, PdfEdge.Right, PdfEdge.Top, PdfEdge.Bottom) - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - Class - - - - Set edges for the page - - the page edges - - - //Create new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new page to the document. - PdfPage page = document.Pages.Add(); - //Create new instance for PDF artifact. - PdfArtifact artifact = new PdfArtifact(); - //Set the artifact type. - artifact.ArtifactType = PdfArtifactType.Layout; - PdfEdge[] edges = { PdfEdge.Right, PdfEdge.Top }; - //Create new instance for the PDF attached. - PdfAttached attached = new PdfAttached(PdfEdge.Left); - attached.SetEdge(edges); - //Set the attachement for the artifact. - artifact.Attached = attached; - //Set bounding box for the artifact. - artifact.BoundingBox = new RectangleF(0, 0, 100, 100); - //Create new instance for the PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - //Set tag for the element. - element.PdfTag = artifact; - //Create new instance for the PDF font. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Create new instance for the PDF brush. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element on the PDF page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new page to the document. - Dim page As PdfPage = document.Pages.Add() - 'Create new instance for PDF artifact. - Dim artifact As PdfArtifact = New PdfArtifact() - 'Set artifact type. - artifact.ArtifactType = PdfArtifactType.Layout - Dim edges As PdfEdge() = {PdfEdge.Right, PdfEdge.Top} - 'Create new instance for the PDF attached. - Dim attached As PdfAttached = New PdfAttached(PdfEdge.Left) - attached.SetEdge(edges) - 'Set the attachement for the artifact. - artifact.Attached = attached - 'Set the bounding box for the artifact. - artifact.BoundingBox = New RectangleF(0, 0, 100, 100) - 'Create new instance for the PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - 'Set tag for the element. - element.PdfTag = artifact - 'Create new instance for the PDF font. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Create new instance for the PDF brush. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element on the PDF page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets a value indicating top page edge - - - - - Gets a value indicating left page edge - - - - - Gets a value indicating bottom page edge - - - - - Gets a value indicating right page edge - - - - - Represents the edges of the page. - - - - - Indicates the top edge of the page - - - - - Indicates the bottom edge of the page - - - - - Indicates the left edge of the page - - - - - Indicates the right edge of the page. - - - - - Represents the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - Class - - - - Initialize the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Initialize the Structure element - - tag type - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the abbrevation for the structure element. - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the actual text for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the alternate text for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the language for all text in the structure element - - - - - Gets or sets the logical reading order for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the parent for the element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element with tag type heading. - PdfStructureElement header = new PdfStructureElement(PdfTagType.Heading); - //Initialize new instance of structure element with tag type HeadingLevel1. - PdfStructureElement header1 = new PdfStructureElement(PdfTagType.HeadingLevel1); - header1.Parent = header; - //Initialize new instance of structure element with tag type Paragraph. - PdfStructureElement structElement = new PdfStructureElement(PdfTagType.Paragraph); - structElement.Parent = header1; - //Create PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element with tag type heading. - Dim header As PdfStructureElement = New PdfStructureElement(PdfTagType.Heading) - 'Initialize new instance of structure element with tag type HeadingLevel1. - Dim header1 As PdfStructureElement = New PdfStructureElement(PdfTagType.HeadingLevel1) - header1.Parent = header - 'Initialize new instance of structure element with tag type Paragraph. - Dim structElement As PdfStructureElement = New PdfStructureElement(PdfTagType.Paragraph) - //Set parent for structure element. - structElement.Parent = header1 - 'Create PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - - - - Gets or sets the tag type for the element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //Set the tag type. - structElement.TagType = PdfTagType.HeadingLevel1; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'Set the tag type. - structElement.TagType = PdfTagType.HeadingLevel1; - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Gets or sets the title for the structure element - - - - //Create a new document. - PdfDocument document = new PdfDocument(); - //Set auto tag value. - document.AutoTag = true; - //Add new pdf page. - PdfPage page = document.Pages.Add(); - //Initialize new instance of structure element. - PdfStructureElement structElement = new PdfStructureElement(); - //set the order for the structure element. - structElement.Order = 1; - //set the title for the structure element. - structElement.Title = "Example Text"; - //set the abbrevation for the structure element. - structElement.Abbrevation = "TTT"; - //set the actual text for the structure element. - structElement.ActualText = "Text"; - //set the alternate text for the structure element. - structElement.AlternateText = "ELement Text"; - //set the parent for the structure element. - structElement.Parent = new PdfStructureElement(PdfTagType.Heading); - //Create new PDF text element. - PdfTextElement element = new PdfTextElement(@"Syncfusion Essential studio tool"); - element.PdfTag = structElement; - //Set font for text element. - element.Font = new PdfStandardFont(PdfFontFamily.TimesRoman, 12); - //Set brush for text element. - element.Brush = new PdfSolidBrush(new PdfColor(89, 89, 93)); - //Draw text element into pdf page. - element.Draw(page, new RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)); - //Save and close the document. - document.Save("Output.pdf"); - document.Close(true); - - - 'Create a new document. - Dim document As PdfDocument = New PdfDocument() - 'Set auto tag value. - document.AutoTag = True - 'Add new pdf page. - Dim page As PdfPage = document.Pages.Add() - 'Initialize new instance of structure element. - Dim structElement As PdfStructureElement = New PdfStructureElement() - 'set the order for the structure element. - structElement.Order = 1 - 'set the title for the structure element. - structElement.Title = "Example Text" - 'set the abbrevation for the structure element. - structElement.Abbrevation = "TTT" - 'set the actual text for the structure element. - structElement.ActualText = "Text" - 'set the alternate text for the structure element. - structElement.AlternateText = "ELement Text" - 'set the parent for the structure element. - structElement.Parent = New PdfStructureElement(PdfTagType.Heading) - 'Create new PDF text element. - Dim element As PdfTextElement = New PdfTextElement("Syncfusion Essential studio tool") - element.PdfTag = structElement - 'Set font for text element. - element.Font = New PdfStandardFont(PdfFontFamily.TimesRoman, 12) - 'Set brush for text element. - element.Brush = New PdfSolidBrush(New PdfColor(89, 89, 93)) - 'Draw text element into pdf page. - element.Draw(page, New RectangleF(0, 0, page.Graphics.ClientSize.Width / 2, 200)) - 'Save and Close the document. - document.Save("Output.pdf") - document.Close(True) - - - Class - Class - Class - - - - Represents the subtype of the artifact - - - - - Represents the tag type - - - - - - - - - - - - - - Local variable to store the whitepoint value of CalGray colorspace. - - - - - Local variable to store the blackpoint value of CalGray colorspace. - - - - - Local variable to store the gamma value of CalGray colorspace. - - - - - Gets the number of components for the CalGray Colorspace. - - - - - Gets or sets the Whitepoint value for the CalGray Colorspace. - - - - - Gets or sets the Blackpoint value for the CalGray Colorspace. - - - - - Gets or sets the Gamma value for the CalGray Colorspace. - - - - - - - - Local variable to store the whitepoint value of CalRgb colorspace. - - - - - Local variable to store the blackpoint value of CalRgb colorspace. - - - - - Local variable to store the gamma value of CalRgb colorspace. - - - - - Local variable to store the matrix value of CalRgb colorspace. - - - - - Gets the number of components for the CalRgb Colorspace. - - - - - Gets or sets the Whitepoint value for the CalRgb Colorspace. - - - - - Gets or sets the Blackpoint value for the CalRgb Colorspace. - - - - - Gets or sets the Gamma value for the CalRgb Colorspace. - - - - - Gets or sets the Matrix value for the CalRgb Colorspace. - - - - - - - - - - - Gets the number of components for the DeviceCMYK Colorspace. - - - - - - - - Gets the number of components for the DeviceGray Colorspace. - - - - - - - - Local variable to store the AlternateColorspace value of DeviceN colorspace. - - - - - Local variable to store the function value of DeviceN colorspace. - - - - Set the Colorspace value to local variable from Pdfarray - ColorspaceArray - - - - Get the Colorspace value from Pdfarray - ColorspaceArray - Colorspace - - - - Gets the number of components for the DeviceN Colorspace. - - - - - Gets or set the AlternateColorspace value for DeviceN colorspace - - - - - Gets or set the Function value for DeviceN colorspace - - - - - - - - Gets the number of components for the DeviceRgb Colorspace. - - - - - - - - Local variable to store the IccProfile value of ICCBased colorspace. - - - - - Gets or sets the IccProfile value for the ICCBased Colorspace. - - - - - Gets the Components for the IccBased Alternate Colorspace. - - - - - - - - Local variable to store the N value of IccProfile. - - - - - Local variable to store the alternate colorspace. - - - - - Local variable to store the IccProfile value of IccBased colorspace. - - - - - Local variable to store the matrix value of CalRgb colorspace. - - - - - Gets the Alternate colorspace of IccBased colorspace. - - - - - Gets or sets the N value for the ICCBased Colorspace. - - - - - - - - Local variable to store the BaseColorspace value of Indexed colorspace. - - - - - Local variable to store the Maximum valid index value of Indexed colorspace. - - - - - Local variable to store the Lookup parameter value of Indexed colorspace. - - - - - Get the color value of Indexed colorspace - - Index value for color - Color - - - - Set the Indexed colorspace data to local variable - - Index value Array - - - - - Get the Color - - Color component - Color - - - - Get the Base colorspace of Indexed color space - - Index value Array - Colorspace - - - - Get the Lookup data of Indexed colorspace - - Index value Array - - - - - Get the colorspace of Base colorspace - - Colorspace - - - - Get the Decoded stream of Type0 data - - Type0 stream - Decoded Byte - - - - Decode the FlateDecode stream - - Type0 encoded stream - Memory stream - - - - Gets the number of components for the Indexed Colorspace. - - - - - Gets the DefaultBrush value for the Indexed BaseColorspace. - - - - - Gets or sets the BaseColorspace value for the Indexed Colorspace. - - - - - Gets or sets the Maximum valid index value for the Indexed Colorspace. - - - - - Gets or sets the Lookup parameter value for the Indexed Colorspace. - - - - - - - - Local variable to store the whitepoint value of Labcolorspace. - - - - - Local variable to store the blackpoint value of Labcolorspace. - - - - - Local variable to store the range value of Labcolorspace. - - - - - Gets the number of components for the Labcolorspace. - - - - - Gets or sets the Whitepoint value for the Labcolorspace. - - - - - Gets or sets the Blackpoint value for the Labcolorspace. - - - - - Gets or sets the Range value for the Labcolorspace. - - - - - - - - Local variable to store the Lookup Data of Indexed colorspace - - - - - Load the Lookup stream data of Indexed color space - - Lookup stream data - - - - - Load the Lookup byte string data of Indexed colorspace - - Byte string - - - - - Load the Lookup data reference of Indexed color space - - Reference of Lookup data - - - - - Gets the Lookup Data of Indexed colorspace - - - - - - - - Local variable to store the PatternType value of Pattern colorspace. - - - - - Local variable to store the AlternateColorspace value of Pattern colorspace. - - - - - Local variable to store the PatternMatrix value of Pattern colorspace. - - - - - Local variable to store the Pattern value of Pattern colorspace. - - - - - Gets or sets the AlternateColorspace value for the Pattern Colorspace. - - - - - Gets or sets the PatternMatrix value for the Pattern Colorspace. - - - - - Gets or sets the PatternType value for the Pattern Colorspace. - - - - - - - - Local variable to store the Alternate colorspace value of Seperation colorspace. - - - - - Local variable to store the Function value of Seperation colorspace founction. - - - - Get the color value from string value - string Array - Color - - - - Convert the string array to double array - - string Array - Double array - - - Get the color value from bytes - string Array - Offset Value - Color - - - - Set the Seperation colorspace data to local variable - - seperation value Array - - - - - Get the Seperation colorspace Alternate colorspace from array value - - seperation value Array - Alternate colorspace - - - - Gets the number of components for the Seperation Colorspace. - - - - - Gets or sets the Alternate colorspace value for the Seperation Colorspace. - - - - - Gets or sets the Function value for the Seperation Colorspace. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Contains definition for sorting the enumerator in ascending order - - Type of return value - Delegate - Used to compare two object - If it is set to true, enumerator is sorted in descending order other it is sorted in ascending order - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Exports the specified page as Image - - The page index to be converted into image - Returns the specified page as Image - - - - Exports the specified page as Metafile - - The page to be converted into image - Metafile - - - - Exports the specified page as Image with respect to dpi specified. - - The PdfPageBase to be converted into image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Returns the specified page as Image with custom resolution - - - - Exports the specified page as Image - - The page index to be converted into image - The custom size of the converted image - Whether need to keep the aspect ratio of the page - Returns the image with custom size - - - - Exports the specified pages as Image - - The PdfPageBase to be converted into image - The custom size of the converted image - The horizontal DPI of the resultant image. - The vertical DPI of the resultant image. - Whether need to maintain the pdf page size - Returns the specified pages as images with custom size and resolution - - - - Returns the page number and capured terms found in the page - - List of terms to be searched - Search results - Returns true if any matches found - - - - Returns the page number and capured terms found in the page - - List of terms to be searched - Search results - Returns true if any matches found - - - - Executes each of the provided actions, possibly in parallel. - - An array of System.Action to execute. - - - - Searches the text at a page - - Index of the page - Text to be searched - Matching texts - Returns the matching texts - - - - Returns the page number and rectangle postions of the text matchs found in the page - - The text to be searched - Holds the page number and rectangle positions of the text matches - - - - Returns the rectangle postions of the text matches - - The text which is to be searched - - - - - - Represents a text search item - - - - - Initialises a new instance of TextSearchItem - - - - - Defines the constants that specify the option for text search. - - - - - searches words with no options. - - - - - searches whole words only but not case sensitive. - - - - - Searches words with case sensitive. - - - - - Brush to stroke the text - - - - - Bounds of the text - - - - - - - - - - - Gets or sets a value of the StrokingColorspace - - - - - Gets or sets a value of the NonStrokingColorspace - - - - - Gets or sets a value of the StrokingBrush - - - - - Gets or sets a value of the NonStrokingBrush - - - - - - - - Set the Stroking colorspace of current graphics state - - current colorspace value - - - - - Set the Non Stroking colorspace of current graphics state - - current colorspace value - - - - - Set the Non Stroking RGB color of current graphics state brush - - color value of RGB - - - - - Set the Non Stroking CMYK color of current graphics state brush - - color value of CMYK - - - - - Set the Non Stroking Gray color of current graphics state brush - - color value of Gray - - - - - Set the Stroking RGB color of current graphics state brush - - color value of RGB - - - - - Set the Stroking CMYK color of current graphics state brush - - color value of CMYK - - - - - Set the Stroking Gray color of current graphics state brush - - color value of Gray - - - - - Set the Stroking of current graphics state brush - - color value - - - - - Set the Non Stroking of current graphics state brush - - color value - - - - - Determining valid email address - - email address to validate - true is valid, false if not valid - - - - Calculates the height of text. - - - - - Cleared the collections - - - - - TODO: Can we use PdfMargins class instead of this ? - - - - - - - - - - Renders the Text to the panel - - graphics element - location in which the graphics is to be drawn - - - - Renders the Text to the panel - - graphics element - location in which the graphics is to be drawn - - - - Removes the escape sequence characters in the given text - - text with the escape sequence - Text without escape sequence - - - - - - - The searched text. - - - - - the color of the text - - - - - page Number - - - - - Rectangle bounds of the searched text. - - - - - - - - Parse the annotation properties within a page - - Annotation properties - The specific page in which annotations needs to be added - Zoom factor need to be considered while drawing the annotation rectangle - - - - Calculates the annotation rectangle according to the zoom values. - - The specific page in which annotations needs to be added - Represents the annotation rectangle - - - - - - - - - Include the URL annotation rectangles with the specific page properties - - The specific page in which annotations needs to be added - Represents the annotation properties such as rectangle,location and URI - - - - Include the text rectangles with the specific page properties - - The specific page in which text search needs to be performed - Represents the annotation properties such as rectangle,location and URI - - - - Calculates the annotation rectangle according to the zoom values. - - The specific page in which annotations needs to be added - Represents the annotation rectangle - Zoom factor need to be considered - Drawing panel is true or false is need to be considered - - - - Searches the text at a page - - Index of the page - Text to be searched - Matching texts - Returns the matching texts - - - - Represents the annotation with associated within a page. - - - - - - Represents the URLS within a page. - - - - - Represents the URLS within a page. - - - - - Represents the Rectangle position of the matching text. - - - - - - - - - - - Local variable to store the Domain value of Function - - - - - Local variable to store the Range value of Function - - - - - Local variable to store the dictionary of Function - - - - - Create the function type from dictionary - - Array - Function - - - - Color transfer function - - Input color component value - Double array - - - - Extract the Input Data - - Input data - Double array - - - - Extract the Output Data - - Output data - Double array - - - - - - Gets or sets the Domain value of Function. - - - - - Gets or sets the Range value of Function. - - - - - - - - Local variable to store the BitsPerSample of Type0 - - - - - Local variable to store the Order of Type0 - - - - - Local variable to store the Size of Type0 - - - - - Local variable to store the Encode value of Type0 - - - - - Local variable to store the Decode value of Type0 - - - - - Local variable to store the sample value of Type0 - - - - - Local variable to store the Output value count of Type0 - - - - - Local variable to store the Filter of Type0 Data - - - - - Load the Type0 function stream to local variable - - Type0 Data - - - - - Execute the Type0 function - - Input Data - Color values - - - - - - Get the index of data - - Data - Index - - - - Get the Decoded stream of Type0 data - - Type0 stream - Decoded Byte - - - - Decode the FlateDecode stream - - Type0 encoded stream - Memory stream - - - - Gets or sets the BitsPerSample value of Type0 function. - - - - - Gets or sets the Filter value of Type0 function. - - - - - Gets or sets the Order value of Type0 function. - - - - - Gets or sets the Decode value of Type0 function. - - - - - Gets or sets the Encode value of Type0 function. - - - - - Gets or sets the Size value of Type0 function. - - - - - - - - Local variable to store the C0 value of Type2 function - - - - - Local variable to store the C1 value of Type2 function - - - - - Local variable to store the N value of Type2 function - - - - - Local variable to store the Functions resources value of Type2 function - - - - - Perform the Type0 function - - Input Data - Color values - - - - Perform the Type0 function of Single input data - - Single input data - outputData - - - - Perform the ExponentialInterpolation function - - value - value - value - result - - - - Gets or sets the Function resource value of Type2 function. - - - - - Gets or sets the C0 value of Type2 function. - - - - - Gets or sets the C1 value of Type2 function. - - - - - Gets or sets the N value of Type2 function. - - - - - Gets the output element length - - - - - - - - Local variable to store the Encode value of Type3 function - - - - - Local variable to store the Bounds value of Type3 function - - - - - Local variable to store the Functions value of Type3 function - - - - - Perform the Type4 function - - Input Data - Color values - - - - Gets or sets the Encode value of Type3 function. - - - - - Gets or sets the Bounds value of Type3 function. - - - - - Gets or sets the Function value of Type4 function. - - - - - - - - Local variable to store the Post Script Stream - - - - - Local variable to store the Filter type of Post Script - - - - - Stack pointer - - - - - List of Post Script Operator - - - - - Stack value of Post Script Data - - - - - Operator type array of Post Script Operator - - - - - Current operator type value - - - - - Load the Type4 function stream to local variable - - Type4 Data - - - - - Get the Decoded stream of Type4 function - - Type0 Data - - - - - Perform the Type4 function - - Input Data - Color values - - - - Decodes the ASCII85 encoded stream - - Encoded stream - Decoded Stream - - - - Gets the output element value length - - - - - Gets or sets the Filter value of Type4 function stream. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents custom Schema. - - - - - Represents Xmp Schema. - - - - - Base class for the xmp entities. - - - - - Parent node for this entity. - - - - - Prefix of the entity namespace. - - - - - Local name of the entity. - - - - - Uri of the namespace. - - - - - Initializes a new instance of the class. - - The parent. - The prefix. - Name of the local. - The namespace URI. - - - - Initializes object. - - - - - Checks whether entity already exists in the parent. - - True - if exists, False otherwise. - - - - Gets value indicating whether we have to suspend initialization. - - Value indicating whether we have to suspend initialization. - - - - Creates entity in the parent. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Changes parent of the entity. - - New Xml parent. - - - - Gets Xml data of the entity. - - - - - Gets a value indicating whether this is exists. - - true if exists; otherwise, false. - - - - Gets parent xml node for the entity. - - - - - Gets namespace prefix of the entity. - - - - - Gets name of the entity's tag. - - - - - Gets URI of the entity's namespace. - - - - - Gets a value indicating whether [suspend initialization]. - - - - - Name of the schema tag. - - - - - Xpath to the Description element. - - - - - Parent XmpMetadata. - - - - - Hashtable of the properties. - - - - - Creates new object. - - Parent XmpMetadata. - - - - Creates schema xml. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Creates simple property. - - Name of the property. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Xmp property instance. - - - - Creates xmp array. - - Name of the array. - Type of the array. - Created xmp array. - - - - Gets xmp array. - - Name of the array. - Type of the array. - Xmp array. - - - - Creates xmp lang array. - - Name of the array. - Created xmp array. - - - - Gets xmp lang array. - - Name of the array. - Xmp array. - - - - Gets the structure. - - The name. - The type. - - - - - Creates the structure. - - The name. - The type. - Structure object. - - - - Creates the structure. - - The type of the structure. - Structure object. - - - - Gets type of the schema. - - - - - Gets schema prefix. - - - - - Gets name (URI) of the schema. - - - - - Gets parent XmpMetadata. - - - - - Gets the boolen result key value at present or not - - - - - - - Initializes a new instance of the class. - - Parent XmpMetadata. - The XML namespace. - The namespace URI. - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - To remove custom object both XMP and customschema - - - - - - To get custom prefix xml node from loaded PDF XMP - - - - - - To set the loaded custom prefix XMP to current XMP - - - - - Sets the xmp property. - - - - - Gets CustomSchema dictionary - - - - - Gets type of the schema. - - - - - Gets schema prefix. - - - - - Gets name (URI) of the schema. - - - - - Enumerates types of the xmp structure. - - - - - A structure containing dimensions for a drawn object. - - - - - A structure containing the characteristics of a font used in a document. - - - - - A structure containing the characteristics of a Coloring (swatch) used in a document. - - - - - A thumbnail image for a file. - - - - - Job structure. - - - - - Enumerates types of the xmp schema. - - - - - Dublin Core Schema. - - - - - Basic Schema. - - - - - Rights Management Schema. - - - - - Basic Job Ticket Schema. - - - - - Paged Text Schema. - - - - - Adobe PDF Schema. - - - - - Custom schema. - - - - - Types of the xmp arrays. - - - - - Unknown array type. - - - - - Unordered array. - - - - - Ordered array. - - - - - Alternative array. - - - - - The Syncfusion.Pdf.Xmp namespace contains classes to create, process metadata for documents. - - - - - Represents Xmp array. - - - - - Base class for the arrays. - - - - - Base class for the Xmp types. - - - - - Parent Xmpmetadata. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Creates entity in the parent. - - - - - Gets parent XmpMetadata. - - - - - Name of the array item tag. - - - - - Initializes a new instance of the class. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Creates entity in the parent. - - - - - Gets list of the array items. - - List of the array items. - - - - Gets prefix of the array depending on the array type. - - prefix - - - - Gets count of the items in the collection. - - Count of the items in the collection. - - - - Gets count of the items in the collection. - - - - - Gets type of the collection. - - - - - Gets items container element. - - - - - Default date format. - - - - - Type of the array. - - - - - Initializes a new instance of the class. - - The XMP. - The parent. - The prefix. - Name of the local. - The namespace URI. - The type. - - - - Adds string value to the array. - - Value to be added to the array. - - - - Adds integer value to the array. - - Value to be added to the array. - - - - Adds float value to the array. - - Value to be added to the array. - - - - Adds Date to the array. - - Value to be added to the array. - - - - Adds Date to the array. - - Value to be added to the array. - String format of the date. - - - - Adds an XMP structure. - - The structure. - - - - Creates array item element. - - XmlElement of the array item. - - - - Returns array of the array values. - - Array of the array values. - - - - Changes parent of the entity. - - New entity parent. - Xmp entity. - - - - Gets array of the array values. - - - - - Gets type of the array. - - - - - Represents Xmp Alt Lang array. - - - - - Default language name. - - - - - Language attribute. - - - - - Creates new object. - - Parent XmpMetadata. - Parent XmlElement of the array. - Prefix of the array. - Name of the tag. - Namespace URI. - - - - Adds item to the array. - - Language code. - Text value. - - - - Creates entity in the parent. - - - - - Creates array item element. - - Language code. - XmlElement of the array item. - - - - Searches for a item with the specified language. - - Language name. - Item with the specified language. - - - - Gets or sets the default text. - - The default text. - - - - Gets or sets the with the specified lang. - - value - - - - Gets type of the lang array. - - - - - Represents XMP metadata of the document. - - - - - Xpath for the RDF element. - - - - - Extensible Markup Language Namespace prefix. - - - - - Namespace unique resource identifier for the xmlns attribute. - - - - - Xml prefix. - - - - - Namespace uri for the xml namespace. - - - - - Uri of the Resource Description Framework namespace. - - - - - Prefix of the PDF namespace. - - - - - Start packet. - - - - - Namespace of the xmpmeta tag. - - - - - End packet. - - - - - Uri of the Resource Description Framework PDF/A namespace. - - - - - Uri of the Extensible Authoring Publishing namespace. - - - - - Uri of the Adobe PDF schema namespace. - - - - - Uri of the Dublin Core schema namespace. - - - - - Uri of the Custom Schema namespace - - - - - XmlDocument containing xmp data. - - - - - Namespace manager. - - - - - Dublin Core Schema. - - - - - Dublin Core Schema. - - - - - Basic Job Ticket Schema. - - - - - Basic Schema. - - - - - Rights Management Schema. - - - - - Indicates PDFSchema. - - - - - Custom Schema - - - - - PdfStream container. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - The XMP. - - - - Loads XMP from the XML. - - XMP data in XMLDocument. - If there was any data in this XMP, it will be replaced by the data from the XML. - - - - Adds schema to the XMP in XML format. - - XMP schema in XML format. - If XMP already contains such schema - there will be two equal schemas at the xmp. - - - - Initializes a packet of the XMP. - - - - - Initializes stream. - - - - - Creates packet element. - - - - - Creates xmpmeta element. - - - - - Creates Resource Description Framework element. - - - - - Creates a Dublin core containers. - - - - - Creates packet element. - - - - - Resets current xmp metadata. - - - - - Imports all namespaces to the namespace manager. - - Current element. - Namespace Manager. - - - - Creates element. - - Name of the element. - Created element. - - - - Creates element. - - Prefix of the element. - Local name of the element. - Namespace URI. - Created element. - - - - Creates attribute. - - Name of the attribute. - Value of the attribute. - Created XmlAttribute. - - - - Creates attribute. - - Prefix of the attribute. - Name of the attribute. - Namespace Uri. - Value of the attribute. - Created XmlAttribute. - - - - Adds namespace. - - Namespace prefix. - Namespace Uri. - Uri of the namespace. - - - - Raises before stream saves. - - Sender of the event. - Event data. - - - - Raises after stream saves. - - Sender of the event. - Event data. - - - - Gets Dublin Core Schema. - - - - - Gets Dublin Core Schema. - - - - - Gets Basic Job Ticket Schema. - - - - - Gets Basic Schema. - - - - - Gets Rights Management Schema. - - - - - Gets a schema specifying properties used with Adobe PDF documents. - - - - - Gets Custom Schmea - - - - - Gets XMP data in XML format. - - - - - Gets namespace manager of the Xmp metadata. - - - - - Gets xmpmeta element of the packet. - - - - - Gets RDF element of the packet. - - - - - Gets the element. - - - - - - Represents simple Xmp type. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Sets bool value to the object. - - Bool value. - - - - Gets boolean value. - - Boolean value. - - - - Sets real value to the object. - - Real value. - - - - Gets real value. - - Real value. - - - - Sets int value to the object. - - Int value. - - - - Gets int value. - - Int value. - - - - Sets unique resource identifier value to the object. - - Uri value. - - - - Gets unique resource identifier value. - - Uri value. - - - - Sets DateTime value to the object. - - DateTime value. - - - - Gets DateTime value. - - DateTime value. - - - - Creates entity in the parent. - - - - - Gets or sets value of the instance. - - - - - Utility class. - - - - - False string. - - - - - True string. - - - - - Real pattern. - - - - - Default date format. - - - - - Private constructor. - - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves boolean value from the string. - - String representation of the boolean value. - Boolean value from the string. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Float value from the string. - - - - Sets text value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Int value from the string. - - - - Sets unique resource identifier value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Uri value from the string. - - - - Sets DateTime value to the element. - - Parent element. - Value data. - - - - Retrieves float value from the string. - - String representation of the float value. - Uri value from the string. - - - - Sets an XML value. - - The parent. - The child. - - - - Removes all childrens from the - - Node element. - - - - Represents Basic Job Ticket Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets references an external job management file for a job - process in which the document is being used. Use of job - names is under user control. Typical use would be to - identify all documents that are part of a particular job or - contract. - - - - - Represents Basic Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets an unordered array specifying properties that were - edited outside the authoring application. - - - - - Gets an unordered array of text strings that unambiguously - identify the resource within a given context. An array - item may be qualified with xmpidq:Scheme to denote - the formal identification system to which that identifier - conforms. - - - - - Gets or sets a word or short phrase that identifies a document as a - member of a user-defined collection. Used to organize - documents in a file browser. - - - - - Gets or sets a short informal name for the resource. - - - - - Gets or sets The base URL for relative URLs in the document - content. If this document contains Internet links, and - those links are relative, they are relative to this base - URL. - - - - - Gets or sets The name of the first known tool used to create the - resource. If history is present in the metadata, this value - should be equivalent to that of xmpMM:History�s - softwareAgent property. - - - - - Gets or sets the date and time the resource was originally created. - - - - - Gets or sets the date and time that any metadata for this resource - was last changed. It should be the same as or more - recent than xmp:ModifyDate. - - - - - Gets sets the date and time the resource was last modified. - - - - - Gets an alternative array of thumbnail images for a file, - which can differ in characteristics such as size or image - encoding. - - - - - Gets a number that indicates a document�s status relative to - other documents, used to organize documents in a file - browser. Values are user-defined within an application defined range. - - - - - Represents Dublin Core Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Mime-Type of the document. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Initializes object. - - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets contributors to the resource (other than the authors). - - - - - Gets or sets the extent or scope of the resource. - - - - - Gets the authors of the resource (listed in order of precedence, if - significant). - - - - - Gets date(s) that something interesting happened to the resource. - - - - - Gets or sets a textual description of the content of the resource. Multiple - values may be present for different languages. - - - - - Gets or sets the unique identifier of the resource. - - - - - Gets publishers. - - - - - Gets relationships to other documents. - - - - - Gets informal rights statement, selected by language. - - - - - Gets or sets the unique identifier of the work from which this resource was derived. - - - - - Gets or sets an unordered array of descriptive phrases or keywords that - specify the topic of the content of the resource. - - - - - Gets the title of the document, or the name given to the resource. - Typically, it will be a name by which the resource is - formally known. - - - - - Gets a document type; for example, novel, poem, or working - paper. - - - - - Represents Paged Text Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets the size of the largest page in the document (including - any in contained documents). - - - - - Gets or sets the number of pages in the document (including any in - contained documents). - - - - - Gets an unordered array of fonts that are used in the - document (including any in contained documents). - - - - - Gets an unordered array of fonts that are used in the - document (including any in contained documents). - - - - - Gets an ordered array of colorants (swatches) that are used - in the document (including any in contained - documents). - - - - - This schema specifies properties used with Adobe PDF documents. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets or sets keywords of the document. - - - - - Gets or sets the PDF file version (for example: 1.0, 1.3, and so on). - - - - - Gets or sets the name of the tool that created the PDF document. - - - - - Represents Rights Management Schema. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates schema object. - - Parent XmpMetadata. - - - - Gets type of the Schema. - - - - - Gets name pf the schema. - - - - - Gets prefix of the schema. - - - - - Gets or sets online rights management certificate. - - - - - Gets or sets indicates that this is a rights-managed resource. - - - - - Gets an unordered array specifying the legal owner(s)of a resource. - - - - - Gets text instructions on how a resource can be legally used. - - - - - Gets or sets the location of a web page describing the owner - and/or rights statement for this resource. - - - - - coloring Structure. - - - - - Represents Xmp Structure. - - - - - Hashtable of the properties. - - - - - Indicates whether structure is inside of the array or not. - - - - - Indicates whether we have to suspend initialization. - - - - - Indicate swhether structure is initialized. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - if it is inside an array, set to true. - - - - Creates structure. - - - - - Gets Xml data of the entity. - - XmlElement containing entity data. - - - - Gets value indicating whether we have to suspend initialization. - - Value indicating whether we have to suspend initialization. - - - - Checks whether entity already exists in the parent. - - True - if exists, False otherwise. - - - - Initializes internal entries. - - - - - Creates simple property. - - Name of the property. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Xmp property instance. - - - - Creates simple property. - - Name of the property. - Parent XmlNode. - Simple property instance. - - - - Gets property by its name. - - Name of the property. - Parent XmlNode. - Xmp property instance. - - - - Creates xmp array. - - Name of the array. - Type of the array. - Created xmp array. - - - - Gets xmp array. - - Name of the array. - Type of the array. - Xmp array. - - - - Creates structure inner content. - - - - - Gets Xml element of the description tag. - - Xml data. - - - - Gets parent of the structure content. - - Parent of the structure content. - - - - Gets inner xml data. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Gets or sets yellow value when the mode is CMYK. Range 0-100. - - - - - Gets or sets B value when the mode is LAB. Range -128 to 127. - - - - - Gets or sets A value when the mode is LAB. Range -128 to 127. - - - - - Gets or sets L value when the mode is LAB. Range 0-100. - - - - - Gets or sets blue value when the mode is RGB. Range 0-255. - - - - - Gets or sets green value when the mode is RGB. Range 0-255. - - - - - Gets or sets red value when the mode is RGB. Range 0-255. - - - - - Gets or sets black value when the mode is CMYK. Range 0-100. - - - - - Gets or sets magenta value when the mode is CMYK. Range 0-100. - - - - - Gets or sets Cyan value when the mode is CMYK. Range 0-100. - - - - - Gets or sets the type of color, one of PROCESS or SPOT. - - - - - Gets or sets the color space in which the color is defined. One of: - CMYK, RGB, LAB. Library colors are represented in - the color space for which they are defined. - - - - - Gets or sets name of the swatch. - - - - - Dimensions structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets or sets Width. - - - - - Gets or sets height. - - - - - Gets or sets units. For example: inch, mm, pixel, pica, point. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Font Structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes structure. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Gets or sets the name of the font. - - The name of the font. - - - - Gets or sets the font family. - - The font family. - - - - Gets or sets the font face name. - - The font face. - - - - Gets or sets the type of the font. - - The type of the font. - - - - Gets or sets the version string. - - The version string. - - - - Gets or sets a value indicating whether this is composite. - - true if composite; otherwise, false. - - - - Gets or sets the name of the font file. - - The name of the font file. - - - - Gets the list of file names for the fonts that make up a - composite font. - - - - - Declares Job structure. - - - - - Prefix of the structure. - - - - - Name of the structure. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets or sets informal name of job. This name is for user display and - informal systems. - - - - - Gets or sets unique ID for the job. This field is a reference into some - external job management system.. - - - - - Gets or sets a file URL referencing an external job management file. - - - - - Gets prefix of the structure - - - - - Gets name pf the structure. - - - - - Xmp Thumbnail Structure. - - - - - Prefix of the schema. - - - - - Nasme of the schema. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Name of the property. - - - - - Creates xmp simple type instance. - - Parent XmpMetadata. - Parent xml node. - Namespace prefix. - Name of the tag. - Namespace URI. - Indicates whether structure is inside of the array. - - - - Initializes. - - - - - Gets prefix of the structure. - - - - - Gets name pf the structure. - - - - - Gets or sets the height. - - The height. - - - - Gets or sets the width. - - The width. - - - - Gets or sets the format. - - The format. - - - - Gets or sets the thumbnail image (pixel data only) converted to base 64 - notation. - - The image. - - - - Reads the Name of the element - - XPS data - Reader position - Name - - - - Reads the boolean value from the Data - - XPS data - Reader position - True if the next value is boolean - - - - Reads the float from the data. - - XPS data - Reader position - float value - - - - Reads the point from the data - - XPS data - Reader position - point - - - - Reads the matrix from the data - - XPS data - Reader position - Matrix - - - - Represents the XPS Document reader - - - - - Initializes the new instance of the XPS Document reader - - Path to the XPS document - - - - Initializes a new instance of the XPS document reader - - Stream containing the XPS document content - - - - Reads the FixedDocumentSequence - - - - - Reads the FixedDocumentSequence - - - - - Reads the fixed documents - - - - - Reads the image - - Image element - Image stream - - - - Reads the fixed pages. - - - - - Reads the elements from the fixed page. - - pattern of the element - XPSElement type - XPS Element - - - - Reads the XPS element - - Element name - Element type - XPS element - - - - Reads the XPS element - - Element name - XPS element - - - - Gets the safe name - - Element name - Safe name - - - - Search for a XPS element - - Name of the element - Index of the element - - - - Search for a XPS element. - - Name of the element - Index to start search - Index of the element - - - - Search for a XPS element. - - Regex of element - Index to start search - Index of the element - - - - Reads the font with the URI - - Font URI - Font Name - - - - Gets the Font style - - Font URI - Font style - - - - Extract the font - - Font Stream - Created font - Font Guid - - - - Reads the resources in the XPS document - - resource name - Resource - - - - Dispose the document - - - - - Gets the FixedDocumentSequence - - - - - Gets the Fixed documents - - - - - Gets the fixed pages - - - - - Gets the font names - - - - - Enumerator representing the available XPS elements. - - - - - Represents the path data reader. - - - - - Initializes a new instance of the PathDataReader class. - - - - - - Reads the symbols - - Symbol - - - - Gets the next symbol - - Symbol - - - - Updates the current position of the reader - - Length of the path data - - - - Reads the float value from the path data - - float value - True if the next value is float - - - - Reads the pint form the path data - - Point value - True if the next parameter is point - - - - Reads the position array from the path data - - position array - True if the next parameter is position array - - - - Reads the points from the path data - - Points - - - - Checks if the current character is symbol - - True if the character is a symbol - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Represents the path data reader. - - - - - Initializes a new instance of the PathDataReader class. - - - - - - Reads the symbols - - Symbol - - - - Gets the next symbol - - Symbol - - - - Updates the current position of the reader - - Length of the path data - - - - Reads the float value from the path data - - float value - True if the next value is float - - - - Reads the pint form the path data - - Point value - True if the next parameter is point - - - - Reads the position array from the path data - - position array - True if the next parameter is position array - - - - Reads the points from the path data - - Points - - - - Checks if the current character is symbol - - True if the character is a symbol - - - - Gets a value indicating whether this is EOF. - - true if EOF; otherwise, false. - - - - Gets text length. - - - - - Gets or sets the position. - - The position. - - - - Reads the Name of the element - - XPS data - Reader position - Name - - - - Reads the boolean value from the Data - - XPS data - Reader position - True if the next value is boolean - - - - Reads the float from the data. - - XPS data - Reader position - float value - - - - Reads the point from the data - - XPS data - Reader position - point - - - - Reads the matrix from the data - - XPS data - Reader position - Matrix - - - - Represents the XPS Document reader - - - - - Initializes the new instance of the XPS Document reader - - Path to the XPS document - - - - Initializes a new instance of the XPS document reader - - Stream containing the XPS document content - - - - Reads the FixedDocumentSequence - - - - - Reads the FixedDocumentSequence - - - - - Reads the fixed documents - - - - - Reads the image - - Image element - Image stream - - - - Reads the fixed pages. - - - - - Reads the elements from the fixed page. - - pattern of the element - XPSElement type - XPS Element - - - - Reads the XPS element - - Element name - Element type - XPS element - - - - Reads the XPS element - - Element name - XPS element - - - - Gets the safe name - - Element name - Safe name - - - - Search for a XPS element - - Name of the element - Index of the element - - - - Search for a XPS element. - - Name of the element - Index to start search - Index of the element - - - - Search for a XPS element. - - Regex of element - Index to start search - Index of the element - - - - Reads the font with the URI - - Font URI - Font Name - - - - Gets the Font style - - Font URI - Font style - - - - Extract the font - - Font Stream - Created font - Font Guid - - - - Reads the resources in the XPS document - - resource name - Resource - - - - Dispose the document - - - - - Gets the FixedDocumentSequence - - - - - Gets the Fixed documents - - - - - Gets the fixed pages - - - - - Gets the font names - - - - - Enumerator representing the available XPS elements. - - - - - Represents the XPS Parser - - - - - Represents the currently parsed Fixed Page - - - - - Represents the XPS renderer object - - - - - Represents the XPS enumerator delegate - - - - - Represents the PdfUnitconvertor - - - - - Creates an instance of the XPS parser class. - - Fixed page of the XPS - The XPS renderer - - - - Enumerates the XPS file - - - - - Reads the XPS canvas - - XPS canvas - - - - Reads the XPS glyphs - - XLS Glyphs - - - - Reads the XPS path - - XPS path - - - - Enumerates the XPS fixed page objects - - - - - Converts the pixel value to points - - pixel value - value in point - - - - Gets the XPS renderer - - - - - Represents the XPS enumerator - - - - - Represnets the XPS to PDF renderer. - - - - - Represents the PdfGraphics where the XPS graphics is to be transformed. - - - - - Represents the current PdfPage where the XPS graphics is transformed. - - - - - Represents the PdfUnitConverter for the internal pixels to point conversion. - - - - - Represents the XPS reader object. - - - - - Represents the comma separator - - - - - - - - - - Represents the current transformation matrix. - - - - - Intializes a new instance of the XPSRenderer class. - - The current PDF Page - The XPS document reader - - - - Draws/converts the text objects from XPS to PDF. - - Glyph object with the metrics - - - - Converts the path string to a PdfPath - - Represents the path string - Returns the PdfPath object - - - - Draws/converts the XPS Path to PDF path. - - The XPS path object - - - - Read and draw contents of VisualBrush. - - - - - Convert from XPS linear gradient brush to PDF. - - LinearGradientBrush - PdfLinearGradientBrush - - - - Convert from XPS radial gradient brush to PDF. - - RadialGradientBrush - PdfRadialGradientBrush - - - - Converts XPS pathgeometry to PdfPath. - - PathGeometry - PdfPath - - - - Convert string values to PointF - - String data. - Data in PointF - - - - Convert string values to RectangleF - - String data. - Data in RectangleF. - - - - Processes Gradient stops. - - Gradient stops read from file. - Offsets - Colors - - - - Returns the lowest value based on 0.0f - - - - - Returns the first value greater than 0.0f - - - - - Returns the highest value based on 1.0f - - - - - - - Returns the top most value based on 1.0f - - - - - - - Reads static resource based on hierarchy of elements. - - Name of the resource. - Object containing the resource. - - - - Reads resource dictionary from the document. - - - - - Returns resource from the collection. - - - - - Converts the canvas graphics to PDF graphics. - - XPS Canvas - - - - Intializes the XPS canvas - - XPS canvas - - - - Applies the XPS transformation. - - Transformation matrix - Grahics where the transformation is to be done. - - - - Applies the Graphics transformation - - Transformation matrix - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Converts the matrix string to a System.Drawing.Drawing2D.Matrix object - - matrix string - System.Drawing.Drawing2D.Matrix object - - - - Converts the Glyph font to PdfFont - - XPS Glyph object - PdfFont - - - - Gets the SolidColorBrush form the color string - - Color string - PdfBrush - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Converts the pixel values to point - - pixel value - Points - - - - Convert the pixel coordinates to points - - pixel coordinates - Coordinates in Points - - - - Converts string to float. - - Number as string. - Converted number in float. - - - - Converts string to double. - - Number as string. - Converted number in double. - - - - Gets the graphics of the current PdfPage - - - - - Represents the XPS Parser - - - - - Represents the currently parsed Fixed Page - - - - - Represents the XPS renderer object - - - - - Represents the XPS enumerator delegate - - - - - Represents the PdfUnitconvertor - - - - - Creates an instance of the XPS parser class. - - Fixed page of the XPS - The XPS renderer - - - - Enumerates the XPS file - - - - - Reads the XPS canvas - - XPS canvas - - - - Reads the XPS glyphs - - XLS Glyphs - - - - Reads the XPS path - - XPS path - - - - Enumerates the XPS fixed page objects - - - - - Converts the pixel value to points - - pixel value - value in point - - - - Gets the XPS renderer - - - - - Represents the XPS enumerator - - - - - Represnets the XPS to PDF renderer. - - - - - Arabic characters will not be displayed properly if given the actual size, so the size is decreased by this decrement factor. - - - - - Represents the PdfGraphics where the XPS graphics is to be transformed. - - - - - Represents the current PdfPage where the XPS graphics is transformed. - - - - - Represents the PdfUnitConverter for the internal pixels to point conversion. - - - - - Represents the XPS reader object. - - - - - Represents the comma separator - - - - - - - - - - Represents the current transformation matrix. - - - - - Represents visualbrush viewport value. - - - - - Represents visualbrush graphic state. - - - - - Intializes a new instance of the XPSRenderer class. - - The current PDF Page - The XPS document reader - - - - Draws/converts the text objects from XPS to PDF. - - Glyph object with the metrics - - - - Checks if the text contains RTL character or number. - - Array of symbols. - True if the text contans RTL character or number. - - - - Converts the path string to a PdfPath - - Represents the path string - Returns the PdfPath object - - - - Draws/converts the XPS Path to PDF path. - - The XPS path object - - - - set pixel color of an image. - - - - - Read and draw contents of VisualBrush. - - - - - Convert from XPS linear gradient brush to PDF. - - LinearGradientBrush - PdfLinearGradientBrush - - - - Convert from XPS radial gradient brush to PDF. - - RadialGradientBrush - PdfRadialGradientBrush - - - - Converts XPS pathgeometry to PdfPath. - - PathGeometry - PdfPath - - - - Convert string values to PointF - - String data. - Data in PointF - - - - Convert string values to RectangleF - - String data. - Data in RectangleF. - - - - Processes Gradient stops. - - Gradient stops read from file. - Offsets - Colors - - - - Returns the lowest value based on 0.0f - - - - - Returns the first value greater than 0.0f - - - - - Returns the highest value based on 1.0f - - - - - - - Returns the top most value based on 1.0f - - - - - - - Reads static resource based on hierarchy of elements. - - Name of the resource. - Object containing the resource. - - - - Reads resource dictionary from the document. - - - - - Returns resource from the collection. - - - - - Converts the canvas graphics to PDF graphics. - - XPS Canvas - - - - Intializes the XPS canvas - - XPS canvas - - - - Applies the XPS transformation. - - Transformation matrix - Grahics where the transformation is to be done. - - - - Applies the Graphics transformation - - Transformation matrix - - - - Prepares a matrix to PDF. - - The matrix. - A properly prepared PdfTransformationMatrix class instance. - - - - Converts the matrix string to a System.Drawing.Drawing2D.Matrix object - - matrix string - System.Drawing.Drawing2D.Matrix object - - - - Converts the Glyph font to PdfFont - - XPS Glyph object - PdfFont - - - - Gets the SolidColorBrush form the color string - - Color string - PdfBrush - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Gets the font style of the glyph - - StyleSimulations - FontStyle - - - - Converts the pixel values to point - - pixel value - Points - - - - Convert the pixel coordinates to points - - pixel coordinates - Coordinates in Points - - - - Converts string to float. - - Number as string. - Converted number in float. - - - - Converts string to double. - - Number as string. - Converted number in double. - - - - Gets the graphics of the current PdfPage - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The Syncfusion.XPS namespace contains classes for converting the XML Paper Specification (XPS) to PDF - - - - - Represents the XPS to PDF converter. - - This API is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Represents the PdfUnitConverter - - - - - identifying the oxps files - - - - - Initializes a new instance of the class. - - This constructor is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Initialize a new instance of the class. - - The XPS to PDF converter settings. - - - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(settings); - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter(settings) - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert("XPSToPDF.xps"); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert("XPSToPDF.xps") - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the XPS document in stream to PDF. - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - XPS document - PdfDocument - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert(XpsStream); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert(XpsStream) - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the byte array with XPS file content to PDF - - This method is not supported in WinRT, Windows Phone, Xamarin, Universal Windows Platform and Silverlight. - XPS document - PdfDocument - - - //Create new instance for XPSToPdfConverter - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Converts XPS to PDF - PdfDocument pdfDocument = converter.Convert(XpsByte); - //Save the PDF document - pdfDocument.Save("Output.pdf"); - //Closing the PDF document - pdfDocument.Close(true); - - - 'Create new instance for XPSToPdfConverter - Dim converter As New XPSToPdfConverter() - 'Converts XPS to PDF - Dim pdfDocument As PdfDocument = converter.Convert(XpsByte) - 'Save the PDF document - pdfDocument.Save("Output.pdf") - 'Closing the PDF document - pdfDocument.Close(True) - - - - - - Converts the Pixel to Point value. - - value in pixel - value in points - - - - Enable or disable embedding complete font - - - By enabling this propety the size of the output PDF will be larger. - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Initializes a new instance of the class - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - Enable or disable embedding complete font - - - By enabling this propety the size of the output PDF will be larger. - - - - //Create a new XPS to PDF converter. - XPSToPdfConverter converter = new XPSToPdfConverter(); - //Create new XPS to PDF converter settings instance. - XPSToPdfConverterSettings settings = new XPSToPdfConverterSettings(); - //Enable enbed complete font. - settings.EmbedCompleteFont = true; - //Assign settings to XPS converter. - converter.Settings = settings; - //Convert the XPS file to PDF. - PdfDocument document = converter.Convert("input.xps"); - //Save the PDF document. - document.Save("output.pdf"); - //Close the PDF document. - document.Close(true); - - - 'Create a new XPS to PDF converter. - Dim converter As New XPSToPdfConverter() - 'Create new XPS to PDF converter settings instance. - Dim settings As New XPSToPdfConverterSettings() - 'Enable enbed complete font. - settings.EmbedCompleteFont = True - 'Assign settings to XPS converter. - converter.Settings = settings - 'Convert the XPS file to PDF. - Dim document As PdfDocument = converter.Convert("input.xps") - 'Save the PDF document. - document.Save("output.pdf") - 'Close the PDF document. - document.Close(True) - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.IO.StreamReader. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - - Looks up a localized resource of type System.Byte[]. - - - - diff --git a/DPM2016/bin/Release/Syncfusion.Shared.Base.dll b/DPM2016/bin/Release/Syncfusion.Shared.Base.dll deleted file mode 100644 index d81f126..0000000 Binary files a/DPM2016/bin/Release/Syncfusion.Shared.Base.dll and /dev/null differ diff --git a/DPM2016/bin/Release/Syncfusion.Shared.Base.xml b/DPM2016/bin/Release/Syncfusion.Shared.Base.xml deleted file mode 100644 index e254aca..0000000 --- a/DPM2016/bin/Release/Syncfusion.Shared.Base.xml +++ /dev/null @@ -1,69960 +0,0 @@ - - - - Syncfusion.Shared.Base - - - - - - This class holds the name of the Syncfusion.Shared.Base assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - The full name of this assembly without version information: "Syncfusion.Shared.Base". - - - - - A reference to the for the grid assembly. - - - - - The root namespace of this assembly. Used internally for locating resources within the assembly. - - - - - This delegate helps with resolving types and can be used as an eventhandler - for a event. - - The source of the event. - The event data with information about the type. - A reference to the assembly where the type is located. - - - - Defines the interface for extendable text box wrappper. - - - - - Invalidates text box. - - - - - Text box control native handle. - - Must return if handle isn't created yet. - - - - Occurs when text box is created. - - - - - Occurs when text of text box is changed. - - - - - Indicates whether text box is focused. - - - - - Background color of text box. - - - - - Client rectangle of text box - - - - - Font of text box. - - - - - Indicates whether text box is in RTL mode. - - - - - Defines the interface for extending text box owned by some components. - - - - - Specifies whether this component can provide banner text extender properties to the specified object. - - The to receive the extender properties. - true if this object can provide extender properties to the specified object. - - - - Retrieves extendable text box info. - - Extended component. - object - - - - Type of extended component. - - - - - Component's type. - - - - - Collection of extended components. - - - - - Stores text box to component backaward mapping. - - - - - Stores map of bannet text info to extenders . - - - - - Default banner text providers. - - - - - Default constructor. - - - - - Creates instance of class and registers it in owner's container. - - Owner's container. - - - - Static constructor. - - Registers default banner text providers. - - - - Register additional . - - Provider to register. - - - - Returns for given component. - - Component to retirive info for. - Associated object. - Returns a copy of object. - - - - Associates with component. - - Component. - info object. - - - - Retrieves text box to component backward map. - - Mapping is created on demand. - - - - Renders banner text for -derived control. - - - - - Draws banner text. - - to draw at. - Specifies banner text appearance. - Banner text background color. - Fallback font for the case when doesn't contain valid font. - Text flow layout. - Rectangle to draw within. - - - - Determines whether draw text is visible and must be drawn. - - Describes banner text appearance. - Indicates whether extended text box is focused. - Indicates whether extended text box's text is empty. - True if banner text is visible. - - - - Describes banner text rendering behavior. - - - - - Banner text disappears when the control gets focus. - - - - - Banner text disappears only when associated text box is not empty. - - - - - Describes banner text appearance and behavior. - - - - - Static constructor. - - - - - Default constructor. - - - - - Copy constructor. - - - - - Specifies banner text. - - - - - Specifies whether banner text is visible. - - - - - Specifies font of banner text. - - - - - Specifies banner text rendering mode. See for details. - - - - - Specifies banner text color. - - - - - Type converter for - - - - - Designer for - - - - - Base implementation for interface. - - - - - HandleCreated event delegate. - - - - - TextBoxTextChanged event delegate. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources. - - - - - Releases unmanaged resources and performs other cleanup operations before the - is reclaimed by garbage collection. - - - - - Extendable text box wrapper for . - - - - - Initializes a new instance of the class. - - The text box. - - - - Sets the cursor position to initial state - - The font. - - - - Invalidates this instance. - - - - - Releases unmanaged and - optionally - managed resources - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Gets the handle. - - The handle. - - - - Gets a value indicating whether this is focused. - - true if focused; otherwise, false. - - - - Gets the color of the back. - - The color of the back. - - - - Gets the client rectangle. - - The client rectangle. - - - - Gets the font. - - The font. - - - - Gets the right to left. - - The right to left. - - - - Banner text provider for TextBox-derived classes. - - - - - Banner text provider for ComboDropDown-derived classes. - - - - - Extendable text box wrapper for . - - - - - Banner text provider for ComboBox-derived classes. - - - - - Render button in metro style - - - - - Basic class for all renderers. ButtonRenderer provides the basic plumbing that is needed by all renderers. - - You can derive from ButtonRenderer to create your own renderers. - - - - - - - - - - - - - - - - - - - True - class is disposed, otherwise False. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies region for drawing - - - - - Sets vista color scheme for the control. - - - - - Sets office 2010 color scheme for the control. - - - - - Sets Metro color scheme for the control. - - - - - This function does much of the rendering. In the base , it does not - do anything. - - - The graphics object to use. - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Draws background image, image and text - - - The graphics object to use. - - - - - - - - - - - - - - - - - - - - - - - - - Helper function to get an image from within embedded resources. - - The resource name to get. - An image; NULL if the image is not available. - - The class can take an image based on the - property. This helper function - loads the images based on the resource name. - - - - - - - - True if button has state , otherwise False. - - - - - True if button has state , otherwise False. - - - - - True if button has state , otherwise False. - - - - - - - - - - - - - - - - - Renders an background image. - - The graphics object to use. - BackgroundImage to render. - The layout of background image. - The bounds of the control. - The rectangle to draw on it. - Offset of location of the image when layout is tile. - The rightToLeft property of the control. - - - - Renders an image. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the image. - Image to render. - - - - Renders an inverted triangle. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the shape. - The brush to be used for filling the interior of the rendered triangle. - The pen to be used for stroking the triangle. - - - - Renders a triangle. Delegates to the class. - - The graphics object to use. - The bounds to be used when rendering the shape. - The brush to be used for filling the interior of the rendered triangle. - The pen to use for stroking the triangle. - - - - - - - - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - - Metro ForeColor - - - - - - - - - Make class cleanup - - - - - Sets metro color - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets Name. - - - - - Renderer in colorful style. - - - - - Gets the color table of the . - - - - - - - Sets the ForeColor of the - - - - - Sets the ForeColor of the listbox in - - - - - Sets the ForeColor of the listbox in - - - - - Gets the MetroColor of the - - - - - Gets the MetroFore color of the - - - - - Gets the TabPanelBackground color of the - - - - - Renderer in black theme style. - - - - - Sets the ForeColor of the - - - - - Sets the ForeColor of the list box in - - - - - Sets the BackColor of the list box in - - - - - Sets the MetroColor of the - - - - - Sets the TabPanelBackground color of the - - - - - Sets the MetroFore of the - - - - - Renderer in white theme style. - - - - - Gets the ForeColor of the - - - - - Gets the ForeColor of the listbox in - - - - - Gets the BackColor of the list box in - - - - - Gets the MetroColor of the - - - - - Gets the TabPanelBackground color of the - - - - - Gets the MetroForeColor of the - - - - - Renderer in dark gray style. - - - - - Gets the ForeColor of the - - - - - Gets the ForeColor of the listbox in - - - - - Gets the BackColor of the listbox in - - - - - Gets the MetroColor of the - - - - - Gets the TabPanelBackground color of the - - - - - Gets the MetroForeColor of the - - - - - A framework independent utility class for the new Nullable type in .NET Framework 2.0 - - - - - Use this method instead of Convert.ChangeType. Makes Convert.ChangeType work with Nullable types. - - - - - - - - Use this method instead of Convert.ChangeType. Makes Convert.ChangeType work with Nullable types. - - - - - - - - - Returns null if value is DBNull and specified type is a Nullable type. Otherwise the value is returned unchanged. - - - - - - - - Returns the underlying type of a Nullable type. For .NET 1.0 and 1.1 this method will always return null. - - - - - - - - - - - - - - - - - - - - - - UseVisualStyle is true - - - - - UseVisualStyle is false - - - - - value for UseVisualStyle inherits from parent - - - - - Specifies the appearance of the button. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the state of the button. - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies ButtonAdv border style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Button with advanced rendering features. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Specifies that this object subscribes to event. - - - - - Interface for SkinManager - - - - - Specifies ButtonAdv default border width. - - - - - Draw the window only if it is visible. - - - - - Draw the non-client area of the window. - - - - - Draw the client area of the window. - - - - - Erase the background before drawing the window. - - - - - Draw all visible child windows. - - - - - Draw all owned windows. - - - - - - - - - Indicates whether renderer could draw the background for half of the control differently. - Used in XP style when used as a combo button. - - Used only for by class. - - - - Indicates whether renderer could draw the background for half of the control differently. - Used in XP style when used as a combo button. - - Used only for by class. - - - - - - - Specifies border style of ButtonAdv. - - - - - Internal usage field ( Border drawing ). - - - - - Reference counter. - - - - - - - - Indicates whether ButtonAdv will show focus rectenagle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Metrocolor - - - - - - - - - - - - - - - - - - - - - - Default size of the control - - - - - Drawing ButtonAdv's surface on custom Graphics - - Graphics to draw on - buttonAdv control to draw - Point that represents the location of the upper-left - corner of the drawn image. - - private void pictureBox1_Paint(object sender, PaintEventArgs e) - { - e.Graphics.RotateTransform(20); - ButtonAdv.PaintButton(e.Graphics, this.buttonAdv1, new Point(75, 25)); - } - - - - - Get or Set of Skin Manager Interface - - - - - To indicate whether to serialize MetroColor or not - - - - - - To Reset MetroColor - - - - - Gets or sets the ImageListAdv of the ButtonAdv - - - - - - - - Constructor. - - Indicates whether button is of combo button type. - - - - - - - Cleans up any resources being used. - - - - - - - - - applies the scaling - - - - - - Font changed event - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Indicates whether to animate the image. - - - - - - - Sets the value of animateState member. - - - - - - - - - - - - If animate is true - animates the image, else doesn`t animate. - - - - - - - - - - - - finding the button is BackStageButton or not. - - - - - Holds MessageBoxAdvOptionButton - - - - - Holds is DropDown Button - - - - - Reset DropDown Button - - - - - Specifies whether this is DropDown Button - - - - - Specifies whether this is DropDown Button - - - - - - - - - - - - - Creates delegates for border drawing methods. - - - - - Performs border drawing. - - PaintEventArgs from OnPaint method - border width - - - - Draws border with ButtonAdvBorderStyle.Flat style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.SunkenOuter style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.SunkenInner style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Sunken style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.RaisedOuter style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.RaisedInner style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Raised style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Etched style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Bump style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Outset style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Inset style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Solid style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Dotted style. - - Graphics to draw on - rectangle to draw border in - border width - - - - Draws border with ButtonAdvBorderStyle.Dashed style. - - Graphics to draw on - rectangle to draw border in - border width - - - - This method draws nothing. Used with ButtonAdvBorderStyle.Default and ButtonAdvBorderStyle.None - - Graphics to draw on - rectangle to draw border in - border width - - - - Gets color to draw border with. - - border color - - - - Recover or suspends mouse handling logic for property . - - - True to suspend, otherwise to resume handling logic. - - - - - Suspend property updating till the method call. - - - - - Recover mouse handling logic for property . To suspend call method. - - - - - If the isLastleftButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - The value that is to be set. - - - - If the IsFirstRightButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - The value that is to be set. - - - - If the isLastleftButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - - - - - If the IsFirstRightButton is set to True, the button's renderer could - draw the background for half of the control differently. Used in XP style - when used as a combo button. - - Used only for by class. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Resets the UseVisualStyle to default. - - - - - - - - - Resets the ComboEditBackColor to default. - - - - - - - - - Resets the System.Windows.Forms.Control.ForeColor property to its default value. - - - - - - - - Resets the System.Windows.Forms.Control.BackColor property to its default value. - - - - - Should serialize for IsBackStageButton. - - - - - Indicates whether the property should be persisted. - - - - Method allow to raise event. - Paint event arguments. - - - - - - - - Sets region of the control - - - - - Gets ButtonAppearance depending on current operating system - - - - - - - - - Indicates whether button have DesignMode - - - - - Gets or sets office 2007 color scheme. - - - - - Gets or sets office 2010 color scheme. - - - - - Gets or sets ButtonAdv border style. Borders styles supported only in - appearance styles: , - and . - - - - - Gets or Sets value specifying whether ButtonAdv will show focus rectangle receiveng focus. - - - - - Gets or sets the look and feel of the ButtonAdv. Set - to True if you want to apply style on button, otherwise False. - - - - - Gets or sets the MetroColor color of the ButtonAdv - - - - - Gets or sets the foreground color of the ButtonAdv - - - - - Gets or sets the background color of the ButtonAdv - - - - - Gets or sets the background color of the ButtonAdv - - - - - Gets or sets a value indicating whether the custom managed color is to be applied by overiding the Form's managed color - - - - - Indicates whether Visual Styles must be enabled for the button. - Set value to True if you want to apply settings of properties: - , , - and etc. on current button. - - - - - Gets or sets the type of button to be used. - - - - - Gets or sets the text to be displayed on the button. - - - - - Gets or sets the different states the button can hold: Default, MouseOver, Pressed. - - - - - Indicates the state of control. - - - - - Gets or sets a value indicating whether state should be reset on focus lost. - - - true if reset state on lost focus; otherwise, false. - - - - - Indicates whether the mouse is currently pressed. - - - - - Indicates whether the button is of ComboButton type. - - - - - Gets or sets the combo edit backcolor. - - - - - Indicates whether Appearance of the ButtonAdv has changed. - - - - - gets or sets the touchmode - - - - - Gets/Sets the value for IsBackStageButton - - - - - Gets/Sets whether this is MessageBoxAdv Button - - - - - Gets/Sets whether this is DropDownButton - - - - - Gets/Sets Control size before touch enabled - - - - - Delegate used for border drawing. - - - - - - - - - - - - - - - - - - - - - - - - - - - This should be called WindowsXPColorAndLayoutScheme. - Specifies the layout and colors for buttons and combo box buttons. - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that will be used to define the 3 Windows XP - color schemes supported. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that are used to define the Office 2003 look and feel. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Defines the different colors that are used to define the Office XP look and feel. - - - - - - - - - - - Gets Bordercolorwhite - - - - - Gets Bordercolordarkgray - - - - - Gets Bordercolorblack - - - - - Gets Bordercolorcolorful - - - - - - - - - - - - - - - - - - - - - - - - - Initialize the Button Appearance. - - - - - Default constructor - - - - - Constructor with variables initialization. - - - - - - - - - - - - Gets/ Sets the Button Appearance. - - - - - - - - - - - - - - - - - - - The types of buttons that the child button of the - ButtonEdit class can be set to. The ButtonType specifies - the image that is to be used for the button. - Set the button to normal appearance if you want to use your - own image. - - - The ButtonType and property are only loosely enforced by the - control and the designer. In the case where the ButtonType is set to one of these - values other than ButtonTypes.Normal and the Image property of the ButtonEditChildButton - is changed, the new image will be displayed and the ButtonType will still be the same - (it will not be changed to normal as its displaying a new image). - - The ButtonTypes are only provided for ease of use and do not in any way change the - functionality of the buttons. - - - - - - Normal button. The image can be set by the user. - - - - - Calculator image is used. - - - - - Currency image is used. - - - - - Down image is used. - - - - - Down image like in a Windows XP combo box. - - - - - Up image is used. - - - - - Left image is used. - - - - - Right image is used. - - - - - Redo image is used. - - - - - Undo image is used. - - - - - Check image is used. - - - - - Browse image is used. - - - - - Left end image is used. - - - - - Right end image is used. - - - - - Render button in classic style - - - - - - - - - - - - - Defines the different colors that will be used to define the 3 Windows XP - color schemes supported. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Summary description for Office2000ButtonRenderer. - - - - - - - - - - - - - - - - - - - Office2003 button style rendering. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Represents renderer of the Office 2007 style for ButtonAdv. - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - The color scheme that the renderer will render. - - - - - Current color table. - - - - - Initialize all drawing objects - - - - Make class cleanup - - - - - Sets vista color scheme for the control. - - - - - Gets rounded path for control. - - - - - Gets rectangle for background. - - - - - Gets rectangle for internal border. - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Draws background for control when it don't press and mouse don't over it. - - - - - Draws background for control when it pressed. - - - - - Draws background for control when mouse over it. - - - - - Draws background for disable control. - - - - - Fill rectangle with gradient. - - - - - Fill rectangle with gradient for pressed control. - - - - - Fill rectangle with gradient for selected control. - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Represents renderer of the Office 2007 style for ButtonAdv. - - - - - Default radius truncation coreners of the control. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - - - - - - Blend for selected control. - - - - - Blend for control. - - - - - Blend for pressed control. - - - - - Blend for disabled control. - - - - - The color scheme that the renderer will render. - - - - - Current color table. - - - - - Initialize all drawing objects - - - - Make class cleanup - - - - - Sets vista color scheme for the control. - - - - - Gets rounded path for control. - - - - - Gets rectangle for background. - - - - - Gets rectangle for internal border. - - - - - Gets vertical gradient brush. - - - - - Draws background. - - - - - Draws border. - - - - - - - - - - - - - - - - - - - - - Draws background for control when it don't press and mouse don't over it. - - - - - Draws background for control when it pressed. - - - - - Draws background for control when mouse over it. - - - - - Draws background for disable control. - - - - - Fill rectangle with gradient. - - - - - Fill rectangle with gradient for pressed control. - - - - - Fill rectangle with gradient for selected control. - - - - - Fill rectangle with gradient for disabled control. - - - - - - - - - Specifies region for drawing - - - - - Draws text on ButtonAdv with specified color - - - The graphics object to use. - - Color of the text - - - - Summary description for OfficeXPButtonRenderer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Constructor for this class - - - - - - CreateDrawingObjects method has been set to define background and border color - - - - - Design of background - - - - - - - - Design of border - - - - - - - - - Draws text over the button - - - - - - - Overrides the render method from base(ButtonRenderer) - - - - - - Show or Hide the prefix character - - - - - Summary description for RenderingHelper. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculates rectangle to draw on it backgroundImage, depending on imageLayout - - Bounds of the control - Background image of the control - Image layout of the background image - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WindowsXP button Renderer. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The color scheme that the renderer will render. - - - - - - - - - - - - - Sets the rectangles and paths used to draw the XP button when the size of the button is set. - - Set drawing bounds. - - - - - - - - - - - - - - - - Sets WindowsXP color scheme for the control. - - - - - Set the color scheme for the button based on the current XP Scheme and - the IsComboButton property. - - - - - - - - - - - - Calculates bounds for helper rectangles. - - - - - - - - - - - - - - - - - - - - - - - - - - Renders ButtonAdv using visual styles. - - - - - - - - - - - - - - - - - - Extends ArrayList by throwing events when Collection changes, an - item's property changes, etc. - - - This class lets you know through the event - when an item gets added or deleted from the ArrayList or - when an exisiting item is replaced by a new item at a position. - It will also listen for property change notifications from the - items in the list, provided the items implement the - interface and forward them using the event. - - - - - - - - - - - - - - Overloaded. Creates a new instance of the ArrayListExt class. - - - - - Creates a new instance of the ArrayListExt class and inserts - the items specified in an array into the ArrayList. - - An array of objects. - - - - Raises the event. - - - A object containing data - pertaining to this event. - - The method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. Note to Inheritors: When overriding OnCollectionChanged in a derived - class, be sure to call the base class's OnCollectionChanged method so that - registered delegates receive the event. - - - - Called when an item is being added, removed, moved or when an exisiting item is - replaced by a new item. - - This method does not fire a corresponding event. - - - - Raises the event. - - The source of the event. - The object that contains - data pertaining to this event. - The method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. Note to Inheritors: When overriding in a derived - class, be sure to call the base class's method so that - registered delegates receive the event. - - - - Called when an item gets removed from the list. - - The object that got removed from the list. - This provides you a convenient place where you can - perform operations pertaining to the removal of an object - from the list. Make sure to call the base class when you override - this function.The base class will call the event with appropriate parameters. - - - - Called when an object gets added to the list. - - The object that got added to the list. - This provides you a convenient place where you can - perform operations pertaining to the addition of an object - to the list. Make sure to call the base class when you override - this function.The method will call the method with appropriate parameters. - - - - - - - - - Call this method to force a event. - - The args for the above mentioned event. - This method is useful when after suspending and resuming events in this list, - you might want to fire the CollectionChanged event for some specific changes. - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - Overridden. See - - - - - Overridden. See . - - - - - - - Sorts the elements in the entire System.Collections.ArrayList - using the System.IComparable implementation of each element. - - - - - - - - Reverse range of items in collection from position specified by index - parameter and length specified by count parameter. - - range start position. - range length. - - - - Allows you to move one or more items in the collection from - one position to another. - - The beginning index of the range of items to move. - The destination index where the items will be moved to. - The number of elements in the range to be moved. - - If the above indices are not within the list's count, this - method will return without performing any operation. - For example, say a list contains the following elements: - A, B, C, D, E, F. Then the following call:list.Move(2, 4, 2); will result in the following array: A, B, E, F, C, D. - - - - Will suspend the and events - temporarily. - - Call when you are ready to receive events again. - The / calls are useful when you - are performing a series of operations that will result in - multiple changes in the collection, throwing multiple events. - In such cases, you could use these methods to have a single event thrown - at the end of the series of operations.Note that there is no one-to-one correspondence between - and . could be called - more than once but a single subsequent call will - resume throwing events. - - - - Starts throwing the and - events. - - True will throw a event; False will not. - Call this method after calling a method to resume - throwing the and events.Note that there is no one-to-one correspondence between - SuspendEvents and ResumeEvents. SuspendEvents could be called - more than once but a single subsequent ResumeEvents call will - resume throwing events. - - - - Overridden. See . - - - - - Indicates whether the collection is Read-only. - - True to make the collection Read-only; False otherwise. Default is False. - When set to True, the property will return True - and exisiting items in the list cannot be replaced. - - - - Indicates whether the collection should be made fixed size. - - True to make the collection fixed size; False otherwise. Default is False. - When set to True, the property will return True - and no new elements can be added to the list. - - - - - - - - - - - - Indicates whether firing event is suspended. - - True indicates firing the event is suspended; False otherwise. - - - - Will be thrown when the Collection has changed due to the addition or removal of one - or more items. - - - - - Will be thrown if the items in the Collection implement interface - and when their property changes. - - - - - A list deriving from with a strongly-typed indexer of type int. - - - - - An derived class that supports creating "visually inheritable lists". - - - A "visually inheritable list" is one that keeps track of and persists in code, - the incremental changes applied on the list in a derived class's designer. - - You should typically not use the methods and properties exposed by this class in - your code. The properties are meant to be used during design-time to store the - incremental changes done at design-time. - - - - - - - - - - - - - - - - - Overloaded. Creates a new instance of the without any support - for visual inheritance. - - - - - Creates a new instance of the class and inserts - the items specified in the array into the VisuallyInheritableList without any - support for visual inheritance. - - An array of objects. - - - - Creates a new instance of the with support for - visual inheritance provided based on the specified parent's design state. - - A reference to the interface - that typically contains this collection. - - This list keeps track of the incremental changes happening in a designer by - following the parent's property. - - - - - - - - - - - Indicates whether to continue applying incremental-changes done in the - previous design-time invocation. - - True to continue; False otherwise. - - This method is called if it seems like items were removed in the base class - since the last invoke of this design-time. - - - - - Called to apply the changes made in the previous design-time invoke. - - A list specifying the new positions based on the positions of the exisiting items - set in the base class. - - - - Returns a list representing the incremental changes made at design-time. - - A list representing the new position of the items based on the position of the items in the base class. - This list will be provided in a call to - to reapply the changes done during this design-time. - - - - Compares two objects for equality. - - Object 1. - Object 2. - True if identical; False otherwise. - The base class version uses the "==" operator to perform the - comparison. This could be overridden to support boxed types (int, for example), - where 2 integers should be compared based on their value rather than the boxed object instance. - - - - - Overridden. See . - - - - - - - - - - - - Gets / sets the associated parent. - - - - - Gets / sets the incremental changes done at design-time. - - - - - Overloaded. Creates a new instance of the class. - - - - - Creates a new instance of the class and inserts - the items specified in an array into the , without - support for visual inheritance. - - An array of integers. - - - - Creates a new instance of the with support for - visual inheritance provided based on the specified parent's design state. - - A reference to the interface - that typically contains this collection. - - - - Lets you add an array of integers into the list. - - An integer array. - Available to enable serialization using AddRange in designer. - - - - Overridden. See . - - Object 1. - Object 2. - True if identical; False otherwise. - - - - Custom indexer of type int. See for more information. - - - - - A list deriving from with a strongly-typed indexer of type int. - - - - - Overloaded. Creates a new instance of the IntList class. - - - - - Creates a new instance of the IntList class and inserts - the items specified in array into the IntList. - - An array of integers. - - - - Lets you add an array of integers into the list. - - An integer array. - Available to enable serialization via AddRange in designer. - - - - Custom indexer of type int. See for more information. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - An ArrayListExt instance that will enforce the type of objects that can be added to the array during runtime. - - Specifies the type of objects that can be added to the array. - - - - An indexer of the specified template type. - - The index of the object in the list that you want to retrieve. - The object at the specified index. - - - - An IBindingList that wraps a DataTable and provides optimized access to the rows of the datatable. Assign - this list to a grid as DataSource to improve performance when inserting records into an existing - table with many records. - - - - - Initializes a new object and attaches it to the wrapped DataTable. - - The DataTable to be wrapped. - - - - Not implemented. - - - - - - Not implemented. Returns -1. - - - - - - - - Not implemented. - - - - - Adds a new row (calling DataTable.NewRow) and returns the new object. - - - - - - Not implemented. - - - - - - Removes the element at the specified index of the collection. - - The zero-based index of the element to remove. - - - - Inserts an element into the collection at the specified index. - - The zero-based index at which the element should be inserted. - The element to insert. The value must not be a NULL reference (Nothing in Visual Basic). - - - - Removes the specified row object from the collection. - - The element to remove from the collection. If the value is NULL or the element is not contained - in the collection, the method will do nothing. - - - - Always False, the method is not implemented yet. - - - - - Removes all elements from the collection. - - - - - Always -1, the method is not implemented. - - - - - Adds a row object to the end of the collection. - - The element to be added to the end of the collection. The value must not be a NULL reference (Nothing in Visual Basic). - The zero-based collection index at which the value has been added. - - - - Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array. - - The one-dimensional array that is the destination of the elements copied from the ArrayList. The array must have zero-based indexing. - The zero-based index in an array at which copying begins. - - - - Returns an enumerator. - - - - - - Returns a PropertyDescriptorCollection that represents the DataTable.Columns collection. - - - - - - - Returns DataTable.TableName. - - - - - - - The underlying DataTable. - - - - - Always True. - - - - - Not implemented. - - - - - Always False. - - - - - Always False. - - - - - Always True. - - - - - Always False. - - - - - Not implemented. - - - - - Broadcasts the event. - - - - - Always True. - - - - - Always True. - - - - - Always False. - - - - - Returns the element at the zero-based index. - Setting is not supported and will throw an exception since the collection is Read-only. - - - - - Always False since this collection has no fixed size. - - - - - Not implemented. - - - - - Returns the number of elements contained in the collection. - - - - - Not implemented. - - - - - A custom PropertyDescriptor that is used within a to access - a DataColumn. - - - - - Initializes a new PropertyDescriptor and attaches it to a DataColumn. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the DataColumn. - - - - - Specifies the change in the ListProperty. Used by OnChanging and OnChanged events of strong typed collections. - - - - - An item is appended. - - - - - An item is removed. - - - - - An item is inserted. - - - - - An item is moved. - - - - - The whole collection is changed. - - - - - An item is replaced. - - - - - A nested property of an item is changed. - - - - - Used by OnChanging and OnChanged events of strong typed collections. - - - - - Provides data for a cancellable event. - - - - - Overloaded. Initializes a new instance of the SyncfusionCancelEventArgs class. - - - - - Initializes a new instance of the SyncfusionCancelEventArgs class with the Cancel property set to the given value. - - - - - - - - Initializes the ListPropertyChangedEventArgs. - - - - - - - - - Initializes the ListPropertyChangedEventArgs. - - - - - - - - - - Returns the type in which the list changed. - - - - - Returns the index of the item that is changed. - - - - - Returns a reference to the affected item. - - - - - Returns the names of the affected property. - - - - - If tag is EventArgs, then it returns the Tag casted to EventArgs. - - - - - Gets / sets a tag. - - - - - Used by OnChanging and OnChanged events of strong typed collections. - - - - - Provides helper routines for exploring properties in a collection. Essential Grid uses - this routine to find out about columns and relations to be displayed in the grid when - a collection is specified as datasource. - - - - - Checks IBindingList.SortDirection. - - - - - - - Checks IBindingList.SortProperty. - - The list to check. - - - - - Calls IBindingList.ApplySort. - - List to be sorted. - - - - - - Checks IBindingList.SupportsSorting. - - - - - - - Checks IBindingList.AllowRemove for IBindingList or IList.IsReadOnly and IList.IsFixedSize for IList collections. - - - - - - - Indicates whether the property represents a relation or nested collection. - - - - - - - Compares the two PropertyDescriptorCollection and indicates whether they are equal. - - - - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - - - Overloaded. Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - Returns the PropertyDescriptorCollection for the relation or nested collection. - - - - - Indicates whether the specified PropertyDescriptor has nested properties. - - The PropertyDescriptor to be checked. - True if nested properties are found; False otherwise. - - - - Indicates whether the specified Type has nested properties. - - The Type to be checked. - True if nested properties are found; False otherwise. - - - - Lets you register additional types that should return false when is called. - - - - - - - - - - - - - - Returns the or DataTable of the - - - - - - - Returns the of the if it - is a DataColumnPropertyDescriptor. - - - - - - - Determines and returns the DataTable object for the given list. - - - - - - - Returns the or DataTable of the - - - - - - - Returns the properties for the specified type. - - - - - - - Returns the type of the items in the list if the list is strong-typed. - - - - - - - Returns the type of the items in the list if the list is strong-typed. - - - - - - - Returns the properties for the object. - - - - - - - Returns the value for the ValueMember of the specified item. - - The row item. - The list - The name of the value member - The value of the ValueMember. - - - - Extends List{T} with events. - - Type of collection elements. - - - - - - - - - - Add method. - - - - - - - Determines the index of a specific item in the list. - - - - - - - Inserts an item to the list at the specified index. - - - - - - - Removes the first occurrence of a specific object from the collection. - - - - - - Removes item at the specified index. - - - - - - Determines whether the list contains a specific value. - - - - - - - Removes all items from the list. - - - - - - - - - - - Adds an item to the list. - - - - - - - Removes all items from the list. - - - - - Determines whether the list contains a specific value. - - - - - - - Determines the index of a specific item in the list. - - - - - - - Inserts an item to the list at the specified index. - - - - - - - Removes the first occurrence of a specific object from the list. - - - - - - Removes item at the specified index. - - - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - - - - - - Performs additional custom processes before inserting a new element into the collection. - - - - TRUE to insert object - - - - Performs additional custom processes when removing an element from the collection. - - - - TRUE to remove object - - - - Fires ItemAdded event. - - - - - - - Fires ItemRemoved event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the element at the specified index. - - - - - - - Gets a value indicating whether the list has a fixed size. - - - - - Gets a value indicating whether the list is read-only. - - - - - Gets or sets the element at the specified index. - - - - - - - Gets the number of elements contained in the ICollection. - - - - - Gets a value indicating whether access to the collection is synchronized - - - - - Gets an object that can be used to synchronize access to the collection. - - - - - Fired when new item is added to the collection. - - - - - Fired when item is removed from collection. - - - - - Event arguments for ObservableList events. - - Type of items in InnerList. - - - - Underlying item. - - - - - Creates and initializes new instance of ListItemEventArgs. - - Underlying item. - - - - Implements a two-dimensional table that holds an of rows. Each row - is an of objects. - - -

This is a memory efficient way to represent a table where values can remain empty. Only rows - that actually contain data will allocate an and the array only holds - as many objects as the specific row contains columns.

-

When you access data that are out of range, an empty () object will be returned. - If you set data that are out of range, an exception will be thrown. If you set data for - a row that is empty, the row will be allocated before the value is stored.

-

SFTable provides methods that let you insert, remove or rearrange columns or rows - in the table.

-
- -
- - - Initializes a new instance of the class from the specified instances - of the and classes. - - An instance of the class containing the information required to serialize the new instance. - An instance of the class containing the source of the serialized stream associated with the new instance. - This constructor implements the interface for the class. - - - - Implements the ISerializable interface and returns the data needed to serialize the . - - A SerializationInfo object containing the information required to serialize the object. - A StreamingContext object containing the source and destination of the serialized stream. - - - - Initializes a new instance of the - class. - - - Initializes a new instance of the - class that is empty. - - - - - Initializes a new instance of the - class and optional copies of data from an existing table. - - - - - Creates a deep copy of the . - - - A deep copy of the . - - - - - Removes all elements from the . - - - - - Creates and returns a new . - - A new - - - - Creates a collection of cells for a row. - - An or derived object for the cell collection. - - - - Inserts a specified number of empty rows in the at a given row index. - - The zero-based row index of the first row to be inserted. - The number of rows to be added. - not used. - - - - Inserts a specified number of empty columns for each row in the at a given column index. - - The zero-based column index of the first column to be inserted. - The number of columns to be inserted. - not used. - - - - Removes a specified number of rows from the at a given row index. - - The zero-based row index of the first row to be removed. - The number of rows to be removed. - not used. - - - - Removes a specified number of columns for each row in the at a given column index. - - The zero-based column index of the first column to be removed. - The number of columns to be removed. - not used. - - - - Rearranges rows in the . - - The zero-based index of the first row to be moved. - The number of rows in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFTable array = new SFTable(); - array.RowCount = 5; - array.ColCount = 1; - array[0,0] = 0; - array[1,0] = 1; - array[2,0] = 2; - array[3,0] = 3; - array.MoveRows(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Rearranges columns in the . - - The zero-based index of the first column to be moved. - The number of columns in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFTable array = new SFTable(); - array.ColCount = 5; - array.RowCount = 1; - array[0,0] = 0; - array[0,1] = 1; - array[0,2] = 2; - array[0,3] = 3; - array.MoveCols(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Indicates whether an element is at the specified coordinates in the . - - The zero-based row index. - The zero-based column index. - - - if an element exists at the specified coordinates in the ; - otherwise. - - - - - Returns the from all rows. - - - - - Gets / sets the number of rows contained in the . - - - If you decrease the row count, the rows in the will be removed. - - - - - Gets / sets the number of columns contained in the . - - - If you decrease the column count, the last columns in each row will be removed. - - - - - Gets / sets an element at the specified coordinates in the . - - The zero-based row index. - The zero-based column index. - - If you query for an element and the coordinates are out of range, an empty () object will be returned. - If you set an element and the the coordinates are out of range, an exception is thrown. - - - - - Extends ArrayList with MoveRange, InsertRange and RemoveRange methods. The Item property - will grow the array on demand or return NULL if an index is out of range. - - - - - Overloaded. Initializes a new instance of the - class that is empty and has the default initial capacity. - - - - - Initializes a new instance of the class that contains elements copied from the specified - collection and has the same initial capacity as the number of elements copied. - - The whose elements are copied to the new list. - - - - Overridden. Creates a deep copy of the . - - - A deep copy of the . - - - - - Rearranges the values in the . - - The zero-based index of the first value to be moved. - The number of values in the range to be moved. - The new starting index for the range. The zero-based index is based on the original array. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.MoveRange(0, 2, 3); - // results in new order: 2, 0, 1, 3 - - - - - - Enlarges the array if needed. - - The size to be checked. If the array has less elements, empty () objects will be appended - at the end of the array. - - - - Removes a range of values from the . - - The zero-based index of the first value to be removed. - The number of values in the range to be removed. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.RemoveRange(1, 2); - // results in new order: 0, 3 - - - - - - Inserts a specified number of () values in the at a given index. - - The zero-based index of the first value to be inserted. - The number of values in the range to be added. - - - SFArrayList array = new SFArrayList(); - array[0] = 0; - array[1] = 1; - array[2] = 2; - array[3] = 3; - array.InsertRange(1, 2); - // results in new order: 0, null, null, 2, 3 - - - - - - Gets / sets the element at the specified index. - In C#, this property is the indexer for the class. - - The zero-based index of the element to get / set. - - The element at the specified index. - When querying the value and the index is out of range, an empty () object will be returned. - When setting the value and the index is out of range the array will be enlarged. See - - - - - - - - - - - Used by TreeTable to balance the tree with algorithm based on Red-Black tree. - - - - - Red. - - - - - Black. - - - - - A branch or leaf in the tree. - - - - - returns the position in the tree. - - - - - Returns the number of child nodes (+1 for the current node). - - - - - Indicates whether leaf is empty. - - - - - Indicates whether this is a leaf. - - - - - Returns the tree level of this node. - - - - - Returns the minimum value (of the leftmost leaf) of the branch in a sorted tree. - - - - - Walk up parent branches and reset counters. - - - - - - Walk up parent branches and reset summaries. - - - - - - Gets / sets the parent branch. - - - - - A branch with left and right leaves or branches. - - - - - Sets the left node. - - The new node. - Indicates whether tree-table is in add-mode. - Indicates whether tree-table is sorted. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Sets the right node. - - The new node. - Specifies if tree-table is in add-mode. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Returns the left branch cast to ITreeTableBranch. - - - - - - Returns the right branch cast to ITreeTableBranch. - - - - - - Returns the position in the tree table of the specified child node. - - - - - - - Sets this object's child node Count dirty and - marks parent nodes' child node Count dirty. - - - - - Sets this object's child node Count dirty and steps - through all child branches and marks their child node Count dirty. - - - - - Sets this object's child node Minimum dirty and - marks parent nodes' child node Minimum dirty. - - - - - Sets this object's child node Minimum dirty and steps - through all child branches and marks their child node Minimum dirty. - - - - - Gets / sets the left node. - - - - - Gets / sets the right node. - - - - - Gets / sets the Red-Black tree color. - - - - - A leaf with value and optional sort key. - - - - - Returns the sort key of this leaf. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Gets / sets the value attached to this leaf. - - - - - A branch or leaf in the tree. - - - - - This class provides a base class that implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern. - - If you derive from this class, you only need to override the protected - Dispose method and check the disposing parameter. - - - - This is a base class for Disposable. It implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern but it does not - implement a finalizer. If you need finalization you need to derive from Disposable - or add a finalizer to your derived class and manually call Dispose from the Finalizer. - - - - - Releases all resources used by the Component. - - - Releases all resources used by the Component. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - . - In C# and C++, finalizers are expressed using destructor syntax. - - - - - Returns the position in the tree. - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - Indicates whether leaf is empty. - - - - - Indicates whether this is a leaf. - - - - - Returns the number of child nodes (+1 for the current node). - - - - - Returns the tree level of this node. - - - - - Returns the Debug / text information about the node. - - - - - Returns the Debug / text information about the node. - - - - - Walks up parent branches and reset counters. - - - - - - Walks up parent branches and reset summaries. - - - - - - Gets / sets the tree this node belongs to. - - - - - Gets / sets the parent branch. - - - - - A branch in a tree. - - - - - Initializes a new branch. - - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - - Returns the left node cast to ITreeTableBranch. - - - - - - Returns the right node cast to ITreeTableBranch. - - - - - - Sets the left node. - - The new node. - Indicates whether tree-table is in add-mode. - Indicates whether tree-table is sorted. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Sets the right node. - - The new node. - Indicates whether tree-table is in add-mode. - - Call this method instead of simply setting property if you want - to avoid the round-trip call to check whether the tree is in add-mode - or if tree-table is sorted. - - - - - Returns the position in the tree table of the specific child node. - - - - - - - Returns the number of child nodes (+1 for the current node). - - - - - - Indicates whether this is a leaf. - - - - - - Sets this object's child node count dirty and - walks up parent nodes and marks their child node count dirty. - - - - - Sets this object's child node count dirty and steps - through all child branches and marks their child node count dirty. - - - - - Sets this object's child node minimum dirty and - marks parent nodes' child node minimum dirty. - - - - - Sets this object's child node minimum dirty and steps - through all child branches and marks their child node minimum dirty. - - - - - Gets / sets Red-Black tree algorithm helper. - - - - - Gets / sets the left leaf or branch. - - - - - Gets / sets the right tree or branch. - - - - - A leaf in the tree with value and optional sort key. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Returns the sort key of this leaf. - - - - - Returns the minimum value (of the most-left leaf) of the branch in a sorted tree. - - - - - - Returns the number of child nodes (+1 for the current node). - - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns the Debug / text information about the node. - - - - - - Indicates whether this is a leaf. - - - - - - Gets / sets the value attached to this leaf. - - - - - An empty node. - - - - - Tree table interface definition. - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Optimized access to a subsequent entry. - - - - - - - Optimized access to a previous entry. - - - - - - - Indicates whether this is a sorted tree. - - - - - A comparer used by sorted trees. - - - - - Returns the root node. - - - - - Indicates whether BeginInit was called. - - - - - This object owns a . - - - - - Returns a reference to an inner tree table. - - - - - - A tree table. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Initializes a new . - - - - - - Sets the node at the specified index. - - Index value where the node is to be inserted. - Value of the node that is to be inserted. - - - - Optimized access to the previous entry. - - - - - - - Optimized access to a subsequent entry. - - - - - - - Inserts a node at the specified index. - - Index value where the node is to be inserted. - Value of the node to insert. - - - - Removes the specified node. - - Node value to look for and remove. - - - - Resets the cache. - - - - - Indicates whether the node belongs to this tree. - - Node value to search for. - True if node belongs to this tree; false otherwise. - - - - Returns the position of a node. - - Node value to look for. - Index of the node if found. - - - - Appends a node. - - Node value to append. - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Adds a node into a sorted tree. - - Node value to add. - - - - - Adds a node in a sorted tree only if no node with the same value has not been added yet. - - - Node value to add. - - - - - Finds a node in a sorted tree. - - - - - - - Finds a node in a sorted tree that matches the specified key. - - The key to search. - The node; NULL if not found. - - - - Finds the node in a sorted tree is just one entry ahead of the - node with the specified key. It searches for the largest possible - key that is smaller than the specified key. - - The key to search. - The node; NULL if not found. - - - - Removes a node at the specified position. - - - - - - Inserts a node at the specified index. - - - - - - - Removes the node with the specified value. - - - - - - Indicates whether the node belongs to this tree. - - - - - - - Clears all nodes in the tree. - - - - - Returns the index of the specified node. - - - - - - - Adds the specified node to the tree. - - - - - - - Returns the number of leaves. - - - - - Copies the element from this collection into an array. - - The destination array. - The starting index in thedestination array. - - - - Copies the elements from this collection into an array. - - The destination array. - The starting index in the destination array. - - - - Returns an enumerator. - - - - - - Returns a . - - - - - - - - - - - - - - - - - - - - - Gets / sets the comparer used by sorted trees. - - - - - Gets / sets the tag that can be associated with this object. - - - - - Indicates whether tree is sorted. - - - - - Gets / sets the root node. - - - - - Gets / sets an item at the specified index. - - - - - Indicates whether BeginInit was called. - - - - - Indicates whether the tree is Read-only. - - - - - Gets / sets the item with the specified index. - - Index value of the item. - - - - - Indicates whether the nodes can be added or removed. - - - - - Not supported. - - - - - Returns the number of leaves. - - - - - Not implemented. - - - - - Strongly typed enumerator for . - - - - - Initializes a new . - - - - - - Resets the enumerator. - - - - - Indicates whether to move to the next node. - - - - - - Returns the current enumerator. - - - - - Returns the current node. - - - - - An object that holds an . - - - - - Gets a reference to the . - - - - - A collection of objects - that are internally using a . - - - - - Overloaded. Initializes a new . - - - - - Initializes a new . - - - - - Initializes a new . - - - - - Optimizes insertion of many elements when tree is initialized for the first time. - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Indicates whether object belongs to this collection. - - The value of the object. - True if object belongs to the collection; false otherwise. - - - - Returns the position of a object in the collection. - - The value of the object. - The position of the object. - - - - Copies the contents of the collection to an array. - - Destination array. - Starting index of the destination array. - - - - Returns a strongly typed enumerator. - - A strongly types enumerator. - - - - Inserts an object at the specified index. - - Index value where the object is to be inserted. - Value of the object to insert. - - - - Appends an object. - - The value of the object to append. - - - - - Removes the object. - - The value of the object to remove. - - - - Removes a node at the specified index. - - Index value of the node to remove. - - - - Inserts the object at the specified index. - - Index value of the object to insert. - Value of the object to insert. - - - - Removes the specified object. - - Value of the object to remove. - - - - Indicate whether the specified object belongs to this collection. - - Object value to look for. - True if object belongs to the collection; false otherwise. - - - - Clears all nodes in the tree. - - - - - Returns the index of the specified object. - - Value of the object. - Index value of the object. - - - - Adds the specified object to the collection. - - Value of the object to add. - - - - - Copies elements to destination array. - - Destination array. - Starting index of the destination array. - - - - Returns an enumerator. - - Enumerator. - - - - Indicates whether BeginInit was called. - - - - - Gets / sets an at a specific position. - - - - - Indicates whether tree is Read-only. - - - - - Gets / sets the item at the specified index. - - Index of the item. - The item at the specified index. - - - - Indicates whether the nodes can be added or removed. - - - - - Not supported. - - - - - Returns the number of objects in this collection. - - - - - A strongly typed enumerator for the . - - - - - Initializes the . - - - - - - Resets the enumerator. - - - - - Indicates whether to move to the next object in the collection. - - - - - - Returns the current enumerator. - - - - - Returns the current object. - - - - - Interface definition for a node that has counters and summaries. - - - - - Interface definition for a node that has one or more summaries. - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify entry summary. - - - - Indicates whether node has summaries. - - - - - The total of this node's counter and child nodes. - - - - - The cumulative position of this node. - - - - - Marks all counters dirty in this node and child nodes. - - if set to true notify counter source. - - - - Interface definition for an object that has counters. - - - - - Returns the counter object with counters. - - - - - - Marks all counters dirty in this object and child nodes. - - if set to true notify counter source. - - - - Marks all counters dirty in this object and parent nodes. - - - - - Interface definition for a counter object. - - - - - Combines this counter object with another counter and returns a new object. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Compares this counter with another counter. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Indicates whether the counter object is empty. A cookie can specify - a specific counter type. - - The cookie. - - true if the specified cookie is empty; otherwise, false. - - - - - Returns the integer value of the counter. A cookie specifies - a specific counter type. - - The cookie. - - - - - Gets the Counter Kind. - - The kind. - - - - Default counter cookies for identifying counter types. - - - - - All counters. - - - - - Visible Counter. - - - - - A counter that counts objects that are marked "Visible". - - - - - Returns an empty TreeTableVisibleCounter that represents zero visible elements. - - - - - Initializes a with a specified number of visible elements. - - The visible count. - - - - Returns the visible count. - - - - - Returns the integer value of the counter. A cookie specifies - a specific counter type. - - The cookie. - - - - - Combines one tree object with another and returns the new object. - - The other. - The cookie. - - - - - Factory method creates a new counter object of the same type as this object. - - - - - - Called to combine the values of two counter objects. Results are saved back into this counter object. - A cookie can filter the operation to a limited set of counter types. - - The x. - The y. - The cookie. - - - - Combines the counter values of this counter object with the values of another counter object - and returns a new counter object. - - The other. - The cookie. - - - - - Compares this counter with another counter. A cookie can specify - a specific counter type. - - The other. - The cookie. - - - - - Indicates whether the counter object is empty. A cookie can specify - a specific counter type. - - The cookie. - - true if the specified cookie is empty; otherwise, false. - - - - - Returns a that represents the current . - - - A that represents the current . - - - - - The Counter Kind. - - - - - A tree table branch with a counter. - - - - - A tree table branch with a counter. - - - - - Initializes a new . - - - - - - Returns the left branch node cast to ITreeTableSummaryNode. - - - - - - Returns the right branch node cast to ITreeTableSummaryNode. - - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Walks up parent branches and reset summaries. - - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this branch belongs to. - - - - - Gets / sets the parent branch. - - - - - Indicates whether this node has summaries. - - - - - Initializes a new . - - - - - - Returns the cumulative counter position object of a child node with all counter values. - - The node. - - - - - Returns the left branch node cast to ITreeTableCounterNode. - - - - - - Returns the right branch node cast to ITreeTableCounterNode. - - - - - - Returns the total of this node's counter and child nodes (cached). - - - - - Returns the cumulative position of this node. - - - - - Invalidates the counter bottom up. - - if set to true notify counter source. - - - - Marks all counters dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this branch belongs to. - - - - - Gets / sets the parent branch. - - - - - A tree leaf with value, sort key and counter information. - - - - - A tree leaf with value and summary information. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns an array of summary objects. - - The empty summaries. - - - - - Called from when called the first time after summaries were invalidated. - - The empty summaries. - - - - - Returns the value as . - - - - - Walks up parent branches and reset summaries. - - - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify summary array source. - - - - Returns the tree this leaf belongs to. - - - - - Gets / sets the parent branch. - - - - - Indicates whether the node has summaries. - - - - - Creates a branch that can hold this entry when new leaves are inserted into the tree. - - - - - - - Returns the cumulative position of this node. - - - - - Returns the value as . - - - - - Indicates whether the counter was set dirty. - - True if dirty; False otherwise. - - - - Returns the total of this node's counter and child nodes. - - - - - Reset cached counter. - - - - - Invalidates the counter bottom up. - - if set to true notify counter source. - - - - Marks all summaries dirty in this node and child nodes. - - if set to true notify counter source. - - - - Returns the tree this leaf belongs to. - - - - - Gets / sets the parent branch. - - - - - A balanced tree with entries. - - - - - A balanced tree with entries. - - - - - Initializes a new . - - - - - - Marks all summaries dirty. - - if set to true notify summaries source. - - - - Returns an array of summary objects. - - - - - Inserts a object at the specified index. - - - - - - - Removes an object from the tree. - - - - - - Indicates whether an object belongs to the tree. - - - - - - - Returns the index of an object in the tree. - - - - - - - Appends an object. - - - - - - - Copies the elements of this tree to an array. - - - - - - - Returns a strongly typed enumerator. - - - - - - Indicates whether the tree has summaries. - - - - - Gets / sets a TreeTableWithSummaryEntry. - - - - - Initializes a new . - - - - - - - Ends optimization of insertion of elements when tree is initialized for the first time. - - - - - Marks all counters dirty. - - - - - - Returns the total of all counters in this tree. - - - - - Returns the starting counter for this tree. - - - - - Overloaded. Returns an entry at the specified counter position. A cookie defines the type of counter. - - The search position. - The cookie. - - - - - Returns an entry at the specified counter position. A cookie defines the type of counter. - - The search position. - The cookie. - Indicates if the leftmost entry should be returned if multiple tree elements have the - same searchPosition. - - - - - Gets the entry at counter position. - - The start. - The search position. - The cookie. - - - - - Gets the entry at counter position. - - The start. - The search position. - The cookie. - if set to true prefer left most. - - - - - Returns the subsequent entry in the collection for which the specific counter is not empty. - A cookie defines the type of counter. - - The current. - The cookie. - - - - - Returns the previous entry in the collection for which the specific counter is not empty. - A cookie defines the type of counter. - - The current. - The cookie. - - - - - Returns the next entry in the collection for which CountVisible counter is not empty. - - The current. - - - - - Returns the previous entry in the collection for which CountVisible counter is not empty. - - The current. - - - - - Inserts a object at the specified index. - - The index. - The value. - - - - Removes an object from the tree. - - The value. - - - - Indicates whether an entry belongs to the tree. - - The entry. - - true if tree contains the specified entry; otherwise, false. - - - - - Returns the position of an object in the tree. - - The value. - - - - - Appends an object. - - The value. - - - - - Copies the elements of this tree to an array. - - The array. - The index. - - - - Returns a strongly typed enumerator. - - - - - - Gets / sets a TreeTableWithCounterEntry. - - - - - A strongly typed enumerator for the collection. - - - - - Initializes a new . - - - - - - Returns the current object. - - - - - An object that counts objects that are marked "Visible". It implements - the ITreeTableCounterSource interface and creates a . - - - - - Initializes the object with visible count. - - The visible count. - - - - Marks all counters dirty in this object and parent nodes. - - - - - Returns the counter object with counters. - - - - - - Marks all counters dirty in this object and child nodes. - - if set to true notify counter source. - - - - Interface definition for a summary object. - - - - - Combines this summary information with another object's summary and returns a new object. - - The other. - - - - - Provides a method. - - - - - Gets an array of summary objects. - - - - - Interface definition for an object that has summaries. - - - - - Returns an array of summary objects. - - An array of empty summary objects. - Returns True if summaries were recalculated; False if already cached. - An array of summary objects. - - - - Marks all summaries dirty in this object and child nodes. - - - - - Marks all summaries dirty in this object and parent nodes. - - - - - Marks all summaries dirty in this object only. - - - - - A strongly typed enumerator for the collection. - - - - - Initializes a new . - - - - - - Returns the current object. - - - - - Provides the base class for a strongly typed collection of key-and-value pairs. - - - This class is very similar to the - class. The main difference is that this version allows you to set the InnerHashtable. - only provides a Read-only property for the - InnerHashtable. - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new and associates it with a . - - The inner collection that will hold entries of this collection. - - - - Clears the contents of the instance. - - - - - Copies the elements to a one-dimensional at the specified index. - - The one-dimensional that is the destination of the objects copied from the instance. The must have zero-based indexing. - The zero-based index in an at which copying begins. - - - - Returns a that can iterate through the instance. - - - A for the instance. - - - - - Returns the enumerator. - - Enumerator. - - - - Performs additional custom processes before clearing the contents of the instance. - - - - - Returns the element with the specified key and value in the - instance. - - The key of the element to get. - The current value of the element associated with . - - A containing the element with the specified key and - value. - - - - - Performs additional custom processes before inserting a new element into the - instance. - - The key of the element to insert. - The value of the element to insert. - - - - Performs additional custom processes before removing an element from the instance. - - The key of the element to remove. - The value of the element to remove. - - - - Performs additional custom processes before setting a value in the instance. - - The key of the element to locate. - The old value of the element associated with . - The new value of the element associated with . - - - - Performs additional custom processes when validating the element with the specified key and value. - - The key of the element to validate. - The value of the element to validate. - - - - Adds the element with the specified key and value to the instance. - - - - - - - Returns the list of keys contained in the instance. - - - - - Returns the list of values contained in the instance. - - - - - Removes the number of elements contained in the - instance. - - - - - Removes the list of elements contained in the instance. - - - - - Gets / sets the list of elements contained in the instance. - - - - - Indicates whether - the is Read-only. - - - - - Indicates whether the has a fixed size. - - - - - Indicates whether access to - the is synchronized (thread-safe). - - - - - Gets an object that can be used to - synchronize access to the . - - - - - Implements a drop-down button control for selecting colors. - - - The ColorPickerButton class is a button-type control that pops-up an instance of the Syncfusion - when clicked. This class derives from the Windows Forms Button class and - hence can be used in place of a regular button control. The ColorPickerButton's ColorUIControl component - can be accessed through the property. - - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - - - - Resets the property to its default value. - - - - - Creates a new instance of the class. - - - - - Process touch gestures - - Gesture messages - true/false - - - - Overridden. See . - - - - - Sets the font to ColorUI control - - - - - Creates a default instance of a . - - The instance. - - - - Initializes the drop-down container. Adds a . - - - - - - - - - - Called when the drop-down has been closed. - - - - - - - - Overridden. See . - - - - - The ColorSelected event occurs when a color is selected from the drop-down . - - - - - Returns a reference to the drop-down ColorUIControl. - - A reference to the instance. - - - - Gets or sets the size of the drop-down . - - A Size value. - - - - Indicates whether the drop-down is visible. - - True if the drop-down is visible; False otherwise. By default, it is False. - - - - Indicates whether the is set as the button backcolor. - - True if the SelectedColor is used; False otherwise. By default, it is False. - - - - Indicates whether the is set as the button text value. - - True if the SelectedColor is used; false otherwise. By default, it is False. - - - - Gets or sets the current selected color. - - A color value. - - - - Gets or sets the color tabpages to be displayed by the drop-down . - - A value. The default is ColorUIGroups.All. - - - - Gets or sets the tab associated with this colorgroup as the selected tab in the drop-down . - - A value. - - - - Gets or sets the text displayed on the drop-down 's custom colors tab. - - A String value. - - - - Gets or sets the text displayed on the drop-down 's standard colors tab. - - A String value. - - - - Gets or sets the text displayed on the drop-down 's system colors tab. - - A String value. - - - - Returns a reference to the that will contain the . - - A reference to the instance. - - - - Gets/Sets if Dropdown opened using Touch Gesture - - - - - Specifies constants that define the color groups for the ColorPicker controls. - - - The ColorUIGroup's enumeration is used for specifying the color tab pages to be - displayed in the and the controls. -

This enumeration has a FlagsAttribute that allows a combination of its member values.

-
-
- - - None of the color groups are displayed. - - - - - Displays the custom colors group. - - - - - Displays the standard colors group. - - - - - Displays the system colors group. - - - - - Displays all color groups, but not displays UserColors groups. - - - - - Displays the user colors group. - - - - - Displays all color groups. - - - - - Specifies constants that define the selected color group in the ColorPicker controls. - - - The ColorUISelectedGroup enumeration is used for specifying the selected color group in the - and the controls. - - - - - No color group is selected. - - - - - The custom colors group is selected. - - - - - The standard colors group is selected. - - - - - The system colors groups is selected. - - - - - The user colors groups is selected. - - - - - Provides a standard interface for selecting colors. - - - The ColorUIControl implements a palette type visual interface for selecting colors at - run-time similar to the color picker drop-down provided by the Visual Studio.NET environment. - The ColorUIControl class offers a selection of colors divided into three color groupings arranged as - tabs. The three color groupings are the SystemColors consisting of the colors defined - within the class, the StandardColors consisting of the colors defined within - and a CustomColors providing a customizable color palette. - The ColorUIControl control can be used either as a regular control hosted within a parent container - or it can be used as a drop-down control in combination with the control. - - - - The following code creates a ColorUIControl, sets the color groups and adds an event handler - for the ColorUIControl.ColorSelected event: - - - private void InitializeColorUIControl() - { - // Create the ColorUIControl. - Syncfusion.Windows.Forms.ColorUIControl clrUIControl = new Syncfusion.Windows.Forms.ColorUIControl(); - - // Set the ColorGroups to be displayed - clrUIControl.ColorGroups = ( Syncfusion.Windows.Forms.ColorUIGroups.CustomColors| - Syncfusion.Windows.Forms.ColorUIGroups.StandardColors| - Syncfusion.Windows.Forms.ColorUIGroups.SystemColors ); - - // Set the initially selected group and color. - clrUIControl.SelectedColorGroup = Syncfusion.Windows.Forms.ColorUISelectedGroup.SystemColors; - clrUIControl.SelectedColor = SystemColors.ControlDark; - - // Provide a handler for the ColorUIControl.ColorSelected event. - clrUIControl.ColorSelected += new EventHandler(this.OnColorSelected); - } - - // Handler for the ColorUIControl.ColorSelected event. - private void OnColorSelected(object sender, System.EventArgs e) - { - Color clrselected = (sender as ColorUIControl).SelectedColor; - } - - - Private Sub InitializeColorUIControl() - - ' Create an instance of the ColorUIControl. - Me.clrUIControl = New Syncfusion.Windows.Forms.ColorUIControl() - - ' Set the color groups to be shown. - Me.clrUIControl.ColorGroups = Syncfusion.Windows.Forms.ColorUIGroups.CustomColors Or Syncfusion.Windows.Forms.ColorUIGroups.StandardColors - - ' Set the initially selected group. - Me.clrUIControl.SelectedColorGroup = Syncfusion.Windows.Forms.ColorUISelectedGroup.CustomColors - - ' Subscribe to the ColorUIControl.ColorSelected event. - AddHandler Me.clrUIControl.ColorSelected, New System.EventHandler(AddressOf clrUIControl_ColorSelected) - - End Sub - - ' Handler for the ColorUIControl.ColorSelected event. - Private Sub clrUIControl_ColorSelected(ByVal sender As Object, ByVal e As System.EventArgs) - - Dim clrselected As Color = Me.clrUIControl.SelectedColor - - End Sub 'clrUIControl_ColorSelected - - - - - - Default size of the control - - - - - - User tab page. - - - - - User colors palette. - - - - - User custom colors. - - - - - User custom colors collection. - - - - - User colors collection. - - - - - Enable stretch custom colors panel on resize. - - - - - Enable stretch user colors panel on resize. - - - - - Specifies an advanced appearance this control. - - - - - - - - - - - - - - Specifies a value to show / hide the user selection color swatches. - - - - - Specifies TabControl item height - - - - - Update the colors when the style is changed. - - - - - Get or Set of Skin Manager Interface - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Creates a new instance of the class. - - - - - - - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Takes the given color and looks for an instance in the ColorValues table. - - - - - Retrieves an array of color constants for the given object. - - - - - Overridden. See . - - - - - - - - - Overridden. See . - - - - - Raises the event. - - A value that contains the event data. - - - - Paints a representative value of the given object to the provided canvas. - - The instance containing the event data. - - - - Paints a representative value of the given object to the provided canvas. - - The value to paint. - Gets the System.Drawing.Graphics object with which painting should be done. - Gets the rectangle that indicates the area in which the painting should be done. - - - - Overridden. See . - - - - - Displays the control as a drop-down component. - - The initially selected color. - - - - Ends the color display drop-down. - - - - - Gets or sets the theme forecolor of the ColorUI - - - - - Gets or sets the theme color of the ColorUI - - - - - Gets or sets a value to show / hide the user selection color swatches. - - - - - Gets or sets custom color to scroller. - - - - - Gets or sets enable stretch custom colors panel on resize. - - - - - Gets or sets an advanced appearance for the ColorUI. - - - - - Gets or sets enable stretch user colors panel on resize. - - - - - Gets user custom colors. - ColorGroups must be UserColors for use this property. - - - - - Gets user colors. - ColorGroups must be UserColors for use this property. - - - - - Gets or sets the text displayed on the user colors tab. - - - - - The ColorSelected event occurs when a color is selected from one of the palettes in the . - - - - - Gets or sets the color tabpages to be displayed by the control. - - A value. The default is ColorUIGroups.All. - - - - Makes the tab associated with this color group the selected tab. - - A value. - - - - Gets or sets the text displayed on the custom colors tab. - - A String value. - - - - Gets or sets the text displayed on the standard colors tab. - - A String value. - - - - Gets or sets the text displayed on the system colors tab. - - A String value. - - - - Gets or sets the current selected color. - - A value. - - - - Gets or sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Overridden. See . - - - - - Gets the . - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns an array of standard colors. - - - - - Retrieves the array of custom colors for our use. - - - - - Returns an array of system colors. - - - - - Color array. - - - - - Control for invalidate if color array was chenged. - - - - - Assigns the value for Oldvalue - - - - - - - - - - - - - - - - - - - - - - - - - Update the control style. - - - - - Raises the System.Windows.Forms.Control.Paint event. - - A System.Windows.Forms.PaintEventArgs that contains the event data. - - - - Paints the background of the control. - - A System.Windows.Forms.PaintEventArgs that contains information about the control to paint - - - - Raises the System.Windows.Forms.Control.GotFocus event. - - An System.EventArgs that contains the event data. - - - - Stretch color cell on resize. - - - - - Gets standard colors array; - - - - - Gets or sets stretch color cell on resize. - - - - - ColorUI Style - - - - - Classic appearance. - - - - - Office2010 like appearance. - - - - - Office2016 colorful appearance. - - - - - Office2016 white theme appearance. - - - - - Office2016 black theme appearance. - - - - - Office2016 dark gray appearance. - - - - - Metro-like appearance. - - - - - CheckBoxAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Special type converter that can convert the associated type to a byte array and vice-versa when - requested by the design-time, for example. - - - - - - - - - - - - - - - - - An abstract class that encapsulates a command to be executed at a later point in time. - - - - - Execute the command this object represents. - - - - - Get a description for the command. - - - - - Still being discussed if they should be included in shared. - - - - - - - - - - - Still being discussed if they should be included in shared. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Provides support for the method that returns a . - - - - - Returns a that is associated with the current object. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Empty attributes array for optimization. - - - Hide default constructor. Allow to see it only inheritors. - - - - This is a base class for DisposableWithDisposedProp. It implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern but it does not - implement a finalizer. If you need finalization you need to derive from Disposable - or add a finalizer to your derived class and manually call Dispose from the Finalizer. - - - - - Storage for IsDisposed property. True - object is disposed, - otherwise object is still alive and available for user use. - - - - - Releases all resources used by the Component. - - - Releases all resources used by the Component. - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Allows to detect if object is disposed or not. True indicates object is disposed, - otherwise indicates object is still alive and ready for use. - - - - - This class provides a base class that implements the IDisposable interface - as suggested in the .NET documentation using the Disposable pattern. - - If you derive from this class, you only need to override the protected - Dispose method and check the disposing parameter. - - - - . - In C# and C++, finalizers are expressed using destructor syntax. - - - - - - - - - - - Clear collection and then reset it reference to NULL. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Dispose array items and then clear collection and reset it reference to NULL. - - - - - Gets the value of a property from some object - - Object from which we want to take the value of property - Name of the property from which we want to take value - Type of value? which to return - Value which we want to take - - - - Specifies the expected effect of the change in property of an object / Control. - - - Used by the class. - - - - - The Control needs a repaint due to change in property's value. - - - - - The Control needs to be laid out due to change in a property's value. - - - - - No effect when there is change in a property's value. - - - - - Provides data for the delegate. - - - - - Creates an instance of the SyncfusionPropertyChangedEventArgs class. - - A PropertyChangeEffect value. - The name of the property. - The old value cast into an object. - The new value cast into an object. - - - - Gets / sets the of this change in property value. - - The . - - - - The old value of the property before it changes. - - - The object representing the old value. This can be cast to - the type of the property. - - - - - The new value of the property after it changes. - - - The object representing the new value. This can be cast to - the type of the property. - - - - - Represents the method that will handle the PropertyChanged event of - certain classes. - - The source of the event. - A object that - contains the event data. - - - - A class implements this interface to let it be known that it provides - a event. - - - The class makes use of this interface when the items - in its list implement it. The listens to this event and - forwards the event args using its own event. - - - - - Occurs when one of the object's property changes. - - - This event provides a generic way of notifying changes - in an object's property, along with the old value, new value - and the PropertyChangeEffect. - - - - - Used internally to expose the DesignMode property of certain component-derived - classes. - - - - - Indicates whether the component is in design-mode. - - - - - Indicates the current state of the operation. - - - - - The operation is starting. - - - - - The operation is in progress. - - - - - The operation is finished. - - - - - This class listens to a list of and fires a event - if the operation takes longer than a specified . - - - Derive from this class if you want to add support for displaying status messages in your - status bar. - operates on the same thread - where the long operation takes place. See the class how to - give feedback about the operation on a different thread and allow the user to cancel the - operation by pressing the Cancel button in a dialog. - - - - - - - - - Adds an that this object will listen to and - provide user feedback for. - - An object that implements the interface. - - - - Removes an from the list of feedback providers. - - An object that implements the interface. - - - - Raises the event. - - An that contains the event data. - - - - Occurs to indicate the progress of an ongoing operation. - - - - - Gets / sets the delay in milliseconds before Progress events about an operation should be raised. - - - - - Holds status information about an ongoing operation. - - - - - Initializes the event args. - - The current status of the operation. - The name of the operation. - A textual description for the operation. - The percentage of work the operation completed so far or -1 if the operation - is not able to calculate a meaningful percentage value. - The number of milliseconds that passed since the operation started. - Indicates whether the operation can be canceled by the user. - Indicates whether changes made by the operation can be rolled back if the - operation is canceled by the user. - - - - Returns the percentage of work the operation completed so far; -1 if the operation - is not able to calculate a meaningful percentage value. - - - - - Returns the name of the operation. - - - - - Returns the textual description for the operation. - - - - - Indicates whether the operation can be canceled by the user. - - - - - Indicates whether changes made by the operation can be rolled back if the - operation is canceled by the user. - - - - - Indicates whether the operation should roll back. - - - - - Returns the current status of the operation. - - - - - Returns the number of milliseconds that passed since the operation started. - - - - - Represents the method that will handle the OperationFeedbackEvent event of certain classes. - - The source of the event. - An OperationFeedbackEventArgs object that - contains the event data. - - - - The class that implements the component where operations are operated on should - implement this interface. - - - - - Raises an RaiseOperationFeedbackEvent. - - An OperationFeedbackEventArgs object that - contains the event data. - - - - Returns the stack for nested operations. - - - - - Occurs to indicate the progress of an ongoing operation. - - - - - Use this class when you want to provide feedback during time-consuming operations or - if you want the user to be able to abort an operation. - - - You need to implement IOperationFeedbackProvider in your class. - - // interface IOperationFeedbackProvider - public event OperationFeedbackEventHandler OperationFeedback; - Stack feedbackStack = new Stack(); - void IOperationFeedbackProvider.RaiseOperationFeedbackEvent(OperationFeedbackEventArgs e) - { - if (OperationFeedback != null) - OperationFeedback(this, e); - } - Stack IOperationFeedbackProvider.FeedbackStack - { - get { return feedbackStack; } - } - - - When you implement an operation that you want to be cancellable or where - you want to show feedback (e.g. display percentage in status bar) you - do this by creating an OperationFeedback object inside a using statement. - - Example: - - using (OperationFeedback op = new OperationFeedback(this)) - { - op.Name = "Cell"; - op.Description = "Command Description"; - op.AllowCancel = true; - op.AllowNestedProgress = true; - op.AllowNestedFeedback = false; - while (n++ != 100) - { - if (op.ShouldCancel()) - return; - - op.PercentComplete = n; - } - } - - It is also supported in nest operations in case your method calls other - routines that also use OperationFeedback. AllowNestedProgress will disable - OperationFeedback and OperationProgress / ShouldCancel in nested routines. - AllowNestedFeedback will simply prohibit changing the description. But - the object will still fire OperationProgress events. - - A sample for a consumer is the DelayedWaitCursor class. You can assign a DelayedWaitCursor - to a grid table. The DelayedWaitCursor object will listen to OperationFeedback events and - automatically change the cursor to a wait cursor if operations take more time. - - - - - - - - Initializes a new OperationFeedback object and pushes the object - onto the providers feedback stack. - - Component that implements IOperationFeedbackProvider. - - - - Closes the current operation. Removes the object from FeedbackStack. - - - - - Call this method to signal the start of the operation. If you do not explicitly - call this routine, it will be called automatically the first time Progress or ShouldCancel - is called. - - - - - Call this method to signal the end of the operation. If you do not explicitly - call this routine it will be called automatically when you are using the "using" - statement in C# and / or when Dispose is called. - - - - - Call this method inside a loop from your method that implements the operation. - - - - - Gets / sets the number of series if you have a series of nested operations. - - - If you know the number of operations in advance, you should specify this value. - This allows OperationFeedback to adjust the percentage display to reflect the percentage - in the overall operation. If you have two operations, the first operation will show percentage - from 0 to 50 and the second from 51 to 100. In the original program code for these operations, you - can keep your original calculations (setting percentage from 0 to 100). - OperationFeedback simply divides the percentage by SeriesCount when it fires the Progress event. - - - - - Indicate whether this operation is nested inside another operation. - - - - - Indicates whether nested operations are enabled / disabled. - - - - - Indicates whether calls to Progress or ShouldCancel have any effect. - - - - - Indicates whether the percent complete and description should be shown or discarded - for this operation. - - - - - Indicates whether percentage display and description for nested operations are enabled / disabled. - - - - - Indicates whether the user wants to abort the operation. ShouldCancel will call - Progress. - - - - - Indicates whether cancelling the current operation is enabled / disabled. - - - - - Indicates whether rolling back (undoing) the current operation is enabled / disabled. - - - - - Indicates whether the canceled operation should be rolled back. - - - - - Returns False. - - - - - Gets / sets the short name of the operation. - - - - - Returns the number of ticks elapsed since the operation was started. - - - - - Gets / sets the description of the operation. Use localized string (SR.GetString("...")) if necessary. - - - - - Gets / sets the progress in percentage for the current operation. - - - - - Returns the number of counts of calls to Progress. - - - - - Specifies whether a property should be shown in the ToString result. - - - - - - Specifies that a property should be shown in the ToString result. - This field is Read-only. - - - - - Specifies that a property should not be shown in the ToString result. - This field is Read-only. - - - - - The default value for TracePropertyAttribute. (No) - - - - - Initializes a new instance of the class. - - - if a property should be shown in ToString result; otherwise. The default is . - - - - - - - Overridden. See . - - - - - - - - Indicates whether a property is shown in the ToString result. - - - - - Helper class for creating a string concatenating the string representation of all properties in an object. - - - The static method of this helper class will loop through any property - in a given object and check if the has been set. If it has - been set, the string representation of the property will be appended to the resulting string. - - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; False otherwise. - - - - This method will loop through any property in a given object and append the - string representation of the property if the - has been set. - - - - - This is a base class for events of the Syncfusion libraries. It supports writing - properties in its ToString() method. - - - - - This method will loop through all properties in a derived class and append the - string representation of the property if the - has been set. - - - - - Provides data for an event that indicates success or failure. - - - - - Overloaded. Initializes a new instance of the SyncfusionSuccessEventArgs class with the Success property set to True. - - - - - Initializes a new instance of the SyncfusionSuccessEventArgs class with the Success property set to the given value. - - Indicates whether an operation was successful. - - - - Indicates whether an operation was successful. - - - - - Provides data for a event that can be handled by a subscriber and overrides the event's default behavior. - - - - - Overloaded. Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled property set to False. - - - - - Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled property set to the given value. - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Provides a basic implementation for the ITypeDescriptorContext interface and can be used - together with WindowsFormsEditorService to launch an Editor directly outside a property grid. - - - The grid uses this class to display a collection editor: - - public static DialogResult ShowGridBaseStylesMapDialog(object instance, string propertyName) - { - GridBaseStyleCollectionEditor ce = new GridBaseStyleCollectionEditor(typeof(ArrayList)); - WindowsFormsEditorServiceContainer esc = new WindowsFormsEditorServiceContainer(null); - PropertyDescriptor pd = TypeDescriptor.GetProperties(instance)[propertyName]; - TypeDescriptorContext tdc = new TypeDescriptorContext(instance, pd); - tdc.ServiceProvider = esc; - object v = ce.EditValue(tdc, esc, ((ICloneable) pd.GetValue(instance)).Clone()); - if (esc.DialogResult == DialogResult.OK) - { - pd.SetValue(instance, v); - } - return esc.DialogResult; - } - - - - - - - Initializes a TypeDescriptorContext for the given object and PropertyDescriptor. - - The instance of the property to be edited. - A PropertyDescriptor that contains information about the property. - - - - Gets / sets the associated IServiceProvider. - - An IServiceProvider value. - - - - Provides support for the method that returns a . - - - - - Returns a collection of property descriptors. - - - - - - Provides a basic implementation for the IWindowsFormsEditorService and IServiceProvider interfaces and can be used - together with TypeDescriptorContext to launch an Editor directly outside a property grid. - - - The grid uses this class to display a collection editor. - - public static DialogResult ShowGridBaseStylesMapDialog(object instance, string propertyName) - { - GridBaseStyleCollectionEditor ce = new GridBaseStyleCollectionEditor(typeof(ArrayList)); - WindowsFormsEditorServiceContainer esc = new WindowsFormsEditorServiceContainer(null); - PropertyDescriptor pd = TypeDescriptor.GetProperties(instance)[propertyName]; - TypeDescriptorContext tdc = new TypeDescriptorContext(instance, pd); - tdc.ServiceProvider = esc; - object v = ce.EditValue(tdc, esc, ((ICloneable) pd.GetValue(instance)).Clone()); - if (esc.DialogResult == DialogResult.OK) - { - pd.SetValue(instance, v); - } - return esc.DialogResult; - } - - - - - - - Initializes a WindowsFormsEditorServiceContainer with the given IServiceProvider. - - An IServiceProvider. Can be NULL. - - - - Occurs immediately before the Dialog is displayed. The ControlEventArgs.Control - the form. - - - - - Returns the dialog result of the edit operation. - - - - - Gets / sets the associated IServiceProvider. - - - - - Extends the class to handle currency input - and validation. - - - The CurrencyTextBox is derived from the textbox and provides all the functionality - of a text box and adds additional functionality of its own. - - Collecting currency input in a consistent format requires a lot of validation code - that needs to be built into the application when using the Windows Forms textbox control. - The CurrencyTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter currency data. - - - The CurrencyTextBox is also closely tied to the globalization settings of the - operating system for Currency related properties. Please refer to the - class for a detailed explanation of globalization and Currency related attributes. - - - The CurrencyTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - - The CurrencyTextBox also raises a event when - inappropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for currency related issues. - - - - - - - // Create the Calculator Control. - this.currencyTextBox1 = new CurrencyTextBox(); - - // Set the initial value. - this.currencyTextBox1.Text = "$1.00"; - - // Set the clipmode. - this.currencyTextBox1.ClipMode = CurrencyClipModes.IncludeFormatting; - - // Set formatting properties. - this.currencyTextBox1.CurrencyDecimalDigits = 2; - this.currencyTextBox1.CurrencyDecimalSeparator = "."; - this.currencyTextBox1.CurrencyGroupSeparator = ","; - this.currencyTextBox1.CurrencyGroupSizes = new int[] {3}; - this.currencyTextBox1.CurrencyNegativePattern = 1; - this.currencyTextBox1.CurrencyNumberDigits = 27; - this.currencyTextBox1.CurrencyPositivePattern = 0; - this.currencyTextBox1.CurrencySymbol = "$"; - this.currencyTextBox1.ForeColor = System.Drawing.Color.Black; - this.currencyTextBox1.NegativeColor = System.Drawing.Color.Red; - this.currencyTextBox1.NegativeSign = "-"; - this.currencyTextBox1.PositiveColor = System.Drawing.Color.Black; - - this.currencyTextBox1.Size = new System.Drawing.Size(256, 20); - this.currencyTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right; - - // Add the CurrencyTextBox control to the form. - this.Controls.Add(this.currencyTextBox1); - - - - - ' Create the CurrencyTextBox - Me.currencyTextBox1 = New CurrencyTextBox - ' Set the initial value - Me.currencyTextBox1.Text = "$1.00" - ' Set the clipmode - Me.currencyTextBox1.ClipMode = CurrencyClipModes.IncludeFormatting - ' Set formatting properties - Me.currencyTextBox1.CurrencyDecimalDigits = 2 - Me.currencyTextBox1.CurrencyDecimalSeparator = "." - Me.currencyTextBox1.CurrencyGroupSeparator = "," - Me.currencyTextBox1.CurrencyGroupSizes = New Integer() {3} - Me.currencyTextBox1.CurrencyNegativePattern = 1 - Me.currencyTextBox1.CurrencyNumberDigits = 27 - Me.currencyTextBox1.CurrencyPositivePattern = 0 - Me.currencyTextBox1.CurrencySymbol = "$" - Me.currencyTextBox1.ForeColor = System.Drawing.Color.Black - Me.currencyTextBox1.NegativeColor = System.Drawing.Color.Red - Me.currencyTextBox1.NegativeSign = "-" - Me.currencyTextBox1.PositiveColor = System.Drawing.Color.Black - Me.currencyTextBox1.Size = New System.Drawing.Size(256, 20) - Me.currencyTextBox1.TextAlign = System.Windows.Forms.HorizontalAlignment.Right - ' Add the CurrencyTextBox control to the form - Me.Controls.Add(Me.currencyTextBox1) - - - - - Extends the class to handle numeric input - and validation. - - - The NumberTextBoxBase class is not to be used directly. Defines the base class for - controls that provide specific formatting and validation for different data types. - - - - - An extended textbox that provides advanced border styles. - - - The property provides you advanced 3D border options. The - property lets you specify custom single border colors. - - - - - Overflow indicator border indent. - - - - - Default windows message for gesture support. - - - - - Default windows message for Mouse captured. - - - - - Overflow indicator size. - - - - - Overflow indicator element size. - - - - - Overflow indicator border color. - - - - - Overflow indicator foreground element color. - - - - - Overflow indicator ToolTip offset. - - - - - Default size of the control - - - - - To check whether the scaling of the TextBoxExt; - - - - - Default font style of the control - - - - - Font which stored after changed in design - - - - - - - - - - - - - - - - - - - - - - - - - - - Parent sub class. - - - - - overflow indicator visibility. - - - - - Last overflow indicator state. - - - - - Overflow indicator ToolTip. - - - - - Left last painted overflow indicator rectcangle. - - - - - Right last painted overflow indicator rectcangle. - - - - - - - - - - Collects the boolean value if Control is selected by Touch or Mouse control. - - - - - Show overflow indicator ToolTip. - - - - - - - - - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - MetroColor. - - - - - - - - - - - - - - - - - - - Used to set the Hover and Focussed border color - - - - - Event will be triggered when the TextBoxExt lost its Focus. - - - - - - - Creates a new instance of the TextBoxExt class. - - - - - To Show/Display the virtual keyboard - - - - - - To hide the touch keyboad. - - - - - - - - - - Dispose all created internal object - - - - - - - - - - - - Raises the MaximumSizeChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnMaximumSizeChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMaximumSizeChanged - in a derived class, be sure to call the base class's - OnMaximumSizeChanged method so that registered - delegates receive the event. - - - - - Event will be triggered while clicking on the TextBoxExt. - - - - - - Sends the specified message to the default windows procedure. - - - - - - - - - - - - Raises the MinimumSizeChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnMinimumSizeChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMinimumSizeChanged - in a derived class, be sure to call the base class's - OnMinimumSizeChanged method so that registered - delegates receive the event. - - - - - Raises the CharacterCasingChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnCharacterCasingChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnCharacterCasingChanged - in a derived class, be sure to call the base class's - OnCharacterCasingChanged method so that registered - delegates receive the event. - - - - - Raises the BorderSidesChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderSidesChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OmBorderSidesChanged - in a derived class, be sure to call the base class's - OnBorderSidesChanged method so that registered - delegates receive the event. - - - - - Raises the BorderColorChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderColorChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorderColorChanged - in a derived class, be sure to call the base class's - OnBorderColorChanged method so that registered - delegates receive the event. - - - - - Raises the Border3DStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorder3DStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorder3DStyleChanged - in a derived class, be sure to call the base class's - OnBorder3DStyleChanged method so that registered - delegates receive the event. - - - - - Raises the ThemesEnabledChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnThemesEnabledChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnThemesEnabledChanged - in a derived class, be sure to call the base class's - OnThemesEnabledChanged method so that registered - delegates receive the event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Overflow indicators drawing. - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - Return GDI text size. - - - - - - - Send WM_NCCALCSIZE message. - - - - - Send WM_NCCALCSIZE message and invalidate NC area. - - - - - Return overflow indicator state. - - - - - - - - - - - - - - - - Get or Set of Skin Manager Interface - - - - - Draw one overflow indicator. - - - - - - - - Draw overflow indicator foregraund element. - - - - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - - - - - Gets or sets the metrocolor. - - - - - Gets or sets the FocusBorderColor - - - - - Enables the FocusBorderColor property - - - - - Gets or sets can show overflow indicator ToolTip. - - - - - Gets or sets overflow indicator ToolTip text. - - - - - Gets or sets overflow indicator visibility. - - - - - Indicates whether the text should be drawn active even when the control is disabled. - - False for default textbox behavior; True to draw the text enabled even when the control is - disabled. - - - - Gets or sets the border sides for which you want the 3D border style applied. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the 3D border style for the control. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the single border color for the control. - - - This property is used only when BorderStyle is FixedSingle. - - - - - Gets or sets the Hover and Focussed border color for Office2016 styles. - - - - - Last overflow indicator state. - - - - - Overflow indicator ToolTip. - - - - - Indicates whether XPThemes should be used when BorderStyle is set to Fixed3D. - - True to use XPThemes; False otherwise. Default is True. - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the maximum size for the control. - - - - - Gets or sets the minimum size for the control. - - - - - Gets or sets the case of characters as they are typed. - - - - - Gets or sets corner radius of control. - - Radius has to be not less than zero or half of minimum dimension (width or height) of control. - If radius is zero, control has standard rectangular appearance. - - - - - Gets or sets the near image. - - - - - Gets or sets the far image. - - - - - This event is raised if the BorderSides property is changed. - - - - - This event is raised if the Border3DStyle property is changed. - - - - - This event is raised when the value of the BorderColor property is changed. - - - - - This event is raised if the ThemesEnabled property is changed. - - - - - This event is raised if the MaximumSize property is changed. - - - - - This event is raised if the MinimumSize property is changed. - - - - - This event is raised if the CharacterCasing property is changed. - - - - - Office2010 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets or sets the Office2016 colors for the Office2016 style. - - - - - Office2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets a value indicating whether this is initializing. - - true if initializing; otherwise, false. - - - - The NumberFormatInfo object that will specify the - localized attributes for displaying the currency - value. - - - - - Forecolor to be used when the value is negative. - - - - - Gets or sets a value indicating whether to overrite the immediate text. - - - - - Specifies when the MinMax Validation Need to be performed. - - - - - Specifies the Action To be Performed when Validation Fails - - - - - Forecolor to be used when the value is positive. - - - - - Forecolor to be used when the value is zero. - - - - - Indicates whether the current value is negative. - - - - - The clip mode specifies the kind of data to be returned - when copied to the clip board. - - - - - The context menu for the text box. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - String for holding undo buffer. - - - - - String for holding redo buffer. - - - - - Internal variable to suppress TextChanged event. - - - - - The currently selected culture. - - - - - Indicates whether the special culture values need to be applied. - - - - - Array of cultures that require RightToLeft by default. - - - - - The UseUserOverride value to be passed in when creating CultureInfo objects. - - - - - The NULL string value. - - - - - Indicates whether the control is in NULL state. - - - - - The IFormatProvider for formatting NULL entries. - - - - - - - - - - Indicates whether the NULL String should be used. - - - - - Indicates whether an operation is to be rolled back because of an error. - - - - - Support for culture initialization. - - - - - Support for NumberFormatInfo initialization. - - - - - Indicates whether to allow the KeyPress event to be raised but no other action to be taken - by the base class. - - - - - Indicates whether to allow the KeyDown event to be raised but no other action to be taken - by the base class. - - - - - Indicates whether the current value can be held in numeric form or has - been 'dirtied' by user input. - - - - - Used when the NegativeSign is keyed in when the value is zero. - - - - - Indicates whether the control is to listen to the - event and refresh the culture. (Only if the SpecialCultureValue is set to CurrentCulture.) - - - - - - - - - - This will be set to True when the negative key is input with the entire contents of the - textbox selected. - - - - - Custom backcolor that will be used when the control is Read-only. - - - - - Gets or Sets the BackGroundColor of the control. - - - - - Overloaded. Creates an object of type NumberTextBox. - - - The NumberTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - Implementation of the interface. - - - - - Initialize the context menu. - - - - - - - - - - This method raises the ValidationError event. - - The text that was input. - The start position of the error. - - See the method for more information. - - - - - Invokes the ValidationError event. - A ValidationErrorEventArgs that contains the event data. - - - The OnValidationError method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnValidationError in a derived - class, be sure to call the base class's OnValidationError method so that - registered delegates receive the event. - - - - - Overrides method. - - The event data. - - Raises the event when there is unacceptable - text in the control. - - - - - Validates the control. - - Indicates whether the validation error is to be raised. - - - - Refreshes and reapplies the culture specific settings. - - - Call this function when there has been a change in the CurrentCulture of the - application. - - - - - - - - - - Resets the property to its default value. - - - - - - - - - - - Resets the property to its default value. - - - - - - - - Indicates whether the NegativeSign should not be serialized if the value is the same as the one for the - current culture. - - True if the property should be serialized; otherwise False. - - - - Resets the value to the culture specific value. - - - - - Returns a copy of the current NumberFormatInfo. - - - - - - Indicates whether NegativeColor property value should be serialized. - - - - - Resets NegativeColor property to default value. - - - - - Indicates whether ZeroColor property value should be serialized. - - - - - Resets ZeroColor property to default value. - - - - - Indicates whether PositiveColor property value should be serialized. - - - - - Resets ResetPositiveColor property to default value. - - - - - Raises the event. - - A that contains the event data. - - - - Sets the control's forecolor depending on whether the - current value is negative. - - - See the and - properties. - - - - - Takes the incoming text, formats it based on the - rules and settings prevailing currently and sets - the display accordingly. - Returns the length of the new text after setting the - display. - - - - - - - Takes the incoming text, formats it based on the - rules and settings prevailing currently and sets - the display accordingly. - Returns the length of the new text after setting the - display. - - - - - - - Formats the given text according to the current setting. - - - - - - - - - - - - - - Resets the ControlBackColor property to its default value. - - - - - Resets ReadOnlyBackColor property to default value. - - - - - Gets the clip text. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Handles the Context popup. - - The context menu. - - - - - Handles the Undo menu click. - - The undo menu. - The event data. - - - - Handles the Cut menu. - - Cut menu. - The event data. - - - - Handles the Copy menu. - - Copy menu. - The event data. - - - - Handles the Delete menu. - - Delete menu. - The event data. - - - - Handles the Select All menu. - - Select All menu. - The event data. - - - - Handles the Paste menu. - - Paste menu. - The event data. - - - - This method will Undo the previous operation. - - - This method is invoked when the Undo context menu item is - clicked or the shortcut (CTRL+Z) is clicked. You can override - this method to provide your own implementation for Undo. - - - - - Selects all text in the text box. - - - This method is called when the menu item "Select All" or its - shortcut (CTRL+A) is used. This method overrides the base - implementation in . - Override this method to provide your own implementation for - SelectAll. - - - - - Pastes the data in the clipboard into the NumberTextBox control. - - - The data will be formatted before being pasted into the text box. - - - - - Copies the content of the NumberTextBox to the clipboard. - The ClipMode property dictates what gets copied. - - - If the text of the control is $56,000.12, this is the content - that will be copied to the clipboard based on whether the ClipMode - is set to or - . - - IncludeFormatting - $56,000.12 - ExcludeFormatting - 56000.12 - - - - - - Cuts the selected data to the clipboard. - - - The selected text in the CurrencyTextBox will be deleted and the content - will be copied to the clipboard. - - - - - Deletes the current selection of the text box. - - - This method is invoked by the ContextMenu "Delete" menu item of the - text box through the "Del" shortcut or by selecting the menu item. - If you want to override the default behavior of this method, derive - and override this method to provide your own implementation. - - - - - The NumberTextBox accepts numeric digits only. This method checks - for numeric input. - - The character to be checked. - True if the character is valid; false otherwise. - - - - Overloaded. Override this method to provide an implementation for parsing - a negative value. - - The text to be parsed. - True if the value is negative; false otherwise. - - - - Override this method to provide an implementation for parsing - a negative value. - - The text to be parsed. - True if the value is negative; false otherwise. - - - - Sets the start position to value passed and sets the - SelectionLength to be zero. - - The start of the selection. - - - - Returns the first data position which is the index within the current - string content of the edit control at which data can be - inserted. - - The index of the first possible data position. - - - - Returns the next valid position for receiving data input. - - The position to start seeking from. - Indicates whether the start position is after the decimal separator. - Indicates whether the backspace key has been pressed. - The index in the string that is valid for input. - - - - Overloaded. Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Returns the previous valid data position for text input. - - The position to seek from. - - - - - Overloaded. Override this to return DecimalSeparator in NumberTextBox. - - - - - Override this to return DecimalSeparator in NumberTextBox. - - - - - Overloaded. Override this to return GroupSeparator in NumberTextBox. - - - - - Override this to return GroupSeparator in NumberTextBox. - - - - - Deletes the currently selected text. - - The content of the text box after deletion. - - - - Deletes the currently selected text. - - The content of the text box after deletion. - - - - Returns the first data position that can take valid input. - - The start position to seek from. - The index of the first valid position. - - - - Checks if the text can be inserted subject to the constraints. - - The current content of the text box. - The text to be inserted. - The length of the acceptable string to be inserted. - - - - - - - - - - - Indicates whether the given value meets the minimum and maximum value considerations. - - - - - - - - Checks whether the NullSring Value is with in the Min Max Values - - - True if it is in range else false - override this method to check the nullString is in range by parsing it to respective Type - - Double doubleVal; - bool isNumber = Double.TryParse(currentTextValue, out doubleVal); - if (isNumber) - { - return CheckForMinMax(doubleVal.ToString(),true); - } - else - return true; - - - - - Inserts a string into the textbox at the current position. - The string data will be parsed for valid numeric data and - only the valid characters will be accepted. - - The string to be inserted. - Paste and Text properties will be treated differently for validation. - True if the operation succeeds. - - This method attempts to insert the text passed in as the parameter into - the NumberTextBox subject to the constraints imposed by the other - attributes of the NumberTextBox such as the maximum length of a - the string etc. - - - - - Concat modified text. - - - - - - - - - Overrides OnTextChanged. - - The event data. - - - - Checks the length of the decimal part of the text box content. - - The input raw text string. - The checked string. - - - - Returns the count of zeros at the beginning of the string. This is - needed as we will have to compensate for this once a valid - number appears after it for repositioning the cursor. - - - - - - - - Indicates whether the start position is after the decimal separator. - - The current text. - The start position to seek for. - - - - - - - - - - - - - - - - - This method overrides the method - and handles the key messages that are of interest to the NumberTextBox. - - The message that is to handled. - True if the key message is handled; false otherwise. - - - - Overrides to suppress KeyPress. Only the KeyPress event is raised - no other - processing is done. - - The message. - True if the message is a KeyPress; otherwise the base class handles this. - - - - Handles the backspace key. - - True if the key was accepted and the action performed; false otherwise. - - The backspace key results in one character being removed in front of the - current selection if the selection is empty or deletion of the selection if the - selection is not empty. - - - - - Invoked when a character key is pressed. - - The character to be inserted. - True if the insert was successful; false otherwise. - - Character entry is accepted if the character is a valid digit. This - method invokes the InsertString method to insert the character into - the CurrencyTextBox. - - - - - When the start position is in the number part and there is only a zero, the cursor should be moved. - - - - - - - - Invoked when the Delete key is pressed. - - True if the key is handle; false otherwise. - - This method performs the action of removing the selected text when the - delete key was pressed and also positioning the cursor appropriately. - - - - - Invoked when the negative key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to toggle the sign (negativity) - of the content of the NumberTextBox. - - - - - Decimal typing mode. Use if NullString is true; - - - - - Decimal digits position. Use for typing in decimal mode. - - - - - Invoked when the decimal key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to jump to the position immediately - after the decimal position. - - - - - Invoked for positioning the cursor at the right position after - something has changed. - - The number of valid numbers before the point. - Indicates whether the point comes after the decimal separator. - Indicates whether the direction is backwards. - - - - Need all select OnMouseDown. - - - - - - - - Event raised when NULL State is to be set based on a value. - - - - - Event raised when a Key is to be validated. This validation is performed before any of the - NumberTextBox's own validation of the input character. - - - - - If the Min Max values are not met, the Validating event will be handled and cancelled if this property is set to true. - - - - - Occurs when the input text is invalid for the current state of the control. - - - - This event can be handled and you can do your processing based - on the information provided. The ValidationErrorEventArgs object - will provide the invalid text that was input and also the position - within that text where the error occurred. - - - The ValidationError event is raised when: - 1. The event is raised (if there is invalid input). - 2. Invalid key characters are input. - 3. Invalid values are set through the Text property. - - - - - Console.WriteLine("ValidationError in currencyTextBox1 InvalidText" + e.InvalidText); - Console.WriteLine("ValidationError in currencyTextBox1 StartPosition" + e.StartPosition ); - - Console.WriteLine(("ValidationError in currencyTextBox1 InvalidText" + e.InvalidText)) - Console.WriteLine(("ValidationError in currencyTextBox1 StartPosition" + e.StartPosition)) - - - - - Gets or sets the culture that is to be used for formatting the numeric display. - - - - - Gets or sets the mode for the cultures. - - - - - Indicates whether the Culture property is to be refreshed when the culture changes. - - - - - The UseUserOverride parameter for CultureInfo. - - - The NumberTextBoxBase control has several properties that expose culture-specific - information. These properties use a object for - handling the culture specific information. This property is used in the creation - of the NumberFormatInfo object. - - - - - Indicates whether the NULLString property will be used. - - - - - Gets or sets a value indicating whether control's elements are aligned to - support locales using right-to-left fonts. - - - - - Gets or sets the back color. (overridden property) - - - - - Gets or sets the NumberFormatInfo object that will be used for formatting the - number value. - - - This property will not be exposed to the developer. This is only meant - to be an accessor for use within the control. The developer will be able - to access the properties of the NumberFormatInfo through the individual - properties exposed. - - - - - Gets or sets the sign that is to be used to indicate a negative value. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the forecolor when the current value is negative. - - - You can customize the look and provide feedback to the user by defining - a different color for the negative numbers. - - - - - Gets or sets the forecolor when the current value is zero. - - - You can customize the look and provide feedback to the user by defining - a different color for displaying zero. - - - - - Gets or sets the forecolor when the current value is positive. - - - You can customize the look and provide feedback to the user by defining - a different color for the positive numbers. - - - - - Returns the NumberFormatInfo object for the NULL display. - - - - - Gets or sets the NULL string to be displayed. - - - - - Gets or sets the NULL string to be displayed. - - - - - Occurs when the property is changed. - - - - - Occurs when the property is changed. - - - - - Wrapper property around the selected value. Use this property if you - want to be able to set the value of the control to NULL. - - - - - Gets or set the default value. - - - - - Gets or sets a value indicating whether to overrite the immediate text when the text cannot be inserted. - Effective when MinMaxValidation is set to OnKeyPress. - - - - - Specifies when the MinMax Validation Need to be performed. - - - - - Overrides the MaxLength property. This has no effect on this EditControl as it does not honor MinValue and MaxValue properties. - - - The control does not honor the - MaxLength property. Set the and - properties. - - - - - Specifies the action to be performed when validation fails, Effective only if MinMaxValidation is set to OnLostFocus - - - - - Indicates whether the field is Null(NullString) or Not. - - when this is True and is True the field will be assigned with - - - - Indicates the NULLState of the control. - - - - - Gets or Sets the BackGroundColor of the control. - - - - - Color to be used for the Backcolor when the control is Read-only. - - - - - Determines whether to include or exclude the literal characters in the input mask when doing a copy command. - - - This property is used when copying to the clipboard and also the - property. - - When databinding the Text property, it is advisable to have the ClipMode - set to in cases where - the data source does not accept the formatted text. - - - - - - Returns the clipped text without the formatting. - - - For example, if the text in the CurrencyTextBox is $45,000.00, the - ClipText property will give 45000.00. - - - - - Occurs when the property is changed. - - - - - Returns the formatted text with the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - FormattedText property will give $45,000.00. - - - - - Occurs when the property is changed. - - - - - Indicates whether the Undo operation is possible at this time. - - - The NumberTextBox maintains its own undo mechanism and hence - needs to implement this method to be compatible with the Undo - mechanism. - - - - - This property defines the behavior when the contents of the TextBox is fully selected and the negative - key is pressed by the user. - If the value is set to True - The current value is not changed at all. The next key stroke is taken to be a - new value and the entire contents of the TextBox is replaced by the negative value of the key stroke character - entered. Example: If the current value of the TextBox is 1.00 and all the text is selected and the user presses - the -ve key followed by the key 5 - the value is -5.00 - If the value is set to False - The current value is changed to the negative value immediately. Example: If the current value of the TextBox is 1.00 and all the text is selected and the user presses - the -ve key the value is -1.00 - - - - - Specifies if the text should be selected when the control gets the focus. - - - - - Gets or sets SelectedText. (overridden property) - - - - - Please use NegativeColor, ZeroColor and PositiveColor properties instead of ForeColor property. - - - - - The maximum number of valid digits the textbox can take. - This is set to the maximum value a decimal type can hold. - - - - - The negative patterns. - - - - - The minimum value. - - - - - The maximum value. - - - - - The maximum number of currency digits. - - - - - The initial decimal value set in InitializeComponent. - - - - - The decimal value when the control gets the focus. Used when validating. - - - - - The decimal value that is set through the DecimalValue property. - - - - - - - - - - - - - - - For initialization of Culture related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the Culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - Static initializer for the CurrencyTextBox. - - - - - Gets the currency formatted text and the decimal value for a given NumberFormatInfo object and - text value. - - The NumberFormatFormatInfo object to be used for the formatting. - The text to be formatted. - The value to be returned if the currencyText is considered a NULL value. This should be NULL if the string is not to be formatted as NULL even if value is NULL. - The decimal value. - - - - - Overloaded. Creates an object of type CurrencyTextBox. - - - The CurrencyTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - Indicates whether to serialize the CurrencyNumberDigits property - if its the same as the MaximumLength. - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the CurrencyDecimalDigits should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Reset the value to the culture specific value. - - - - - Indicates whether the CurrencyDecimalSeparator should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyGroupSeparator should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyGroupSizes should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyNegativePattern should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencyPositivePattern should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the CurrencySymbol should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value - - - - - Indicates whether to serialize the CurrencyNumberDigits property - if its the same as the MaximumLength - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - - - - - - - Leading symbol. - - - - - Remove last decimal zeros. - - - - - If need correct ConcatModifiedText. - - - - - Zeros need added count. - - - - - Format the given text according to the current setting. - - - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the MaxValue property should be serialized. - - true if the value is not equal to - - - - Resets the value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Calculates start position of numeric value. - - - - - - Calculates end position of numeric value. - - - - - - - - - - - - - - - - - - Checks if the text can be inserted subject to the constraints. - - The current content of the TextBox. - The text to be inserted. - The length of the acceptable string to be inserted. - - - - Returns the position of the decimal separator taking into account - the CurrencySymbol. - - The text in which to look for the decimal separator. - The decimal separator's position. - - - - Override this to return CurrencyDecimalSeparator in CurrencyTextBox - and PercentDecimalSeparator in PercentTextBox. - - - - - Override this to return CurrencyDecimalSeparator in CurrencyTextBox - and PercentGroupSeparator in PercentTextBox. - - - - - Overrides - - The text to be parsed. - True if the value is negative; false, otherwise - - - - Overrides the method. - - The event data. - - Saves the current DecimalValue so that it can be compared - during validation. The DecimalValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - The number of digits for the number part. This is not part of the globalization structure. - - - This value is initially set based on the maximum value of the - Currency data type. - - - - - The maximum number of digits for the decimal portion of the currency. - - - The US dollar requires 2 decimal points to accomodate the smallest - denomination and this property will have the value 2 in this case. If there - is a need to have a different value based on the locale, it will be - automatically changed based on the current locale. - - - - - - - - - - The decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the grouping of CurrencyDigits in the CurrencyTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the pattern to use when the value is positive. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - This property specifies the currency symbol to be used in the CurrencyTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - The number of digits for the number part. This is not part of the globalization structure. - - - This value is initially set based on the maximum value of the - Currency data type. - - - - - Gets or sets remove last decimal zeros. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - The Maximum Value that can be set through the CurrencyTextBox. - - - The default value is the MaxValue for . - - - - - The Minimum Value that can be set through the CurrencyTextBox. - - - - - Occurs when the property is changed. - - - - - The decimal value of the control. This will be formatted and - displayed. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - CurrencyTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Overloaded. Looks for bindable properties in each of the component objects - and create a new PD entry for it. It then creates a brand new PDC combining the PDs of - the originalList and the new entries and returns the new PDC. - - The originalList consists of the PDC of the parent control. - The lookupObjects list consists of the array of instances of the component classes. - A collection of property descriptors. - - - - Looks for bindable properties in each of the component objects - and create a new PD entry for it. It then creates a brand new PDC combining the PDs of - the originalList and the new entries and returns the new PDC. - - The originalList consists of the PDC of the parent control. - The lookupObjects list consists of the array of instances of the component classes. - A collection of property descriptors. - - - - Attribute used to specify the default child type for a parent type. - - - - A parent type designer, say TabControl for example, usually lets you add child types, - TabPage in this case, during design-time. However, when you create custom types deriving - from TabControl and TabPage, the designer needs to be informed about this change in "default child type" - for your derived parent type. This attribute lets you declare this relationship. - - - Some of our components like TabControlExt and XPTaskBar use this attribute to declare - their default child type. Their corresponding designers query this attribute before creating a new child instance. - This way, when you derive custom types for the above Controls, you - can specify the new default child type using this attribute on your parent type. - - - - - - Creates a new instance of the DefaultChildTypeAttribute specifying the child type. - - An Type instance. - - - - Returns the specified child Type. - - - - - This should be called during design time when a component has been moved, sized or re-parented, - but the change was not the result of a property change. All property - changes are monitored by the selection UI service, so this is automatic most - of the time. There are times, however, when a component may be moved without - property change notification occurring. Scrolling an auto scroll Win32 - form is an example of this. - This method simply re-queries all currently selected components for their - bounds and updates the selection handles for the ones that have changed. - - - - - Initializes the PersistenceModeAttribute type with the specified constant, using reflection, if the - System.Web.dll is loaded. - - - - - - A dummy PropertyDescriptor that could be used to add custom attributes dynamically. - - - - - Generic enumeration value filter class. - - - - - Enumeration values to be skipped. - - - - - Default enumeration value filter class. - - Skips value. - - - - Default values to be skipped. - - - - - EnumFlagsEditor implements a UITypeEditor for modifying a enum value that - has been marked with the FlagsAttribute. - - The editor lets you check and uncheck - individual flags in a dropdown CheckedListBox. A None button allows to reset all - flags at once. - - - - - - - - - - - If the static DesignerPersistance.IsPersisting property gets set, then deriving from this type will do the following: - It will return a custom property descriptor for the properties it contains that will return property values - after checking the ShouldSerializeXXX impl. This is useful while serializing web pages in the designer - as the - web designer doesn't check for ShouldSerializeXXX, by default. - - - - - Summary description for CurrencyCultureEditor. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Updates bounds of the instertion pointer - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Managed control - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Summary description for MaskedEditCultureEditor. - - - - - TypeConverter for MaskedEditDataGroupInfo. - - - - - Indicates whether this converter can convert an object to - the given destination type using the context. - - An ITypeDescriptorContext object that provides a format context. - A object that represents the type to which you want to convert. - True if conversion is possible; false otherwise. - - - - This member overrides . - - An ITypeDescriptorContext that provides a format context. - A CultureInfo object. If a null reference (Nothing in Visual Basic) is passed, the current culture is assumed. - The Object to convert. - The Type to convert the value parameter to. - Converted object. - - - - Returns the edit style from the current context. - - The context of the object the bindings provide values to. - - A value. - - - - - Edits the specified value using the specified provider - within the specified context. - - The context of the value. - The provider to use to provide values. - The object to be edited. - - - - Adds an event handler to listen to the disposed event on the component. - - - - - Initializes a new instance of the class. - - The collection of bindings to store. - - - - Adds an event handler to listen to the disposed event on the component. - - - - - Gets / sets the name for this object. - - - - - Gets / sets the collection of bindings. - - - - - Indicates whether to show all bindings. - - - - - Initializes a new instance of the class. - - A type descriptor context that can provide context information. - - - - Indicates whether the value of this property should be persisted. - - The component that owns the property to determine whether the value should be persisted. - - - if the property should be persisted; - otherwise. - - - - - Sets the specified value of the property on the specified component. - - - The component that owns the property whose value has to be set. - The value to set the property to. - - - - Resets the value of the property on the specified component. - - The component with this property that should be reset. - - - - Returns the current value of the property on the specified - component. - - The component from which to get the value of the property this descriptor describes. - - The value of the property on the specified component. - - - - - Returns an editor of the specified type. - - The type of editor to retrieve. - - An instance of the requested editor type, or if an - editor could not be found. - - - - - Indicates whether resetting the component will change the value of the - component. - - The component to determine if resetting will change the value of the property on. - - - if the component can be reset without changing the - value of the property; otherwise. - - - - - In a derived class, adds the attributes of the inherited class to the - specified list of attributes in the parent class. - - An that lists the attributes in the parent class. Initially, this will be empty. - - - - Returns the type of the property. - - - - - Indicates whether this property is read-only. - - - - - Returns the type of component this property is bound to. - - - - - Indicates whether the specified component should persist the value. - - The component to determine whether the value of should be persisted. - - - if the value should be persisted; - otherwise. - - - - - Sets the specified value for the specified component. - - The component to set the value for. - The value to set. - - - - Resets the value of the specified component. - - The component whose value is to be reset. - - - - Returns a value from the specified component. - - The component to retrieve a value from. - - The value of the specified component. - - - - - Indicates whether the specified component can reset the value - of the property. - - The component to test whether it can change the value of the property. - - - if the value can be reset; - otherwise. - - - - - Returns the type of the property. - - - - - Indicates whether the property is read-only. - - - - - Returns the type converter. - - - - - Returns the type of the component that owns the property. - - - - - Provides predefined switches for enabling / disabling trace - output or code instrumentation in the Syncfusion shared library. - - - - General switch for Shared Library. - - - Enable Tracing for the Styles. - - - Enable Tracing for the Shared Serialization. - - - Enable Tracing for the ScrollControl. - - - Enable Tracing for Timer Start and Stop - - - Enable Tracing for Timer Start and Stop. - - - Enable Tracing for BeginUpdate and EndUpdate methods calls - - - Enable Tracing for MouseController. - - - Enable Tracing for OperationFeedback. - - - Enable Tracing for BrushPaint drawing methods. - - - Enable Tracing for ArrowButtonBar events. - - - Enable Tracing for ButtonBar events. - - - Enable Tracing for RecordNavigationBar events. - - - Enable Tracing for RecordNavigationControl events. - - - Enable Tracing for SplitterControl events. - - - Enable Tracing for TabBar events. - - - Enable Tracing for TabBarSplitterControl events. - - - Enable Tracing for MouseControllerDispatcher events. - - - Enable Tracing for ScrollControl events. - - - Enable Tracing for Focus events. - - - - Returns the General Tracing level for the Grid Library. - - - - - Provides various diagnostic utilities for tracing methods, exception and more. - - - - - - - - - - - Writes a trace log for the given exception together with information where the exception was caught. - - An Exception. - - - - Indicates whether a given procedure is being called by another procedure. - - The method to be looked up in the stack trace. - True if method was found; false otherwise. - - - if (TraceUtil.IsCalledFrom(typeof(Form1).GetMethod("Form1_Load", BindingFlags.NonPublic|BindingFlags.Instance))) - Debugger.Break() - - - - - - Writes a trace log of the current stack. - - - Writes a trace log of the current stack. - - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments if the condition is true. - - Indicates whether to skip or write the log. - An array of method arguments. - The number of levels to check in call stack. - The following method shows typical usage of this diagnostic method. - - private void OnTimerElapsed(object source, ElapsedEventArgs e) - { - TraceUtil.TraceCalledFromIf(Switches.Timers.TraceVerbose, 3); - } - - - - - - Writes a trace log of the current stack. - - The number of method on the stack to trace. - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments. - - An array of method arguments. - - - - Writes a trace log with information about current class and method name and - string representations of any method arguments if the condition is true. - - Indicates whether to skip or write the log. - An array of method arguments. - The following method shows typical usage of this diagnostic method. - - private void OnTimerElapsed(object source, ElapsedEventArgs e) - { - TraceUtil.TraceCurrentMethodInfoIf(Switches.Timers.TraceVerbose); - } - - - - - - Provides a diagnostic utility for measuring performance. - - The following example display a message box with performance info. - - private void button1_Click(object sender, System.EventArgs e) - { - int rows = (int) this.numericUpDown1.Value; - - this.gridControl1.theData = new VirtGrid.VirtData(rows, 20); - this.gridControl1.Refresh(); - - using (Syncfusion.Diagnostics.MeasureTime.Measure("gridControl1.TopRowIndex = 500000")) - { - this.gridControl1.TopRowIndex = 5000000; - } - - MessageBox.Show(Syncfusion.Diagnostics.MeasureTime.DumpTimes()); - } - - - - - - Insert this before a code block that should be measured. - - - - - Ends the code block that should be measured and increments the associated performance counter. - - - - - Prints all performance counters into a string and sorts it by ids. All counters will be reset afterwards. - - - - - Returns the time since Reset in microseconds. - - - - - Provides support for capturing an ActiveX or Windows Forms control to a bitmap. - - - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - The ActiveX control. - The bitmap with the display contents of the ActiveX control. - - The control must have an implementation of the IViewObject interface. - - - - - Captures the contents of an ActiveX control to a bitmap using the IViewObject interface. - - The ActiveX control. - Indicates whether IViewObject2 interface should be used if available. - The bitmap with the display contents of the ActiveX control. - - - - - Captures the contents of a Windows Forms control using the WM_PRINT message. - - The control to be captured. - The bitmap with the display contents of the Windows Forms control. - - - - Captures the contents of a Windows Forms control using the WM_PRINTCLIENT message. - - The control to be captured. - The bitmap with the display contents of the Windows Forms control. - - - - Captures the contents of a Windows Forms control using the WM_PRINTCLIENT or WM_PRINT message. - - The control to be captured. - WM_PRINT or WM_PRINTCLIENT. - Flags used for the WM_PRINT message. - The size of the window. - The bitmap with the display contents of the Windows Forms control. - - - - Temporarily resizes the control without updating the screen. Call - to switch the control back to regular behavior. - - The target control. - The new size. - The saved bounds of the control. - - - - Ends temporary resizing of a control after you called . - - The target control. - The saved bounds of the control. - - - - Sends a WM_LBUTTONDOWN and WM_LBUTTONUP message to the control at the specified client coordinates. - - The target control. - The client coordinates where to simulate the click. - - - - Indicates whether there are issues with WM_PRINT and it is not properly supported by the framework. - The property is available to provide a workaround for issues with GenericControlCell and early Whidbey builds. Default is false. - - - - - if (Environment.Version.Major >= 2) - ActiveXSnapshot.ForceWmPaintInPrintWindow = true; - - - - - - - Utility class comes handy when you need to perform simple - animations in your control. - - - The method in this class allows you to specify the - number of animation positions (0 to N), the direction of animation - (whether animation is from 0 towards N or from N towards 0), and - the speed (X) at which animation is performed. - - When the method is called, the current animation position - is set ( property) which gets reduced (or - incremented based on the direction of animation) every X time - interval specified in the method call, until it reaches - the other extreme of the Animation position range. Every time - the value changes, an event - is thrown. Upon reaching the last animation position, an - event is thrown. - - - - - - Creates an instance of the AnimationHelper class. - - - - - Indicates whether more animation positions are to be drawn to complete this animation. - - True indicates there is more to come; False otherwise. - - - - Defines the animation range: 0 to maxPosition; specifies the - direction of animation: 0 to maxPositon or maxPosition to 0; - specifies the interval at which animation should be performed: interval, - and starts animation. - - The integer value indicating - the max position of animation. - The direction of animation. - The frequency at which animation is performed. - - This class uses a to trigger - the event, which means events will - be thrown within the same thread as this method call. - - - - - Allows you to stop animation abruptly (if it is currently on). - This will then throw the event. - - - - - Triggers to force drawing next animation position. - - - You can optionally use this method to force animation not waiting for the timer to break. - - - - - Returns the maximum animation position specified in the - method. - - - An integer value indicating the maximum animation position. - - - - - Returns the current animation position once animation is started. - - An integer value some where in between (including) - 0 and . - - - - Indicates whether Animation is on. - - True indicates Animation is on; False otherwise. - - - - - Indicates in which direction animation is performed. - - True indicates animation is towards ; - False indicates animation is towards zero. - - - - Will be thrown as the property changes - during animation. - - - After calling , you should listen to this event to - repaint your control for each new animation position. - - - - - This will be called when animation is complete or when - is called. - - - - - Holds information on how to fill the background of a window or grid cell. - - - BrushInfo lets you specify a solid backcolor, gradient or pattern style with both - back and forecolor. - - This information can be persisted with serialization. - - You can also convert the information to a string and recreate it from a string. - - BrushInfo is immutable (just like ). You cannot change its values. - Instead you have to create a new BrushInfo object. - - BrushInfo can also be persisted into code when used as a property in a component designer. - - shows how to fill a rectangle using - information. - - - - - Overloaded. Initializes a new empty instance of BrushInfo. - - - - - Initializes a new instance of BrushInfo with the specified solid backcolor. - - A used as solid background. - - - - Initializes a new instance of BrushInfo with a solid backcolor and forecolor. - - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - A used for the pattern. - A used for the pattern. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with a gradient style and gradient fill colors. - - A . - A used for the gradient fill. - A used for the gradient fill. - - - - Initializes a new instance of BrushInfo with a gradient style and gradient fill colors. - - A . - List of gradient fill colors. - - - - Initializes a new instance of BrushInfo with a hatch style and pattern colors. - - A . - List of colors. - - - - Initializes a new instance of BrushInfo with any BrushStyle. Internal only. - - - - - Initializes a new instance of BrushInfo with a new alpha-blend value and copies other information from a given BrushInfo. - - The alpha value that should be applied to the forecolor and backcolor of the new brush. - A BrushInfo that holds information for this BrushInfo. - - - - Initializes a new instance of BrushInfo and copies its information from a given BrushInfo. - - A BrushInfo that holds information for this BrushInfo. - - - - Creates a new BrushInfo object and initializes it from a string. - - A string in the format BrushStyle;Style;ForeColor;BackColor. - A new BrushInfo object. - - - - Overloaded. Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - Specifies the format for string. NULL for default, "compact" for a compact string, "G" for more descriptive text. - - - - - Returns the string representation of the brush in the format BrushStyle;Style;ForeColor;BackColor. - - Specifies the format for string. NULL for default, "compact", for a compact string or "G" for more descriptive text. - - The IFormatProvider to use to format the value. - -or- - A reference to obtain the numeric format information from the current locale setting - of the operating system. - - - - - - Overridden. Compares two BrushInfo object and indicates whether they are equal. - - The to compare with the current . - True if the specified Object is equal to the current ; false otherwise. - - - - - - - - Creates a new object that is a copy of the current instance. - - A new object that is a copy of this instance. - - - - Creates a new BrushInfo with the same style but with only black and white colors. - - A new object with the same style and black and white colors. - - - - Returns a string id that you can use to store the BrushInfo in a HashTable. - - A string with compact identitiy information about the BrushInfo. - - - - Serializes the contents of this object into an XML stream. - - Represents the XML stream. - - - - Not implemented and returns NULL. - - - - - - Deserializes the contents of this object from an XML stream. - - Represents the XML stream. - - - - An empty BrushInfo. - - - - - Returns a string description of the BrushInfo. See . - - - - - Indicates whether this is an empty object. - - - - - Returns the backcolor. - - - - - Returns the forecolor. - - - - - Returns the gradient colors. - - A reference to the instance. -

This color list will be used to specify the - or the depending on the - selected.

-

The first entry in this list will be the same as the property and - the last entry (not the 2nd) will be the same as the property.

-

- Note that this list is Read-only. -

-
-
- - - Returns the pattern style. - - - - - Returns the gradient style. - - - - - Returns the brush style (solid, gradient or pattern). - - - - - A list of colors returned by the property - in the type. - - - When returned by the property, this list will - be made Read-only. - - - - - Overloaded. Creates a new instance of this class. - - - - - Creates a new instance of this class with some colors. - - An array of colors. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Returns the color at the specified index. - - - - - Provides a way to convert to a string and from a string. - - - - - - - - - - - - - - - - - - - - - - - Paints window background using information. - - - - - Overloaded. Fills the interior of a rectangle using information. - - A context. - structure that represents the rectangle to fill. - object that determines the characteristics of the fill. - - - - Fills the interior of a rectangle using information. - - A context. - Structure that represents the rectangle to fill. - Object that determines the characteristics of the fill. - - - - Fills the interior of a rectangle with a gradient. - - A context. - Structure that represents the rectangle to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a rectangle with a gradient. - - A context - Structure that represents the rectangle to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a rectangle with a pattern. - - A context - Structure that represents the rectangle to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a rectangle with a pattern. - - A context - Structure that represents the rectangle to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a rectangle with a solid color. - - A context. - Structure that represents the rectangle to fill. - A . - - - - Fills the interior of a rectangle with a solid color. - - A context. - Structure that represents the rectangle to fill. - A . - - - - Overloaded. Fills the interior of a region using information. - - A context. - Structure that represents the region to fill. - object that determines the characteristics of the fill. - - - - Fills the interior of a region with a gradient. - - A context. - Structure that represents the region to fill. - . - A used for the gradient fill. - A used for the gradient fill. - - - - Fills the interior of a region with a gradient. - - A context. - structure that represents the region to fill. - . - An array of used for the gradient fill. - - - - Fills the interior of a region with a pattern. - - A context. - Structure that represents the region to fill. - . - A used for the pattern fill. - A used for the pattern fill. - - - - Fills the interior of a region with a solid color. - - A context. - Structure that represents the region to fill. - A . - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the BrushStyle used by . - - - - - The is an empty object. - - - - - The represents a solid fill. - - - - - The represents a pattern fill. - - - - - The represents a gradient fill. - - - - - Conversion methods for a to and from a string. - - - - - ColorFromString parses a string previously generated with ColorToString and returns a color. - - String generated with ColorToString. - - Color value that was encoded in parseStr. - - - - - - ColorToString creates a string from a color. All information such as - knownColor and name in the color structure will be preserved. - - - - - A string that can be passed as parameter to ColorFromString. - - - - - - HSL color space. - - - - - - - - - - - - - - - - - - - Method converts Color defined in RGB values to HSL color space. - - Hue value. - Saturation value. - Luminance value. - - - - - - - - - - - - - Method converts Color defined in HSL values to RGB color space. - - Hue value. - Saturation value. - Luminance value. - - - - - Hue component of a color space. - - - - - Saturation component of a color space. - - - - - Luminance component of a color space. - - - - - Gets or sets hue component of a color space. - - - - - Gets or sets saturation component of a color space. - - - - - Gets or sets luminance component of a color space. - - - - - HSV color space. - - - - - - - - - - - - - - - - - - - Method converts Color defined in RGB values to HSL color space. - - Hue value. - Saturation value. - Luminance value. - - - - - - - - - - - - - Method converts Color defined in HSV values to RGB color space. - - - - - - Hue component of a color space. - - - - - Saturation component of a color space. - - - - - Value component of a color space. - - - - - Gets or sets hue component of a color space. - - - - - Gets or sets saturation component of a color space. - - - - - Gets or sets value component of a color space. - - - - - - - - Inflate offset for drawing selection rectangle. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Methods recalculate top left and right bottom points - using Graphics matrix settings. This method required when we will - draw on Graphics created from HDC that does not have applied transformations. - Very useful when used ControlPaint class for drawing. - reference on Graphics - rectangle to recalculate. - Transformed rectangle. - Methods will work fine only in limited cases. If on graphics applied - rotations then in most cases will be wrong calculated rectangle. - - Rectangle rcBorders = ControlDrawing.Transform( g, this.Bounds ); - ControlDrawing.DrawBorderInternal( g, rcBorders, this.BorderStyle, this.Border3DStyle, this.BorderSingle, this.BorderColor, this.BorderSides ); - - - - Methods recalculate point using Graphics matrix settings. - This method required when we will draw on Graphics created from HDC - that does not have applied transformations. Very useful when used - ControlPaint class for drawing. - reference on Graphics - Point to recalculate. - Transformed point. - - - - Method allow to draw borders according to specified styles. - - Reference on Graphics. - Output rectangle. - border style. - 3D border style. - border style in single mode. - border color in single mode. - sides that have to be drawn by methods. - True - fix known bug in method, otherwise leave - old code (for compatibility only). - - - - Returns the width required to draw the text specified using the font specified. - - A object. - The text that is to be drawn. - The using which to draw. - True - we use RTL, otherwise normal drawing. - Width required. - - - Measure string with limit by width. - - - - - -1 - apply single line mode for measuring, values greater zero - enables multiline measuring mode. - - - - - - - - - - - - Implement this method and draw your NonClient area using the passed in parameters. - - The PaintEventArgs using this to draw the non client area. - The control's window bounds into which to draw. Left and Top are usually zero. - The control's bounds in screen co-ordinates. - - HRgn (as IntPtr) that excludes the region you just drew in the displayRect. - - - - - - - - - - - - - Call this method to help you prepare for non client painting. This method will in turn - call your INonClientPaintingSupport.NonClientPaint implementation. - - The control in which we will be drawing. - The INonClientPaintingSupport implementation to which we will delegate the final non client drawing. - The WM_NCPAINT message. - - - - - - - - - - - - - - - - - Paints a rectangular area with the given colors in Office2007 style. - - A object. - A object that represents the drawing area. - The border color. - The top gradient start color. - The top gradient end color. - The bottom gradient start color. - The bottom gradient end color. - The bottom line color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Adjusts the specified forecolor's brightness based on the specified backcolor and preferred contrast. - - The forecolor to adjust. - The backcolor for reference. - Preferred contrast level. - - This method checks if the current contrast in brightness between the 2 colors is - less than the specified contrast level. If so, it brightens or darkens the forecolor appropriately. - - - - - Draws an image using the ImageList, taking into account the Graphics.ClipBounds. - - The Graphics object into which to draw. - The ImageList containing the image. - The index of the image. - The rectangle into which to draw. - - This method will use ImageList_DrawEx to draw the image (to use the transparency info in the embedded images). - We use the PInvoke rather than ImageList.Draw because, the Draw method - uses the PaintEventArgs.ClipRectangle rather than g.ClipBounds (both - can be different) and here we force the ClipBounds on the DC. -

- Also, you do not have to use this method if your images will never be - drawn clipped (in that case just use ImageList.Draw). -

-
- - - Draws specified image to graphics context. - If image size is less than maxWidth, maxHeight parameters, it will be drawn - without any changes, otherwise - it will be scaled proportionally to those values. - - Graphics context. - Image object which must be drawing. - X coordinate of the destination location. - Y coordinate of the destination location. - Maximum width of the image. - Maximum height of the image. - - - - Converts the HSB value to RGB. - - Hue. - Saturation. - Brightness. - Red. - Green. - Blue. - - This does not seem to yield accurate results, but very close. - - - - - Enumeration of Panose Font Family Types. These can be used for - determining the similarity of two fonts or for detecting non-character - fonts like WingDings. - - - - - Any - - - - - No Fit - - - - - Text and Display - - - - - Script - - - - - Decorative - - - - - Pictorial - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the for the specified font. - - A graphics object to use when detecting the Panose - family. - The font to check. - The Panose font family type. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / sets the ImageList to wrap around. - - - - - Gets/ sets the base directory from which the images will be added. - - - This helps to maintain a relative path in the SourceFiles list. - - - - - Returns the source of the images in the underlying ImageList. - - - - - - - - - - Initializes a new instance of the class. - The type of the collection to edit. - - - Creates an instance of the specified type in the collection. - The type of the image to insert in the collection. - - - - - - - - - - - Apply functionality to choose alpha-blended icon and correctly change it to bitmap. - - - - - Stores info about drawing icons. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Utility class for mirroring graphics output if needed. - - - - - - Value of advanced graphics state. - - - - - Mode of transformation matrix multiplication. - - - - - Graphics object for target context. - - - - - Temporary virtual Graphics object. - - - - - Temporary bitmap object. - - - - - Target rectangle. - - - - - Rectangle of virtual temporary area. - - - - - Target graphics path. - - - - - Indicates whether image must be mirrored. - - - - - Indicates whether OS supports needed API functions. - - - - - Holds old value of source graphics mode. - - - - - Holds old value of source graphics transformation. - - - - - Handle wrapper of graphics object. - - - - - Handle of graphics object. - - - - - Private constructor. - - - - - Overloaded. Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source graphics path object. - If True mirror output; False otherwise. - - - - Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - - - - Overloaded ctor.. as a workaround for Themed Mirrored rendering issue. - - Creates a new mirror object for drawing mirrored images. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - False as a workaround when drawing themed mirrored graphics. - - - - Disposes all resources, but first paints all data - from the buffer to source device context. - - - - - Initializes an object. - - Source graphics object. - Source rectangle structure. - If True mirror output; False otherwise. - - - - Checks OS Version for API functions support. - Need NT 3.1 or later. - - True if current OS is NT 3.1 or later; False otherwise. - - - - Transforms graphics. - - - - - Restores graphics to its previous state. - - - - - Flushes all drawing data to destination if needed. - - - - - Returns virtual graphics context object. - - - - - Returns virtual rectangle. - - - - - Returns virtual Graphics path object. - - - - - Indicates whether additional bitmap is needed. - - - - - Class does 2D ratio and offset tranformation for object using property. - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - - - - - - - Class does 2D mirroring for X axis for . - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - Class does 2D mirroring for Y axis for . - - Transform is done in constructor and reverted in Dispose() method. - - - Supposed to be used with keyword. - - - - - - - - - - - - - - - - Specifies the Gradient style used by the . - - - - - None. - - - - - ForwardDiagonal Gradient. - - - - - BackwardDiagonal Gradient. - - - - - Horizontal Gradient. - - - - - Vertical Gradient. - - - - - PathRectangle Gradient. - - - - - PathEllipse Gradient. - - - - - Provides a for the enumeration. - - - - - - - - - - - Provides data for the event of - a instance. - - - The event lets you apply custom settings for the Graphics object, before - other routines draw to the object. - - - - - - - - Initializes a new empty . - - - Initializes a new with a object. - - The graphics object. - - - - Initializes a new empty . - - - - - Returns the window graphics object. - - - - - Represents a method that handles a event of - a instance. - - - - - Implements an interface that returns a graphics context when needed and raises a - event to initialize the graphics object. - - - - - Creates and returns a cached graphics object. - - - - - Called after a new object was created and gives the handler - a chance to initialize the graphics context. - - - - - Returns a graphics context when needed and raises a - event to initialize the graphics object. - - - - - Initializes a new empty . - - - Initializes a new with a object. - - The Graphics object that will be used. - The event will not be fired when this type - is instantiated via this constructor. - - - - Initializes a new with a object. - - The control that will be used for creating the graphics object. - - - - Initializes a new empty . - - - - - - - - Raises the event. - - A that contains the event data. - - - - Called after a new object was created and gives the handler - a chance to initialize the graphics context. - - - - - Creates and returns a cached graphics object. - - - - - - - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets the image collection - - - - - Class for Custom Button - - - - - Gets/Sets if this is Custom Buttons - - - - - Class for MessageBoxMetroStyleFormAdv - - - - - Normal font weight - - - - - - - - - - To Reset the CaptionBarBrush - - - - - Indicates whether to serialize CaptionBarBrush - - - - - Hover Color for CaptionButton - - - - - Gets/Sets touch enabled - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Reset the value of the ShowMaximizeBox - - - - - Serializing the value of the ShowMaximizeBox - - - - - - Serializing the value of the ShowMinimizeBox - - - - - - Reset the value of the ShowMinimizeBox - - - - - Reset the value of the ShowMinimizeBox - - - - - applies the scaling - - - - - - applies the scaling - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Style of CaptionBar is updated while detaching the MetroForm from TabbedMDIManager. - - - - - Helps to update the Bounds - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Disabling the controlbox highlights - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if MetroScheme back color is used. - - - - - Occurs when property is changed. - - - - - variable to check whether the mouse is moved over the caption image - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - CaptionText Color - - - - - location for label in caption - - - - - CaptionImage Collection - - - - - LabelCollection - - - - - BorderColor to highlights the ControlBox - - - - - Value for show/hide the highlights - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets/sets if to disable Office2007 look and feel. - - - - - Gets or Sets Mouse over color for CaptionButtons - - - - - Gets or Sets the value for CaptionBarColor BorderColor MetroColor - - - - - Gets or Sets the value for CaptionBarColor - - - - - Gets/Sets the value for CaptionVerticalAlignment - - - - - Gets or Sets the value for CaptionBarColor BorderColor - - - - - Gets/Sets the value for CaptionButtonColor - - - - - Gets/Sets the value for CaptionButtonHoverColor - - - - - Gets or Sets value for CaptionBarHeight - - - - - Gets/Sets touch enabled - - - - - Gets or Set the valur for BorderThickness - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2007Visual style is enabled. - - - If DisableOffice2007Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - - - - - - - - - - - - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets or Set Value to Drop Shadow to the form - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets / set the value to enable the MaximizeBox - - - - - Gets / set the value to enable the MinimizeBox - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies whether current selected Office2007 scheme background color is used to fill form's backround is used. - If false is used. - - - - - - - - - - - - - - - - - - - - Gets/Sets the label for form caption - - - - - Gets/Sets the CaptionImage for form caption - - - - - This Event will be triggered, when CaptionBar is painted and it is used to customize the CaptionBar. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Lock Window update function - - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for buttons panel - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - Constructor for MessageBoxMetroStyleFormAdv - - - - - Constructor for MessageBoxMetroStyleFormAdv - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - - - - - Initialize image which is used in MessageBoxAdv - - - - - - - Icon Initialization - - Icon - - - - Initialize the TextAlign - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Method to get the button - - - - - - - Sets the padding for the buttons - - - - - - - Returns the client size - - - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - - - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Enumeration for system defined strings - - - - - Class for Office2010StyleMessageBoxAdv - - - Class for Office2010StyleMessageBoxAdv. - - - - - Normal font weight - - - - - constructor for Office2010form with empty arguments - - - - - Variable to Gets or Set Value to Drop Shadow to the form. - - - - - Reset the value of the DropShadow - - - - - Serializing the value of the DropShadow - - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Gets/Sets touch enabled - - - - - applies the scaling - - - - - - applies the scaling - - - - - - Gets the closebox - - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To customize the image size - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if Office2010Scheme back color is used. - - - - - Occurs when property is changed. - - - - - Determines whether CaptionBarHeight has been modified. - - True if CaptionBarHeight is changed; False otherwise. - - - - Resets the CaptionBarHeight back to its default value. - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Holds the value for Caption Height - - - - - CaptionText Color - - - - - Gets or Sets whether to enable Drop Shadow to the Office2010form - - - - - Gets the CreateParams for the Office2007 form. - - - - - Gets/sets if to disable Office2010 look and feel. - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2010Visual style is enabled. - - - If DisableOffice2010Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - Gets or Sets the AutoScroll value - - - - - Gets or sets the Office2010 colorscheme - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or Sets the CaptionBar Height. - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets the colortable for Office2010 - - - - - Gets the value for IsActive - - - - - Gets whether right to left has been set - - - - - Gets or Sets the Selected button - - - - - Gets or Sets the pressed button - - - - - Gets or Sets the highlighted button - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - Gets the Maximize button - - - - - Gets the Minimize button - - - - - Gets the layout - - - - - Gets the caption height value - - - - - Gets/Sets touch enabled - - - - - Gets the value of title height - - - - - Gets whether the form is minimized - - - - - Gets whether the form is maximized - - - - - Gets whether the form is sizable - - - - - - Gets the screen rectangle - - - - - Gets the area to be painted - - - - - Gets the value of Isvisible property - - - - - Specifies whether current selected Office2010 scheme background color is used to fill form's backround is used. - If false is used. - - - - - Gets the caption font - - - - - Gets the system font - - - - - Gets the closebox value - - - - - DPI Scaling - - - - - Defines whether the DPI setting is enabled. - - - - - Defines the dpi scaling - - - - - To retrieve DPI Value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2010Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2010Form instance. - - - - - - - - - - - - - - - DeviceCap - - - - - - - - - - - - - - - - - - - - - Constructor for CaptionManager - - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Lock Window update function - - - - - Holds the Button height - - - - - String variable for details text - - - - - Variable for no ButtonAdv - - - - - Variable for no ButtonAdv - - - - - - Custom Button Collection - - - - - Variable for content panel - - - - - Variable for buttons panel - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for PictureBox - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2010StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2010StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Custom Button Size initialization - - - - - Returns the Button width - - - - - - Initialization of button names - - - - - Button Initialization - - - - - Returns the button for the dialog - - Return value of a dialog box. - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Width of the Button - - - - Icon Initialization - - Icon - - - - Initialize the TextAlign - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - Width of the Button - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Enumeration for system defined strings - - - - - Class for ButtonAdv with Border customization - - - - - Constructor - - - - - Variable to define whether this is Custom Button - - - - - Instance to hold the BorderColor - - - - - Paint Overrides - - - - - - Gets/Sets whether this is Custom Button - - - - - Gets/Sets option to customize the BorderColor - - - - - Class for Office2013StyleMessageBoxAdv - - - Class for Office2013StyleMessageBoxAdv. - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2010StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2013StyleMessageBoxAdv class - - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - CustomButtons Mouse Down - - - - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - Returns value of the Dialog Box - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Size of the Image - - - - Icon Initialization - - Icon - - - - CustomButtons Mouse Down - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Initializes the s_office2013theme variable. - - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - True if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Initializes the bordercolor variable. - - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Gets or sets the Office2013 color theme. - - - - - Enumeration for system defined strings - - - - - Class for Office2016StyleMessageBoxAdv. - - - Class for Office2013StyleMessageBoxAdv. - - - - - Gets the horizontal padding - - - - - Gets the vertical padding - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv class. - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv class. - - - - - Initializes the new instance for Office2016StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Initializes the new instance for Office2013StyleMessageBoxAdv. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - - - - Holds the Button height - - - - - - - Custom Button Collection - - - - - Defines the CustomButton ForeColor - - - - - Defines the CustomButton BackColor - - - - - Variable for ok ButtonAdv - - - - - Variable for cancel ButtonAdv - - - - - Variable for yes ButtonAdv - - - - - Variable for ignore ButtonAdv - - - - - Variable for retry ButtonAdv - - - - - Variable for abort ButtonAdv - - - - - Variable for no ButtonAdv - - - - - Variable for Label - - - - - Gets MessageBoxButtons - - - - - Gets Custom MessageBox Buttons - - - - - Gets MessageBoxIcon - - - - - Gets MessageBoxDefaultButton - - - - - Gets MessageBoxOptions - - - - - Variable for owner - - - - - Variable for CancelEventHandler - - - - - Static variable for buttons - - - - - Static variable for s_buttonNames - - - - - Static variable for System defined strings - - - - - CustomButtons Mouse Down - - - - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Initialization of button names - - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Button Initialization - - - - - Returns the button for the dialog - - Returns value of the Dialog Box - - - - Initialize image which is used in MessageBoxAdv - - Image which is used in MessageBoxAdv - Size of the Image - - - - Icon Initialization - - Icon - - - - CustomButtons Mouse Down - - - - - Custom Button Size initialization - - - - - Size initialization - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Method to get the button - - Specifies identifiers to indicate the return value of a dialog box. - ButtonAdv - - - - Sets the padding for the Button - - Size of the Button - Width of the Button - - - - Returns the client size - - Size of the Text - Size - - - - Returns the Button width - - - - - - Returns the Button width - - - - - - Returns the system defined strings - - Specifies identifiers to indicate the return value of a dialog box. - String value - - - - Raises the event. - - An that contains the event data. - - - - Method to set the cursor position - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Initializes the s_office2016theme variable. - - - - - This will be called in a "pure .net app". - - Implements a Windows message. - true to filter the message and stop it from being dispatched; false to allow - the message to continue to the next filter or control. - - - - Required designer variable. - - - - - Clean up any resources being used. - - True if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Initializes the bordercolor variable. - - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the mouse pointer is over the control and a mouse button is pressed. - - Object sender - MouseEventArgs which contains Event Data - - - - Occurs when the control is redrawn. - - Object sender - PaintEventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer leaves the control. - - sender object - EventArgs which contains EventData - - - - Occurs when the mouse pointer enters the control. - - sender object - EventArgs which contains EventData - - - - Gets or sets whether the image is showing - - - - - Gets the button operations - - - - - Gets or sets the Office2016 color theme. - - - - - Enumeration for system defined strings - - - - - Advanced caption image for Metro form - - - - - location for CaptionImage - - - - - image for CaptionImage - - - - - size for CaptionImage - - - - - backcolor for CaptionImage - - - - - Font for CaptionImage - - - - - forecolor for CaptionImage - - - - - Constructor for FormCaptionImage - - - - - - - - - - - Mouse move event for CaptionImage - - - - - Mouse leave event for CaptionImage - - - - - Mouse enter event for CaptionImage - - - - - Mouse down event for CaptionImage - - - - - Mouse up event for CaptionImage - - - - - Gets/Sets the value for forecolor - - - - - Indicates whether the current value of the backcolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the forecolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the Size property is to be serialized. - - - - - Resets the Size. - - - - - Indicates whether the current value of the image property is to be serialized. - - - - - Resets the image. - - - - - Indicates whether the current value of the location property is to be serialized. - - - - - Resets the location. - - - - - Mouse move event for CaptionImage - - - - - Mouse leave event for CaptionImage - - - - - Mouse enter event for CaptionImage - - - - - Mouse down delegate for CaptionImage - - - - - Mouse up delegate for CaptionImage - - - - - Gets/sets the value for location - - - - - Gets/Sets the value for Image - - - - - Gets/Sets the value for CaptionImage size - - - - - Gets/Sets the value for backcolor - - - - - Gets or Sets the instance name - - - - - Mouse move delegate for CaptionImage - - - - - Mouse leave delegate for CaptionImage - - - - - Mouse enter delegate for CaptionImage - - - - - Mouse down delegate for CaptionImage - - - - - - Mouse up delegate for CaptionImage - - - - - - Collection of Images used in the Form Caption - - - - - Constructor for CaptionImageCollection - - - - - Returns whether the list contains the CaptionImage type - - - - - Adds the CaptionImage type to the list - - - - - Removes the CaptionImage type from the list - - - - - Inserts the CaptionImage type into the list - - - - - Returns the index of the CaptionImage type - - - - - searches the name in the list - - - - - Overrides the oninsert method - - - - - Gets the unique name - - - - - Gets the index of for the CaptionImage - - - - - Mouse Move events for caption image - - - - - Constructor for ImageMouseLeaveEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Constructor for ImageMouseEnterEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Constructor for ImageMouseMoveEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Mouse Up events for caption image - - - - - Constructor for ImageMouseUpEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Font for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Mouse Down events for caption image - - - - - Constructor for ImageMouseDownEventArgs - - Owner for the events - Image for caption image - BackColor for caption image - Location for caption image - Size of the caption image - ForeColor for caption image - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - Image for caption image - - - - - ForeColor for caption image - - - - - Size of the caption image - - - - - BackColor for caption image - - - - - Location for the caption image - - - - - Gets/Sets the value for Image - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Location - - - - - Advanced caption label for Metro form - - - - - value for label text - - - - - value for label location - - - - - value for label size - - - - - value for label backcolor - - - - - value for label font - - - - - value for label forecolor - - - - - constructor for CaptionLabel - - - - - constructor for CaptionLabel - label - - - - - Mouse move event invoking - - - - - Mouse enter event invoking - - - - - Mouse leave event invoking - - - - - Mouse down event invoking - - - - - Mouse up event invoking - - - - - - - - - - Specifies the owner of the label - - - - - Indicates whether the current value of the backcolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the forecolor property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the font property is to be serialized. - - - - - Resets the BackColor. - - - - - Indicates whether the current value of the Size property is to be serialized. - - - - - Resets the Size. - - - - - Indicates whether the current value of the location property is to be serialized. - - - - - Resets the location. - - - - - Indicates whether the current value of the text property is to be serialized. - - - - - Resets the Text. - - - - - Gets/Sets the value for Label text - - - - - Mouse move event for CaptionLabel - - - - - Mouse leave event for CaptionLabel - - - - - Mouse enter event for CaptionLabel - - - - - Mouse down event for CaptionLabel - - - - - Mouse up event for CaptionLabel - - - - - Gets/Sets the value for label location - - - - - Gets/Sets the value for label size - - - - - Gets/Sets the value for label backcolor - - - - - Gets/Sets the value for label font. - - - - - Gets or Sets the instance label name - - - - - Gets or Sets the Forecolor of the CaptionLabel. - - - - - Mouse move delegate for CaptionLabel - - - - - Mouse leave delegate for CaptionLabel - - - - - Mouse enter delegate for CaptionLabel - - - - - Mouse down delegate for CaptionLabel - - - - - Mouse up delegate for CaptionLabel - - - - - Collection of Labels used in the Form Caption - - - - - Constructor for CaptionLabelCollection - - - - - Returns whether the list contains the label type - - - - - Adds the label type to the list - - - - - Removes the label type from the list - - - - - Inserts the label type into the list - - - - - Returns the index of the label type - - - - - searches the name in the list - - - - - Overrides the oninsert method - - - - - Gets the unique name - - - - - Gets the index of for the label - - - - - Mouse Move events for caption label - - - - - Constructor for LabelMouseMoveEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Constructor for LabelMouseLeaveEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Constructor for LabelMouseEnterEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Mouse Up events for caption label - - - - - Constructor for LabelMouseUpEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Mouse Down events for caption label - - - - - Constructor for LabelMouseDownEventArgs - - Owner for the events - BackColor for caption label - Font for caption label - Text for caption label - Location for caption label - Size of the caption label - ForeColor for caption label - Mouse points in X-co ordinate - Mouse points in Y-co ordinate - - - - Owner for the events - - - - - ForeColor for caption label - - - - - Size of the caption label - - - - - BackColor for caption label - - - - - Font for caption label - - - - - Text for caption label - - - - - Location for the caption label - - - - - Gets/Sets the value for forecolor - - - - - Gets/Sets the value for size - - - - - Gets/Sets the value for backcolor - - - - - Gets/Sets the value for Font - - - - - Gets/Sets the value for Text - - - - - Gets/Sets the value for Location - - - - - Provides information about a control that can be used by an accessibility application. - - - - - MetroForm - - - - - Constructor - - The RibbonControlAdv instance. - - - - Gets the parent of an accessible object. - - An RibbonControlAdvAccessibility that represents the parent of an accessible object, or null if there is no parent object. - - - - Retrieves the object that has the focus. - - >An RibbonControlAdvAccessibility that specifies the currently focused child. - This method returns the calling object if the object itself is focused. Returns null if no object has focus. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Gets the state of this accessible object. - - - - - Gets the description of what the object does or how the object is used. - - The description of what the object does or how the object is used. - - - - Gets or sets the value of an accessible object. - - - - - Vertical Alignment - - - - - Top - - - - - Center - - - - - - - - - - Provides information about a control that can be used by an accessibility application. - - - - - Office2010Form - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the number of children in the accessible object. - - Number of Child. - - - - Retrieves the accessible child corresponding to the index. - - Index - Child specified to the index - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the ClockActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets the Progressbar style. - - The style. - - - - Gets or sets the Text style. - - The style. - - - - Gets or sets the Text style. - - The style. - - - - Gets or sets the Text orientation. - - The style. - - - - Interface to create an Office 2010 color table. - - - - - Color table for Office 2010 like scroll bars. - - - - - Constructor for Office2010 color table which is used to register the color style of each theme. - - - - - Used internally - - - - Get the Alpha blended color. - Source color - destination color - alpha color - returns the alpha blended color - - - - Retrieves color table according to style and scheme. - - Office2010 style. - Office2010 color scheme. - Color table. - - - - Registers color table within internal collection. - - Office2010 style. - Office2010 scheme. - Color table itself. - - - - Updates the styles of the scrollbars related to Office2010 colors. - - base color. - - - - Updates the Office2010 scrollbar color schemes. - - Custom scrollbar draw style. - Office2010 color scheme. - - - - Applies colors for managed scheme. - - Custom scrollbar draw style. - Base color for the managed theme. - - - - Applies scheme for managed theme. - - Container form. - Custom scrollbar draw style. - Office2010 color scheme. - - - - Applies managed colors - - base color . - - - - Called when is risen. - - base color for managed theme. - - - - Initialize scroll bar color fields. - - Scroll bar color references. - - - - Office 2010 color array. - - - - - Registered color tables. - - - - - Interface to create a Office2010 color table. - - returns office2010 color table - - - - Specifies the ScrollerGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ScrollerGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientSelectedBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientSelectedEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientPressedBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonGradientPressedEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderLight color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderSelectedDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderSelectedLight color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderPressedDark color of the Office2010 scroll bars - - - - - Specifies the ArrowButtonBorderPressedLight color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientNormalBegin color of the Office2010 scroll bars - - - - - Specifies the ArrowGradientNormalEnd color of the Office2010 scroll bars - - - - - Specifies the ThumbLinesGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ThumbLinesGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ThumbPressedBackgroundGradientBegin color of the Office2010 scroll bars - - - - - Specifies the ThumbPressedBackgroundGradientEnd color of the Office2010 scroll bars - - - - - Specifies the ScrollerBorderBegin color of the Office2010 scroll bars - - - - - Specifies the ScrollerBorderEnd color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripDark color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripLight color of the Office2010 scroll bars - - - - - Specifies the ScrollerGripBackGround color of the Office2010 scroll bars - - - - - Specifies the color of the Office2010 scroll bars - - - - - Color references for Office2010. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Constructor for color Table key. - - Custom scrollbar draw style. - Office2010 color scheme. - - - - Compare the color table keys through . - - Object of the ColorTableKey. - Returns 1 if color key is less. Otherwise returns 0. - - - - Compares the color table keys. - - A color table key. - returns true if passed one is less. Otherwise return false - - - - Provides attributes and methods for Office2010 blue color table. - - - - - Used internally - - - - - Interface to create an office2010 blue color table. - - returns office2010 blue color table. - - - - Provides attributes and methods for Office2010 Silver color table. - - - - - Used internally - - - - - Initialize scroll bar color fields for silver color. - - Scroll bar color references. - - - - Interface to create an office2010 Silver color table. - - returns office2010 silver color table - - - - Provides attributes and methods for Office2010 Black color table. - - - - - Used internally - - - - - Initialize scroll bar color fields for black color. - - Scroll bar color references. - - - - Interface to create an office2010 Black color table. - - returns Office2010 black color table - - - - The metro renderer for scrollbar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether scroll is vertical or horizontal - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether scrollBar is vertical or horizontal. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Right office arrow. - - - - - - Left office arrow. - - - - - - Down office arrow. - - - - - - Up office arrow. - - - - - - - - - - - - - - - - - - - - - - - - - Initializes a new instance of the class. - - The parent control - - - - Initializes a new instance of the class. - - The parent control. - The metro color table. - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - The graphics. - The bounds of background. - The scroll button state. - - - - Draws pushed background. - - The graphics. - The bounds of background. - - - - Draws scroll background. - - The graphics. - The scroll bounds. - - - - Draws scroll thumb. If theme is disabled than draw classic scroll. - - - - - - - - Draws scroll thumb background. - - The graphics. - The bounds of thumb. - The scroll button state. - - - - Method to calculate the center point to place the Thumb exactly at the center position inside the Scrollbar. - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - The graphics. - The bounds of arrow. - The scroll button type. - The scroll button state. - - - - Draws arrow background. - - The graphics. - The arrow backgroud bounds. - The scroll button type. - The scroll button state. - - - - Draws scrollbar arrow - - The graphics. - The bounds of the arrow. - The scroll button type. - The scroll button state. - - - - Returns the pushed or checked state right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the pushed or checked state up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal right arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal left arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal down arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Returns the normal up arrow. - - The width of the arrow. - The height of the arrow. - The bitmap. - - - - Indicates whether scrollBar style is EnableOffice2013Style - - - - - Metro color table. - - - - - Initializes a new instance of the class. - - - - - Gets or sets the scroll bar background color. - - - - - Gets or sets the normal state thumb color. - - - - - Gets or sets the checked state thumb color. - - - - - Gets or sets the pushed state thumb color. - - - - - Gets or sets the Thumb Normal Border color - - - - - Gets or sets the Thumb Checked Border color - - - - - Gets or sets the pushed state Thumb Pushed Border. - - - - - Gets or sets the pushed state Thumb Pushed Border. - - - - - Gets or sets the Arrow Normal Border color - - - - - Gets or sets the Arrow Checked Border color - - - - - Gets or sets the Arrow Pushed Border color - - - - - Gets or sets the inactive state thumb color. - - - - - Gets or sets the normal state arrow color. - - - - - Gets or sets the checked state arrow color. - - - - - Gets or sets the pushed state arrow color. - - - - - Gets or sets the normal state Arrow Background Color. - - - - - Gets or sets the pushed state Arrow Pushed Background color. - - - - - Gets or sets the inactive state arrow color. - - - - Provides renderer for Office2010 theme. - - - - Scroll Bar min thumb length for lines. - - - - - Scroll thumb line length. - - - - - Office2010 color table. - - - - - Blended background color. - - - - - Blended background black color. - - - - - Blended arrow button. - - - - - Blended selected arrow button. - - - - - Blended arrow button silver and black selected colors. - - - - - Blend for thumb background. - - - - - Bitmap for scroll images - - - - - Constructor for Office2010 renderers. - - - - - Initialize new instance of Office2010Renderer - - custom scrollbar. - Color Table. - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - graphics for arrow buttons. - Arrow bounds. - type of the scroll button. - Scroll button state. - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - graphics for arrow buttons background. - arrow button background bounds - Button state. - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - graphics for scroll thumb. - scroll thimb bounds. - Button state. - - - Draw scroll bar background. - graphics for scroll bar backgrounds. - scroll background bounds. - - - Draw pushed scroll background. - Graphics for pushed scroll background - Scroll bounds. - - - Draw scroll bar arrow background. - Graphics for Arrow background. - Arrow bounds. - type of the scroll button. - Button state. - - - Draw scroll thumb background. - Graphics for thumb background. - Scroll thumb bounds. - Button state. - - - Draw scroll arrow. - Graphics for scroll arrow. - Arrow bounds. - type of scroll button. - Button state. - - - Draw scroll lines - Graphics. - Scroll bounds. - true if the scroll bar is vertical scrollbar. - - - - Get the horizontal scroll background brush. - - ScrollBar width. - scroll begin color. - scroll bar end color. - Returns the gradient brush. - - - - Get the Vertical scroll background brush. - - ScrollBar height. - scroll begin color. - scroll bar end color. - Returns the gradient brush. - - - - gets the vertical scroll brush. - - bounds. - Gradient top color. - Gradient bottom color. - Returns the Linear gradient brush. - - - - gets the vertical scroll brush. - - top of the scroll bar rectangle - Height of the scroll bar rectangle - Gradient top color. - Gradient bottom color. - Returns the Linear gradient brush. - - - - gets the horizontal scroll brush. - - bounds. - Gradient top color. - Gradient bottom color. - the Linear gradient brush. - - - - gets the rounded polygon. - - Bounds. - Radius of the polygon. - the edge points. - - - Right office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Left office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Down office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Up office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Right Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Left Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Down Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Up Normal office arrow. - the bitmap. - Arrow width. - Arrow height. - - - Vertical thumb lines. - the bitmap of the scroll thumb. - - - Horizontal thumb lines. - the horizontal thumb lines' Bitmap. - - - - Enumeration for scroll bar fields. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - RadioButtonAdvActionList Class. - - - - - Initializes a new instance of the RadioButtonAdvActionList class. - - Represents component - - - - InitializeActionList method - - - - - Gets or sets thumb color. - - - - - Holds the option for the VisualTheme - - - - - Managed visual theme. - - - - - Office 2007 style blue theme. - - - - - Office 2007 style silver theme. - - - - - Office 2007 style black theme. - - - - - Office 2010 style blue theme. - - - - - Office 2010 style silver theme. - - - - - Office 2010 style black theme. - - - - - Metro theme. - - - - - Office 2016 style colorful theme. - - - - - Office 2016 style black theme. - - - - - Office 2016 style white theme. - - - - - Office 2016 style dark gray theme. - - - - - Contains a control. - - - - - Contains a component. - - - - - Get or Set the VisualTheme for the control. - - - - - - Constructor - - - - - - Set the VisualTheme for them for the parent control by Control and Visual Theme. - - - - - - - Set the VisualTheme for them for the parent control. - - - - - - - Iterations for the VisualTheme for the child control and components. - - - - - - - Iterations for the VisualTheme for the Components. - - - - - - - Get or Set the control to Change the skin. - - - - - - Helper class for handling corner radius of control region. - - - - - Initializes a new instance of the class. - - The owner control. - - - - Gets the graphics path for region border. - - - - - Updates and sets control's region. - - - - - Retrieves the minimal size of the owner control. - - Current minimal size. - - - - Gets or sets corner radius. - - Radius has to be not less than zero or half of minimum dimension (width or height) of control. - If radius is zero, region has rectangular appearance. - - - - - IconPaint is a helper class for drawing and caching bitmaps from a resource manifest with a given forecolor. - - - The bitmaps are loaded from the manifest and cached. The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with a - specified forecolor. - - - - - The bitmap cache. - - - - - The manifest to load from. The bitmaps should be saved in the Resources - tree in the Visual Studio project with the build action set to "Embedded Resource". - - - - - The assembly to load from. The bitmaps should be saved in the Resources - tree in Visual Studio project with the build action set to "Embedded Resource". - - - - - Initializes a new object with manifestPrefix and a reference to the assembly - to load bitmaps from. You should save this object in a static variable. - - The manifest to load from. The bitmaps should be saved in the Resources - tree in the Visual Studio project with the build action set to "Embedded Resource". - The assembly to load from. The bitmaps should be saved in the Resources - tree in Visual Studio project with the build action set to "Embedded Resource". - - - - Loads bitmap from manifest. - - The bitmap name. - Reference to bitmap; NULL if bitmap failed to load. - - - - Returns bitmap from cache or loads bitmap from manifest on first use. - - The bitmap name. - Reference to bitmap; NULL if bitmap failed to load. - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the specified bitmap substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixels to offset the bitmap from its origin point. - The bitmap to be drawn on the screen. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Loads the bitmap from the manifest and paints it substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixel to offset the bitmap from its origin point. - The name of the bitmap. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Specifies the pattern style used in - - - - - None. - - - - - - A pattern of horizontal lines. - - - - - - - A pattern of vertical lines. - - - - - - - A pattern of lines on a diagonal from top-left to bottom-right. - - - - - - A pattern of lines on a diagonal from - top-right to bottom-left. - - - - - - A pattern of criss-cross horizontal and vertical lines. - - - - - - - A pattern of criss-cross diagonal lines. - - - - - - Specifies a 5-percent hatch. The ratio of foreground color to background color is 5:100. - - - - - Specifies a 10-percent hatch. The ratio of foreground color to background color is 10:100. - - - - - Specifies a 20-percent hatch. The ratio of foreground color to background color is 20:100. - - - - - Specifies a 25-percent hatch. The ratio of foreground color to background color is 25:100. - - - - - Specifies a 30-percent hatch. The ratio of foreground color to background color is 30:100. - - - - - Specifies a 40-percent hatch. The ratio of foreground color to background color is 40:100. - - - - - Specifies a 50-percent hatch. The ratio of foreground color to background color is 50:100. - - - - - Specifies a 60-percent hatch. The ratio of foreground color to background color is 60:100. - - - - - Specifies a 70-percent hatch. The ratio of foreground color to background color is 70:100. - - - - - Specifies a 75-percent hatch. The ratio of foreground color to background color is 75:100. - - - - - Specifies a 80-percent hatch. The ratio of foreground color to background color is 80:100. - - - - - Specifies a 90-percent hatch. The ratio of foreground color to background color is 90:100. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points and are spaced 50 percent closer together than BackwardDiagonal, but they are not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points and are spaced 50 percent closer together than BackwardDiagonal, but they are not antialiased. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points, are spaced 50 percent closer together than, and are twice the width of ForwardDiagonal. This hatch pattern is not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points, are spaced 50 percent closer together than BackwardDiagonal and are twice its width, but the lines are not antialiased. - - - - - Specifies diagonal lines that slant to the right from top points to bottom points, have the same spacing as hatch style ForwardDiagonal and are triple its width, but are not antialiased. - - - - - Specifies diagonal lines that slant to the left from top points to bottom points, have the same spacing as hatch style BackwardDiagonal and are triple its width, but are not antialiased. - - - - - Specifies light vertical lines. - - - - - Specifies light horizontal lines. - - - - - Specifies narrow vertical lines . - - - - - Specifies narrow horizontal lines - - - - - Specifies vertical lines that are spaced 50 percent closer together than Vertical and are twice its width. - - - - - Specifies horizontal lines that are spaced 50 percent closer together than Horizontal and are twice the width of HatchStyleHorizontal. - - - - - Specifies dashed diagonal lines, that slant to the right from top points to bottom points. - - - - - Specifies dashed diagonal lines, that slant to the left from top points to bottom points. - - - - - Specifies dashed horizontal lines. - - - - - Specifies dashed vertical lines. - - - - - Specifies a hatch that has the appearance of confetti. - - - - - Specifies a hatch that has the appearance of confetti and is composed of larger pieces than SmallConfetti. - - - - - Specifies horizontal lines that are composed of zigzags. - - - - - Specifies horizontal lines that are composed of tildes. - - - - - Specifies a hatch that has the appearance of layered bricks that slant to the left from top points to bottom points. - - - - - Specifies a hatch that has the appearance of horizontally layered bricks. - - - - - Specifies a hatch that has the appearance of a woven material. - - - - - Specifies a hatch that has the appearance of a plaid material. - - - - - Specifies a hatch that has the appearance of divots. - - - - - Specifies horizontal and vertical lines, each of which is composed of dots, that cross. - - - - - Specifies forward diagonal and backward diagonal lines, each of which is composed of dots, that cross. - - - - - Specifies a hatch that has the appearance of diagonally-layered shingles that slant to the right from top points to bottom points. - - - - - Specifies a hatch that has the appearance of a trellis. - - - - - Specifies a hatch that has the appearance of spheres laid adjacent to one another. - - - - - Specifies horizontal and vertical lines that cross and are spaced 50 percent closer together than hatch style Cross. - - - - - Specifies a hatch that has the appearance of a checkerboard. - - - - - Specifies a hatch that has the appearance of a checkerboard with squares that are twice the size of SmallCheckerBoard. - - - - - Specifies forward diagonal and backward diagonal lines that cross but are not antialiased. - - - - - Specifies a hatch that has the appearance of a checkerboard placed diagonally. - - - - - Provides a for the enumeration. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Convert between inches and twips (1/1440 inch, used by Win32 API calls). - - Value in inches. - Value in twips. - - - - Helper routines for drawing rotated text. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the relative alignment of a popup child about its parent. - - - - - The child will be aligned to the parent's top-left corner - and drawn upwards and to the right of the parent's left border. - - - - - The child will be aligned to the parent's top-right corner - and drawn upwards and to the left of the parent's right border. - - - - - The child will be aligned to the parent's top-right corner - and drawn downwards and to the right of the parent. - - - - - The child will be aligned to the parent's bottom-right corner - and drawn upwards and to the right of the parent. - - - - - The child will be aligned to the parent's bottom-left corner - and drawn downwards and to the right of the parent's left border. - - - - - The child will be aligned to the parent's bottom-right corner - and drawn downwards and to the left of the parent's right border. - - - - - The child will be aligned to the parent's top-left corner - and drawn downwards and to the left of the parent. - - - - - The child will be aligned to the parent's bottom-left corner - and drawn downwards and to the right of the parent. - - - - - Does not indicate any of the above alignments. - - - - - A generic interface for any control that wants to participate - in the Popup framework. - - - - - Returns the popup's control parent. - - - If such a control exists, then the Popup framework will use - it in its popup activation logic. - - - - - Indicates whether a specified control is part of the - popup hierarchy. - - A control instance. - True indicates this query should - be passed to the IPopupParent, if any; False indicates you - should not query the popup parent. - True if the control is part of the Popup hierarchy; - False otherwise. - - - - Specifies the way in which a popup was closed. - - - This information is usually provided in a - PopupControlContainer's event. - You can use it to determine, in some cases, whether or not - to use the updated data in a popup. - - - - - The user wants the changes made in the popup to be applied. - - - - - The user canceled the popup and expects the changes, if any, to be ignored. - - - - - The popup was deactivated due to the user clicking in some - other window, a different application getting focus, etc. - - - - - A generic interface that defines a popup parent, that will - control the alignment of a popup, etc. - - Any object / control that wants to act as a popup's parent - and participate in the popup framework should implement this interface. - Take a look at the PopupsInDepth sample under the Tools\Samples\Editors Package\PopupControlContainer\Advanced - folder for an implementation of this interface. - - - - Will be called to indicate that the popup child was closed - in the specified mode. - - The child that was closed. - A value. - - - - Returns the location for popup, given the preferred relative - alignments. - - - This method allows you to provide 8 different preferred positions for - your popup, in any order. - Different preferred positions are necessary because some positions - may not be ideal for the popup as there may not be enough screen space - for the popup when shown in that position. - The popup will first call this method with prevAlignment set to - . You should then return a location and - designate this location as one of the 8 positions in the - enumeration using the newAlignment reference. - The popup will then check if there is enough space in the screen - to draw at this location. If not, it will call this method again with - prevAlignment set to newAlignment from the previous call. - - This goes on until you return a location that the popup finds acceptable. - However, if you run out of locations before the popup can find an acceptable location, - then you should set newAlignment to . The popup will then assume - that you don't have any more positions to supply and do the best it can - with the supplied location. - - - The previous alignment. - The new alignment designated for the returned location. - - An ideal location for popup designated by one of the values in - newAlignment. Or returns a Point.Empty and set newAlignment to - if you do not intend to provide multiple preferred locations. - - - - - Returns a line (defined by 2 points) in screen co-ordinates that indicates the - border overlap between the child and parent. - - The preferred alignment selected using the - method. - - If a valid line is provided, the popup child in that - area will be drawn in an overlap style. - - - An array of 2 points representing a line (in screen co-ordinates) - where the overlap takes place. NULL if no overlap is desired. - - - - - Indicates whether control's elements should be rendered right-to-left. - - - - - Defines a generic interface which when implemented will allow - that object / control to participate in the popup framework. - - - This interface should be implemented by an object / control that - acts like a popup window and wants to participate in the popup framework. - - - - - Hides the popup window. - - The PopupCloseType value that indicates - the mode in which this popup should be closed. - - - - Indicates whether a popup is currently active / open. - - True if it is open; False otherwise. - - - - Returns the parent. - - An instance of the interface. - - The Popup framework can handle a hierarchy of popups (like - in a menu) for which it requires each popup child to provide - a reference to its popup parent. - - - - - Represents the method that will handle the event. - - The source of the event. - A PopupClosedEventArgs that contains the event data. - - - - Provides data for the event. - - - - - Creates an instance of the PopupClosedEventArgs class. - - A PopupCloseType value. - - - - Returns the PopupCloseType value indicating the way in which - the popup was closed. - - - - - Implement this interface to provide context menu location in your control when - the context menu is invoked by a keyboard key. - - Used by the XPMenus framework (when using PopupMenus in Essential Tools) to determine the context menu location - for a control. - - - - Returns a point in client coordinates of the control. - - - This method will be called when the context menu is being - invoked due to a key like Shift + F10. The control that implements this - interface should then return a point in client coordinates of the - control where the context menus should be shown. - If the control were a - TreeView for example, it should then return a location beside the current - selected node. - - - - - Summary description for MessageFilterEntryHelperWeakContainer. - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - HookProc used for catch mouse messages. - - - - - - Provides information, whether popup is ignoring - working area of the display before showing. - This interface should be implemented by classes, - that contain ot use popups. - - - - - Indicates whether derived class ignores working area of the display before showing popup windows. - - - - - Provides a FindParentForm method that returns the parent form. Use this interface - instead of Control.FindForm when you want to support nested windowless grid as used - in GridGroupingControl. See also of the - class. - - - - - Returns the parent form of the control. Use this - instead of Control.FindForm when you want to support nested windowless grid as used - in GridGroupingControl. See also of the - class. - - The parent form. - - - - Provides a FindFormHelper.FindForm(Control) method that supports the IFindParentForm interface. Use this instead of calling - Control.FindForm. - - - - - Provides a FindFormHelper.FindForm(Control) method that you can use instead of calling - Control.FindForm. - - - - - Defines an interface that a can take and parent itself to. - - - - provides a default implementation that should be useful for all - practical purposes. - - - - - - Provides the appropriate location to the popup given the alignment preferences. - - - - This method is usually called to determine whether the open popup should be closed - due to some action in a different control. If this different control is a "related" control, - the popup framework will not close the popup. - - - - - - Gets / sets the this container is parented to. - - - An instance of the class. - - - If this is a control, you would set it to be a child of - the and position it appropriately in the set property. - - - - - A generic window that can be used for drop-down behavior, with WS_EX_TOOLWINDOW and CS_SAVEBITS styles. - - - Internally used by the PopupHost class. - - - - - A form-derived class that can be derived to create custom top-level - windows like ToolTips, a splash window, etc. - - - - - Creates a new instance of the TopLevelWindow class. - - - - - Shows the window as the top-level window without activating it. - - - - - Overridden to ignore Win32Exception. - - - - - - - - The top level form-derived class that hosts a - when it is dropped-down. - - - You will normally not have to use this class or refer to - an instance of this class. An instance of this class will - be automatically generated by the which - will then set this as its parent when is called on it. - - However, you can for example access an instance of this - class from the PopupControlContainer and change certain properties. - - - You can include a shadow in your popups by setting the NeedShadow property. - - - - Take a look at PopupControlContainer.PopupHost property reference for an example - on how to access and modify the PopupHost's properties during run-time. - - - - - Creates a new instance of the PopupHost class. - - - - - Overridden. See . - - - - - - Ignore working area when menu begin popup. - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Shows the popup. - - - - - Updates popup host visibility and z-order. - - - - - Computes size and position of popup. - - - - - Hides the popup. - - - - - Indicates whether a shadow should - be drawn around the popup window. - - True if a shadow is needed; False otherwise. - - - - Gets / sets the PopupControlContainer that this PopupHost - will host. - - - An implementation of the interface. - - - - - Returns a value indicating - the current alignment of the popup window. - - - A value. - - - - - Gets / sets the overlap border color with which this top-level form should be drawn. - - A color value. - - This color will be used by this form only when the is set to None. - The form will draw a custom single-line border with this color and also draw - the overlapped look, if overlapped borders are available. - - - - - Gets or sets ignore working area when menu begin popup. - - - - - A panel-derived class that will let you design custom popups - within a form's designer. - - - To design a custom popup, drag-and-drop it off the toolbox - into a form during design-time. Then populate it with - appropriate controls just like you would any other panel. - You can mark it as invisible (Visible = false) so that it - will not interfere with the form's layout mechanism. It's also recommended that - you unparent it from the design-time parent in your form constructor code, as shown in the sample code below. - - When you are ready to popup, call this class's method. This will show - the popup at the specified location. - - - There are different configurations in which you can use this - PopupControlContainer. - - When you specify a Parent Control using - and pass a Point.Empty location to - , the popup location will be dynamically determined - based on the 's bounds and the screen area. - - - For even more control over the alignment and positioning - of the popup, you should implement an interface - and assign that to the property (this you would - do instead of the above PopupControl-based alignment.). - - - - When the popup is showing, the PopupControlContainer, - in the ProcessDialogKey override will look for Alt, Enter, Tab, Esc, F4, - and F2 keys and either cancel or close the popup. If you want - to prevent this, then set to False. You should - then make sure to close the popup manually whenever appropriate using - . - The PopupControlContainer also fires the , (after popup) - and events that you can handle. You could for example - set the focus on a control within the PopupControlContainer in the - popup event handler. - - - The following example has a PopupControlContainer that gets shown when the - user does an Alt+DownArrow on a text box. - - public Form1() - { - InitializeComponent(); - // It's recommended that you keep the PopupControlContainer unparented by - // any control on the form (which will be the default case as set up during design-time). - // Otherwise, the Form won't close sometimes after dropping down this popup! - this.popupControlContainer1.Parent.Controls.Remove(this.popupControlContainer1); - } - #region Windows Form Designer generated code - private void InitializeComponent() - { - System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(Form1)); - this.popupControlContainer1 = new Syncfusion.Windows.Forms.PopupControlContainer(); - this.cancel = new System.Windows.Forms.Button(); - this.OK = new System.Windows.Forms.Button(); - this.popupTextBox = new System.Windows.Forms.TextBox(); - this.label1 = new System.Windows.Forms.Label(); - this.sourceTextBox = new System.Windows.Forms.TextBox(); - this.groupBox1 = new System.Windows.Forms.GroupBox(); - this.dropDownBtn = new System.Windows.Forms.Button(); - this.mainMenu1 = new System.Windows.Forms.MainMenu(); - this.menuItem1 = new System.Windows.Forms.MenuItem(); - this.menuItem2 = new System.Windows.Forms.MenuItem(); - this.popupControlContainer1.SuspendLayout(); - this.groupBox1.SuspendLayout(); - this.SuspendLayout(); - // - // popupControlContainer1 - // - this.popupControlContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; - this.popupControlContainer1.Controls.AddRange(new System.Windows.Forms.Control[] { - this.cancel, - this.OK, - this.popupTextBox}); - this.popupControlContainer1.Location = new System.Drawing.Point(80, 128); - this.popupControlContainer1.Name = "popupControlContainer1"; - this.popupControlContainer1.Size = new System.Drawing.Size(120, 128); - this.popupControlContainer1.TabIndex = 0; - this.popupControlContainer1.Visible = false; - this.popupControlContainer1.Popup += new System.EventHandler(this.popupControlContainer1_Popup); - this.popupControlContainer1.CloseUp += new Syncfusion.Windows.Forms.PopupClosedEventHandler(this.popupControlContainer1_CloseUp); - this.popupControlContainer1.BeforePopup += new System.ComponentModel.CancelEventHandler(this.popupControlContainer1_BeforePopup); - // - // cancel - // - this.cancel.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.cancel.Location = new System.Drawing.Point(64, 96); - this.cancel.Name = "cancel"; - this.cancel.Size = new System.Drawing.Size(48, 24); - this.cancel.TabIndex = 2; - this.cancel.Text = "Cancel"; - this.cancel.Click += new System.EventHandler(this.cancelButton_Click); - // - // OK - // - this.OK.Anchor = (((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) - | System.Windows.Forms.AnchorStyles.Left) - | System.Windows.Forms.AnchorStyles.Right); - this.OK.Location = new System.Drawing.Point(8, 96); - this.OK.Name = "OK"; - this.OK.Size = new System.Drawing.Size(48, 24); - this.OK.TabIndex = 1; - this.OK.Text = "OK"; - this.OK.Click += new System.EventHandler(this.OK_Click); - // - // popupTextBox - // - this.popupTextBox.Multiline = true; - this.popupTextBox.Name = "popupTextBox"; - this.popupTextBox.Size = new System.Drawing.Size(118, 90); - this.popupTextBox.TabIndex = 0; - this.popupTextBox.Text = ""; - // - // label1 - // - this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 10F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((System.Byte)(0))); - this.label1.Location = new System.Drawing.Point(16, 56); - this.label1.Name = "label1"; - this.label1.Size = new System.Drawing.Size(256, 64); - this.label1.TabIndex = 1; - this.label1.Text = "Associate a PopupControlContainer with this TextBox. And also transfer data back " + - "and forth between the popup and the TextBox."; - // - // sourceTextBox - // - this.sourceTextBox.Location = new System.Drawing.Point(40, 128); - this.sourceTextBox.Name = "sourceTextBox"; - this.sourceTextBox.Size = new System.Drawing.Size(200, 20); - this.sourceTextBox.TabIndex = 2; - this.sourceTextBox.Text = "Alt+DownArrow for popup"; - this.sourceTextBox.KeyDown += new System.Windows.Forms.KeyEventHandler(this.textBoxPopupParent_KeyDown); - // - // groupBox1 - // - this.groupBox1.Controls.AddRange(new System.Windows.Forms.Control[] { - this.dropDownBtn}); - this.groupBox1.Location = new System.Drawing.Point(8, 32); - this.groupBox1.Name = "groupBox1"; - this.groupBox1.Size = new System.Drawing.Size(280, 128); - this.groupBox1.TabIndex = 3; - this.groupBox1.TabStop = false; - this.groupBox1.Text = "PopupControlContainer demo"; - // - // dropDownBtn - // - this.dropDownBtn.Image = ((System.Drawing.Bitmap)(resources.GetObject("dropDownBtn.Image"))); - this.dropDownBtn.Location = new System.Drawing.Point(240, 96); - this.dropDownBtn.Name = "dropDownBtn"; - this.dropDownBtn.Size = new System.Drawing.Size(26, 20); - this.dropDownBtn.TabIndex = 0; - this.dropDownBtn.Click += new System.EventHandler(this.dropDownBtn_Click); - // - // mainMenu1 - // - this.mainMenu1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.menuItem1}); - // - // menuItem1 - // - this.menuItem1.Index = 0; - this.menuItem1.MenuItems.AddRange(new System.Windows.Forms.MenuItem[] { - this.menuItem2}); - this.menuItem1.Text = "Help"; - // - // menuItem2 - // - this.menuItem2.Index = 0; - this.menuItem2.Text = "About Syncfusion"; - this.menuItem2.Click += new System.EventHandler(this.menuItem2_Click); - // - // Form1 - // - this.AutoScaleBaseSize = new System.Drawing.Size(5, 13); - this.ClientSize = new System.Drawing.Size(292, 273); - this.Controls.AddRange(new System.Windows.Forms.Control[] { - this.sourceTextBox, - this.label1, - this.popupControlContainer1, - this.groupBox1}); - this.Icon = ((System.Drawing.Icon)(resources.GetObject("$this.Icon"))); - this.Menu = this.mainMenu1; - this.Name = "Form1"; - this.Text = "Custom Popups Dialog"; - this.popupControlContainer1.ResumeLayout(false); - this.groupBox1.ResumeLayout(false); - this.ResumeLayout(false); - - } - #endregion - - [STAThread] - public static void Main() - { - Application.Run(new Form1()); - } - - #region OpenClosePopup - private void textBoxPopupParent_KeyDown(object sender, System.Windows.Forms.KeyEventArgs e) - { - // Using this unconventional if statement syntax to avoid "and" symbol (documentation restriction, please ignore). - - // If user pressed key down, then show the popup. - if(e.Alt) - if(e.KeyCode == Keys.Down) - if(!this.popupControlContainer1.IsShowing()) - { - // Let the popup align around the source textBox. - this.popupControlContainer1.ParentControl = this.sourceTextBox; - // Passing Point.Empty will align it automatically around the above ParentControl. - this.popupControlContainer1.ShowPopup(Point.Empty); - - e.Handled = true; - } - // Escape should close the popup. - if(e.KeyCode == Keys.Escape) - if(this.popupControlContainer1.IsShowing()) - this.popupControlContainer1.HidePopup(PopupCloseType.Canceled); - } - - private void OK_Click(object sender, System.EventArgs e) - { - this.popupControlContainer1.HidePopup(PopupCloseType.Done); - } - - private void cancelButton_Click(object sender, System.EventArgs e) - { - this.popupControlContainer1.HidePopup(PopupCloseType.Canceled); - } - #endregion OpenClosePopup - - #region PopupEvents - private void popupControlContainer1_BeforePopup(object sender, System.ComponentModel.CancelEventArgs e) - { - // Set the text to be edited with the text in the form text box. - this.popupTextBox.Text = this.sourceTextBox.Text; - } - - private void popupControlContainer1_Popup(object sender, System.EventArgs e) - { - // Set the focus on the text box inside the popup after it is open. - this.popupTextBox.Focus(); - this.popupTextBox.SelectionStart = 0; - this.popupTextBox.SelectionLength = 0; - } - - private void popupControlContainer1_CloseUp(object sender, Syncfusion.Windows.Forms.PopupClosedEventArgs args) - { - // Transfer data from the popup. - if(args.PopupCloseType == PopupCloseType.Done) - { - this.sourceTextBox.Text = this.popupTextBox.Text; - } - // Set focus back to textbox. - if(args.PopupCloseType == PopupCloseType.Done - || args.PopupCloseType == PopupCloseType.Canceled) - this.sourceTextBox.Focus(); - } - #endregion PopupEvents - - Public Sub New() - MyBase.New() - InitializeComponent() - ' It's recommended that you keep the PopupControlContainer unparented by - ' any Control on the Form (which will be the default case as set up during design-time). - ' Otherwise, the Form wouldn't close sometimes, after dropping down this popup! - Me.popupControlContainer1.Parent.Controls.Remove(Me.popupControlContainer1) - End Sub - - Private Sub InitializeComponent() - - Dim resources As System.Resources.ResourceManager = New System.Resources.ResourceManager(GetType(Form1)) - Me.popupControlContainer1 = New Syncfusion.Windows.Forms.PopupControlContainer() - Me.cancel = New System.Windows.Forms.Button() - Me.OK = New System.Windows.Forms.Button() - Me.popupTextBox = New System.Windows.Forms.TextBox() - Me.label1 = New System.Windows.Forms.Label() - Me.sourceTextBox = New System.Windows.Forms.TextBox() - Me.groupBox1 = New System.Windows.Forms.GroupBox() - Me.dropDownBtn = New System.Windows.Forms.Button() - Me.mainMenu1 = New System.Windows.Forms.MainMenu() - Me.menuItem1 = New System.Windows.Forms.MenuItem() - Me.menuItem2 = New System.Windows.Forms.MenuItem() - Me.popupControlContainer1.SuspendLayout() - Me.groupBox1.SuspendLayout() - Me.SuspendLayout() - ' - ' popupControlContainer1 - ' - Me.popupControlContainer1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle - Me.popupControlContainer1.Controls.AddRange(New System.Windows.Forms.Control() {Me.cancel, Me.OK, Me.popupTextBox}) - Me.popupControlContainer1.Location = New System.Drawing.Point(80, 128) - Me.popupControlContainer1.Name = "popupControlContainer1" - Me.popupControlContainer1.Size = New System.Drawing.Size(120, 128) - Me.popupControlContainer1.TabIndex = 0 - Me.popupControlContainer1.Visible = False - AddHandler Me.popupControlContainer1.Popup, New System.EventHandler(AddressOf popupControlContainer1_Popup) - AddHandler Me.popupControlContainer1.CloseUp, New Syncfusion.Windows.Forms.PopupClosedEventHandler(AddressOf popupControlContainer1_CloseUp) - AddHandler Me.popupControlContainer1.BeforePopup, New System.ComponentModel.CancelEventHandler(AddressOf popupControlContainer1_BeforePopup) - ' - ' cancel - ' - Me.cancel.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _ - Or System.Windows.Forms.AnchorStyles.Left) _ - Or System.Windows.Forms.AnchorStyles.Right) - Me.cancel.Location = New System.Drawing.Point(64, 96) - Me.cancel.Name = "cancel" - Me.cancel.Size = New System.Drawing.Size(48, 24) - Me.cancel.TabIndex = 2 - Me.cancel.Text = "Cancel" - AddHandler Me.cancel.Click, New System.EventHandler(AddressOf cancelButton_Click) - ' - ' OK - ' - Me.OK.Anchor = (((System.Windows.Forms.AnchorStyles.Top Or System.Windows.Forms.AnchorStyles.Bottom) _ - Or System.Windows.Forms.AnchorStyles.Left) _ - Or System.Windows.Forms.AnchorStyles.Right) - Me.OK.Location = New System.Drawing.Point(8, 96) - Me.OK.Name = "OK" - Me.OK.Size = New System.Drawing.Size(48, 24) - Me.OK.TabIndex = 1 - Me.OK.Text = "OK" - AddHandler Me.OK.Click, New System.EventHandler(AddressOf OK_Click) - ' - ' popupTextBox - ' - Me.popupTextBox.Multiline = True - Me.popupTextBox.Name = "popupTextBox" - Me.popupTextBox.Size = New System.Drawing.Size(118, 90) - Me.popupTextBox.TabIndex = 0 - Me.popupTextBox.Text = "" - ' - ' label1 - ' - Me.label1.Font = New System.Drawing.Font("Microsoft Sans Serif", 10.0!, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, CType(0, Byte)) - Me.label1.Location = New System.Drawing.Point(16, 56) - Me.label1.Name = "label1" - Me.label1.Size = New System.Drawing.Size(256, 64) - Me.label1.TabIndex = 1 - Me.label1.Text = ("Associate a PopupControlContainer with this TextBox. And also transfer data back " + "and forth between the popup and the TextBox.") - ' - ' sourceTextBox - ' - Me.sourceTextBox.Location = New System.Drawing.Point(40, 128) - Me.sourceTextBox.Name = "sourceTextBox" - Me.sourceTextBox.Size = New System.Drawing.Size(200, 20) - Me.sourceTextBox.TabIndex = 2 - Me.sourceTextBox.Text = "Alt+DownArrow for popup" - AddHandler Me.sourceTextBox.KeyDown, New System.Windows.Forms.KeyEventHandler(AddressOf textBoxPopupParent_KeyDown) - ' - ' groupBox1 - ' - Me.groupBox1.Controls.AddRange(New System.Windows.Forms.Control() {Me.dropDownBtn}) - Me.groupBox1.Location = New System.Drawing.Point(8, 32) - Me.groupBox1.Name = "groupBox1" - Me.groupBox1.Size = New System.Drawing.Size(280, 128) - Me.groupBox1.TabIndex = 3 - Me.groupBox1.TabStop = False - Me.groupBox1.Text = "PopupControlContainer demo" - ' - ' dropDownBtn - ' - Me.dropDownBtn.Image = CType(resources.GetObject("dropDownBtn.Image"), System.Drawing.Bitmap) - Me.dropDownBtn.Location = New System.Drawing.Point(240, 96) - Me.dropDownBtn.Name = "dropDownBtn" - Me.dropDownBtn.Size = New System.Drawing.Size(26, 20) - Me.dropDownBtn.TabIndex = 0 - AddHandler Me.dropDownBtn.Click, New System.EventHandler(AddressOf dropDownBtn_Click) - ' - ' mainMenu1 - ' - Me.mainMenu1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.menuItem1}) - ' - ' menuItem1 - ' - Me.menuItem1.Index = 0 - Me.menuItem1.MenuItems.AddRange(New System.Windows.Forms.MenuItem() {Me.menuItem2}) - Me.menuItem1.Text = "Help" - ' - ' menuItem2 - ' - Me.menuItem2.Index = 0 - Me.menuItem2.Text = "About Syncfusion" - AddHandler Me.menuItem2.Click, New System.EventHandler(AddressOf menuItem2_Click) - ' - ' Form1 - ' - Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13) - Me.ClientSize = New System.Drawing.Size(292, 273) - Me.Controls.AddRange(New System.Windows.Forms.Control() {Me.sourceTextBox, Me.label1, Me.popupControlContainer1, Me.groupBox1}) - Me.Icon = CType(resources.GetObject("$this.Icon"), System.Drawing.Icon) - Me.Menu = Me.mainMenu1 - Me.Name = "Form1" - Me.Text = "Custom Popups Dialog" - Me.popupControlContainer1.ResumeLayout(False) - Me.groupBox1.ResumeLayout(False) - Me.ResumeLayout(False) - - End Sub - - Private Sub textBoxPopupParent_KeyDown(ByVal sender As Object, ByVal e As KeyEventArgs) - - ' Using this unconventional if statement syntax to avoid "and" symbol (documentation restriction, please ignore). - ' If user pressed key down, then show the popup. - ' Escape should close the popup. - If e.Alt Then - If (e.KeyCode = Keys.Down) Then - If Not (Me.popupControlContainer1.IsShowing) Then - ' Let the popup align around the source textBox. - Me.popupControlContainer1.ParentControl = Me.sourceTextBox - ' Passing Point.Empty will align it automatically around the above ParentControl. - Me.popupControlContainer1.ShowPopup(Point.Empty) - e.Handled = True - End If - End If - End If - If (e.KeyCode = Keys.Escape) Then - If Me.popupControlContainer1.IsShowing Then - Me.popupControlContainer1.HidePopup(PopupCloseType.Canceled) - End If - End If - - End Sub - Private Sub OK_Click(ByVal sender As Object, ByVal e As EventArgs) - - Me.popupControlContainer1.HidePopup(PopupCloseType.Done) - - End Sub - Private Sub cancelButton_Click(ByVal sender As Object, ByVal e As EventArgs) - - Me.popupControlContainer1.HidePopup(PopupCloseType.Canceled) - - End Sub - Private Sub popupControlContainer1_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - - ' Set the text to be edited with the text in the form text box. - Me.popupTextBox.Text = Me.sourceTextBox.Text - - End Sub - Private Sub popupControlContainer1_Popup(ByVal sender As Object, ByVal e As EventArgs) - - ' Set the focus on the text box inside the popup after its open. - Me.popupTextBox.Focus() - Me.popupTextBox.SelectionStart = 0 - Me.popupTextBox.SelectionLength = 0 - - End Sub - Private Sub popupControlContainer1_CloseUp(ByVal sender As Object, ByVal args As PopupClosedEventArgs) - - ' Transfer data from the popup. - ' Set focus back to textbox. - If (args.PopupCloseType = PopupCloseType.Done) Then - Me.sourceTextBox.Text = Me.popupTextBox.Text - End If - If ((args.PopupCloseType = PopupCloseType.Done) _ - OrElse (args.PopupCloseType = PopupCloseType.Canceled)) Then - Me.sourceTextBox.Focus() - End If - - End Sub - - - - - Default size of the control - - - - - Ensures that the property returns a valid PopupHost. - - - - Normally the property will return a non-NULL value only when - the popup was displayed at least once. Calling this method will ensure that the property - returns a non-NULL value. - - - - - - Creates a new instance of the . - - - - - Initializes a new instance of the class with a specified container. - - A that represents the container of the . - - Containers are objects that encapsulate and track zero or more components. In this context, containment refers to logical containment, not visual containment. - You can use components and containers in a variety of scenarios, including scenarios that are both visual and not visual. - Note to Implementers: To be a container, the class must implement the IContainer interface, which supports methods for adding, removing and retrieving components. - Unlike other controls, a is not a direct child of your form (though this is the case during design-time). - This requires you to explicitly dispose of this control before the form gets destroyed. - With this constructor override, the automatically plugs itself into a form's - default component-containment pattern (through the IContainer member) during design-time. If you create this class in code, then you have to set it up manually. - The implementation simply adds the instance into the container. - - - - - - - - Gets preferred location. - - - - - - - - Shows the popup at the specified location. - - A point in screen coordinates. - Can be Point.Empty. - - A popup's position is determined as follows. - First, if an interface is associated (using - the property), then it is queried for the preferred - position. If there is no such interface, the location - specified in the method call is used. If ShowPopup - was called with Point.Empty, then the 's bounds are used - to determine an appropriate position to drop-down. - This will throw a followed by a event. - Use to hide the popup in code. - - When the popup is closed either programmatically or by the user, - the event will be thrown that will indicate - whether the popup was closed or canceled. - - - - - - Hides a popup that is open. - - - This method will hide the popup with the mode. - - - - - This method is called from the BarManager class when the parent form is deactivated. - It checks whether the user clicked inside a child control of this PopupControlContainer. - If this is not the case (e.g. user clicked on another window on the desktop) then the popup gets hidden. - - - - - Hides a popup with the specified mode. - - A PopupCloseType value. - - - - Overridden. See . - - - - - - - Overridden. . - - - - - - Sets focus on the popup parent control. - - - - - Focuses first visible parent. - - - - - Specifies whether the control is in set focus. - - - - - - - - - - - - - - applies the scaling - - - - - font changed - - - - - - - - - Checks whether the control is a related control. - - - - - - - - Indicates whether the popup is currently dropped down. - - True indicates popup is dropped down; False otherwise. - - - - Raises the BeforePopup event. - - A CancelEventArgs that contains the event data. - - The OnBeforePopup method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnBeforePopup in a derived - class, be sure to call the base class's OnBeforePopup method so that - registered delegates receive the event. - - - - - Raises the event. - - A instance containing - data pertaining to this event. - - The OnCloseUp method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnCloseUp in a derived - class, be sure to call the base class's OnCloseUp method so that - registered delegates receive the event. - - - - - Raises the event. - - An EventArgs instance containing - data pertaining to this event. - - The OnPopup method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnPopup in a derived - class, be sure to call the base class's OnPopup method so that - registered delegates receive the event. - - - - - Indicates whether the control is in design-mode. - - - - - - - - Indicates whether the popup should send a kill focus message - to the control with focus when the popup was shown. - - True to send a KillFocus message; False otherwise. Default value - is False. - - Faking focus is only necessary when the - doesn't take the focus but you want it to look like it - took the focus. - - When this property is True, a KillFocus message will be - sent to the control that currently has the focus after the - PopupControlContainer is dropped down and a SetFocus message - will be sent to the control with focus when the popup is - closed. - - - Again, you will probably not need this functionality in - most of the cases, since you will probably set the focus - on some control with this PopupControlContainer as soon - as it pops up (from within the popup event handler). - - - - - - Gets or sets a reference to the PopupHost that will be - used to host this PopupControlContainer when dropped down. - - The PopupHost object that will host this PopupControlContainer. - - PopupHost is the top level form-based control that hosts - this PopupControlContainer when dropped down. - - The PopupControlContainer usually creates a custom - PopupHost when it is asked to drop down. However, you - can provide your own PopupHost if you have a customized - version. - - - You can also get a reference to the - that the PopupControlContainer uses by default and make - changes to it. The PopupControlContainer creates a - default PopupHost when there is no PopupHost supplied - to it, but gets called to show the popup. - Hence, the best place to get the default PopupHost - associated with this PopupControlContainer is in the - handler. Or call to - create the default PopupHost if it is not yet created. - - - - The following example shows how to make the PopupHost's border style resizable to create a resizable popup. - - // The PopupControlContainer's BeforePopup event handler - private void popupControlContainer1_BeforePopup(object sender, System.ComponentModel.CancelEventArgs e) - { - // Create a Popup, that can be resized. - - // Make the popup host's border style resizable. - this.popupControlContainer1.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow; - this.popupControlContainer1.PopupHost.BackColor = this.BackColor; - - // Necessary to set the host's client size every time, especially since the - // popup's Dock style is set to DockStyle.Fill. - if(!(this.popupControlContainer1.PopupHost.Size.Width >= 140)) - this.popupControlContainer1.PopupHost.Size = new System.Drawing.Size(140, 150); - - // So that the popup container will fill the entire popup host when resized. - this.popupControlContainer1.Dock = DockStyle.Fill; - } - - ' The PopupControlContainer's BeforePopup event handler - Private Sub popupControlContainer1_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - - ' Create a popup that can be resized. - ' Make the popup host's border style resizable. - Me.popupControlContainer1.PopupHost.FormBorderStyle = FormBorderStyle.SizableToolWindow - Me.popupControlContainer1.PopupHost.BackColor = Me.BackColor - ' Necessary to set the host's client size every time, especially since the - ' popup's dock style is set to DockStyle.Fill. - ' So that the popup container will fill the entire popup host when resized. - If Not ((Me.popupControlContainer1.PopupHost.Size.Width >= 140)) Then - Me.popupControlContainer1.PopupHost.Size = New System.Drawing.Size(140, 150) - End If - Me.popupControlContainer1.Dock = DockStyle.Fill - - End Sub - - - - - Gets or sets the discreet location. - - - - - Specifies the PopupControlContainer's control parent. - - A control instance. - - The Parent-Child relationship in this case is NOT similar - to the one in the control hierarchy. - - When you specify a Parent Control via - ParentControl and pass a Point.Empty location to - ShowPopup, the popup location will be dynamically determined - based on the ParentControl bounds and the screen area. - - - - - Specifies the parent. - - An instance that implements . - - When you associate an IPopupParent interface with the PopupControlContainer - you get even more control over the alignment and positioning - of the Popup, (this you would - do instead of the PopupControl based parenting). - When you provide this interface, the alignment and - positioning logic is delegated to this interface. - - - Take a look at our PopupsInDepth sample under the Tools/Samples/In Depth folder - for sample usage. - - - - - Indicates whether to ignore dialog keys. - - True to ignore dialog keys; False if not to. Default is False. - - When the popup is showing, the PopupControlContainer - in the ProcessDialogKey override will look for Alt, Enter, Tab, Esc, F4, - and F2 keys and either cancel or close the popup. If you want - to prevent this, set IgnoreDialogKey = False. You should - then listen for the above keys and make sure to close the popup manually whenever appropriate using - HidePopup. - - - - - Indicates whether to ignore all mouse messages. - - True to ignore all mouse messages; False otherwise. Default is False. - - When the popup is showing it will "swallow" all the mouse messages that are sent to - controls not in the popup-hierarchy. When showing, the popup will also listen to - mouse messages to determine if the popup should be closed (for mouse down - outside the popup-hierarchy, for example). - - To prevent this behavior, set this property to True. - When set to True, the popup will close only when you call - the method or when a new popup gets shown. - - - - - Indicates whether to ignore all keys. - - True to ignore all keys; False otherwise. Default is False. - - When the popup is showing, it will "swallow" all the WM_KEYDOWN and WM_CHAR - messages. To prevent it, set this property to True. - - - - - Occurs before a popup is closed. - - - - - Specifies whether the drop down need to be closed on pressing tab on the last item and shift tab on the first item in the drop down. - - - - - gets or sets the touchmode - - - - - Gets or sets the current popup child in the popup hierarchy. - - An instance of interface. - When you want to show a parent-child hierarchy of popups, - call this property on the parent popup before showing the child popup. - - - For example: - - // While the parent PopupControlContainer is showing, you might want to show another child - // PopupControlContainer. You can do so as follows: - // Set up parent-child relationship. - parentPopupControlContainer.CurrentPopupChild = childPopupControlContainer; - childPopupControlContainer.PopupParent = parentPopupControlContainer; - - // Now show the child popup. - childPopupControlContainer.ShowPopup(); - - - ' While the parent PopupControlContainer is showing, you might want to show another child - ' PopupControlContainer. You can do so as follows: - ' Set up parent-child relationship - parentPopupControlContainer.CurrentPopupChild = childPopupControlContainer - childPopupControlContainer.PopupParent = parentPopupControlContainer - - ' Now show the child popup. - childPopupControlContainer.ShowPopup() - - - - - - Occurs when a popup is closed. - - - Handling this event will tell you whether the popup was - closed or canceled by the user. This, in some cases, will then let you - know whether or not you should accept changes in the popup. - - - - - Occurs when the popup is about to be shown. - - - You may choose to cancel drop-down in this handler. - This is also a good place, for example, to access the PopupControlContainer's - PopupHost and make changes to it. - - - - - Occurs after the popup has been dropped down and made visible. - - This is a good place, for example, to set the - focus on a control in the popup. - - - - Accessibility class to provide Coded UI support. - - - - - Variable for PopupControlContainer. - - - - - Constructor. - - PopupControlContainer - - - - Retrieves the object that has the focus. - - - - - - Retrieves the currently selected child. - - Child - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate - The vertical screen coordinate - An System.Windows.Forms.AccessibleObject that represents the child object - at the given screen coordinates. - - - - Bounds of the Control - - - - - Gets the role for the PopupControlContainer. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - - - - Gets the description of the Control.ControlAccessibleObject - - - - - Gets the state of the accessible object. - - - - - Gets the description of what the object does or how the object is used. - - - - - Gets the parent of an accessible object. - - - - - Gets or sets the value of an accessible object. - - - - - Suspends applying filters by tag. - - - - - - Resumes applying filters by tag. - - - - - - Utility to help you filter messages in both a .NET and Native app. - - The interface that will receive messages for filtering in a .NET app. - Specifies whether or not this filter should be inserted on top (with highest priority). - - - - Gets/sets whether to disable release hook or not - - - - - Modified PopupControlContainer that takes a child control and - adds a sizable grip so that the window can be sized. - - - - - The child control that is to be embedded. - - - - - Indicates whether the container has already been initialized. - - - - - Indicates whether size is dependant of child control size. - - - - - Creates an object of type SizablePopupControlContainer. - - - - - - - - - Displays the popup control. - - The location at which the popup's left top position will appear. - - - - Initializes the container control. - - - - - Adjusts bounds of the popupHost. - - - - - Indicates whether size is dependant of child control size. - - - - - Derives from the PopupHost class and adds a gripper label and - makes the form sizable. - - - - - Used when ShowGripper or ShowCloseButton property is set to true; - - - - - Label for the gripper. - - - - - The close button. - - - - - The embedded child control. - - - - - The current size - used when resizing. - - - - - Indicates whether the window is being resized. - - - - - The host rectangle. - - - - - Internal initialization state of drop-down window. - - - - - The last size of the window. - - - - - Indicates whether to show gripper. - - - - - Indicates whether to show close bytton. - - - - - Create an object of type SizablePopupHost. - - - - - - - - - Hides the popup. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Overrides PopupHost.ComputeMySize. - - - - - - - - Handles the MouseDown event of the gripper label. - - The gripper label. - The event data. - - - - Handles the MouseUp event of the gripper label. - - The gripper label. - The event data. - - - - Handler for the MouseMove event of the gripper label. - - The gripper label. - The event data. - - - - Handler for the MouseEnter event of the Close Button. - - The close button. - The event data. - - - - Handler for the MouseLeave event of the Close Button. - - The close button. - The event data. - - - - Handler for the Click event of the close button. - Closes the popup window. - - The close button. - The event data. - - - - Last size property. - - For AutoComplete DropDownSize persistance - - - - Returns/sets the visibility of the close button - - - - - Indicates whether a gripper will be shown that can used for resizing - - - - - The close button used in SizablePopupHost. - - - - - Override OnPaint. - - The event data. - - - - Gets / sets the text property. - - - - - Implement this interface in a class if the class embeds one or more - edit controls (text boxes, combo boxes). Implementing this interface - provides a way for external classes to access the embedded edit - control(s). - - - - - Returns the active edit control (text box, combo box). - - The IEditControlsEmbedListener based auto complete control. - - The implementation of this method will let the AutoComplete - control provide a link back to it so that it can be informed - of any changes in the active edit control. - - This is used when there are more than one edit controls on one - composite control. In this case, the AutoComplete control - will be informed when there is a change in focus between - the different edit controls. This is assuming that the AutoComplete - control is not able to sense the change in focus. - - - - - - The BorderPanel is a control that can be used to wrap other controls inside improving its visual appearance. - - - - - Required designer variable. - - - - - Cleans up any resources being used. - - - - - Required method for designer support - do not modify - the contents of this method with the code editor. - - - - - Gets / sets the background information of the border. - - - - - Gets / sets the color of the background of the inner surface. - - - - - Gets / sets the sizes of the sides of the border. - - - - - Gets / sets the control to be displayed inside the panel. - - - - - Gets / sets the round corner radii of the inner surface. - - - - - Gets / sets the width of the border of the inner surface. - - - - - Gets / sets the width of the border. - - - - - Gets / sets the round corner radii of the outer shape. - - - - - Gets / sets the height state of the inner surface. - - - - - Gets / sets the height state of the outer surface. - - - - - Indicates the states of the two borders of the BorderPanel. - - - - - Holds information about the rounded corners of the BorderPanel. - - - - - The default settings of the panel. - - - - - Gets / sets the BottomRight round corner radius. - - - - - Gets / sets the BottomLeft round corner radius. - - - - - Gets / sets the TopRight round corner radius. - - - - - Gets / sets the TopLeft round corner radius. - - - - - Gets / sets all the other values to the specified value. - - - - - Holds information about the sides of the borders of the BorderPanel. - - - - - The default dimension settings. - - - - - Gets / sets all the other members to the specified value. - - - - - Gets / sets the bottom border side's width. - - - - - Gets / sets the right border side's width. - - - - - Gets / sets the left border side's width. - - - - - Gets / sets the top border side's width. - - - - - Summary description for GradienPanelExtPrimitivesEditorForm. - - - - - Reference to owner control. - - - - - Collection of the primitives when added. - - - - - Collection of the primitives when removed. - - - - - Fills ListBox of primitives. - - - - - Fills cbPrimitives of types prmitive. - - - - - Creates primitive. - - - - - The GradientPanel is a -derived class that has numerous border styles and has a background composed of a multiple gradient brush. - - - - - - Implement this interface in a derived class to start supporting themes. - - - - - Indicates whether themes are enabled. - - - - - Default size of the control - - - - - Required designer variable. - - - - - Cleans up any resources being used. - - - - - Required method for designer support - do not modify - the contents of this method with the code editor. - - - - - - - - Applies the scaling for controls - - - - - Font changed - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - Occurs when border style is changed. - - - - - Occurs when border's 3D style is changed. - - - - - Occurs when border's 2D style is changed. - - - - - Occurs when border color is changed. - - - - - Occurs when gradient background is changed. - - - - - Occurs when vertical gradient is changed. - - - - - Occurs when gradient colors are changed. - - - - - Occurs when border sides are changed. - - - - - Occurs when property is changed. - - - - - Indicates whether the control will ignore the theme's background color and draw the backcolor instead. - - - - - Indicates whether the control is themed. - - - - - Gets or sets the border sides of the panel. - - - - - The background color, gradient and other styles can be set through - this property. - - - The GradientPanel control provides this property to enable specialized - custom gradient backgrounds. - - - - - Gets or Sets whether to have custom scrollbar - - - - - Gets or sets the color array that defines the gradient. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Indicates whether the gradient is vertical. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Indicates whether the background will be drawn with the gradient. - - - This property will be removed in the future. Please use the BackgroundColor property instead. - - - - - Gets or sets the color of the 2D border. - - - - - - - - - - Gets or sets the 2D border style. - - - - - Gets or sets the border style of the panel. - - - - - Gets or sets the style of the 3D border. - - - - - Gets the ScrollerFrame - - - - - Gets or Sets the touch mode - - - - - Accessibility class to provide Coded UI support. - - - - - Variable for GradientPanel. - - - - - Constructor. - - GradientPanel - - - - Retrieves the object that has the focus. - - - - - - Retrieves the currently selected child. - - Child - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate - The vertical screen coordinate - An System.Windows.Forms.AccessibleObject that represents the child object - at the given screen coordinates. - - - - Bounds of the Control - - - - - Gets the role for the GradientPanel. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - - - - Gets the description of the Control.ControlAccessibleObject - - - - - Gets the state of the accessible object. - - - - - Gets the description of what the object does or how the object is used. - - - - - Gets the parent of an accessible object. - - - - - Gets or sets the value of an accessible object. - - - - - Represents panel that has border and collection of - that can be drawn on border. Control perhaps has rounded or right corner. - - - For setting rounded corner, assign property. - You can set space between the bounds of the control and border - using property. Control has two states: collapse or expand. - For change this state use property. - Collapse/Expand state can be used with animation. For using animation, you - must set as true. For specifying speed animation - use . To specify delay for animation use - . - Control can contain , see . - - - - - Gap between primitive and bounds control. - - - - - Minimum lenght for border where draw primitives. - - - - - Default corner radius. - - - - - Gap between border and bounds control. - - - - - Width for pent which draws light line for border. - - - - - Gap between border and side of the primitive. - - - - - Offset for border. - - - - - Offset for border when control is collapse. - - - - - Delay for timer. - - - - - Animation speed. - - - - - Angle degree 0. - - - - - Angle degree 45. - - - - - Angle degree 90; - - - - - Angle degree 180; - - - - - Angle degree 270; - - - - - Indicate that control is collapse or expande. - - - - - Radius truncation of the corner. - - - - - Space between the bound of the control and the border. - - - - - Inner Border Thickness - - - - - Inner Rectangle Border Color - - - - - Inner Rectangle Border Color - - - - - Inner Rectangle Background Brush - - - - - Inner Rectangle Background Brush - - - - - Padding like space between the bounds of the control and the borders. - - - - - Background color for control. - - - - - Graphics path which represent client area. - - - - - Graphics path which represent control area. - - - - - Collection of the Primitives. - - - - - Size of the control for expande state. - - - - - Location of the control for expande state. - - - - - Alignment collapse control. - - - - - Last alignment of the control. - - - - - Use for sets correctly location control regarding client path. - - - - - A value indicating whether the control uses animation. - - - - - Collapsed size of the control. - - - - - Mimimal controls size. - - - - - Rectangle which contains border. - - - - - Uses for animation. - - - - - Indicate that control in process of collapse. - Uses by redraw. - - - - - Delay for animation. - - - - - Speed of animation. - - - - - Indicate that control need redraw. - Uses by redraw before animation. - - - - - Default size of the control - - - - - Resets the Inner Rectangle Border Thickness - - - - - Serializes the Inner Border Thickness - - - - - - Resets the Inner Rectangle Border Color - - - - - Serializes the Inner Rectangle Border Color - - - - - - Resets the Inner Rectangle Background Brush - - - - - Serializes the Inner Rectangle Background Brush - - - - - - Initialize animation. - - - - - Initialize control's style. - - - - - Initialize control's colors. - - - - - Initialize primitives. - - - - - - - - Applies the scaling - - - - - Font Chnaged - - - - - Draws transparent background. - - - - - Calculates count position of animation. - - - - - Initiate animation. - - - - - Collapsing control. - - - - - Expanding control. - - - - - Check position added control regarding client path. - - True if control contains within client area, otherwise False. - - - - Refresh control path and client path. - - - - - Refresh location for all primitives - - - - - Refresh correctly position and size for all controls - which contain in GradinetPanelExt. - - - - - Refresh work sizes. - - - - - Gets inscribed rectangle in rounded path. - - - - - Gets rectangle which drawing control. - - - - - Gets rectangle which drawing control. - - - - - Gets rounded path. - - - - - Gets graphics path which represent control. - - - - - Gets graphics path which represent client area of the control. - - - - - Gets rectangle which primitive is drawing. - - - - - Gets start point position primitive from given side. - - - - - Gets end point position of the primitive from given side. - - - - - Gets size collapsed control. - - - - - Find maximum size of the primitive in the collection. - - - - - Find maximum size of the primitive in the collection for a specific side. - - - - - Gets minimum border gap. - - - - - Gets minimum border gap for a specific side. - - - - - Gets maximum border gap. - - - - - Gets maximum border gap for the specified side. - - - - - Ensures if the PBorderGap can be set - - - - - Gets maximum radius. - - - - - - Gets minimum size of the control. - - - - - Gets minimum size of the control relative to Primitives. - - - - - Gets minimum size of the control relative to controls when contains control. - - - - - Gets lines which dont contained in border. - - - - - Gets IDesignerHost interface. - - - - - - Gets region when dont draw. - - - - - Draws control. - - - - - Draws the border. - - - - - Draws non-rectangle border. - - - - - Draws light lines for non-rectangle border. - - - - - Draws dark lines for non-rectangle border. - - - - - Draws light arcs for non-rectangle border. - - - - - Draws dark arcs for non-rectangle border. - - - - - Draws rectangle border. - - - - - Draws lines for collapsed control. - - - - - Draws light line for collapsed control. - - - - - Draws dark line for collapsed control. - - - - - Changes size of the control. - - - - - Changes location of the control. - - - - - Sets correctly position of the control regarding client path. - - - - - Determines whether the control is the HostControl. - - - - - Sets correctly corner radius. - - - - - Sets correctly border gap. - - - - - Sets correctly position of the primitive. - - - - - Gets correct size of the control. - - - - - Sets position of the control. - - - - - Hide primitives. - - - - - Show primitives. - - - - - Sets size of the control. - - - - - Hide all controls which contains this control. - - - - - Show all controls which contains this control. - - - - - Gets bound of the control when doing animation. - - - - - Gets rectangle for redwaw when doing animation. - - - - - Gets dark pen for border. - - - - - Gets light pen for border. - - - - - Changes collapse state for each CollapsePrimitive from . - - - - - Gets or sets delay for animation. - - - - - Gets or sets speed of animation. - - - - - Location expanded control. - When control expanded it is Empty. - - - - - Size expanded control. - When control expanded it is Empty. - - - - - Gets or sets a value indicating whether the control uses animation. - - - - - Gets or sets state of the control, collapsed or expanded. - - - - - Gets or sets alignment collapsed control. - - - - - Gets or sets radius truncation corner of the control. - - - - - Gets or sets border gap. - - - - - Gets or sets border gap. - - - - - Gets / Sets the Inner Rectangle Border Thickness - - - - - Gets / Sets the Inner Rectangle Border Color - - - - - Gets / Sets the Inner Rectangle Background Brush - - - - - Gets or sets graphics path which represent client area. - - - - - Gets or sets graphics path which represent control area. - - - - - Gets collection of the primitives. - - - - - Gets bounds for expanded control. - - - - - Gets size for expanded control. - - - - - Get location for expanded control. - - - - - Gets or Sets the touchmode - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represent line. - - - - - Start point of the line. - - - - - End point of the line. - - - - - Represents a null Line. - - - - - Gets size of the line. - - - - - Gets or sets start point of the line. - - - - - Gets or set end point of the line. - - - - - Summary description for GradientPanelExtCollectionEditor. - - - - - Summary description for GradientPanelExtDesigner. - - - - - Selected primitive. - - - - - Distance from a mouse and bounds of the primitive. - - - - - Gets rectangle where can location primitives. - - - - - Sets alignment of primitive. - - - - - Sets position of primitive. - - - - - Gets draged primitive. - - - - - Gets or sets selected primitive. - - - - - Gets owner control. - - - - - Represents primitive that can be displayed in . - - - In order to display the Primitive, you must add it to the - property of . This is normally achieved using simple drag-and-drop - during design-time. - The Primitive class provides properties that enable you to configure the - appearance, behavior abd layoutof a primitive. For selecting a primitive you must click on it. - You can change , - and . You can define - of the Primitive in , - inside . - - - - - Offset for select rectangle. - - - - - Offset for redraw primitive. - - - - - Start position for primitive. - - - - - Color which uses for drawing border selected primitive. - - - - - Default size for primitive. - - - - - Size of the primitive. - - - - - Reprecent position of the primitive. - - - - - Border color for primitive. - - - - - Background color for primitive. - - - - - Border style for primitive. - - - - - Control which contains this primitive. - - - - - Size and location of the primitive. - - - - - Rectangle which drawing primitive. - - - - - Rectangle which drew primitive on previous position. - Uses for redraw previous position of the primitives. - - - - - Alignment primitive. - - - - - A value indicating whether the primitive is displayed. - - - - - Indicate that primitive is selectes. - - - - - Draws primitive. - - - - - Redraws primitive. - - - - - Draws border for primitive. - - - - - Draws primitive. - - - - - Draws border for selected primitive in the designer. - - - - - Gets rectangle for selected primitive. - - - - - Gets rectangle which drawing primitive. - - - - - Gets center of the primitive. - - - - - Gets count position of the primitive. - - - - - Gets correctly position of the primitive. - - - - - Gets or sets value indicate that primitive is selected. - - - - - Gets or sets a value indicating whether the primitive is displayed. - - - - - Gets or set alignment of the primitive. - - - - - Gets or sets size of the primitive. - - - - - Gets or sets border color for primitive. - - - - - Gets or sets background color for primitive. - - - - - Gets or sets border style for primitive. - - - - - Gets or sets position of the primitive. - - - - - Gets control which contains this primitive. - - - - - Gets or sets the size and location of the primitive. - - - - - Gets rectangle of drawing primitive. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a collapse/expand primitive. - - - - - Indicate that primitive is collapse. - - - - - Image for collapsed primitive. - - - - - Image for expanded primitive. - - - - - Sets collapse state. Don't raise event. - - - - - Draws plus/minus primitive. - - - - - Gets or sets image for collapsed primitive. - - - - - Gets or sets image for expanded primitive. - - - - - Gets or sets value which indicate that primitive is collapse. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a text primitive. - - - - - Angle of rotation for text primitive. - - - - - Displayed text. - - - - - Font for displayed text. - - - - - Color of the displayed text. - - - - - Gets or sets displayed text. - - - - - Gets or sets font for displayed text. - - - - - Gets or sets color of the displayed text. - - - - - Raise by method. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents an image primitive. - - - - - Displayed image. - - - - - Rotated image. - - - - - A value indicating whether the primitive is rotated. - - - - - Gets or set displayed image. - - - - - Gets or sets a value indicating whether the primitive is rotated. - - - - - Raise by method. - - - - - Raise by method. - - - - - Represents a primitive which contain any control. - - - - - Control which displaying. - - - - - Refresh location and size for host control. - - - - - Determines if a primitive contains control. - - - - - Gets or set control which displaying inside the primitive. - - - - - Raise by method. - - - - - Border style for Primitive. - - - - - Alignment primitive within control. - - - - - Types of the Primitives. - - - - - A collection that stores objects. - - - - - Initializes a new instance of 'PrimitiveCollection'. - - - - - Adds primitive to collection. - - - - - Adds primitives to collection. - - - - - Removes primitive from collection. - - - - - Raise by method. - - - - - Indexer. - - - - - Class helps to apply Office2016 Theme colors - - - - - Constructor - - - - - Holds Visual style - - - - - Holds Splitter Dot Color - - - - - Holds Splitter Backcolor - - - - - Holds the Collapsed Panel Backcolor in Normal state - - - - - Holds the Collapsed DropDown button Backcolor on Hover state - - - - - Holds the Header Border color - - - - - Holds the Header BackColor - - - - - Holds the Default Forecolor - - - - - Holds Header Backcolor in pressed state - - - - - Holds the Header Forecolor in pressed state - - - - - Holds the Header Backcolor in hovered state - - - - - Holds the Header Fore color - - - - - Holds the Colapsed panel text color - - - - - Holds the Overflow button hover color - - - - - Holds the Group bar boder color - - - - - Holds the Overflow Icon Color - - - - - GroupBar Visual Style - - - - - Gets Splitter Dot Color - - - - - Gets the Splitter Color - - - - - Gets the Collapsed panel Backcolor in Normal state - - - - - Gets the Collapsed Dropdown Button Hover Backcolor - - - - - Gets the Header Border color - - - - - Gets the Header BackColor - - - - - Gets the Header Forecolor - - - - - Gets the Header Backcolor in pressed state - - - - - Gets the Header Forecolor in pressed state - - - - - Gets the Header Backcolor in Hovered state - - - - - Gets the Header Forecolor in hovered state - - - - - Gets the Colapsed panel text color - - - - - Gets the Overflow button hover color - - - - - Gets the Group bar boder color - - - - - Gets the Overflow Icon Color - - - - - Specifies the colors used for drawing the control's client rectangle borders. - - - The BorderColors structure is used by the objects in a - to specify the set of colors used for drawing the borders around the client control. The - BorderColors value is set through the property. - - - - - Creates a new instance of the class with the specified colors. - - Left border color. - Top border color. - Right border color. - Bottom border color. - - - - Gets / sets the color used to draw the left border. - - A value. - - - - Gets / sets the color used to draw the top border. - - A value. - - - - Gets / sets the color used to draw the right border. - - A value. - - - - Gets / sets the color used to draw the bottom border. - - A value. - - - - Represents a instance with empty color values. - - - - - Represents a instance with the default color values. - - - - - Represents an item in the control. - - - The GroupBar control is composed of a number of selectable groups or items each of which is - associated with a client control. Each of these items is an instance of the GroupBarItem type. - The collection of items present in the GroupBar can be accessed through the control's - property. - - - - - The image representing the item in the GroupBar's navigation pane. - - - - - Padding provides spacing between the icons (images) and the text in the . - - - - - Resets the property to its default value. - - - - - - - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Creates an instance of the class. - - - - - Overridden. See . - - - - - Gets/Sets the Control Bounds - - - - - Indicates whether all types of images can be used or not - - - - - Gets / sets the text displayed on the . - - A String value. - - - - Gets or sets padding for . - - - - - Gets / sets the client control associated with the . - - A instance. - - - - Gets / sets the image displayed on the . - - An value. - - - - Gets / sets the icon displayed on the . - - An value. - - - - Indicates whether the is enabled / disabled. - - False if the item is disabled. The default is True. - - - - Indicates whether the is visible. - - False if the item is hidden. The default is True. - - - - Gets / sets the font used for drawing the text. - - A value. - - - - Gets / sets the foreground color used to paint the text in the . - - A value. - - - - Gets / sets the color used to fill the background. - - A value. - - - - Gets / sets the brush used for painting the background. - - A value. - - - - Gets / sets the colors used to draw the borders around the 's client - control. - - A value. - - - - Gets / sets the object that contains data about the . - - - A value that contains data about the control. - The default is a NULL reference (Nothing in Visual Basic). - - - Any type derived from the Object class can be assigned - to this property. If the Tag property is set through - the Windows Forms designer, only text may be assigned. - - - - - Returns the GroupBar control that the item is assigned to. - - - A that represents the parent GroupBar control that the is assigned to. - - - - - Indicates whether the should be added to the navigation pane. - - - This property is valid only when the control is in the stacked mode. - - - TRUE if the item should be added to the navigation pane. The default is FALSE. - - - - Gets / sets the icon representing the in the navigation pane. - - - This property is valid only when the control is in the stacked mode. - - - An value. - - - - Gets / sets image representing the item in the GroupBar's navigation pane. - - - - - - - - - - Specifies an alignment value for the text. - - - The TextAlignment enum is used for specifying a value for the - control's property. - - - - - The text is aligned to the left. - - - - - The text is horizontally centered. - - - - - The text is aligned to the right. - - - - - Provides data for the event. - - The control uses the event to - obtain a custom brush from the application to draw the background region of a . - - - - - - Creates an instance of the ProvideBrushEventArgs class. - - The bounds for which a brush is requested. - - - - Returns the index of the being drawn. - - An Integer value. - - - - Returns the bounds for which a brush is requested. - - The Rectangle specifying the bounds. - - - - Gets / sets the brush that will be used to draw the specified bounds. - - A brush object. - The event handler should set this property for it - to be used while drawing the specified bounds. - - - - Represents the method that will handle the event - in the control. - - The source of the event. - A that contains the event data. - - - - Provides data for the and events. - - The control uses the and - events to notify users of a change in its collection. - - - - - - Creates a new instance of the class. - - The to store in this event. - - - - Returns the GroupBarItem used by this event. - - The object used by the event. - - - - Represents the method that will handle the and - events in the control. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - The control uses the event to - allow users to cancel or change the context menu displayed when the drop-down button is clicked. - - - - - - Creates a new instance of the class. - - The implementing the context menu. - - - - Returns the menu provider object used by for creating its context menu. - - The object. - - - - Represents the method that will handle the event in the - control. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - The control uses the event to - allow users to cancel bar item selection. - - - - - - Initializes a new instance of the class. - - The newly selected item index. - The old selected item index. - - - - Returns the newly selected index. - - - - - Returns the previously selected index. - - - - - Represents the method that will handle the event in the - control. - - The source of the event. - A that contains the event data. - - - - Displays a set of related controls as selectable groups or tabs. - - -

- The GroupBar class implements a container that can serve as a host for other controls. - The control is functionally similar to the Windows Forms - and provides a tab user-interface that will display only one control, the , - at any given time. -

-

- Each control in the GroupBar is associated with a and the - various GroupBarItems are arranged in a vertical stack. Clicking on a GroupBarItem will make - it the current selected item and the client control tied to that item will be displayed - within the GroupBar's client region. The collection of GroupBarItems in the control is - implemented as an instance of the type and - can be accessed and manipulated through the property. -

-

- The GroupBar can be used in combination with the Syncfusion control - to implement composite controls with user interfaces similar to the Outlook Bar in - Microsoft Outlook and the toolbox window present in the Visual Studio.NET development environment. -

-
- - - The sample code shows how to create a GroupBar, create and add two GroupBarBarItems, and - assign client controls to each of the GroupBarItems. - - private void InitializeGroupBar() - { - // Create the GroupBar control. - this.gbOutlook = new Syncfusion.Windows.Forms.Tools.GroupBar(); - - // Create and initialize the GroupBarItems that belong to this GroupBar. - this.gbiPersonal = new Syncfusion.Windows.Forms.Tools.GroupBarItem(); - // Assign the gvcPersonal client control to this GroupBarItem. - this.gbiPersonal.Client = this.gvcPersonal; - this.gbiPersonal.Text = "Personal"; - - this.gbiWork = new Syncfusion.Windows.Forms.Tools.GroupBarItem(); - // Assign the gvcWork client control to this GroupBarItem. - this.gbiWork.Client = this.gvcWork; - this.gbiWork.Text = "Work"; - - // Add the GroupBarItems to the GroupBar. - this.gbOutlook.GroupBarItems.Add(this.gbiPersonal); - this.gbOutlook.GroupBarItems.Add(this.gbiWork); - - // Set the GroupBar's initially selected index. - this.gbOutlook.SelectedItem = 1; - } - - - - Private Sub InitializeGroupBar() - - ' Create the GroupBar control. - Me.gbOutlook = New Syncfusion.Windows.Forms.Tools.GroupBar() - - ' Create and initialize the GroupBarItems that belong to this GroupBar. - Me.gbiPersonal = New Syncfusion.Windows.Forms.Tools.GroupBarItem() - ' Assign the gvcPersonal client control to this GroupBarItem. - Me.gbiPersonal.Client = Me.gvcPersonal - Me.gbiPersonal.Text = "Personal" - - Me.gbiWork = New Syncfusion.Windows.Forms.Tools.GroupBarItem() - ' Assign the gvcWork client control to this GroupBarItem. - Me.gbiWork.Client = Me.gvcWork - Me.gbiWork.Text = "Work" - - ' Add the GroupBarItems to the GroupBar. - Me.gbOutlook.GroupBarItems.Add(Me.gbiPersonal) - Me.gbOutlook.GroupBarItems.Add(Me.gbiWork) - - ' Set the GroupBar's initially selected index. - Me.gbOutlook.SelectedItem = 1 - - End Sub - - -
- - - Defines a base class for custom controls that support scrolling behavior. - - - The ScrollControl class acts as a base class for controls that require the - ability to scroll. To allow a control to display scrollbars as needed, - set the AutoScroll property to True. To select which scrollbars should be visible, - set the VScroll and HScroll properties. - You can also associate stand-alone scrollbars with the ScrollControl. The VertScrollBar - and HorizScrollBar properties allow you to associate external scrollbars. This is of benefit - if you want to share one scrollbar with a parent control. For example, if the ScrollControl - is a view inside a workbook or dynamic splitter frame. - ScrollControl supports automatic scrolling when the user drags the mouse. In a grid - when the user starts selecting cells the user can drag the mouse outside the grid - area and the grid will automatically scroll. To enable auto scrolling, override the - OnMouseDown event in your derived control and initialize the AutoScrolling, AutoScrollBounds - and InsideScrollBounds properties. - When the user scrolls your control and holds down the mouse on the down or up arrow - of the scrollbar, the scrolling speed will accelerate. - The FixRenderOrigin method will ensure correct initialization of the rendering origin - for brushes and patterns. You can call FixRenderOrigin from your control's OnPaint method. - ScrollControl supports scrolling with the mouse wheel and also cooperates fine with - with the IntelliMouseDragScroll class. - If you want to provide context information about your control and change the cursor on - the fly while the user moves the mouse, set the OverrideCursor property to the cursor - you want to show. Instead, you can also implement IMouseController and add the object - to MouseControllerDispatcher. - - - - ICancelModeProvider provides an interface for the CancelMode event. - - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Provides a property support for using the control - inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates that the splitter control is closing the pane with this control. - - - - - Indicates that the splitter control has closed the pane with this control. - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates whether the splitter control is closing the pane with this control. - - - - - Indicates whether the splitter control has closed the pane with this control. - - - - - This interface provides properties for accessing a vertical and horizontal - and an method. - - - - - Updates scrollbars to reflect recent changes in scroll position, minimum and maximum scroll position values. - - - - - Returns a reference to an object with vertical scrollbar settings of the control. - - - - - Returns a reference to an object with horizontal scrollbar settings of the control. - - - - - Defines an interface for classes that support a BeginUpdate / EndUpdate pattern. - - - - - Suspends updating the component. An internal counter will be increased if called multiple times. - - - - - Resumes updating the component. If was called multiple times, an internal counter is decreased. - - - - - Indicates whether was called. - - - - - Provides a property that lets you toggle support for Intelli-Mouse panning. - - - - - Toggles support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. - - - The latest Intelli-Mouse drivers have also built-in . - - - - Provides support for method. - - - - - Indicates whether this control contains focus. Override this method if you - want to show drop-down windows and indicate the control has not lost focus when - the drop-down is shown. - - True if the control or any child control has focus; false otherwise. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Internal only. - - - - - Internal only. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates the shared behavior of the vertical scrollbar - - - - - Indicate the shared behavior of the horizontal scrollbar - - - - - The SizeGripStyle behavior has been changed after version 6.1. - For old behavior set this to true. Default value is false. - - - - - Initializes a new instance of . - - - - - Disposes the control. - - - - - - - - - - Raises a CancelMode for the active mouse controller for this control. - - holds a collection of mouse controllers. - - - - - - - - - - - - - - - - - - - - - Indicates whether serialize property value or not. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Offsets the point. - - - - - - - Returns PointToClient(LastMousePosition). - - - - - - Returns a value indicating the context at a given mouse position. - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - A value indicating the context at a given mouse position; zero if no context found. - - Any Mouse Controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest the mouse controller determines whether it - wants to handle the mouse events for the current mouse position. - MouseControllerDispatcher will call HitTest for each Mouse Controller that has been registered with - Add(IMouseController). The Mouse Controller that wins the vote will be returned together with the - context value its HitTest implementation returned. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - A place holder where the controller is returned that won the vote. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - Returns a value indicating the context at a given mouse position. - - The mouse position in client coordinates. - Indicates which mouse button was pressed. - Specifies the number of times the mouse button was pressed and released. - A place holder where the controller is returned that won the vote. - A value indicating the context at a given mouse position; 0 if no context found. - - - - - - - - - - - - - - - - - - - - - - Handles the WM_SETCURSOR message - - - - - - - - - - - - - - - - - - - - - - - Initialize the last vertical scroll value. - - - - - Initialize the last horizontal scroll value. - - - - - Used to save the touch start position. - - - - - Used to check the touch mode is enabled or not. - - - - - Used to check touch on the Horizontal scroll bar or not. - - - - - Used to check touch on the Vertical scroll bar or not. - - - - - Used to save the object for MultiTouch to configure the touch. - - - - - Used to disable the Gesture. - - - - - Decode the touch messages to do corresponding operations - - windows touch messages - return true when the message properly handled otherwise it will be false - - - - Applies the color table for scrollbars. - - - - - Apply the color settings for Office2016 scrollbar. - - Scrollbar visual styles - - - - Apply Office2016Black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Raises the event. - - A that contains the event data. - - - - Get or Set of Skin Manager Interface - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event - - Office scrollbar type - - - - Apply the color scheme for Office2016 scrollbar. - - - - - - - - - - Handles mouse wheel processing for our scrollbars. - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - An that contains the event data. - - - - Fires the ScrollbarsVisibleChanged event. - - A that contains the event data. - - - - Override this method to implement zooming in your derived control. - - The event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Initially save the current scrollbar values when begin the panning operation - - Touch begin position - return true - - - - Adjust the HScrollBar and VScrollBar values based on current touch position - - Current touch position - Used to decide the doing swipe operation or pan operation - - - - - After panning operation completes save the current scroll bar values - - touch end position - return true - - - - - - - - - - - - - - - - - - - Raises the event. - - A that contains the event data. - - - - - - - - - - - - - - - - - Handles the of the horizontal scrollbar. - - The source of the event. - An that contains the event data. - - - - Handles the of the vertical scrollbar. - - The source of the event. - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Listens for the horizontal scrollbar's scroll event. - - - A that contains data about the control. - - - A that contains the event data. - - - - - Listens for the vertical scrollbar's scroll event. - - - A that contains data about the control. - - - A that contains the event data. - - - - - Raises the ShowContextMenu event when the user right-clicks inside - the control. - - You can cancel showing a content menu when - you assign True to . - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - - - - - Method calculate new client area size. If you want to increase Non-Client - area for control and draw on it then this is method especially for you. - - Rectangle of the control client area. - - - - Raises the event. - - A that contains the event data. - - - - Factory method that creates a for displaying ScrollTips. - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - The event handler for this event can check - to determine if or - was called. - - - - - Overridden. See the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls get focus and it - is not called when focus is moved within child controls of this control. - - - - - Raises the event. This method is called when the control - or any child control loses focus and the new focused control is not a child of this control. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - Minimizes the time the first time the control is drawn. Calling - OnPaint before the control is made visible ensures that all relevant code for drawing - has been jitted. - - - - - Raises the event. - - An that contains the event data. - - - - - - - - - - - - - - - - - - - - - - - - - - Given a component, this retrieves the that it is parented to; - NULL if it is not parented to any . - - - The component to check. - - - A that the component is parented to; NULL if - no such interface exists. This will return the component if it - is an instance of . - - - - - Given a component, this retrieves the that it is parented to; - NULL if it is not parented to any . - - - The component to check. - - - An that the component is parented to; NULL if - no such interface exists. This will return the component if it - is an instance of . - - - - - Delegates the MouseWheelEvent from a child control. - - A MouseEventArgs that holds event data. - - public class GridTextBox: RichTextBox - { - private GridTextBoxCell parent; - protected override void OnMouseWheel(MouseEventArgs e) - { - parent.Grid.ProcessMouseWheel(e); - } - } - - - - - Invalidate the vertical scrollbar - - - - - Invalidate the horizontal scrollbar - - - - - - - - The scrollbar height and width will be increased, when the DPI of system is increased. - - - ScrollBarCustomDraw - - - - Displays / hides the horizontal and vertical autoscrollbars. This will - also adjust the values of formState to reflect the new state. - - - True if the horizontal scrollbar should be displayed. - - - True if the vertical scrollbar should be displayed. - - - True if the form needs to be layed out again. - - - - - Resets the property. - - - - - Raises the specified mouse event and catches any exception. If an exception is caught, NotifyCancelMode - is called. Returns False if event should be ignored by the grid. - - A that contains the event data. - A delegate that handles the event. - False if CancelMouseEventArgs.Cancel is True; True otherwise - - - - - - - - Method force to invalidate Non Client area of control. - - - Invalidate specified rectangle in Non Client area. - Rectangle to Invalidate. - - - Invalidate and wait till area update on Non Client area. - - - - Method draws non-client area of an ScrollControl. - - EventArgs with Non-client info for drawing. - - - - - - - - - - - Raises a event. - - - - - - Increases small change of the ScrollBar. - - - - - - - - - - - - - Resets the property to its default value. - - - - - Starts the AutoScroll timer. - - The scrollbar to be automatically scrolled. - The event to be sent to this scrollbar. - - - - Starts the AutoScroll timer. - - - Starts the AutoScroll timer. - - The message to be sent to the current control. - - - - - - - Starts the AutoScroll timer. - - The message to be sent to the current control. - The initial interval for sending messages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Call this method from your control's OnPaint method to ensure correct - rendering origin for brushes and patterns. - - The graphics object. - - - - Updates scrollbars to reflect recent changes in scroll position, minimum and maximum scroll position values. - - - - - Call this method to check if you should do any update calculations for the view in your control and to notify scroll control - that the control's content needs to be updated. - - True if you should invalidate areas that need to be redrawn; False if a complete Refresh for the control is pending - and therefore invalidating the view is not necessary. - - - - Call this method to check if you should do any update calculations for the view in your control and to notify scroll control - that the control's content needs to be updated. - - If markPaintPending is True, ScrollControl will assume the control needs to be repainted in a subsequent EndUpdate call. - True if you should Invalidate regions to be repainted in your control. It will return False if a complete Refresh of - the control is pending and you don't need to invalidate individual regions of your control. - - - - Suspends the painting of the control until the method is called. - - - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - Suspends the painting of the control until the method is called. - - Specifies the painting support during the BeginUpdate, EndUpdate batch. - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - Pass BeginUpdateOptions if you do not want to do a complete Refresh of the control and instead - want to have certain regions of your control be invalidated or scroll the contents of control. - If you call BeginUpdate() and then later EndUpdate(), the control will know if a paint is pending and only - refresh the control if a paint is pending. Calling ShouldPrepareUpdate, Invalidate or a WM_PAINT message during - the BeginUpdate EndUpdate block will signal the control that a paint is pending. - - - - - - - Calls for both scrollbars. - - - - - Calls for both scrollbars. - - - - - Resumes the painting of the control suspended by calling the BeginUpdate method. - - - When many paints are made to the appearance of a control, you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - - Cancels any prior calls. - - - - - - Resumes the painting of the control suspended by calling the BeginUpdate method. - - - When many paint are made to the appearance of a control you should invoke the - BeginUpdate method to temporarily freeze the drawing of the control. This results - in less distraction to the user, and a performance gain. After all updates have - been made, invoke the EndUpdate method to resume drawing of the control. - - - - - - Scrolls the contents of the control similar to the ScrollWindow Windows API. - - - The method will raise a WindowScrolling event before the contents are scrolled and a WindowScrolled event after - the contents have been scrolled. - If DisableScrollWindow is True, any calls to the ScrollWindow method will simply invalidate the affect region. The rendering origin will - still be recorded correctly and WindowScrolling and WindowScrolled events will be raised.If DisableScrollWindow is False, ScrollWindow will scroll the contents of the control. - - - - - - - - - - - - - - - - - Discards paint messages. - - - - - - - - - - - - - - - - Indicates whether this control contains focus. Override this method if you - want to show drop-down windows and indicate the control has not lost focus when - the drop-down is shown. - - True if the control or any child control has focus; false otherwise. - - - - - - - - - - - - - - - - Checks if the control is visible and a window handle has been created. - If it has not been drawn before, it calls . - - Set this True if you want to force a call to - even if the control is not visible and / or - no window handle has been created. - - - - Enables the DoubleBufferSurface for this control. The DoubleBufferSurface buffering - is different from the automatic .NET double buffering and also a bit slower but - it reduces flicker if lots of scrolling is used and gdi drawing for individual cells - in a grid. - - - - - - - - - Forces the assigned styles to be reapplied to the control. - - - - - Indicates whether the time the first time the control is drawn should be optimized - by calling OnPaint before the control is made visible and so that all relevant code for drawing - has been jitted (Just in Time) - - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the control. - - A object. - - - - Disables or specifies the direction for automatic scrolling when the user drags - the mouse cursor out of the scrolling area. - - ScrollBars.None will disable scrolling.ScrollBars.Horizontal will enable horizontal scrolling.ScrollBars.Vertical will enable vertical scrolling.ScrollBars.Horizontal|ScrollBars.Vertical will enable both horizontal and vertical scrolling. - - - - Lets you check or specify the setting if the window should be scrolled when ScrollWindow is called. - - If DisableScrollWindow is True, any calls to the ScrollWindow method will simply invalidate the affect region. The rendering origin will - still be recorded correctly and WindowScrolling and WindowScrolled events will be raised.If DisableScrollWindow is False, the ScrollWindow will scroll the contents of the control. - DisableScrollWindow will return True if BeginUpdate was called without the BeginUpdateOptions.ScrollWindow option. - - - - - - - - Indicates whether the control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the control should scroll while the user is dragging a vertical scrollbar thumb. - - - - - Indicates whether the control should scroll while the user is dragging a horizontal scrollbar thumb. - - - - - Indicates whether the control should show ScrollTips while the user is dragging a vertical scrollbar thumb. - - - - - Indicates whether the control should show ScrollTips while the user is dragging a horizontal scrollbar thumb. - - - - - Gets or sets a size grip that should be drawn at the bottom-right corner if both scrollbars - are visible. - - - - - Indicates whether a size grip can be drawn inside the SizeBox and if the - of the parent form is allowed to be changed. - - - - - Indicates whether the size box should always be drawn when both scrollbars are visible. This - property differs from such that the control will not - check the docking state and parent form to determine whether to show the size box. - Note: Another better solution is drawing NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - Showing the size box works around a problem with .NET controls because by - default the area at the bottom right is not drawn and that can cause - drawing glitches. Note: Another better solution is drawing the NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - - - Indicates whether the size box should be drawn when both scrollbars are visible - and the control is not a docked window in an MDIChild window. Note: Another better solution is drawing the NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - Showing the size box works around a problem with .NET controls because by - default the the area at the bottom right is not drawn and that can cause - drawing glitches. Note: Another better solution is drawing NonClientArea - ourselves. See SizeGripStyle which implements this newer solution. - - - - - Indicates whether the control is currently scrolling and the user drags - the mouse outside the inner scrolling area. - - - - - Returns a reference to an object with vertical scrollbar settings of the control. - - - - - Returns a reference to an object with horizontal scrollbar settings of the control. - - - - - Internal only. Toggles thumb track mode. See ScrollBarWrapper.IsThumbTracking for a public getter for this state. - - - - - Indicates whether the scroll control can increase the - property while doing accelerated scrolling. If this is True, the - will be set to 3 after 40 rows and to 5 after 80 rows. - - - By default the scroll control will increase the scrolling step after a while. Set this to - False if you want to enforce scrolling only one row at a time even with accelerated scrolling. - - - - - Gets or sets the outer scrolling area. Typically the client area of the control. - - - - - Returns the inside scrolling area. The control will scroll if the user drags - the mouse outside this area. - - - - - Gets or sets the default margins for the scrolling area when the user moves the mouse to the - margin between InsideScrollBounds and AutoScrollBounds. - - - - - Returns a reference to the for this control. Can be NULL. - - - - - Gets or sets the text to be displayed in the ScrollTip window with a place holder for scroll position . For example, " Position {0} " - - - - - Immediately changes the shown cursor. - - - - - Indicates whether the control is handling a event. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - ScrollControlMouseController checks this to see if it should cancel - existing mouse operation and call ScrollControlMouseController.CancelMode - when a UICuesChanged event is sent. That can happen when user activates - another application or simply when styles for a child window have changed. - - - - - Returns the Pane information. - - - - - Lets you override the scroll behavior for rolling the mouse wheel. Default is SystemInformation.MouseWheelScrollLines. - - - - - Indicates whether the control should perform one scroll command (faster) or - if it should perform multiple scroll commands with smaller increments (smoother) - when user rolls mouse wheel. - - - - - Gets or sets the multiplier for mouse wheel scrolling. - - - - - Gets or sets the multiplier for mouse wheel scrolling. - - - - - Enables shared scrollbars. Use this if the control is not embedded in a container control - that implements IScrollBarFrame and you want to provide your own scrollbars. - - - - Gets / sets the border style of the control. - - - - Indicates whether the horizontal scroll bar is visible. - - if the horizontal scroll bar is - visible; otherwise. - - - - - - Indicates whether the vertical scroll bar is visible. - - if the vertical scroll bar is - visible; otherwise. - - - - - - Indicates whether the splitter control has closed the pane with this control. - - - - - MouseControllerDispatcher coordinates mouse events among competing mouse controllers. Based on - the position of the mouse and context of the control every registered controller's HitTest method - is called to determine the best controller for the following mouse action. This controller will then - receive mouse events. - - - See for more information. - - - - - Returns a reference to the active mouse controller that is receiving MouseDown, MouseMove, MouseUp messages when the user - has pressed a mouse button. - - - - - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Indicates whether the splitter control is closing the pane with this control. - - - - - Toggles support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. - - - - - - - - - - - When you call BeginUpdate(), the control by default does not handle WM_PAINT messages. Only - once you call EndUpdate they will be processed. If this causes problems in your application, you can - set this static property to True. In such cases, WM_PAINT messages will be simply discarded and - any invalid regions will be validated. - - - There is a problem with the default implementation of BeginUpdate. If a screen region is marked - invalid, the WndProc will be repeatedly called with WM_PAINT at the the top of the WndProc - until EndUpdate is called. This can cause your application to freeze if another window gets created - or if you make a web service call and WndProc messages need to be processed. - Setting DiscardPaintMessagesAfterBeginUpdate to True will help avoid these scenarios. - - - - - Returns true if object is executing method call. - - - - - Property MousePosition (Point) - cached Control.MousePosition. The variable is set - before any WM_MOUSE* messages being processed. - - - - - Gets or sets the acceleration behavior for scrollbars. - - - - - Indicates whether OnMouseMove should be called from OnDragOver. - - - - - - Gets or sets the control's size. Size is overridden here to prevent Code Generation in Designer. - - - - - - Gets or sets the control's bounds. Size is overridden here to prevent Code Generation in Designer. - - - - - Gets or sets the TabIndex. - TabIndex is overridden here to prevent Code Generation in Designer. - - - - Returns the settings for the current BeginUpdate option. - - - - - - - - Indicates whether BeginUpdate() has been called and the painting for a control is suspended. - - - - - Indicates whether there are updates pending for the control when painting is suspended by BeginUpdate. - - - - - Determines if EnableDoubleBufferSurface method was called and double buffering - using the DoubleBufferSurface is enabled. The DoubleBufferSurface buffering - is different from the automatic .NET double buffering and also a bit slower but - it reduces flicker if lots of scrolling is used and gdi drawing for individual cells - in a grid. - - - - - Returns the DoubleBufferSurface if EnableDoubleBufferSurface() was called. Otherwise - the method returns null. - - - - - Indicates whether is internally called. - - - - - Occurs when both and occur. - - - - - Occurs when the property has been changed. - - - - - Occurs when vertical scrollbar is moved. - - - - - Occurs when horizontal scrollbar is moved. - - - - - Occurs when the user presses the mouse wheel and drags the mouse. - - - Set of - to True if you provide customized scrolling in your event handler. - - - - - The ShowContextMenu event occurs when the user right-clicks inside - the control. - - - - You can cancel showing a content menu when - you assign True to . - - - - - - Occurs when accelerated scrollbar scrolling or mouse drag-scrolling starts. - - - - - Occurs when the splitter control has closed the pane with this control. - - - - - Occurs when the splitter control is closing the pane with this control. - - - - - Occurs when the user is dragging the scrollbar thumb. - - - - - Occurs when scrollbars are hidden or shown. - - - - - Occurs when the user holds the Control Key and rolls the mouse wheel. - - - - - Occurs when the value has changed. - - - - - Occurs when has been called the first time or - has been called the last time. - - - - - Occurs after the window has been scrolled. - - - - - Occurs while the window is being scrolled. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a is raised. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a event is raised and after auto-scrolling. - - - - - Occurs before a is raised and allows you to cancel the mouse event. - - - - - Occurs after a event is raised. - - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Occurs when the AutoScrolling property is changed. - - - If you want to prevent autoscrolling, you should handle this event - and reset the AutoScrolling property to ScrollBars.None. - - - - - Overridden. Changes to show or hide scrollbars and also consider the control's - setting. - - - - - Gets or sets the touch mode. - - - - - Gets or sets the color table for Office2016 Black theme scrollbar. - - - - - Gets or sets the color table for Office2016 white theme scrollbar. - - - - - Gets or sets the color table for Office2016 Dark gray theme scrollbar. - - - - - Gets or sets the color table for Office2016 colorful theme scrollbar. - - - - - Gets or sets the Office2016 Scrollbars - - - - - Toggles between standard and Office2007 scrollbars. - - - - - Gets or sets the style of Office2007 scroll bars. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Gets the rectangle that represents the client area of the control. If custom - scroll bars (ScrollBarCustomDraw, Office2007 style) are shown in the client area, then - this method will remove the area occupied by the scrollbars. - - - - - Gets or sets the height and width of the client area of the control. If custom - scroll bars (ScrollBarCustomDraw, Office2007 style) are shown the client area, then - this method will remove the area occupied by the scrollbars. - - - - - Gets or sets the Office like scrollbars. - - - - - Gets or sets the style of MS Office2010 scroll bars. - - - - - Gets or sets the style of Office2016 theme for scrollbars. - - - This is applicable for both the horizontal and vertical scrollbar. - - - - - Gets or sets the boolean value for enhanching the apperance settings for DpiAware enabled Application. - - - - - Provides the data about event of a . - - - - - Initializes a new . - - The record index. - - - - Gets or sets the Office scroll bars - - - - - Delegate for ScrollControlMouseDown, OnBeforeMouseMove and ScrollControlMouseUp methods. - - - - - - - Holds the Office2016 Theme colors - - - - - Indicates whether ScrollBar is displayed - - - - - Scroll Position - - - - - ScrollerFrame - - - - - Indicates whether to show the chevron button on the Navigation Panel - in the stacked GroupBar. - - - - - Collection of visible group bar items. - - - - - Gets or sets the color of the splitter in GroupBar if GroupBar is in stacked mode - - - - - Enable to change the color of the splitter in stacked mode. - - - - - Colors for Office2007 visual style. - - - - - Colors for Office2010 visual style. - - - - - Default size of the control - - - - - Default size of the collapsebutton - - - - - Header font - - - - - barItem height - - - - - Header height - - - - - Collapsedwidth - - - - - Get or Set of Skin Manager Interface - - - - - Resets the Splittercolor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - Resets the EnableSplittercolorCustomization - - - - - ShouldSerialize the EnableSplittercolorCustomization. - - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - - - - - - - - - - - - - - - Applies the scaling - - - - - Font changed - - - - - - - - - Creates a new instance of the class. - - - - - Starts an in-place edit of the specified text. - - Invoking this method will create an editable text box and and populates it with - the item text. Editing the text box contents and selecting ENTER will update the GroupBarItem text. - Selecting ESC will cancel the edit. - The zero-based index of the item to be renamed. - - - - - Cancels an in-place edit that is in progress. - - - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - An value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Draws the group bar control. - - A object. - - - - Draws the stacked group bar. - - The GPH. - - - - Draws the Header for . - - The control calls this method to paint the specified GroupBar Header. - Override this method to customize the GroupBar Header drawing. - - A object. - - - - Draws the object. - - The control calls this method to paint the specified GroupBarItem. - Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the to be drawn. - A value specifying the GroupBarItem bounds. - - - - Draws a border around the selected client control. - - The control calls this method to paint a border around the - the current selected client control. Override this method to customize the GroupBar drawing. - - A object. - A value specifying the client control bounds. - - - - Draws the icon. - - - The control calls this method to paint the specified - GroupBarItem's icon. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the icon is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws the icon. - - - The control calls this method to paint the specified - GroupBarItem's icon. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the icon is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws the text. - - - The control calls this method to paint the specified - GroupBarItem's text. Override this method to customize the GroupBar drawing. - - A object. - The zero-based index of the for which the text is drawn. - A value specifying the GroupBarItem bounds. - - - - Draws icon\image in navigation panel. - - - - - - - - Draws the drop down button. - - A object. - A value specifying the GroupBarItem bounds. - If set to true button is mirrored for RTL. - - - - Overridden. See . - - - - - Gets or Sets a value indicating whether selection logic includes visible items alone for SelectedItem calculation. - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overrides the MouseWheel event - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - - - Index of selected item is VisibleGroupBarItems - Index of selected item is GroupBarItems collection - - - - Gets the GroupBarItem from the corresponding mouse point. - - - - - Overloaded. Returns the GroupBarItem at the specified point in client coordinates. - - X - coordinate of the item. - Y - coordinate of the item. - GroupBarItem, whose area contains the specified point; Null, if nothing is found. - - - - Returns GroupBarItem at specified point in client coordinates. - - Point to search GroupBarItem at. - GroupBarItem, whose area contains the specified point; Null, if nothing is found. - - - - Creates and displays the drop-down button context menu. - - - - - Initializes the navigation button menu. - - The context menu provider used to create the menus. - - - - Raises the navigation pane button click event. - - An that contains the event data. - - - - Called when more buttons menuitem is clicked. - - An that contains the event data. - - - - Called when fewer buttons menuitem is clicked. - - An that contains the event data. - - - - - - - Helps to apply the Visual Style for Scroll Bar - - - - - Helps to update the Bounds of GroupBarItems - - - - - Helps to update the Bounds of GroupBarItems, when Scrolling action is performed - - AutoScrollPosition - - - - Overridden. See . - - - - - Signals the object that initialization is starting. - - - - - Signals the object that initialization is complete. - - - - - - - - - - - - - - - Indicates whether is collapsed. - - - - - Stores value while initialization. - - - - - Indicates whether can be collapsed. - - - - - Width of the collapsed . - - - - - Width of the expanded . - - - - - Item popup's client heigth. - - - - - Text shown in collapsed client area of GroupBar. - - - - - Collapse button's state. - - - - - Collapsed client area's state. - - - - - Collapse button's image in expanded state. - - - - - Collapse button's image in collapsed state. - - - - - Collapse button's tooltip, when control is expanded. - - - - - Group Bar button's tooltip. - - - - - GroupBarDropDownTooltip. - - - - - Navigation pane's tooltip. - - - - - 's popup. - - - - - Indicates whether item popup is allowed to be opened. - - - - - Image list for navigation menu in collapsed mode. - - - - - Image list for navigation menu for add/remove sub menu. - - - - - Size of the popup for GroupBarItem client. - - - - - item to its popup size mapping. - - - - - Indicates whether to show popup's gripper. - - - - - Popup's resize mode. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Indicates whether popup is closed after clicking on item. - - - - - for drawing . - - - - - Default collapse button's image in expanded state. - - - - - Default collapse button's image in collapsed state. - - - - - Group Bar button's tooltip. - - - - - Collapse button's tooltip, when is expanded. - - - - - Collapsed client area's tooltip. - - - - - Caption for add/remove parent menu item in navgation menu. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Resets the property to its default value. - - - - - Indicates whether property should be serialized. - - - - - Shows the item popup when the Group bar is Collapsed - - - GroupBar Item for which Popup to be shown - - - - - Hides the 's popup. - - - - - Occurs when a in the control - is selected. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs when a in the control is being selected. - - - - - Occurs after a has been renamed by an in-place edit operation. - - See and . - . - - - - Occurs after a has been added to the collection. - - See and . - - - - Occurs after a has been removed from the collection. - - See and . - - - - Occurs when the right mouse button is clicked over the control. - - The property will provide the index - of the over which the mouse was clicked. - - - - Occurs when a is about to be drawn. - - - Handle this event to provide a custom brush for painting the GroupBarItem background. - - See and . - - - - Occurs when the user clicks on the control's navigation pane drop-down button. - - - This GroupBar control displays the navigation pane only when the property is set. - - See and . - - - - Specifies the type of rendering done to icons - - - - - Returns the collection of visible group bar items. - - - - - Returns the collection of s in the control. - - An instance of the type. - - - - Gets / sets the alignment of the text displayed on the . - - A value. The default value is TextAlignment.Center. - - - - Indicates whether applying the default forecolor for GroupBar as per the visual style - - True if highlighting is enabled. The default is True. - - - - Indicates whether moving the mouse cursor over a will highlight it. - - True if highlighting is enabled. The default is True. - - - - Indicates whether switching between different s is animated. - - True if animated selection is enabled. The default is True. - - - - Gets / sets an integer that represents the index of the current selected . - - An integer value that specifies the zero-based index of the GroupBarItem. - - - - Returns the index of the that is currently under the mouse cursor. - - An integer value that specifies the zero-based index of the GroupBarItem. - - - - Returns the index of the that triggered the event. - - The zero-based index of the item. - - - - Gets / sets the height. - - An integer value that specifies the item height. - - - - Indicates whether integrated scroll buttons are to be used. - - This option is primarily intended for use with the Syncfusion control. - When this flag is set, the provides the scroll buttons for the current - selected GroupView control and interacts with it to achieve seamless scrolling behavior. - - True to enable integrated scrolling. The default is False. - - - - - Gets / sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Indicates whether XP Themes (visual styles) should be used for drawing the control. - - True to turn on themes; the default is False. - - - - Indicates whether the control is displayed with a flat look. - - True to display in flat mode. The default is False. - - - - Indicates the style to be used for drawing the control. - - A value; the default is VisualStyle.OfficeXP. - - - - Indicates the Office2007 theme used for drawing the control. - - - - - Indicates the Office2010 theme used for drawing the control. - - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the control. - - A object. - - - - Gets / sets the cursor that is displayed when the mouse pointer is over the s. - - A object. - - - - Indicates whether the s are displayed in a stack. - - -

When the property is set, the GroupBarItems are stacked at - the bottom of the control on top of a navigation pane. The stack size can be increased - or decreased by moving items to and from the navigation pane.

- NOTE: The StackedMode interface is similar to the Navigation Pane in Microsoft Outlook 2003. -
- True to set the stacked mode. The default is False. -
- - - Gets / sets the height of the header. - - - The GroupBar header is shown only when the property is set. - - An integer value that specifies the header height. - - - - Gets / sets the font of the text displayed in the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the forecolor for the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the backcolor for the header. - - - The GroupBar header is shown only when the property is set. - - A value. - - - - Gets / sets the height of the navigation pane. - - - The navigation pane is shown only when the property is set. - - An integer value that specifies the height. - - - - Gets / sets the width of the s shown in the navigation pane. - - - The navigation pane is shown only when the property is set. - - An integer value that specifies the GroupBarItem width. - - - - Indicates whether a border is drawn around the 's client window. - - - The border colors for each can be individually specified using the - property. - - A boolean value; the default is False. - - - - Gets / sets the menu provider object that will implement the 's contextmenu. - - - The GroupBar control automatically initializes this property depending on the presence of the Syncfusion Essential Tools library. - If Essential Tools is available, then the menu provider object will be an instance of the - type. If not, the class is used for implementing the standard .NET context menu. -

The GroupBar's automatic initialization should suffice for most applications and you should explicitly set this property - only when you want to override the default menu provider assignment.

-
- A implementation; the default is . -
- - - Indicates whether the Chevron button on the - Navigation Panel is shown in the Stacked GroupBar. - - - The navigation pane is shown only when the property is set. - - - - - Indicates whether the selected item's image is shown in header in the Stacked GroupBar. - - - - - Indicates the color of the 2D border. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or Sets the touchmode - - - - - Returns the String format for text drawing. - - - - - Returns the string format object for header drawing. - - - - - Indicates, if process of setting client for is in progress. - - - - - Gets or Sets a value indicating whether selection logic includes visible items alone for SelectedItem calculation. - - - - - Get is control initializing. - - - - - Gets or sets a value indicating whether this is collapsed. - - - Works only is in stacked mode. - - - - - - Gets or sets a value indicating whether can be collapsed. - - - - - - Gets or sets the width of the collapsed . - - - - - Gets or sets the text shown in collapsed client area of . - - - - - Gets or sets the image of the collapse button in expanded state. - - - - - Gets or sets the image of the collapse button in collapsed state. - - - - - Gets or sets the initial size of the popup for client. - - - - - Gets or sets a value indicating whether to show popup's gripper. - - - - - Gets or sets the popup's resize mode. - - - - - Gets or sets the tooltip for collapse button, when control is expanded. - - - - - Gets or sets the tooltip for collapse button, when control is collapsed. - - - - - Gets or sets the tooltip for GroupBarDropDownToolTip. - - - - - Gets or sets the navigation pane's tooltip. - - - - - Gets or sets a value indicating whether popup is closed after clicking on item. - - - - - Occurs when property is changed. - - - - - Occurs when property is about to be changed. - - Can cancel state changing. - - - - Occurs when before 's popup is shown. - - Can cancel popup showing. - - - - The collection of objects in the control. - - - Each group in the GroupBar is an instance of the GroupBarItem type and - the collection of these groups is represented by an instance of the - GroupBarItemCollection class. GroupBarItems may be added or removed using the - IList and ICollection interface methods implemented by the GroupBarItemCollection. - - - - - - Creates an instance of the GroupBarItemCollection class. - - The control that contains this collection. - - - - Adds the to the collection. - - The to be added. - The index of the new item within the collection. - - - - Inserts the into the collection at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Removes the specified by the index parameter. - - A zero-based index specifying the GroupBarItem to be removed. - - - - Removes the from the collection. - - The to be removed. - - - - Adds an array of GroupBarItems to the control's collection. - - An array of objects. - - - - Indicates whether the specified is present in the collection. - - The to locate in the collection. - True if the item is present; False otherwise. - - - - Returns the zero-based index of the in the collection. - - The to locate in the collection. - The zero-based index of the item; -1 if the item is not present. - - - - Gets / sets a in the collection. - - The zero-based index of the GroupBarItem to get / set. - - - - Collection of visible - - - - - Visible group bar items array list. - - - - - Copies the elements of the to an , starting at a particular index. - - - - - Returns the enumerator that iterates through the item collection. - - - - - Gets the number of elements contained in the . - - - - - Gets an object that can be used to synchronize access to the . - - - - - Gets a value indicating whether access to the is synchronized (thread safe). - - - - - Provides data for the event. - - The collapsed control uses the events to notify users, - that 's popup is about to be shown. - - - - - - Item that popup. - - - - - Popup's bounds. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Initializes a new instance of the class. - - The item. - The popup's bounds. - true to cancel the event; otherwise, false. - - - - Initializes a new instance of the class. - - The item. - The popup's bounds. - - - - The that popups. - - - - - Gets or sets the popup's bounds. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Represents the method that will handle the event in the control. - - The source of the event. - A that contains the event data. - - - - ControlAccessibleObject derived class that implements the Accessibility object for the GroupBar control. - - - - - Initializes a new instance of the class. - - - - - Initializes a new instance of the class. - - - - - Provides data about the and - events. - - - See , , and . - - - - - Creates a new instance of the GroupItemRenamedEventArgs class. - - The zero-based index of the renamed item. - The old item text. - The new item text. - - - - Returns the zero-based index of the renamed item. - - An integer representing the item index. - - - - Returns the new text of the item. - - A String value. - - - - Returns the old text of the item. - - A String value. - - - - Delegate representing the method that will handle the and - events. - - The source of the event. - A value that contains the event data. - - - - - Resize is not allowed. - - - - - Horizontal resize is allowed. - - - - - Vertical resize is allowed. - - - - - Both horizontal and vertical resize are allowed. - - - - - Owner control of the popup. - - - - - CallWnd hook. - - - - - Popup visibility. - - - - - Indicates whether popup is shown to the left of . - - - - - Indicates whether popup is shown to the top of - - - - - Processes Windows messages. - - The Windows to process. - - - - Shows the popup. - - if set to true shows the popup; hides overwise. - The instance containing the event data. - - - - Hides the popup. - - - - - Hides the popup. - - Allows to determine whether to clsoe popup in event handler. - - - - Gets or sets a value indicating whether the popup is displayed. - - true if the popup is displayed; otherwise, false. The default is false. - - - - Gets the required creation parameters when the control handle is created. - - - A that contains the required creation parameters when the handle to the control is created. - - - - Specifies whether OnLoad was called. - - - - - Specifies whether form is visible. - - - - - Indicates whether form must be inactive. - - - - - Gets or sets bool specifying whether form is visible. - - - - - Class for subclassing parent form and prevent it from blinking. - - - - - Catches WM_NCACTIVATE message if needed. - - - - - - Represents an item in the control. - - - Each item in a GroupView control is an instance of the GroupViewItem type. The - collection of GroupViewItems in the control can be accessed through the - property. - - - - - Gets or Sets the value to change the Text Position of the GroupViewItem - - - - - Serializes the ItemXSpacing property value. - - - - - Resets the ItemXSpacing property to its default value. - - - - - Gets / sets the height between adjacent GroupViewItems. - - - - - Indicates whether the is visible. - - - - - Item bounds. - - - - - Overloaded. Creates an instance of the class. - - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - An Object value that contains data about the GroupViewItem. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - An Object value that contains data about the GroupViewItem. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - A boolean value representing the item's enabled / disabled state. - An Object value that contains data about the GroupViewItem. - A String value representing the GroupViewItem tooltiptext. - - - - Creates an instance of the class with the specified attributes. - - A String value representing the GroupViewItem text. - An integer value representing a zero-based index into the - control's small and large imagelists. - An Object value that contains data about the GroupViewItem. - A boolean value representing the item's show/hide the GroupViewItems. - - - - Gets / sets the 's tooltiptext. - - A string value. - - - - Gets or Sets the value to change the Text Position of the GroupViewItem - - - - - Gets / sets the height between adjacent s. - - An integer value. - - - - Gets or sets item bounds. - - - - - Indicates whether the is visible. - - False if the item is hidden. The default is True. - - - - Gets / sets the 's text. - - A String value. - - - - Gets / sets the 's image index. - - An integer value. - A zero-based index into the control's - and property values. - - - - - Indicates whether the is enabled / disabled. - - False if the item is disabled. The default is True. - - - - Gets / sets an object that contains data about the . - - - An value that contains data about the GroupViewItem. - The default is a NULL reference (Nothing in Visual Basic). - - - Any type derived from the Object class can be assigned - to this property. If the Tag property is set through - the Windows Forms designer, only text may be assigned. - - - - - Returns the GroupView control that the item is assigned to. - - - A that represents the parent GroupView control that the is assigned to. - - - - - Represents a control that can display a list of items. - - -

- The GroupView control implements a list type control that can display a set of items where - each item is represented by an image and a descriptor. Items are implemented as - instances of the class. The collection of GroupViewItems in the - control can be accessed through the property that returns - a reference to the object maintained - by the control. -

-

- The GroupView control is capable of displaying items with large or small icons in various - combinable styles such as the default selectable style, button-type selection, full-item select - and an icon-only flowview mode. All styles are available in the regular 3D or a FlatLook mode. - The control also implements an IntegratedScrolling option that allows scrolling to - be delegated to its parent container. -

-

- The GroupView control can be used in conjunction with the Essential Tools control - to implement composite controls such as the Microsoft OutlookBar and the Visual Studio.NET toolbox window. - The latter scenario makes use of the IntegratedScrolling feature supported by the two controls. -

-
- - - The sample code shows how to create a GroupView control and initialize the Behavior and Appearance properties - to resemble the Visual Studio.NET toolbox window. A handler for the GroupView.GroupViewItemSelected event - is also shown. - - - private void InitializeGroupView() - { - // Create the GroupView control. - this.gvcWinForms = new Syncfusion.Windows.Forms.Tools.GroupView(); - - // Set the large and small ImageLists. - this.gvcWinForms.LargeImageList = this.ilGroupBarLarge; - this.gvcWinForms.SmallImageList = this.ilGroupBarSmall; - - // Set the GroupView properties to display as a VS.NET tool box type window. - this.gvcWinForms.SmallImageView = true; - this.gvcWinForms.HighlightText = true; - this.gvcWinForms.ButtonView = true; - this.gvcWinForms.FlowView = false; - this.gvcWinForms.FlatLook = false; - this.gvcWinForms.TextWrap = false; - - this.gvcWinForms.ImageSpacing = 2; - this.gvcWinForms.ItemXSpacing = 8; - this.gvcWinForms.ItemYSpacing = 1; - - this.gvcWinForms.BackColor = SystemColors.Control; - this.gvcWinForms.ForeColor = SystemColors.ControlText; - - this.gvcWinForms.HighlightItemColor = SystemColors.Control; - this.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight); - this.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight); - this.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control; - - this.gvcWinForms.SelectingTextColor = SystemColors.ControlText; - this.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText; - - // Create and add the GroupViewItem objects. - this.gvcWinForms.GroupViewItems.AddRange( - new Syncfusion.Windows.Forms.Tools.GroupViewItem[] { - new Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11), - new Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12), - new Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)}); - - // Provide a handler for the GroupView.GroupViewItemSelected event. - this.gvcWinForms.GroupViewItemSelected += new System.EventHandler(this.gvcWinForms_GroupViewItemSelected); - } - - // GroupView.GroupViewItemSelected event handler. - private void gvcWinForms_GroupViewItemSelected(object sender, System.EventArgs e) - { - MessageBox.Show(String.Concat("Selected Item Index = ", this.gvcWinForms.SelectedItem.ToString())); - } - - - - Private Sub InitializeGroupView() - - ' Create the GroupView control - Me.gvcWinForms = New Syncfusion.Windows.Forms.Tools.GroupView() - - ' Set the large and small ImageLists - Me.gvcWinForms.LargeImageList = Me.ilGroupBarLarge - Me.gvcWinForms.SmallImageList = Me.ilGroupBarSmall - - ' Set the GroupView properties to display as a VS.NET Toolbox type window - Me.gvcWinForms.SmallImageView = True - Me.gvcWinForms.HighlightText = True - Me.gvcWinForms.ButtonView = True - Me.gvcWinForms.FlowView = False - Me.gvcWinForms.FlatLook = False - Me.gvcWinForms.TextWrap = False - - Me.gvcWinForms.ImageSpacing = 2 - Me.gvcWinForms.ItemXSpacing = 8 - Me.gvcWinForms.ItemYSpacing = 1 - - Me.gvcWinForms.BackColor = SystemColors.Control - Me.gvcWinForms.ForeColor = SystemColors.ControlText - - Me.gvcWinForms.HighlightItemColor = SystemColors.Control - Me.gvcWinForms.SelectingItemColor = ControlPaint.Light(SystemColors.ControlLight) - Me.gvcWinForms.SelectedItemColor = ControlPaint.Light(SystemColors.ControlLight) - Me.gvcWinForms.SelectedHighlightItemColor = SystemColors.Control - - Me.gvcWinForms.SelectingTextColor = SystemColors.ControlText - Me.gvcWinForms.SelectedHighlightTextColor = SystemColors.ControlText - - ' Create and add the GroupViewItem objects. - Me.gvcWinForms.GroupViewItems.AddRange(New Syncfusion.Windows.Forms.Tools.GroupViewItem() {New Syncfusion.Windows.Forms.Tools.GroupViewItem("Pointer", 11), New Syncfusion.Windows.Forms.Tools.GroupViewItem("Label", 12), New Syncfusion.Windows.Forms.Tools.GroupViewItem("LinkLabel", 13)}) - - ' Handle the GroupView.GroupViewItemSelected event. - AddHandler Me.gvcWinForms.GroupViewItemSelected, New System.EventHandler(AddressOf gvcWinForms_GroupViewItemSelected) - - End Sub - - ' GroupView.GroupViewItemSelected event handler. - Private Sub gvcWinForms_GroupViewItemSelected(ByVal sender As Object, ByVal e As System.EventArgs) - - MessageBox.Show([String].Concat("Selected Item Index = ", Me.gvcWinForms.SelectedItem.ToString())) - - End Sub 'gvcWinForms_GroupViewItemSelected - - -
- - - Specifies the name of the custom type used for drag-and-drop. - - - - - Indicates whether the is enabled / disabled. - - True if the ToolTip is enabled. The default is False. - - - - Indicates whether the items being selected. - - - - - Indicates whether FlowView value was changed during renaming. - - - - - Store index of which was hitted before current - - - - - Indicate whether is under mouse pointer - - - - - Indicate whether is showing for the first time - - False if the ToolTip isn't showing. The default is True. - - - - Initialize Timer - - - - - Initialize ToolTip - - - - - Shows ToolTip - - A string value representing ToolTip's text - - - - Get which is under mouse pointer - - Represent mouse pointer - - - - Start showing tooltips - - Representint interval before showing ToolTip - - - - Stops showing tooltips - - - - - - - - Applies the scaling - - - - - Font changed - - - - - ToolTip last mouse buttons downed. - - - - - ToolTip last mouse downed time. - - - - - ToolTip last mouse downed point. - - - - - Indicates whether control should show GroupViewItem text in FlowView mode. - - - - - Stores length in FlowView mode. - - - - - GroupViev orientation. - - - - - Gets the GroupViewItem Bounds. - - GroupViewItem index - Padding between the GroupViewItem - Bounds - - - - Gets the GroupViewItem Bounds. - - GroupViewItem index - Padding between the GroupViewItem - Bounds - - - - Name visible property for PropertyChangedEventArgs - - - - - ArrayList visible items. - - - - - Holds the backcolor of metro theme - - - - - Default size of the control - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Holds the office2016 colorscheme - - - - - Reset the Office2016ColorScheme - - - - - - Serializes the Office2016ColorScheme - - - - - - Holds the style - - - - - Reset the Style - - - - - - Serializes the Style - - - - - - Occurs when the style changes - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Allow drag any object. - - - - - Creates a new instance of the control. - - - - - Starts an in-place edit of the specified text. - - - Invoking this method will create an editable text box and and populate it with - the item text. Editing the textbox contents and selecting ENTER will update the item text. - Selecting ESC will cancel the edit. - - The zero-based index of the item to be renamed. - - - - - Cancels an inplace renaming that is in progress. - - - - - - Brings the specified into the visible area of the control. - - The zero-based index of the item. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the GroupView Item double click event. - - GroupViewItemDoubleClickEventArgs - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Raises the event. - - A value that contains the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Size changed - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Called by the tab control when mouse hovers on the control. - - The instance containing the event data. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overloaded. Returns the GroupViewItem at the specified point in client coordinates. - - X - coordinate of the item. - Y- coordinate of the item. - GroupViewItem, whose area contains specified point; null, if nothing is found. - - - - Returns GroupViewItem at the specified point in client coordinates. - - Point where the GroupViewItem is located. - GroupViewItem, whose area contains specified point; Null, if nothing is found. - - - - Draws the highlighting of GroupViewitem. - - A object. - The index of the groupViewItem. - A value specifying the GroupViewItem bounds. - The state of the item. - - - - Overridden. See . - - - - - Gets or sets whether tooltips for GroupViewItems should be shown or not. - Use property to get\set ToolTip text. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or Sets the touchmode - - - - - Gets or sets GroupViev orientation. - - - - - Gets or sets ToolTip last mouse buttons downed. - - - - - Gets or sets ToolTip last mouse downed time. - - - - - Gets or sets ToolTip last mouse downed point. - - - - - Gets ArrayList visible items. - - - - - Occurs when a in the - control is selected. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs when a GroupViewItem is double clicked. - - - - - Occurs when a in the control is highlighted. - - - Use the property to get the index of the newly - selected item. - - - - - Occurs after the items in a control have been reordered by a - drag-and-drop operation. - - - - - Occurs after a has been renamed by an in-place edit operation. - - - See and . - - . - - - - Occurs when the right mouse button is clicked over the control. - - The property will provide the index - of the over which the mouse was clicked. - - - - Gets / sets the collection of objects in the control. - - An instance of the type. - - - - Gets or sets the height between the highlighted edge of a and the image. - - - In mode, the ImageSpacing value also - dictates the horizontal distance between the highlighted edge and the image. - - An integer value. - - - - Gets / sets the distance between the image and the text. - - - In large icon mode, this attribute represents the vertical distance between the GroupViewItem image and the text, - while in small icon mode, it represents the horizontal distance between the two. - - An integer value. - - - - Gets / sets the horizontal distance between a and the control's left border. - - An integer value. - - This attribute is valid only when is True. In large image view, the items are drawn centered. - - - - - Gets / sets the height between adjacent s. - - An integer value. - - - - Gets or sets the 's text length in FlowView mode. - - An integer value. - - - - Gets or sets the distance by which the image is offset when the mouse is moved over it. - - A value. - - - - Gets or sets the distance by which the text is offset when the mouse is moved over it. - - A value. - - - - Gets the office2016 style colors respective to the style - - - - - Gets or sets the office2016 colorscheme - - - - - Gets or sets the style - - - - - Gets / sets the distance by which the image is offset when it is selected. - - A value. - - - - Gets / sets the distance by which the text is offset when it is selected. - - A value. - - - - Gets / sets the distance by which the selected image is offset when the mouse is moved over it. - - A value. - - - - Gets / sets the distance by which the selected text is offset when the mouse is moved over it. - - A value. - - - - Gets / sets the distance by which the image is offset when it is being selected. - - A value. - - - - Gets / sets the distance by which the text is offset when it is being selected. - - A value. - - - - Gets / sets the image list containing the large (32x32) images. - - - - - An ImageList type. - - - - Gets / sets the image list containing the small (16x16) images. - - An ImageList type. - - - - - - - Indicates whether the control displays items using the images in the . - - True if the small image mode is set. The default is False. - - - - Indicates whether items are drawn with a button-type flat look upon selection. - - True if the button-type selection is set. The default is False. - - - - Indicates whether the flow view display mode is set. - - - In the default display mode, the control items are arranged top-down in list form. - In the flow mode, however, item images are arranged side by side for the full width of the control. - Resizing the control will wrap the images. Text will not be displayed in this mode, - unless the ShowFlowViewItemText property set to True. - - True if flow view is set. The default is False. - - - - Indicates whether control should show GroupViewItem text in FlowView mode. - - - True if should show text. The default is False. - - - - - Indicates whether scrolling should be delegated to the control's parent. - - - This option is primarily intended for use with the Syncfusion control. - When this option is set, the GroupView control delegates scrolling behavior to the - parent GroupBar control. When IntegratedScrolling is set to False, the control provides its own scroll buttons. - - True to enable integrated scrolling. The default is False. - - - - - Gets / sets the index of the currently selected . - - The zero-based index of the selected item. -1 if a selected item is not available. - - - - Returns the over which the mouse cursor is hovering. - - The zero-based index of the item under the cursor. -1 if no item is being highlighted. - - - - Returns the index of that triggered the event. - - The zero-based index of the item. - - - - Gets / sets a value indicating whether the image is highlighted when the mouse is moved over it. - - False if image highlighting is disabled. The default is True. - - - - Indicates whether the text is highlighted when the mouse is moved over it. - - False if text highlighting is disabled. The default is True. - - - - Indicates whether the text is underlined when the mouse is moved over it. - - True if text underlining is enabled. The default is False. - - - - Gets or sets the color used for drawing the background of a when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the background of the selected . - - A value. - - - - Gets / sets the color used for drawing the background of the selected when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the background of the being selected. - - A value. - - - - Gets or sets the color used for drawing the text when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the selected text. - - A value. - - - - Gets / sets the color used for drawing the selected text when the mouse is moved over it. - - A value. - - - - Gets / sets the color used for drawing the text while it is being selected. - - A value. - - - - Gets or sets the brush used for drawing the control background. - - A value. - - - - Gets / sets the color used for drawing the Metro style border - - A value. - - - - Gets or sets the brush used for drawing the background of the selected . - - A value. - - - - Gets or sets the brush used for drawing the background of the selected - when the mouse is moved over it. - - A value. - - - - Gets or sets the brush used for drawing the background of the highlighted . - - A value. - - - - Gets or sets the brush used for drawing the background of the being selected. - - A value. - - - - Gets or sets the border style of the control. - - A value. The default is BorderStyle.Fixed3D. - - - - Indicates whether the text should be wrapped. - - - Text wrapping is available only with the large icon display mode. - - True to turn on wrapping. The default is False. - - - - Indicates whether the control is displayed with a flat look. - - True to display in flat mode. The default is False. - - - - Indicates whether XP Themes (visual styles) should be used for drawing the control. - - True to turn on themes; the default is False. - - - - Gets a value indicating whether the control supports drop. - - - - - Indicates whether the control supports drag-and-drop of objects. - - - - - Gets or sets allow drag any object. For use this property AllowDragDrop must be true. - - - - - Indicates whether the selection bounds of a are clipped around its image and text. - - A Boolean value. The default is False. - - - - Gets the Height of the Item's Text. - - - - - The collection of objects present in the GroupView control. - - - Each item in a control is an instance of a - type and the collection is represented by the GroupViewItemCollection class. - The GroupViewItemCollection class implements the IList and ICollection interfaces. - - - - - - Raises the collection changed event. - - - - - Creates a new instance of the class. - - The control that contains this collection. - - - - Adds the GroupViewItem to the collection. - - The to be added. - The zero-based index of the new item within the collection. - - - - Inserts the into the collection at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Removes the GroupViewItem from the collection. - - The to be removed. - - - - Adds an array of GroupViewItems to the control's collection. - - An array of objects. - - - - Indicates whether the specified GroupViewItem is present in the collection. - - The to locate in the collection. - True if the item is present; False otherwise. - - - - Returns the zero-based index of the GroupViewItem. - - The to locate in the collection. - The zero-based index of the item; -1 if the item cannot be found. - - - - Occurs when a is changed. - - - - - Gets / sets a in the collection. - - The zero-based index of the GroupViewItem to get or set. - - - - Event handler for Double click event for GroupViewItem. - - Sender as GroupView - GroupViewItemDoubleClickEventArgs - - - - Event args for Double click in GroupViewItem. - - - - - GroupView Item - - - - - Constructor - - GroupView Item - - - - Gets/ Sets the currently selected item. - - - - - ControlAccessibleObject derived class that implements the Accessibility object for the GroupView control. - - - - - This class represents renderer class for office2016 theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlighted border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item selected and highlighted backcolor - - - - - Holds the item pressed backcolor - - - - - Holds the item highlighted text color - - - - - Holds the item selected text color - - - - - Holds the selected and highlighted text color - - - - - Holds the item pressed color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Constructor for renderer class - - Theme of GroupView - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the item selected border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the item selected and highlighted text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border Color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents renderer class for office2016 white theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlight border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the selected item backcolor - - - - - Holds the selected and highlighted backcolor - - - - - Holds the pressed item backcolor - - - - - Holds the item highlight text color - - - - - Holds the item selected text color - - - - - Holds the item selected and highlighted text color - - - - - Holds the item pressed text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents rendered class for office2016 darkgray theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the selected Border color - - - - - Holds the highlighted border color - - - - - Holds the pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item highlighted backcolor - - - - - Holds the pressed item backcolor - - - - - Holds the highlighted item text color - - - - - Holds the selected item text color - - - - - Holds the selected and highlighted item text color - - - - - Holds the pressed item text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighting text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This class represents rendered class for office2016 black theme - - - - - Holds the backcolor - - - - - Holds the forecolor - - - - - Holds the border color - - - - - Holds the item selected border color - - - - - Holds the item highlighted border color - - - - - Holds the item pressed border color - - - - - Holds the item highlighted backcolor - - - - - Holds the item selected backcolor - - - - - Holds the item selected and highlighted backcolor - - - - - Holds the item pressed backcolor - - - - - Holds the highlighted item text color - - - - - Holds the selected item text color - - - - - Holds the selected and highlighted item text color - - - - - Holds the pressed item text color - - - - - Holds the disabled backcolor - - - - - Holds the disabled border color - - - - - Holds the disabled forecolor - - - - - Holds the scrollbutton backcolor - - - - - Holds the scrollbutton pressed backcolor - - - - - Holds the scrollbutton forecolor - - - - - Holds the scrollbutton border color - - - - - Holds the dragdrap line color - - - - - Gets the backcolor - - - - - Gets the forecolor - - - - - Gets the border color - - - - - Gets the selected item border color - - - - - Gets the item highlighted border color - - - - - Gets the item pressed border color - - - - - Gets the item highlighted backcolor - - - - - Gets the item selected backcolor - - - - - Gets the item selected and highlighted backcolor - - - - - Gets the item pressed backcolor - - - - - Gets the item highlighted text color - - - - - Gets the item selected text color - - - - - Gets the selected and highlighted item text color - - - - - Gets the item pressed text color - - - - - Gets the disabled backcolor - - - - - Gets the disabled forecolor - - - - - Gets the disabled border color - - - - - Gets the scrollbutton backcolor - - - - - Gets the scrollbutton pressed backcolor - - - - - Gets the scrollbutton forecolor - - - - - Gets the scrollbutton border color - - - - - Gets the dragdrop line color - - - - - This enum represents the color schemes of office2016 style - - - - - This option represents the colorful theme of office2016 style - - - - - This option represents the white theme of office2016 style - - - - - This option represents the darkgray theme of office2016 style - - - - - This option represents the black theme of office2016 style - - - - - Collection of images for ImageListAdv. - - - - - Adds icon to the collection. - - Icon to add. - - - - Adds image to the collection. - - Image to add. - - - - Checks whether collection contains given image. - - Image to be checked. - True if collection contains given image; otherwise false. - - - - Gets index of given image. - - Image to get index of. - Index of given image or -1 if image doesn't exist in collection. - - - - Removes given image from collection. - - Image to remove. - - - - Adds icon with specified key to collection. - - Key of the icon. - Icon to add. - - - - Adds image with specified key to collection. - - Key of the image. - Image to add. - - - - Adds array of images to collection. - - Array of images to add. - - - - Checks whether given key exists in collection. - - Key to be checked. - True if given key exists in collection; otherwise false. - - - - Gets enumerator for collection. - - Enumerator for collection. - - - - Gets index of given key. - - Key to get index of. - Index if given key or -1 if key doesn't exist in collection. - - - - Removes image with specified key. - - Key of image to remove. - - - - Sets new name to specified key. - - Index of key to set new name to. - New name of specified key. - - - - Copies the elements of the ICollection to an Array, starting at a particular Array index. - - The one-dimensional Array that is the destination of the elements copied from ICollection. - The Array must have zero-based indexing. - The zero-based index in array at which copying begins. - - - - Adds an item to the IList. - - The Object to add to the IList. - The position into which the new element was inserted. - - - - Determines whether the IList contains a specific value. - - The Object to locate in the IList. - True if the Object is found in the IList; otherwise, false. - - - - Determines the index of a specific item in the IList. - - The Object to locate in the IList. - The index of value if found in the list; otherwise, -1. - - - - Inserts an item to the IList at the specified position. - - The zero-based index at which value should be inserted. - The Object to insert into the IList. - - - - Removes the first occurrence of a specific object from the IList. - - The Object to remove from the IList. - - - - Gets value indicating whether collection is empty. - - - - - Added for compatibility reasons. - - - - - Gets or sets image at specified index. - - Index of image. - Image at specified index - - - - Gets or sets image with specified key. - - Key of image. - Image with specified key. - - - - Gets collection of keys. - - - - - Gets or sets the element at the specified index. - - The zero-based index of the element to get or set. - The element at the specified index. - - - - Custom type descriptor for class. - Filters our property - - - - - Initializes a new instance of the class. - - The parent custom type descriptor. - - - - Returns a collection of property descriptors for the object represented by this type descriptor. - - - A containing the property descriptions for the object represented by this type descriptor. The default is . - - - - - Returns a filtered collection of property descriptors for the object represented by this type descriptor. - - An array of attributes to use as a filter. This can be null. - - A containing the property descriptions for the object represented by this type descriptor. The default is . - - - - - Filters the properties. - - The initial collection of property descriptors. - The filtered collection of property descriptors. - - - - Custom rpovider of custom type descriptor for class. - - - - - Initializes a new instance of the class. - - - - - Gets a custom type descriptor for the given type and object. - - The type of object for which to retrieve the type descriptor. - An instance of the type. Can be null if no instance was passed to the . - - An that can provide metadata for the type. - - - - - Editor for ImageCollection. - - - - - Static instance of . - - - - - Static instance of custom for s. - - - - - Initializes the class. - - - - - Initializes a new instance of the class. - - The type of the collection for this editor to edit. - - - - Creates the instance. - - The type. - - - - - Returns a list containing the given object - - An returned as an object. - - An which contains the individual objects to be created. - - - - - Destroys the specified instance of the object. - - The object to destroy. - - - - Edits the value of the specified object using the specified service provider and context. - - An that can be used to gain additional context information. - A service provider object through which editing services can be obtained. - The object to edit the value of. - - The new value of the object. If the value of the object has not changed, this should return the same object it was passed. - - - An attempt to check out a file that is checked into a source code management program did not succeed. - - - - - Editor for images in ImageListAdv. - - - - - FileDialog for selecting images. - - - - - Array of image editors of different types. Used in building string of file extensions. - - - - - Initializes static members. - - - - - Edits the specified object value using the edit style provided by GetEditStyle. - - An ITypeDescriptorContext that can be used to gain additional context information. - A service provider object through which editing services can be obtained. - An instance of the value being edited. - The new value of the object. If the value of the object has not changed, - this method should return the same object passed to it. - - - - Class containing info about image: the image itself and string key. - - - - - Image. - - - - - Key. - - - - - Creates new ImageInfo. - - Image. - Key. - - - - Gets or sets image. - - - - - Gets or sets key. - - - - - ImageList with support for images of different sizes and transparency. - - - - - Default image size. - - - - - Collection of images. - - - - - Size of images. Used in drawing and for compatibility reasons. - - - - - Indicates whether images should be drawn using ImageSize property. - - - - - Tag object. - - - - - Creates and initializes new ImageListAdv. - - - - - Creates and initializes new ImageListAdv. - - Container to add component to. - - - - Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; - otherwise it's drawn using original size. - - Graphics to draw to. - Point to draw image at. - Index of image to draw. - - - - Draws selected image to specified Graphics. If UseImageSize property is set to true, image is drawn using ImageSize property; - otherwise it's drawn using original size. - - Graphics to draw to. - X coordinate of point to draw image at. - Y coordinate of point to draw image at. - Index of image to draw. - - - - Draws selected image to specified Graphics using given size. - - Graphics to draw to. - X coordinate of point to draw image at. - Y coordinate of point to draw image at. - Width of rectangle to draw image to. - Height of rectangle to draw image to. - Index of image to draw. - - - - Explicitly converts ImageList to ImageListAdv. - - ImageList to convert. - ImageListAdv with images from given ImageList. - - - - Explicitly converts ImageListAdv to ImageList. - - ImageListAdv to convert. - ImageList with images from given ImageListAdv. - - - - Converts ImageListAdv to ImageList. - - ImageList with images from ImageListAdv. - - - - creates ImageListAdv from ImageList. - - ImageList to create ImageListAdv from. - Created ImageListAdv. - - - - Converts Icon to Image with correction of alpha channel. - - Icon to convert. - Resulting Image. - - - - Checks whether Bitmap has alpha channel. - - BitmapData to check. - True if bitmap has alpha channel; otherwise false. - - - - Creates string with info about ImageListAdv. - - String with info about ImageListAdv - - - - - - - - - - - - - - - - - - - - - Gets collection of images. - - - - - Gets or sets size of images. Used in drawing. - - - - - Gets or sets value indicating whether images should be drawn using ImageSize property. - - - - - Gets or sets tag object. - - - - - ImageListAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - - - - Workaround for incident 35141. When calling Timer.Stop in GridGroupDropArea - this ends up calling MdiSysMenuProvider.MsgHook - - - - - Provides some utility methods regarding the runtime. - - - - - Returns the major runtime version. - - - - - Returns the minor runtime version. - - - - - This class will provide more information that the .Net equivalent ignored. - - - - - Indicates whether menu access keys are always underlined. - - - - - Indicates whether the current application is a .Net application. - - True if .Net; false otherwise. - - By default, this method will automatically determine whether or not the current active - app is a .Net app or a native app. However, to speed up performance (by a fraction of a second), - you can set this value appropriately at the beginning of your app. Note that - an incorrect setting would cause unforeseen behavior. - - - - - Indicates whether the component is used inside developer studio. - - - - - Interop call to get the LCID of the current culture. - - - - - Sets the advanced graphics mode. - - Handler to device context. - New graphics mode. - If the function succeeds, the return value is the old graphics - mode. If the function fails, the return value is zero. - - - - Changes the world transformation for a device context using - the specified mode. - - Handler to device context. - Transformation data. - Modification mode. - If the function succeeds, the return value is nonzero. - If the function fails, the return value is zero. - - - - Sets a two-dimensional linear transformation between world space and - page space for the specified device context. - - Handler to the device context. - Pointer to an XFORM structure that contains the transformation data. - TRUE if success; false otherwise. - - - - For the scroll bar itself, indicates the specified vertical or horizontal scroll bar does not exist. - For the page up or page down regions, indicates the thumb is positioned such that the region does not exist. - - - - - For the scroll bar itself, indicates the window is sized such that the specified vertical or horizontal scroll bar is not currently displayed. - - - - - The arrow button or page region is pressed. - - - - - The component is disabled. - - - - - Computes the string size that should be passed to a typical Win32 call. - This will be the character count under NT and the ubyte count for Win95. - - - The string whose size to compute. - - - The count of characters or bytes, depending on what the pinvoke - all wants - - - - - Native Matrix Object. - - - - - The NativeMethodsHelper class is a wrapper over some Interop calls that are exposed using static methods - in this class. - - - - - Keeps track of the number of times Suspend and Resume redraw window is called for a particular window. - - - - - Sends the WM_SETREDRAW to the handle of the Control to prevent drawing of the control. - - The handle of the control that is to be suspended. - - - - Resumes redrawing of the window. - - - - - Resumes redrawing of the window. - - - - - - - Sends the WM_SETREDRAW message to a window to allow changes in that window to be redrawn - or to prevent changes in that window from being redrawn. - - Handle to the native window. - Indicates the redraw state. - If this parameter is true, the content can be redrawn after a change. - If this parameter is false, the content cannot be redrawn after a change. - Forces redraw of the window using . - Works only if bRedraw is true. - - - - Overload of - Forcefully redraws window if redraw is enabled. - - - - Subclass window that allowing attaching of - message filters classes into Message processing. - - - Value that represent invalid window handle. - - - Reference on message filter instance. - - - Default constructor that subclass window by it handle automatically. - Window Handle. - - - Override of WndProc function. - Reference on message processed by Window. - - - Gets and Sets reference on message filter instance. - - - - A structure that represents a location in the registry. - - - This is a simple structure that refers to a Registry location - through the root RegistryKey and the subkey. - - - - - Creates a new instance of the RegistryEntry class and - initializes it with the root RegistryKey and subkey. - - The root RegistryKey. - The subkey string. - - - - Gets / sets the root RegistryKey. - - A RegistryKey value. - - - - Gets /sets the subkey under the root RegistryKey. - - A string value representing the subkey. - - - - Specifies the relative position of an control to that of the - control it labels. - - - - - The relative AutoLabel position can be set manually. - - - - - Left has been replaced with side, to take into account RightToLeft configs. Please use side instead. - - - - - The AutoLabel is always positioned to the top of the labeled control. - - - - - The AutoLabel is always positioned to the left (or right if the parent control is RTL enabled) of the labeled control. - Replaces Left. - - - - - A derived class that lets you label any control with it. - - - Once a control is labeled by an instance of AutoLabel (through the property, - the label gets moved around as the labeled control moves around - automatically, preserving the relative positions. The relative positions can - also be configured to be left, top or custom through the property. - - Note that the manager will treat the label and its control as a - pair, always laying them out together as if they were one single control. - - - - - - Value for PreferredHeight adding when borders are present. - - - - - Value for PreferredHeight adding when borders are absent. - - - - - Font changed - - - - - Raises the PropertyChanged event. - - - An object containing data pertaining to this event. - - - The OnPropertyChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnPropertyChanged in a derived - class, be sure to call the base class's OnPropertyChanged method so that - registered delegates receive the event. - - - - - - - - - - - - - - - - - Updates the position of the AutoLabel when the parameters that affect - the relative positions have changed (like the LabeledControl's position, size, etc.). - - - - - Called when a new control is getting labeled (when set through the property. - - The control that is being labeled. - - - - Called when an exisiting label is getting unlabeled. - - The control that is being unlabeled. - - - - - - - Update the back color and forecolo of the control when the visual style is changed. - - - - - Processes Windows messages. - - The Windows System.Windows.Forms.Message to process. - - - - Paints the control. - - - - - Draw the border to the contol. - - - - - - - - Calculates the size of the label's text. - - Text for measuring. - Current font. - Size of the text. - - - - Fired when the LabeledControl, Gap and Position properties of this class changes. - - - - - Update the renderer for Office2016 style. - - - - - Gets or sets the VisualStyle to the . - - - - - Gets or sets a value indicating whether the control is automatically resized - to display its entire contents. - - - - - Gets or sets the control that is being labeled. - - A control instance. - - - - Gets / sets the relative position of the control and the AutoLabel. - - - - - Returns the preferred height of the control. - - - - - Gets or sets the horizontal and vertical gap to use when computing the relative position. - - - - - Gets or sets the effective horizontal distance between the left of the AutoLabel and its labeled control. - - When RightToLeft == Yes DX is the distance between the right of the labeled control - and the right of the AutoLabel. - - - - Gets or sets the effective vertical distance between the top of the AutoLabel and its labeled control. - - - - - Specifies the style with which some controls will appear and behave. - - - - - Classic appearance. - - - - - Office2016 Colorful - - - - - Office2016 White - - - - - Office2016 Black - - - - - Office2016 DarkGray - - - - - Gets the back color of the AutoLabel for office2016 colorful style. - - - - - Gets the Fore color of the AutoLabel for office2016 colorful style. - - - - - Gets the Fore color of the AutoLabel, when control is disabled. - - - - - Gets the Border color of the AutoLabel for office2016 colorful style. - - - - - Gets the back color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Fore color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Border color of the AutoLabel for office2016DarkGray style. - - - - - Gets the Border color of the AutoLabel for office2016 colorful style. - - - - - Gets the back color of the AutoLabel for office2016Black style. - - - - - Gets the Fore color of the AutoLabel for office2016Black style. - - - - - Gets the Border color of the AutoLabel for office2016Black style. - - - - - Represents the layout manager that lays out the children along the borders and - at the center, very similar to the Windows Form's control docking behavior. - - - - This layout manager will dock up to five controls along the four borders and the - center. This is very similar to the control docking behavior exhibited by the - DockStyle setting of a control. - - The and methods - let you specify a for a child control and also - act as an extended property during design-time for the child controls. - Here are some of the differences between Windows Forms style docking and the - BorderLayout. - - - When using BorderLayout, there can be only a single control that - can be docked to a border. - - - When using BorderLayout and the setting, - the bounds for layout can be customized to be something different from the control's client - rectangle. - - - Just like our other s, you can layout non-control - based items when using the BorderLayout. - - - - - Here is some sample code that tells you how to initialize a CardLayout manager. - - // Binding a control to the CardLayout manager programmatically. - this.borderLayout1 = new BorderLayout(); - this.borderLayout1.ContainerControl = this; - - // Set the border-position of the button. - this.borderLayout1.SetPosition(this.btnNorth, BorderPosition.North); - this.borderLayout1.SetPosition(this.btnSouth, BorderPosition.South); - this.borderLayout1.SetPosition(this.btnCenter, BorderPosition.Center); - this.borderLayout1.SetPosition(this.btnEast, BorderPosition.East); - this.borderLayout1.SetPosition(this.btnWest, BorderPosition.West); - - ' Binding a Control to the CardLayout manager programmatically. - Me.borderLayout1 = New BorderLayout() - - Me.borderLayout1.ContainerControl = Me - - ' Set the border-position of the button. - Me.borderLayout1.SetPosition(Me.btnNorth, BorderPosition.North) - Me.borderLayout1.SetPosition(Me.btnSouth, BorderPosition.South) - Me.borderLayout1.SetPosition(Me.btnCenter, BorderPosition.Center) - Me.borderLayout1.SetPosition(Me.btnEast, BorderPosition.East) - Me.borderLayout1.SetPosition(Me.btnWest, BorderPosition.West) - Also, take a look at the project in Tools/Samples/Layout Manager Package/LayoutManagers for an example. - - - - - Defines the base class for Layout Managers. - - - The , , , and classes derive from this - base class. - Use one of the above classes to include layout management support in your forms / controls. - The layout manager can be configured to operate in different modes. By default, mode - layout will be automatically triggered when the fires a event. If not in - this mode, then you can call the method to trigger a layout. - By default, the ContainerControl's ClientRectangle will be used as the bounds for the - layout. But, if the property is set to a value other than Rectangle.Empty - then that rectangle area will be used as the layout bounds. - You can also lay out non-control based components as long as they derive from - the class. The LayoutItemBase derived object can be used in any - method call that expects a control instance because the LayoutItemBase has an implicit type-conversion operator - that can convert itself to a control (use the method in VB). - You can also specify / provide preferred and minimum sizes for the child components. - The default layout logic uses the component's preferred size to lay them out. - The LayoutManager also has the and methods - that will let you query for the corresponding sizes. - There are different ways in which you can provide the preferred and minimum sizes - for a component. The manager will first look for the interface - in your child component, which if found, will be used to obtain the sizes. Second, the - manager will throw a event for a specific child component, which if - handled will then be used to obtain the sizes, if provided. Third, the sizes provided - using the / method will be used to obtain the sizes. However - if SetPreferredSize / SetMinimumSize was never called, the framework will call them - with the current size of the component as the preferred / minimum size. - Take a look at the class documentation for sample code on how to - create non-control based classes that can participate in Layout management. - - - - - Raises the ContainerControlChanged event. - - An EventArgs that contains the event data. - - The OnContainerControlChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnContainerControlChanged in a derived - class, be sure to call the base class's OnContainerControlChanged method so that - registered delegates receive the event. - - - - - Sets the CustomLayoutBounds property to Rectangle.Empty. - - - - - Indicates whether the CustomLayoutBounds property is a value other than Rectangle.Empty. - - - - - - - - Constructor to be called by derived classes. - - - - - Starts designer initialization. - - - - - Ends designer initialization. - - - - - Retrieves the preferred size associated with the specified control. - - The control for which to retrieve the preferred size. - The preferred size for the specified control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Returns the preferred size provided with a call to SetPreferredSize. - - The control whose preferred size is to be known. - The size, if any, provided or the current control size. - - Unlike GetPreferredSize, this does not throw an event or look for IProvideLayoutInformation - in the child controls. - Calling this will in turn call SetPreferredSize with the current control size, if there is no size available. - - - - - Associates a preferred size with the specified control. - - The control to associate the preferred size with. - The preferred size of the control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Makes the current sizes of the child controls their minimum and preferred sizes. - - - - - Indicates whether the PreferredSize property is a value other than Rectangle.Empty. - - - - - Removes any custom preferred size set for the specified control. - - - - - Retrieves the minimum size associated with the specified control. - - The control for which to retrieve the minimum size. - The minimum size for the specified control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains and you can specify the preferred and minimum size information - for a child component. - - - - - Returns the minimum size provided with a call to SetMinimumSize. - - The control whose minimum size is to be known. - The size, if any provided, or the current control size. - - Unlike GetMinimumSize, this does not throw an event or look for IProvideLayoutInformation - in the child controls. - Calling this will in turn call SetMinimumSize with the current control size, if there is no size available. - - - - - Associates a minimum size with the specified control. - - The control to associate the minimum size with. - The minimum size of the control. - - Take a look at the LayoutManager class documentation for information on the - different ways in which the manager obtains, and you can specify, the preferred and minimum size information - for a child component. - - - - - Indicates whether the MinimumSize property is a value other than Rectangle.Empty. - - - - - Removes any custom minimum size set for the specified control. - - - - - Returns the dynamic preferred or minimum size of a child component. - - The child control. - The type of size required, preferred or minimum. - A reference value through which the size should be returned to the caller. - True to indicate a dynamic size was found and that the size argument has a valid value. False otherwise. - - This function will first check if the child control has an - interface and if so returns the size provided by that interface. - If not, it throws a to obtain the dynamic size. The handlers, - if any, for that event may provide the dynamic size which will be returned. - If none of the above cases succeeds then False will be returned. - - - - - Raises the event. - - A that contains the event data. - - The OnProvideLayoutInformation method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnProvideLayoutInformation in a derived - class, be sure to call the base class's OnProvideLayoutInformation method so that - registered delegates receive the event. - - - - - The handler for the container's ControlAdded event. - - The container into which a control was added. - An ControlEventArgs that contains the event data. - - This is an easy way for the derived classes to know when a child gets added to the ContainerControl. - - - - - The handler for the container's ControlRemoved event. - - The container into which a control was added. - An ControlEventArgs that contains the event data. - - This is an easy way for the derived classes to know when a child gets removed from the ContainerControl. - - - - - Adds a child component to the layout list with the specified constraints. - - The control to add to the list. - The associated constraints. - - The type of constraints to be passed varies based on the layout manager. - The for example expects a string type while the expects - a type. The and the do not expect anything - which means you can specify NULL. Take a look at the individual layout manager's documentation - for the type of constraints expected. The individual managers also provide custom type safe methods - to let you specify the appropriate constraints. - - You can also pass a derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to seamlessly participate - in the layout framework). In VB, use the method. - - - - - - Removes a child component from the layout list. - - The control to be removed. - - - You can also pass a LayoutItemBase derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to participate - in the layout framework seemlessly). In VB, use the LayoutItemBase.ToControl method. - - - - - - Removes any references to the container control and handlers for events in that - control. Will also remove references to the child control. - - - Will be called when the user sets the ContainerControl to NULL and from Dispose. - Make sure to call the base class to perform normal operations when you override - this method. - - - - - Returns the minimum size for the ContainerControl. - - A size value representing the minimum size required. - - This value is calculated based on the minimum size requirement for the child controls. - - - - - Returns the preferred size for the ContainerControl. - - A size value representing the preferred size. - - This value is calculated based on the preferred size requirement for the child controls. - - - - - Triggers a layout of the child components. - - - Use this when you want to manually trigger a layout. This will automatically - be called by the framework when is True and a Layout event occurs on the . - - - - - Returns the child components that participate in the layout. - - - The child control list. - - - The order of child controls in the returned list will take into account the - property value. - - - - - Returns the layout bounds within which to perform layout. - - The Rectangle specifying the layout bounds. - - This takes into account the value, if not empty. - If empty, the bounds are calculated based on the Container Control's ClientRectangle - and the margins specified. - - - - - Indicates the Visible state of the child control or LayoutItemBase. - - The control whose visibility is to be determined. - The visibility state. - - Use this instead of checking the Visible property of the control directly, because - if this control is a place-holder control for a LayoutItemBase, the Visibility - state will be stored elsewhere. - - - - - Indicates whether the layout manager is in a state where it can start laying out - components. - - True indicates its ready for layout; False otherwise. - - This will return True if it has a valid ContainerControl and at least one child component - to be laid out. - If you override this method, make sure to call the base class. - - - - - This event is triggered when the ContainerControl property is changed. - - - - - This event is triggered to obtain preferred size information for a child control - during layout. - - - - - Gets or sets the designer host. - - - - - Gets or sets the component designer. - - - - - Gets or sets the container control that this manager will lay out. - - A control object. - - Changing this property will raise the ContainerControlChanged event. - - - - - Gets or sets the custom layout bounds, if any, to be used for layout calculation - instead of the container control's ClientRectangle. - - A Rectangle specifying the custom bounds. Default is Rectangle.Empty. - - If this value is Rectangle.Empty, then the manager will use the container control's - ClientRectangle. If other than Rectangle.Empty, then that value will be used. - When using CustomLayoutBounds, you might have to disable in - most cases and instead manually reset CustomLayoutBounds and call in - the container control's Layout event handler. - - - - - Indicates whether the container control's - should be used as the order for laying out the child controls. - - True to use the ControlCollection order; False to use the order in which - the child components were added to the manager. - Default value is true. - - This property matters only when the corresponding layout manager relies on the - order of children in the child list in its layout logic. The FlowLayout, CardLayout - and the GridLayout managers rely on the order, while the GridBagLayout managers do not. - Note that if you have both control-based and -based child components - participating in the layout and this property is True, then the LayoutItemBase based - child components will always be at the bottom of the list when layout is performed. - In this case, if you want more control on the child order, set this property to False - and use the LayoutControls list to modify the exisiting order. - - - - - Returns the list of child components participating in layout. - - An ArrayList containing the child components. - - There are very specific cases when you have to access this list. - You should access this list to modify the position of the children in the child - components list only when property is False and - you are laying out both control-based and LayoutItemBase-based components in - the manager. Take a look at the UseControlCollectionPosition property documentation - for information on this issue. - However, you should only use this property to change the position of child - components, but never to effectively add or remove components (use the - methods provided by the respective managers). - - - - - Indicates whether the manager should lay out automatically on Layout event. - - True indicates auto layout; False otherwise. Default is True. - - If True, the manager will listen to the ContainerControl control's Layout event and perform layout - automatically. If False, you should call the manager's method to trigger - layout. - - - - - This method has been replaced by HorzNearMargin. Please use that instead. - - - - - Gets or sets the left margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - This method has been replaced by HorzFarMargin. Please use that instead. - - - - - Gets or sets the right margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Gets or sets the top margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Gets or sets the bottom margin between the client rectangle and the layout rectangle. - - An integer value in pixels. Default is 4 pixels. - - - - Hashtable to maintain constraint to control mapping. - - - - - Overloaded. Creates an instance of the BorderLayout class and sets its defaults. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Sets the for a child component. - - The child component whose position is to be set. - The . - - - - Removes a child component from the layout list. - - - - - - Adds a child component to the layout list with the specified constraints. - - - - - - Returns the of a child component. - - The child component whose position is to be retrieved. - The . - - - - Retrieves the preferred size associated with the specified control. - - - - - - - - - Retrieves the minimum size associated with the specified control. - - - - - - Returns the preferred size for the ContainerControl. - - - - - - Returns the minimum size for the ContainerControl. - - - - - - Triggers a layout of the child components. - - - - - - Gets or sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Gets or sets the horizontal spacing between the layout border and the components. - - The horizontal space in pixels. - - - - Specifies the position and the manner in which the control will be laid out - by the . - - - - - The control is not laid out. - - - - - The control's top edge is docked to the top of its containing control. - - - - - The control's bottom edge is docked to the bottom of its containing control. - - - - - The control's left edge is docked to the left edge of its containing control. - - - - - The control's right edge is docked to the right edge of its containing control. - - - - - The control is resized to fit the area between the controls laid out in the other borders. - - - - - Specifies how the children will be laid out. - - - In Default mode, the CardLayout manager will center the control within the - layout rectangle based on its preferred size, when there is enough space available. - When the space available is less than the preferred size, it will simply show the - child from the top / left of the layout rectangle, shrinking the size to fit the - layout rectangle, not going below the minimum size. - In Fill mode, the preferred size of the control will be ignored and it will - be made to fill the entire client area of the parent, taking into consideration the - parent's DockPading parent(if the parent is a ScrollableControl). - - - - - The child control is laid out based on its preferred size. - - - - - The child control is laid out to fill the parent. - - - - - Represents the layout manager that lays out the children as "Cards". - - - Each child component is a "Card" with a name attached to it. - The CardLayout will display only one Card at a time, allowing you - to flip through it. Use the , , , , and methods to do so. - The property lets you specify whether to lay out the children based on their - preferred size or make them fill the parent's client rectangle. - The method will expect you to pass a string value - indicating the name of the Card as the constraint. - Setting the same Card name for more than one component will result in unforseen conflicts. - During design-time, you can change the order of the child controls being laid out by moving them around - using the "Bring to Front" and "Send to Back" verbs provided by the control designer. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - Here is some sample code that tells you how to initialize a CardLayout manager: - - // Binding a Control to the CardLayout manager programmatically. - this.cardLayout1 = new CardLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager and get default card names. - this.cardLayout1.ContainerControl = this.panel1; - // Set custom card names to replace default card names. - this.cardLayout1.SetCardName(this.label1, "MyCard1"); - - // To select a card manually, use the SelectedCard property. - this.cardLayout1.SelectedCard = "MyCard1"; - - // Or move through the cards like this: - this.cardLayout1.Next(); - this.cardLayout1.Previous(); - - ' Binding a Control to the CardLayout manager programmatically. - Me.cardLayout1 = New CardLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager and get default card names. - Me.cardLayout1.ContainerControl = Me.panel1 - ' Set custom card names to replace default card names. - Me.cardLayout1.SetCardName(Me.label1, "MyCard1") - ' To select a card manually, use the SelectedCard property. - Me.cardLayout1.SelectedCard = "MyCard1" - ' Or move through the cards like this: - Me.cardLayout1.Next - Me.cardLayout1.Previous - Also, take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Indicates the Base Name of the card. - - - - - Overloaded. Creates a new instance of the CardLayout class and sets its defaults. - - - - - Creates a new instance of the CardLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's container control. - - - - Creates a new instance of the CardLayout class and sets its ContainerControl. - - - - - Ends designer initialization. - - - - - Returns the Card name of a child component. - - The child component whose Card name is to be retrieved. - The Card name as string. - - - - Sets the Card name for a child component. - - The child component whose Card name is to be set. - The Card name as string. - Use this method to change the card name of a component - once set using . Setting a NULL or empty string - will also remove the component from the layout list. - - - - Returns the value for maintaining aspect ratio based on the control's PreferredSize. - - The control whose aspect ratio setting is to be known. - True if the aspect ratio should be maintained; false otherwise. - - - - Sets the value for maintaining aspect ratio based on the control's PreferredSize. - - The control to associate the aspect ratio setting. - True to maintain aspect ratio. False otherwise. - Use this method to specify whether or not the control will be drawn - maintaining its aspect ratio based on the control's PreferredSize. Applicable only - when the property is set to CardLayoutMode.Default. - - - - Overridden. See . - - - - - - - Generates a new unique name for a card that could be added to this CardLayout. - - A card name unique within this layout manager. - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Validates hidden states. - - - - - Overridden. See . - - - - - Returns the current active Card. - - The control representing the card. - - - - Shows the first Card. - - - - - Shows the next Card in the list. - - - - - Shows the previous Card in the list. - - - - - Shows the last Card in the list. - - - - - Shows a Card by name. - - The Card's name. - - - - Returns an array containing the Card names as strings. - - An ArrayList of Card names. - - - - Returns an associated control given a Card name. - - The card name whose control to retrieve. - A control associated with the card name. - - - - Gets or sets the layout mode. - - The current CardLayoutMode. Default is CardLayoutMode.Default. - - - - - - - - - Returns the index of the next card that will be shown when the method gets called. - - A valid index into the list returned by the method; -1 if - a next card is not available. - This property will return the first card if the currently selected card is the last card. - - - - Returns the index of the previous card that will be shown when the method gets called. - - A valid index into the list returned by the method; -1 if - a previous card is not available. - This property will return the last card if the currently selected card is the first card. - - - - Gets or sets the current Card's name. - - The current Card's name. - - - - This event is raised in LayoutContainer method before applying new bounds. - - - - - Represents the method that will handle the event of - the CardLayout. - - The source of the event. - A that contains the event data. - - - - Specifies the alignment of layout components in the direction of flow. - - - - - Center the components within the parent's width (if vertical layout) or - height (if horizontal layout). - - - - - Dock the components to the left border (if vertical layout) or - top border (if horizontal layout). - - - - - Dock the components to the right border (if vertical layout) or - bottom border (if horizontal layout). - - - - - Refer to the child's to determine the alignment and layout. - - - - - Specifies whether the children should be laid out horizontally or vertically. - - - - - Children will be laid out horizontally, left to right. - - - - - Children will be laid out vertically, top to bottom. - - - - - Specifies how child components will be positioned inside a container managed - by the manager. - - - Flow Layout constraints are a set of properties that determine how a - child component will be horizontally and vertically aligned when laid out in - rows or columns. - - - - - Returns a default FlowLayoutConstraints object (that is not empty). - - The default FlowLayoutConstraints object. - - - - Overloaded. Creates a new instance of the FlowLayoutConstraints class and sets its defaults. - - - - - Creates a new instance of the FlowLayoutConstraints class - with the specified values. - - True indicates this child should participate in layout; False otherwise. - The mode in which child should be laid out (when in horizontal flow mode). - The mode in which child should be laid out (when in vertical flow mode). - True indicates a line break when this child is encountered - while laying out. - True indicates that the width of the column the corresponding - child control occupies should be proportional to the laid out column's preferred width (when laid out vertically). - /// True indicates that the height of the row the corresponding - child control occupies should be proportional to the laid out row's preferred height (when laid out horizontally). - - - - Creates an exact copy of this FlowLayoutConstraints object. - - The cloned object. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - bool - - - - - Indicates whether the child should participate in layout. - - True to indicate this child should participate in layout; False otherwise. Default is True. - - - - Specifies the mode in which the child should be laid out within a row. - - A value. Default is HorzFlowAlign.Justify. - - - - Specifies the mode in which the child should be laid out within a column. - - A value. Default is VertFlowAlign.Center. - - - - Indicates whether this child should always be moved to the beginning of a new line when laid out. - - True to move to a new line; False otherwise. Default is False. - - - - Indicates whether the effective height of the row the corresponding child control occupies should be - proportional to the laid out rows' preferred heights, for horizontal layout mode. - - True for proportional height; False otherwise. Default is False. - - This property is in effect only when the layout mode is horizontal. When this property is on, the row - this control occupies will be deemed to take proportional height. Then the remaining vertical space - available will be split proportionally between such rows wanting proportional-height based on their preferred height. - - - - - Indicates whether the effective width of the column the corresponding child control occupies should be - proportional to the laid out columns' preferred widths, for vertical layout mode. - - True for proportional width; False otherwise. Default is False. - - This property is in effect only when the layout mode is vertical. When this property is on, the column - this control occupies will be deemed to take proportional width. Then the remaining horizontal space - available will be split proportionally between such columns wanting proportional-width based on their preferred width. - - - - - Gets / sets the FlowLayoutConstraints structure with its properties left uninitialized. - - - - - Specifies the alignment of child components within a row when horizontally laid out. - - - - - The child component is left aligned within the row. - - - - - The child component is right aligned within the row. - - - - - The child component is centered within the row. - - - - - The child component will be expanded (or shrunk up to the MinimumSize) to fill any available extra width. - - Justified components are positioned after the centered ones. - - - - Specifies the alignment of child components within a column when vertically laid out. - - - - - The child component is top aligned within the column. - - - - - The child component is bottom aligned within the column. - - - - - The child component is center aligned within the column. - - - - - The child component will be expanded to fill any available extra height. - - Justified components are positioned after the centered ones. - - - - Represents the layout manager that does a left to right or top to bottom - layout. - - - Arranges components horizontally (left to right) or vertically (top to bottom) - (As specified in the property). When there is no more space - in a line, it moves the components to the next line. - By default, each line is centered. You can change this justification using - the property. - You can also set on each component for more control - over the component's alignment and spacing within a row / column. - You can control the component spacing, in pixels, through the and properties. - When the FlowLayout's changes, it automatically assigns default FlowLayoutConstraints to the - children, for convenience sake, so that you don't - have to call for each child component. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - The following example shows you how to initialize a FlowLayout manager with a container control: - - // Binding a control to the FlowLayout manager programmatically: - this.flowLayout1 = new FlowLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.flowLayout1.ContainerControl = this.panel1; - - // Set some properties on the flowLayout manager: - this.flowLayout1.HGap = 20; - this.flowLayout1.Alignment = FlowAlignment.Near; - - // You can prevent one or more child controls from being laid out, like this (the first argument for FlowLayoutConstraints should be False). - // This will have the same effect as calling RemoveLayoutComponent: - this.flowLayout1.SetConstraints(this.label10, new FlowLayoutConstraints(false, HorzFlowAlign.Left, VertFlowAlign.Center, false, false, false)); - - // You can prevent automatic layout during the layout event. - // If you decide to do so, make sure to call flowLayout.LayoutContainer manually: - // this.flowLayout1.AutoLayout = false; - - ' Binding a control to the FlowLayout manager programmatically: - Me.flowLayout1 = New FlowLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.flowLayout1.ContainerControl = Me.panel1 - ' Set some properties on the flowLayout manager: - Me.flowLayout1.HGap = 20 - Me.flowLayout1.Alignment = FlowAlignment.Near - ' You can ignore one or more child controls from being laid out, like this (the first argument for FlowLayoutConstraints should be False). - ' This will have the same effect as calling RemoveLayoutComponent: - Me.flowLayout1.SetConstraints(Me.label10, New FlowLayoutConstraints(False, HorzFlowAlign.Center, VertFlowAlign.Center, False, False, False)) - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call flowLayout.LayoutContainer manually: - ' this.flowLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Overloaded. Creates a new instance of the FlowLayout component and sets its defaults. - - - - - Creates a new instance of the FlowLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's container control. - - - - Creates a new instance of the FlowLayout component and sets its . - - - - - Creates a new instance of the FlowLayout component and sets its , - layout mode and alignment. - - - - - Creates a new instance of the FlowLayout component and sets its , - layout mode, alignment, horizontal gap and vertical gap. - - - - - - - - - - - Specifies the constraints associated with the specified control. - - The control for which to set the constraints. - The constraints of the control. NULL to remove the control - from the layout list. - - Passing a NULL value will actually remove the component from the layout list. - - - - - Adds or removes the specified control from the layout list. - - The control to be added or removed. - True means the control will be added; False will remove it. - - This method will be removed in a future version. Instead, use the method passing in a - instance with its - property set to the appropriate value. - - - - - Indicates whether the component is in the layout list. - - The control whose participation needs to be verified. - True if it is in the layout list; False otherwise. - - This method will be removed in a future version. Use the method to get hold of the - associated with this control and then check its - property instead. - - - - - Returns a reference to the constraints associated with the specified control. - - The control with constraints to retrieve. - A reference to the actual constraints object. - This is the actual object where the manager stores the constraints for - the control. Hence, making changes to the returned object will affect the - layout logic. - - - - Returns the constraints associated with the specified control. - - The control with constraints to retrieve. - A clone of the stored constraints object. - - The returned value is a clone which can be used independently by itself. - The changes made to the returned instance will not have any effect on the stored - constraints. Use to get hold of the actual constraints object - that is used by the manager. - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - - - - Removes a child component from the layout list. - - The control to be removed. - - - You can also pass a LayoutItemBase derived class as the first argument because - it has an implicit type-conversion operator that will provide its corresponding - control object (a place-holder control that allows the LayoutItemBase to participate - in the layout framework seemlessly). In VB, use the LayoutItemBase.ToControl method. - - - - - - - Overridden. See . - - Returns the size with the preferred height (when laying out Horizontal) - or size with the preferred width (when laying out Vertical). - - - - Overridden. See . - - - - - Overridden. See . - - - - - Gets / sets the alignment of layout components in the direction of flow. - - A FlowAlignment value specifying the justification. - Default is FlowAlignment.Center. - - FlowAlignment.Near will be either left justified or top justified based on - whether the layout mode is vertical or horizontal. And similarly, - FlowAlignment.Far will be either right justified or top justified. - FlowAlignment.ChildConstraints will make the manager refer to the child's constraints. - - - - - Gets / sets the layout mode. - - The current FlowLayoutMode. Default is FlowLayoutMode.Horizontal. - - - - Indicates whether to lay out rows in the opposite direction (right to left or bottom to top). - - False for regular layout; True for reverse layout. Default is False. - - - - Gets / sets the horizontal spacing between the components. - - The horizontal space in pixels. - - - - Indicates whether the container control should automatically grow in height when - there is not enough space when in horizontal alignment mode. - - True to automatically increase the height; False otherwise. - - This applies only in horizontal alignment mode. - - - - - Gets / sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Occurs when property is changed. - - - - - Occurs when property is changed. - - - - - Specifies the inset padding, in pixels, for a component. Used by - the manager. - - - This is the extra space that the manager adds around a component's preferred bounds before - laying out the component. - - - - - Creates an instance on the Insets class. - - Number of pixels added to the left of the component. - Number of pixels added to the top of the component. - Number of pixels added to the right of the component. - Number of pixels added to the bottom of the component. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - Gets / sets the insets to the left of the component. - - - - - Gets / sets the insets to the right of the component. - - - - - Gets / sets the insets to the top of the component. - - - - - Gets / sets the insets to the bottom of the component. - - - - - Specifies how to resize a component when the component's - layout bounds are larger than its preferred size. - - - - - The component is not resized. - - - - - The component's width and height are both changed to fill the - entire available layout bounds. - - - - - The component's width is changed to fill its layout bounds - horizontally. - - - - - The component's height is changed to fill its layout bounds - vertically. - - - - - Specifies how a layout component anchors to the edges of its layout bounds when managed - by a . - - - A child component usually gets more space than its preferred size when being laid out. - These values specify how to align such components within the layout bounds. - - - - - The child component is anchored to the center of its layout bounds. - - - - - The child component is anchored to the North of its layout bounds. - - - - - The child component is anchored to the NorthEast of its layout bounds. - - - - - The child component is anchored to the East of its layout bounds. - - - - - The child component is anchored to the SouthEast of its layout bounds. - - - - - The child component is anchored to the South of its layout bounds. - - - - - The child component is anchored to the SouthWest of its layout bounds. - - - - - The child component is anchored to the West of its layout bounds. - - - - - The child component is anchored to the NorthWest of its layout bounds. - - - - - Specifies how components will be positioned inside a container managed - by the manager. - - - GridBagConstraints are a set of properties that determine how a - component will grow, shrink or reposition itself when its container is resized. - Each component has its own GridBagConstraints which means that there is potential for - unforseen size and boundary conflicts. Make sure to manually test the layout design - to determine that it behaves appropriately. - - - - - Relative positioning preference. - - - - - Makes the child component occupy the remainder of the row / column. - - - - - Returns a default GridBagConstraint object that is also empty. - - The default GridBagConstraints object. - - - - Overloaded. Creates a new instance of the GridBagConstraints class and sets its defaults. - - - - - Creates a new instance of the GridBagConstraints class - with the specified values. - - - - - Creates an exact copy of this GridBagConstraints object. - - The cloned object. - - - - The basic == operator. - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - The basic != operator - - The left-hand side of the operator. - The right-hand side of the operator. - - Boolean value. - - - - - Gets / sets the column in the virtual grid where the component's - layout bounds begin. - - A value specifying the beginning column. Can be -1. - Default is -1. - - When -1, the positioning is relative, which means the component will - be positioned immediately to the right of the component that was - most recently added to the container. - - - - - Gets / sets the row in the virtual grid where the component's - layout bounds begin. - - A value specifying the beginning row. Can be -1. - Default is -1(GridBagConstraints.Relative). - - When -1, the positioning is relative, which means the component will - be positioned immediately to the bottom of the component that was - most recently added to the container. - - - - - Gets / sets the number of columns this component should span in the - virtual grid. - - The number of columns to span, default is 1. Can be zero (GridBagConstraints.Remainder). - - When value is zero, the component will be the last one in its row. - - - - - Gets / sets the number of rows this component should span in the - virtual grid. - - The number of rows to span, default is 1. Can be zero (GridBagConstraints.Remainder). - - When value is zero, the component will be the last one in its column. - - - - - Gets / sets the weight of this component in obtaining the extra - horizontal space. - - A double value representing the weight. Default is zero. - - Specifies how to distribute extra horizontal space for a column. - The weight of a column is calculated as the maximum WeightX of all - the components in that column. - When there is extra horizontal space it is distributed to each column - based on its weight. A component that has zero weight receives no - extra space. - - - - - Gets / sets the weight of this component in obtaining the extra - vertical space. - - A double value representing the weight. Default is zero. - - Specifies how to distribute extra vertical space for a row. - The weight of a row is calculated as the maximum WeightY of all - the components in that row. - When there is extra vertical space it is distributed to each row - based on its weight. A component that has zero weight receives no - extra space. - - - - - Gets / sets the justification of a component within its available layout - bounds (a cell in the virtual grid). - - - One of the AnchorTypes values. Default is center. - - - - - Gets / sets the fill type to resize a component when the component's - layout bounds are larger than its preferred size. - - One of the FillType values. The default is none. - - - - Gets / sets the extra space that the manager adds around a component's preferred bounds before - laying out the component. - - An Inset's instance. Default is zero inset padding on all sides. - - - - Gets / sets the amount in pixels to add to the size of the component - when determining its overall width. - - The integer value representing the padding in pixels. - Default is zero. - - - - Gets / sets the amount in pixels to add to the size of the component - when determining its overall height. - - The integer value representing the padding in pixels. - Default is zero. - - - - Gets / sets the GridBagConstraints structure with its properties left uninitialized. - - - - - Represents the layout manager that performs GridBag layout. - - - The GridBagLayout manager creates and manages a grid within the - container's layout bounds. Each column and row in this grid can be - of different sizes and a component can span more than one cell. - Each component can be assigned weights to determine how to distribute - extra space between components. A component can also be anchored to a border / corner - of its virtual grid cell. It can also fill its cell. - - Note that if you want the child components to be laid out purely based on their weights, - set their preferred sizes to be (0,0), specify a non-zero weightX and weigthY, - and set their Fill mode to FillMode.Both. - - The GridBagConstraints structure specifies all the above constraints associated - with a component. Use the SetConstraints method to set the constraints for each component. - To exclude a component from layout, call SetConstraints with NULL constraints. - Each component has a constraint, which means that there is potential - for conflicts in size and boundaries between components. Make - sure to manually test the layout design to determine that it - behaves appropriately. - - - The following example shows you how to initialize a GridBagLayout manager with a container control and its children: - - // Binding a control to the GridBagLayout manager programmatically: - this.gridBagLayout1 = new GridBagLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.gridBagLayout1.ContainerControl = this.panel1; - - this.gridBagLayout1.SetConstraints( - this.button1, - new GridBagConstraints(0, 0, 3, 1, 1, 0.2, AnchorTypes.Center, FillType.Both, new Insets(0, 0, 0, 0), 0, 0, false) - ); - this.gridBagLayout1.SetConstraints( - this.button2, - new GridBagConstraints(0, 1, 1, 3, 0.2, 0.6, AnchorTypes.Center, FillType.Both, new Insets(0, 0, 0, 0), 0, 0, false) - ); - - // Exclude button3 from layout: - this.gridBagLayout1.SetConstraints(this.button3, GridBagConstraints.Empty); - - // Modify an exisiting constraint: - GridBagConstraints constraints1 = this.gridBagLayout1.GetConstraintsRef(this.button1); - constraints1.Fill = FillType.Horizontal; - - // You can prevent automatic layout during the layout event. - // If you decide to do so, make sure to call gridBagLayout1.LayoutContainer manually: - // this.gridBagLayout1.AutoLayout = false; - - ' Binding a Control to the GridBagLayout manager programmatically: - Me.gridBagLayout1 = New GridBagLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.gridBagLayout1.ContainerControl = Me.panel1 - Me.gridBagLayout1.SetConstraints(Me.button1, New GridBagConstraints(0, 0, 3, 1, 1, 0.2, AnchorTypes.Center, FillType.Both, New Insets(0, 0, 0, 0), 0, 0, false)) - Me.gridBagLayout1.SetConstraints(Me.button2, New GridBagConstraints(0, 1, 1, 3, 0.2, 0.6, AnchorTypes.Center, FillType.Both, New Insets(0, 0, 0, 0), 0, 0, false)) - ' Exclude button3 from layout: - Me.gridBagLayout1.SetConstraints(Me.button3, GridBagConstraints.Empty) - ' Modify an exisiting constraint: - Dim constraints1 As GridBagConstraints - constraints1 = Me.gridBagLayout1.GetConstraintsRef(Me.button1) - constraints1.Fill = FillType.Horizontal - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call gridBagLayout1.LayoutContainer manually: - ' this.gridBagLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Largest minimum width in each column. - - - - - Largest minimum height in each row. - - - - - Largest weight in each column. - - - - - Largest weight in each row. - - - - - Overloaded. Creates a new instance of the GridBagLayout class and sets its defaults. - - - - - Creates a new instance of the GridBagLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's ContainerControl. - - - - Creates a new instance of the GridBagLayout class and sets its ContainerControl. - - - - - - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Specifies the constraints associated with the specified control. - - The control for which to set the constraints. - The constraints of the control. Or NULL to remove the control - from the layout list. - - Passing a NULL value will actually remove the component from the layout list. - - - - - Overridden. See . - - - - - Returns the constraints associated with the specified control. - - The control whose constraints to retrieve. - A clone of the stored constraints object. - - The returned value is a clone which can be used independently by itself. - The changes made to the returned instance will not have any effect on the stored - constraints. Use to get hold of the actual constraints object - that is used by the manager. - - - - - Returns a reference to the constraints associated with the specified control. - - The control with constraints to retrieve. - A reference to the actual constraints object. - This is the actual object where the manager stores the constraints for - the control. Hence, making changes to the returned object will affect the - layout logic. - - - - Returns the top-left origin of the virtual grid in the current layout. - - A point representing the top-left position. - - - - Returns the row and column dimensions of the current layout. - - A 2D integer array containing the dimensions. - - - - Returns the row and column weights of the current layout. - - A 2D integer array containing the weights. - - - - Returns the cell in the virtual grid (as a point) given a location. - - The x coordinate of the location. - The y coordinate of the location. - A Point representing the virtual grid cell. - - - - Adds a component to the child layout list. - - The control to add to the layout list. - The GridBagConstraints associated with this component. - If the second argument is not a GridBagConstraints, an exception will be thrown. - - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Represents the layout manager that lays out the child components as a - grid consisting of rows and columns. - - - The layout manager divides the layout space into rows and columns based on the - Rows and Columns properties and assigns each similar sized cell to a child component. - You can control the component spacing, in pixels, through the HGap and VGap properties. - You can remove or add child controls through the SetParticipateInLayout - method. When the GridLayout's ContainerControl changes, it automatically includes all of its - children in the layout component list, for convenience sake, so that you don't - have to call SetParticipateInLayout for each child component. - The PreferredSize and MinimimumSize settings for the children are ignored by - the GridLayout during layout, however the and - methods do refer to the above settings to determine the sizes. - Take a look at the LayoutManager class documentation for more information on - LayoutManagers in general. - - - The following example shows you how to initialize a GridLayout manager with a container control: - - // Binding a Control to the GridLayout manager programmatically: - this.gridLayout1 = new Syncfusion.Windows.Forms.Tools.GridLayout(); - - // Set the container control; all the child controls of this container control are - // automatically registered as children with the manager: - this.gridLayout1.ContainerControl = this.innerPanel; - // Set some properties on the flowLayout manager: - this.gridLayout1.Columns = 4; - this.gridLayout1.Rows = 5; - this.gridLayout1.HGap = 4; - this.gridLayout1.VGap = 4; - - // You can ignore one or more child Control from being laid out, like this. - // This will have the same effect as calling RemoveLayoutComponent: - //this.gridLayout1.SetParticipateInLayout(this.button1, false); - - // You can prevent automatic layout during the layout event: - // If you decide to do so, make sure to call gridLayout1.LayoutContainer manually: - // this.gridLayout1.AutoLayout = false; - - ' Binding a Control to the GridLayout manager programmatically: - Me.gridLayout1 = New Syncfusion.Windows.Forms.Tools.GridLayout - ' Set the target control; all the child controls of this target control are - ' automatically registered as children with the manager: - Me.gridLayout1.ContainerControl = Me.innerPanel - ' Set some properties on the flowLayout manager: - Me.gridLayout1.Columns = 4 - Me.gridLayout1.Rows = 5 - Me.gridLayout1.HGap = 4 - Me.gridLayout1.VGap = 4 - ' You can ignore one or more child Control from being laid out, like this. - ' This will have the same effect as calling RemoveLayoutComponent: - 'this.gridLayout1.SetParticipateInLayout(this.button1, false); - ' You can prevent automatic layout during the layout event. - ' If you decide to do so, make sure to call gridLayout1.LayoutContainer manually: - ' this.gridLayout1.AutoLayout = false; - Also take a look at the project in Tools/Samples/Quick Start/LayoutManagers for an example. - - - - - Overloaded. Creates an instance of the GridLayout class and sets its defaults. - - - - - Creates a new instance of the GridLayout class and adds itself to the specified container. - - The logical ContainerControl parent into which to add itself. - This constructor is used by the design-time to add a component to the form's - IContainer field so that it gets Disposed when the form gets Disposed. - Note that this is not the same as the layout manager's ContainerControl. - - - - Creates an instance of the GridLayout class and sets its ContainerControl. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl, - rows and columns. - - - - - Creates an instance of the GridLayout class and sets its ContainerControl, - rows, columns, horizontal gap and vertical gap. - - - - - Indicates whether the component is in the layout list. - - The control whose participation needs to be verified. - True if it is in the layout list; False otherwise. - - - - Adds or removes the specified control from the layout list. - - The control to be added or removed. - True means the control will be added; False will remove it. - - - - Overridden. See . - - - - - - - Overridden. See . - - - - - - - - - - - - - - - Overridden. See . - - Returns the preferred layout size. - - - - Overridden. See . - - - - - Overridden. See . - - - - - Gets / sets the number of rows in the grid. - - The number of rows. Default is 1. - At least one Row or Column property should be greater than zero. - If they are both set to zero, then the Rows property will be changed to 1. - If you try to set a negative value, this will instead be set to zero. - - - - Gets / sets the number of columns in the grid. - - The number of columns. Default is 1. - At least one Row or Column property should be greater than zero. - If they are both set to zero, then the Row property will be changed to 1. - If you try to set a negative value, this will instead be set to zero. - - - - Gets / sets the horizontal spacing between the layout border and the components. - - The horizontal space in pixels. - - - - Gets / sets the vertical spacing between the layout border and the components. - - The vertical space in pixels. - - - - Defines a mechanism through which dynamic size information can be provided. - - - When a layout component implements this interface, the layout manager will obtain - the size information through this interface whenever layout is performed. This allows - you to provide dynamic layout information. - - - - - Returns the preferred size of the component. - - - - - Returns the minimum size of the component. - - - - - - - - Represents a non-control based layout component. - - - Derive your non-control based components from this class if you want them to - participate in the layout management. - You can add such components to the manager using the same methods as the control - derived classes. You can pass a LayoutItemBase derived class to any method that - expects a control type argument since the LayoutItemBase has an implicit type-conversion operator - that can convert itself to a control. In VB, use the method to convert this instance to a control. - In your derived class, you can find out the size set by the layout manager - through the property and the visibility through the Visible property (listening - for the event should also help). You - should also provide the preferred size and minimum size of your component through - the and overrides. - - - This first example shows a sample LayoutItemBase derived class: - - public class MyRectangle : LayoutItemBase - { - public static Size PrefSize = new Size(0, 0); - protected Control parent; - protected Color color; - protected string text; - public MyRectangle(Control parent, Color color, string text) - { - this.parent = parent; - this.color = color; - this.text = text; - } - public void OnPaint( PaintEventArgs e) - { - e.Graphics.FillRectangle(new SolidBrush(color), this.Bounds); - StringFormat sf = new StringFormat(); - sf.Alignment = StringAlignment.Center; - sf.LineAlignment = StringAlignment.Center; - RectangleF r = new RectangleF(Bounds.Left, Bounds.Top, - Bounds.Width, Bounds.Height); - e.Graphics.DrawString(text, Control.DefaultFont, SystemBrushes.ControlText, r, sf); - } - // This override is a good place to repaint. - // Or you can listen to BoundsChanged event in LayoutItemBase. - protected override void OnBoundsChanged() - { - parent.Invalidate(new Rectangle(0, 0, this.parent.Width, this.parent.Height)); - } - - public override System.Drawing.Size MinimumSize - { - get { return MyRectangle.PrefSize; } - } - - public override System.Drawing.Size PreferredSize - { - get - { - return MyRectangle.PrefSize; - } - } - } - - Public Class MyRectangle - Inherits LayoutItemBase - Protected WithEvents parent As Control - Protected color As color - Protected [text] As String - Public Shared PrefSize As Size - 'Fields - 'Constructors - 'Events - 'Methods - Shared Sub New() - 'Warning: Implementation not found - End Sub - Public Sub New(ByVal parent As Control, ByVal color As color, ByVal [text] As String) - MyBase.New() - Me.parent = parent - Me.color = color - Me.text = [text] - - End Sub - Public Overrides ReadOnly Property MinimumSize() As Size - Get - - Return MyRectangle.PrefSize - - End Get - End Property - Public Overrides ReadOnly Property PreferredSize() As Size - Get - - Return MyRectangle.PrefSize - - End Get - End Property - Protected Overloads Overrides Sub OnBoundsChanged() - - parent.Invalidate(New Rectangle(0, 0, Me.parent.Width, Me.parent.Height)) - - End Sub - Public Sub OnPaint(ByVal e As PaintEventArgs) - - e.Graphics.FillRectangle(New SolidBrush(color), Me.Bounds) - Dim sf As StringFormat - sf = New StringFormat() - sf.Alignment = StringAlignment.Center - sf.LineAlignment = StringAlignment.Center - Dim r As RectangleF - r = New RectangleF(Me.Bounds.Left, Me.Bounds.Top, Me.Bounds.Width, Me.Bounds.Height) - e.Graphics.DrawString([text], Control.DefaultFont, SystemBrushes.ControlText, r, sf) - - End Sub - End Class - The above class can then participate in layout as follows. The example assumes - that there is a GridBagLayout manager that is already bound to a container. - - private void Form1_Load(object sender, System.EventArgs e) - { - this.SuspendLayout(); - // Current layout manager (Update every time you change the manager) - - // Layout Component 1: - this.myRect1 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(133, 191, 117), "Paint Area 1"); - this.myRect1.Bounds = new Rectangle(10, 10, 80, 20); - this.myRect1.Visible = true; - - // Layout Component 2: - this.myRect2 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(222, 100, 19), "Paint Area 2"); - this.myRect2.Bounds = new Rectangle(10, 40, 80, 20); - this.myRect2.Visible = true; - - // Layout Component 3: - this.myRect3 = new MyRectangle(this.gridBagLayout1.ContainerControl, Color.FromArgb(196, 214, 233), "Paint Area 3"); - this.myRect3.Bounds = new Rectangle(10, 70, 80, 20); - this.myRect3.Visible = true; - - - // Sample GridBagConstraints: - GridBagConstraints gbc1 = new GridBagConstraints(); - GridBagConstraints gbc2 = new GridBagConstraints(); - GridBagConstraints gbc3 = new GridBagConstraints(); - - gbc1.Fill = FillType.Both; - gbc1.WeightX = 0.2; - gbc1.WeightY = 0.5; - gbc1.GridPosX = 0; - gbc1.GridPosY = 0; - - gbc2.Fill = FillType.Both; - gbc2.WeightX = 0.2; - gbc2.WeightY = 0.5; - gbc2.GridPosX = 1; - gbc2.GridPosY = 0; - - gbc3.Fill = FillType.Both; - gbc3.WeightX = 0.4; - gbc3.WeightY = 0.5; - gbc3.GridPosX = 0; - gbc3.GridPosY = 1; - gbc3.CellSpanX = 2; - - // Add all the components that are to participate in Layout Management. - - // For GridBagLayouts pass gbcs for GridBagLayouts: - this.gridBagLayout1.SetConstraints(this.myRect1.ToControl(), gbc1); - this.gridBagLayout1.SetConstraints(this.myRect2.ToControl(), gbc2); - this.gridBagLayout1.SetConstraints(this.myRect3.ToControl(), gbc3); - - this.ResumeLayout(true); - } - - Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load - - Me.SuspendLayout() - ' Current layout manager (Update every time you change the manager) - ' Layout Component 1: - Me.myRect1 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(133, 191, 117), "Paint Area 1") - Me.myRect1.Bounds = New Rectangle(10, 10, 80, 20) - Me.myRect1.Visible = True - ' Layout Component 2: - Me.myRect2 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(222, 100, 19), "Paint Area 2") - Me.myRect2.Bounds = New Rectangle(10, 40, 80, 20) - Me.myRect2.Visible = True - ' Layout Component 3: - Me.myRect3 = New MyRectangle(Me.gridBagLayout1.ContainerControl, Color.FromArgb(196, 214, 233), "Paint Area 3") - Me.myRect3.Bounds = New Rectangle(10, 70, 80, 20) - Me.myRect3.Visible = True - ' Sample GridBagConstraints: - Dim gbc1 As GridBagConstraints - gbc1 = New GridBagConstraints() - Dim gbc2 As GridBagConstraints - gbc2 = New GridBagConstraints() - Dim gbc3 As GridBagConstraints - gbc3 = New GridBagConstraints() - gbc1.Fill = FillType.Both - gbc1.WeightX = 0.2 - gbc1.WeightY = 0.5 - gbc1.GridPosX = 0 - gbc1.GridPosY = 0 - gbc2.Fill = FillType.Both - gbc2.WeightX = 0.2 - gbc2.WeightY = 0.5 - gbc2.GridPosX = 1 - gbc2.GridPosY = 0 - gbc3.Fill = FillType.Both - gbc3.WeightX = 0.4 - gbc3.WeightY = 0.5 - gbc3.GridPosX = 0 - gbc3.GridPosY = 1 - gbc3.CellSpanX = 2 - ' Add all the components that are to participate in Layout Management. - ' For GridBagLayouts pass gbcs for GridBagLayouts: - Me.gridBagLayout1.SetConstraints(Me.myRect1.ToControl, gbc1) - Me.gridBagLayout1.SetConstraints(Me.myRect2.ToControl, gbc2) - Me.gridBagLayout1.SetConstraints(Me.myRect3.ToControl, gbc3) - Me.ResumeLayout(True) - - End Sub - - - - - Creates an instance of the LayoutItemBase. - - - - - Returns the place holder control corresponding to the LayoutItemBase that lets - the LayoutItemBase participate in the LayoutManager framework. - - The LayoutItemBase object. - The corresponding place holder control. - - - - Returns the place holder control corresponding to this LayoutItemBase that lets - the LayoutItemBase participate in the LayoutManager framework. - - The corresponding place holder control. - - - - Called when the Bounds property changes. - - - - - Returns the preferred size of the component. - - - - - Returns the minimum size of the component. - - - - - Indicates whether the component should be drawn visible. - - True for visible; False for hidden. - - - - Gets / sets the bounds of the component in the corresponding layout manager's - ContainerControl's client co-ordinates. - - The rectangle within the parent control, in client co-ordinates. - - - - Specifies the type of size information requested. - - - - - The preferred size of the component. - - - - - The minimum size of the component. - - - - - Represents the method that will handle the event of - the LayoutManager. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - - - - Creates a new instance of the ProvideLayoutInformationEventArgs class. - - The control for which the layout information is requested. - The type of information requested. - - - - Returns the type of information requested. - - A enum. - - - - Returns the control for which the layout information is requested. - - A control instance. - - - - Gets / sets the size to be returned. - - A size value. - - - - Indicates whether this event was handled and a value provided. - - True to indicate a value was provided; False otherwise. - - - - Helps transform points from LTR to RTL co-ordinates and vice versa. - - - - - SR provides localized access to string resources specific - from the assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Specifies the category in which the property or event will be displayed in a visual designer. - - - This is a localized version of CategoryAttribute. The localized string will be loaded from the - assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Specifies a description for a property or event. - - - This is a localized version of DescriptionAttribute. The localized string will be loaded from the - assembly manifest Syncfusion.Windows.Forms.Localization.SR.resources - - - - - Defines a interface. - - - - - Provides static methods and properties to localize the UI. - - - - - ResourceIdentifiers contains resource Ids specific to the Syncfusion.Shared.Base assembly. - - - - - The MaskedEditBox control provides restricted data input as well - as formatted data output. This control supplies visual cues about - the type of data being entered or displayed. - - - The MaskedEditBox is derived from - and is fully compatible with the textbox control. - - The MaskedEditBox control generally behaves as a textbox control with - enhancements for optional masked input and formatted output. If you do - not use an input mask, the MaskedEditBox control behaves much like a - textbox. - - - If you define an input mask using the Mask property, each character - position in the MaskedEditBox control maps to either a placeholder - of a specified type or a literal character. Literal characters, or - literals, can give visual cues about the type of data being used. - For example, the parentheses surrounding the area code of a telephone - number are literals: (919). - - - If you attempt to enter a character that conflicts with the input mask, - the control generates a ValidationError event. The input mask prevents - you from entering invalid characters into the control. - - - The MaskedEditBox control provides full support for the Windows Forms - designer and you can just drag-and-drop the control and set the properties. - - - The MaskedEditBox control provides full support for data binding. The - property has to be set to - when the MaskedEditBox's property is bound to a - DataColumn that only accepts numerical data. - - - The property provides the ability to break down the MaskedEditBox's content into different data groups. - The data groups can be defined through the designer and is defined by the length of the data group. For example, a mask of type - (###) ### - #### Ext 9999 representing a telephone number can be broken down into 3 data groups with the names "AreaCode", "PhoneNumber" - and "Extension" by setting the group lengths to be 5, 11, 9. You can access the DataGroups and the values they hold through an index based accessor or - name based accessor. - - - - - - - - // InitializeComponent - // Create the Masked edit box control: - this.maskedEditBox1 = new MaskedEditBox(); - - // Specifies if the prompt character can be entered: - this.maskedEditBox1.AllowPrompt = false; - - // The mask string: - this.maskedEditBox1.Mask = ">?<????????????"; - - // The max length is set based on the mask: - this.maskedEditBox1.MaxLength = 13; - - // The clip mode specifies if the literals are included: - this.maskedEditBox1.ClipMode = ClipModes.IncludeLiterals; - - // The date time format: - this.maskedEditBox1.TimeSeparator = ':'; - this.maskedEditBox1.DateSeparator = '-'; - - // The number format: - this.maskedEditBox1.DecimalSeparator = '.'; - this.maskedEditBox1.ThousandSeparator = ','; - - // Add the MaskedEditBox control to the form: - this.Controls.Add(this.maskedEditBox1); - - - - ' InitializeComponent - ' Create the Masked edit box control: - Me.maskedEditBox1 = New MaskedEditBox() - ' Specifies if the prompt character can be entered: - Me.maskedEditBox1.AllowPrompt = False - ' The mask string: - Me.maskedEditBox1.Mask = ">?<????????????" - ' The max length is set based on the mask: - Me.maskedEditBox1.MaxLength = 13 - ' The clip mode specifies if the literals are included: - Me.maskedEditBox1.ClipMode = ClipModes.IncludeLiterals - ' The date time format: - Me.maskedEditBox1.TimeSeparator = Microsoft.VisualBasic.ChrW(58) - Me.maskedEditBox1.DateSeparator = Microsoft.VisualBasic.ChrW(45) - ' The number format: - Me.maskedEditBox1.DecimalSeparator = Microsoft.VisualBasic.ChrW(46) - Me.maskedEditBox1.ThousandSeparator = Microsoft.VisualBasic.ChrW(44) - ' Add the MaskedEditBox control to the form: - Me.Controls.Add(Me.maskedEditBox1) - - - - - Indicates whether TextBox content is modified, when Mask is used. - - - - - The mask string that specifies the mask behavior. - - - - - The mask string to be displayed in the masked edit textbox. - - - - - The display string with the masks replaced. - - - - - The prompt character. - - - - - The prompt character when the control is in passive mode. - - - - - The padding character. - - - - - String for holding undo buffer. - - - - - String for holding redo buffer. - - - - - The insert mode. - - - - - Indicates whether the prompt character can input in a mask. - position - - - - - The static internal list of mask characters. - - - - - Used internally for holding the special masks that don't take up a - mask position in the string. - - - - - How to apply case sensitivity. - - - - - NumberFormatInfo object for handling globalization. - - - - - DateFormatInfo object for handling globalization. - - - - - The usage mode for the MaskedEditBox. - - - - - Indicaqtes whether the control has been clicked. - - - - - The maximum value that the control can take. - - - - - The minimum value that the control can take. - - - - - Internal variable to track if the control is setting the Text property - to a different value internally. In this case, the TextChanged event will - not be raised. This solves the problem with the TextChanged event being - fired even when the user has not made any changes. - - - - - The text that will be used to initailize the MaskedEdit. - - - - - The mask string for initialization. - - - - - The MaxLength for initialization. - - - - - Date separator value set during initialization. - - - - - Used to differentiate when the actual display string is different - from the internal display string (primarily because the prompt character - can be set to NULL). - - - - - SortedList with mappings of literal and mask characters between display - and internal strings. - - - - - Indicating whether the control use sequentially display mask's characters. - - - - - Used whenever the NULL character is the PromptCharacter. - - - - - Used whenever the NULL character is the PromptCharacter. - - - - - Internally holds the last used prompt character. - - - - - Manages the state of the MaskedEditBox. - - - - - The ClipMode to use when returning the contents of the textbox - (with or without literals). - - - - - The integer value to offset the mask characters by. - - - - - The context menu for the textbox. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Menu items. - - - - - Indicates whether the locale default values have to be used for the - NumberFormatInfo object. - - - - - The data groups collection. - - - - - The internal data groups collection. - - - - - The currently selected culture. - - - - - Modifier for the culture. - - - - - List of cultures that we consider to be RightToLeft. - - - - - Indicates whether the UseUserOverride value is to be set when creating - the CultureInfo. - - - - - Use this to check that the Focused property doesn't get - set when we handle OnEnter. - - - - - Internal bool to tell the FormattedText method to return just the Text without - any padding. This is used when there is a NULL prompt as the base.Text call fails - when the Text property returns a value longer (?) than the one being set. - - - - - Indicates whether the cursor is to be positioned near the decimal - when the control receives focus. - - - - - Hashtable to hold positions. - - - - - To enable KeyPress and KeyDown events to be handled - normally. - - - - - Pulls the Character on the next data position on delete, pays caution to the mask. - - - - - Input mode. - - - - - Support for culture initialization. - - - - - This method raises the ValidationError event. - - The text that was input. - The start position of the error. - - See the method for more information. - - - - - This method raises the MaskSatisfied event. - - - See the method for more information. - - - - - Invokes the ValidationError event. - A ValidationErrorEventArgs that contains the event data. - - The OnValidationError method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnValidationError in a derived - class, be sure to call the base class's OnValidationError method so that - registered delegates receive the event. - - - - - - - Invokes the MaskSatisfied event. - An EventArgs that contains the event data. - - The OnMaskSatisfied method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - - Inheritors: When overriding OnMaskSatisfied in a derived - class, be sure to call the base class's OnMaskSatisfied method so that - registered delegates receive the event. - - - - - - - Creates an object of type MaskedEditBox and initializes it. - - - The default Mask is initialized to an empty string and this will - result in the MaskedEditBox acting the same as a text box initially. - - - - - Signals the object that the initialization is completed. - - - - - Static constructor for initialization. - - - - - Initializes the context menu. - - - - - Sets the internal state of the control. - - The new state of the control. - - - - Sets the internal state of the control. - - The new state of the control. - Indicates whether the display is to be updated. - - - - Handles the popup menu. - - The context menu. - The event information. - - - - Handles the Undo menu click. - - The undo menu. - The event data. - - - - Handles the Cut menu. - - Cut menu. - The event data. - - - - Handles the Copy menu. - - Copy menu. - The event data. - - - - Handles the Paste menu. - - Paste menu. - The event data. - - - - Handles the Delete menu. - - Delete menu. - The event data. - - - - Handles the Select All menu. - - Select All menu. - The event data. - - - - Invoke to initialize the masked edit control after - setting its properties. - - - - - Internal helper function for getting mask characters - that rely on globalized settings. - - The MaskCharType value. - Char representing the globalized value. - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Returns the last mask character. - - - - - - Internal helper function to set the maximum length. - - The new mask length. - - - - Raises the PropertyChanged event. - - The argument for the PropertyChanged event. - - - - Overrides and prevents the event from being raised if the control is - being initialized. - - The event args. - - - - Returns the clip text. - - The starting position for the selection. - The end position for the selection. - Returns the clip text. - - - - Overloaded. Returns the value of a DataGroup as a string. - - - - - Returns the value of a DataGroup as a string. - - - - - Returns the value for the DataGroup. - - The current data group collection. - The index of the DataGroup. - The current clipmode. - A string with the value of the DataGroup. - - - - Returns the text for the DataGroup. - - The current data group collection. - The index of the DataGroup. - The full text. - The text for the DataGroup. - - - - Returns the offset for the DataGroup from the beginning of the string. - - The current data group collection. - The index of the DataGroup. - The offset for the current DataGroup. - - - - Indicates whether the ThousandSeparator should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - Indicates whether the DateSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the TimeSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the DecimalSeparator should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - If the mask string is empty, we do not apply any rules. - This helper function checks whether the mask is active. - - True if the mask is active; False otherwise. - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Resets BackColor of the control to its default value. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Resets the MaskedEditBox control to its initial position. - - - Invoke this method when you need to reinitialize the MaskededitBox. - The Mask property will not be lost because of calling this method. - - - - - Refreshes the display based on the current display - characteristics. - - - Changes made to the Mask property or any other property that affects the - display of the formatted string will be picked up by invoking this method. - - - - - Returns the valid mapped position. - - The index in the full string. - The valid mapped position. - - - - Handles character deletion as MS MaskedTextBox. - - - - - - - - - - - - Returns the adjusted position when there is a NULL prompt. - - The current position. - The adjusted position. - - - - Indicates whether the in parameter is a literal character. - - The character to check. - True if the input character is a mask character. - - All characters that are accepted as input are subjected to - this check. - - - - - Looks up the mask character in the mask list and returns the - index so that the masking logic knows what to do with it. - - The character to be identified. - The index to the mask in the MaskedEditBox.maskList collection. - - This is a helper method that takes a character and looks up the character - in the list of recognized mask characters and returns the result. - - - - - Overrides the method. - - The event data. - - This method is overriden in order to refresh the display between the passive - and active prompt characters. - - - - - Overrides the OnClick method. - - - Position the cursor when the user clicks inside the control. - - The event data. - - - - Overrides the method. - - The event data. - - This method is overriden in order to refresh the display between the passive - and active prompt characters. - - - - - Applies RightToLeft based on the current culture. - - - - - Extracts the mask values from the mask string that was input by the user and initializes - the internal variables that will be used in applying the mask logic. - - The mask string input by the user. - The extracted mask string.] - - The mask string is split up into three different types of - characters for applying the masking logic - they are literals, special - masks (> and <) and other masks. - - > and < are treated as special masks because they do not occupy a - position by themselves but dictate the formatting of other adjoining characters. - - - - - - Refreshes the display with the current prompt character. - - - This method changes the display based on the new prompt character by replacing - the old prompt character with the new prompt character. - - - - - Applies the masking rules and prepares the display string - based on the mask string. - - The mask string. - The display string. - - You will not need to call this method directly. It is invoked by - by methods that need to refresh the display. - - - - - Moves the cursor position depending on the action. - - The current position of the cursor. - The direction which the cursor needs to be moved. - Boolean value specifying if there is selected text. - The position of the cursor after setting it. - - The MaskedEditBox control automatically adjusts its cursor position when - there is a change in the content of the text box. - - - - - This method is a helper method for getting the next available data entry - position. - - The current position. Checks from here onward. - Returns the next available position. - - - - Returns the index of the first empty position before the current position. - - Index of the first empty position. - - - - This method is a helper method for getting the next available data entry position(backward). - - The current position. Checks from here backward. - The next available position(backward). - - - - Returns the previous data entry position. - - The current position. - Indicates whether the new position has to be unfilled. - The new position. - - - - Sets the cursor and also selects text for the specified - length based on the parameters passed in. - - The beginning position for the selection. - The length of the selection. - - - - Returns the current PromptCharacter. - - The current prompt character. - - - - Inserts a new character into the displayed text. - - The start position to insert the character. - The new character to be inserted. - Indicates whether the display is to be updated. - The changed text. - - - - Inserts a new character into the displayed text. - - The current display text. - The start position to insert the character. - The new character to be inserted. - Indicates whether the display is to be updated. - The changed text. - - - - Applies the special masks to the current character - this is for the - upper case and lower case masks that are not part of the mask string. - - - - - - - - This method is invoked when the decimal key is pressed. - - True if the key is handled; False otherwise. - - The defined behavior for this key is to jump to the position immediately - after the decimal position. - - - - - Applies group alignment. - - - - - Applies the alignment logic and moves characters within the group if possible. - In the case that there is a NULL PromptCharacter, the DisplayString should be - adjusted before invoking this method for aligning. This method will assume that - the number of characters in the MaskString will be equal to the number of - characters in the DisplayString. SpecialMasks will have to be considered separately - in the case that they exist within a group. - - The current data groups collection. - The index of the group. - - - - Returns the first empty position. - - The start position. - The first empty position. - - - - Intercepts the Key messages. - - The message data. - True if the key is handled; False otherwise. - - - - Overrides to suppress KeyPress. Only the KeyPress event is raised - no other - processing is done. - - The message. - True if the message is a KeyPress; otherwise the base class handles this. - - - - Removes the text selected or specified by the parameters. - - The current string to be modified. - The start position of the selection. - The end position of the selection. - The modified string. - - - - Removes the text selected or specified by the parameters within a group. In this case, - a group is defined as an area separated by a DecimalSeparator, Date Separator or - Time Separator. - - The current string to be modified. - The start position of the selection. - The end position of the selection. - The modified string. - - - - Removes the selected text. - - The start position of the selection. - The end position of the selection. - The modified string. - - - - Indicates whether the backspace key has been pressed. - - - - - - Adjusts the DisplayString for internal manipulations when the PromptCharacter/ - PassivePromptCharacter is NULL. - - - - - Indicates whether the delete key has been pressed. - - - - - - Handles a character input. - - The character that was input. - True if the character was successfully inserted. - - - - Changes the character case according to the casingType passed in and - returns the character with the correct casing. Use with the special masks - for upper case and lower case. - - The current character. - The casing change to be applied. - - - - - Positions the cursor next to a decimal separator if present. - - - - - Positions the cursor at the first data position. - - - - - Applies the current CharacterCasing settings in effect for this - textbox. - - The current character. - The casing change to be applied. - The changed character. - - - - Raises the MaskCustomValidate event. - - The event data. - - - - Indicates whether the character is valid for this position based on the - mask. - - The current position. - The current character. - True if the character is acceptable; False otherwise. - - - - Returns the decimal value of the displayed text. - - The currently displayed text. - The decimal value. - - - - Returns the numeric text. - - The current text. - The numeric text. - - - - Sets external text from the - clipboard to the MaskedEditBox. - - The text to be pasted. - The beginning position. - Indicates whether the text is to be inserted. - Indicates whether to ignore prompt characters. - True if the text was set successfully; False otherwise. - - - - Internal helper for getting the PromptCharacter. - - The prompt character. - - - - Internal helper for getting the PassivePromptCharacter. - - The passive prompt character. - - - - This method will Undo the previous operation. - - - The MaskedEditBox maintains its own undo mechanism. - - - - - Copies the content of the MaskEditBox to the clipboard. - - - The ClipMode property dictates what gets copied. - For example, if the content of MaskedEditBox is (919)481 1974, the - following will be the strings copied to the clipboard depending - on the ClipMode property: - - ClipModes.IncludeLiterals - (919)481 1974 - ClipModes.ExcludeLiterals - 9194811974 - - - - - - Handles the pasting of data from the clipboard into the - MaskededitBox control. - - - The method takes into account the nature of the text in the clipboard - and tries to normalize the text. It will accomodate as much as possible - depending on the current length of the text and the total length allowed. - If text with acceptable and unacceptable characters are found in the - clipboard, the unacceptable data is omitted when the data is inserted. - - - - - Cuts data from the MaskedEditBox and pastes it into - the clipboard. - - - The MaskedEditBox deletes the selected text in this case and then - copies the deleted text to the clipboard. The ClipMode property dictates - whether the literal characters are copied to the clipboard or not. - - - - - Clears the mask edit back to its initial state. - - - - - - - Sets the text property of the MaskedEditBox without raising the - TextChanged event. - - The new text string. - - This method is provided as an alternative to being able to - set the Text property through the designer. - - - - - Internal helper function to directly set the base control Text property. - - The new value. - - - - Overrides method. - - The event data. - - Raises the event when there is unacceptable - text in the control. - - - - - Validates the control. - - Specifies if the validation error is to be raised. - - - - Returns the display string when the current prompt character is NULL. - - The internal text. - The new display string. - - - - Gets length of the clean text, text without , - and characters. - - - - - ValidationError event will be raised when an unacceptable - character is encountered as input. - - - This event can be handled and you can do your processing based - on the information provided. The ValidationErrorEventArgs object - will provide the invalid text that was input and also the position - within that text where the error occurred. - - - - - MaskSatisfied event will be raised when the required fields in - a mask have been satisfied after new text has been entered / the - text changes. - - - This event will be raised only when there are entries that - require input have been filled. This even can be used to move - to another control after the mask rules have been satisfied. - - - - - Handle this event to provide custom behavior to any of the - mask characters. - - This event is raised for each valid mask position that is - being filled. In the event that the event is not handled (by - setting the Handled property of the event information), the - normal logic will be used for validating input. - - - - Property changed event handler. - - - - - Indicates whether TextBox content is modified, when Mask is used. - - - - - Use this property to define the mask string for the MaskedEditBox - control. - - - - The control can - distinguish between numeric and alphabetic characters for - validation, but cannot check for valid content, such as the - correct month or time of day. - - - MaskDescription - Empty String(Default) No mask. Acts like a text box. - ##-???-##Medium date (US). Example: 17-Apr-02 - ##-##-##Short date (US). Example: 04-17-02 - ##:## ??Medium time. Example: 10:14 PM - ##:##Short time. Example: 22:14 - - - The input mask can consist of the following characters. - - - - Mask characterDescription - #Digit placeholder. - .Decimal placeholder. The actual character used is the one specified as the decimal placeholder in your international settings. This character is treated as a literal for masking purposes. - ,Thousands separator. The actual character used is the one specified as the thousands separator in your international settings. This character is treated as a literal for masking purposes. - :Time separator. The actual character used is the one specified as the time separator in your international settings. This character is treated as a literal for masking purposes. - /Date separator. The actual character used is the one specified as the date separator in your international settings. This character is treated as a literal for masking purposes. - \Treat the next character in the mask string as a literal. This allows you to include the '#', &, 'A', and '?' characters in the mask. This character is treated as a literal for masking purposes. - &Character placeholder. Valid values for this placeholder are ANSI characters in the following ranges: 32-126 and 128-255. - >Convert all the characters that follow to uppercase. - <Convert all the characters that follow to lowercase. - AAlphanumeric character placeholder (entry required). For example: a, z, A Z, 0, or 9. - aAlphanumeric character placeholder (entry optional). - 9Digit placeholder (entry optional). For example: 0, 9. - CCharacter or space placeholder (entry optional). This operates exactly like the & placeholder, and ensures compatibility with Microsoft Access. - ?Letter placeholder. For example: a z or A Z. - LiteralAll other symbols are displayed as literals; that is, as themselves. - - - - - - - Indicates whether the cursor is to be positioned at the decimal separator (if any) when the - control receives focus. - - The value will be False by default. - - - - Adjusts the MaxLength property based on the Mask string. - - - - - Gets / sets the display string. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled. - - - The default value for the prompt character is set to '-'. - - - - - Gets / sets the integer version of the PromptCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled when the Text property is accessed. - - - The default value for the prompt character is set to '-'. - - - - - Gets / sets the integer version of the PaddingCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Gets / sets the usage mode for the MaskedEditBox. - - - The UsageMode defines the behavior of the MaskedEditBox - to accomodate specialized input for numbers. - - - - - Gets / sets the input mode of the - control. - - - The InputMode defines the behavior of the MaskedEditBox - to accommodate specialized input for numbers etc. - - - - - Pulls the next data position on delete, pays attention to the mask. - - - - - Gets / sets the culture that is to be used for formatting the currency display. - - - - - Gets / sets the mode for the cultures. - - - - - Gets / sets the character that will be used instead of mask characters when - the mask position has not been filled (when the control does not have the focus). - - - The default value for the prompt character is set to '\0'. - - - - - Gets / sets the integer version of the PassivePromptCharacter. - - - This will not be visible through the designer. Can be set through code. - This will be persisted by the designer. - - - - - Returns the text in the MaskedEditBox control, excluding literal - characters of the input mask. - - - For example if the content of the MaskedEditBox is - 99-222-9999, the mask is ##-###-###, - the ClipText will return 992229999. - - - - - The MaskedEditBox can be defined to hold multiple data groups. - - - The DataGroups can be added through the designer. DataGroups are - defined by the length of the group. The value of the group can be - accessed by the index of the group or through the name of the group. - - A MaskedEditBox with a mask (###) ###-#### Ext 9999 representing a - US phone number and extension can be defined to have 3 groups - - representing the AreaCode, PhoneNumber, and Extension. The groups would - have lengths of 5, 11 and 9 in that order. - - - The DataGroup's value is affected by the property. - - - - - - Returns the formatted text with the formatting. - - - For example, if the text in the MaskedEditBox is (999)999-9999, the - FormattedText property will give (999)999-9999. - - - - - Gets / sets the format of the text that will be returned by the MaskedEditBox - control. The nature of the formatting is set through the type. - - - See the type for the possible values and more information. - - - - - Gets / sets the character to use when a thousands separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the character to use when a date separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the character to use when a time separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Indicates whether the individual globalization property changes - are to be ignored. If set to True, the individual values will - be ignored and the locale default will be used. - - - - - Gets / sets the character to use when a decimal separator position is specified. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the provides the - necessary globalization information for the properties that rely on these - settings. - - - This value is initially set from the - and can be changed based on your requirements. - - - - - Gets / sets the provides the - necessary globalization information for the properties that rely on the datetime - settings. - - - This value is initially set from the - and can be changed based on your requirements. - - - - - Indicates whether the prompt character can be allowed to be entered as an - input character. - - - Set the value to True if the prompt character can be entered by user. - - - - - Indicates whether the Undo operation is possible at this time. - - - The MaskedEditBox maintains its own undo mechanism and hence - needs to implement this method to be compatible with the Undo - mechanism. - - - - - Gets / sets the Maximum Value that can be set through the MaskedEditBox. - - - This value is enforced only if the property - is set to . The mask string - should be set to contain numeric characters. All literal characters - will be ignored while computing the value of the contents of the - MaskedEditBox. The default value is set to . - - - - - Gets / sets the Minimum Value that can be set through the MaskedEditBox. - - - This value is enforced only if the property - is set to . The mask string - should be set to contain numeric characters. All literal characters - will be ignored while computing the value of the contents of the - MaskedEditBox. The default value is set to . - - - - - Gets / sets the adjusted SelectionStart when the PromptCharacter or PassivePromptCharacter - is NULL. - - - - - Gets / sets the adjusted SelectionLength when the PromptCharacter or PassivePromptCharacter - is NULL. - - - - - Gets or sets a value indicating whether the control use sequentially display mask's characters. - - - - - Use this everywhere except in RefreshPromptCharacter. - - - - - Overrides the property. - - - This method is overriden in order to intercept and normalize - external text that is not in a format acceptable to the - MaskedEditBox. - This property value will not be persisted in the designer. Set the Text property - after initialization through code or use the SetInitialText method to set the - value without raising the TextChanged event. - - - - - The UseUserOverride parameter for CultureInfo. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - See property. The MaskedEditBox does - not support multiline controls. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - MaskedEditBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - This class is used to send event data for a - event. - - - The required pieces of information for the event - are the invalid text and the position of the error text within the invalid text. - - - - - The invalid text. - - - - - The start position of the error. - - - - - Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - - - - Returns the invalid text as it would have been if the error had not intercepted it. - - - - - Returns the location of the invalid input within the - invalid text. - - - - - The DataGroup that will specify the behavior and formatting of a - DataGroup within the MaskedEditBox control. - - - - - The text of the column header. - - - - - The minimum width for the column header. - - - - - The name of the Datagroup. - - - - - The string value of the DataGroup. - - - - - Collection of datagroups. - - - - - Overloaded. Initializes an object of type MaskedEditDataGroupInfo. - - - The MaskedEditDataGroupInfo class holds the information needed to intialize - a data group for the control. - - - - - Initializes an object of type MaskedEditDataGroupInfo. - - The name of the DataGroup. - The DataGroup size. - The DataGroup alignment. - - - - Raises the PropertyChanged event. - - - - - - Gets / sets the collection of datagroups. - - - - - PropertyChanged event handler. - - - - - Gets / sets the size of the DataGroup. - - - - - Returns the value of the DataGroup. - - - - - Gets / sets the name of the DataGroup. - - - - - Gets / sets the alignment of the DataGroup. - - - - - Collection of objects. Used in the - property of the - control. - - The MaskedEditDataGroupInfoCollection is a set of objects - each of which hold information required to create a data group in a - . - - - - Returns the index based on the name. - - The name of the data group. - Index value. - - - - Inserts the into the collection - at the specified index. - - The zero-based index at which the item is to be inserted. - The to be inserted. - - - - Overrides OnInsert. - - - - - Overrides OnInsertComplete. - - - - - Overloaded. Creates an instance of the MaskedEditDataGroupInfoCollection class. - - The control that - contains this collection. - - - - Creates an instance of the MaskedEditDataGroupInfoCollection class. - - - - - Adds one object to the collection. - - The object to be added. - The count of the list items. - - - - Removes objects from the - collection. - - The MaskedEditDataGroupInfo object to remove. - - - - Indicates whether the collection contains a specific - MaskedEditDataGroupInfo entry. - - The MaskedEditDataGroupInfo to locate in the DataGroups. - True if the MaskedEditDataGroupInfo entry is found in the collection; false otherwise. - - - - Copies all the elements of the current one-dimensional array to the specified one-dimensional array - starting at the specified destination array index. - - The array. - The index. - - - - Returns the value of the DataGroup. - - String value of the DataGroup. - - - - Gets / sets the owner of this collection. - - - - - Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class. - - Get the object based on the index - in the collection. - - - - Gets / sets the Indexer property for the MaskedEditDataGroupInfoCollection class. - - Get the object based on the index - in the collection. - - - - Provides data for an event that can be handled by a subscriber and overrides the events default behavior. - - - - - Feedback. - - - - - Values based on which event handler can set return values. - - - - - Overloaded. Initializes a new instance of the MaskCustomValidationArgs class with the Handled property set to False. - - - - - Initializes a new instance of the SyncfusionHandledEventArgs class with the Handled and Accepted - properties set to the given value. - - - - - - - - - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Indicates whether the event has been handled and no further processing of the event should happen. - - - - - Returns the current position. It will be a valid mask position. - - - - - Returns the current character. - - - - - Returns the current Mask Character. - - - - - Represents a method that handles a event of a - . - - - - - Specifies the internal state of the MaskedEditBox. - - - - - Normal State. - - - - - Edit State. - - - - - Initial State. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - Specifies different modes of input - for the MaskedEditBox control. - - - - - In this input mode, all input is entered in Overtype mode. - The INSERT key will not have any effect in this mode. - - - - - Operates in Insert mode and when the INSERT key is pressed, - changes to Overtype mode. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Treat as a normal masked edit that does not have any - special constraints with respect to the content. - - - - - Treat the contents of the MaskedEditBox as numeric. - - - - - Enumeration for the kind of case sensitivity to be applied - at a particular point of data input. - - - - - Convert to lower case or upper case depending on the mask. - - - - - Change to lower case only. - - - - - Change to upper case only. - - - - - The various valid masks supported by the control. - - - - - Digit placeholder '#'. Numeric and white space - - - - - Decimal placeholder '.' The actual character used is the - one specified as the decimal placeholder in your - international settings. This character is treated - as a literal for masking purposes. - - - - - Thousands separator ',' The actual character used is the - one specified as the thousands separator in your - international settings. This character is treated as a - literal for masking purposes. - - - - - Time separator ':' The actual character used is the one - specified as the time separator in your international - settings. This character is treated as a literal for masking - purposes. - - - - - Date separator '/' The actual character used is the one - specified as the date separator in your international - settings. This character is treated as a literal for - masking purposes. - - - - - Escape '\' Treat the next character in the mask string as a literal. - This allows you to include the '#', &, 'A', and '?' - characters in the mask. This character is treated as a - literal for masking purposes. - - - - - Character placeholder & Valid values for this placeholder - are ANSI characters in the following ranges: 32-126 and 128-255. - - - - - Uppercase > Convert all the characters that follow to uppercase. - - - - - Lowercase < Convert all the characters that follow to lowercase. - - - - - Alphanumeric character placeholder 'A' - (entry required). For example: a z, A Z, or 0 9. - - - - - Alphanumeric character placeholder (entry optional)'a' - - - - - Digit placeholder (entry optional). For example: 0 9. '9' - - - - - Character or space placeholder (entry optional) 'C' - This operates exactly like the & placeholder, and - ensures compatibility with Microsoft Access. - - - - - Letter placeholder. For example: a z or A Z '?' - - - - - Letter placeholder. For example: a z or A Z 'y' - - - - - Hexadecimal placeholder. For example: A9 EF - - - - - Hexadecimal placeholder. For example: A9EF - - - - - Provides the list of modes in which the MaskedEditBox can operate - when it does not have the focus. - - - - - Include all literals in the data that is - returned. - - - - - Exclude the literal characters. - - - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Do not apply any alignment. - - - - - Left aligned. - - - - - Right aligned. - - - - - Center aligned. - - - - - The delegate for handling the ValidationError event. - - - Refer to the event for more information. - - - - - The ValidationErrorEventArgs class is used to send event data for a - event. - - - The required pieces of information for the event - are the invalid text and the position of the error text within the invalid text. - - - - - The invalid text. - - - - - The start position of the error. - - - - - The error message. - - - - - Overloaded. Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - - - - Creates an object of type ValidationErrorArgs. - - The invalid text that would have resulted if this error had not been intercepted. - The index position with the invalid text where the change occurred. - The error message. - - - - Returns the invalid text as it would have been if the error had not intercepted it. - - - - - Returns the location of the invalid input within the - invalid text. - - - - - Returns the error message. - - - - - Color table to customize the buttons,captions and text color in MessageBoxAdv - - - - - Default constructor for MetroStyleColorTable - - - - - Variable for CaptionBarColor - - - - - Variable for CaptionForeColor - - - - - Variable for closeButtonColor - - - - - Variable for closeButtonHoverColor - - - - - Variable for BackColor - - - - - variable for ForeColor - - - - - Variable for BorderColor - - - - - Variable for OKButtonBackColor - - - - - Variable for OKButtonForeColor - - - - - Variable for Details Button ForeColor - - - - - Variable for Details Button BackColor - - - - - Variable for YesButtonBackColor - - - - - Variable for YesButtonForeColor - - - - - Variable for AbortButtonBackColor - - - - - Variable for AbortButtonForeColor - - - - - Variable for RetryButtonBackColor - - - - - Variable for RetryButtonForeColor - - - - - Variable for IgnoreButtonBackColor - - - - - Variable for IgnoreButtonForeColor - - - - - Variable for NoButtonBackColor - - - - - Variable for NoButtonForeColor - - - - - Variable for CancelButtonBackColor - - - - - Variable for CancelButtonForeColor - - - - - To serialize CaptionBarColor - - captionBarColor - - - - Reset CaptionBarColor - - - - - To serialize CaptionForeColor - - captionForeColor - - - - Reset CaptionForeColor - - - - - To serialize CloseButtonColor - - closeButtonColor - - - - Reset CloseButtonColor - - - - - To serialize CloseButtonHoverColor - - closeButtonHoverColor - - - - Reset CloseButtonHoverColor - - - - - To serialize BackColor - - backColor - - - - Reset BackColor - - - - - To serialize ForeColor - - foreColor - - - - Reset ForeColor - - - - - To serialize BorderColor - - borderColor - - - - Reset BorderColor - - - - - To serialize OKButtonBackColor - - okbuttonbackcolor - - - - Reset OKButtonBackColor - - - - - To serialize OKButtonForeColor - - okbuttonforecolor - - - - Reset OKButtonForeColor - - - - - To serialize YesButtonBackColor - - yesbuttonbackcolor - - - - Reset YesButtonBackColor - - - - - To serialize YesButtonForeColor - - yesbuttonforecolor - - - - Reset YesButtonForeColor - - - - - To serialize AbortButtonBackColor - - abortbuttonbackcolor - - - - Reset AbortButtonBackColor - - - - - To serialize AbortButtonForeColor - - abortbuttonforecolor - - - - Reset AbortButtonForeColor - - - - - To serialize IgnoreButtonBackColor - - ignorebuttonbackcolor - - - - Reset IgnoreButtonBackColor - - - - - To serialize IgnoreButtonForeColor - - ignorebuttonforecolor - - - - Reset IgnoreButtonForeColor - - - - - To serialize RetryButtonBackColor - - retrybuttonbackcolor - - - - Reset RetryButtonBackColor - - - - - To serialize RetryButtonForeColor - - retrybuttonforecolor - - - - Reset RetryButtonForeColor - - - - - To serialize NoButtonBackColor - - nobuttonbackcolor - - - - Reset NoButtonBackColor - - - - - To serialize NoButtonForeColor - - nobuttonforecolor - - - - Reset NoButtonForeColor - - - - - To serialize CancelButtonBackColor - - cancelbuttonbackcolor - - - - Reset CancelButtonBackColor - - - - - To serialize CancelButtonForeColor - - cancelbuttonforecolor - - - - Reset CancelButtonForeColor - - - - - Gets/sets the captionbarcolor - - - - - Gets/sets the captionforecolor. - - - - - Gets/sets the CloseButton color of MessageBoxAdv. - - - - - Gets/sets the CloseButtonHoverColor. - - - - - Gets/sets the backcolor. - - - - - Gets/sets the forecolor. - - - - - Gets/sets the bordercolor - - - - - Gets/sets the OKButtonBackColor - - - - - Gets/sets the OKButtonForeColor - - - - - Gets/sets the Details Button ForeColor - - - - - Gets/sets the Details Button BackColor - - - - - Gets/sets the YesButtonBackColor. - - - - - Gets/sets the YesButtonForeColor. - - - - - Gets/sets the AbortButtonBackColor. - - - - - Gets/sets the AbortButtonForeColor. - - - - - Gets/sets the RetryButtonBackColor - - - - - Gets/sets the RetryButtonForeColor - - - - - Gets/sets the IgnoreButtonBackColor. - - - - - Gets/sets the IgnoreButtonForeColor. - - - - - Gets/sets the NoButtonBackColor. - - - - - Gets/sets the NoButtonForeColor. - - - - - Gets/sets the CancelButtonBackColor - - - - - Gets/sets the CancelButtonForeColor - - - - - Displays a message box with Office2007 style that can contain text, buttons, and symbols that inform and instruct the user. - - - - - Initializes the s_office10theme variable. - - - - - Initializes the m_CaptionAlign variable. - - - - - Initializes the m_Size variable. - - - - - holds to Details Text - - - - - Variable for Style - - - - - Variable to notify MessageBox is Opened or not, Should be open only one MessageBoxAdv at a time. - - - - - Variable to specify the Shadow effect of the MessageBox. - - - - - Variable to specify the Layout of the MessageBoxAdv. - - - - - Variable to specify the Font for Button options - - - - - Variable to specify the Font for Message information. - - - - - Gets or sets the Message Font - - - - - Gets or sets the Details Font - - - - - Variable to specify the default backcolor of the MessageBoxAdv. - - - - - Variable for MetroColorTable - - - - - Initializes the s_office2013theme variable. - - - - - Initializes the s_Office2016Theme variable. - - - - - Gets or sets whehter to apply AeroTheme in Default MessageBoxStyle. - - - - - Displays a message box with specified text. - - The text to display in the message box. - - One of the values. - - - - - Displays a message box with specified text and caption. - - The text to display in the message box. - The text to display in the title bar of the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text. - - The owner. - The text. - - One of the values. - - - - - Displays a message box with specified text, caption, and buttons. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text and caption. - - An implementation of that will own the modal dialog box. - The text to display in the message box. - The text to display in the title bar of the message box. - - One of the values. - - - - - Displays a message box with specified text, caption, buttons, and icon. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - - One of the values. - - - - - Displays a message box with specified text, caption, buttons, and icon. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, and buttons. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - - One of the values. - - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Image to be displayed in MessageBoxAdv - Size of the Image - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Image to be displayed in MessageBoxAdv - Size of the Image - Selected Button Index - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Icon to be displayed in MessageBoxAdv - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - Icon to be displayed in MessageBoxAdv - Selected Button Index - - - - To Show MessageBoxAdv - - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - - - - To Show MessageBoxAdv - - Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons Collection - - - - To calculate the Index - - Parent Form - Message Text - Message Caption - Custom Buttons Collection - MessageIcon - Default Button - MessageBoxAdv Option - To show the help option - - - - - To calculate the Index - - Parent Form - Message Text - Message Caption - Custom Buttons Collection - MessageIcon - Default Button - MessageBoxAdv Option - To show the help option - To get the CancelEventHandler - - - - To display the MessageBoxAdv - - Parent Form - MessageBoxAdv Text - MessageBoxAdv Caption - Custom Buttons - MessageBoxAdv Icons - MessageBoxAdv Default Button - MessageBoxAdv Option - To show / hide the Help option - HelpButtonClickEventHandler - Image to be displayed in MessageBoxAdv - Size of image to be displayed in MessageBoxAdv - - - - - Displays a message box with the specified text, caption, buttons, icon, and default button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, and default button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. - - The owner. - The text. - The caption. - The buttons. - The icon. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, and icon. - - The owner. - The text. - The caption. - The buttons. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, and options. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, and options. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - The icon. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, and default button. - - The owner. - The text to display in the message box. - The caption. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - true to show the Help button; otherwise, false. The default is false. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - true to show the Help button; otherwise, false. The default is false. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - One of the values that specifies which icon to display in the message box. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - The help button click handler. - - One of the values. - - - - - Displays a message box with the specified text, caption, buttons, icon, default button, options, and Help button, using the specified Help file. - - The text to display in the message box. - The text to display in the title bar of the message box. - One of the values that specifies which buttons to display in the message box. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values that specifies the default button for the message box. - One of the values that specifies which display and association options will be used for the message box. You may pass in 0 if you wish to use the defaults. - The help button click handler. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. - - The owner. - The text. - The caption. - The buttons. - The icon. - One of the values the specifies the default button for the message box. - The options. - - One of the values. - - - - - Displays a message box in front of the specified object and with the specified text, caption, buttons, icon, default button, and options. - - The owner. - The text. - The caption. - The buttons. - The image used instead of system icon. - Size of the image. If empty, original image size is used. - One of the values the specifies the default button for the message box. - The options. - - One of the values. - - - - - - - - - - - - - - - - - - - - - - - - - Specifies the title alignment of MessageBoxAdv. - - Default caption alignment is Left. - - This property is not applicaple when enabling ApplyAeroTheme property in Default Style. - - - - - Specifies the Maximum Size of MessageBoxAdv. - - - - - Specifies the Shadow effect of the MessageBox. - - - - - - Gets or sets a value indicating whether control's elements are aligned to Right-To-Left or Left-To-Right Layout - - - - - - Gets or sets the Button option Font - - - - - Gets or sets the Message Font - - - - - Gets or sets the Caption Font - - - - - Gets or sets the Details Font - - - - - Specifies the default backcolor of the MessageBoxAdv. - - - - - Gets or sets a value indicating the style used for drawing the control - - - - - Color table to customize the buttons,captions and text color in MessageBoxAdv - - - - - Gets or sets the Office2007 theme, which is used to show message boxes. - - The Office2007 theme. - - - - Gets or sets the Office2010 color theme. - - - - - Gets or sets the Office2013 color theme. - - - - - Gets or sets the Office2016 color theme. - - - - - Gets or sets whehter to apply AeroTheme in Default MessageBoxStyle. - - - - - Specifies the style in which controls will appear and behave. - - - - - Default appearance - - - - - Office2010Form appearance - - - - - Office2013 appearance - - - - - Metro appearance - - - - - Office2016 appearance - - - - - Normal font weight - - - - - Constructor for Office2007form with empty arguments - - - - - Variable to Gets or Set Value to Drop Shadow to the form. - - - - - Reset the value of the DropShadow - - - - - Serializing the value of the DropShadow - - - - - - To Hold the CaptionButtons visibility - - - - - Hold to apply the Multi Monitor appearance - - - - - Gets/Sets touch enabled - - - - - applies the scaling - - - - - - applies the scaling - - - - - - Gets the closebox - - - - - - - To define whether the customization needs to be applied - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when Form Location is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - pt - coordinates of the cursor. The coordinates are relative to the upper-left corner of the screen. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - To customize the image size - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets Image for a button by specific ID. - - Button ID that indicates Image. - - - - - Gets system command by specific buttonID. - - Button ID that indicates system command. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Invalidates client area if Office2007Scheme back color is used. - - - - - Occurs when property is changed. - - - - - - Resets the CaptionBarHeight back to its default value. - - - - - - - - - - - - - - - - - - - - - - - - - Selected system button. (SB__MAX - no button is selected) - - - - - Pressed system button. (SB__MAX - no button is pressed) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Holds the value for Caption Height - - - - - - - - - - - - - - - CaptionText Color - - - - - Gets or Sets whether to enable Drop Shadow to the Office2007form - - - - - Gets the CreateParams for the Office2007 form. - - - - - Gets/sets if to disable Office2007 look and feel. - - - - - Gets/sets if to Force the OS Aero theme look and feel when Office2007Visual style is enabled. - - - If DisableOffice2007Style is set to true then the ordinary form drawn will still have the aero theme applied - as the default frame is drawn in the base. - - - - - Gets or Sets the AutoScroll value - - - - - Gets or sets the Office2010 colorscheme - - - - - - - - - - Gets or Sets the CaptionBar Height. - - - - - Gets or sets the font of the form's title. - - Don't rename this property. Name is important for CodeDomSerialization order. - - - - Gets or sets the color for caption in titlebar - - - - - Gets or sets the alignment of of the form's title. - - - - - Gets the colortable for Office2010 - - - - - - - - - - Gets whether right to left has been set - - - - - Gets or Sets the Selected button - - - - - Gets or Sets the pressed button - - - - - Gets or Sets the highlighted button - - - - - Gets / Sets whether to hide the CaptionButtons, when displayed in Secondary Monitor - - - - - Gets / Sets whether to apply the Multi Monitor appearance - - - - - Gets the Maximize button - - - - - Gets the Minimize button - - - - - Gets the layout - - - - - Gets the caption height value - - - - - Gets/Sets touch enabled - - - - - Gets the value of title height - - - - - Gets whether the form is minimized - - - - - Gets whether the form is maximized - - - - - Gets whether the form is sizable - - - - - - Gets the screen rectangle - - - - - Gets the area to be painted - - - - - Gets the value of Isvisible property - - - - - Specifies whether current selected Office2007 scheme background color is used to fill form's backround is used. - If false is used. - - - - - Gets the caption font - - - - - Gets the system font - - - - - Gets the closebox value - - - - - DPI Scaling - - - - - Defines whether the DPI setting is enabled. - - - - - Defines the dpi scaling - - - - - To retrieve DPI Value - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Border width of the Office2007Form instance. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets border width of the Office2007Form instance. - - - - - - - - - - - - - - - DeviceCap - - - - - Constructor for CaptionManager - - - - - - Provides information about a control that can be used by an accessibility application. - - - - - Office2007Form - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the number of children in the accessible object. - - Number of Child. - - - - Retrieves the accessible child corresponding to the index. - - Index - Child specified to the index - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Holds the Button height - - - - - - Custom Button Collection - - - - - - Initializes the new instance for MessageBoxMetroStyleFormAdv class. - - owner window - text - form caption - buttons - form icon - default button - options - to show helpbutton - click event data - image - sizing image - - - - Custom Button Initialization - - - - - Click Event for Custom Buttons - - - - - Custom Button Size initialization - - - - - Returns the Button width - - - - - - Helps to apply the Font Settings to Custom Buttons - - - - - Helps to apply the Font Settings to built buttons - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Extends the class to handle double input - and validation. - - - The DoubleTextBox is derived from textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting double input in a consistent format requires validation code - that needs to be built into the application when using the Windows Forms text box control. - The DoubleTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter double data. - - - The DoubleTextBox is also closely tied to the globalization settings of the - operating system for number related properties. Please refer to the - - class for a detailed explanation of globalization and number related attributes. - - - The DoubleTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms text box. - - - The DoubleTextBox also raises a event when - in appropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for number related issues. - - - - - - Extends the class to handle numeric input - and validation. - - - - The NumericTextBox is not to be used directly. - - - - - - For initialization of culture-related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the Culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - Overloaded. Creates an object of type NumericTextBox. - - - The NumericTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Indicates whether the NumberDecimalDigits should not be serialized if the UseLocaleDefault property is set. - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberDecimalSeparator should not be serialized if the UseLocaleDefault property is set. - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberGroupSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberGroupPattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the NumberNegativePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Gets or sets the maximum number of digits for the decimal portion of the number. - - - If the number requires two decimal points to accommodate the smallest - denomination and this property will have the value 2 in this case. If there - is a need to have a different value based on the locale, it will be - automatically changed if the property - is True. - - - - - Gets or sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the grouping of NumberDigits in the NumberTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets or sets a value indicating whether to delete selection when number is changed to negative. - - - true if [delete selection on negative]; otherwise, false. - - - - - The line of the null value. - - - - - The minimum value. - - - - - - - - - - - - - - - The maximum value. - - - - - The initial double value set in InitializeComponent. - - - - - The double value when the control gets the focus. Used when validating. - - - - - The double value that is set through the DoubleValue property. - - - - - Overloaded. Creates an object of type DoubleTextBox. - - - The DoubleTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - - - - - - - Formats the given text according to the current setting. - - - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the Max value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Raises the event. - - A that contains the event data. - - - - Overrides the method. - - The event data. - - Saves the current DoubleValue so that it can be compared - during validation. The DoubleValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Indicates whether the NULLString property will be used. - - - - - Gets or sets the double value of the control. This will be formatted and - displayed. - - - - - Gets or sets the maximum value that can be set through the DoubleTextBox. - - - - - Gets or sets the minimum value that can be set through the DoubleTextBox. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - DoubleTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Extends the class to handle integer input - and validation. - - - The IntegerTextBox is derived from textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting integer input in a consistent format requires validation code - that needs to be built into the application when using the Windows Forms textbox control. - The IntegerTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter double data. - - - The IntegerTextBox is also closely tied to the globalization settings of the - operating system for number related properties. Please refer to the - - class for a detailed explanation of globalization and number related attributes. - - - The IntegerTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - - The IntegerTextBox also raises a event when - inappropriate data is entered into the control. - - - All clipboard functions such as copy, paste and cut are also supported with - special accommodations for a number related issues. - - - - - - Specifies whether MinMaxValidation is being in progress. - - - - - The minimum value. - - - - - The maximum value. - - - - - The initial Int64 value set in InitializeComponent. - - - - - - - - - - - - - - - The integer value when the control gets the focus. Used when validating. - - - - - The text when the control gets the focus. Used when validating. - - - - - The Int64 value that is set through the IntegerValue property. - - - - - Indicates whether to allow insets zero in the beginning value. - - - - - Indicates whether NullString should be set if UseNullString is true. - - - - - Overloaded. Creates an object of type IntegerTextBox. - - - The IntegerTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - - - - - - Overrides . - - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the max value to the default. - - - - - Generates string format for use in Conver.Format. - - - - - - - - - Adds negative symbol. - - - - - - - - - Returns zero string as began sValue. - - - - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - Overrides the method. - - The event data. - - Saves the current IntegerValue so that it can be compared - during validation. The IntegerValueChanged and TextChanged event - will only be raised if the value is different during validation. - - - - - performs the Min/Max validation. - - - - - Indicates whether to serialize property value. - - - - - - Indicates whether to serialize property value - - - - - - - - - - - - Formats the given text according to the current setting. - - - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Gets / sets the integer value of the control. This will be formatted and - displayed. - - - - - Gets / sets the maximum value that can be set through the IntegerTextBox. - - - - - - - - Gets / sets the minimum value that can be set through the IntegerTextBox. - - - - - Indicates whether to allow insets zero in the beginning value. - - - - - Gets / sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the maximum number of digits for the decimal portion. - - - This property is always set to zero for the IntegerTextBox. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - IntegerTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Summary description for SpecialCultureValues. - - - Modifier for the currently selected culture. - - - - - No modifier for the selected culture. - - - - - Use the current culture on the system. - - - - - Use the current UI culture. - - - - - Use the current InstalledCulture. - - - - - Summary description for NumberClipModes. - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - Summary description for CurrencyClipModes. - - - The clipping mode to be used by the control - when returning the text content of the control. - - - - - Include all literals in the data that is - returned. - - - - - Exclude all literals in the data that is returned. - - - - - The delegate for handling the SetNULL event. - - - Refer to the event for more information. - - - - - Provides data about a and - events of a , , - , or . - - - - - Initializes a new with event data. - - The NULL value. - - - - Returns the NULL value. - - - - - The delegate for handling the KeyValidate event. - - - Refer to the event for more information. - - - - - Cancellable event for - of , , - , or . - - - - - Returns the character key that was input by the user. - - - - - Returns the changed string that will be set as the text of the text box if this event is not cancelled. - - - - - Returns the unformatted changed string that will be set as the text of the text box if this event is not cancelled. - - - - - provides new value and old value after the validation. - - - - - - - - - - Initializes a new instance of the class. - - The new value. - The old value. - - - - Gets the new value. - - The new value. - - - - Gets the old value. - - The old value. - - - - Used to pass state between PrepareXXX and CompleteXXX methods during key processing. This allows for - raising the KeyValidate event to cancel any key. - - - - - Keeps the focus on the control if the validation fails - - - - - Sets NullString to the the control if the validation fails - - - - - Sets MinValue if Value is less than MinValue or MaxValue if greater thas MaxValue if the Validation fails - - - - - Extends the class to handle percentage input - and validation. - - - The PercentTextBox is derived from the textbox and provides all the functionality - of a textbox and adds additional functionality of its own. - - Collecting percentage input in a consistent format requires validation - that needs to be built into the application when using the Windows Forms textbox control. - The PercentTextBox includes all this logic into its methods and properties - and makes it easy for the developer and the end user to collect and enter percentage data. - - The PercentTextBox is also closely tied to the globalization settings of the - operating system for pecentage-related properties. Please refer to the - - class for a detailed explanation of globalization and percent-related attributes. - - The PercentTextBox has full support for the Windows Forms designer and you can - just drag-and-drop and set properties on the control just as you would with the - Windows Forms textbox. - - The PercentTextBox also raises a event when - inappropriate data is entered into the control. - - All clipboard functions such as copy, paste, and cut are also supported with - special accomodations for percent-related issues. - - - - - - - - Specifies the control is in edit mode. - - - - - The minimum value. - - - - - The maximum value. - - - - - The internal value string. - - - - - - - - Indicates whether the mode has to be automatically switched - when the control receives focus. - - - - - The initial double value set in InitializeComponent. - - - - - The double value when the control gets the focus. Used when validating. - - - - - The double value that is set through the DoubleValue property. - - - - - For initialization of culture-related values. Needed when SpecialCultureValue is - not the default value. Since the base class will reset the culture property during - ISupportInitialize.EndInit, we will have to hold these values and set them on the - correct cultureinfo / numberformatinfo. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The negative patterns. - - - - - Overloaded. Creates an object of type PercentTextBox. - - - The PercentTextBox object will be initialized with the default values - for the display and data properties. You need to set any specific - values. - - - - - Clean up any resources being used. - - - - - - - - - Overrides . - - - - - - - - - - - - - - - - - - Indicates whether the PercentSymbol should not be serialized if the value is the same - as the one for the current culture. - - True if the value is different from the value for the current culture. - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentPositivePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - - - - - - Indicates whether the PercentDecimalDigits should not be serialized if - the UseLocaleDefault property is set. - - True if the - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentDecimalSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether PercentGroupSeparator should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentGroupPattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Indicates whether the PercentNegativePattern should not be serialized if - the UseLocaleDefault property is set. - - - - - - Resets the value to the culture specific value. - - - - - Overrides the method. - - The event data. - - Saves the current DoubleValue so that it can be compared - during validation. The DoubleValueChanged and TextChanged event - will only be raised if the value is different during validation. - Also switches mode if the property is set. - - - - - Overrides the method. - - - - - - Formats the given text according to the current setting. - - - - - - - - - - - - - - - - - - Override this to return PercentDecimalSeparator in PercentTextBox. - - - - - - - Override this to return PercentGroupSeparator in PercentTextBox. - - - - - - - Overrides . - - The text to be parsed. - True if the value is negative; false otherwise. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Indicates whether the MaxValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - Indicates whether the MinValue property should be serialized. - - True if the value is not equal to . - - - - Resets the value to the default. - - - - - - - - - - - Validates the control. - - Indicates whether the validation error is to be raised. - - - - - - - - - Overrides the base behavior to implement support for NumberMode. In this mode, the - base behavior of formatting each key is not followed. The key is validated internally to check for - Max and Min conditions and then displayed as is without the formatting. The key will be ignored if - the supressKeyPress value is not set to False. This is set to False when a valid key press is encountered. - - - - - - - - - - - - - - - - - - - - - - - Invoked when the negative key is pressed. - - True if the key is handled; false otherwise. - - The defined behavior for this key is to toggle the sign (negativity) - of the content of the CurrencyTextBox. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - A that contains the event data. - - - - Indicates whether to serialize the Text property - if it is null or quals NullString - - - - - - Restores the CurrencyNumberDigits to the MaximumLength. - - - - - - - - - Returns the formatted text with the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - FormattedText property will give $45,000.00. - - - - - Raises the event. - - A that contains the event data. - - - - Overrides OnTextChanged. - - The event data. - - - - - - - - - - - - - - - - - - - - - - - - Pastes the data in the clipboard into the PercentTextBox control. - - - The data will be formatted before being pasted into the text box. - - - - - Occurs when the property is changed. - - - - - Gets / sets the percent symbol to be used in the PercentTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the pattern to use when the value is positive. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the maximum number of digits for the decimal portion of the percentage. - - - If there is a need to have a different value based on the locale, it will be - automatically changed if the property - is True. - - - - - Gets / sets the decimal separator character that will be used for the display. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the separator to be used for grouping digits. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the grouping of PercentDigits in the PercentTextBox. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - Gets / sets the pattern to use when the value is negative. - - - This value is initially set from the - and can be changed based on your requirements or based on the locale. - - - - - The negative patterns. - - - - - Indicates whether the PercentTextBox should allow editing in numeric mode - when it receives focus. - - - - - Gets / sets the maximum value that can be set through the PercentTextBox. - - - - - - Gets / sets the minimum value that can be set through the PercentTextBox. - - - - - - Gets / sets the double value of the control. This will be formatted and - displayed. - - - - - Gets / sets the percent value of the control. This will be formatted and - displayed. - - - - - Wrapper property around the selected value. Use this property if you - want to be able to set the value of the control to NULL. - - - - - Occurs when the property is changed. - - - - - Overrides the Text property of . - - - This property is overriden in order to normalize the data that is set - to the Text property and format it as needed. The method - is used to format the data. - - - - - Gets or sets the NULL string to be displayed. - - - - - Returns the clipped text without the formatting. - - - For example, if the Text in the CurrencyTextBox is $45,000.00, the - ClipText property will give 45000.00. - - - - - - - - values are edited as percentage values. - - - - - values are edited as double values and then displayed using percentage formatting. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - PercentTextBox - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Summary description for ToolTipAdv. - - - Tooltip occurs if the TreeViewAdv control's width is shorter than the text length of some of the nodes and when the mouse pointer is hovered on - top of the texts of these nodes, a filled rectangle is displayed.The name of the tooltipAdv depends upon the text of the TreeNodeAdv. - By default tooltips will display ,if the user leaves the mouse pointer stationary over the node(whose text Length is greater than the width - of the tree)for a short period. - This example describes how to display Tooltips for the images's associated with the TreeNodeAdv. - The tooltips for the images ,associated with the nodes can be displayed by using Syncfusion.Windows.Forms.ToolTipAdv along with handling - treeViewAdv's MouseHoverEvent .The tooltips for the images are displayed in the same way as the tooltips for the nodes.Here PointToClient and - PointToNode methods are used in the treeViewAdv. - - private void treeViewAdv1_MouseHover(object sender, System.EventArgs e) - { - TreeNodeAdv node=new TreeNodeAdv(); - Point p=this.treeViewAdv1.PointToClient(Control.MousePosition); - node=this.treeViewAdv1.PointToNode(p); - Point mouseLoc=Control.MousePosition; - mouseLoc.Offset(10,10); - if(node==this.treeViewAdv1.Nodes[0]) - { - this.toolTipAdv1.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[1]) - { - this.toolTipAdv2.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[2]) - { - this.toolTipAdv3.ShowPopup(mouseLoc); - } - if(node==this.treeViewAdv1.Nodes[3]) - { - this.toolTipAdv4.ShowPopup(mouseLoc); - } - } - - Private Sub treeViewAdv1_MouseHover(ByVal sender As Object, ByVal e As System.EventArgs) - Dim node As TreeNodeAdv = New TreeNodeAdv() - Dim p As Point=Me.treeViewAdv1.PointToClient(Control.MousePosition) - node=Me.treeViewAdv1.PointToNode(p) - Dim mouseLoc As Point=Control.MousePosition - mouseLoc.Offset(10,10) - If node Is Me.treeViewAdv1.Nodes(0) Then - Me.toolTipAdv1.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(1) Then - Me.toolTipAdv2.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(2) Then - Me.toolTipAdv3.ShowPopup(mouseLoc) - End If - If node Is Me.treeViewAdv1.Nodes(3) Then - Me.toolTipAdv4.ShowPopup(mouseLoc) - End If - End Sub - - This example describes the way for completely disabling the Tooltips in the TreeViewAdv and the way for disabling of tooltips for - some particular nodes. - The tooltip for some of the nodes which have HelpText can be disabled by handling ToolTipControl_BeforePopup event.Here in the treeViewAdv, for - some of the nodes e.Cancel property is set to true by getting the node's position in ToolTipControl's BeforePopup event handler in which the - tooltips for the respective nodes are disabled .The tooltips for the same nodes can be enabled by setting the e.Cancel=false in ToolTipControl's - BeforePopup Event. - - private void ToolTipControl_BeforePopup(object sender, CancelEventArgs e) - { - Point pt=this.treeViewAdv1.PointToClient(new Point(MousePosition.X,MousePosition.Y)); - TreeNodeAdv node=this.treeViewAdv1.GetNodeAtPoint(pt); - if(node!=null) - { - if(node.Text=="Node1" || node.Text=="Node3"||node.Text=="Node5"||node.Text=="Node7") - { - e.Cancel=true; - } - } - } - - Private Sub ToolTipControl_BeforePopup(ByVal sender As Object, ByVal e As CancelEventArgs) - Dim pt As Point=Me.treeViewAdv1.PointToClient(New Point(MousePosition.X,MousePosition.Y)) - Dim node As TreeNodeAdv=Me.treeViewAdv1.GetNodeAtPoint(pt) - If Not node Is Nothing Then - If node.Text="Node1" OrElse node.Text="Node3" OrElse node.Text="Node5" OrElse node.Text="Node7" Then - e.Cancel=True - End If - End If - End Sub - - - - - - - - - - - - - - - - - - - - Required designer variable. - - - - - - - - - Clean up any resources being used. - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - - - - - - - - - - - - - - - - - - - - - - Raises the before popup event, when popup is about to be shown - - - - - - Raised when the size of the label's text is changed - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The background color, gradient and other styles can be set through - this property. - - - The ToolTipAdv control provides this property to enable specialized - custom gradient backgrounds. - - - - - Gets / sets the 2D border style. - - - - - Gets / sets the style of the 3D border. - - - - - Gets / sets the border style of the panel. - - - - - Gets or sets the maximum width of the tooltip control. It wraps text that flows beyond the - restricted width.To allow text to flow in a single line, set restricted width to zero. - - - - - Indicates if cursor of host control is used. - - - - - Indicates whether to ignore all keys. - - True to ignore all keys; False otherwise. Default is False. - - When the popup is showing, it will "swallow" all the WM_KEYDOWN and WM_CHAR - messages. To prevent it, set this property to True. - - - - - - - - Gets or sets a value indicating whether the Text is changed in ValueChanged event - - - - - Gets or sets a value indicating whether the ValueChanged event was handled. - - - - - ProgressBarAdv is an extension to the standard - progress bar with many styles to choose from. - - - - The ProgressBarAdv control has background, border and foreground styles. - The background styles are . - The border styles are . - The foreground styles are . - - - this.progressBarEx1 = new ProgressBarAdv(); - this.progressBarEx1.BackGradientEndColor = System.Drawing.SystemColors.ControlLightLight; - this.progressBarEx1.BackGradientStartColor = System.Drawing.SystemColors.ControlDark; - this.progressBarEx1.BackgroundStyle = ProgressBarBackgroundStyles.VerticalGradient; - this.progressBarEx1.BackSegments = false; - this.progressBarEx1.Border3DStyle = System.Windows.Forms.Border3DStyle.RaisedOuter; - this.progressBarEx1.FontColor = System.Drawing.SystemColors.HighlightText; - this.progressBarEx1.Location = new System.Drawing.Point(240, 8); - this.progressBarEx1.ProgressStyle = ProgressBarStyles.Tube; - this.progressBarEx1.SegmentWidth = 20; - this.progressBarEx1.Size = new System.Drawing.Size(400, 23); - this.progressBarEx1.TextShadow = false; - this.progressBarEx1.ThemesEnabled = false; - this.progressBarEx1.TubeEndColor = System.Drawing.SystemColors.Control; - this.progressBarEx1.TubeStartColor = System.Drawing.SystemColors.ControlDark; - this.progressBarEx1.Value = 79; - - - - - - A implementing the interface. - - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Fired when the ThemesEnabled property changes. - - - - - Indicates whether themes are enabled for this control. - - - - - Starts initialization mode. - - - - - Ends initialization mode and calls . - - - - - Implementation of the interface. - - Set this to False if you want to refresh brushes later. - - - - Constructor. - - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets/Sets the renderer of the ProgressBarAdv. - - - - - Paints the control. - - Event sender. - Event data. - - - - Paints the control by using Renderer class. - - Provides data for the Paint event. - The is helps to draw the progress. - - - - Font changed - - - - - - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - The graphics context. - The rectangle. - - Essential Grid calls this method to render the contents of the progress bar - within a cell's area. - - No border will be drawn around the control. - - The method will throw an InvalidOperationException if the control has a handle - and is visible. - - The method will reset the bounds and BorderStyle of this control. - This method only supports horizontal progress bars. We will add support for static drawing of vertical progress bars in the future. - - - - - Draws the contents of the progress bar at the specified rectangle. This method can only - be called when the control has no handle attached or is not visible. - - The graphics context. - The rectangle. - Specifies if the progressbar should be drawn right to left. - - Essential Grid calls this method to render the contents of the progress bar - within a cell's area. - - No border will be drawn around the control. - - The method will throw an InvalidOperationException if the control has a handle - and is visible. - - The method will reset bounds and BorderStyle of this control. - This method only support horizontal progress bars. We will add support for static drawing of vertical progress bars in the future. - - - - - Holds the progress rectangle bounds - - - - - Gets or sets a value indicating whether the fore color is changed or not. - - - - - Gets or sets a value indicating whether the GradientStartColor is changed or not. - - - - - Gets or sets a value indicating whether GradientEndColor is changed or not. - - - - - Gets or sets a value indicating whether BackGradientStartColor is changed or not. - - - - - Gets or sets a value indicating whether BackGradientEndColor is changed or not. - - - - - Gets or sets a value indicating whether FontColor is changed or not. - - - - - Gets or sets a value indicating whether BorderColor is changed or not. - - - - - Serialize the gradient color - - - - - Resets the gradient color - - - - - Serialize the gradient color - - - - - Resets the gradient color - - - - - Initialize the whether the Marker imager is shown or not. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Display the marker image. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Specify the marker image size. - - - - - Resets the property to it's default value. - - - - - Indicates whether the current value of the property is to be serialized. - - - - - - Serialize the borderstyle - - - - - Reset the border style - - - - - Serializes the bordercolor - - - - - Resets the bordercolor - - - - - Recreates the brushes used to draw the ProgressBar. - - - - - Draws the fill color of the ProgressBar when continuous is selected. - - - - - Draws segments in the given rectangle when system is selected. - - - The to draw the segments in. - - - - Draws the dual gradient of the ProgressBar when gradient is selected. - - - - - Draws the dual gradient color of the progress bar when office2016 theme is selected. - - - - - - - - - Draws the image of the ProgressBar when image is selected. - - - The to draw the image in. - The used to draw in the rectangle. - - - - Draws the dual tube of the ProgressBar when tube is selected. - - - - - Draws the multiple gradient of the ProgressBar when multiple gradient is selected. - - - - - Returns the region of the segments if segment mode is selected. - - The rectangle in which the segments are situated in. - Indicates the segments are offset. - The region containing the segments. - - - - - - - - - - - Indicates whether the ProgressBar is vertical. - - - - - - - Increments the Value property with the Step value. - - The success or failure of the Increment. It fails if the incremented value is bigger than the maximum. - - - - Decrements the Value property with the Step value. - - The success or failure of the Increment. It fails if the incremented value is smaller than minimum. - - - - Handle this event to set the text of the progressbar when the value changes. - Make sure the TextStyle property is set to Custom. - - - To set the text of the progressbar, set the and the to True. - - - - - Handle this event to draw a custom waiting render. - WaitingCustomRender must be set to True. - - - - - Gets/Sets the Renderer of the ProgressBarAdv. - - - - - Gets the Office2016 style colors respective to the ProgressBarAdv style - - - - - Gets / sets the value between minimum and maximum. - - - This value represents the progress state of the ProgessBar. For default if it is set to 50, minimum=0 and maximum=100 ( 50% ). - - - - - Gets / sets the lower boundary for the value. - - - By default, its value is zero which means that the value of the ProgressBar cannot take values lower than zero. - - - - - Gets / sets the upper boundary for the value. - - - By default, its value is 100 which means that the value of the ProgressBar cannot take values higher than 100. - - - - - Gets / sets the value to increment when Increment() and Decrement() methods. - - - By default, its value is 10 which means that when Increment() is called, the value of the ProgressBar is incremented by 10. - - - - - Indicates whether the waiting gradient will be replaced by another custom waiting render which is defaulted to segments. - To customize it, handle the DrawCustomWaitingRender event. - - - - - Gets / sets the width of the waiting gradient. - - - - - Indicates whether the waiting gradient is enabled. - - - - - Gets / sets the interval of the waiting gradient. - - - - - Indicates whether the foreground is segmented. - - - By default, its value is True which means that the foreground will be drawn segmented. - - - - - Indicates whether the multiple gradient is compressed if the value is smaller than the maximum. - - - By default, its value is True which means that if the value is less than the maximum, the multiple gradient is compressed. - - - - - Gets / sets the colors of the foreground multiple gradient when ForegroundStyle is multiple gradient. - - - By default, its value is an empty color array. You can add colors to multiple gradients by modifying this property. - - - - - Gets / sets the start color of the foreground gradient when ForegroundStyle is gradient. - - - - - Gets / sets the end color of the foreground gradient when ForegroundStyle is gradient. - - - - - Gets / sets the start color of the foreground tube when ForegroundStyle is Tube. - - - - - Gets / sets the end color of the foreground tube when ForegroundStyle is Tube. - - - - - Indicates whether the background is segmented. - - - By default, its value is False. - - - - - Gets / sets the colors of the background multiple gradients when BackgroundStyle is multiple gradient. - - - By default, its value is an empty array of colors. - - - - - Gets / sets the start color of the background gradient when BackgroundStyle is gradient or vertical gradient. - - - - - Gets / sets the end color of the background gradient when BackgroundStyle is gradient or vertical gradient. - - - - - Gets / sets the start color of the background tube when BackgroundStyle is Tube. - - - - - Gets / sets the end color of the background tube when BackgroundStyle is Tube. - - - - - Gets / sets the text alignment of the ProgressBarAdv. - - - - - Indicates whether the foreground image will be stretched. - - - By default, its value is True. - - - - - Gets / sets the image to draw on the foreground when ProgressStyle is Image. - - - - - Gets / sets the width of the segments. - - By default, its value is 12. - - - - Gets / sets the color of the font. - - - - - Gets / sets the color used to draw the foreground in segment mode and constant mode. - - - - - Indicates whether the text is visible. - - - - - Gets / sets the style of the text: - -Percentage - -Value (Ex: 70/150 ) - - - - - Gets / sets the orientation of the text. - - - - - Indicates whether the text shadow is visible. - - - - - Gets or sets the custom text for the ProgressBarAdv. - - The custom text. - - This value represents the CustomText of the ProgessBarAdv. The customText is returned only if we set the ProgressBarTextStyles.Custom - - - - - Gets / sets the style of the foreground: - -Constant - -Gradient - -Multiple gradient - -Tube - -Image - -System - -Office2016Colorful - -Office2016Black - -Office2016White - -Office2016DarkGray - - - By default, its value is constant. - - - - - Gets or sets whether the Marker image is shows on ProgressBar. - - - - - Gets / sets the marker image to draw on right side of the Progress. - - - - - Gets / sets the marker image size to draw on right side of the Progress. - - - - - Gets / sets the style of the foreground when ProgressStyle is System and the system can not support themes. - - - - - Gets / sets the style of the border when BorderStyle is Fixed3D. - - - By default, its value is Sunken. - - - - - Gets / sets the style of the border. It can be None, 3D or 2D. - - - By default, its value is Fixed3D. - - - - - Gets / sets the style of the border when BorderStyles is FixedSingle. - - - By default, its value is Solid. - - - - - Gets / sets the color of the border when BorderStyles is FixedSingle. - - - - - Gets / sets the style of the background. It can have the following values: - -Office2016Colorful - -Office2016Black - -Office2016White - -Office2016DarkGray - -Image - -Gradient - -Vertical gradient - -Tube - -Multiple gradient - -System - -None - - - By default, its value is None. - - - - - Gets / sets the style of the background when BackgroundStyle is set to System and the system cannot support themes. - - - By default, its value is None. - - - - - Gets / sets the horizontal or vertical style of the progress bar. - - - By default, its value is Horizontal. - - - - - Gets or sets value indicating whether progress rectangle bounds value - - - - - Interface used to customize the appearance and ProgressStyle of the ProgressBarAdv. - - - - - Draws the background of the ProgressBar. - - The object to draw the background. - Indicates whether the background is segmented. - - - - Draws the border of the ProgressBar. - - The object to draw the border. - The of the border. - - - - Draws the foreground of the ProgressBar. - - The object to draw background of the Progress. - The provide the control bounds. - The provides the progress rectangle. - - - - Draws the specified text string at the specified location. - - The object to draw the text. - The to draw in. - - - - Update the Renderer. - - Provides data for the Paint event. - The is helps to draw the progress. - - - - Default ProgressBarAdv Renderer - - - - - Initialize the ProgressBarAdv - - - - - Constructor of the Renderer class - - ProgressBarAdv - - - - Update the Renderer. - - Provides data for the Paint event. - The used to draw the progress - - - - Draws the background of the ProgressBar. - - The object to draw the background. - Indicates whether the background is segmented. - - - - Draws the foreground of the ProgressBar. - - The object to draw the progress. - The to draw the progress. - The used to draw the background of the progress - - - - Draws the border of the ProgressBar. - - The object to the border. - The of the border. - - - - Draws the specified text string at the specified location. - - The object to the text. - The of the ProgressBarAdv - - - - Gets the ProgressBarAdv - - - - - Gets or sets a value indicating whether the DrawWaitingCustomRender event was handled. - - - - - Gets the bounding rectangle. - - - - - Gets the Graphics used to paint. - - - - - The ProgressBarEx type will soon be replaced with the ProgressBarAdv for consistency in - control naming in our library. - Please replace all occurrences of ProgressBarEx with ProgressBarAdv in your application. - - - - - ProgressBarAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - ProgressBar Coded UI Accessiblity - - - - - Variable to hold ProgressBarAdv instance - - - - - Constructor - - - - - Gets the AccessibleRole - - - - - Gets the Description - - - - - Gets the name - - - - - Gets the Value - - - - - This class represents renderer class for Office2016 color support - - - - - Constructor for renderer class - - - - - - - Gets the ProgressBarAdv back color - - - - - Gets the ProgressBarAdv fore color - - - - - Gets the ProgressBarAdv border color - - - - - Gets the ProgressBarAdv font color - - - - - Gets the ProgressBarAdv progress font color - - - - - This class represents the rendered class for Office2016Colorful theme - - - - - Gets the ProgressBarAdv back color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv fore color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv border color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv font color for Office2016 colorful theme - - - - - Gets the ProgressBarAdv progress font color for office2016colorful theme - - - - - This class represents the rendered class for Office2016Black theme - - - - - Gets the ProgressBarAdv back color for Office2016 Black theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 Black theme - - - - - Gets the ProgressBarAdv border color for Office2016 Black theme - - - - - Gets the ProgressBarAdv font color for Office2016 Black theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 Black theme - - - - - This class represents the rendered class for Office2016White theme - - - - - Gets the ProgressBarAdv back color for Office2016 White theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 White theme - - - - - Gets the ProgressBarAdv border color for Office2016 White theme - - - - - Gets the ProgressBarAdv font color for Office2016 White theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 White theme - - - - - This class represents the rendered class for Office2016DarKGray theme - - - - - Gets the ProgressBarAdv back color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv fore start color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv border color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv font color for Office2016 DarkGray theme - - - - - Gets the ProgressBarAdv progress font color for Office2016 DarkGray theme - - - - - This enum represents the ProgressBarAdv foreground style - - - - - The foreground of the ProgressBar will be drawn with a constant color. - - - - - The foreground of the ProgressBar will be drawn with a gradient brush. - - - - - The foreground of the ProgressBar will be drawn with a multiple gradient brush. - - - - - The foreground of the ProgressBar will be drawn with a vertical tube-like gradient brush. - - - - - The foreground of the ProgressBar will be drawn with an image. - - - - - The foreground of the ProgressBar will be drawn by the system. - - - - - The foreground of the ProgressBar will be drawn with a moving gradient line. - - - - - The foreground of the ProgressBar will be drawn by Metro. - - - - - The foreground of the ProgressBar will be drawn by using the CustomRender class which is inherited from "IProgressBarRenderer" interface. - - - - - This option represents the Office2016Colorful foreground style - - - - - This option represents the Office2016White foreground style - - - - - This option represents the Office2016Black foreground style - - - - - This option represents the Office2016DarkGray foreground style - - - - - This enum represents the ProgressBarAdv text styles - - - - - The text of the ProgressBar will be a percentage value. Ex: 75% - - - - - The text of the ProgressBar will be the value of the format: ProgressBar / the maximum value. Ex 75/200 - - - - - The text of the ProgressBar will be asked through the ValueChanged event. - - - - - This enum represents the ProgressBarAdv background styles - - - - - The background is drawn with an image. - - - - - The background is drawn with a gradient brush. - - - - - The background is drawn with a vertical gradient brush. - - - - - The background is drawn with a vertical tube-like gradient brush. - - - - - The background is drawn with a multiple gradient brush. - - - - - The background is drawn by the system. - - - - - This option represents the Office2016Colorful background style - - - - - This option represents the Office2016Black background style - - - - - This option represents the Office2016White background style - - - - - This option represents the Office2016DarkGray background style - - - - - The background is drawn with the Backcolor. - - - - - Specifies the arrow button that should be shown in an arrow bar. - - - - - Don't show buttons. - - - - - Show up and down buttons. - - - - - Show up, down, move first and move last buttons. - - - - - This control is used by and - to display arrow buttons. - - - - - ButtonBar is a base class for displaying several buttons in one bar. It is used by - and . - - - - - Raises the event. - - A that contains the event data. - - - - Initializes a new button bar. - - - - - - - - Suspends updating the bar. - - - - - Resumes updating the bar. - - - Resumes updating the bar and refreshes it. - - - - - Resumes updating the bar and optionally refreshes it. - - Indicates whether button bar should be refreshed; if False button will only be refreshed when it is marked dirty. - - - - - - - - - - - - - - - - - - - Raises the event. - - Event data. - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - Returns the bounds for the button bar. - - A indicating where the bar should be drawn. - - - - Creates an instance of the and initializes it with the layout information. - - The initialized . - - - - - - - Reinitializes and hides ToolTips. - - - - - Raises the event. - - Event data. - - - - Occurs when a WM_CANCELMODE is received. - - - - - Occurs when is changed. - - - - - Occurs before the event is raised. - - - - - Indicates whether was called. - - - - - Returns the default size of the control. - - - - - Gets or sets a that holds an array of buttons. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on them. - - - - - Gets or sets the button look for the arrow buttons. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Gets / sets the color of arrows in enabled buttons. - - - - - Gets / sets the color of arrows in disabled buttons. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Occurs when the specified button is clicked or the mouse is pressed down on the button. - - The source of the event. - - - - - - - - - - - - - Initializes a new . - - - - - Raises the event. - - An that contains the event data. - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Occurs when the specified button was clicked or the mouse is pressed down on the button. - - The source of the event. - - - - Initializes the the arrow bar. - - - - - Resets to default. - - - - - Resets to default. - - - - - Occurs when the user clicks on an arrow button. - - - - - Occurs when Arrow button is changed. - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - Gets or sets the number of Milliseconds to wait before firing scroll event. - - - - - Gets or sets the Shortest interval for firing scroll event. - - - - - Gets or sets the arrow buttons to be shown in an arrow bar. - - - - - Gets or sets the buttons to show enabled. Other buttons are disabled. - - - - - Gets or sets the color of arrows in enabled buttons. - - - - - Gets or sets the color of arrows in disabled buttons. - - - - - Returns an array with buttons to show when is . - - - - - Returns an array with buttons to show when is . - - - - - Returns an array with buttons to show when is . - - - - - An identifier for various arrow buttons in a . - - - - - None. - - - - - The "previous item" button. - - - - - The "next item" button. - - - - - The "first item" button. - - - - - The "last item" button. - - - - - The "AddNew item" button for items in a table. - - - - - All buttons. - - - - - Helper routines for drawing arrow buttons. - - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the specified bitmap substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - A Point that specifies pixel to offset the bitmap from its origin point. - The Bitmap to be drawn on the screen. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The PaintIcon routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - Loads the bitmap from manifest and paints it substituting black pixels with a new color. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - The type of button to draw. - A Point that specifies pixels to offset the bitmap from its origin point. - The new color used to substitute black pixels. - A Rectangle which contains the boundary data of the drawn bitmap. - - The DrawArrow routine - will substitute black pixels of the original bitmap and draw them with the - specified forecolor. The bitmap is centered inside the specified bounds. - Use the offset if you want to display a "pressed button" state. If the button is - pressed, specify offset = new Point(1, 1). - - - - - This is a specialized version of the that draws an arrow. Used by in - and . - - - - - InternalButton are buttons that are displayed inside a . - - - - - - - - - - - - - - - - - - - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - Specifies office 2007 color scheme. - - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new with a specified size. - - The initial size of the button. - - - - Initializes a new with a cookie. - - The cookie for the button. - - - - Initializes a new with an owner and cookie. - - The owner of the button. - The cookie for the button. - - - - Initializes a new with a owner, cookie and ToolTip text. - - The owner of the button. - The cookie for the button. - The ToolTip text. - - - - Initializes a new with a owner, cookie, ToolTip text and size. - - The owner of the button. - The cookie for the button. - The ToolTip text. - The initial size of the button. - - - - Initializes a new with a owner, cookie, ToolTip text, size and a value that - indicates whether this control should look like a button or if just a centered text should be drawn. - - The owner of the button. - The cookie for the button. - The ToolTip text. - The initial size of the button - A value indicating if this should look like a button or if just a centered text should be drawn. - - - - - - - Returns the preferred size of button. - - The maximum allowed size. - The preferred size based on text, button type. - - - - Recalculates the best size for the button and resizes it. - - - - - - - - - - The for this button. - - True if flat button; False if normal button. - The . - - - - Reinitializes and hides the ToolTip. - - - - - Initializes ToolTip area at the specified bounds. - - - - - - Calculates coordinates for a centered rectangle. - - The existing bounds. - The size of the rectangle to be centered. - A rectangle inside the specified bounds. - - - - Paints the button. - - A Graphics object used to draw the bitmap. - A Rectangle which contains the boundary data of the rectangle. - True if flat looking button; False if normal. - A Rectangle which contains the boundary data of the parent bar rectangle. - - - - Called when is changed. - - - - - Called when is changed. - - - - - Called when state is changed. - - - - - Called when is changed. - - - - - - - - Gets or sets the visual style of the control. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets / sets the owner of this button. - - - - - Some external state (e.g. button type or command id). - - - - - Gets / sets the ToolTip text for this button. - - - - - Gets / sets the bounds of this button. - - - - - Gets / sets the size of this button. - - - - - - - - Indicates whether button is hidden. - - - - - Indicates whether this button supports repeated clicking when the user holds down the mouse button. - - - - - Indicates whether it is a Dirty flag. - - - - - Indicates the Enabled state. - - - - - Indicates the Hovered state. - - - - - Indicates the Pushed state. - - - - - Indicates the Checked state. - - - - - Indicates the DragTarget state. - - - - - Initializes a new . - - - Initializes a new and specifies the for the button. - - Specifies the arrow to be drawn in the button. - - - - Initializes a new and specifies the for the button and owner. - - The owner of this button. - Specifies the arrow to be drawn in the button. - - - - Initializes a new and specifies the for the button, owner, and ToolTip. - - The owner of this button. - Specifies the arrow to be drawn in the button. - The ToolTip for this button. - - - - - - - - - - - - - Returns the arrow to draw. - - - - - Provides event data for the event of - a , or - object. - - - - - Initializes a new object with event data. - - Specifies the arrow button that was clicked. - - - - Gets / sets the arrow button that was clicked. - - - - - Handles the event. - - - - - Returns the values of a record navigation bar. - - - - - Returns the minimum record. - - - - - Returns the maximum record. - - - - - Indicates whether adding new records is enabled. - - - - - To capture the ESC key. - - - - - The record navigation bar displays arrow buttons and current record fields. - - - - - Initializes a new . - - - - - - - - Initializes the record field textbox. - - True if focus should be set to the textbox. - - - - - - - - - - - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - - - - Sets the current record position to first record. - - - - - Sets the current record position to the next record. - - - - - Sets the current record position to the previous record. - - - - - Sets the current record position to the last record. - - - - - Occurs when the specified button was clicked or the mouse is pressed down on the button. - - The source of the event. - - - - - - - Sets the current record position. - - - Sets the current record position. - - The new record index. - Indicates whether record should be applied to text box even if - is not changed. - - - - Sets the current record position and lets you specify if - and events should be raised. - - The new record index. - Indicates whether record should be applied to text box even if - is not changed. - Specifies if - and events should be raised. - - - - Thread safe method that applies all settings at once. - - The minimum record position. - The maximum record position. - The label to be displayed before the record field text box. - Indicates whether adding new records is enabled. - The current record position. - - - - - - - Raises the event. - - The new record index. - - - - - - - Raises the event. - - The new record index. - - - - Calculates corrected Y location of numbers. - - Grapchics object. - Output text. - Corrected Y coordinate. - - - - Occurs when the current record is changing. - - - - - Occurs when the current record is changed. - - - - - Indicates whether the step for increasing the record position should be increased - when the user holds down the mouse on a record navigation button for a longer period. - - - - - - - - - - - - - - Gets or sets the current record position. - - - - - Gets or sets the minimum record position. - - - - - Gets or sets the maximum record position. - - - - - Indicates whether adding new records is enabled. - - - - - Gets or sets . - - - - - Gets or sets the label to be displayed before the record field textbox. - - - - - Gets or sets an optional maximum label (e.g. "of 1000"). - - - - - Gets or sets the textbox where users can enter record indexes manually. - - - - - RecordNavigationBar Action List class for SmartTag. - - - - - Initializes the action list to be added. - - - - - Gets/Sets the name of the control - - - - - Label to be displayed before the record field textbox - - - - - Specifies arrow button to be shown in an arrow bar - - - - - Designer class for RecordNavigation bar - - - - - Collection of designer action list object. - - - - - Collection of designer action list object. - - - - - Provides data about a and events of a . - - - - - Initializes a new . - - The record index. - - - - Gets / sets the record index. - - - - - Handles a event of a . - - - - - Handles a event of a . - - - - - A RecordNavigationControl is a splitter frame with a on the bottom left scrollbar. - - - - - A splitter control provides support for dynamic splitting of the viewable area. - - - The controls shown inside the splitter control must implement - the interface. Additionally, these controls need to have built-in logic - that allows displaying one set of data in different views. - The interface should be implemented if scrollbars of the child - pane should be shared with the parent splitter frame. - The controls in the pane should also implement . This allows the control - to create new panes and initialize them when an additional row or column is opened in the splitter control. - If a control does not implement , the splitter control will call the - of the . - Essential Grid's GridControlBase is a control that provides all of this logic and can be dropped into a - splitter control and be dynamically split by an end user. - also provides part of the logic to be used inside a splitter frame, but - you still need to implement the logic for displaying one set of data in different views in your derived controls. - - See the SplitterControlDemo and TabBarSplitterControlDemo samples for examples on how to use - in a form. - - - - - Provides notification methods when the user drags the vertical - or horizontal splitter bar. - - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moves the splitter bar. - - The source of the event. - - - - Repaints the splitter bar. - - The source of the event. - - - - Gets / sets the cursor to display. - - - - - Implement this interface if you want to add support for shared scrollbars. - - - - - Returns a scrollbar object that implements a horizontal scrollbar. - - - - - Returns a scrollbar object that implements a vertical scrollbar. - - - - - Indicates whether the specified control is activated. - - - - - Defines an interface for a control that supports splitting the view into - several row panes and column panes. - - - Both and - implement this interface. This gives client controls a one stop interface - to get all splitter functionality no matter if they are embedded inside - a or inside a . - - - - - Indicates whether the rows were split at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether the columns were split horizontally at the specified x coordinate. - - The horizontal position in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Deletes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Deletes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Returns the splitter pane at the specified row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the row and column index for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - Gets / sets a value indicating what split behavior is supported. Rows, Columns or Both. - - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Gets / sets the active pane in the splitter control. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Default size of the control - - - - - Initializes a new splitter control. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Font changed - - - - - - - - - Indicates whether the rows were split at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether the columns were split horizontally at the specified x coordinate. - - The horizontal position in in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Deletes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Deletes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a pane will be created on demand with a call to . - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a null reference will be returned. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Disposes the specified pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Creates a new control for the specified splitter pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control in the first splitter pane. - A new instance of the control. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Returns the row and column indices for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by row and column. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - - - - Overridden method. - - - - - - Returns the scrollbar for the specified control. - - The control for which you want to get the scrollbar. - - - - - Indicates whether the scrollbar belongs to the active pane. - - The control associated with the scrollbar. - Specifies the vertical or horizontal scrollbar. - True if active; False otherwise. - - - - - ScrollControl checks IsActive to find out if it is the target of a HScroll event. - - protected virtual void OnHScroll(object sender, ScrollEventArgs se) - { - try - { - IScrollBarFrame sbf = GetScrollBarFrameOfComponent(this); - if (sbf != null && !sbf.IsActive(this, ScrollBars.Horizontal)) - return; - - ... - - - - - - Returns the horizontal scrollbar associated with the control. - - A child pane. - The scrollbar for the pane. - - - - Returns the vertical scrollbar associated with the control. - - A child pane. - The scrollbar for the pane. - - - - - - - Raises the event. - - A that contains the event data. - - - - Handles the WM_SETCURSOR message. - - - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Raises the event. - - Event Data. - - - - - - - Reinitializes and hides ToolTips. - - - - - - - - - - - Raises the event. - - Event data. - - - - Returns either an that has a reference to a scrollbar or creates a scrollbar. - - Indicates horizontal or vertical scrollbar. - The zero-based row or column index of the scrollbar. - A control that is derived from or implements . - - - - Creates a scrollbar for the specified row or column index. - - Indicates horizontal or vertical scrollbar. - The zero-based row or column index of the scrollbar. - A . - - - - - - - - - - Indicates whether the specified control is activated . - - The to be activated. - True if the control is successfully activated; false otherwise. - - The control must be a child of the container control. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Indicates whether this control contains focus. If - implements , the - method is called on the . - - True if the control or any child control has focus; False otherwise. - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls gets focus and it - is not called when focus is moved within child controls of this control. - - - - - Cancels any prior calls for child controls that implement . - - - - - Raises the event. This method is called when the control - or any child control loses focus and the new focused control is not a child of this control. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - - - - Resets the property to its default value. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - - - - Raises the event. - - Event data. - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moves the splitter bar. - - The source of the event. - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Resets the to default. - - - - - Raises the event. - - A that contains the event data. - - - - Get or Set of Skin Manager Interface - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event - - Office scrollbar type - - - - Reset the GridOfficeScrollBars - - - - - - Serializes the GridOfficeScrollBars - - - - - - Reset the Style of the Splitter control - - - - - - Serializes the Style of the Splitter control - - - - - - Occurs when the style changes - - - - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Occurs when the window receives a WM_CANCELMODE message. - - - WM_CANCELMODE is sent to cancel certain modes, such as mouse capture. - For example, the system sends this message to the active window when a - dialog box or message box is displayed. Certain functions also send this - message explicitly to the specified window regardless of whether it is the - active window. For example, the EnableWindow function sends this message - when disabling the specified window. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the ThemesEnabled property changes. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Occurs after the control to be displayed in a new pane has been created. Use this - event to implement additional initialization for the new control. - - - PaneCreated is an ideal hook to add handler for events in the new control. - - - - - Occurs after a row or column is hidden and before the control that is displayed in the pane - is disposed. Use this event to implement additional clean up for the control before - is called. - - - PaneClosing is an ideal hook to unwire event handlers from the control. - - - - - Gets or sets the active pane in the splitter control. - - - - - Returns the default size of the control. - - - - - - - - Gets or sets the border style of the Splitter Control. - - - - - Indicates whether themes are enabled for this control. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on - them. - - - - - Gets or sets the button look for the arrow buttons. - - - - - holds information about the current vertical and horizontal split positions. - - - - - Gets or sets the Active control. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Indicates whether has been called. resets this flag. - - - - - Occurs when both and occur. - - - - - Gets or sets a value indicating what split behavior is supported. Rows, Columns or Both. - - - - - Gets or sets the horizontal splitter position in percentages of the splitter control's width. - - - - - Gets or sets the vertical splitter position in percentages of the splitter control's height. - - - - - Gets or sets the that holds information about current vertical and horizontal split positions. - - - - - Gets or sets the border style of the RecordNavigationControl. - - - - - Occurs when property has changed. - - - - - Toggles between standard and flat scrollbars. - - - - - Gets or sets the style of flat scrollbars. - - - - - Gets or sets the size factor of this tab bar - - - - - Gets or sets the Backcolor for flat scrollbars. - - - - - Gets or sets the Office2016Scrollbar. - - - - - Toggles between standard and Office2007 scrollbars. - - - - - Gets or sets the style of Office2007 scroll bars - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Gets or sets the Office like scrollbars. - - - - - Gets or sets the style of Office2010 scroll bars. - - - - - Gets or sets the style of Office2016 scroll bars. - - - - - Gets/Sets the Style of the Splitter control - - - - - - Toggles support for using the control inside a dynamic splitter window and sharing scrollbars - with the parent window. - - - - - Toggles visibility of the vertical scrollbar. - - - - - Toggles visibility of the Horizontal scrollbar. - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Provides the data about event of a . - - - - - Initializes a new . - - The record index. - - - - Gets or sets the Office scroll bars - - - - - Raises the event. - - An that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Initializes a new . - - - - - - - - - - - - - - - - - - - - Forces the control to invalidate its client area and immediately redraw itself and any child controls. - - - - - Resets to default. - - - - - Resets to default. - - - - - Resets to default. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - Resets the property to its default value. - - - - - - - - - - - Occurs when the user drags the splitter bar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs when the current record is changed. - - - - - Occurs when the current record is changing. - - - - - Occurs when the user clicks an arrow button. - - - - - - - - Returns the with record information and scroll buttons. - - - - - Gets / sets the current record position. - - - - - Gets or sets the minimum record position. - - - - - Gets or sets the maximum record position. - - - - - Indicates whether adding new records is enabled. - - - - - Gets or sets the label to be displayed before the record field textbox. - - - - - Gets or sets an optional maximum label (e.g. "of 1000"). - - - - - Gets / sets the number of Milliseconds to wait before repeatedly firing scroll event. - - - - - Gets / sets the shortest interval for firing scroll event. - - - - - Gets or sets the arrow button that should be shown in an arrow bar. - - - - - Gets or sets the backcolor of the navigation bar. - - - - - Gets or sets the width of the navigation bar. - - - - - Gets or sets the color of arrows in enabled buttons. - - - - - Gets or sets the color of arrows in disabled buttons. - - - - - RecordNavigationControl Action List class for SmartTag. - - - - - Initializes the action list to be added. - - - - - Gets/Sets the name of the control - - - - - Specifies the style for the RecordNavigationControl - - - - - Specifies arrow button to be shown in an arrow bar - - - - - Specifies the splitter behavior of the control - - - - - Sets the Office like scroll bars - - - - - A designer for the . - - - - - Initializes a new . - - - - - - - - - - - Collection of designer action list object. - - - - - Collection of designer action list object. - - - - - RecordNavigationScrollBar is a with a scrollbar contained in one control. - displays this control in the bottom left corner of the frame. - - - - - Returns a reference to a scrollbar contained in a user control. - - - Splittercontrol and Workbookcontrol check for the IScrollBarContainer to get the - scrollbar. This enables you to replace the shared scrollbar with any user control - that also has a scrollbar. An example is the . - - - - - Gets / sets the contained scrollbar in a user control. - - - - - - - - Initializes a new with a shared scroll bar control. - - The control that either hosts a scrollbar (a ) or is itself a scrollbar. - - - - - - - - - - - - - - - - Gets / sets the preferred width of this control. - - - - - Encapsulates a type's name and exposes it to the class. - - - - - Initializes a new . - - - Creates a new TypeName class with empty type name. - - - - - Creates a new TypeName class and sets its type name. - - The full name of the type. - - - - Occurs when the TypeFullName property has changed. - - - - - Gets / sets the type's full name. - - - - - Lets you specify a list of s and invoke a member in those types. - - - - This class is used in Essential Tools to load certain types in memory. - - - Once you add the types to load into this list, you can call the - method to specify a member in those types to invoke and then also call - later to repeat the invoke. - - - - - - - - - - - - Returns the argument at the specified index, that will be used during invoking. - - The argument index. - The argument at the specified index. NULL if index is out of range. - - - - Call this method to provide information for the member invoke. - - - - - - - - - - Take a look at method for information - on these parameters. This method will also call . - - - - - Invokes the member specified using on the - specified types in this list. - - - - - Invokes the member specified using on the - specified types in this list. - - - - - Invokes the member on each type. - - The on which to invoke. - - - - Gets / sets the indexer for this list. - - Specifies the object at this index. - - - - Returns the number of arguments to be used in the method call when invoked. - - - This will be zero if invoking a property. Call - to reset this property. - - - - - Returns the static member name to invoke. - - - - - Fired when a type to invoke is not found. - - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - Provides data for the event. - - - - - Creates a new instance of the TypeNotFoundEventArgs. - - The that was not found. - - - - Returns the that was not found. - - - - - - This component lets you load custom types into the design time. - - - You can specify the static member name you want invoked through the InvokeMemberName property. This will load the types and - invoke the specified member every time you load the designer. - - - - - Initializes a new . - - - Creates a new instance of the TypeLoader class. - - - - - Creates a new instance of the TypeLoader class and adds itself to the container specified. - - The container to add to. - - - - Handler for the event. - - The sender of this event. - Data for this event. - - If in design mode, this method shows a message box with appropriate information. - - - - - Returns the static member name to invoke. - - - Call - to reset this property. - - - - - Specifies the containing the list of s - to load. - - - - - Handles the NcPaint event of an ScrollControl object. - - - - - Provides data for the NCPaint event of an ScrollControl object. - - - - - Initializes a new instance of the NCPaintEventArgs class. - - - - - - - - - - - - - - - - Bounds an ScrollControl. - - - - - Bounds of an ScrollControl in screen coordinates. - - - - - Clipping region of an ScrollControl. - - - - - Gets or sets bounds an ScrollControl. - - - - - Gets or sets bounds of an ScrollControl in screen coordinates. - - - - - Gets or sets clipping region of an ScrollControl. - - - - - - - - - - - - - - - - - - - Retrieves Office2010 scroll bars - - - - Office2016 style - - - - - Metro style - - - - - Characterize zone which contain mouse down position. - Order of enum's elements can not be changed, because ScrollBarCustomDraw - uses enum's indexes. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Characterize Office2010 scroll bar color scheme. - - - - Office2010 blue. - - - Office2010 silver. - - - Office2010 black. - - - Office2010 default color. - - - - Defines the constants that specify color schemes for the Office 2016 theme. - - - - Office2016 black. - - - Office2016 white. - - - Office2016 dark gray. - - - Office2016 colorful color. - - - - Characterize MS-Office scroll bars. - - - - Office2007 Scrollbars. - - - Office2010 Scrollbars. - - - Metro Scrollbars. - - - Office2016 Scrollbars - - - Ordinary Scrollbars. - - - - Characterize zone which contain mouse position. - Order of enum's elements can not be changed, because ScrollBarCustomDraw - uses enum's indexes. - - - - - - - - - - - - - - - - - - - - - - - Specifies the layout and colors for scrollbars. - - - - - - - - - - - - - - Specifies behaviour of size gripper for scrollable frame controls. - - - - - Gripper is visible when both horizontal and vertical scrollbars are visible. - - - - - Gripper is always visible. - - - - - Gripper is always hidden. - - - - - - - Reference on parent control - - - - Initializes new instance of ControlsCollectionBase class - - Reference on parent control. Can not be NULL. - - - - Initializes new instance of ControlsCollectionBase class - - Reference on parent control. Can not be NULL. - Attach event handler to ConfigureControl event on initialize. - - - Occurs when collection changed. - - - - - - - - - Add Control object to collection. - - - - - - - - - - - Removes control from collection. - - - - - - Insert control in position with index value is index. - - - - - - - - - - - - - - Includes/exclude controls from parent controls collection. - - If true - excludes, else includes controls in parent controls collection. - - - - - - - - - - - - - - - - - - - - - - Reference on parent control/container. - - - Typed version of indexer. - - - - - - - - - Message class that contains reference on control that - required configuration. - - - Storage of control reference. - - - Default constructor. - - - - Get reference on Control. - - - - - - - - We specify that only buttons can be created in design time in collection. - In runtime developer will have more freedom. - - - Default constructor. - - - - Allow creation only of buttons in designe time. - Allowed types for creation. - - - - Represents a standard Windows horizontal scroll bar. - - - Most controls that need scroll bars already provide them and do not require this - control. This is true of a multi-line control, - a and a , - for example. - You can use this control to implement scrolling in containers that do not provide their - own scroll bars, such as a or for user input of numeric data. - The numeric data may be displayed in a control or utilized in code. - The and properties - determine the range of values the user can select. The property determines the effect of - clicking within the scroll bar but outside the scroll box. The property determines the effect of - clicking the scroll arrows at each end of the control. - - - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - Defines an interface that provides all properties to configure a scrollbar. - - - - - Updates the scrollbar with latest changes to current position and scrollable range. - - - - - Gets or sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets or sets the upper limit of values of the scrollable range. - - - - - Gets or sets the lower limit of values of the scrollable range. - - - - - Gets or sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets or sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets or sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Enables or disables thumbtrack feature for the scrollbar. - - - - - Indicates whether the scrollbar is in thumb drag mode. - - - - - Indicates whether ScrollTips should be shown for the scrollbar. - - - - - Creates the handler. Overridden to help set up scrollbar information. - - - - - - - - - - - - - - - - - Resets the backcolor of the scroll bar. - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - Implements the basic functionality of a scroll bar control. - - - To adjust the value - range of the scroll bar control, - set the and - properties. - To adjust the distance the scroll box moves, set the and properties. To - adjust the starting point of the scroll box, set the property when the - control is initially displayed. - - The scroll box is sometimes - referred to as the "thumb". - - - - - - - - - - - Indicates whether the associated control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - checks this property to determine if ScrollTips should be displayed. - - - - - Indicates whether the scroll bar is currently in thumb drag mode. - - - - - Gets / sets the effect of clicking within the scroll bar but outside the scroll box. - - - - - Gets / sets the maximum range of the scroll bar. Default is 100. - - - - - Gets / sets the minimum range of the scroll bar. Default is zero. - - - - - Gets / sets the effect of clicking the scroll arrows at each end of the control. - - - - - Gets / sets the starting value of the scroll bar. - - - - - Gets / sets the background color of this scrollbar. - - - - - Gets / sets the scroll bar style. Default is Flat style. - - - - - Constructor. - - - - - - - - - - Returns the parameters needed to create the handler. Inheriting classes - can override this to provide extra functionality. They should not, - however, forget to call base.getCreateParams() first to get the structure - filled up with the basic info. - - - - - - - Represents a standard Windows vertical scroll bar. - - - Most controls that need scroll bars already provide them - and do not require this control. This is true of a multi-line - control, a - and a , for example. - You can use this control to implement scrolling in - containers that do not provide their own scroll bars, such as - a or for user input - of numeric data. The numeric data may be displayed in a control or utilized in - code. The and - properties determine the range of values the user can select. The property - determines the effect of clicking within the scroll bar but outside the scroll - box. The property - determines the effect of clicking the scroll arrows at each end of the control. - - - - - - - Constructor. - - - - - - - - - - Returns the parameters needed to create the handler. Inheriting classes - can override this to provide extra functionality. They should not, - however, forget to call base.getCreateParams() first to get the structure - filled up with the basic info. - - - - - - - - - - - - - - - Base class for scrollers control that support visual styles. - - - - - - Key for LargeChangeChanged event. - - - Key for MaximumChanged event. - - - Key for MinimumChanged event. - - - Key for SmallChangeChanged event. - - - Key for ValueChanged event. - - - Key for VisualStyleChanged event. - - - Key for ColorSchemeChanged event. - - - Key for ThemeEnabledChanged event. - - - - Used by threading timer. - - - - - A value to be added to or subtracted from the System.Windows.Forms.ScrollBar.Value - property when the scroll box is moved a large distance. - - - - - Cached m_largeChange - - - - - The upper limit of values of the scrollable range. - - - - - The lower limit of values of the scrollable range. - - - - - A value to be added to or subtracted from the Syncfusion.Windows.Forms.ScrollBarCustomDraw.Value - property when the scroll box is moved a small distance. - - - - - A numeric value that represents the current position of the - scroll box on the scroll bar control. - - - - - Visual style of the ScrollBarCustomDraw. - - - - - Indicates whether to use visual styles. - - - - - Indicates whether thumb is disabled. - - - - - Indicates whether minimum arrow is disabled. - - - - - Indicates whether maximum arrow is disabled. - - - - - Collection of controls that locates above the minimum arrow. - - - - - Collection of controls that locates under the maximum arrow. - - - - - True - say control to keep System settings instead of user defined, otherwise False. - - - - - Renderer which draws the control. - - - - - Array of rectangles that represents regions of the ScrollBarCustomDraw. - - - - - Used when user holds the arrow button clicked. - - - - - Position where was last click. - - - - - Zone where was last click . - - - - - Zone where mouse is over. - - - - - Cached m_selectedZone. - - - - - Zone where is mouse position. - - - - - False if all states is default? in other case value is false. - - - - - Color scheme that used in Rendering. - - - - - Color scheme that used in Rendering. - - - - - Color scheme for Office2016 that used in Rendering. - - - - - Color scheme for Office2010 that used in Rendering. - - - - - Instance of ContextMenu provider. - - - - - To avoid compile error CS0197 in VS2002. - - - - - To prevent validation controls visibility in - and in . - - - - - Indicates whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - Scroll bar's owner. - - - - - Metro color table for metro visual style. - - - - - Office2016 black color table for Office2016 visual style. - - - - - Office2016 white color table for Office2016 visual style. - - - - - Office2016 darkgray color table for Office2016 visual style. - - - - - Office2016 colorful color table for Office2016 visual style. - - - - - Apply Office2016Black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - - - - - - - - - - - - - Initialize the context menu. - - - - - - - - - - - - - - Override. Force recalculation of Scroller elements. - Layout arguments. - To force Layout logic call . - - - - Forces the laying out of combobox elements. - - - Advanced method. You do not have to call this directly. - - - - If outside code will work with collection instead - of our collections and , - then this method will help us in synchronization. - - - - If outside code will work with collection instead - of our collections and , - then this method will help us in synchronization. - - - - - Overridden. See . - - - - - - Occurs when control size changed. - - The event data. - - - - Reset control Width or Heigh to system settings - - - - - Raises the OnLargeChangeChanged event. - - The event data. - - - - Raises the OnSmallChangeChanged event. - - The event data. - - - - Raises the OnMaximumChanged event. - - The event data. - - - - Raises the OnMinimumChanged event. - - The event data. - - - - Raises the OnVisualStyleChanged event. - - The event data. - - - - - Raises the OnMinimumChanged event. - - The event data. - - - - Raises the OnValueChanged event. - - The event data. - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - - - - Overridden. See . - - - - - - Redraws scroll control when RightToLeft is changed. - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Overridden. See . - - - - - - Occurs when mouse down and cursor change position. - - - - - - - Gets min button. Possible variants: Left or Down. - - - - - - Gets max button. Possible variants: Right or Up. - - - - - - Defines pressed zone. - - - - - - - - Recalculates bounds of the ScrollBarCustomDraw. - - - - - Recalculates bounds of the arrow buttons. - - - - - Recalculates bounds of the thumb. - - - - - If scroll contain all controls than controls is visible, in other case value is false. - - - - - - Gets DockStyle of afterControls. - - - - - - Gets DockStyle of beforeControls. - - - - - - used for calculates thumb offset. - - - - - - - - - - - - - - - - - - Utility API that open to user opportunity to destroy handle in runtime. - Very usefull for runtime resource cleanup. - - - - - Sets small change if value is less than large change; otherwise sets small change to large change. - - Value to set. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Method accumulate width and height of the controls in - specified collection. - - Method accumulate width and height of the controls in - specified collection. - collection of controls. - Accumulated values. - - - - Excludes/includes controls in collection. - - If true - excludes, else includes controls in collection. - - - - - - - - X coordinate of mouse. - Y coordinate of mouse. - - - - Sets value, but OnValueChanged don't raise. - - - - - - Dispose controls of ScrollBarCustomDraw. - - Collection of controls to be disposed. - - - - Creates and displays the context menu for the control. - - - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Used to raise the mouse event - - The args contains the MouseEventArgs data - - - - Gets or sets a value to be added to or subtracted from the System.Windows.Forms.ScrollBar.Value - property when the scroll box is moved a large distance. - - - - - Gets or sets the upper limit of values of the scrollable range. - - - - - Gets or sets the lower limit of values of the scrollable range. - - - - - Gets or sets a value to be added to or subtracted from the Syncfusion.Windows.Forms.ScrollBarCustomDraw.Value - property when the scroll box is moved a small distance. - - - - - Gets or sets a numeric value that represents the current position of the - scroll box on the scroll bar control. - - - - - Gets or sets the text associated with this control. - - - - - Visual style of the ScrollBarCustomDraw. - - - - - Gets or sets a value that indicates whether to use visual styles. - - - - - Gets or sets a value that indicates whether thumb is disabled. - - - - - Gets or sets a value that indicates whether minimum arrow is disabled. - - - - - Gets or sets a value that indicates whether maximum arrow is disabled. - - - - - Collection of controls that locates above the minimum arrow. - - - - - Collection of controls that locates under the maximum arrow. - - - - - True - say control to keep System settings instead of user defined, otherwise False. - - - - - Gets or sets the renderer which draws the control. - - - - - Returns the value that indicates whether RightToLeft is RightToLeft.Yes - - - - - Hide Controls collection from CodeDom serialization. - - - - - Gets or sets the metro color table. - - - - - Gets or sets the color table for Office2016 Black theme scrollbar. - - - - - Gets or sets the color table for Office2016 white theme scrollbar. - - - - - Gets or sets the color table for Office2016 dark gray theme scrollbar. - - - - - Gets or sets the color table for Office2016 colorful theme scrollbar. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Metro color scheme should be user defined color. - - - - - Gets or sets whether the Office2010 color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Office2016 color scheme should be Black or White or DarkGray or Colorful. - - - This is applicable for both the horizontal and vertical scrollbar. - - - - - Gets / sets the menu provider object that will implement the 's contextmenu. - - - The ScrollBarCustomDraw control automatically initializes this property depending on the presence - of the Syncfusion Essential Tools library. If Essential Tools is available, then the menu provider - object will be an instance of the - type. If not, the class is used for - implementing the standard .NET context menu.

The ScrollersFrame's automatic initialization - should suffice for most applications and you should explicitly set this property only when you - want to override the default menu provider assignment.

- A implementation; the default - is . -
- - - Gets or sets value indicating whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Flag, if true than controls visivble in other case not visible. - - - - - Default size of the horizontal scroolbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - Occurs when control size changed. - - - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - TODO: place correct comment here - - - - - Reset horizontal scrollbar to default height. - - - - - Gets dockStyle for controls which situated before scroll. - - - - - - Gets dockStyle for controls which situated after scroll. - - - - - - Gets value by cursor position - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculates bounds of thumb for scroll control. - - - - - Calculating bounds for leftThumb and rightThumb zones for scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - Implements support for Intelli-Mouse panning. When the user presses the middle mouse button and drags the mouse, - the window will scroll. has built-in support for this call. You only have - to enable . - - - The following code enables support for IntelliMouseDragScroll: - - public bool EnableIntelliMouse - { - get - { - return imm != null and imm.Enabled; - } - set - { - if (value != EnableIntelliMouse) - { - if (imm == null) - { - imm = new IntelliMouseDragScroll(this, true); - imm.AllowScrolling = ScrollBars.Both; - imm.DragScroll += new IntelliMouseDragScrollEventHandler(IntelliMouseDragScrollEvent); - } - imm.Enabled = value; - } - } - } - - void IntelliMouseDragScrollEvent(object sender, IntelliMouseDragScrollEventArgs e) - { - int dy = e.Dy; - int dx = e.Dx; - - this.disableAutoScroll = true; - if (Math.Abs(dy) > Math.Abs(dx)) - { - VScrollBar.SendScrollMessage(dy > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement); - } - else - { - HScrollBar.SendScrollMessage(dx > 0 ? ScrollEventType.SmallIncrement : ScrollEventType.SmallDecrement); - } - this.disableAutoScroll = false; - } - - - - - - Initializes the object. - - The control to add this functionality to. - - - - Initializes the object. - - The control to add this functionality to. - True if should listen for MouseDown event; - False if dragging should be started manually by calling StartDrag. - - - - - - - Starts the IntelliMouse dragging at the given screen coordinates. - - Screen coordinates, e.g. Control.MousePosition. - - - - Stops the Intelli-Mouse dragging. - - - - - Returns the bitmap from manifest. Red background in bitmap will be made transparent. - - - - - - - Occurs when the user has dragged the mouse outside the scrolling bitmap. - - - - - Returns the active object, if any. - - - - - Gets / sets the scrolling direction. - - - - - Indicates whether the user is dragging. - - - - - Indicates whether to toggle the Intelli-Mouse feature on or off. - - - - - Returns the cursor to be displayed. - - - - - Handles the DragScroll event of an IntelliMouseDragScroll object. - - - - - Provides data for the DragScroll event of an IntelliMouseDragScroll object. - - - - - Initializes a new instance of the IntelliMouseDragScrollEventArgs class. - - The distance in pixels the mouse pointer has been moved horizontally. - The distance in pixels the mouse pointer has been moved vertically. - - - - Gets / sets the distance in pixels the mouse pointer has been moved horizontally. - - - - - Gets / sets the distance in pixels the mouse pointer has been moved vertically. - - - - - Set this to True if you scrolled and do not want default scrolling behavior. - - - - - Handles the MouseWheelZoom events. - - - - - Provides data for the MouseWheelZoom event. - - - - - Initializes a with a given delta. - - The number of rows or columns to scroll. - - - - Returns the number of rows or columns to scroll. - - - - - - - - - - - True if scroll bar is currently in thumb drag mode. - - - - - Indicates whether the associated control should scroll while the user is dragging a scrollbar thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - Checks this property to determine if ScrollTips should be displayed. - - - - - Gets / sets a value to be added to or subtracted from to the Value property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets a value to be added to or subtracted from to the Value property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - Design time helper class. Do not allow resizing of scrollers - when set KeepSystmeMetrics property to TRUE value. - - - Typed version of control reference extracting. - - - Override selection rule only in case of KeepSystemMetrics value set to True. - - - - Defines an interface that provides all properties to configure a scrollbar. - - - - - Gets / sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - ScrollbarWrapper manages scrollbars for a control and hides details about the scrollbar - from the control that utilizes ScrollBarWrapper. This allows you to replace the concrete - ScrollBar with , , - or any custom scrollbar implementation. - - - - - Overloaded. Initializes a new instance of the class. - - The parent control. - The scrollbar type: horizontal or vertical. - - - - Initializes a new instance of the class. - - The parent control. - The scrollbar type: horizontal or vertical. - The scrollbar object to be managed by this instance. - - - - Implements the method and releases all managed resource for this object. - - - - - Copies all information to another object. - - The to receive all copied information. - - - - Raises the event. - - . - An that contains the event data. - - - - Suspends updating the scrollbar until is called. - - - - - Resumes updating the scrollbar after a call. - - - - - Fetches scrollbar information from the managed scrollbar object and updates the information - in the object. - - - - - Applies scrollbar information to the managed scrollbar object based on the information - in the current object. - - - - - Call this for reflected scrollbars from your parent control's method if you - want to support reflected scrollbars (those window scrollbars that you enable with WS_VSCROLL and - WS_HSCROLL window styles). - - The that was passed as argument to . - - - - Sends or emulates a scroll event. - - - - - - Occurs when the scroll box has been - moved by either a mouse or keyboard action. - - - - - Occurs when the property has changed, either by a - event or programmatically. - - - - - Indicates whether the control should scroll while the user is dragging a scrollbar's thumb. - - - - - Indicates whether the parent control should show ScrollTips while the user is dragging a scrollbar thumb. - - - Checks this property to determine if ScrollTips should be displayed. - - - - - Gets / sets a reference to the scrollbar that is contained in this wrapper class. - - - - - True if this is a Reflecting scrollbar; False if it is a simple scrollbar. - - - - - True if this is a flat scrollbar; False if it is a simple scrollbar. - - - - - True if scroll bar is currently in thumb drag mode. - - - - - True if this is a Reflecting scrollbar; False if it is a simple scrollbar. - - - - - Indicates whether updating is locked. See . - - - - - Gets / sets a value to be added to or subtracted from the value of the property when the scroll box is moved a large distance. - - - - - Gets / sets the upper limit of values of the scrollable range. - - - - - Gets / sets the lower limit of values of the scrollable range. - - - - - Gets / sets the value to be added to or subtracted from the value of the property when the scroll box is moved a small distance. - - - - - Gets / sets a numeric value that represents the current position of the scroll box on the scroll bar control. - - - - - Gets / sets a number that represents the current position of the scroll box on the scroll bar control. - - - - - Returns a reference to the parent control. - - - - - Manages the theme handle given a control and exposes some basic themed Drawing methods. - - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - - - - - Creates a new instance of the class. - - Pointer to a string that contains a semicolon-separated list of classes, as expected - in the OpenThemeData API. - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - This is necessary in order that this class can refresh its handles when themes - settings are updated. - - You can get the part and state ids required for the DrawXXX methods from the tmschema.h file (that comes with - Platform SDK) or refer to the undocumented and incomplete ThemeParts and ThemeStates classes - in our shared library (in the ThemeDefines.cs file). - - - - - Creates a new instance of the class. - - Pointer to a string that contains a semicolon-separated list of classes, as expected - in the OpenThemeData API. - Owning component. - - - The bound to this class can either implement the - interface or pass on the WM_THEMECHANGED message - to this class with a call to the method. - This is necessary in order that this class can refresh its handles when themes - settings are updated. - - You can get the part and state ids required for the DrawXXX methods from the tmschema.h file (that comes with - Platform SDK) or refer to the undocumented and incomplete ThemeParts and ThemeStates classes - in our shared library (in the ThemeDefines.cs file). - If owning component is not null, automatically unregisters itself from - on component disposing. - - - - - Overridden. See . - - - - - - Called to create a theme handle, given the specified control and classList. - - - - - Closes the currently open theme handle. - - - - - Closes the current theme handle. - - - - - Closes the current theme handle and tries to open a new one. - - - - - Overloaded. Draws the specified theme background. - - A object. - An integer specifying the part. - An integer specifying the state. - The background . - - See for information on how to get the part and state IDs. - This method uses the VisibleClipRegion in the Graphics object to obtain the clip rect. - - - - - Draws the specified theme background. - - A object. - An integer specifying the part. - An integer specifying the state. - The background . - The clip rect to be used. - - See for information on how to get the part and state IDs. - Use this function to provide custom clip bounds. - - - - - Overloaded. Draws the specified theme text. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to be drawn. - The layout bounds within which to draw. - Refers to the DrawThemeText function in the Windows API. - Refers to the DrawThemeText function in the Windows API. - - - - Draws the specified theme text. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to be drawn. - The layout bounds within which to draw. - Refers to the DrawThemeText function in the Windows API. - Refers to the DrawThemeText function in the Windows API. - - - - Returns the size for the specified part. - - A object. - An integer specifying the part. - An integer specifying the state. - The size type. - The requested size. - - - - Calculates the size and location of the specified text when rendered in the theme font. - - A object. - An integer specifying the part. - An integer specifying the state. - The text to draw. - The layout bounds. - See GetThemeTextExtent method documentation in Windows API. - The rectangle representing the extent. - - - - Returns the current theme handle used to render the parts. - - - - - - - - - - - - - - Blend 30% of menu selection color. - - - - - - - - - - - - - - - - - Gets / sets ScrollButton highlighted state. - - - - - Gets / sets for correctly GradientBrush creation, so that background - is same as Parent's background. - - - - - A ScrollTip window is a top-level window that gives feedback about the - current scroll position when the user grabs a scrollbar thumb and drags it. - - - - - - - - - - - Initializes a new . - - - - - - - - - - Raises the event and refreshes the contents of the window. - - The with event data. - - - - - - - - - Returns the optimal size for the window to fit the given text. - - The text that should fit into the window. - A with the window size of the ScrollTip. - - - - - - - Gets / sets the border style of the control. - - - - Gets / sets the text layout information for the text in the ScrollTip. - - - - - Specifies the current ScrollTip state when a event was raised. - - - - - The user has grabbed the thumb. The ScrollTip should be shown. - - - - - The user has released the thumb. The ScrollTip should be hidden. - - - - - The user is dragging the thumb. The ScrollTip text should be updated. - - - - - Handles the event. - - - - - - - - Provides data for the event. - - - - - - - - Constructs a object. - - The exception that was cached. - - - - Returns the exception that was cached. - - - - - Handles the ScrollTip event. - - - - - - - - Provides data for the event. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the scrollbar that is the source of this event. - - - - - Returns a value that specifies the user action that led to this event. - - - - - Returns the new scroll position. - - - - - Gets / sets the text to display in the ScrollTip. You can change this text in your event handler during - a Scroll action. - - - - - Gets / sets the size of the ScrollTip window. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the location of the ScrollTip window. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the font to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the text color to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the backcolor to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack or Scroll action. - - - - - Gets / sets the border style to be used for the ScrollTip text. You can adjust the scroll window size in your event handler - when handling a ThumbTrack action. - - - - - Gets / sets the text layout information for the text in the ScrollTip. - - - - - BeginUpdateOptions details which drawing operations should be performed during a batch of updates. - - - - - The control suspends any drawing and invalidation and will do a complete refresh when EndUpdate is called. - - - - - Regions that need to be redrawn afterward should be marked invalid by calling the controls Invalidate method. - - - - - ScrollWindow will scroll the window. - - - - - Scrollbars should be synchronized with the current scroll position. - - - - - Allows invalidating regions, scrolling and synchronizes the scrollbar thumb. - - - - - Contains data for the WindowScrolling and WindowScrolled event. - - - ScrollWindow will raise a WindowScrolling event before it scrolls the window and a WindowScrolled event after the scrolling. - - - - - - - - - - - - - - - - - - - - Initializes a new . - - The horizontal scroll distance in pixel. - The vertical scroll distance in pixel. - The bounds of the rectangle that is scrolled. - Clipping rectangle. - The rectangle that was scrolled into view. - - - - - - - - - Returns the horizontal scroll distance in pixels. - - - - - Returns the vertical scroll distance in pixels. - - - - - Returns the bounds of the rectangle that is scrolled. - - - - - Returns the Clipping rectangle. - - - - - Returns the rectangle that was scrolled into view. - - - - - Handles the scroll window event. - - - - - - - - Provides a global hook for exceptions that have been cached inside the framework and gives you - the option to provide specialized handling of the exception. You can also temporarily suspend and resume - caching exceptions. - - - The Syncfusion framework notifies about exceptions that - are cached by calling or . - The method will raise the - event. By handling the event, your code can analyze the exception that was cached - and optionally let it bubble up by rethrowing the exception. - Your code can also temporarily suspend and resume caching exceptions. This is useful if you want to provide your - own exception handling. Just call to disable handling exceptions and - to resume caching exceptions. - You also have the options to disable caching exceptions altogether by setting to True. - Note: All static settings for this class are thread local. - - - // The following example demonstrates temporarily suspending exception caching when calling a base class version - // of a method. - protected override void OnMouseDown(MouseEventArgs e) - { - ExceptionManager.SuspendCatchExceptions(); - try - { - base.OnMouseDown(e); - ExceptionManager.ResumeCatchExceptions(); - } - catch (Exception ex) - { - ExceptionManager.ResumeCatchExceptions(); - // Notify exception manager about the catched exception and - // give it a chance to optionally rethrow the exception if necessary - // (e.g. if this OnMouseDown was called from another class that - // wants to provide its own exception handling). - if (!ExceptionManager.RaiseExceptionCatched(this, ex)) - throw ex; - // handle exception here - MessageBox.Show(ex.ToString()); - } - } - - - // This code sample shows how exceptions are handled within the framework: - try - { - CurrentCell.Refresh(); - } - catch (Exception ex) - { - TraceUtil.TraceExceptionCatched(ex); - if (!ExceptionManager.RaiseExceptionCatched(this, ex)) - throw ex; - } - - - - - - - - - - - - - - - - - Temporarily suspends caching exceptions. - - - - - Temporarily resumes caching exceptions. - - - - - Indicates whether exceptions should be cached or if they should bubble up. - calls this method. - - - - - - Raises the event. - - - Raises the event. If caching exceptions has been disabled - by a call or if has been set to True, - the exception is rethrown. - - A that contains the event data. - - - - - - Raises the event. If caching exceptions has been disabled - by a call or if has been set to True, - the exception is rethrown. - - A that was cached. - - - - - - - - - Occurs when an exception was cached within the framework and was notified. - - - - - Lets you disable caching exceptions altogether by setting to True. - - - - Specifies the acceleration behavior for scrollbars. - - - - - Disable scrollbar acceleration. - - - - - Default, moderate acceleration after the user scrolled 60 increments. - - - - - Acceleration after the user scrolled 20 increments. - - - - - Immediate acceleration after the user scrolled 4 increments. - - - - - Specifies the type of autoscrolling, either scrollbar acceleration or mouse dragging outside window bounds. - - - - - The user held down a scrollbar button. - - - - - The user has dragged the mouse outside the autoscroll bounds. - - - - - The user is moving the mouse over the control during OLE drag-and-drop operation. - - - - - Handles the event. - - - - - - - - Provides data for the event which is called - when accelerated scrollbar scrolling or mouse drag-scrolling starts. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Returns the type of autoscrolling, either scrollbar acceleration or mouse dragging outside window bounds. - - - - - Returns the scroll bar direction: vertical, horizontal, or both. - - - - - Gets / sets the interval that is initially assigned to the timer for recurring scrolling. - - - - - Gets / sets the interval step that the timer should be decreased from time to time. - - - - - Gets / sets the minimum interval for the fastest scroll speed. - - - - - - - - - - - - - - - - - - - - Internal Variable for ScrollControl - - - - - - - - - - - - - - - - - - - - Apply the scrollbar background color for scroll control. - - Graphics for scroll control - Bacground color for scroller background. - Border color for scroll control - - - - - - - - - - - - - - - Handles a cancellable event. - - The source of the event. - An that contains the event data. - - - - - - Provides data about the cancellable event. - - - ShowContextMenuEventArgs is a custom event argument class used by the - event when the user right-clicks inside - the control. - - You can cancel showing a context menu when - you assign True to . - - - - - - - Initializes a new object. - - The mouse location in screen coordinates. - - - - Returns the mouse location in screen coordinates. - - - - - Custom scrollbars with various VisualStyles and provision to add buttons to it. - - - - - - - - To check whether the ScrollersFrame is applied properly, when parent is DockHost - - - - Subclasser that helps us to monitor control changes. - - - Reference on control to which we attach scrollers. - - - - - - - - - - - - - - - - - - - - - Color scheme that used in Rendering. - - - Color scheme that used in Rendering. - - - Color scheme that used in Rendering. - - - Office2016 color scheme that used in Rendering. - - - Gripper visibility behavior. - - - - win8 style scroll behavior - - - - - Indicates if a Parent control is in dragging mode. - - - - - Indicates if left mouse button is pressed. - - - - - Enables delayed scrollbar updates. Default value is true. - - - - - - - - Collection of all attached controls and corresponding components. - - - - - LargeIcon View Scroller Increment Value - - - - - SmallIcon View Scroller Increment Value - - - - - Tile View Scroller Increment Value - - - - - Details View Scroller Increment Value - - - - - List View Scroller Increment Value - - - - - Holds Metro thumb size - - - - - Holds whether to show Metro Arrow Button - - - - - - - - - - - - - - - Applies the color table based on the scrollbar styles. - - Get the scroll control details - Get the scrollbar styles. - - - - Apply Office2016 black color settings for scrollbar. - - - - - Apply Office2016DarkGray color settings for scrollbar. - - - - - Apply Office2016White color settings for scrollbar. - - - - - Apply Office2016Colorful color settings for scrollbar. - - - - - Get or Set of Skin Manager Interface - - - - Horizontal scroller instance. - - - Vertical scroller instance. - - - Size gripper control instance. - - - - Required designer variable. - - - - Default constructor. - - - Component oriented constructor. Mostly used by Windows Forms - designer. - reference on container that will control - class life time. - - - - Clean up any resources being used. - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Indicates whether the current value of the OfficeColorScheme property is to be serialized. - - - - - - Resets the office color scheme. - - - - - Indicates whether the current value of the OfficeColorScheme property is to be serialized. - - - - - - Indicates whether the current value of the Office2010ColorScheme property is to be serialized. - - a boolean value. - - - - Resets the office color scheme. - - - - - Resets the office2010 color scheme. - - - - Method called when parent control create own window handle. - reference on parent control. - Event arguments. - - - Method called when control destroy own window handle. - reference on parent control. - Event arguments. - - - Method called when detected parent RightToLeft property value changes. - reference on parent control. - Event arguments. - - - - To check whether the ScrollersFrame is applied properly, when parent is DockHost - - - - - - - - - Method called when detected changes in parent-child hierarchy. - reference on parent control. - Event arguments. - - - Method attach scroller frame to the specified control. Previously - attaches to the controls will be released. - Reference on windows forms control. Can not be NULL. - - - - To update the Small Increment speed when ScrollersFrame is attached with ListView control - - - - Detach scrollers frame from previously attached control. - - - Refresh scroller frames internal settings and repaint. - - - Internal scrollers attaching algorithm. - - - Internal scrollers detaching algorithm. - - - Reflect Right to Left settings from parent control with respect to internal logic. - change RTL before SetParent calls. RTL force re-creation of the scroller handle!!! - - - Method reassign parents for scrollers when needed. - - - Method synchronize settings with parent wihdow and scrollers. - - - - If parent is being dragged, scrollers get invisible. - - - - - Method synchronize our scrollers with parent scollers. By parameter - specified source of data. - - True - source is window, otherwise False. - - - Method updates enable states from structs specified by user. - Horizontal scroller struct. - Vertical scroller struct. - - - - Utility method. Copy settings value to scrollbar control. - - reference on scroller instance. - Window WIN32 API struct settings of which we reflect. - - - Vise versa operation to method. - Destination of settings reflection. - ScrollBra instance which settings we reflect. - - - - Method create special container windows that will host attached control. - - NOT implemented. Reserved for future enhancements. But can be overrided - and implemented by user. - - - Method process WM_NSCALCSIZE message. - - - - - Method process WM_WINDOWPOSCHANGED message. - - - - - Method process WM_STYLECHANGED message. - - - - - - Method process a WM_MOVE message. - - - - - - Method process a WM_MOUSEMOVE message. - - - - - Method filter parent control messages and according to - them set scroller frame settings. - Windows message. - True - allow forward of message, otherwise False. - - - - Updates visibility of gripper. - - - - - Gets visibility of the size gripper. - - true if gripper should be shown; otherwise false. - - - - - - - - - Verifies if is owned by attched to control. - - Control to verify. - - - - - Reference on control to which we assign our custom scrollers. - - - Reference on configurable Horizontal Scroller control. - - - Reference on configurable Vertical Scroller control. - - - - Gets or sets visibility of size gripper. - - - - - Gets/Sets the size of Metro Scroller Thumb - - - - - Gets/Sets whether to display Metro scroller buttons - - - - - Gets or Sets whether to set the win 8 style scroll behavior - - - - True - horizontal scroller is visible to user, otherwise False. - - - True - vertical scroller is visible to user, otherwise False. - - - Specifies the style of appearance. - - - - Gets or sets custom color to MetroScroller. - - - - - Gets or sets the custom color for Office2016 black scrollbar. - - - - - Gets or sets the custom color for Office2016 white scrollbar. - - - - - Gets or sets the custom color for Office2016 colorful scrollbar. - - - - - Gets or sets the custom color for Office2016 dark gray scrollbar. - - - - - Gets or sets whether the Metro color scheme should be User defined colors. - - - - - Gets or sets Office2016 color scheme for horizontal and vertical scrollbars. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets whether the Office color scheme should be Silver or Blue or Black. - - - - - Gets or sets the value to be added to or subtracted from the Value property when the horizontal scroll box is moved a small distance. - - - - - Gets or sets the value to be added to or subtracted from the Value property when the vertical scroll box is moved a small distance. - - - - - Gets or sets whether delayed scrollbar updates must be updated. - - - - - Gets or sets value indicating whether scrollbar should be refreshed on each value change. - If set to false, scrollbar is invalidated only and therefore is visually refreshed after processing all scrolling messages. - - - - - Gets or Sets custom renderer to customize the scroll bars - - - - - - - The scroll bar itself. - - - The top or right arrow button. - - - The page up or page right region. - - - The scroll box (thumb). - - - The page down or page left region. - - - The bottom or left arrow button. - - - Special Size Gripper class that supports RTL. - - - Publish for user Handle destroy functionality. Usefull for resource - cleanup in runtime. - - - - - - - - Size gripper advanced. - - - - - - - - - - - Instance of ScrollersFrame. - - - - - Indicates whether grip marking should be drawn. If set to false, just background is filled. - - - - Default constructor. - reference on scroller frame. Can not be NULL. - - - Implemented visual styles support. - Paint event arguments. - - - - Releases the unmanaged resources used by the and its child controls and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - - - - - - - - - Gets or sets value indicating whether grip marking should be drawn. If set to false, just background is filled. - - - - Design time change of property visibility. Office 2007 visual style support. - - - Show/Hide OfficeColorScheme property for user in runtime. - - - - - - Class Attaching better design time support for FM2.0 and higher. - In older version class have no influences on design time. - - - - - - - Designer helper lass. Do not allow attaching of root - components by . - - - Default constructor. - - - - Method filter that chech is attaching allowed or not. - filter context. - property value that requesting check operation. - True - if attaching allowed, otherwise False. - - - - ProgressBarAdv Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - - - - - - - Distance from thumb Y position to mouse down Y position. - - - - - Flag, if true than controls visivble in other case not visible. - - - - - Default size of the vertical scroolbar. - - - - - Initializes a new instance of the class. - - The owner. - - - - Initializes a new instance of the class. - - - - - Occurs when control size changed. - - - - - - Used for validating visibility of the ControlsAfter and ControlsBefore - - - - - - Reset vertical scrollbar to default width. - - - - - Gets dockStyle for controls which situated before scroll. - - - - - - Gets dockStyle for controls which situated after scroll. - - - - - - Gets value by cursor position - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Calculating bounds for leftThumb and rightThumb zones for scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Retrieves color table according to style and scheme. - - Office2007 style. - Office2007 color scheme. - Color table. - - - - Registers color table within internal collection. - - Office2007 style. - Office2007 scheme. - Color table itself. - - - - - - - - - - - - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Called when is risen. - - - - - - - - - - - - - - Registered color tables. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of Office2007Renderer - - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Right office arrow. - - - - - - Left office arrow. - - - - - - Down office arrow. - - - - - - Up office arrow. - - - - - - Right Normal office arrow. - - - - - - Left Normal office arrow. - - - - - - Down Normal office arrow. - - - - - - Up Normal office arrow. - - - - - - Vertical thumb lines. - - - - Horizontal thumb lines. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - WindowsXP Blue Style renderer implementation. - - - - - - - Angle for horizontal gradient brush. - - - - - Angle for vertical gradient brush. - - - - - Angle for vertical gradient brush. - - - - - Width for brush. - - - - - Height for brush. - - - - - Default radius truncation corners. - - - - - Count of lines on the thumb. - - - - - Height of lines on the thumb. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - The color scheme that the renderer will render. - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Sets WindowsXP color scheme for the control. - - - - - - Sets the color scheme for the button based on the current XP Scheme. - - - - - Initializes edges of specified rectangle. - - Bounds of the rectangle. - - - - - - - - Gets rounded path with specified radius for the rectangle. - - - - - - - - Gets vertical gradient brush. - - - - - - - - - Gets horizontal gradient brush. - - - - - - - - - Gets gradient brush with 53 angle. - - - - - - - - - Draws background lines. - - Graphics object to use. - Bounds of the background. - Color of the lines. - - - - Draws shadow for the arrow button. - - The graphics object to use. - Bounds of the arrow button. - - - - - - - Draws shadow for the thumb. - - The graphics object to use. - Bounds of the thumb. - - - - - Draws middle lines on the thumb. - - Graphics object to use. - Bounds of the thumb. - - - - - - Fill Rectangle with ControlLightLight color. - - Graphics objects to use. - Bounds of the rectangle. - - - - Draws disabled arrowButton. - - Graphics object to use. - Bounds of the button. - Type of the button. - - - - Draws disabled background. - - Graphics object to use. - Bounds of the button. - - - - Draws disabled thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws up arrow on the button. - - The graphics object to use. - Bounds of the button. - - - - - - Draws two lines in specified points. - - - - - - - - - - Rotate shape on specified angle around center p. - - Array of points that represents shape to rotate. - Angle in radians to rotate. - Point to rotate around. - - - - The color scheme that the renderer will render. - - - - - Blend for the default and selected arrow button. - - - - - Blend for the pushed arrow button. - - - - - Blend for the thumb. - - - - - Blend for the thumb with height < 17. - - - - - Blend for the border of arrow button. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Gets path that represents left and top lines. - - - - - - - - Gets path that represents bottom and right lines. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws selected arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws selected thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws rounded path for the rectangle of thumb with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - Color to draw. - - - - Draws rounded path for the rectangle of arrow button with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - Color to draw. - - - WindowsXP OliveGreen Style renderer implementation. - - - - Blend for the default and selected arrow button. - - - - - Blend for the default and selected arrow button. - - - - - Blend for the thumb. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws selected arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws selected thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws rounded path for the rectangle of arrow button with specified color. - - The graphics object to use. - Bounds of the arrow button. - Color to draw. - - - WindowsXP Silver Style renderer implementation. - - - - Blend for the default and selected arrow button. - - - - - Blend for the pushed arrow button. - - - - - Blend for the thumb. - - - - - Blend for the pushed thumb. - - - - - Blend for the background. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Initialize new instance of WindowsXPRenderer - - - - - Draws arrow button of scroll. If theme is disabled than draw classic scroll. - - - - - - - - - Draws background of scroll. If theme is disabled than draw classic scroll. - - - - - - - - Draws thumb for scroll. If theme is disabled than draw classic scroll. - - - - - - - - Fills background with specified colors and gradient. - - Graphics object to use. - Bounds of the background. - Start color of the gradient. - End color of the gradient. - - - - Draws default background. - - Graphics object to use. - Bounds of background. - - - - Draws pushed background. - - Graphics object to use. - Bounds of background. - - - - Draws default arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws pushed arrow button. - - Graphics object to use. - Bounds of the arrow button. - - - - Draws default thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws pushed thumb. - - Graphics object to use. - Bounds of the thumb. - - - - Draws borders for the arrow buttons and thumbs. - - The graphics object to use. - Bounds of the arrow button. - - - - Draws internal borders for the arrow buttons and thumbs. - - The graphics object to use. - Bounds of the arrow button. - - - - Defines constants for specifying the persistence medium to be used for serialization. - - - The SerializeMode enumeration defines constants for specifying the persistence medium. - This enum is used by the class as well as by several other - Syncfusion components. - - - - - The IsolatedStorage is used for reading / writing the state information. - - - - - A Binary file is used for reading / writing the state information. - - - - - A .XML file is used for reading / writing the state information. - - - - - The Win32 WindowsRegistry is used for reading / writing the state information. - - - - - An externally provided Stream is used for reading / writing the state information in an XML format. - - - - - An externally provided Stream is used for reading / writing the state information in a binary format. - - - - - Provides a mechanism for coordinating the serialization behavior of multiple components. - - - The AppStateSerializer class is a serialization utility that allows multiple components - in an application to access a common disk I/O medium for state persistence. Using - the same storage medium for persisting the state information across components, without overtly - tying them together, helps avoid the file clutter that is bound to occur by components - using distinct files. Though primarily developed for use by Syncfusion products, the - AppStateSerializer is generic enough to be availed of by other components as well. - - The AppStateSerializer supports serializing into the system's Isolated Storage, Windows Registry, an XML file, - a binary file or to an externally provided Stream. Take a look at the enumeration for more information on - these different supported modes. - - - To use the services of this class, you can create a new instance or use the global Singleton instance. - These two usage patterns are explained below: - - - 1) Using the Singleton: The AppStateSerializer class provides you a singleton instance - (through the ) using which you can persist all your - app. info into a single medium. This singleton, by default, is configured to persist in the - Isolated Storage (with the scope IsolatedStorageScope.Assembly|IsolatedStorageScope.Domain|IsolatedStorageScope.User). - This usage pattern is akin to creating an instance of this class and using the same instance to persist - all your app information. But, note that this Singleton is also used by the Controls and Components in - Essential Tools to persist their information. The default Storage medium of this Singleton instance - can also be customized using the static method. In short, use - the Singleton whenever you want all your persistence information to be stored in a single medium (along - with the persistence information of the Controls and Components in Essential Tools). - - - 2) Using an instance: As an alternative you could create a custom instance - of this class, configuring it to use one of the above storage mediums and persist - one or more information into it. You can use this in tandem with the above Singleton instance - if you wish. Make sure to call method when you are done writing into the serializer. - - - In both the above cases use the - method's and - to persist or depersist from the storage medium set for that instance. - - - Note that the AppStateSerializer class uses "Simple" type names (not strongly typed) to - serialize types. This is necessary to enable usage of persisted information across different - but compatible versions of an assembly. This will however cause the deserialization - process to convert the serialized data to the type from the latest version of the assembly installed in the GAC, - instead of the version that your app is linking to. You can overcome this by - using the method. - - - - - Serializing using an instance: - - // To Save - AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "myfile"); - serializer.SerializeObject("MyLabel", mydata); - serializer.PersistNow(); - // To Load - AppStateSerializer serializer = new AppStateSerializer(SerializeMode.XMLFile, "myfile"); - object loadedObj = serializer.DeserializeObject("MyLabel"); - if(loadedObj != null && loadedObj is MyData) - { - MyData myData = (MyData)loadedObj; - } - - - ' To Save - Dim serializer As New AppStateSerializer(SerializeMode.XMLFile, "myfile") - serializer.SerializeObject("MyLabel", mydata) - serializer.PersistNow() - ' To Load - Dim serializer As New AppStateSerializer(SerializeMode.XMLFile, "myfile") - Dim loadedObj As Object = serializer.DeserializeObject("MyLabel") - If TypeOf loadedObj Is MyData Then - Dim myData As MyData = CType(loadedObj, MyData) - End If - - - - Serializing using Singleton: - - // To Save - AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true); - // To Load - object loadedObj = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel"); - - - ' To Save - AppStateSerializer.GetSingleton().SerializeObject("MyLabel", mydata, true) - ' To Load - Dim loadedObj As Object = AppStateSerializer.GetSingleton().DeserializeObject("MyLabel") - - - - - - - Overloaded. Creates an instance of the AppStateSerializer class. - - The in which to create. - The persistence path to be used for this mode. See remarks for more info. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write, and Seek capability. - - - If using the IsolatedStorage mode, then the default isolated storage scope (Domain | Assembly | User) will be used. - Use the three argument constructor to specify a custom scope. - - - - - - Creates an instance of the AppStateSerializer class. - - The in which to create. - The persistence path to be used for this mode. See remarks for more info. - The to be used if the mode is set to SerializeMode.IsolatedStorage. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write, and Seek capability. - - - The scope parameter will be referred to if using the IsolatedStorage mode. - - - - - - Returns a reference to the unique instance. - - The AppStateSerializer instance. - - This method will be removed in a future version. Please use the GetSingleton method instead. - - - - - Returns a reference to the unique instance. - - The AppStateSerializer instance. - - - - Controls the binding of an assembly name to a specific . - - The assembly name string. - The corresponding Assembly to bind to. - - - The AppStateSerializer class, by default, uses "Simple" assembly names (not strongly typed) to serialize types. This - renders the deserialization process unpredictable because the resultant type of an object after - deserialization is dependent upon the latest version of that assembly installed in the GAC, if any. - This will usually result in casting errors during the deserialization process when the app is linking to an older version of the - assembly and when a newer version of the assembly is installed in the GAC. - - - This method allows you to overcome this limitation by associating a "Simple" assembly name with a - specific . - - - - - This example will bind the - assembly that the app is linking to, to the "Simple" assembly name. Do this from the static - constructor of the class that uses the AppStateSerializer - class: - - static MyType() - { - AppStateSerializer.SetBindingInfo("MyNameSpace.MyType", typeof(MyType).Assembly); - } - - - 'In type MyType: - Shared Sub New() - AppStateSerializer.SetBindingInfo("MyNameSpace.MyType", Type.GetType(MyType).Assembly) - End Sub - - - - - - - Binds a type in the specified assembly to the same type in a different assembly. Typically useful - in supporting backward compatibility. - - The assembly name string. - The type name string. - The corresponding Assembly to bind to. - - - This method is useful when you renamed your assembly and you want to map the old types to the - new types in the new assembly. If you didn't rename the assembly, then just consider using the - method. - - - - - - Binds the oldtypename type to the newtypename type. This method comes in handy when serialized types have - undergone a name change and backward compatibility is to be retained. - - The old name of the type. - The new name of the type. - - - - Sets the persistence mode and persistence path for the singleton instance of . - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to the method. - You can force the serializer to clear its serialization map by using the - method. - - This method will be removed in a future version. Please use the InitializeSingleton method instead. - - - A value. - An object that represents the persistence medium. - The IsolatedStorageScope to be used. - - - - Overloaded. Sets the persistence mode and persistence path for the singleton instance of . - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to method. - You can force the serializer to clear its serialization map by using the - method. - - A value. - An object that represents the persistence medium. - The IsolatedStorageScope to be used. Referred only when the mode is IsolatedStorage. - - - - Sets the persistence mode and persistence path for the singleton instance of . - - - The singleton's parameters can only be changed before it gets created. - It gets created in the first call to the method. - You can force the serializer to clear its serialization map by using the - method. - - If the mode is set to Isolated Storage, then the default isolated storage scope will be used. - - The persistpath argument should be based on the property, as follows: - - SerializeMode.XMLFileA string representing the file name (an .XML suffix will be added) in which to store. - SerializeMode.BinaryFileA string representing the file name (a .bin suffix will be added) in which to store. - SerializeMode.WindowsRegistryA under which to persist. - SerializeMode.IsolatedStorageA string representing the file name (a .bin suffix will be added) in which to store within the Isolated Storage. - SerializeMode.ExternalStreamAn instance of a derived class with Read, Write and Seek capability. - - - - - - public Form1() - { - // To make the singleton use an XML file: - AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile, "GlobalState"); - - InitializeComponent(); - } - - - Public Sub New() - { - ' To make the singleton use an XML file: - AppStateSerializer.InitializeSingleton(SerializeMode.XMLFile, "GlobalState") - - InitializeComponent() - } - - - A value. - An object that represents the persistence medium. - - - - Clears the serialization map and deletes the persistent store. - - If the persistent store is an external stream, then FlushSerializer just clears the - serialization map and returns without affecting the stream. - - - - - - Overloaded. Writes the object to persistent storage under the specified tag. - - A descriptor tag for the object. - The object to be persisted. If NULL, an existing object is removed from the serialization map. - - If the is False, then this method will not serialize. - - - - - Writes the object to persistent storage under the specified tag. - - A descriptor tag for the object. - The object to be persisted. Use NULL to remove an existing object from the serialization map. - When this parameter is True, the object is serialized only at - the point when it is being written to the persistent storage medium. This usually - happens only when the serializer is being finalized. - - If the is False, then this method will not serialize. - - - - - Deserializes the object from the persistent store. - - The object descriptor. - The deserialized object. - - If the is False, then this method will not deserialize. - - - - - Overloaded. Serializes the object to the specified persistence medium. - - A value describing the persistence medium. - Represents the persistence medium. - A string descriptor for the object. - The object to be serialized. Use NULL to delete the object's store. - - If is False, then this method will not serialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and - methods to persist information. Make sure to call when done persisting. - - - - - - Serializes the object to Isolated Storage. - - The name of the IsolatedStorageFile. - The IsolatedStorageScope to be used. - A string descriptor for the object. - The object to be serialized. Use NULL to delete the object's store. - - If is False, then this method will not serialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and - methods to persist information. Make sure to call when done persisting. - - - - - - Overloaded. Deserializes an object from the specified persistent store. - - A value describing the persistence medium. - Represents the persistence medium. - A string descriptor for the object. - The deserialized object. - - If is False, then this method will not deserialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and . - - - - - - Deserializes an object from Isolated Storage. - - The name of the IsolatedStorageFile. - The IsolatedStorageScope to be used. - A string descriptor for the object. - The deserialized object. - - If is False, then this method will not deserialize. - - This method has been replaced and will be removed form a future version. - Instead, create a new instance of the AppStateSerializer class (with the mode and persist path) - and then use the and . - - - - - - Writes the 's contents to the persistent storage. - - - If is False, then this method will not persist. - - - - - Gets or sets a bool value to indicate whether the exception should throw while reading the file from stream or not. - - - true if it should throw the exception to handle it while reading the file stream; otherwise, false. - - - - - Returns the persistence mode set for the . - - A value. - - - - Returns the persistence path set for the . - - - The persistence path is contextual and is interpreted based on the property value. - - An object of type varying based on the the SerializationMode. - - - - Returns the IsolatedStorageScope used by the . - - An value. - - This property is used only if the mode is set to SerializeMode.IsolatedStorage. - - - - - Indicates whether serialization and deserialization is enabled. - - True to enable serialization; false otherwise. This property is set to True by default. - - This property allows you to temporarily enable / disable serialization. - - - - - - Returns the version of the application (got through the Application.ProductVersion property) - whose state has now been deserialized. - - The version as string if available. String.Empty otherwise. - This gives you some information about the state of the deserialized information - - as to which version of the application it belonged to. - - - - Occurs just before the contents of the are persisted. - - - - - Provides event data for the various ProvidePersistenceID events. - - - - - Gets / sets a unique ID. - - - - - Represents a method that lets you specify a unique ID usually distinguishing different - instances of a control type. - - - - - Specifies the look of the arrow buttons should be drawn. - - - - - Draw normal buttons. - - - - - Draw flat buttons. - - - - - Used by the to allow its content to create a control if it implements this interface. - - - - - Creates a new . - - A new instance. - - - - Provides a method to create a copy of an existing splitter pane or window. - - - - - Creates a copy of an existing splitter pane or window. - - The row in a . - The column in a . - A reference to the parent control, e.g a splitter frame. - A new instance of a control. - - - - Defines split behavior for a . - - - - - No dynamic splitter. - - - - - Split rows vertically. - - - - - Split columns horizontally. - - - - - Allow both splitting the view vertically and horizontally. - - - - - Specifies the current state of the button. - - - - - Button is in normal state. - - - - - Button is disabled. - - - - - Mouse is hovering over button. - - - - - Button is pushed. - - - - - Button is checked. - - - - - Button is considered a drop target of a drag-and-drop operation. - - - - - A mask for the drawing state of the button without behavioral options (without Checked, DropTarget). - - - - - - - - - - - - - - - - - Helper class for . Manages items. - - - - - Initializes an and attaches it to a control. - - The parent control. - - - - - - - Called when a button is clicked. - - The that was clicked. - - Called by OnMouseDownEvent. - - - - - Called from parent control to draw this bar. - - A Graphics object. - - - - Checks if mouse is over a button and returns the zero-based button index or -1. - - X-coordinate of mouse pointer. - Y-coordinate of mouse pointer. - Zero-based button index; -1 if not over a button. - - - - Initializes ToolTips boundaries. - - - - - Reinitializes and hides ToolTips. - - - - - Recalculates boundaries of child buttons. - - True if ToolTips should be initialized too. - - - - Cancels current action. - - - - - Repaints only if marked dirty. - - - - - - - - - - - - - - - - - - - - Resets hovered state for all buttons. - - - - - Resets pushed state for all buttons. - - - - - Gets / sets the button array. - - - - - Indicates whether a button is currently pressed. - - - - - Gets / sets the boundaries of this bar. - - - - - Gets / sets the default size for buttons in this bar. - - - - - Indicates whether it is flat look for buttons. - - - - - Indicates whether any button is dirty or sets all buttons dirty. - - - - - Indicates whether any button is enabled or sets all buttons enabled / disabled. - - - - - Indicates whether any button is in hovered state. - - - - - Indicates whether any button is in pushed state. - - - - - Gets / sets the delay until the button starts firing click events - when the user holds down the mouse button. - - - - - Gets / sets the minimum delay between clicks when scrolling is accelerated. - - - - - Gets/Sets whether AddNewButton needs to drawn in TabBar - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the visual style of the tabBarSplitterControl. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Interface for Spreadsheet Tabpage - - - - - Gets the bool value - - - - - Handles the or the events. - - - - - Provides event data for the - or the event. - - - - - Returns the control inside the specified pane. - - - - - Returns the zero-based row number of the pane. - - - - - Returns the zero-based column number of the pane. - - - - - Returns a reference to the control at the top-left pane. - - - - - Defines an interface that provides methods for creating and hiding controls for - a splitter pane inside a . - - - - - Creates a new control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the first splitter pane. - A new instance of a control. - - - - Hides / disposes the control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the splitter pane that should be hidden. - - - - This is the default implementation of the and manages - creating and hiding of controls for - a splitter pane inside a . - - - You can get or replace this object with the property - of a control. - - - - Creates a new control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the first splitter pane. - A new instance of a control. - - - - Hides / disposes the control for the specified splitter pane. - - A parent control. Can be a . - The row in a . - The column in a . - The control in the splitter pane that should be hidden. - - - - Specifies the style Control - - - - - Specifies the Default style of the control - - - - - Specifies the Metro style of the Control - - - - - Specifies the Office2016 style of the Control - - - - - holds information about the current vertical and horizontal split positions. - - - - - Gets / sets the horizontal splitter position in pixels. - - - - - Gets / sets the vertical splitter position in pixels. - - - - - Provides style identity information for nested expandable objects of the GridStyleInfo and TreeStyleInfo classes. - - - - - Provides style identity information for subobjects. - - - - - This is an abstract base class that provides identity information - for objects. - - - - - Loops through all base styles until it finds a style that has a specific property initialized. - - - A that identifies the property to operate on. - A that has the property initialized. - - - - Releases all resources used by the component. - - - - - Loops through all base styles until it finds an expandable - that has one or more properties initialized. - - The style object. - A that identifies the property to operate on. - A that has the property initialized. - - - - Returns an array with base styles for the specified style object. - - The style object. - An array of style objects that are base styles for the current style object. - - - - Occurs when a property in the has changed. - - The instance that has changed. - A that identifies the property to operate on. - - - - Occurs before a property in the is changing. - - The instance that is changed. - A that identifies the property to operate on. - - - - Gets / sets another identity object to be used for determining base styles. - GetBaseStyle will call InnerIdentity.GetBaseStyle if this object is not NULL. - - - - - Gets or sets a value indicating whether this object is disposable. - - - true if this object is disposable; otherwise, false. - - - - - Releases all the resources used by the component. - - - - - Instantiates a new for a - given owner and . - - The owner style of the sub object. - The identifier of the subobject in the owner object. - - - - Returns an array with base styles for the specified style object. - - The style object. - - An array of style objects that are base styles for the current style object. - - - - - Returns the owner style of the subobject. - - - - - Returns the identifier of the subobject in the owner object. - - - - - Creates a new object and associates it with a . - - The that owns this subobject. - The descriptor for this expandable subobject. - - - - - - - - - - Looks for an entry that contains the given key, null is returned if the - key is not found. - - - - - A routine used by enumerators that need a sorted map - - - - - A routine used by enumerators to iterate through the map - - - - - A routine used to iterate through all the entries in the map - - - - - Promotes the key/value pairs in the current collection to the next larger - and more complex storage model. - - - - - Size of this data store - - - - - A simple class to handle a single key/value pair - - - - - A simple class to handle a single object with 3 key/value pairs. The pairs are stored unsorted - and uses a linear search. Perf analysis showed that this yielded better memory locality and - perf than an object and an array. - - - This map inserts at the last position. Any time we add to the map we set _sorted to false. If you need - to iterate through the map in sorted order you must call Sort before using GetKeyValuePair. - - - - - A simple class to handle a single object with 6 key/value pairs. The pairs are stored unsorted - and uses a linear search. Perf analysis showed that this yielded better memory locality and - perf than an object and an array. - - - This map inserts at the last position. Any time we add to the map we set _sorted to false. If you need - to iterate through the map in sorted order you must call Sort before using GetKeyValuePair. - - - - - A simple class to handle an array of between 6 and 12 key/value pairs. It is unsorted - and uses a linear search. Perf analysis showed that this was the optimal size for both - memory and perf. The values may need to be adjusted as the CLR and Avalon evolve. - - - - - FrugalMapIterationCallback - - - - - Allows you to specify a custom name for the StaticData field - in a . - - - - - Specifies the default field name as "staticDataStore". - - - - - Initializes a new instance of the class. - - - - - - - - - - - - - - Returns the field name in the class - that identifies the static data store. - - - - - Provides data for the event. - - - - - Initializes the object with the property that has changed. - - Identifies the property that has changed. - - - - Returns the property that has changed. - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - - - - Defines an interface implemented both by and - that allows you to check the state of the object, read and write specific property and execute - style operations with the . method. - - - - - Compares all properties with another style object and indicates whether - the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Merges two styles. Resets all properties that differ among the two style object - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Parses a given string and applies the results to affected properties in this style object. - - The string to be interpreted. - - consumes strings previously generated with - a method call. - - - - - Indicates whether a specific property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether the style is empty. - - - - - Indicates whether any properties for this object have changed since it was applied last time. - - - - - Returns the object that holds all the data for this style object. - - - - - defines an interface for classes - used as sub-objects in a . - - - implements this interface. - - - - - Makes an exact copy of the current object. - - The new owner style object for the copied object. - The identifier for this object. - A copy of the current object and registered with the new owner style object. - - - - Returns a unique identifier for this sub object in the owner style object. - - - - - Returns a reference to the owner style object. - - - - - Returns the data for this object. This is the StyleInfoStore from the constructor. - - - - - Provides a wrapper object for the object with type - safe access to all properties stored in the style object. - - Style objects provide a very user friendly way to modify data. It is very much like in Excel VBA. - For example, to change the bold setting for a cell, you simply call grid[5,2].Font.Bold = True. - - - The is a wrapper around the . - It provides type safe accessor properties to modify data of the underlying - data store and can hold temporary information about the style object that - does not need to be persisted. - - In Essential Grid for the example, the GridStyleInfo class holds extensive identity - information about a style object such as cached base styles, row and column index, - a reference to the grid model, and more. This is all the information that can be discarded - when the style is no longer used (because maybe the cell is not visible anymore). Only - the part needs to be kept alive. - - Style objects only exist temporarily and will be created as a weak reference in a - volatile data store. Once Garbage Collection kicks in smart style objects that are not - referenced any more will be garbage collected. The volatile data cache can also be - cleared manually. - - Because Style objects know their identity they can notify their owner of changes or - load base style information when the user interacts with the style object. This allows - you to make changes to a style object directly, such as Cell.Font.Bold = True; - - Style objects support property inheritance from parent styles, e.g. in a grid a cell - can inherit properties from a parent row, column, table or a collection of names styles - in a base styles map. - - Style objects support subobjects. Subobjects can support inheritance (e.g. a Font.Bold - can be inherited). Immutable subobjects like BrushInfo don't support inheritance of - individual properties. - - allows you to register any number of properties but keeps the data - very memory efficient. Only properties that are actually used for a style - object will be allocated for an object. The StyleObjectStore handles the storage of the object. - For short integers, enums and Boolean values, the data will be stored in a BitVector32 - structure to save even more memory. - - Programmers can derive their own style classes from - and add type-safe (and intellisense) - supported custom properties to the style class. If you write, for example, your own - SpinButton class that needs individual properties, simply add a �CellSpinButtonInfo� - class as subobject. If you derive CellSpinButtonInfo from StyleInfoSubObjectBase, - your new object will support property inheritance from base styles. - - Style objects can be written into a string (see ) and later be recreated - using the method. When writing the string you have the option to show - default values (use the �d� format). Subobjects will be identified with a dot - �.�, e.g. �Font.Bold� - - Style object support several operations how to combine information from two styles. Style operations - include: apply changes, apply initialized properties, override initialized properties, exclude properties. - See the method. - - Style objects integrate with . The property grid - displays values that belong to a style object in bold. Values that are inherited from parent - styles will be displayed as default values. The user can select several cells in a grid and - the operation will show common settings in the property grid as bold. - - Style objects support BeginUpdate, EndUpdate mechanism. This allows users to batch several operations - on a style object into one transaction. - - - The following example shows how you can use the GridFontInfo class in Essential Grid: - - standard.Font.Facename = "Helvetica"; - model[1, 3].Font.Bold = true; - string faceName = model[1, 3].Font.Facename; // any cell inherits standard style - Console.WriteLIne(faceName); // will output "Helvetica" - Console.WriteLIne(model[1, 3].Font.Bold); // will output "true" - Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False" - - - - - - - - Serializes the contents of this object into an XML stream. - - Represents the XML stream. - - - - Not implemented and returns NULL. - - - - - - Deserializes the contents of this object from an XML stream. - - Represents the XML stream. - - - - - - - - - - - - - Sets the object that holds all the data for this style object. - - - - - - Clears the cache. - - - - - Overloaded. Initializes a new style object with no identity and data initialized. - - - - - Initalizes a new object and associates it with an existing . - - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initalizes a new object and associates it with an existing and . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initalizes a new object and associates it with an existing and . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - if set to true the style the resulting value of a property when inherited from a basestyle - so that the property does not have to be evaluated multiple times when called repeatedly. - - - - Releases all resources used by the component. - - - - - Indicates whether two style objects are equal. Identity is left out with this comparison, - only the data () are compared. - - The other style object to compare the current object with. - True if both objects have equal data; false otherwise. - - - - Compares two objects for equality. Works also with NULL references. - - The first object to compare. - The second object to compare. - True if both objects are equal. - - - - Returns a hash code which is based on values inside the . - - An integer hash code. - - - - Overloaded. Creates a formatted string for this style object. This string can - later be consumed by . - - A string with formatted style information. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string, you have the option to show default values - (use the �d� format). - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Creates a formatted string for this style object. This string can - later be consumed by . You can specify - "d" as format if you want to write out default values inherited from a base style. - - Use "d" if default values should be included; "G" and NULL are default. - A string with formatted style information. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string you have the option to show default values - (use the "d" format) or not. - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Creates a formatted string for this style object. This string can - later be consumed by . You can specify - "d" as format if you want to write out default values inherited from a base style. - - Use "d" if default values should be included; "G" and NULL are default. - A string with formatted style information. - An to be used - for the operation. Can be NULL. - - Style objects can be formatted into a string that can be consumed - by to recreate style information. - - When writing the string you have the option to show default values - (use the "d" format) or not. - Subobjects will be identified with a period ".", e.g. "Font.Bold". - - - - - Parses a given string and applies it's results to affected properties in this style object. - - The string to be parsed. - - consumes strings previously generated with - a method call. - - - - - Suspends raising events until is called - and will not change the state of this object. - - - - - Resumes raising events and resets the state of this object. - - - - - Suspends raising events until is called. - - - - - Suspends raising events and if changes were - made before the call, it will raise a changed - notification immediately. - - - - - Override this method to return a default style object for your derived class. - - A default style object. - - You should cache the default style object in a static field. - - - - - Override this method to create a product-specific identity object for a sub object. - - An identity object for a subobject of this style. - - The following code is an example how Essential Grid creates GridStyleInfoSubObjectIdentity: - - public override StyleInfoSubObjectIdentity CreateSubObjectIdentity(StyleInfoProperty sip) - { - return new GridStyleInfoSubObjectIdentity(this, sip); - } - - - - - - Locates the in the list of base styles that - provides a specific property. - - Identifies the property to look for. - The style store object that has the specified property. - - - - Locates the base style that has the specified property and returns its instance. - - Identifies the property to look for. - The style object that has the specified property. - - - - - - - Notifies the associated identity object that a specific property - was changed and raises a event. - - Identifies the property to look for. - - - - Notifies the associated identity object that a specific property - will be changed and raises a event. - - Identifies the property to look for. - - - - Compares all properties with another style object and indicates - whether the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Copies properties from another style object. This method raises Changing and Changed - notifications if the other object differs. (ModifyStyle does not raise these events). - - The style object to be applied on the current object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - - - - Merges two styles. Resets all properties that differ among the two style objects - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Indicates whether the specified property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether the specified property has been modified for the current object. - - A that identifies the property to operate on. - - - - Marks the specified property as uninitialized for the current object. - - A that identifies the property to operate on. - - - - - - - Queries the value for the specified property that has been initialized for the current object - or locates it in a base style. - - A that identifies the property to operate on. - - - - Gets the default value from a base style. - - The sip. - - - - - Queries the value for the specified property that has been initialized for the current object - or locates it in a base style. - - A that identifies the property to operate on. - - - - Overloaded. Initializes the value for the specified property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Initializes the value for the specified property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Gets / sets the identity information for the current . - - - - - The object that holds all the data for this style object. - - - - - - - - Gets or sets a value indicating whether this instance should cache values for resolved base style properties. - - true if instance should cache values; otherwise, false. - - - - Occurs when a property in the style object or in a sub object is changed. - - - - - A list of listeners that will be referenced using a WeakReference. The - listeners must implement the interface. When - this style object method is called it - will then loop through all objects in this list and call each objects - method. - - - - - Occurs before a property in the style object or in a sub object is changed. - - - - - Indicates whether was called for this object. - - - - - Indicates whether the style is empty. - - - - - Indicates whether any properties for this object have changed since it was applied last time. - - - - - Specifies whether a property should be serialized. - - - - - - Specifies that a property should be serialized. - This field is Read-only. - - - - - Specifies that a property should not be serialized. - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be serialized; otherwise. The default is . - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A - True if property has a ; False otherwise. - - - - Indicates whether a property is shown in the ToString result. - - - - - Specifies whether a property should be cloned. - - - - - - Specifies that a property should be cloned if the assigned object implements ICloneable. - This field is Read-only. - - - - - Specifies that a property should never be cloned even if the assigned object implements ICloneable - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be should be cloned if the assigned object implements ICloneable; otherwise. The default is - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A - True if property has a ; false otherwise. - - - - Indicates whether a property should be cloned if the assigned object implements ICloneable. - - - - - Specifies whether a property should be disposed. - - - - - - Specifies that a property should be disposed if the assigned object implements IDisposeable. - This field is Read-only. - - - - - Specifies that a property should never be disposed even if the assigned object implements IDisposeable - This field is Read-only. - - - - - The default setting for this attribute. - - - - - Initializes a new instance of the class. - - - if a property should be should be disposed if the assigned object implements IDisposeable; otherwise. The default is - - - - - - - - - - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; false otherwise. - - - - Indicates whether the has been set for the property. - - A . - True if property has a ; false otherwise. - - - - Indicates whether a property should be disposed if the assigned object implements IDisposeable. - - - - - Implement this interface if you want to assign this class to a object's - property and you need to control whether the object should be cloned. - - - This interface is only considered if the of - of the is True. - (This is the default.) - - - - - - - Clones this object. - - A reference to a clone of this object. - - - - Disposes this object. - - - - - Returns True if this object should be cloned if you assign it to a object's - property; false otherwise. - - True if this object should be cloned if you assign it to a object's - property; false otherwise. - - - - Returns True if this object should be disposed if it is reset in a object's - property; false otherwise. - - True if this object should be disposed if it is reset in a object's - property; false otherwise. - - - - Implements the method which is called from - of a - if the object is in - collection. - - - - - Called from of a - object. - - The instance containing the event data. - - - - Provides a type converter to convert expandable objects to and from various - other representations. - - - - - Indicates whether this object supports properties using the - specified context. - - - - - Indicates whether this converter can - convert an object to the given destination type using the specified context. - - - - - Converts the given value object to - the specified destination type using the specified context and arguments. - - - - - Returns a collection of properties for - the type of array specified by the value parameter using the specified context and - attributes. - - - - - A form that displays a with Apply and OK buttons. - - - - - - - Initializes a new with an object whose properties should be displayed. - - The object for which properties should be displayed. - - - - Cleans up any resources being used. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Returns the apply button. You should set up a listener for a Click event. - - - - - - - - Provides a unique identifier for a property in a style object and stores - information about the associated property. - - - is allocated once on the global heap for each - property in a style object. Type safe wrappers make - use of StyleInfoProperty to query, set or reset specific properties. - - Holds information about the property: PropertyType, Name, how to load and save - its state in StyleInfoStore, attributes, etc. - - - - - The type of the component this property is bound to. - - - - - The type of the property. - - - - - The name of the property. - - - - - Represents a method that creates a Subobject of this type and associates it with a parent style object. - - - - - Indicates whether this is an object derived from . - - - - - Indicates whether this object supports being serialized. The value can be set - with a in your class implementation. - - - - - Indicates whether this object should call ICloneable.Clone when an assigned object implements - the ICloneable or interface. The value can be set - with a in your class implementation. - - - - - Indicates whether this object should call ICloneable.Clone when an assigned object implements - the IDisposable or interface. The value can be set - also with a in your class implementation. - - - - - If property is marked with Browsable(true), custom attribute of this flag allows you - to specify whether the property should appear in PropertyGrid. If property is marked - with Browsable(false), then this setting will have no effect. Default is true. - - - - - Indicates whether type information should be included when is called. Use - this if PropertyType is System.Obbject and you want to be able to parse written values. - An example is GridStyleInfo.CellValue. Default is false. - - - - - Indicates whether type information should be converted to Base64 if associated - Type converter supports converting value to and from Base64. An example is a bitmap assigned to GridStyleInfo.CellValue. - If IsConvertibleToBase64String is true, then the grid will convert the bitmap to a Base64 string - and write out the information in the GridStyleInfo.ToString() method and also in the WriteXml method. Default is false. - - - - - Defines how to serialize property when style data is serialized to or from an XML stream - with . - - - - - Returns the of this property. - - Property info of this property. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Method to dispose StyleInfoProperty object - - - - - Initializes a new StyleInfoProperty. - - - - - - - - Formats a given value that is of the same type as the . - - The value to be formatted. - A string with formatted text. - calls this method. - - The event lets you customize the formatting of this property but care - should be taken that the formatted text can be consumed by the - method. - - - - - Overloaded. Parses a given value that is of the same type as the . - - The string to be parsed. - An object of the same type as the created from the parsed string information. - - calls this method. - - The event lets you customize the parsing of this property. - - - - - Parses a given value and converts it to a requested . - - The string to be parsed. - The for the resulting object. - A format provider. - An object of type "resultType" created from the parsed string information. - - The event lets you customize the parsing of this property. - - - - - Handles parse requests for this property. - - - - - Handles formatting requests for this property. - - - - - Handles requests to serialize this property to an XML stream during an - operation of the - class. - - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream, you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Handles requests to deserialize this property from an XML stream during an - operation of the - class. - - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Defines how to serialize property when style data is serialized to or from an XML stream. - with . - - - - - Default. Serialize as string when type is simple. Using XmlSerializer for complex types - or properties where the actual type is not known at compile-time (e.g. CellValue). - - - - - Skip this property. Do not serialize. - - - - - Serialize this property as string using and - . - - - - - Serialize this property using . - - - - - Provides data for the and events. - - - The is used to format and unformat values represented by - a property in a object. The Format event occurs whenever a property - is written out as string and the Parse event occurs whenever the value is read back in from a string. - - If you handle this event, store the resulting value into and - set to True. - - - - - Initializes a new instance of the class. - - An Object that contains the value of the current property. - The Type of the value. - - - - Gets / sets the value of the object. - - - - - Returns the data type of the desired value. - - - The DesiredType property enables you to check the type of the property that the value is being converted to. - - - - - Handles the or event. - - - - - Handles the event of . - - - - - Provides data for the event. - - - The is used to serialize a property of a - object. The WriteXml event occurs whenever a property - is serialized to an XML stream during an operation - of the class. - - If you handle this event, you set to True. - Handling this event allows you to customize the way the object is serialized or skip - serialization. - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects' DataSource property). With such a scenario, you could write out a - identifier and when the property is deserialized from an XML stream, you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Initializes a new object. - - The for the XML stream. - The style object that is being serialized. - The property that is being serialized. - - - - Returns the for the XML stream. - - - - - Returns the style object that is being serialized. - - - - - Returns the property that is being serialized. Call of - the to get the value for this property. - - - - - Handles the event of . - - - - - Provides data for the event. - - - The is used to deserialize a property of a - object. The ReadXml event occurs whenever a property - is deserialized from an XML stream during an - operation of the class. - - If you handle this event, you set to True. - Call of - the to save the value for this property into the style object. - Handling this event allows you to customize the way the object is deserialized or skip - serialization. - - This event allows you to implement a different serialization mechanism if many style objects - reference and share the same object, (e.g. if you assign a DataSet to - several objects DataSource property). With such a scenario, you could write out an - identifier and when the property is deserialized from an XML stream you could - reconstruct a reference to a datasource object based on the identifier. - - - - - Initializes a new object. - - The for the XML stream. - The style object that is deserialized. - The property that is being deserialized. - - - - Returns the for the XML stream. - - - - - Returns the style object that is deserialized. - - - - - Returns the property that is being deserialized. Call of - the to save the value for this property into the style object. - - - - - - Indicates whether the component will allow its value to be reset. - - The component to reset. - - True if the component supports resetting of its value. - - - - - - - Retrieves the value of the property for the given component. This will - throw an exception if the component does not have this property. - - The component. - - The value of the property. This can be cast - to the property type. - - - - - - - Resets the value of this property on the specified component to the default value. - - The component whose property is to be reset. - - - - - - Sets the value of this property on the specified component. - - The component whose property is to be set. - The new value of the property. - - - - - - Indicates whether this property should be persisted. A property is - to be persisted if it is marked as persistable through a - PersistableAttribute and if the property contains something other - than the default value. Note, however, that this method will - return True for design-time properties as well, so callers - should also check to see if a property is design-time only before - persisting to run-time storage. - - The component on which the property resides. - - True if the property should be persisted to either - design-time or run-time storage. - - - - - - Retrieves the type of the component this PropertyDescriptor is bound to. - - - The type of component. - - - - - - Retrieves the display name of the property. This is the name that will - be displayed in a property browser. This will be the same as the property - name for most properties. - - - A string containing the name to display in the property browser. - - - - - - - Indicates whether the property can be written to. - - - True if the property can be written to. - - - - - - - Retrieves the data type of the property. - - - A class representing the data type of the property. - - - - - - provides conversion routines for values - to convert them to another type and routines for formatting values. - - - - - Converts value from one type to another using an optional . - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - The new value in the target type. - - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - Indicates whether exceptions should be avoided or catched and return value should be DBNull if - it cannot be converted to the target type. - The new value in the target type. - - - - Converts value from one type to another using an optional . - - The original value. - The target type. - A used to format or parse the value. - Format string. - Indicates whether exceptions should be avoided or catched and return value should be DBNull if - it cannot be converted to the target type. - The new value in the target type. - - - - Overloaded. Parses the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - The new value in the target type. - - - - Parses the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A format string used in a call. Right now - format is only interpreted to enable roundtripping for formatted dates. - - The new value in the target type. - - - - Parse the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A format string used in a call. Right now - format is only interpreted to enable roundtripping for formatted dates. - - Indicates whether DbNull should be returned if value cannot be parsed. Otherwise an exception is thrown. - The new value in the target type. - - - - Parse the given text using the resultTypes "Parse" method or using a type converter. - - The text to parse. - The requested result type. - A used to format or parse the value. Can be NULL. - A string array holding permissible formats used in a call. Right now - formats is only interpreted to enable roundtripping for formatted dates. - - Indicates whether DbNull should be returned if value cannot be parsed. Otherwise an exception is thrown. - The new value in the target type. - - - - Generates display text using the specified format, culture info and number format. - - The value to format. - The value type on which formatting is based. The original value will first be converted to this type. - The format like in ToString(string format). - The for formatting the value. - The for formatting the value. - The string with the formatted text for the value. - - - - Returns a representative value for any given type. Is useful to preview the - result of a format in . See - - The . - A value with the specified type. - - - - Overloaded. Parses the given string including type information. String can be in format %lt;type> 'value' - - - - - - - - Parses the given string including type information. String can be in format %lt;type> 'value' - - - - Indicates whether TypeConverter should be checked whether the type to be - parsed supports conversion to/from byte array (e.g. an Image) - - - - - Indicates whether the TypeConverter associated with the type supports conversion to/from a byte array (e.g. an Image). - If that is the case the string is converted to a byte array from a base64 string. - - - - - - - - - Overloaded. Formats the given value as string including type information. String will be in format %lt;type> 'value' - - - - - - - Formats the given value as string including type information. String will be in format %lt;type> 'value' - - - Indicates whether TypeConverter should be checked whether the type to be - parsed supports conversion to/from byte array (e.g. an Image) - - - - - Indicates whether the TypeConverter associated with the type supports conversion to/from a byte array (e.g. an Image). - If that is the case the string is converted to a base64 string from a byte array. - - - - - - - Returns the type name. If type is not in mscorlib, the assembly name is appended. - - - - - - - Returns the type from the specified name. If an assembly name is appended the list of currently loaded - assemblies in the current AppDomain are checked. - - - - - - - Indicates whether string is null or empty. - - - - - - - Indicates whether should trim whitespace characters from - the end of the formatted text. - - - - - StyleInfoPropertyGrid is a that will reset a specific property when the user right-clicks on the item. - - - - - - - - Holds all StyleInfoProperties used by derived classes. - This should go in a product specific StaticData. - The concrete Style class could provide a static memory StaticData that belongs - to the process and library. - - - - - Method to dispose static data object internally for disposing Chart styles. - - - - - Initializes a new object with information about the parent style class. - - - Will be used to access the PropertyInfo and its custom attributes for a property. - - - - - - - - - - - Registers a for the specified property. - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - Specifies options for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - Specifies options for the property. - The StyleInfoProperty with information about the property. - - - - Registers a for the specified property. - - The type of the property. - The name of the property. - The maximal possible Int16 value for the property. - Indicates whether this StyleInfoProperty should be registered as a member of the BitArray and not to allocate - an object reference. - Specifies options for the property. - The component type that hosts the property. - The StyleInfoProperty with information about the property. - - - - Gets type of StyleInfo which is parent of store with current staticdata - - - - - Returns a collection with objects. - - - - - - - - Indicates whether properties have been registered. Returns True if not registered; False otherwise. - - - - - Provides storage for the object. - - - You cannot instantiate a class directly. You have - to derive a concrete class from this class that you can instantiate. - In derived classes of , you always need to - implement a / - pair. The holds all the data that are specific - to the style object and should be persisted. - The is a wrapper around the . - It provides type safe accessor properties to modify data of the underlying - data store and can hold temporary information about the style object that - does not need to be persisted. - - In Essential Grid for example, the GridStyleInfo class holds extensive identity - information about a style object such as cached base styles, row and column index, - a reference to the grid model and more. These are all the information that can be discarded - when the style is no longer used (because maybe the cell is not visible anymore). Only - the part needs to be kept alive. - - allows you to register any number of properties but keeps the data - very memory efficient. Only properties that are actually used for a style - object will be allocated for an object. The StyleObjectStore handles the storage of objects. - For short integers, enums and Boolean values the data will be stored in a BitVector32 - structure to save even more memory. - - See the overview for for further discussion about style objects. - - - - - - - Searches the with the given name. - - The name of the property to look for. - A that is associated with the specified name. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Initializes an empty . - - - - - Creates an exact copy of the current object. - - A with same data as the current object. - - - - Copies all properties to another . - - The target to copy all properties to. - - - - Releases all the resources used by the component. - - - - - - - - - - - - - - Resets all "Changed" bits that mark certain properties as modified. - - - - - Clears out all properties for this . - - - - - Indicates whether a specific property has been initialized for the current object. - - A that identifies the property to operate on. - - - - Indicates whether a specific property has been modified for the current object. - - A that identifies the property to operate on. - - - - Marks a specific property as modified or unmodified for the current object. - - A that identifies the property to operate on. - The new value. - - - - Marks a specific property as uninitialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Queries the value for a specific property that has been initialized for the current object. - - A that identifies the property to operate on. - - - - Overloaded. Initializes the value for a specific property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Initializes the value for a specific property. - - A that identifies the property to operate on. - The value to be saved for the property. - - - - Gets sip from current storage by sip from another store - - - - - - - Checks SIP belonging to current store. If current store doesn't contain SIP than returns SIP from current store with identical PropertyName. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Compares all properties with another style object and determines - if the current set of initialized properties is a subset of - the other style object. - - The other style to compare with. - True if this style object is a subset of the other style object. - - - - Applies changes to a style object as specified with . - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Applies changes to a style object as specified with . If a property is modified - its Changed flag is set so that the parent style object can identify modified properties in a subsequent Changed notification. - - The style object to be applied on the current object. - The actual operation to be performed. - - - - Merges two styles. Resets all properties that differ among the two style objects - and keeps only those properties that are equal. - - The other style object this style object should merge with. - - - - Applies changes to a style object as specified with - - The other style object this style object should inherit with. - Style operation - - - - Modifieds property from different stores - - - - - - - - Assigns property with sipInfo from style - - - - - - - if sipSrc is different store with current store than find StyleInfoProperty in current store with identical PropertyName and reset property - - sip from some store - - - - Modifies expanded property - - sip from another storage - style source - operation - - - - Allows customization of serializing the StyleInfoProperty. Returns True if you override - this method and do not want default serialization behavior for this property. - - - - - Allows customization of serializing the StyleInfoProperty. Returns True if you override - this method and do not want default serialization behavior for this property. - - - - - Serializes all properties of this object to XML. - - - - - Registers the XmlSerializer for a specific type. This XmlSerializer will - be used when a object of the specified type is read back in from an xml stream. - You can for example register an "ImageHolder" serializer for a custom ImageHolder type - and have that serializer be used when GridStyleInfo.CellValue contains an ImageHolder object. - - - - - - XmlSerializer imageHolderSerializer = new XmlSerializer(typeof(object), new Type[] { typeof(ImageHolder) }); - GridStyleInfoStore.RegisterXmlSerializer(typeof(ImageHolder), imageHolderSerializer); - - - - - - Serializes all properties of this object from XML. - - - - - - - - Returns a collection with objects. - - - - - Static data must be declared static in derived classes (this avoids collisions - when StyleInfoStore is used in the same project for different types of style - classes). - - - - - The class checks this property - to find out about the sort order of the properties in this . - - - - - Indicates whether this is an empty object and no properties have been initialized. - - - - - Indicates whether any properties have been changed. - - - - - Specifies the options for style properties. - - - - - None. - - - - - The property supports serialization. - - - - - The property should be cloned when the parent style object is copied. - - - - - The property should be disposed when the parent style object is disposed. - - - - - The property should be disposed when the parent style object is disposed - and cloned when the parent style object is copied. - - - - - All of the above. - - - - - is an abstract base class for classes - to be used as subobjects in a . - - - is derived from - and thus provides the same easy way to provide properties that can inherit values - from base styles at run-time. - The difference is that supports this inheritance - mechanism as a subobject from a . A subobject needs to - have knowledge about its parent object and be able to walk the base styles from the - parent object. - Examples for implementation of are the font and border - classes in Essential Grid. - Programmers can derive their own style classes from - and add type-safe (and Intelli-sense) - supported custom properties to the style class. If you write your own - SpinButton class that needs individual properties, simply add a "CellSpinButtonInfo" - class as subobject. If you derive CellSpinButtonInfo from StyleInfoSubObjectBase, - your new object will support property inheritance from base styles. - - See the overview for for further discussion about style objects. - - The following example shows how you can use the GridFontInfo class in Essential Grid: - - standard.Font.Facename = "Helvetica"; - model[1, 3].Font.Bold = true; - string faceName = model[1, 3].Font.Facename; // any cell inherits standard style - Console.WriteLIne(faceName); // will output "Helvetica" - Console.WriteLIne(model[1, 3].Font.Bold); // will output "true" - Console.WriteLIne(model[1, 3].Font.HasFaceName); // will output "False" - - - - - - Overloaded. Initializes a new object and associates it with an existing . - - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Initializes a new object and associates it with an existing . - - A that holds the identity for this . - A that holds data for this object. - All changes in this style object will be saved in the object. - - - - - Releases all the resources used by the component. - - - - - - - - Locates the base style that has the specified property and returns its instance. - - Identifies the property to look for. - The style object that has the specified property. - - - - Makes an exact copy of the current object. - - The new owner style object for the copied object. - The identifier for this object. - A copy of the current object registered with the new owner style object. - - - - Returns the with identity information about this object. - - - - - Returns a unique identifier for this subobject in the owner style object. - - - - - Returns the data for this object. This is the StyleInfoStore from the constructor. - - - - - Returns a reference to the owner style object. - - - - - StyleModifyType defines style operations for . - - - - - Copies all initialized properties. - - - - - Copies only properties that have not been initialized in the target style object. - - - - - Copies all properties and resets properties in the target style. - - - - - Resets properties in the target style that have been marked as initialized in the source style. - - - - - Clears out all properties. - - - - - Copies and resets all properties in the target style when the property has been marked as changed in the source style. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required designer variable. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required designer variable. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets the assiciated with this dialog. - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Gets or sets the assiciated with this dialog. - - - - - Cannot create default instance of SpellCheckerDialog. - - - - - Handles this event to change the text while double clicking the item in LBox_Suggestions. - - - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Cannot create default instance of SpellCheckerDialog. - - - - - Handles this event to change the text while double clicking the item in LBox_Suggestions. - - - - - - - Required designer variable. - - - - - Clean up any resources being used. - - true if managed resources should be disposed; otherwise, false. - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Utility class for performing soundex algorithm. - - - - - Initializing the soundex object. - - - - - Return the soundex code for a given string. - - - - - Transform the A-Z alphabetic characters to the appropriate soundex code. - . - String - Soundex code for the given word. - - - - - Compute Levenshtein distance. - - String 1 - String 2 - Distance between the two strings. - The larger the number, the bigger the difference. - - - - - Gets the next word from the alphabet list. - - - - - - Specifies the path of the dictionary. - - - - - Specifies the path of the custom dictionary. - - - - - ArrayList to hold the wrong words. - - - - - Specifies whether to ignore internet address during spell check. - - - - - Specifies to ignore email address during spell check. - - - - - Specifies to ignore html tags during spell check. - - - - - Specifies to ignore file names during spell check. - - - - - Specifies to ignore words in mixed case during spell check. - - - - - Specifies to ignore words in upper case during spell check. - - - - - Specifies to ignore words with number during spell check. - - - - - Specifies to ignore words repeated words during spell check. - - - - - Allows to customize the number of suggestions to be displayed in the suggestion list. - - - - - Specifies to ignore special symbols during spell check. - - - - - Stream that contains the dictionary. - - - - - Serializing the ChangeAllText property - - - - - - Serializing the IsSpreadsheetLikeSpellChecker property - - - - - - Serializing the CloseReason property - - - - - - Reset the ChangeAllText property - - ChangeAllText - - - - Serializing the Reset property - - IsSpreadsheetLikeSpellChecker - - - - Performs the spell check operation. - - - - - Converts the dictionary entries to array list. - - - - - Converts the dictionary entries to array list. - - - - - Gets the items from the dictionary list. - - - - - Gets the items from the dictionary list. - - - - - Gets the Soundex code. - - - - - Checks for the Upper case. - - - - - Checks for the First letter captial. - - - - - Finds the casing for the given word. - - - - - - Generates the word list by deleting a single alphabet and interchanging the adjacent alphabets every time - - - - - Splits the retrieved sentence into words. - - - - - Checks whether the word is present in the dictionary. - - - - - Checks the dictinary, to identify the misspelled words. - - ArrayList - wrongWords - - - - - Checks the dictionary to generate the suggestion list. - - ArrayList - String - suggest_list - - - - - Chnages the string in the suggestion list as per the casing in the Error word - - - - - - Gets the suggestion list generated using the Soundex Alogrithm. - - ArrayList - String - - - - To customize the number of suggestions to be displayed. - - ArrayList - errror_string - - - - - Raises the events. - - - - - - Checks the text of the for misspellings with . - - IEditor whose text is to be checked for misspellings. - - - - Shows the . - - Form that owns this dialog. - - - - Shows the . - - Form that owns this dialog. - - - - Deletes the contents of the dictionary file by overwritting. - - File path whose content to be deleted. - - - - Deletes the specified word from the customdictionary. - - Specifies the path of the dictionay file. - Specifies the word to be deleted. - - - - Writes the specified word to the dictionary. - - Specifies the path of the dictionay file. - Specifies the word to be added to the dictionary. - - - - Overwrites the specified wordlist to the dictionary. - - Specifies the path of the dictionay file. - List of words to overrite the dictionary. - - - - SpellCheckerDialog. - - - - - Gets/Sets the status of the dialog window - - - - - Gets or Sets a value specifying whether to ignore repeated words during spell check. - - - - - Gets or Sets a value specifying whether to ignore words in mixed case during spell check. - - - - - Gets or Sets a value specifying whether to ignore words in upper case during spell check. - - - - - Gets or Sets a value specifying whether to ignore words with number during spell check. - - - - - Gets or Sets a value specifying the number of suggestions to be displayed in the suggestion list. - - - - - Gets or Sets a value specifying whether to ignore special symbols during spell check. - - - - - Gets or Sets a value specifying whether to ignore file names during spell check. - - - - - Gets or Sets a value specifying whether to ignore internet address during spell check. - - - - - Gets or Sets a value specifying the path of the dictionary. - - - - - Gets or Sets a value specifying the path of the custom dictionary. - - - - - Gets or Sets a value specifying whether to ignore email address during spell check. - - - - - Gets or Sets a value specifying whether to ignore html tags during spell check. - - - - - Holds the list of misspelled words. - - - - - Gets/Sets the value to indendify the type of the SpellChecker. - - - - - Holds the string of the change all. - - - - - Gets or sets the stream that contains the dictionary. - - - - - Checks for the Upper case. - - - - - Checks for the First letter captial. - - - - - Raised when there is an exception in the . - - - - - Defines a interface that provides methods to interact with the editor. - - - - - Selects the word specified by the index. - - Zero based index of the word on the Text. - length of the word to be selected. - - - - Gets or sets the whose is to be spell checked. - - - - - Gets or sets the current misspelled word. - - - - - Gets or sets the Text to be spell checked by the - - - - - Implements interface to interact with instance of . - - - - - Initializes a new instance of class that hosts the control. - - - - - - Selects the word specified by the index. - - Zero based index of the word on the Text. - length of the word to be selected. - - - - Gets or sets the whose is to be spell checked. - - - - - Gets or sets the current misspelled word. - - - - - Gets or sets the Text to be spell checked by the - - - - - - - - Initializes a new instance of the class. - - The instance subclasses . - - - - - - - Invokes the default window procedure associated with this window. - - A that is associated with the current Windows message. - - - - - - - - - - - - - - - - - - - - - - Instance of TextBoxExt - - - - - Initializes a new instance of the class. - - - - - Initializes the designer with the specified component. - - The to associate the designer with. This component must always be an instance of, or derive from, . - - - - Releases the unmanaged resources used by the and optionally releases the managed resources. - - true to release both managed and unmanaged resources; false to release only unmanaged resources. - - - - Returns a representing the bounds of this control. - - A value that specifies the selection state. - - A . - - - - - Raises the TextAlignChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the TextChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the ForeColorChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the CharacterCasingChanged event. - - The TextBox control that sends the event. - The event data. - - - - Raises the BackColorChanged event. - - The TextBox control that sends the event. - The event data. - - - - Gets the design-time action lists supported by the component associated with the designer. - - - - The design-time action lists supported by the component associated with the designer. - - - - - Gets the selection rules that indicate the movement capabilities of a component. - - - - A bitwise combination of values. - - - - - Glyph for representation. - - - - - Initializes a new instance of the class. - - The bounds. - The cursor. - The related component. - The designer. - - - - Indicates whether a mouse click at the specified point should be handled by the . - - A point to hit test. - - A if the is associated with ; otherwise, null. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - TextBoxExt - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Specifies the style with which some controls will appear and behave. - - - Every control that incorporates these styles will define the styles differently, - so take a look at the individual control for more information. - - - - - Classic appearance. - - - - - Office XP-like appearance. - - - - - Office 2003-like appearance. - - - - - Visual Studio 2005-like appearance. - - - - - Office 2007-like appearance. - - - - - Office 2007 Outlook-like appearance. - - - - - Office 2010-like appearance. - - - - - Visual Studio 2010-like appearance. - - - - - Metro-like appearance. - - - - - Office2016 Colorful - - - - - Office2016 White - - - - - Office2016 Black - - - - - Office2016 DarkGray - - - - - Provides static properties to access the colors used by different components in the XPMenus framework. - - - - The primary objective of this class is to let you specify custom colors for the different - regions of the XPMenus components. When no colors are provided, this class returns the default - colors usually synthesized from the System Colors. If you have to reset a property that you set before, - simply set it to be Color.Empty; the next time the property is queried, it will return the default color. - - - If you are a consumer of the colors in this class, then note that the colors returned - by properties in this class need to be reinitialized when the system color changes. - This class doesn't listen to the system color change event, instead it expects the consumer to notify it - when the system color changes. To avoid redundant updates by multiple consumers, a unique notification pattern - is recommended. - - - To notify system color changes, you should listen to the - event and call the method. The SysColorsChanged method will let you specify whether to - update the colors immediately or later with a call to . You should - choose to update immediately if you will use the new colors to update certain properties in your control (Backcolor, for example). - On the other hand, if you use the colors within and only within your Paint event, then update the colors later in - the beginning of your Paint method with a call to UpdateMenuColors. Note that the - UpdateMenuColors method will actually update the colors only if necessary, letting you call it multiple times - without performance hit. - - - There is also a event that gets fired whenever colors - are updated, either due to change in System Colors (notified using the above pattern) or when a custom color is set on any of the properties. - - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - Initializes the default colors. - - - - - Call this method to indicate that the system colors have changed. - - Indicates whether to update colors immediately or later with a call to . - - Take a look at the MenuColors class reference for the recommended system color change notification pattern. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Gets / sets the selected color for a menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected text color for an item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a drop-down menu. - - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the color for the left aligned strip in a drop-down menu where images and check boxes are shown. - - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected-pressed color for a menu item in a toolbar. - - The default value is derived from a System Color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the selected color for a checked menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color for a selected menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color for a drop-down menu. - - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for a toolbar / commandbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for the main-menu bar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color for the Status Bar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the Caption background color for a floating toolbar / commandbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the Backcolor for the expanded, - left-aligned menu strip region. This is the region you see when a partial menu - gets expanded to show all the menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the alpha-blend factor to use to shade the inactive menu item's icons. (255 for no alpha-blending; 0 will completely hide the item) - - A value in the range 1 to 255; -1 will reset to default value. Default is 175. - - 255 will draw the icon without any alpha blending; 1 will almost hide the icons. This setting will be ignored when XPThemes is turned on. - - - - - Gets / sets the text color base for the text in the disabled menu items. - - The default value is derived from a system color. - - When you specify a custom color, ControlPaint.LightLight will be applied on it before using that color. - - - - - Gets / sets the text color base for the text in the disabled toolbar items. - - The default value is derived from a system color. - - - - Gets / sets the text color of the menu and toolbar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color, the next time it is queried. - - - - - Gets / sets the active text color of the menu and toolbar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - Initializes the default colors. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Initializes default colors based on SystemColors. - - - Calling this will not affect the custom colors set using the properties. - - - - - - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the light color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets color of the separator BarItem. - - - - - Gets or sets light color of the DockBar. - - - - - Gets or sets dark color of the DockBar. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - - - - - - Call this method to indicate that the system colors have changed. - - Indicates whether to update colors immediately or later with a call to . - - Follow the same system color change notification pattern as explained in the class reference. - - - - - Fired when the colors have changed either because of change in system colors or - when a custom color is specified using one of the properties. - - - Take a look at the class reference for this class for information on how to notify - this class regarding system color changes. - - - - - Gets / sets the selected color for a menu item in a drop-down menu. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the pressed-selected color for a menu item in a toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a selected check box in the drop-down menu margin or a checked item in the toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the background color of a check box in the drop-down menu margin or a checked item in the toolbar. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color of a menu item selection in the drop-down menus and toolbars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the border color of a drop-down menu. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the left-gradient color of the drop-down menu margin. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the right-gradient color of the drop-down menu margin. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the left-gradient color of the drop-down menu margin of the expanded menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the right-gradient color of the drop-down menu margin of the expanded menu items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the right-gradient color of docked bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the left-gradient color of docked bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the color of the gripper. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient border color of bars. - - - - - Gets or sets the dark-gradient border color of bars. - - - - - Gets or sets the light-gradient color of menu item for hot-tracking. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of menu item for hot-tracking. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of quick customize button when it is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of quick customize button when it is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the caption background color of floating bars. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the color for the floating command bar item which is pressed. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of quick customize dropdown button. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of quick customize dropdown button. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient highlight color of groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient highlight color of groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient highlight color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient highlight color of selected groupBarItem. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the light-gradient color of groupBar header. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets or sets the dark-gradient color of groupBar header. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Gets / sets the color of the text in a GroupBar item. - - - - - Gets / sets the highlight color to be used for the selected text of the GroupBar item. - - - - - Gets / sets the color of the separator line between the bar items. - - The default value is derived from a system color. - - Setting this property to Color.Empty will actually reset the previous set color and - make this property return the default color the next time it is queried. - - - - - Initializes colors based on Windows XP color scheme. - - - - - Used for drawing the tabControlAdv tabPanel background. - - - - - Used for drawing the active tabPage. - - - - - Used for drawing the active tabPage. - - - - - Used for drawing the inactive tabPage. - - - - - Used for drawing the inactive tabPage. - - - - - Used for drawing the highlighted tabPage. - - - - - Used for drawing the highlighted tabPage. - - - - - Used for drawing the borders of tabPages. - - - - - Used for drawing the borders of tabPages. - - - - - Used for drawing the borders of tabPages. - - - - - Provides colors for Office2007 visual style. - - - - - Colors for blue colorscheme of the Office2007 visual style. - - - - - Colors for silver colorscheme of the Office2007 visual style. - - - - - Colors for black colorscheme of the Office2007 visual style. - - - - - - - - - - Default colorscheme for office2007 visual style. - - - - - Base color for managed scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for Office2007 visual style. - - - - - Gets or sets default colorscheme for office2007 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the dark color for highlighted item of the menu. - - - - - Gets or sets the light color for highlighted item of the menu. - - - - - Gets or sets the border color for highlighted item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the separator color for column of the menu. - - - - - Gets or sets the light color for arrow of the menu item. - - - - - Gets or sets the dark color for arrow of the menu item. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the background color for check mark of the menu. - - - - - Gets or sets the color for border check mark of the menu. - - - - - Gets or sets the border color for TextBox item of the menu. - - - - - Gets or sets the background color for TextBox item of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the light color for highlighted ComboButton of the menu. - - - - - Gets or sets the dark color for highlighted ComboButton of the menu. - - - - - Gets or sets the color for arrow ComboButton of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets background color of the DockBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets border color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed close button of the floating CommandBar. - - - - - Gets or sets color for pressed close button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Gets or sets color for separator line of the CommandBar. - - - - - Gets or sets color for pressed border of the BarItem. - - - - - Gets or sets color for highlighted border of the BarItem. - - - - - Gets or sets light color for background of the BarItem. - - - - - Gets or sets dark color for background of the BarItem. - - - - - Gets or sets light color for background of the DropDownBarItem. - - - - - Gets or sets dark color for background of the DropDownBarItem. - - - - - Gets or sets color for border of the DropDownBarItem. - - - - - Gets or sets light color for background of the checked BarItem. - - - - - Gets or sets dark color for background of the checked BarItem. - - - - - Gets or sets color for border of the checked BarItem. - - - - - Gets or sets color for flash of the checked BarItem. - - - - - Gets or sets color for flash of the pressed BarItem. - - - - - Gets or sets color for flash of the selected BarItem. - - - - - Gets or sets back color for the TextBoxBarItem. - - - - - Gets or sets color for border of the TextBoxBarItem. - - - - - Gets or sets color for border of the highlight TextBoxBarItem. - - - - - Gets or sets light color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the highlighted ComboBoxBarItem. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the arrow start color for UpDownButtons. - - - - - Gets the arrow end color for UpDownButtons. - - - - - Gets the border color for UpDownButtons in normal state. - - - - - Gets the background color for UpDownButtons in normal state. - - - - - Gets the background start color for UpDownButtons in normal state. - - - - - Gets the background end color for UpDownButtons in normal state. - - - - - Gets the border color for UpDownButtons in hot state. - - - - - Gets the inner border start color for UpDownButtons in hot state. - - - - - Gets the inner border end color for UpDownButtons in hot state. - - - - - Gets the border color for UpDownButtons in pressed state. - - - - - Gets the inner border start color for UpDownButtons in pressed state. - - - - - Gets the inner border end color for UpDownButtons in pressed state. - - - - - Gets the background start color for UpDownButtons in disabled state. - - - - - Gets the background end color for UpDownButtons in disabled state. - - - - - Gets the border color for UpDownButtons in disabled state. - - - - - Gets the background top start color for UpDownButtons in hot state. - - - - - Gets the background top end color for UpDownButtons in hot state. - - - - - Gets the background bottom start color for UpDownButtons in hot state. - - - - - Gets the background bottom end color for UpDownButtons in hot state. - - - - - Gets the background top start color for UpDownButtons in pressed state. - - - - - Gets the background top end color for UpDownButtons in pressed state. - - - - - Gets the background bottom start color for UpDownButtons in pressed state. - - - - - Gets the background bottom end color for UpDownButtons in pressed state. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Provides colors for blue colorscheme of the Office2007 visual style. - - - - - Initialize colors for Blue colorscheme of the Office2007 visual style. - - - - - Provides colors for silver colorscheme of the Office2007 visual style. - - - - - Initialize colors for Silver colorscheme of the Office2007 visual style. - - - - - Provides colors for black colorscheme of the Office2007 visual style. - - - - - Initialize colors for Black colorscheme of the Office2007 visual style. - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the color for check mark border of the menu. - - - - - Gets or sets the color for selected check mark border of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets light color for CombobBox button. - - - - - Gets or sets dark color for CombobBox button. - - - - - Gets a value indicating whether themed colors are used. - - true if themed colors are used, false otherwise. - - - - gets/sets color of right auto hide panel. - - - - - Gets/sets color of left AH panel. - - - - - Gets or sets the color of the panel. - - - - - Gets or sets the color of the border. - - - - - Gets or sets the color of the inner border. - - - - - Gets or sets the color of the tab item. - - - - - Gets or sets the color for border of the DropDownBarItem. - - - - - Gets or sets the light color of the DropDownBarItem. - - - - - Gets or sets the dark color of the DropDownBarItem. - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the color for border selected item of the menu. - - - - - Gets or sets the color for selected item of the menu. - - - - - Gets or sets the color for column of the menu. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the color for selected check mark of the menu. - - - - - Gets or sets the color for check mark border of the menu. - - - - - Gets or sets the color for selected check mark border of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets border color of the BarItem. - - - - - Gets or sets border color of the pressed BarItem. - - - - - Gets or sets border color of the checked BarItem. - - - - - Gets or sets light color of the checked BarItem. - - - - - Gets or sets dark color of the checked BarItem. - - - - - Gets or sets light color of the BarItem. - - - - - Gets or sets dark color of the BarItem. - - - - - Gets or sets light color of the pressed BarItem. - - - - - Gets or sets dark color of the pressed BarItem. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets light color for CombobBox button. - - - - - Gets or sets dark color for CombobBox button. - - - - - Provides colors for blue colorscheme of the Office2010 visual style. - - - - - Provides colors for Office2010 visual style. - - - - - Colors for blue colorscheme of the Office2010 visual style. - - - - - Colors for silver colorscheme of the Office2010 visual style. - - - - - Colors for black colorscheme of the Office2010 visual style. - - - - - - - - - - Default colorscheme for office2010 visual style. - - - - - Base color for managed scheme. - - - - - Gets color table for Office2010 visual style. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Office2010 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for Office2010 visual style. - - - - - Gets or sets default colorscheme for office2010 visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets the color for border of the menu. - - - - - Gets or sets the color for separator of the menu. - - - - - Gets or sets the dark color for highlighted item of the menu. - - - - - Gets or sets the light color for highlighted item of the menu. - - - - - Gets or sets the border color for highlighted item of the menu. - - - - - Gets or sets the dark color for column of the menu. - - - - - Gets or sets the separator color for column of the menu. - - - - - Gets or sets the light color for arrow of the menu item. - - - - - Gets or sets the dark color for arrow of the menu item. - - - - - Gets or sets the color for check mark of the menu. - - - - - Gets or sets the background color for check mark of the menu. - - - - - Gets or sets the color for border check mark of the menu. - - - - - Gets or sets the border color for TextBox item of the menu. - - - - - Gets or sets the background color for TextBox item of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the color for ComboButton of the menu. - - - - - Gets or sets the light color for highlighted ComboButton of the menu. - - - - - Gets or sets the dark color for highlighted ComboButton of the menu. - - - - - Gets or sets the color for arrow ComboButton of the menu. - - - - - Gets or sets the background color of the menu. - - - - - Gets or sets light color for dropdown button of the CommandBar. - - - - - Gets or sets dark color for dropdown button of the CommandBar. - - - - - Gets or sets dark color of the CommandBar. - - - - - Gets or sets light color of the CommandBar. - - - - - Gets or sets color for border of the CommandBar. - - - - - Gets or sets background color of the DockBar. - - - - - Gets or sets light color for highlight dropdown button of the CommandBar. - - - - - Gets or sets dark color for highlight dropdown button of the CommandBar. - - - - - Gets or sets light color for pressed dropdown button of the CommandBar. - - - - - Gets or sets dark color for pressed dropdown button of the CommandBar. - - - - - Gets or sets color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets border color for highlighted dropdown button of the floating CommandBar. - - - - - Gets or sets color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed dropdown button of the floating CommandBar. - - - - - Gets or sets border color for pressed close button of the floating CommandBar. - - - - - Gets or sets color for pressed close button of the floating CommandBar. - - - - - Gets or sets light color of the floating CommandBar. - - - - - Gets or sets dark color of the floating CommandBar. - - - - - Gets or sets color for light border of the floating CommandBar. - - - - - Gets or sets background color of the floating CommandBar. - - - - - Gets or sets color for border of the floating CommandBar. - - - - - Gets or sets color for caption text of the floating CommandBar. - - - - - Gets or sets color for separator line of the CommandBar. - - - - - Gets or sets color for pressed border of the BarItem. - - - - - Gets or sets color for highlighted border of the BarItem. - - - - - Gets or sets light color for background of the BarItem. - - - - - Gets or sets dark color for background of the BarItem. - - - - - Gets or sets light color for background of the DropDownBarItem. - - - - - Gets or sets dark color for background of the DropDownBarItem. - - - - - Gets or sets color for border of the DropDownBarItem. - - - - - Gets or sets light color for background of the checked BarItem. - - - - - Gets or sets dark color for background of the checked BarItem. - - - - - Gets or sets color for border of the checked BarItem. - - - - - Gets or sets color for flash of the checked BarItem. - - - - - Gets or sets color for flash of the pressed BarItem. - - - - - Gets or sets color for flash of the selected BarItem. - - - - - Gets or sets back color for the TextBoxBarItem. - - - - - Gets or sets color for border of the TextBoxBarItem. - - - - - Gets or sets color for border of the highlight TextBoxBarItem. - - - - - Gets or sets light color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets light color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets dark color for ComboButton of the highlighted ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the pressed ComboBoxBarItem. - - - - - Gets or sets border color for ComboButton of the highlighted ComboBoxBarItem. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets the arrow start color for UpDownButtons. - - - - - Gets the arrow end color for UpDownButtons. - - - - - Gets the border color for UpDownButtons in normal state. - - - - - Gets the background color for UpDownButtons in normal state. - - - - - Gets the background start color for UpDownButtons in normal state. - - - - - Gets the background end color for UpDownButtons in normal state. - - - - - Gets the border color for UpDownButtons in hot state. - - - - - Gets the inner border start color for UpDownButtons in hot state. - - - - - Gets the inner border end color for UpDownButtons in hot state. - - - - - Gets the border color for UpDownButtons in pressed state. - - - - - Gets the inner border start color for UpDownButtons in pressed state. - - - - - Gets the inner border end color for UpDownButtons in pressed state. - - - - - Gets the background start color for UpDownButtons in disabled state. - - - - - Gets the background end color for UpDownButtons in disabled state. - - - - - Gets the border color for UpDownButtons in disabled state. - - - - - Gets the background top start color for UpDownButtons in hot state. - - - - - Gets the background top end color for UpDownButtons in hot state. - - - - - Gets the background bottom start color for UpDownButtons in hot state. - - - - - Gets the background bottom end color for UpDownButtons in hot state. - - - - - Gets the background top start color for UpDownButtons in pressed state. - - - - - Gets the background top end color for UpDownButtons in pressed state. - - - - - Gets the background bottom start color for UpDownButtons in pressed state. - - - - - Gets the background bottom end color for UpDownButtons in pressed state. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Initialize colors for Blue colorscheme of the Office2010 visual style. - - - - - Provides colors for silver colorscheme of the Office2010 visual style. - - - - - Initialize colors for Silver colorscheme of the Office2010 visual style. - - - - - Provides colors for black colorscheme of the Office2010 visual style. - - - - - Initialize colors for Black colorscheme of the Office2010 visual style. - - - - - Colors for silver colorscheme of the metro visual style. - - - - - Colors for black colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - /// - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - Colors for blue colorscheme of the metro visual style. - - - - - - - Base color for managed scheme. - - - - - Gets color table for Metro Color. - - - - - Applies colors for managed scheme. - - Container form. - Base color for the managed theme. - - - - - - - - - - - Initialize colors general for all colorscheme of the Metro visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets default colors for metro visual style. - - - - - Gets or sets default colorscheme for metro visual style. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Arguments class for event. - - - - - Initializes instance. - - Container form. - Base color for the managed theme. - - - - Container form. - - - - - Base color for the managed theme. - - - - - Provides colors for Magenta colorscheme of the Metro visual style. - - - - - Initialize colors for Magenta colorscheme of the Metro visual style. - - - - - Provides colors for Orange colorscheme of the Metro visual style. - - - - - Initialize colors for Blue colorscheme of the Metro visual style. - - - - - Provides colors for Teal colorscheme of the Metro visual style. - - - - - Initialize colors for Teal colorscheme of the Metro visual style. - - - - - Provides colors for Brown colorscheme of the Metro visual style. - - - - - Initialize colors for Brown colorscheme of the Metro visual style. - - - - - Provides colors for Lime colorscheme of the Metro visual style. - - - - - Initialize colors for Lime colorscheme of the Metro visual style. - - - - - Provides colors for Purple colorscheme of the Metro visual style. - - - - - Initialize colors for Purple colorscheme of the Metro visual style. - - - - - Provides colors for Pink colorscheme of the Metro visual style. - - - - - Initialize colors for Pink colorscheme of the Metro visual style. - - - - - Provides colors for Blue colorscheme of the Metro visual style. - - - - - Initialize colors for Blue colorscheme of the Metro visual style. - - - - - Provides colors for Red colorscheme of the Metro visual style. - - - - - Initialize colors for Red colorscheme of the Metro visual style. - - - - - Provides colors for Green colorscheme of the Metro visual style. - - - - - Initialize colors for Green colorscheme of the Metro visual style. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Specifies that this object supports . - - - - - Enables rendering with . - - - - - Specifies to use. - - - - - Draws a themed button. - - - - - Value for reduce ClientRectangle. - - - - - Value for shift image rectangle. - - - - - Image for draw foreground. - - - - - Indicate wether the image for button - is stretched or shrunk to fit the size of the button. - - - - - Indicates whether mouse positionin is over control. - - - - - - - - Initializes a new object. - - - - - Draws the text. - - The graphics object. - - - - Draws the button themed. - - Graphics object. - The button state. - The checked state. - - - - Draws the button without themes. - - Graphics object. - The button state. - The checked state. - - - - Draws the styled button without themes. - - Graphics object. - The button state. - The checked state. - - - - Gets or sets image for draw foreground. - - - - - Indicates whether mouse positionin is over control. - - - - - Indicate wether the image for button - is stretched or shrunk to fit the size of the button. - - - - - Occurs when is changed. - - - - - Occurs when is changed. - - - - - Gets / sets the flatcolor of the themed button. - - - - - Gets or sets the visual style of the themed button. - - - - - Indicates the Office2007 theme used for drawing the control. - - - - - Indicates the Office2010 theme used for drawing the control. - - - - - Indicates whether to draw the button text. - - - - - Gets / sets the text alignment. - - - - - Gets / sets the checked state. - - - - - Gets / sets the default button state. - - - - - Draws a themed check button. - - - - - MetroColor - - - - - Disposes all resources. - - - - - - Initializes a new object. - - - - - - - - - - - Indicates the checked state of the button. - - - - - Gets or setsthe metrocolor. - - - - Cached version of themed controls instances. Class will - return NULL instead of instance if OS does not support XP Themes. - - - Thread synchronization object. Used for instance clear and create - operations locks. - - - Edit control. - - - Button control. - - - Tree control. - - - Reset static class cache. All internal static resources will be released. - Operation is thread safe. - - - - - - - - - - - - - Specifies the theme size type requested using . - - - - - Requesting the minimum size. - - - - - Requesting the size of the theme part that will best fit the available space. - - - - - Requesting the size that the theme manager uses to draw a part. - - - - - Draws a themed scroll button. - - - - - Initializes a new object. - - - - - Disposes all resources being used. - - - - - - - - - - - - Returns the color for paint control background. - - - - - - - Gets / sets the type of scroll arrow. - - - - - Implement this interface to support skins across the Grid. Exposes some themed drawing methods. - - - - - Draws the Header skins. - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Header style color of Grid - - Header color - hover color - pressed color - true - - - - header style text color - - Normal text color - hover text color - pressed text color - true - - - - Gets the current VisualStyles. - - - - - Implements the Metro look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Header style color of Grid - - Header color - hover color - pressed color - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies Whether the button is Intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the skin collection for ofice2016 theme(Black, White, DarkGray and Colorful). - - - - - Initialize a new instance of class. - - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Intialize the skin collection based on the grid visual styles. - - - - - Describes the Office2016 theme colors. - - - - - Implement the SkinCollection for GridMetroColors - - - - - Collecction initialize - - - - - get / set Header color collection - - - - - get / set Header text color collection - - - - - get /set grop drop area color - - - - - get / set sort icon color collection - - - - - get / set collection of check box color - - - - - get/ set combo box color collection - - - - - get / set spin button color collection - - - - - get /set push button color collection - - - - - get or set radio button color collection - - - - - gets or sets header botom border color - - - - - Gets/Sets the header botom border weight. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 Colorful theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 Black theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 White theme. - - - - - Initialize a new instance of the class. - - - - - Represents a class that holds the default colors for the Office 2016 DarkGray theme. - - - - - Initialize a new instance of the class. - - - - - Specifies the weight of a header bottom border class. - None option is used to Show / hide the bottom border. - - - - - A line with 0.25 point. - - - - - A line with 0.5 point. - - - - - A line with 1 point. - - - - - A line with 1.5 points. - - - - - A line with 2.0 points. - - - - - A line with 3.0 points. - - - - - This hide the header bottom border. - - - - - Collectionn of Header color - - - - - Get / set the Header Color in normal mode - - - - - Get / set the Header Color in mouse Hover - - - - - Get / set the header Color in mouse pressed - - - - - Collection of Header text color - - - - - grt /set normal header text color - - - - - get / set hover text color of header - - - - - get /set header pressed color - - - - - Collection of sort icon color - - - - - Get / set the sort icon Color in normal - - - - - Get / set the sort icon Color in hover - - - - - Collection of Check box Color - - - - - Get / set the border color of checkbox - - - - - Get / set the back color of check box - - - - - Get / set the check marker color - - - - - Collection of GridCombobox color - - - - - Get / set the combobox - - - - - Get / set the combobox NormalBorderColor - - - - - Get / set the hoverBackColor - - - - - Get / set the HoverBorderColor - - - - - Get / set the pressedBackColor - - - - - Get / set the presedBorderColor - - - - - Collection of Grid spin button colors - - - - - Get / set spin button normal back color - - - - - Get / set spin button normal border color - - - - - Get / set spin button hover back color - - - - - Get / set spin button hover border color - - - - - Get / set spin button pressed back color - - - - - Get / set spin button pressed border color - - - - - Collection of grid push button colors - - - - - Get / set normal push button color - - - - - Get / set bush button hover color - - - - - Get / set push button back color - - - - - Collection of radio button color - - - - - Get / set radio button color - - - - - Get / set radio button checked color - - - - - collection of Group drop area color - - - - - Get / set group srop area back color - - - - - Get / set grid gropu drop are border top color - - - - - Get / set group drop area border left color - - - - - Implements the Office 2010 look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the Header Border styles. - - The bottom border color of header. - The bottom border weight. - returns the weight and color of bottom border. - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Header style color of Grid - - Header color - hover color - pressed color - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the Office 2007 Blue look and feel. - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyles. - - - - - Implements the Office 2007 Black look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current visual style. - - - - - Implements the Office 2007 Silver look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is in intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current visual style. - - - - - Implements the Office 2003 look and feel - - - - - Creates a new instance of class. - - The current visual style. - - - - Dispose the resources being used. - - - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyle. - - - - - Implements the SystemTheme for grid components. - - - - - Disposes all resources being used. - - - - - - Creates a new instance of class. - - The current visual style. - - - - Draws the header skins - - A object. - A object that represents the drawing area. - The current state of the header. - - - - Returns the Header Border Colors. - - The bottom border color - The right border color - The gradient start color for the header interior - The gradient end color for the header interior - - - - - Returns the SortIcon interior - - The brush used to fill the sort icon - The pen used to draw the sort icon - - - - - Returns the backcolor and header interior for GroupDropArea. - - The back color for GroupDropArea - The top border color for GroupDropArea header - The left border color for GroupDropArea header - - - - - Draws the PushButton skins - - A object. - A object that represents the drawing area. - The current state of the button. - - - - Draws the ComboBox skins - - A object. - A object that represents the drawing area. - The current state of the combo button. - - - - Draws the SpinButton skins - - A object. - A object that represents the drawing area. - An integer that represents the type of the button. - The current state of the spin button. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - - - - Draws the CheckBox skins - - A object. - A object that represents the drawing area. - The current state of the checkbox - Specifies whether the button is tri-stated. - Specifies whether the button is intermediate state - - - - Draws the RadioButton skins - - A object. - A object that represents the drawing area. - The current state of the radio button - - - - Gets the current VisualStyle. - - - - - Specifies the VisualStyle with which various components across the grid will appear and behave. - - - - - Represents the colors for Office2003 style. - Provides static members to access the colors used by different grid elements. - - - - - Represents the colors for Office2007 style. - Provides static members to access the colors used by different grid elements. - - - - - Gets an array of colors used for Office2007Blue style. - - - - - Gets an array of colors used to represent Hot State color. - - - - - Gets an array of colors used to represent Pressed State color. - - - - - Represents the colors for Office2010style. - Provides static members to access the colors used by different grid elements. - - - - - Gets an array of colors used to represent Hot State color. - - - - - Gets an array of colors used to represent Pressed State color. - - - - - Specifies the VisualStyle with which various components across the grid will appear and behave. - - - - - Provides some information regarding themes support and state in the OS. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Used to unwire the ThemeChangeListenerForm class. - - - - - - - - Returns the theme file name with the path. - - - - - Returns the current theme color scheme name. - - - - - Indicates whether the default blue theme is on. - - - - - Indicates whether the Olive Green theme is on. - - - - - Indicates whether the Silver theme is on. - - - - - Indicates whether this OS has themes support built-in. - - True if themes are supported; False otherwise. - This property returns True for Windows XP and later versions. - - - - Indicates whether themes are enabled in the current OS. - - - - - Indicates whether the current application is themed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Class for automatic subscription management of event. - - - - - Initializes a new instance of the class. - - The target. - - - - Handles theme change. - - The sender. - The instance containing the event data. - - - - Gets or sets the object (the target) referenced by the current object. - - - null if the object referenced by the current object has been garbage collected; otherwise, a reference to the object referenced by the current object. - - - The reference to the target object is invalid. This exception can be thrown while setting this property if the value is a null reference or if the object has been finalized during the set operation. - - - - - Specifies the information required by the class to enable auto appending - in a control. - - - Take a look at for a usage example. - - - - - - Creates a new instance of this class and initializes it with these values. - - Indicates whether to turn on AutoAppend; False if not. - The Category to which the contents in this control belong to. - The reference to an IList which will get the new items entered by the user. - The maximum number of items in the list. - - - - Indicates whether to turn on AutoAppend. - - True to turn on auto appending; False to turn off. - - Take a look at for a usage example. - - - - - Gets / sets the Category Name to which the contents of the list belong to. - - The category name. - - Take a look at for a usage example. - - - - - Gets / sets the IList into which new entries will be appended. - - A reference to an IList instance. - - Take a look at for a usage example. - - - - - Gets / sets the desired maximum number of items in the list. - - The maximum count. - If the count exceeds the maximum count, then AutoAppend will keep - discarding the older entries. - Take a look at for a usage example. - - - - - The AutoAppend class provides choice-list auto-append capabilities for editable combo boxes, etc. - - - - Often editable combo boxes in your applications can benefit from reusing - previously user supplied entries in their choice-list, as in IE's address bar combo box and - in the "Find" combo box in VS.NET. - - - The AutoAppend class will easily enable this functionality in an associated combo box. - In fact, this class is more abstract in that - it can take any control and an IList reference and enable "AutoAppend" logic on - them as described below. - - - Associate your control with this class through the structure. - The structure will let you associate a control with an IList - reference and a Category string to an AutoAppend instance. - - Once you set up this association, the AutoAppend instance listens to the Validated event - thrown by the control - and inserts the new entry on top of the supplied IList or if - already in the list, moves the entry to top of the list. When the control gets disposed, - it persists these entries in the registry in a key based on the corresponding Category string. - The next time the control is created and associated, the AutoAppend instance will pick up - the persisted information corresponding to the Category and apply that information - to the IList instance. - - - Persistance is done in the registry under the HKLU key making the entries specific to the - user and global to the machine (usable across applications). Due to the previous behavior, - the very first instantiation of the above control will set the control's text and the IList - to be empty. - - Note: Also make sure your control's Dispose() gets called before the ApplicationExit event - thrown by the Application object. Otherwise, the control's state will not be persisted. This - would normally be the case, unless the control gets "orphaned" (detached from the parent control) and the - Dispose method never gets called until it is garbage collected. - - You can make any number of associations with one AutoAppend instance. - - - This is how you would associate a combo box with an instance of the AutoAppend class: - - this.autoAppend = new AutoAppend(); - this.autoAppend.SetAutoAppend(this.comboBox1, new AutoAppendInfo(true, "HttpAddress", this.comboBox1.Items, 30)); - // To disassociate call this: - this.autoAppend.SetAutoAppend(this.comboBox1, new AutoAppendInfo(false, String.Empty, null, 30)); - - - Me.autoAppend = New AutoAppend() - Me.autoAppend.SetAutoAppend(Me.comboBox1, New AutoAppendInfo(True, "HttpAddress", Me.comboBox1.Items, 30)) - ' To disassociate call this: - Me.autoAppend.SetAutoAppend(Me.comboBox1, New AutoAppendInfo(False, [String].Empty, Nothing, 30)) - - - - - - Creates a new instance of the AutoAppend class. - - - - - This member overrides Object.Finalize. - - - - - Releases all setup associations. - - - This will also persist the exisiting information before releasing the associations. - - - - - Override this to release the unmanaged resources used by the control and optionally releases the managed resources. - - True to release both managed and unmanaged resources; False to release only unmanaged resources. - - - - Returns the AutoAppendInfo associated with a control. - - The control whose AutoAppend info is required. - The corresponding AutoAppendInfo value. If this control is not associated - yet, then an AutoAppendInfo with its AutoAppend value set to False will be returned. - - - - Associates a control with this instance by providing its AutoAppendInfo. - - The control in which to AutoAppend. - The AutoAppendInfo. - - Calling this will enable behavior in the control. Take a look at the AutoAppend - class reference for detailed information on this behavior. - To disassociate a control from the AutoAppend instance, call this method with the - AutoAppendInfo's AutoAppend value set to False. - - - - - Forces an entry into the control's AutoAppend list. - - The control whose AutoAppend list is to be updated. - The value that is to be appended to the list. - - The AutoAppend instance automatically inserts entries into the list when the user - enters a new value and leaves the control (when Validated will be fired). - However, you might want new entries to be added when, for example, the user hits - the Enter key. You do so by calling this method with the new value which will - insert the new value into the list. - - - - - Provides data for a cancelable mouse event. - - - - - Initializes a new with data from a . - - The data for this event. - - - - - - - The data for this event. - - - - - Handles a cancelable mouse event. - - - - - An advanced combo box control. - - - - This advanced combo box control provides a lot of improvements over the standard - control. The improvements are as follows: - - - Plug in any derived class as the list for the list portion of the combo box - using the property. - - - Provides a mode for regular, flat or themed drawing. - - - Written using native .NET controls, this control lets you customize everything in the combo box from the textbox to the drop-down window. - - - - - This control requires the plugged in ListControl to implement the Items property returning - a valid instance. The ListControl can - optionally implement an IndexFromPoint method that will take a single argument of type and - a TopIndex property of type int. The semantics of these above properties and methods are similar to - that of a 's implementation. - - Implementing IndexFromPoint and TopIndex will enable QuickSelection capability for the combo box, wherein - the user can click on the drop-down button and start selecting items in the list, all this - without releasing the mouse. - - - - - - Default windows message for gesture support. - - - - - Default windows message for Mouse captured. - - - - - Default size of the control - - - - - User Size changed - - - - - Default font style of the control - - - - - Font which stored after changed in design - - - - - Indicates whether to perform case sensitive search. - - - - - The width of the drop-down button. - - - - - Collects the boolean value if Control is selected by Touch or Mouse control. - - - - - Indicates whether theme BackColor is painted or ignored and BackColor of control is painted. - - - - - Cached BackColor of ComboBox. - - - - - Indicates whether to suppress the DropDown Event - - - - - Used to draw office 2007 scroller. - - - - - Used to draw office 2007 backcolors in ActiveMode when DropDownList style set. - - - - - Used to draw metro backcolors in ActiveMode when DropDownList style set. - - - - - - Office 2007 color scheme. - - - - - Office 2010 color scheme. - - - - - Metro color scheme. - - - - - Variable to detect whether the event has been hooked. - - - - - Variable to detect whether the click event has been hooked. - - - - - Creates a new instance of the ComboDropDown class. - - - - - To show/display the touch keyboard - - - - - - To hide the touch keyboad. - - - - - Overridden. See . - - - - - - Called once to create a - that will host the drop-down list. - - A new instance of a . - - Override this method to provide a custom implementation of the PopupControlContainer. - - - - - - Called to initialize the drop-down container. - - - - This method is called once to initialize the drop-down container that hosts the - drop-down list. Use the property to get a reference to - the from inside an override of this method. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Called once to create a - for the editable text portion of the combo. - - A new instance of a . - - Override this method to provide a custom implementation of a text box. - - - - - - Called once to create a - for the drop-down button portion of the combo. - - A new instance of a . - - Override this method to provide a custom implementation of a DropDownButton. - - - - - - Called to initialize the used in the drop-down button portion of the combo. - - - - This method is called once to initialize the DropDownButton used to draw the - drop-down portion of the combo. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Called to initialize the used in the editable text portion. - - - - This method is called once to initialize the text box used to draw the - editable portion of the combo. Use the property to get a reference to - the text box from inside a override of this method. - - - Make sure to call the base class when you override this method for default initialization. - - - - - - - Releases all resources used by the control. - - - - - - Updates the attached 's parent-child relationship. - - - If in ComboBoxStyle.Simple mode, the base class implementation - parents the Popup Control to the combo itself. Otherwise, it parents the - to the Popup Control. - - - - - Resets the property to its default value. - - - - - - - - - - - - - - Resets the property's value to its default. - - - - - Indicates whether the property's value is the default. - - True if the value is not the default; false otherwise. - - - - Get or Set of Skin Manager Interface - - - - - - - - Metrocolor. - - - - - Serialize metrocolor. - - - - - Resets the metrocolor. - - - - - - - - - - - - - - Updates the property based on the PopupControl's selected value. - - Indicates whether the event should be fired if the text is changed. - True if the event was fired; False otherwise. - You normally do not have to call this method. However when you - programmatically update the SelectedValue of a plug in the list control, - you might have to call this method to update the combo's text based on that new value. - - - - Indicates whether another change was made except text changing - in control. - - True if changes were detected; false otherwise. - - - - Raises the BorderSidesChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorderSidesChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OmBorderSidesChanged - in a derived class, be sure to call the base class's - OnBorderSidesChanged method so that registered - delegates receive the event. - - - - - Raises the Border3DStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBorder3DStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBorder3DStyleChanged - in a derived class, be sure to call the base class's - OnBorder3DStyleChanged method so that registered - delegates receive the event. - - - - - Raises the Drop-Down event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnDropDown method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDown - in a derived class, be sure to call the base class's - OnDropDown method so that registered - delegates receive the event. - - - - - Raises the SelectionChangeCommitted event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnSelectionChangeCommitted method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnSelectionChangeCommitted - in a derived class, be sure to call the base class's - OnSelectionChangeCommitted method so that registered - delegates receive the event. - - - - - Raises the event. - - - The event will be fired usually when - the user commits selection change. You could use this method to raise an event manually for a - custom scenario. - - - - - Raises the DropDownStyleChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see "Raising - an Event". The DropDownStyleChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDownStyleChanged - in a derived class, be sure to call the base class's - OnDropDownStyleChanged method so that registered - delegates receive the event. - - - - - Raises the ReadOnlyChanged event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see "Raising - an Event". The ReadOnlyChanged method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnReadOnlyChanged - in a derived class, be sure to call the base class's - OnReadOnlyChanged method so that registered - delegates receive the event. - - - - - Performs auto complete in the text area. - - The arguments of the KeyPress event. - - - - Check whether the ComboBox is ComboDropDown or ComboBoxAdv - - - - - Event will be triggered when TextBox lost its Focus - - - - - - - Event will be triggered while clicking on the TextBox control of the ComboBox. - - - - - - - - Verifies whether new text is allowed to be entered from native message. - - The message. - True if the message is handled. - - - - - - - - - - - - - - - - Forwards the key message to the attached . - - The message id. - The first message parameter. - The second message parameter. - - - - Called when the popup is closed. - - - - - Updates the attached popup control based on the current property. - - - Call this method to update the popup list box, for example, with the latest text - value that the user might have entered. This is useful when you enable auto completion - in the text area and force the list box's SelectedValue to be updated to the - latest text value in this control's Validated event. - - - - - Called before the popup gets dropped down. - - - - - Shows the drop-down. - - - - - Hides the drop-down list box. - - - - - - - - - - - - Forces laying out of the combo elements within the next Paint Message handler. - - True to force; False to prevent layout. - - - - Determines the heights of certain portions of this control. - - A object. - A reference variable through which to return the height for the text area. - - - Make sure to call the base class when you override this method. - - - This method expects you to return a height for the text area through the reference variable, - set the height of this control (if not in ComboBoxStyle.Simple mode) and the height - of the drop-down button (). - - - - - - Updates the internal textbox's bounds and visibility based on the . - - The height of the text area. - - - - Returns the width for the combo box drop-down button. - - The button width. - - - - Returns the width for the combo box drop-down button when office style is on. - - The button width. - - - - Updates the bounds of the drop-down button bounds. - - - Sets the bounds based on the value returned by the - method. - - - - - Updates the attached 's bounds. - - - The base class updates the PopupControl's bounds and visibility based on the - settings. - - - - - Overloaded. The bounds for the control that is associated with this popup when in DropDownStyle.Simple mode. - - The height of the combo control. - The bounds for the embedded control. - - - - The bounds for the control that is associated with this popup when in DropDownStyle.Simple mode. - - The bounds for the embedded control. - - - - - - - Called from the Paint event handler to draw the text portion. - - The from the Paint event. - - This method calls the method - to draw the edit portion only when in ComboBoxStyle.DropDownList mode - or when in design-mode. - - - - - Called from to draw the text area when in ComboBoxStyle.DropDownList mode. - - The from the Paint event. - The background color for the highlight. - The text color for the highlight. - Indicates whether to draw a focus rectangle. - - - - Called from the Paint event handler to draw the drop-down button. - - The from the Paint event. - - - - Called from the Paint event handler to draw the edit portion's border and background. - - The from the Paint event. - - This method calls the method with the appropriate - dimension to draw the border around the text portion. - - - - - Draws the border and background of the control. - - The context. - The within which to draw. - - - This method is used to draw the border around the text area (when called from - method) and around the list box area (when in - ComboBoxStyle.Simple mode and called from the method). - - This method uses themes to draw if necessary or calls and - to draw the background and border. - - - - - Draws the unthemed border of this control. - - The context. - The within which to draw. - - Called by to draw the border when - not in themes mode. - - - - - Serialize MetroBorderColor. - - - - - Reset the MetroBorderColor. - - - - - Draws the unthemed background of this control. - - The context. - The within which to draw. - - Called by to draw the background when - not in themes mode. - - - - - Called from the Paint event handler to draw the list portion. - - The from the Paint event. - - This method draws the list portion when in ComboBoxStyle.Simple mode. - - - - - Refreshes the BackColor of the control after changing 'IgnoreThemeBackground' property. - - Value of 'IgnoreThemeBackground' property. - - - - Creates new instance of the scrollersFrame. - - - - - Attaches scrollersFrame to the PopupControl. - - - - - Detaches scrollersFrame from the PopupControl. - - - - - Inits the scrollers frame. - - - - - - - - Processes mouse moves on the combo-box and textbox area. - - The event args of the MouseMove event. - Indicates whether this was called due to mouse move in the text area or combo. - - - - Gets the Isactive state - - - - - - - - - - - - - - Sends the specified message to the default windows procedure. - - - - - - - - - Moves the current selection in the attached . - - Indicates whether to move up. - - - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - Font chnaged - - - - - - - - - Fired when an IMe message is received. - - Event sender. - Event data. - - - - Gets a value indicating whether this instance is initializing. - - - - - Indicates whether to suppress the DropDown Event - - - - - Gets or sets a value indicating whether [use office2007 colors in active mode]. - - - true if [use office2007 colors in active mode]; otherwise, false. - - - - - Gets or sets a value indicating whether [use metro colors in active mode]. - - - true if [use metro colors in active mode]; otherwise, false. - - - - - - Indicates whether the search in autocomplete is case-sensitive. - - - - - Specifies whether the control is focused. (overridden property) - - - - - Gets or sets a value indicating whether control's elements are aligned to - support locales using right-to-left fonts. - - - - - This property defines the autocomplete behavior in DropDownList mode. - - This property is used when the DropDownStyle is set to DropDownList only. - - - - The that will be used in the drop-down portion. - - A derived instance. - - - - Gets or sets the back color. (overridden property) - - - - - Indicates whether users should be forced to enter numbers. - - True to force numbers; False otherwise. - - - - Indicates whether the text in the edit portion can be changed. - - If True, the edit portion is not editable by the user; False otherwise. - - - - Specifies the ComboBoxBase control modifies the case of characters as they are typed. - - - One of the enumeration values that specifies whether the ComboBoxBase control modifies the case of characters. The default is CharacterCasing.Normal. - - - - - Indicates whether the control will ignore the theme`s background color and draw the BackColor instead. - - - - - Gets or sets the alignment of text in this control. - - - One of the enumeration - values that specifies how text is aligned in the control. - The default is HorizontalAlignment.Left. - - - You can use this property to align the text within a ComboBoxBase - to match the layout of text on your form. For example, if your controls - are all located on the right side of the form, you can set the TextAlign - property to HorizontalAlignment.Right and the text will be aligned - along the right side of the control instead of the default left alignment. - - - - - Gets or sets the ContextMenu. (overridden property) - - - - - Gets or sets the ForeColor. (overridden property) - - - - - Gets or sets the 3D border style for the control. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the border sides for which you want the 3D border style applied. - - - This property is used only when BorderStyle is Fixed3D. - - - - - Gets or sets the flat style appearance of the combo box control. - - - One of the values. The default value is Standard. - - - - When you specify and the application is run - in Windows XP, themes will be used to draw this control. - - - Use and - to determine - if themes are on during run-time. - - - - - - Gets or sets an advanced appearance and behavior for this control. - - One of the values. - Default is VisualStyle.Default. - - When a non-default style is specified here, it will override the - other settings of the control such as and . - The is used to draw the borders for the office styles, when - the control is not active. - - The Office2003 style behaves the same as OfficeXP in non-XP systems. - - - - - - Indicates whether the combo box is displaying its drop-down portion. - - True if the drop-down portion is displayed; False otherwise. The default is False. - - - - Returns the used to host the drop-down list. - - - - - - - - Returns the used to draw the editable text portion of the combo. - - - - - Returns the used to draw the drop-down portion of the combo. - - - - - Gets or sets the height of the drop-down button. - - - - - Gets or sets the height of the edit portion. - - - - - Indicates whether the Height property of the control can be changed. - - True to prevent height change; False otherwise . - - Note that this property will be frequently set and reset within the control layout. - You can use this temporarily to force a particular height on the control. - - - - - Gets or sets the text associated with this control. - - - When in DropDownList mode, setting this property will also validate the - new value against the attached popup control. - - - - - Gets or sets the maximum number of characters allowed in the editable portion of a combo box. - - The maximum number of characters the user can enter. - Default value is 32767. - - - - Gets or sets the drop-down's width. - - - - The value provided here will be used to determine the width of the drop-down portion. - If you do not set a value explicitly, the width of this control will be used as the preferred width. - - To reset your settings on this property, call the method. - - - - - Gets or sets the style of the combo box. - - - One of the values. - The default is . - - - The DropDownStyle property controls the interface that is presented - to the user. You can enter a value that allows for a simple drop-down list box, - where the list always displays a drop-down list box, where the text portion is - not editable and you must select an arrow to view the drop-down, - or the default drop-down list box where the text portion is editable and the - user must press the arrow key to view the list. - - - - - Gets or sets the color with which the flat border should be drawn. - - - A color value. Default is SystemColors.ControlDark. - - - This is also the color used to draw the border when the - property is set to OfficeXP or Office2003. - - - - - Specifies the BackgroundImage.(overridden property) - - - - - Gets or sets background image layout. - - - - - Gets or sets a value indicating if quick selction on mouse move is on. - - - - - Gets or sets a value indicating to show the Gary BackColor on ReadOnly is set. - - - - - Gets or sets a value to have effect of BackColor - - - - - Gets or sets office 2007 color theme. - - - - - Gets or sets office 2010 color theme. - - - - - Gets or sets the metrocolor. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Office2010 visual style. - - - - - Update the renderer for Office2016 style. - - - - - Gets or sets a value indicating whether selection changing can be done using mouse wheel rotation. - - - true if seelction can be changed using mouse wheel; otherwise, false. - - - Instead of handling mouse wheel event and handling it, user can set this bool property as per the needs. - This property is used to work when the dropdown is not shown and changing selection through mouse wheel. - - - - - Fired when BorderSides are changed. - - - - - Occurs when border's 3D style is changed. - - - - - Occurs before the drop-down portion is shown. - - - - - Occurs when the user selects a new text for the combo in one of many possible ways. - - - This event will be fired for the following cases: - - - - When the user selects a new item in the list box by clicking or pressing Enter. - - - - - When the user Tabs out of the combo after changing the current text and Validation was successful. - - - - - - - - Occurs when the of the combo changes. - - - - - Occurs when the property of the combo changes. - - - - - - - - Check whether the ComboBox is ComboDropDown or ComboBoxAdv - - - - - Indicates whether the layout method needs to be called to layout the combo - elements. - - - Internal method. You will not have to call this property explicitly. - - - - - Gets or sets the BorderColor for metro style - - - - - Fired when the ThemesEnabled property changes. - - - - - Indicates whether themes are enabled for this control. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Indicating whether the control uses AutoComplete. - - - - - Creates a new instance of the ComboBoxBase class. - - - - Initializing this ComboBoxBase also requires you to set the - property of this combo box. - - - - - - Raises the DropDownCloseOnClick event. - - A that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnDropDownCloseOnClick method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnDropDownCloseOnClick - in a derived class, be sure to call the base class's - OnDropDownCloseOnClick method so that registered - delegates receive the event. - - - - - Fires event. - - - - - Returns the text representation of the specified item in PopUpControl. - - The index. - - - - Indicate whether ListControl contains item with such index. - - The index. - True - if there is such item, otherwise - false. - - - - Called to find a matching item in the attached given - the prefix of the item. - - The prefix string. - Indicates whether to change the selection in the list when a match occurs. - The index within each list item-string, where the search begins. - Indicates whether to ignore case. - The index of the matching item; -1 otherwise. - - - - Returns the interface representing the item's - collection of the attached . - - An IList interface. - - The base class version looks for the "Items" property in the attached ListControl. - - - - - Moves the current selection in the attached . - - Indicates whether to move up. - - - - Raises the Validating event. - - - - - Called to update selection before validate. - - - This is useful when you enable auto completion - in the text area and force the list box's SelectedValue to be updated to the - latest text value in this control's Validated event. - - - - - Called before the popup gets dropped down. - - - - - Sets the popup text. - - The value. - Compares the new PopUpText and resets if a match is not found. - - - - Handles the PopupCloseType of PopUpContainer based on SelectedIndex. - - - - - Indicates whether the attached ListControl has an "IndexFromPoint" - method. - - True if such a method is available; False otherwise. - - This control relies on the attached ListControl providing this method - to support quick-selection mode. This is the mode where the user can click on the - drop-down arrow and start selecting in the drop-down list even before mouse up. - - - - - Returns the index of the item at the specified point. - - A in screen coordinates. - The zero based index; -1 if the point is not over an item. - - - - Called when a new gets attached - to this ComboBoxBase using the property. - - - When you override this method, make sure to call the base class for proper initialization. - - - - - Called when an attached is being - detached from this combo. - - Indicates whether this method is called from Dispose. - - - - Called when the user clicks on the associated list box. - - The MouseEventArgs from the list box's MouseUp event. - - - - Processes the mouse move over the PopupControl. - - - - - Processes mouse move over the list. - - The control source of the MouseMove event. - The event args of the MouseMove event. - - This method moves the selection of the attached in some - cases when the mouse moves over it and also to change the Top Index of the list control appropriately - when QuickSelection is on. - - - - - Indicates whether the supplied text is a valid entry in the attached . - - The text to validate. - True if valid; False otherwise. - - - - Correct popup control location. - - - - - - - Gets or sets the that will be used in the drop-down portion. - - A derived instance. - - - Take a look at the class description for more information - on requirements and usage of this list control. - - - - - - This will be used in the drop-down portion. - - - - - Indicates whether the selection in the list control should be updated - with the new text entered by the user when the control loses focus. - - This property is typically used only when the list mode is set to editable (DropDown). - - - - Gets a value indicating whether the control uses AutoComplete. - - - - - Occurs when the user clicks in the list box in the drop-down to let you - cancel the subsequent drop-down close. - - - - - Occurs when the selected Index of list is about to be changed. - Can be canceled to avoid selection of the specific item. - - - - - Risen by method. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboBoxBase - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Handles a cancelable mouse-click event. - - - - - Provides data for a cancelable mouse click event. - - - - - Creates a new instance of the MouseClickCancelEventArgs. - - The point in screen coordinates where the click occurred. - True to cancel the event; False otherwise. - - - - Returns the point in screen coordinates where the click occurred. - - - - - - - - - - ComboDropDown Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - The ComboBoxExt type will soon be replaced with the ComboBoxBase for consistency in - control naming in our library. - Please replace all occurrences of ComboBoxExt with ComboBoxBase in your application. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets Readonly. - - - - - Gets or sets Readonly. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the Office2007 color scheme. - - The Office2007 color scheme. - - - - Gets or sets the Office2010 color scheme. - - The Office2010 color scheme. - - - - Gets or sets the Border style. - - The style. - - - - Gets or sets the Dropdown style. - - The style. - - - - Specifies the appearance of the control. - - - - This enumeration is used by the property. - - - Use and - to determine - if Themes are on during run-time. - - - - - - The control and the button appear flat. - - - - - The control and the button appear three-dimensional. - - - - - The appearance is determined by the user's operating system. - - - If XP, then themes will be used to draw this control. For other operating systems, - the behavior will be that of the style. This - setting will also use XP Themes to draw the combo when an XP Theme is loaded in the OS. - - - - - This class used for additional handling messages, that are sent - to DropDown's child controls. - - - - - ComboDropDown control, listen to messages for. - - - - - Default Constructor. - - - - - - Fired when IME messages are received - - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboDropDown - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - Class that represents the drop-down portion of a . - - - - - Creates an instance of the DropDownButton class. - - The control that is using this class to draw the drop-down portion. - - - - Reset MetroArrowColor - - - - - To serialize MetroArrowColor - - - - - - Gets the touchmode value. - - - - - Raises the MouseDown event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The MouseDown method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnMouseDown - in a derived class, be sure to call the base class's - OnMouseDown method so that registered - delegates receive the event. - - - - - Invalidates the specified portion in the underlying control. - - The area to invalidate. - - - - Call this method from the control's OnPaint method. - - The Graphics context using which to draw the button. - - - - Cancels any mouse tracking. - - - - - Call this method from the control's OnMouseMove to inform this class of mouse move events. - - The MouseEventArsg in the OnMouseMove method. - Indicates whether the full control bounds should be considered - part of the button. Useful in a combo in list mode. - - - - Call this method from the control's OnMouseLeave to inform this class of mouse leave events. - - The EventArsg in the OnMouseLeave method. - - - - Call this method from the control's OnMouseDown to inform this class of mouse down events. - - The MouseEventArsg in the OnMouseDown method. - Indicates whether the full control bounds should be considered - part of the button. Useful in a combo in list mode. - - - - Call this method from the control's OnMouseUp to inform this class of mouse up events. - - The MouseEventArsg in the OnMouseUp method. - - - - Gets/Sets Metro Arrow Color - - - - - Fired when the user performs a mouse down in the drop-down area. - - - - - Indicates whether themes is currently enabled for this control. - - This property doesn't check whether themes are currently enabled in the OS. - - - - Indicates whether owner control is active. - - - true if this instance is control active; otherwise, false. - - - - - Set the bounds for the dropdown button. You typically should do this from the control's Layout event / method. - - - - - Indicates whether the button is active. Will be referred to when drawn hot with office style. - - - - - Indicates whether the drop-down is showing. Will be referred to when drawn hot with office style. - - - - - Indicates whether the button should be drawn hot. - - - - - Gets or sets the ComboFlatStyle with which to draw. - - - - - Gets or sets the VisualStyle with which to draw. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Office2007 visual style. - - - - - Gets color table for Metro visual style. - - - - - Indicates whether the buttons should be drawn enabled. - - - - - Indicates whether the button is currently pushed. - - - - - Gets or sets a value indicating whether invalidating of owner control is suspended. - - - - - The Class that represents the TextBox placed inside the ComboBox - - - - - Constructor - - - - - Gets or sets a value indicating whether the height of the TextBoxExt automatically - adjusts when the font assigned to the control is changed. - - true if the height of the control automatically adjusts when the font is changed; otherwise, false. The default is true. - - - - Provides information about a control that can be used by an accessibility application. - - - - - ComboText - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - ComboDropDown Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Overrridden InitializeActionList. - - - - - Gets or sets Name. - - - - - Gets or sets Readonly. - - - - - Gets or sets Readonly. - - - - - Gets or sets the Text - - - - - Gets or sets the visual style. - - The style. - - - - Gets or sets the Office2007 color scheme. - - The Office2007 color scheme. - - - - Gets or sets the Office2010 color scheme. - - The Office2010 color scheme. - - - - Gets or sets the Border style. - - The style. - - - - Gets or sets the Dropdown style. - - The style. - - - - Summary description for ComboDropDownWeakContainer. - - - - - DelayedWaitCursor listens to OperationFeedback events and changes - the cursor if a certain number of ticks have elapsed since the start - of the operation. - - - - - Overloaded. Initializes a new instance. - - - - - Initializes a new instance. - - An object that implements the interface. - - - Adds an that this object will listen to and - provide user feedback for. - - - - - Overriden. Displays a wait cursor. - - An that contains the event data. - - - - DelayedStatusDialog listens to OperationFeedback events and displays - a modeless status dialog if a certain number of ticks have elapsed since the start - of the operation. - - - - - Overloaded. Initializes a new instance. - - - - - Initializes a new instance. - - An object that implements the interface. - - - Adds an that this object will listen to and - provide user feedback for. - - - - - - - - Overriden. Displays a dialog or wait cursor during progress and closes the dialog when operation is finished. - - An that contains the event data. - - - - The progress percentage value to be used for displaying a dialog bar. A dialog bar - is displayed when the operation's progress in percentage is less than the specified value - at the time progress should be displayed. - - - Typical values are 25 for - and 75 for . - - In this example, if the operation takes longer than two seconds and after two seconds - only 10% of the operation have completed, a dialog is displayed. If on the other side - after two seconds more than 25% have been completed and less than 75%, a wait cursor is displayed. - If more than 75% have been completed, no visual feedback at all will be given. - - - - - - The progress percentage value to be used for displaying a wait cursor. A wait cursor - is shown when the operation's progress in percentage is less than the specified value - at the time progress should be displayed. - - - is ignored if - is false. - - Typical values are 25 for - and 75 for . - - In this example, if the operation takes longer than two seconds and after two seconds - only 10% of the operation have completed, a dialog is displayed. If on the other side - after two seconds more than 25% have been completed and less than 75%, a wait cursor is displayed. - If more than 75% have been completed, no visual feedback at all will be given. - - - - - - Indicates whether wait cursors should be shown. - - - is ignored if - is False. - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - - - - - - - - - - - - - - - Cursor of the parent object. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Parent control supporting Drag operation. - - - - - Indicates whether shift value is calculated. - - - - - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - Gets / sets the parent control supporting drag operation. - - - - - Interface for implementing by parent control supporting Drag operation. - Methods of this interface invoke corresponding drag methods of parent control. - - - - - Provides data for the event. - - - - - The last selected index for the edited row in the list. - - - - - Creates a new instance of the ListBoxTextChangingEventArgs class. - - The new text after the change. - Last selected index. - - - - Creates a new instance of the ListBoxTextChangingEventArgs class. - - The new text after the change. - - - - Returns the new text for the edited row in the list. - - - - - Gets the last selected index for the edited row in the list. - - - - - Handles the event. - - The source of the event. - A that contains the event data. - - - - A that provides you an editable - with a and - on the current row. - - - - During design-time (and in code) you can access the list box, text box and button components of this - control using the , and - properties. You can add certain items to the list and set some properties on the textbox and button. - - - The event is thrown when the user clicks the button - and event is thrown when the user completes editing an item. - - - - - - Holds ScrollerFrame for ListBox - - - - - Holds MetroColorTable for ScrollerFrame - - - - - The used by the control. - - - - - The used by the control. - - - - - The used by the control. - - - - - Index of the item, that is being edited. - - - - - - Required designer variable. - - - - - Default size of the control - - - - - Default height of the ListBoxItem - - - - - Default height of the ListBoxItem - - - - - Creates a new instance of the control. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - Holds the Visual Style of EditableList - - - - - Gets or sets the Visual Style for the EditableList - - - - - Represents the Variable assiged with the default value. - - - - - Reset the Style - - - - - - Serializes the Style - - - - - - Represents the Variable with Bool Contraint. - - - - - Gets or sets an advanced appearance for the EditableList. - - - - - Indicates, whether property value should be serialized. - - - - - Resets the property to the default value. - - - - - - - - Required method for Designer support - do not modify - the contents of this method with the code editor. - - - - - Called just before a row goes into editing mode. - - - - - Called just after a row comes out of editing mode. - - - - - Raises the ItemChanging event. - - A that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnItemChanging method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnItemChanging - in a derived class, be sure to call the base class's - OnItemChanging method so that registered - delegates receive the event. - - - - - Raises the BeforeListItemEdit event. - - An that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnBeforeListItemEdit method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnBeforeListItemEdit - in a derived class, be sure to call the base class's - OnBeforeListItemEdit method so that registered - delegates receive the event. - - - - - Raises the ButtonClick event. - - An EventArgs that contains the event data. - Raising an event invokes the event handler - through a delegate. For more information, see Raising - an Event. The OnButtonClick method also - allows derived classes to handle the event without - attaching a delegate. This is the preferred technique - for handling the event in a derived class. - Note to Inheritors: When overriding OnButtonClick - in a derived class, be sure to call the base class's - OnButtonClick method so that registered - delegates receive the event. - - - - - Fired when the user clicks on the button. - - - - - Fired when the user completes editing a row. - - - - - Raised before a list item is edited. - - - - - Raised when a list item is to be drawn. - - - - - Gets/Sets Control size before touch enabled - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the associated with this control. - - - To access the list box to add items to it. - - - - - Returns the associated with this control. - - - Represents the textbox used in the editable current row. - - - - - Returns the associated with this control. - - - Represents the button drawn at the right of the current row. - - - - - Indicates whether you want the button to be shown to the right while editing. - - True if button should be shown; False otherwise. Default is True. - - - - Gets the theme colors for the Visual style. - - - - - Gets or Sets the colorschemes for the EditableList. - - - - - Represents the property to set the Style. - - - - - Gets or Sets whether to draw focus when item is selected. - - - - - Indicates whether the current row is being edited. - - - True to indicate its being edited; False otherwise. - - - - - Gets or sets the list box text alignment. - - - - - Provides information about a control that can be used by an accessibility application. - - - - - EditableList - - - - - Constructor - - The RibbonControlAdv instance. - - - - Retrieves the child object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - An RibbonControlAdvAccessibility that represents the child object at the given screen coordinates. - This method returns the calling object if the object itself is at the location specified. - Returns null if no object is at the tested location. - - - - Bounds of the Control - - The accessible object bounds. - - - - Gets the role for the RibbonControlAdv. This is used by accessibility programs. - - - - - Gets or sets the accessible object name - - The accessible object name. - - - - Gets the description of the RibbonControlAdvAccessibility - - A string describing the RibbonControlAdvAccessibility. - - - - FolderBrowser Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Draws the Background Color using renderer file - - - - - - - Draws the text. - - The instance containing the event data. - - - - Represents the variable to store the Back color. - - - - - Represents the variable to store Style change state. - - - - - represents if stylechanged is true. - - - - - - Method to Draw Item. - - - - - - - - - - - Gets/Sets whether to draw focus when item is selected. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Gets or sets Name. - - - - - Gets or sets the Text - - - - - Gets or sets the border style. - - The style. - - - - Gets or sets the auoscroll. - - The style. - - - - Gets or sets listbox text alignment - - The style. - - - - Editablelistrenderer Class contains all the color properties which are required for Office 2016 Colorful theme. - - - - - Represents the Color values for Back color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Fore color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Back color during Selected state in Office 2016 Colorful - - - - - Represents the Color values for Back color during Normal state in Office 2016 Colorful - - - - - Represents the Color values for Back color for Button in Office 2016 Colorful - - - - - Gets the color table according to the theme. - - - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 Black EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Back color during Normal state in Office 2016 Black - - - - - Represents the Color values for Fore color during Normal state in Office 2016 Black - - - - - Represents the Color values for Back color during Selected state in Office 2016 Black - - - - - Represents the Color values for Back color during Normal state in Office 2016 Black - - - - - Represents the Color values for Back color for Button in Office 2016 Black - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 White EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Back color during Normal state in Office 2016 White - - - - - Represents the Color values for Fore color during Normal state in Office 2016 White - - - - - Represents the Color values for Back color during Selected state in Office 2016 White - - - - - Represents the Color values for Back color during Normal state in Office 2016 White - - - - - Represents the Color values for Back color for Button in Office 2016 White - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - Office2016 DarkGray EditableRenderer class is inherited from the Editablelistrenderer class - - - - - Represents the Color values for Fore color during Normal state in Office 2016 DarkGray - - - - - Represents the Color values for Fore color during Normal state in Office 2016 DarkGray - - - - - Represents the Color values for Back color during Selected state in Office 2016 DarkGray - - - - - Represents the Color values for Back color during Normal state in Office 2016 DarkGray - - - - - - Represents the Color values for Back color for Button in Office 2016 DarkGray - - - - - Gets the value of Back color in normal state - - - - - Gets the value of Text color in normal state - - - - - Gets the value of Back color when selected - - - - - Gets the value of Text color when selected - - - - - Gets the value of Back color for want button - - - - - The FolderBrowser component provides a convenient and easy to use object oriented wrapper for the - Win32 Shell folder browser API. - - - The FolderBrowser class completely abstracts the various complex Shell API functions, - structures and callback routines required for invoking the folder selection dialog and allows - you to work with a more .NET-centric programming model consisting of aptly named properties, methods and - events. Most convenient of all, you no longer need to allocate PIDLs as specifying - the location of the rootfolder; browsing is now a simple task of setting the - FolderBrowser.StartLocation property from one of the values provided in the FolderBrowserFolder - enumeration. Using the FolderBrowser class to browse the Shell folders is simple and - to the .NET developer a completely familiar issue of instantiating the FolderBrowser - component, setting the appropriate properties and events on it and invoking the - method. For more detailed information on the Shell APIs refer - to the Platform SDK documentation on the SHBrowseForFolder method. - - - The following code creates an instance of the FolderBrowser component, sets the folder dialog start location - and styles and invokes the FolderBrowser.ShowDialog() method: - - - private void ShowFolderBrowserDialog() - { - // Create the FolderBrowser component: - this.folderBrowser1 = new Syncfusion.Windows.Forms.FolderBrowser(); - - // Initialize the FolderBrowser component: - this.folderBrowser1.Description = "Syncfusion FolderBrowser"; - this.folderBrowser1.StartLocation = Syncfusion.Windows.Forms.FolderBrowserFolder.Desktop; - this.folderBrowser1.Style = - ( Syncfusion.Windows.Forms.FolderBrowserStyles.RestrictToFilesystem | - Syncfusion.Windows.Forms.FolderBrowserStyles.BrowseForComputer ); - - // Provide a handler for the FolderBrowserCallback validation event: - this.folderBrowser1.FolderBrowserCallback += new Syncfusion.Windows.Forms.FolderBrowserCallbackEventHandler(this.folderBrowser1_BrowseCallback); - - // Display the folderbrowser dialog: - if (this.folderBrowser1.ShowDialog() == DialogResult.OK) - this.selectedFolder = this.folderBrowser1.DirectoryPath; - } - - - // Event handler for the FolderBrowser.FolderBrowserCallback validation event. - // This handler is functionally equivalent of the Win32 BrowseCallbackProc callback function: - private void folderBrowser1_BrowseCallback(object sender, Syncfusion.Windows.Forms.FolderBrowserCallbackEventArgs e) - { - this.label1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path); - - if (e.FolderBrowserMessage == FolderBrowserMessage.ValidateFailed) - { - e.Dismiss = e.Path != "NONE"; - } - } - - - - Private Sub ShowFolderBrowserDialog() - - ' Create an instance of the FolderBrowser component: - Me.folderBrowser1 = New Syncfusion.Windows.Forms.FolderBrowser(Me.components) - - ' Set the descriptor text that will appear on the folder dialog: - Me.folderBrowser1.Description = "Syncfusion FolderBrowser" - - ' Specify the start location: - Me.folderBrowser1.StartLocation = Syncfusion.Windows.Forms.FolderBrowserFolder.Desktop - - ' Specify the styles for the folder browser dialog: - Me.folderBrowser1.Style = Syncfusion.Windows.Forms.FolderBrowserStyles.RestrictToFilesystem Or Syncfusion.Windows.Forms.FolderBrowserStyles.BrowseForComputer - - ' Provide a handler for the FolderBrowserCallback validation event: - AddHandler Me.folderBrowser1.FolderBrowserCallback, New Syncfusion.Windows.Forms.FolderBrowserCallbackEventHandler(AddressOf folderBrowser1_BrowseCallback) - - ' Show the folder browser dialog: - Try - If folderBrowser1.ShowDialog() = DialogResult.OK Then - Me.label1.Text = [String].Concat("Selection: ", folderBrowser1.DirectoryPath) - End If - Catch ex As Exception - Console.WriteLine(ex.ToString()) - End Try - - End Sub - - - ' Event handler for the FolderBrowser.FolderBrowserCallback validation event. - ' This handler is functionally equivalent of the Win32 BrowseCallbackProc callback function: - Private Sub folderBrowser1_BrowseCallback(ByVal sender As Object, ByVal e As FolderBrowserCallbackEventArgs) - - Me.label1.Text = String.Format("Event: {0}, Path: {1}", e.FolderBrowserMessage, e.Path) - If (e.FolderBrowserMessage = FolderBrowserMessage.ValidateFailed) Then - e.Dismiss = (e.Path Is "NONE") = False - End If - - End Sub - - - - - - Overloaded. Creates a new instance of the component. - - - - - Creates a new instance of the and initializes it with the container. - - An object implementing IContainer that will host this instance - of the FolderBrowser component. - - - - Validates the procedure. - - - - - - - - - - Raises the event. - - A value that contains the event data. - - - - Overloaded. Displays the folder browser dialog with a default owner. - - DialogResult.OK if the user clicks OK in the folder dialog; DialogResult.Cancel otherwise. - - - - Displays the folder browser dialog with the specified owner. - - A top-level window that will serve as the owner for the dialog. - DialogResult.OK if the user clicks OK in the folder dialog; DialogResult.Cancel otherwise. - - - - Occurs when an event within the folder browser dialog triggers a call to the validation callback. - - - - - - - - Gets or sets the options for the folder browser dialog. - - A value. - - - - Retrieves the location of the selected folder. - - A String value. - - - - Gets or sets the start location for the folder browser dialog. - - - The StartLocation property is the functional equivalent of the Win32 PIDLs. - - A value. - - - - Gets or sets custom start location for showing dialog. - - - - - Gets or sets selected location for showing dialog. - - - - - Gets or sets the text displayed above the tree control in the folder browser dialog. - - A String value. - - - - Defines constants used by the component. - - - The FolderBrowserMessage enumeration specifies constants that define the event that - triggered the event to occur. - - - - - Indicates that the browse dialog box has finished initializing. - - - - - Indicates that the selection has changed. - - - - - Indicates that the user typed an invalid name into the edit box. - - - - - Handles the component's event. - - The source of the event. - A value that contains the event data. - - - - Specifies constants that defines the folderbrowser dialog state. - - - Enumeration used for setting the folderbrowser dialog's state from the event handler. - For detailed information on the folder browser callback function, refer to the Platform SDK - documentation on the BrowseCallbackProc function. - - - - - Default State. - - - - - Enables the OK button. - - - - - Disables the OK button. - - - - - Specifies a path to expand in the Browse dialog box. The path can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Sets the text to be displayed on the OK button. The text can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Selects the specified folder. The folder's path can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. - - - - - Sets the text to be displayed on the OK button. The text can be set through the - FolderBrowserCallbackEventArgs.BrowseCallbackText property. This state is inapplicable - with the new dialog style. - - - - - FolderBrowser Designer - - - - - Designer ActionList collection - - - - - Initializes a new instance of the CheckBoxAdvDesigner class - - - - - Gets a value indication the designer action - - - - - Provides data for the component's FolderBrowserCallback event. - - - The event occurs when an event within the folder browser dialog - triggers a call to the validation callback. Handling this event allows you to implement the - functional equivalent of the BrowseCallbackProc application-defined callback function. - The FolderBrowserCallbackEventArgs properties provide information specific to the event. - - - - - Initializes a new instance of the class. - - A NativeWindow value that represents the window handle of the folderbrowser dialog. - A value that identifies the event. - A String value that specifies the valid / invalid folder name. - - - - Returns the window handle of the browse dialog box. - - A NativeWindow value. - - - - Returns the valid / invalid folder name. - - A String value. - - - - Returns a value identifying the event. - - A value. - - - - Indicates whether the dialog is either dismissed or retained depending on this value. - - - - - Gets / sets the folder browser dialog's state. - - A value. - - - - Gets / sets the contextual string depending upon the value of the property. - - A String value. - - - - Specifies constants that define the location of the root folder in the folder browser dialog. - - - The FolderBrowserFolder enumeration specifies the location of the root folder from which - the component will start browsing. Only the specified folder - and folders beneath it in the namespace hierarchy will appear in the dialog. This - enumerator provides a simple way to set the ITEMIDLIST structure (PIDL) for the folder - browser dialog. For more information on the functional significance of these values - please refer to the Platform SDK documentation on the Shell API and the CSIDL Values. - - - - - Windows desktop virtual folder that is the root of the name space. - - - - - Virtual folder that represents the Internet. - - - - - File system directory that contains the user's program groups. - - - - - Virtual folder that contains icons for Control Panel applications. - - - - - Virtual folder that contains installed printers. - - - - - File system directory that serves as a common repository for documents. - - - - - File system directory that serves as a common repository for the user's favorite items. - - - - - File system directory that corresponds to the user's Startup program group. - - - - - File system directory that contains the user's most recently used documents. - - - - - File system directory that contains Send To menu items. - - - - - Virtual folder that contains the objects in the user's Recycle Bin. - - - - - File system directory that contains Start Menu items. - - - - - Virtual folder that contains the objects in the user's My Documents folder. - - - - - File system directory that serves as a common repository for music files. - - - - - File system directory that serves as a common repository for video files. - - - - - File system directory used to physically store file objects on the desktop. - - - - - My Computer virtual folder that contains everything on the local computer: storage devices, printers and Control Panel. - - - - - Network Neighborhood virtual folder that represents the root of the network namespace hierarchy. - - - - - A file system folder that contains the link objects that can exist in the My Network Places virtual folder. - - - - - Virtual folder that contains fonts. - - - - - File system directory that serves as a common repository for document templates. - - - - - My Pictures folder. - - - - - Program files folder - - - - - File system directory that contains documents that are common to all users. - - - - - File system directory that contains administrative tools for all users. - - - - - File system directory used to store administrative tools for an individual user. - - - - - Virtual folder that contains network and dial-up connections. - - - - - My Music folder for all users. - - - - - My Pictures folder for all users. - - - - - My Video folder for all users. - - - - - System resource directory. - - - - - Localized resource directory. - - - - - Folder containing links to OEM specific applications for all users. - - - - - File system folder used to hold data for burning to a CD. - - - - - Computers Near Me folder. - - - - - Use custom start folder (). - - - - - Combine this flag with the desired CSIDL_ value to indicate per-user initialization. - - - - - Combine this flag with the desired CSIDL_ value to force a non-alias version of the PIDL. - - - - - Combine this flag with the desired CSIDL_ value to return an unverified folder path. - - - - - Combine this flag with the desired CSIDL_ value to force the creation of the associated folder. - - - - - Mask for all possible CSIDL flag values. - - - - - Specifies constants that define the styles for the folder browser dialog. - - - The enumeration specifies the options for the folder browser dialog. - For more detailed information, refer to the Platform SDK documentation on the - Win32 BROWSEINFO structure. - This enumeration has a FlagsAttribute attribute that allows a bitwise combination of its member values. - - - - - Restricts selection to file system directories. - - - - - Excludes network folders below the domain level. - - - - - Includes a status area in the dialog box. The status text can be specified in the FolderBrowserCallback event handler. - This style does not apply to the new style dialog. - - - - - Returns only file system ancestors. - - - - - Displays a textbox control in the folder browser dialog. - - - - - Typing an invalid name in the textbox will trigger the FolderBrowser's FolderBrowserCallback event. - - - - - Uses the new resizable folder selection dialog. - - - - - Adds a usage hint to the folder dialog. Valid only with the NewDialogStyle flag. - - - - - Displays URLs. The NewDialogStyle and BrowseForEverything values must be set along - with this flag. - - - - - Displays only computers. - - - - - Displays only printers. - - - - - Displays files as well as folders. - - - - - Displays shareable resources existing on remote systems. - - - - - Displays administrative shares existing on remote systems. - - - - - CheckBoxAdvActionList class. - - - - - Initializes a new instance of the CheckBoxAdvActionList class. - - Represents component - - - - Gets or sets the options style. - - The style. - - - - Gets or sets the start location - - The style. - - - - Implements a list box that can be displayed in a drop-down window for - a combo box or dropdown menus. It lets you select items and scroll the - listbox without setting the focus to the listbox. - - - - - Initializes a new control. - - - - - Handles the event of an internal - timer that is started when the user has pressed the mouse down. - - The source of the event.> - The with event data. - - - - - - - - - - - - - - - - Sends WM_SETREDRAW message to the window. - - - - - - Implements the list box that can be displayed in a drop-down window for - a combo box. Handles autoscrolling and resize to fit contents. - - - - - Initializes a new control. - - - - - Handles the event of an internal - timer that is started when the user has pressed the mouse down. - - The source of the event.> - The with event data. - - - - - - - Overloaded. Calculates optimal width for this list box based on current items. - - The width in pixels large enough so that no item text needs to be clipped. - - - - Calculates optimal width for this list box based on current items using a - provided object. - - The width in pixels large enough so that no item text needs to be clipped. - - - - - - - - - - - - - - - - Gets / sets the preferred number of visible rows. - - - - - - - - IMouseController defines the interface for mouse controllers to be used with MouseControllerDispatcher. - - - Any mouse controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest, the mouse controller should determine whether your - controller wants to handle the mouse events based current context. - See MouseControllerDispatcher for further discussion. - - - - - MouseHoverEnter is called when this controller signaled in HitTest that it wants to handle mouse events. MouseHoverEnter - is called before the MouseHover is called for the first time. - - - - - MouseHover is called when this controller signaled in HitTest that it wants to handle mouse events. MouseHover - is called after MouseHoverEnter. - - - - - MouseHoverLeave is called when hovering ends either because user dragged mouse out of the hit-test area or - when context changes (e.g. user pressed the mouse button). - - - - - MouseDown is called when this controller signaled in HitTest that it wants to handle mouse events and the - user pressed the mouse button. - - - MouseDown is called and this controller will become the active controller and receive all subsequent mouse messages - until the mouse button is released or the mouse operation is cancelled. - - - - - - MouseMove is called for the active controller after a MouseDown message when the user moves the mouse pointer. - - - - - - MouseUp is called for the active controller after a MouseDown message when the user releases the mouse button. - - - - - - CancelMode is called for the active controller after a MouseDown message when the mouse operation is cancelled. - - - - - HitTest is called to determine whether your controller wants to handle the mouse events based current context. - - - The current winner of the vote is specified through the controller parameter. Your implementation of HitTest - can decide if it wants to override the existing vote or leave it. - - - - - - - - Returns the name of this mouse controller. - - - - - Returns the cursor to be displayed. - - - - - The IContextMenuProvider interface provides Essential Studio controls with a high-level API for creating and - working with context menus. Subscribing to this interface allows the Essential Studio controls to - seamlessly switch between the standard .NET and the - classes depending on whether the - Essential Tools library is available or not. - - - - - - - - Creates a new instance of the context menu object managed by this provider. - - - If the provider contains a previously initialized context menu, then the existing menu will be disposed - before creating the new menu. - - - - - Gets the Menu items count. - - - - - - Indicates whether "Add or Remove buttons" is needed. - - - - - - Sets the visual style for the context menu. - - A value. - - - - Creates a new top-level menu item. - - A value representing the menu item. - The that will handle the menu item Click event. - - - - Creates a new menu item and adds it to the specified parent menu item. - - A value representing the parent menu item. - A value representing the menu item. - The that will handle the menu item Click event. - - - - Sets the menu item image. - - A value representing the menu item. - The containing the image. - The zero-based image index. - - - - Sets a shortcut key for the menu item. - - A value representing the menu item. - The key for the menu item. - - - - Returns the menu item's shortcut key. - - A value representing the menu item. - A key value. - - - - Sets the menu item's Checked property to the specified value. - - A value representing the menu item. - The boolean value to be set. - - - - Gets the menu item's Checked property. - - A value representing the menu item. - A boolean value. - - - - Sets the menu item's Enabled property to the specified value. - - A value representing the menu item. - The boolean value to be set. - - - - Indicates the state of the menu item's Enabled property. - - A value representing the menu item. - A boolean value. - - - - Inserts or removes a separator before the specified menu item's position. - - A value representing the menu item. - True to insert a new separator; False to remove an existing separator. - - - - Removes the specified context menu item. - - A value representing the menu item. - - - - Displays the context menu at the specified position. - - A object that specifies the control with which this context menu is associated. - A object that specifies the coordinates at which to display the menu. - - - - Disposes the context menu associated with this provider. - - - - - Clears all menu items. - - - - - Occurs when menu is popped up. - - - - - Occurs when menu is collapsed. - - - - - The ContextMenuItem class is used by the Essential Studio menu providers - classes implementing the - interface - for providing information to the context menu - command handler about the menu item that triggered the Click event. - - - - - - - Creates an instance of the class. - - A instance representing the menu provider. - A value representing the context menu item. - - - - Returns the menu provider instance. - - A instance. - - - - Returns the text representing the context menu item. - - A value. - - - - Factory class for creating the context menu provider. If the Syncfusion Essential Tools library is present, the MenuProviderFactory will - create an instance of the type and if not it returns an instance of - the class. - - - - - - Creates the standard or XPMenus context menu provider. - - A instance. - - - - The StandardMenusProvider class implements the interface and - serves as the menu provider for the standard .NET context menus. Controls that have a - object set as their menu provider will display a instance. - - - - - - - Creates an instance of the class. - - - - - Gets the ContextMenu items Count. - - - - - - Indicates whether "Add or Remove buttons" is needed. - - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Overridden. See . - - - - - Clears all menu items. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets context menu instance. - - - - - Occurs when menu is popped up. - - - - - Occurs when menu is collapsed. - - - - - MouseControllerDispatcher coordinates mouse events among competing mouse controllers. Based on - the position of the mouse and context of the control every registered controller's HitTest method - is called to determine the best controller for the following mouse action. This controller will then - receive mouse events. - - - Any Mouse Controller needs to implement the IMouseController interface. - In its implementation of MouseController.HitTest, the mouse controller should determine whether your - controller wants to handle the mouse events based current context. - MouseControllerDispatcher will call HitTest for each Mouse Controller that has been registered with - Add(IMouseController). The Mouse Controller that wins the vote will receive all Mouse hovering events - like MouseHoverEnter, MouseHover and MouseHoverLeave as long as its HitTest method indicates that it wants to - handle the mouse event. A MouseHoverLeave notification is guaranteed after MouseHoverEnter has been called. - When the user presses the mouse, a MouseDown will be sent to the controller. All subsequent mouse events - will then go to that specific controller until the user releases the mouse or the mouse operations is cancelled. - A call to either MouseUp or CancelMode is guaranteed after a controller MouseDown method was called. - Mouse controllers are registered by calling the Add method. - If the control that MouseControllerDispatcher should be associated with is derived from ScrollControl, - you should use ScrollControllMouseControllerDispatcher because it will automatically hook itself up - with mouse events from ScrollControl. - Otherwise if you want to attach MouseControllerDispatcher to a different type of Control, you need to - delegate mouse events to MouseControllerDispatcher. MouseControllerDispatcher provides ProcessXYZ methods - for every mouse event that should be forwarded. Simply call these methods from your mouse event handlers in - your control. - - - - - Initializes a new MouseControllerDispatcher object and associates it with the parent control. - - - - - - Resets the dispatcher and calls Dispose for any registered mouse controller and unregisters all mouse controllers. - - - - - - Registers a mouse controller. - - - - - - Removes a mouse controller. - - - - - - Indicates whether a mouse controller has previously been registered. - - - - - - - Search a mouse controller by comparing with the name returned from IMouseController.Name. - - - - - - - Changes the active controller and raises an ActiveControllerChanged event. - - - - - - Sets the controller that will receive mouse hovering messages. If the controller is changed, - MouseHoverLeave and MouseHoverEnter calls are made. - - - - - - - Raises the event. - - A that contains the event data. - - - - HitTest loops through all controllers and calls HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The result identifying the hit-test context. - - The current result of the vote gets passed to the next mouse controller. If a controller wants - to handle mouse events, it can decide based on the existing vote if it has higher priority for it - to handle mouse messages than the existing vote. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - The result identifying the hit-test context. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - A placeholder where a reference to the winning - is returned. - The result identifying the hit-test context. - - - - - HitTest loops through all controllers and call HitTest on each of them. Only one mouse controller - can get voted to receive mouse messages. - - The point in client coordinates to be hit tested. - The mouse button that is pressed. - 1 for single-click; 2 for double click. - A placeholder where a reference to the winning - is returned. - The result identifying the hit-test context. - - - - - Call this method from your control's MouseMove handler. - - - - - - Call this method from your control MouseDown handler. - - - - - - Call this method from your control's MouseUp handler. - - - - - - Call this method from your control's CancelMode handler. - - - - - - - - Resets support for mouse tracking. - - Call this method after a user interaction that should switch the control back into - normal mouse behavior. For example, when the control gets the focus or when the user clicks a scrollbar. - - - - - Raises the event. - - A that contains the event data. - - - - Indicates that the active controller has changed. - - - Active controller is the controller that is receiving MouseDown, MouseMove and MouseUp messages when the user - has pressed a mouse button. - - - - Returns a reference to the active mouse controller that is receiving MouseDown, MouseMove and MouseUp messages when the user - has pressed a mouse button. - - - - - Returns the controller that currently receives mouse hovering messages. - - - - - Returns the last HitTest value returned that was non-zero. Check this property - if you need to make decision on your mouse controller's HitTest. - - - - - Property AllowDoubleClickTimer (bool). - - - - - Returns the cursor to be displayed. - - - - - Returns a reference to the associated control. - - - - - Enables support for mouse tracking. - - - Specify the bounds where the mouse tracking should start. As soon as the user moves the mouse - over the specified region, MouseControllerDispatcher will simulate a mouse down event. When the user presses - any mouse button MouseControllerDispatcher will simulate a mouse up and resets the mouse tracking mode. After - the initial click on a mouse button, mouse processing will work as usual. - Mouse tracking lets you easily simulate the behavior of windows combo boxes. - - This example enables Mouse Tracking after the drop-down has been shown. - - public override void DropDownContainerShowedDropDown(object sender, EventArgs e) - { - this.ListControlPart.grid.MouseControllerDispatcher.TrackMouse = - this.ListControlPart.grid.RangeInfoToRectangle(GridRangeInfo.Rows( - this.ListControlPart.grid.TopRowIndex, - this.ListControlPart.grid.RowCount)); - } - - - - - - Indicates that the value of the TrackMouse property has changed. - - - - - ScrollControllMouseControllerDispatcher is a specialized version of MouseControllerDispatcher - that automatically wires itself up with a ScrollControl. - - - If the control that MouseControllerDispatcher should be associated with is derived from ScrollControl, - you should use ScrollControllMouseControllerDispatcher because it will automatically hook itself up - with mouse events from ScrollControl. - No initialization is necessary. - You can register MouseControllers with: - - resizeCellsController = new GridResizeCellsMouseController(this); - MouseControllerDispatcher.Add(resizeCellsController); - - See ScrollControl.MouseControllerDispatcher property. - - - - - Initializes a object and associates it with a . - - The this object is associated with. - - - - - - - Provides designer-like context menu support for the PropertyGrid during run-time. - - -

This derived menu has a "Reset" menu item, which automatically - provides the property-resetting service with the ContextMenu of - a during run-time. It also - includes a "Description" menu item to let you show / hide the description portion of the property grid. - Just as in the VS.NET property grid.

-

- To use this component, just create it passing the PropertyGrid in the constructor. - The context menu will then start appearing for that PropertyGrid. There is no - design-time support for this component. -

-
-
- - - Creates a new instance of the PropertyGridContextMenu. - - The to which - this will be made a context menu. - - - - - - - - - - - - - Sets / resets the specified styles on the control. - - The control on which to set / reset the styles. - The style to set / reset. - Indicates whether to set / reset the style. True to set, False to reset. - This method uses reflection to call the protected SetStyle - method on the specified control. - - - - Makes the specified control and all its parent controls the ActiveControl of its parent container. - - The control that needs to be made the ActiveControl of its parent. - - - - Returns the first PropertyGrid encountered in the container control's controls collection. Will recur. - - The instance to a ContainerControl. - A PropertyGrid instance, if found; NULL otherwise. - - - - Updates the designer generated datasource full path to a different one based - on the provided info. - - The Connection object whose ConnectionString will be updated. - The directory name that will be sought after up in the exe's hierarchy (typically the "Data" dir). - A file in the above directory (typically an .mdb file). - - The designer generated path to the "Data" directory could have been changed if the user - installed the product to a non-default directory. - This routine will parse up the dir hierarchy from the exe file and try to find - the "Data" dir and use it instead. - - - - - Finds a file of the given name in the current directory or sibling "Data" directory. - If file is not found, the parent folder is checked until the file is found. This method - is used by our samples when they load data from a separate "Data" folder. - - The name of the "Data" folder. - The filename to be searched. - The full path of the file that was found; an empty string is returned if file is not found. - - - - Returns the preferred size to be used for an empty cell. - - The context of the canvas. - The to be used. - The of the string "Wg;". - - - - Gets / sets the string used when doing a resize to fit for cells with empty text. - - - - - Defines a mechanism for letting others know that you let others cancel your operation. - - - The class relies on this interface. - - - - - To let you know that any current operation should be cancelled. - - - - - A listener class that will listen to and notify Escape key press. - - - As soon as you create this class, it starts listening for the Esc key press using Application.AddMessageFilter. - As soon as it encounters the Escape key, it notifies the source (ICanCancel implementor) and - stops listening to further Escape presses. The Release method will make it stop listening at any point. - - - - - Creates a new instance of the CancelListener class. - - The instance that will be notified on Escape key press. - - - - Makes this instance stop listening for Escape key press. - - - - - - - - - - - Wrapper class for setting the current 's . - - - - - Handles the CultureChanged event raised by the settings form. - - The settings form. - The event data. - - - - Sets the current thread's CurrentCulture. - - The culture to be set. - - - - Raises the CultureChanged event. - - The previous culture's LCID. - The new culture's LCID. - - - - Raises the event. - - Object raising the event. - The event data. - - - - Event raised when the ThreadCulture is changed or the system settings - changed the culture. - - - - - The form used for listening to the WM_SETTINGCHANGE messages. - - - - - Static constructor for ThreadCultureSystem class. - - - - - Form derived class that is registered to receive WM_SETTINGCHANGE messages. - - - - - Overrides to handle the WM_SETTINGCHANGE - message. - - The message. - - - - Overrides to always set the location to be - outside the screen bounds. - - - - - Raises the event. - - The event data. - - - - Event raised when the form senses that the culture has been changed. - - - - - Handles the locale changed event. - - - - - Provides data for the event. - - - - - Returns the LCID of the new culture that has been applied. - - - - - Returns the LCID of the previous culture. - - - - - Returns the reason for the CultureChange. - - - - - CultureChangedReason is used by the to denote - what action initiated the culture change. - - - - - A System level setting change resulted in the culture change. - - - - - Thread level culture change resulted in the culture change. - - - - - Specifies information about the originating action of SheetMoved event. - - - - - None specified. - - - - - Sheet was moved. - - - - - Sheet was inserted. - - - - - Sheet was removed. - - - - - All sheets were removed. - - - - - Handles a event of a . - - - - - Provides data about a event of a . - - - - - Initializes a SheetMovedEventArgs with event data. - - The sheet index. - The destination sheet index. - The originating action for this event. - - - - Returns the sheet index. - - - - - Returns the destination sheet index. - - - - - Returns the originating action for this event. - - - - - Handles a and events of a . - - - - - Provides data about a and events of a . - - - - - Initializes a new with event data. - - The selected index. - The tab associated with the index. - - - - Returns the selected index. - - - - - Returns the tab associated with the index. - - - - - An interface for hosting objects and - receiving clicks from these buttons. - - - - - Returns Graphics object, font and delta between tabs. - - Graphics object. - Font. - Delta between tabs. - - - - Returns , brush, text color, font and delta between tabs. - - Tab object. - Brush for drawing the tab background. - Text color. - Font used to draw text. - Delta between tabs. - - - - Disposes any temporary drawing object. - - - - - Returns the image list that these tabs get images from. - - - - - Indicates the visual style of the tabBar. - - - - - InternalTab draws tabs inside a in a . - - - - - Renderer used to draw the tab. - - - - - Initializes a new . - - - Initializes a new . - - - - - Gets or sets the visibility of the control. - - - - - Initializes a new with a label. - - The label to display in the tab. - - - - Initializes a new with a cookie. - - The cookie associated with this tab. - - - - Initializes a new with a cookie and a label. - - The cookie associated with this tab. - The owner of this tab. - - - - - - - - - - - - - Recalculates the best size for the button and resizes it. - - - Recalculates the best size for the button and resizes it. - - Graphics object. - Font. - Delta between tabs. - - - - - - - Creates and initializes a bitmap for this tab. - - The size of the bitmap. - Indicates the flat look status. - The bitmap where the button is drawn into. - - When you drag a tab, this function is called to create the dragging button image. - - - - - - - - Gets or sets the visibility of the control. - - - - - Gets / sets the label to display in the tab. - - - - - Gets / sets the index of the image to display in this tab. - - - - - Gets the region that contains the tab bounds. - - - - - Gets the renderer that renders the tab. - - - - - An interface for hosting objects. - - - - - Indicates whether the specified tab is being dragged. - - The tab index. - Current target. - True if tab can be dropped; False otherwise. - - - - Indicates that a tab has been dragged. - - The tab index. - Current target - - - - Indicates whether the scroll button has been pressed. - - Indicates which type of arrow button. - The number of pixels to scroll. - True if scrolled; False otherwise. - - - - Scrolling finished. - - - - - Gets / sets the cursor to display. - - - - - Provides data about a or events of a . - - - - - Initializes a . - - The original tab index. - The destination tab index. - - - - Gets / sets the original tab index. - - - - - Gets / sets the destination tab index. - - - - - Class to Draw the AddNewPage rectangle in TabBar - - - - - Gets/Sets the Hover color for AddButton. - - - - - Resets the PlusHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - To Draw Add symbol in TabBarPage. - - - - - - - Handles the or events of an - - - - - Specifies scroll behavior for a tab bar. - - - - - Scroll pixels. - - - - - Scroll tabs. - - - - - Helper class for . Manages items. - - - - - Holds the MouseHover value - - - - To check whether the tab is double clicked. - - - - To draw the Plus symbol near the Tab Bounds - - - - - To Get the bounds of the AddNewPage button. - - - - - Initializes an and attaches it to a control. - - The parent control. - - - - - - - Called from parent control to draw this bar. - - A Graphics object. - The delta in pixels between tabs. - - - - Called when a button is clicked. - - The that was clicked. - - Called by OnMouseDownEvent. - - - - - - - - - - - - - - - - - Checks if mouse is over a button and returns the zero-based button index or -1. - - X-coordinate of mouse pointer. - Y-coordinate of mouse pointer. - Zero-based button index; -1 if not over a button. - - - - - - - Repaints only if marked dirty. - - - - - Returns the index for the specified button. - - The button to search. - - - - Returns the index for a button with the specified cookie. - - The cookie to search for. - - - - Cancels current action. - - - - - - - - - - - - - - - - - - - - Scrolls a specified tab into view. - - - Scrolls a specified tab into view. - - The tab that should be made visible. - - - - Scrolls a specified tab into view. - - The index of the tab that should be made visible. - - - - - - - - - - Scrolls the tabs in the specified direction. - - - Scrolls the tabs in the specified direction. - - The direction to scroll. - - - - Overloaded. Scrolls the tabs in the specified direction with the specified number of pixels. - - The direction to scroll. - The pixels to scroll. - - - - Scrolls the tabs in the specified direction with the number of pixels. - - The direction to scroll. - The pixels to scroll. - Indicates whether scrolling should abort when last button is visible and you scroll further. - - - - Initializes ToolTips boundaries. - - - - - Reinitializes and hides ToolTips. - - - - - Resets hovered state for all buttons. - - - - - Resets pushed state for all buttons. - - - - - Resets checked state for all buttons. - - - - - Resets DragTarget state for all buttons. - - - - - Refreshes the current tab and optionally scrolls it into view. - - True if current tab should be scrolled into view. - - - - Occurs when a tab has been moved. - - - - - Occurs before a tab is moved. - - - - - Indicates whether a button is currently pressed. - - - - - Returns a value that indicates which buttons to show enabled. Other buttons are disabled. - - - - - Gets / sets the button list. - - - - - Gets / sets the boundaries of this bar. - - - - - Indicates the flat look status for buttons. - - - - - Indicates whether any button is dirty or sets all buttons dirty. - - - - - Indicates whether any button is enabled or sets all buttons enabled / disabled. - - - - - Indicates whether any button is in hovered state. - - - - - Indicates whether any button is in pushed state. - - - - - Indicates whether any button is in checked state. - - - - - Indicates whether any button is in DragTarget state or sets DragTarget state for the specified index. - - - - - Gets / sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets / sets the current tab. - - - - - Gets / sets the total logical width of this button bar including all buttons. If the logical - width is greater than the actual width, the tab bar lets the user scroll it. - - - - - Gets / sets the current scroll position. - - - - - Indicates whether the user is in the process of dragging a tab. - - - - - A collection OF items. - - - - - Initializes a and associates it with an owner. - - The owner. - - - - Adds an array of InternalTab into the list. - - An InternalTab array. - Available to enable serialization using AddRange in designer. - - - - Adds an to the list. - - The to be added. - The index of the added value. - - - - Inserts an at the specified index. - - The to be added. - The index of the added value. - - - - Returns the index of the specific tab. - - The tab to search for. - The index of the tab; -1 if not found. - - - - Indicates whether the specified object is a member of this collection. - - The object to search for. - True if is a member; False otherwise. - - - - Removes an from the collection. - - The to be removed. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Gets / sets the at the specified index. - - - - - - - - - - - - - - - Special graphics for text measuring. - - - - - Default tab font. - - - - - Indent from borders to the text. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets tab preferred size. - - - - - - - Returns the overlapped size of the tabs. - - - - - - Releases the unmanaged resources used by the Component and optionally releases the managed resources. - - to release both managed and unmanaged resources; to release only unmanaged resources. - See the documentation for the class and its Dispose member. - - - - Measures the text. - - The text to be measured. - The font of the text. - Size of the text. - - - - Draws the text. - - - - - Draw text by native GDI API. - - - - - Returns the parent. - - - - - Bounds of the tab. - - - - - Gets the region which contains tab bounds. - - - - - Gets the tab. - - - - - Text of the tab. - - - - - Font of the active tab. - - - - - Font of the active tab. - - - - - Color used to draw the text of the tab. - - - - - Get special measure graphics that allowing measuring without control creation. - - - - - Gets metro highight color - - - - - Gets metronormal color. - - - - - - - - - - - Gets or sets metrohighlight color - - - - - Gets or sets metro normal color. - - - - - Office2016Colorful Renderer - - - - - Holds the Visualstyle - - - - - Constructor - - - - - - Gets highight color - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - Override - - - - - - - Override - - - - - - - - - Static method has VisualStyles - - - - - - - - - Gets or sets highlight color - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016WhiteTabsRenderer - - - - - Constructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016DarkGrayTabsRenderer - - - - - Contructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Office2016DarkGrayTabsRenderer - - - - - Constructor - - - - - - Gets normal color. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Gets or sets normal color. - - - - - Gets the color of PushedTabBackColor - - - - - Gets the color of NormalTabBackColor - - - - - Gets the border color of PushedTab - - - - - Gets the bottom line color of PushedTab - - - - - Gets the border color of PushedTab - - - - - Gets the SeparatorLine Color - - - - - Gets the Background Color - - - - - Gets the ThumbNormal Color - - - - - Gets the ThumbHoverColor - - - - - Gets the ThumbPushedColor - - - - - Gets the ThumbNormal Border Color - - - - - Gets the Scrollers Background Color - - - - - Gets the Arrow Color - - - - - Gets the NormalTabFore Color - - - - - Gets the HoverTabFore Color - - - - - Gets the PushedTabFore Color - - - - - Gets the InternalArrow Color - - - - - Gets the InternalArrow HoverColor - - - - - Gets the InternalArrowHover BackColor - - - - - Gets the AddTabButtonColor - - - - - Gets the AddTabButtonHoverColor - - - - - Gets the DottedIconColor - - - - - Blend used to draw the tab. - - - - - Blend used to draw the tab. - - - - - Blend used to draw the tab. - - - - - - - - - - - - A control for creating Tabbed Dialogs or Excel workbook type - windows. This control provides a row of tabs that the - user can select from one at a time. After each selection, a notification - is provided that allows for changing of UI. - The tab bar can share the row with an associated scrollbar. The - user can adjust the width of the tab bar and increase the scrollbar's - size by dragging a splitter found in the middle of the row. - - - - - Default size of the control - - - - - Indicates whether TabBar is mouse pointed or not - - - - - Specifies AddNewPageButton Image rendering bound - - - - - Holds the TabBarSplitter Visualastyle - - - - - Creates the ToolTip. - - - - - Creates the text box during edit - - - - - - - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - To get the Bounds of the AddNewButton. - - - - - Initializes a new . - - - Initializes a new . - - - - - Initializes a new with a scrollbar. - - The scrollbar to be displayed to the right of the tab bar. - - - - Indicates whether edit custom control lost its focus. - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - Assign the text to the TabBar - - - - - To Specify EditOnTabPage to be serialized or not - - - - - Occurs when the user clicks on a tab. - - The tab that was clicked. - - Sets the . - - - - - Raises the event. - - A that contains the event data. - - - - Occurs when the users drags the splitbar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user moved the splitter bar. - - The source of the event. - - - - Raises the event. - - Event data. - - - - Repaints the splitter bar. - - The source of the event. - - - - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - - - - Resets the AddButtonHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - - - - - - - - - - Calculates the boundaries of the tab bar (both tabs and arrows) within the current control. - - The boundaries of the tab bar. - - Will return unless overriden in derived class. - - - - - Calculates the boundaries of the tab bar child (without arrow bar) within the current control. - - The size of the tab bar. - The boundaries of the inner tab bar. - - - - Calculates the boundaries of the arrow bar within the current control. - - The boundaries of the arrow bar. - - - - - - - Creates the inner tab bar that displays the tabs. - - The for the inner tabs. - - - - - - - Creates an instance of the and initializes it with the layout information. - - The initialized . - - - - - - - - - - - - - - - Finds and returns the tab that holds the specified item as cookie. - - - - - Removes the tab that holds the specified item as cookie. - - - - - - - - Removes all tabs. - - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - The new tab index. - The object for the tab. - False if cancelled; True if successful. - - - - Raises the event. - - The new tab index. - The object for the tab. - - - - - - - Occurs after the selected tab index has changed. - - - - - Occurs before the selected tab index is changing. - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Enable the edit mode in TabBarPage - - - - - Occurs when a tab is dragged by the user. You can set e.Cancel = True - to prevent dragging a tab. - - - - public Form1() - { - InitializeComponent(); - - this.tabControl1.Bar.DraggingTab += new TabMovedEventHandler(Bar_DraggingTab); - } - - private void Bar_DraggingTab(object sender, TabMovedEventArgs e) - { - Console.WriteLine("Bar_DraggingTab {0}, {1}", e.Tab, e.DestTab); - e.Cancel = true; // Do not allow dragging the tab - } - - - - - Occurs when the property has changed. - - - - - Gets/Sets whether to show/hide AddNewButton Image - - - - - Gets/Sets the Hover color for AddButton. - - - - - Gets/Sets AddNewTabBarOption Image in TabBarSplitterControl - - - - - Gets/Sets TabBarPage which is being mouse pointed - - - - - Gets / sets the delta used for drawing the tabs. - - - - - Gets / sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets / sets the inner tab bar that displays the tabs. - - - - - Gets or sets a that holds an array of buttons. - - - - - Gets or sets a that holds an array of buttons. - - - - - - - - Gets / sets the width of the tab bar relative to the width of the client bounds. - - - - - Gets / sets the index of the currently selected tab in the strip, if there - is one. If the value is -1, there is currently no selection. If the - value is 0 or greater, then the value is the index of the currently - selected tab. - - - - - Enables / disables the resizing of tab bar. - - - - - Returns the list of tabs displayed in the tab bar. - - - - - Gets or sets the visual style of the tabBar. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - - Returns the imageList the control points at. This is where tabs that have imageIndex - set will get their images from. - - - An image list control. - - - - - Occurs when the has changed. - - - - - Gets / sets the cookie of the current selected tab or sets the tab with the specified cookie. - - - - - Indicates whether ToolTips are being shown for tabs that have ToolTips set on - them. - - - - - Returns the number of tabs in the strip. - - - - - - - - Class to derive the TextBox to Edit - - - - - - Provides design-time functionality for the . - - - provides a way to add and remove - tabs at design-time, as well as tab hit testing logic at design-time. - - - - - - - - - - - - - - - - - Called when the current selection changes. Here we check to - see if the newly selected component is one of our tabs. If it - is, we make sure that the tab is the currently visible tab. - - - - - Called when the tab property changes. We just set a flag here to - indicate to the later index changed event that the change was the - result of a property change, so there is no need to update the - selection. - - - - - Called when the selected tab changes. This accesses the design - time selection service to surface the new tab as the current - selection. - - - - - Accessor method for the property on - . - - - The selected index. - - - This property is shadowed at design-time. - - - - - TabPage implements a single page of a tab bar control. It is essentially - a panel that can host other child controls. The TabBarSplitterControl will - display the text property of this control as a label in the associated tab. - - - - - The size of the GESTURECONFIG. - - - - - The size of the GESTUREINFO. - - - - - The starting Gesture points - - - - - The ending gesture point. - - - - - Initialize the last vertical scroll value. - - - - - Initialize the last horizontal scroll value. - - - - - Handles the gesture information. - - The Messagge - - - - Back color for TabBarPage Tab. - - - - - - - - Holds TabBar back color - - - - - To Reset TabBarColor - - - - - Indicate whether to serialize TabBarColor - - - - - Indicates whether we can split the rows at the given y coordinate. - - The vertical position in percentages of the splitter control's height. - True if rows were split successfully; False if they were already split or the operation aborted. - - - - Indicates whether we can split the columns horizontally at the specified x coordinate. - - The horizontal position in percentages of the splitter control's width. - True if columns were split successfully; False if they were already split or the operation aborted. - - - - Raises the event. - - A that contains the event data. - - - - Raises the event. - - A that contains the event data. - - - - Closes the specified pane. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Closes the splitter panes at the specified row. - - The zero-based index for the splitter pane row. - - - - Closes the splitter panes at the specified column. - - The zero-based index for the splitter pane column. - - - - Indicates whether the scrollbar belongs to the active pane. - - The control associated with the scrollbar. - Specifies the vertical or horizontal scrollbar. - True if active; False otherwise. - - - - - ScrollControl checks IsActive to find out if it is target of a HScroll event - - protected virtual void OnHScroll(object sender, ScrollEventArgs se) - { - try - { - IScrollBarFrame sbf = GetScrollBarFrameOfComponent(this); - if (sbf != null && !sbf.IsActive(this, ScrollBars.Horizontal)) - return; - - ... - - - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a pane will be created on demand with a call to . - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the splitter pane at the specified row and column. If there is no pane found at the - specified row and column a null reference will be returned. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - The control at the pane. - - - - Returns the row and column index for a child pane. - - The control to search for. - A placeholder where the row is returned. - A placeholder where the column is returned. - True if the control is a pane; False if the control was not a child pane. - - - - Sets the active pane in the splitter control specified by the row and column indices. - - The zero-based index for the splitter pane row. - The zero-based index for the splitter pane column. - - - - Indicates whether there is a next or previous pane that can be activated. - - True if previous pane should be activated; False if next pane should be activated. - True if activating next or previous pane is good; False if already at last or first pane. - - - - Activates the next or previous pane. - - True if previous pane should be activated; False if next pane should be activated. - - - - Occurs when the user drags the splitterbar. - - The source of the event. - The current horizontal position in pixels. - The current vertical position in pixels. - - - - Occurs after the user has moved the splitter bar. - - The source of the event. - - - - Repaints the splitter bar. - - The source of the event. - - - - Handles the WM_SETCURSOR message. - - - - - - - - - - - - - - - - - - Initializes a new TabBarPage. - - - Constructs a TabBarPage with text for the tab. - - - The text for this tab. - - - - - Initializes a new TabBarPage. - - - - - - - - Given a component, this retrieves the tab page that it is parented to or - NULL if it is not parented to any tab page. - - - The component to check. - - - A TabBarPage that the component is parented to or NULL if - no such page exists. This will return the component if it - is an instance of TabBarPage. - - - - - - - - - - - Raises the event. - - Event data. - - - - Gets or sets the visibility of the control. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Raises the event. - - - - - - Raises the event. - - Event data. - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - - - - Activates a specified control. - - The being activated. - True if the control is successfully activated; False otherwise. - - The control must be a child of the container control. - - - - - - - - - - - - - - - - - - - - - - - Raises the event. - - An that contains the event data. - - - - Indicates whether this control contains focus. If - implements , the - method is called on the . - - True if the control or any child control has focus; False otherwise. - - - - Raises the event. This method is called when the control - or any child control gets focus and this control did not have focus before. - - - Inheriting classes should override this method instead of overriding - because is also called when child controls get focus and it - is not called when focus is moved within child controls of this control. - - - - - Raises the event. This method is called when the control - or any child control loses focus and the newly focused control is not a child of this control. - - - Inheriting classed should override this method instead of overriding - because is also called when child controls lose focus and it - is not called when focus is moved within child controls of this control. - - - - - This method is called if the control's notification occurs - while handling a event. This typically occurs if a - message box is displayed from a event handler. - - - - - - - - Occurs when the property has changed. - - - - - Occurs when the property has changed. - - - - - Occurs when the vertical splitter position has changed. - - - - - Occurs when the horizontal splitter position has changed. - - - - - Occurs when the splitter layout has changed. - - - - - Returns the parent splitter frame. - - - - - Returns the number of visible row panes. - - - - - Returns the number of visible column panes. - - - - - Occurs after the control to be displayed in a new pane has been created. Use this - event to implement additional initialization for the new control. - - - PaneCreated is an ideal hook to add handler for events in the new control. - - - - - Occurs after a row or column is hidden and before the control that is displayed in the pane - is disposed. Use this event to implement additional clean up for the control before - is called. - - - PaneClosing is an ideal hook to unwire event handlers from the control. - - - - - Gets / sets the active pane in the splitter control. - - - - - - - - - - - Enables / disables this page in a . - - - - - Gets or set the value indicating whether the TabBarPage is enabled or not - - - - - - - - - - - - - - Gets / sets the ToolTip text for the tab that will appear when the mouse hovers - over the tab and the TabBarSplitterControl's showToolTips property is True. - - - - - Sets the Maximum width for the TabBarPage - - - - - Gets or sets the visibility of the control. - - - - - Gets / sets a value indicating what split behavior is supported. Rows, columns or both. - - - - - Gets / sets the horizontal splitter position in percentages of the splitter control's width. - - - - - Gets / sets the vertical splitter position in percentages of the splitter control's height. - - - - - Gets / sets the that holds information about current vertical and horizontal split positions. - - - - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the method has been called. and resets this flag. - - - - - Indicates whether the has been called. resets this flag. - - - - - Indicates whether both has been called. resets this flag. - - - - - Indicates whether both has been called. resets this flag. - - - - - Occurs when both and occurs. - - - - - Gets / sets the icon displayed on the tab. - - An Icon value. - - - - Gets or sets back color for TabBarPage Tab. - - - - - Creates a new TabBarPageControlCollection. - - - The owner of this collection. This is the control whose child - controls we are to represent. - - - - - Adds a child control to this control. The control becomes the last control - in the child control list. If the control is already a child of another - control, it is first removed from that control. The tab page overrides - this method to ensure that child tab pages are not added to it, as these - are illegal. - - The child control to be added. - If the specified control is a toplevel control or if a circular control reference would result. - - - - Provides design-time functionality for - controls. - - - - - - - - - - - - - - TabBarPageAdding Event DelegateHandler - - - - - TabBarPageAdding event arguement class - - - - - TabBarPageAdding event arguement class initializer - - - - - LabelEditing Event DelegateHandler - - - - - LabelEditing event arguement class - - - - - LabelEdit ends event arguement class initializer - - - - - Cancel args - - - - - Gets the TabBarText - - - - - Cancel the selection - - - - - LabelEditing Event DelegateHandler - - - - - LabelEditing event arguement class - - - - - LabelEdit ends event arguement class initializer - - - - - Gets the TabBarText - - - - - TabBarMouseEventArgs event delegate handler - - - - - TabBarMouseEventArgs class - - - - - Holds button instances. - - - - - Holds TabBarPage which is selected. - - - - - Holds bar location. - - - - - TabBarSelectionArgs class initializer - - - - - Gets the Mouse Button - - - - - Gets the selected TabBarPage. - - - - - Gets the TabBounds bounds. - - - - - Gets Mouse Pointer Location - - - - - Provides functionality for displaying several controls - in an Excel-like workbook control. Each might optionally - support splitting its view with a dynamic splitter frame. - - - - - Variable for TabBar page is in EditMode - - - - - Reset the Office2013Style on StyleChange - - - - - Lock Window On style Change - - - - - - - Default size of the control - - - - - Specifies office 2007 color scheme. - - - - - Style of the control. - - - - - Color table for Office2007 visual style. - - - - - Used to move the TabBarPage in TabBarSplitterControl - - - - - Initializes a new . - - - - - - - - Scale the control based on the scale factor passed in the argument. - - value to scale the factor based upon. - - - - - - - - - - - - - - - - Overridden method of refresh. - - - - - Overridden method of Tostring() - - - - - - Called when the user is dragging a tab. - - The source of the event. - Event data. - - - - Called when the user finishes dragging a tab. - - The source of the event. - Event data. - - - - - - - - - Get or Set of Skin Manager Interface - - - - - - - To raise TabBarPageAdding Event - - - - - - To raise LabelEditEnds Event - - - - - - Cancels the editable state of the Tabpage. - - - - - To raise LabelEditBegin Event - - - - - - To raise TabBarMouseDown Event - - - - - - Indicates whether to Serialize ActivePageBorderColor API - - - - - - Resets the ActivePageBorderColor. - - - - - Indicates whether to Serialize ShowMetroSeperator - - - - - - Resets the ShowMetroSeperator. - - - - - Indicates whether to Serialize EnableOffice2013Style API - - - - - - Resets the EnableOffice2013Style. - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - Resets to default. - - - - - Resets to default. - - - - - - - - - - - Creates the . - - The new . - - - - - - - - - - - - - - - - - - - - - - Move the Tabbarpage with respect to given pages. - - - - - - - Move Tabbarpage with respect to given index. - - - - - - - Hides the . - - - - - - Activates the next or previous page. - - True if previous pane should be activated; False if next pane should be activated. - - - - - - - - - - - - - To reset LabelEdit - - - - - To Specify LabelEdit to be serialized or not - - - - - To reset EditOnTab - - - - - To Specify EditOnTab to be serialized or not - - - - - Resets the AddButtonHoverColor - - - - - ShouldSerialize the AddButtonHoverColor. - - - - - - - - - - - - - - - - Occurs after the active page has changed. - - - - - Occurs before the active page is changed. - - - - - Occurs when the TabBarPage is show or Hide or Add or Remove. - - - - - Occurs when Mouse pointer rest on TabBarPage bounds - - - - - Occurs when Mouse pointer leave TabBarPage bounds - - - - - Occurs when Mouse pointer leave TabBarPage bounds - - - - - Occurs after edting the TabBarPage. - - - - - Occurs before edting the TabBarPage. - - - - - Triggers mouse down occurs on TabBar - - - - - Gets or sets value to enable or disable the Touchmode to the controls. - - Scale factor will be updated automatically if scalefactor is equal to 1 - - - - Returns the tab bar. - - - - - Indicates whether Icons should be displayed in the tabs. - - - - - Gets the Office16themes Colors - - - - - Gets or sets the visual style of the tabBarSplitterControl. - - - - - Gets or sets office 2007 color scheme. - - - - - Gets color table for Office2007 visual style. - - - - - Gets or sets office 2007 style scroll bars. (overridden property) - - - - - Gets or sets office 2007 scroll bars colorScheme. (overridden property) - - - - - - - - Gets or sets the index of the active page. - - - - - Specifies the color with which the ActivePageBorder bottom border should be drawn. - - - - - Gets or sets whether to show/hide the Seperator in MetroStyle - - - - - Gets or sets value to enable or disable the EnableOffice2013Style in MetroStyle - - - - - Gets or sets the currently visible TabBarPage. - - - - - Gets or sets the number of milliseconds to wait before repeatedly firing scroll event. - - - - - Gets or sets the color of the arrows in the enabled buttons. - - - - - Gets or sets the color of the arrows in the disabled buttons. - - - - - Returns the list of TabBarPages displayed in the TabBar. Each TabBarPage - will have a tab associated with it. - - - - - Gets or sets the delta used for drawing the tabs. - - - - - Gets or sets the scroll behavior of this tab bar: pixel or tabs. - - - - - Gets or sets the size factor with that TabBar size to be increased - - - - - Gets/Sets whether to display AddNewPageTabBarPage Option or not - - - - - Enable the edit mode when Double Click on TabBarPage - - - - - Enable the edit mode in Selected TabBar - - - - - Gets/Sets background image for AddNewTabBarPageButton - - - - - Gets/Sets the Hover color for AddButton. - - - - - Gets or sets the width of the tab bar relative to the width of the client bounds. - - - - - Enables or disables the resizing of tab bar. - - - - - Gets or sets the arrow buttons to be shown in an arrow bar. - - - - - A collection of objects. - - - You can access this collection with the of a . - - - - - Initializes a new and - associates it with a . - - The that manages this collection. - - - - Returns an enumerator that lets you enumerate through the list of items. - - An enumerator. - - - - Removes an item at the specified index. - - The item index. - - - - Clears all entries from the list. - - - - - Inserts a at the specified index. - - The index where the page should be inserted. - The page to be inserted. - - - - Adds a to the collection. - - The page to be added. - - - - Adds an array of to this collection. - - The pages to be added. - - - - Indicates whether the specified belongs to this collection. - - The page to be tested. - True if page belongs to collection; False otherwise. - - - - Returns the index of the specified page to be queried. - - The page to look up. - The zero-based index of the page; -1 if not found. - - - - Removes a page from the collection. - - The page to remove. - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Returns the number of pages. - - - - - Returns False. - - - - - Gets / sets the at the specified index. - - - - - Specifies the style with which tabBarSplitterControl will appear. - - - - - Default appearance. - - - - - Office 2007-like appearance. - - - - - Metro like appearance. - - - - - Office2016Colorful like appearance. - - - - - Office2016White like appearance. - - - - - Office2016DarkGray like appearance. - - - - - - - Provides design-time functionality for the . - - - provides a way to add and remove - tabs at design-time, as well as tab hit testing logic at design-time. - - - - - Initializes a new TabBarSplitterControlDesigner. - - - - - - Indicates whether the - specified point was within the bounds of the component. - - - - - - - - Given a component, this retrieves the tab page that it is parented to or - NULL if it is not parented to any tab page. - - - The component to check. - - - A TabPage that the component is parented to or NULL if - no such page exists. This will return the component if it - is an instance of TabPage. - - - - - - - - Initializes the designer using the specified component. - - The component to associate this designer with. This must always be an instance of the control. - - - - - Called in response to a verb to add a tab. This adds a new - tab with a default name. - - - - - This is called in response to a verb to remove a tab. It removes - the current tab. - - - - - Called when the current selection changes. Here we check to - see if the newly selected component is one of our tabs. If it - is, we make sure that the tab is the currently visible tab. - - - - - Called when the tab property changes. We just set a flag here to - indicate to the later index changed event that the change was the - result of a property change, so there is no need to update the - selection. - - - - - Called when the selected tab changes. This accesses the design - time selection service to surface the new tab as the current - selection. - - - - - Gets / sets the persisted active page index. - - - - - Indicates whether to draw a grid for the control. - - - if a grid should be drawn; - otherwise. - - - - - - Gets / sets the design-time verbs supported by the component associated with the designer. - - - An array of objects. - - - The verbs returned by this method are typically displayed in a right-click - menu by the design-time environment. The return value may be NULL if the - component has no design-time verbs. When a user selects one of the verbs, the - performVerb() method is invoked with the the corresponding DesignerVerb object. - NOTE: A design-time environment will typically provide a "Properties..." entry - on a component's right-click menu. The getVerbs() method should therefore not - include such an entry in the returned list of verbs. - - - - - This class fully encapsulates the painting logic for a tab in a TabBarSplitterControl. - - - - - - - - - - - - - - Draws text by native GDI API. - - Graphics object which ised for drawing. - Font of the text. - Color of the text. - Bounds of tge text. - Text which has to be drawn. - - - - A form that hosts a . The fills the whole form. - - - - public class NewWorkbookFile : BasicAction - { - int windowCount = 0; - WorkbookModel workbook; - public override void InvokeAction(object sender, EventArgs e) - { - windowCount++; - workbook = new WorkbookModel("Workbook"); - GridModel sheet1 = new GridModel(); - SampleGrid.SetupGridModel(sheet1); - GridModel sheet2 = new GridModel(); - SampleGrid.SetupGridModel(sheet2); - - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 1", sheet1)); - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 2", sheet2)); - - WorkbookForm doc = new WorkbookForm(workbook); - doc.Text = workbook.Name + windowCount; - doc.MdiParent = MainWindow; - doc.Show(); - } - } - - - - - - Overloaded. Initializes a new and associates it with a . - - The view to be displayed in the form. - - - - Initializes a new and associates it with a new default - that is created for the specified . - - The model for the workbook view to be displayed in the form. - - - - Initializes a new . - - - - - Cleans up any resources being used. - - - - - Raises the ThemeChanged event. - - An EventArgs that contains the event data. - - The OnThemeChanged method also allows derived classes to handle the event - without attaching a delegate. This is the preferred technique for - handling the event in a derived class. - Note to Inheritors: When overriding OnThemeChanged in a derived - class, be sure to call the base class's OnThemeChanged method so that - registered delegates receive the event. - - - - - Gets / sets the view that is displayed in the form. - - - - - Indicates whether themes are enabled for this control. - - - - - Fired when the ThemesEnabled property changes. - - - - - Provides the data / model part for an Excel-like Workbook display. A has a - with multiple s to display in the workbook. - - - This class can be serialized into a serialization stream. - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in this object. - - - - - Initializes a new . - - - Initializes a new and sets a name for the workbook. - - The name of this workbook. - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - - - - Raises the event. - - Event data. - - - - Raises the event. - - Event data. - - - - - - - Occurs when the has changed. - - - - - Occurs when the has changed. - - - - - Returns the collection with items. - - - - - Gets / sets the active for this model. - - - - - Gets / sets the name for this workbook. - - - - - Provides functionality for displaying several controls in an Excel-like workbook. - - - A is associated with a . The - has a collection. For each of the objects in - the collection of the , a - is created and displayed in this . - - - - public class NewWorkbookFile : BasicAction - { - int windowCount = 0; - WorkbookModel workbook; - public override void InvokeAction(object sender, EventArgs e) - { - windowCount++; - workbook = new WorkbookModel("Workbook"); - GridModel sheet1 = new GridModel(); - SampleGrid.SetupGridModel(sheet1); - GridModel sheet2 = new GridModel(); - SampleGrid.SetupGridModel(sheet2); - - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 1", sheet1)); - workbook.Worksheets.Add(new WorksheetModel(workbook, "Sheet 2", sheet2)); - - WorkbookForm doc = new WorkbookForm(workbook); - doc.Text = workbook.Name + windowCount; - doc.MdiParent = MainWindow; - doc.Show(); - } - } - - - - - - Initializes a new for the specified . - - The which holds data to be displayed in this view. - - - - - - - - - - Creates the . - - The new . - - - - - - - Occurs when the view is activated. - - - - - Returns the which holds data to be displayed in this view. - - - - - A collection of items. - - - You access this collection with the property of - a . - - - - - Initializes a new and - associates it with a . - - The that manages this collection. - - - - - - - Provides the data / model part for a worksheet in an Excel-like Workbook display. A is a member of the - collection of a . - - - This class can be serialized into a serialization stream. - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in a . - - - - - Initializes a new . - - - Initializes a new and associates it with a . - - The this sheet belongs to. - The name of this sheet. - - - - Initializes a new and associates it with a . - - The this sheet belongs to. - The name of this sheet. - The object with data to be displayed in this control, e.g. a Syncfusion.Windows.Forms.Grid.GridModel - with grid data. The object should implement the interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - - - - Creates the that knows how to display the in a form. - - The to be displayed in the - - - The object should implement interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Raises the event. - - EventArgs.Empty. - - - - Occurs when the property is changed. - - EventArgs.Empty. - - - - Raises the event. - - - - - - Raises the event. - - EventArgs.Empty. - - - - Occurs when the is changed. - - - - - Occurs when the is changed. - - - - - Occurs when the property is changed. - - - - - Occurs when the property is changed. - - - - - Gets / sets the name of this worksheet. - - - - - Gets / sets the object with data to be displayed in this control, e.g. a Syncfusion.Windows.Forms.Grid.GridModel - with grid data. The object should implement interface and be able to create a - object to be displayed as pane in a . will create a - for example. - - - - - Gets / sets the ToolTip text for the tab that will appear when the mouse hovers - over the tab and the TabBarSplitterControl's showToolTips property is True. - - - - - Indicates whether this worksheet is visible in the parent workbook. - - - - - Returns the this sheet is associated with. - - - - - Represents a collection of objects. - - - - - Initializes a new instance of the class. - - - Initializes a new instance of the class. - - - - - Initializes a new from a serialization stream. - - An object that holds all the data needed to serialize or deserialize this instance. - Describes the source and destination of the serialized stream specified by info. - - - - Releases any resources used. - - - - - Initializes a new instance of the class containing the - elements of the specified source collection. - - A with which to initialize the collection. - - - - Initializes a new instance of the class containing the specified array of objects. - - An array of objects with which to initialize the collection. - - - - Returns the index of a sheet with the specified name. - - The name of the sheet to find. - The index of the sheet with the specified name; -1 if not found. - - - - Adds the specified to the collection. - - The to add. - - The index at which the new element was inserted. - - - - - Overloaded. Copies the elements of the specified array to the - end of the collection. - - An array of type containing the objects to add to the collection. - - - - Adds the contents of another to the end of the collection. - - A containing the objects to add to the collection. - - - - Indicates whether the collection contains the specified . - - The to search for in the collection. - - - if the collection contains the specified object; - otherwise. - - - - - Copies the collection objects to a one-dimensional instance beginning at the - specified index. - - - The one-dimensional that is the destination of the values copied from the collection. - - The index of the array at which to begin inserting. - - - - Returns the index in the collection of the specified , if it exists in the - collection. - - The to locate in the collection. - - The index in the collection of the specified object, if found; -1 otherwise. - - - - - Inserts the specified into the collection at the specified index. - - The zero-based index where the specified object should be inserted. - The to insert. - - - - Removes the specified from the collection. - - The to remove from the collection. - - - - Moves a worksheet from one position to another. - - The original index of the worksheet. - The new index of the worksheet. - - - - Called when the order of the worksheet has changed. - - The original index of an affected worksheet. - The new index of an affected worksheet - The reason for the change. - - - - - - - - - - - - - - - - - - - Suspend updating the display. - - - - - Resumes updating the display. - - - - - Creates a new empty and names it "Sheet #". - - The this new sheet is added to. - The new . - - - - Occurs when the order of sheets has been changed. - - - - - Gets / sets the at the specified index. - - - - - Indicates whether was called. - - - - - WorksheetView implements a single page in a . It is essentially a panel that hosts a child control - that is created from the of a . - - - Multiple controls can share the same . Each - that is displayed in a is associated with a from the - collection in a object. - - - - - Initializes a new for an existing and a - that displays this sheet. - - The that manages the data for this view. - The that displays this sheet as a page. - - - - - - - - - - - - - - - - Returns the that displays this sheet as a page. - - - - - Returns the that manages the data for this view. - - - - - Interface for XmlSerializationReader children. - - - - - Returns deserialized object. - - Deserialized object. - - - - Interface for XmlSerializationWriter children. - - - - - Serializes given object. - - - - - Inherits XmlSerializer and uses manual Xml reader and writer. - - - - - Serialization reader. Used in overriden CreateReader() method. - - - - - Serialization writer. Used in overriden CreateWriter() method. - - - - - Creates new instance of SerialiserWrapper. - - Serialization reader. - Serialization writer. - - - - Forces using of manual reader. - - Xml serialization reader to use. - - - - Forces using of manual writer. - - Xml serialization writer to use. - - - - Serialization. - - - - - - - Deserialization. - - - - - - - Class for managing custom Xml serializers. - - - - - Gets serializer for given type. - - Type to get serializer for. - Custom serializer instance or standard XmlSerializer instance if it canot be found. - - - - Creates files with code of XmlSerializationReader and XmlSerializationWriter derived classes - for manual serialization of sepcified types. - - - - - Temporary subdirectory for storing temporary files. - - - - - Mask for searching .cs files. - - - - - String that should be removed from created code. - - - - - Initial namespace. - - - - - Place in code where writer base type is defined. - - - - - Place in code where reader base type is defined. - - - - - Expression for implementing IXmlSerializationWriter. - - - - - Expression for implementing IXmlSerializationReader. - - - - - Name of Xml reading method in reader class. - - - - - Name of Xml writing method in reader class. - - - - - Initial name of reader class. - - - - - Initial name of writer class. - - - - - Ouput path to store .cs files. - - - - - Namespace of output classes. - - - - - List of names of types to create serializer classes for. - - - - - XmlSerializer.tempAssembly field info. - - - - - XmlSerializer.methodIndex field info. - - - - - TempAssembly.methods field info. - - - - - TempAssembly.TempMethod.readMethod field info. - - - - - TempAssembly.TempMethod.writeMethod field info. - - - - - Creates new instance of XmlSerializersCreator. - - Ouput path to store .cs files. - Namespace of output classes. - List of names of types to create serializer classes for. - - - - Static constructor. Initializes data for reflexion. - - - - - API function for setting value to environment variable. - - Name of variable. - New value. - True if succeeded, otherwise false. - - - - Creates needed files with required classes. - - - - - Gets names of Xml reading and writing methods from given Xml serializer. - - Xml serializer instance to extract data from. - Array of two strings with required names. - - - - Changes classes names and saves code to files. - - Generated text with code. - Name of type to create serializers for. - Path to the directory where result files should be stored. - - - - Adds interfaces implementation to code. - - String with code to modifie. - String with corrected code. - - - - Start gradient color. - - - - - End gradient color. - - - - - Gradient style. - - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Create gradient brush. - - Rectangle it sketch. - Gradient brush. - - - - - - - Occurs when start color changed. - - - - - Occurs when end color changed. - - - - - Occurs when gradient mode changed. - - - - - Get or set start gradient color. - - - - - Get or set end gradient color. - - - - - Get or set gradient style. - - - - - Occurs when this class changed. - - - - - Occurs when start color changed. - - - - - Occurs when end color changed. - - - - - Occurs when gradient mode changed. - - - - - - - - - - - - - - String format outputing text. - - - - - This component style. - - - - - Skip all evants if QuietMode runing. - - - - - User icon size thumbnail. - - - - - User icon as default mode. - - - - - User icon as select mode. - - - - - Order of the drawing button. - - - - - User name. - - - - - User help. - - - - - Active mode as mouse overhead component. - - - - - Select mode as user password enter. - - - - - GraphicsPath for rectangle in user icon. - - - - - GraphicsPath for rectangle in user TextBox. - - - - - Images List. image can be choosed from this list and be displayed as - menu item icon. - - - - - Image index from image list. - - - - - Image index from image list. - - - - - Regions user icon. - - - - - Neeeded recalculate layout graphics element. - - - - - Regions for user name. - - - - - Regions for user help. - - - - - Collection of Buttons - - - - - Button to enter password. - - - - - TextBox for password enter. - - - - - TextBox layout. - - - - - Icon button password enter. - - - - - Text Rendering Hint. - - - - - Auto hide text box as control lost focus. - - - - - Auto reset password as text box show. - - - - - Constructor this component. - - - - - - - - - - Begin initialize. - - - - - Begin initialize. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Occurs when quiet mode changed. - - - - - Occurs when thumbnail size changed. - - - - - - Occurs when default icon changed. - - - - - - Occurs when select icon changed. - - - - - - Occurs when user name changed. - - - - - - Occurs when help string changed. - - - - - - Occurs when image list changed. - - - - - - Occurs when default image index changed. - - - - - - Occurs when password box changed. - - - - - Occurs when button enter icon changed. - - - - - - - - Occurs when user enter password. - - - - - Occurs when component style changed. - - - - - - - Occurs when text rendering hint changed. - - - - - Occurs when text box create. - - - - - Occurs when text box initialize. - - - - - Text box constructor. - - - - - Occurs when auto hide text box changed. - - - - - Occurs when auto reset password changed. - - - - - Draw rounded rectangle. - - X - coordinate of rectangle. - Y - coordinate of rectangle. - Width rectangle. - Heigth rectangle. - Radius evening-out. - GraphicsPath rounded rectangle. - - - - Calculate layout graphics element. - - - - - Calculate user name layout. - - - - - - - - - Calculate user help layout. - - - - - - - - - Calculate text box layout. - - - - - - - Calculate buttons layout. - - - - - - - Draw icon shadow. - - Graphics for paint. - - - - Retrieves object at the specified screen coordinates. - - The horizontal screen coordinate. - The vertical screen coordinate. - Retrieves the child object at the specified screen coordinates. - - - - Retrieves object at the specified screen coordinates. - - Screen coordinate - Retrieves object at the specified screen coordinates. - - - - Mirror RectangleF for RigthToLeft representation. - - RectangleF as mirror. - - - - Mirror Region for RigthToLeft representation. - - Region as mirror. - - - - - Mirror GraphicsPath for RigthToLeft representation. - - GraphicsPath as mirror. - - - - Mirror all graphics element for RigthToLeft representation. - - - - - - Get or set component style. - - - - - Get or set user icon size. - - - - - Get or set image list user icons. - - - - - Get or set user icon index from image list. - - - - - Get or set user icon index from image list. - - - - - Get or set default user icon. - - - - - Get or set select user icon. - - - - - Get or set user icon as select mode. - - - - - Get or set user name. - - - - - Get or set user help. - - - - - True - do not raise any events, otherwise False. - - - - - Get active mode as mouse overhead component. - - - - - Get select mode. - - - - - Get password box. - - - - - Get or set Text Rendering Hint. - - - - - Get or set auto hide text box as control lost focus. - - - - - Get or set auto reset password as text box show. - - - - - Collection of buttons. - - - - - Occurs when quiet mode changed. - - - - - Occurs when thumbnail size changed. - - - - - Occurs when default icon changed. - - - - - Occurs when select icon changed. - - - - - Occurs when user name changed. - - - - - Occurs when help string changed. - - - - - Occurs when image list changed. - - - - - Occurs when default image index changed. - - - - - Occurs when password box changed. - - - - - Occurs when button enter icon changed. - - - - - Occurs when when user enter password. - - - - - Occurs when text rendering hint changed. - - - - - Occurs when auto hide text box changed. - - - - - Occurs when auto reset password changed. - - - - - Get user icon for drawing this time. - - - - - Button name. - - - - - Backgroundcolor color of the highlighted button. - - - - - Backgroundcolor color of the pressed button. - - - - - Represent bounds of the button. - - - - - Transparent color of the button's image. - - - - - Index of the button. - - - - - Shows type of the button. - - - - - Indicate whether the button is enabled. - Default value is true. - - - - - Indicate whether the button is Visible. - Default value is true. - - - - - Name of the button. - - - - - Represent button's image. - Default value is null. - - - - - Indicate button's state. - - - - - Draws grayed image. - - - - - Gets or set button bounds. - - - - - Gets or sets transparent image color. - - - - - Gets or sets index of the button. - - - - - Gets or sets type of the button. - - - - - Gets or sets if button is enabled. - - - - - Gets or sets if button is Visible. - - - - - Gets or sets button's name. - - - - - Gets or sets image of the button. - - - - - Gets or sets button' state. - - - - - Class component style. - - - - - Skip events for quiet mode. - - - - - User name text font for active mode. - - - - - User name text color for default mode. - - - - - User name text color for active mode. - - - - - User name text font for default mode. - - - - - Background gradient style. - - - - - Gradient style rectangle in user icon for default mode. - - - - - Gradient style rectangle in user icon for active mode. - - - - - User name text font for active mode. - - - - - User help text font for default mode. - - - - - User name text color for active mode. - - - - - User name text color for default mode. - - - - - Radius rounded rectangle in icon. - - - - - Radius rounded icons. - - - - - Draw shadow rectangle in icon. - - - - - Shadow size at pixel. - - - - - Constructor this class. - - - - - Draw image rounded rectangle. - - Graphics for paint. - GraphicsPath rounded rectangle. - Active mode. - - - - Draw control background. - - Graphics for paint. - Rectangle it sketch. - - - - Occurs when quiet mode changed. - - - - - Occurs when active font changed. - - - - - - Occurs when RectColorDefault �hanged. - - - - - - Occurs when RectColorActive �hanged. - - - - - - Occurs when user name color default changed. - - - - - - Occurs when user name color active changed. - - - - - - Occurs when font changed. - - - - - Occurs when background start color changed. - - - - - Occurs when background end color changed. - - - - - Occurs when background gradient changed. - - - - - Occurs when active user help font changed. - - - - - Occurs when default user help font changed. - - - - - Occurs when user help color active changed. - - - - - Occurs when user help color default changed. - - - - - Occurs when RectRadius changed. - - - - - Occurs when icon radius changed. - - - - - Occurs when draw shadow changed. - - - - - Occurs when shadow size changed - - - - - Occurs when StyleGradientObject changed. - - - - - - - Get or set user name text font for default mode. - - - - - Get or set user name text font for active mode. - - - - - Get or set help name text color for active mode. - - - - - Get or set help name text color for default mode. - - - - - Get or set background gradient style. - - - - - Get or set gradient style rectangle in user icon for default mode. - - - - - Get or set gradient style rectangle in user icon for active mode. - - - - - User name text font for default mode. - - - - - Get or set User name text font for active mode. - - - - - Get or set user name text color for active mode. - - - - - Get or set user name text color for default mode. - - - - - Get or set radius rounded rectangle in icon. - - - - - Get or set radius rounded icons. - - - - - Get or set draw shadow rectangle in icon. - - - - - Get or set shadow size at pixel. - - - - - True - do not raise any events, otherwise False. - - - - - Occurs when quiet mode changed. - - - - - Occurs when StyleGradientObject changed. - - - - - Occurs when active font changed. - - - - - Occurs when RectColorDefault �hanged. - - - - - Occurs when RectColorActive �hanged. - - - - - Occurs when user name color default changed. - - - - - Occurs when user name color active changed. - - - - - Occurs when font changed. - - - - - Occurs when background start color changed. - - - - - Occurs when background end color changed. - - - - - Occurs when background gradient changed. - - - - - Occurs when active user help font changed. - - - - - Occurs when default user help font changed. - - - - - Occurs when user help color active changed. - - - - - Occurs when user help color default changed. - - - - - Occurs when RectRadius changed. - - - - - Occurs when icon radius changed. - - - - - Occurs when draw shadow changed. - - - - - Occurs when shadow size changed - - -
-
diff --git a/DPM2016/bin/Release/Syncfusion.Shared.Windows.dll b/DPM2016/bin/Release/Syncfusion.Shared.Windows.dll deleted file mode 100644 index 7af9357..0000000 Binary files a/DPM2016/bin/Release/Syncfusion.Shared.Windows.dll and /dev/null differ diff --git a/DPM2016/bin/Release/Syncfusion.Shared.Windows.xml b/DPM2016/bin/Release/Syncfusion.Shared.Windows.xml deleted file mode 100644 index ac0bb16..0000000 --- a/DPM2016/bin/Release/Syncfusion.Shared.Windows.xml +++ /dev/null @@ -1,1380 +0,0 @@ - - - - Syncfusion.Shared.Windows - - - - - - This class holds the name of the Syncfusion.Shared.Windows assembly and provides a helper - routine that helps with resolving types when loading a serialization stream and when - the framework probes for assemblies by reflection. - - - - - The full name of this assembly without version information: "Syncfusion.Shared.Windows" - - - - - A reference to the for the grid assembly. - - - - - The root namespace of this assembly. Used internally for locating resources within the assembly. - - - - - This delegate helps with resolving types and can be used as a eventhandler - for a event. - - The source of the event. - The event data with information about the type. - A reference to the assembly where the type is located. - - Use this handler when reading back types from a serialization stread - saved with an earlier version of this assembly. - - - - public static GridModel LoadSoap(Stream s) - { - try - { - AppDomain.CurrentDomain.AssemblyResolve += new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver); - SoapFormatter b = new SoapFormatter(); - b.AssemblyFormat = FormatterAssemblyStyle.Simple; - GridModel t = b.Deserialize(s) as GridModel; - t.Modified = false; - return t; - } - finally - { - AppDomain.CurrentDomain.AssemblyResolve -= new ResolveEventHandler(SharedWindowsAssembly.AssemblyResolver); - } - } - - - - - - - - Wrapper object for menu actions - - - - - Creates an ActionInfo object - - - - Fully qualified name of Event that will be fired - - - - - Parent form/object that contains the menu that item is in - - - - - The menu item tied to the event (e.g. MenuItem, ToolbarItem, etc) - - - - - - Adds the action to the parent object's list of ActionItems. The parent object must have a "RegisterAction" method. - - - - Parent form/object - - - - - - - - - - - - - - - - - - - A collection that stores 'ActionInfo' objects. - - - - - Initializes a new instance of 'ActionInfoCollection'. - - - - - Initializes a new instance of 'ActionInfoCollection' based on an already existing instance. - - - A 'ActionInfoCollection' from which the contents is copied - - - - - Initializes a new instance of 'ActionInfoCollection' with an array of 'ActionInfo' objects. - - - An array of 'ActionInfo' objects with which to initialize the collection - - - - - Adds a 'ActionInfo' item with the specified value to the 'ActionInfoCollection' - - - The 'ActionInfo' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ActionInfoCollection'. - - - An array of 'ActionInfo' objects to add to the collection. - - - - - Adds the contents of another 'ActionInfoCollection' at the end of this instance. - - - A 'ActionInfoCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ActionInfoCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ActionInfoCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ActionInfo' object in the collection. - - - The 'ActionInfo' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ActionInfo' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ActionInfoCollection'. - - - - - Removes a specific item from the 'ActionInfoCollection'. - - - The item to remove from the 'ActionInfoCollection'. - - - - - TODO: Describe what custom processing this method does - before setting an item in the collection - - - - - TODO: Describe what custom processing this method does - before insering a new item in the collection - - - - - Represents the 'ActionInfo' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ActionInfoCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - This class is the common base class for actions such as - MenuActions, Editactions or plugins - - - - - Inheriting actions must overwrite this method, it is called, when the action - occurs. - - - - - - - - - - - - - Derived classes must implement to create a object. - - - Derived classes must implement to create a object. - - - - - - - - - - - Summary description for WinFormsMenuFactory. - - - - - - Abstract base class for menu implementation - - - - - - - - - - Derived classes must override. - - - - returns a Shortcut based on the string representation (e.g. CtrlN) - - - - the string to convert into a Shortcut - - - - A System.Windows.Forms.Shortcut value... - - - - - - - - - - - - Toolbar to be used by default WinForms MenuFactory - - - - - - Abstract class used to provide implementation of ToolBars - - - - - - - - - - Derived classes must override. - - - - - Implementation class for standard WinForms menu. - - - - - - Summary description for XMLToolBarImp. - - - - - Type of menus to add - - - - Standard WinForms menus - - - - XPMenus from Essential Tools if available - - - - New Whidbey menus - - - - - MenuLoader contains static implementation of MenuFactories - - - - - Creates a MenuFactory - - - - Type of factory to create - - - - - The fully qualified namespace that contains the menu actions - - - - - String array of qualified names for toolbar resources that contain ToolbarDefinitions - - - - - String array of qualified names for menu resources that contain MenuDefinitions - - - - - The ResourceManager that contains the image/icon information - - - - - The parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Resource in parent assembly that contains a ToolbarItemStructCollection - - - - - Resource in parent assembly that contains a MenuItemStructCollection - - - - - ResourceManager that contains the icon/image resources - - - - - The parent form/object that contains the menu. - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Stream that contains the ToolbarItemStructCollection - - - - - Stream that contains the MenuItemStructCollection - - - - - ResourceManager containing the icon/image resources for the menu - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace containing the action items - - - - - The ToolbarItemStructCollection to create - - - - - The MenuItemStructCollection to create - - - - - The ResourceManager that contains the icon/image resources - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates a MenuFactory - - - - Type of MenuFactory to create - - - - - Fully qualified namespace that contains the action items - - - - - Array of ToolBarItemStructCollections to create multiple toolbars - - - - - Array of MenuItemStructCollections to create multiple menus - - - - - ResourceManager containing the image resources - - - - - Parent form/object that contains the menu - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Creates the MenuFactory based on toolbar/menu items provided by the public constructors - - - - The type of MenuFactory to create. - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuFactory value... - - - - - Constructs a MenuItemStructCollection[] based on MenuDefinition resources in the parent's assembly - - - - Qualified resource name that contains the MenuDefinitions - - - - A Syncfusion.Windows.Forms.InternalMenus.MenuItemStructCollection[] value... - - - - - Constructs a ToolBarItemStructCollection[] based on ToolBarDefinition resources in the parent's assembly - - - - Qualified resource name that contains the ToolBarDefinitions - - - - A Syncfusion.Windows.Forms.InternalMenus.ToolBarItemStructCollection[] value... - - - - - Returns an ArrayList of either MenuItemStructCollections or ToolBarItemStructCollections - - - - The resources in the parent's assembly - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A System.Collections.ArrayList value... - - - - - Returns either a MenuItemStructCollection or a ToolBarItemStructCollection - - - - The stream to read the collection from - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A object value... - - - - - Returns either a MenuItemStructCollection or a ToolBarItemStructCollection - - - - The fully qualified resource name in the parent's assembly - - - - - typeof(ToolBarItemStructCollection) or typeof(MenuItemStructCollection) - - - - A object value... - - - - - - Wrapper object that controls the images used in the menu and toolbar implementations - - - - - Adds an image to the internal image list from the internal imageCollection at the specified index - - - - - - - - - A collection that stores 'ImageStruct' objects. - - - - - Initializes a new instance of 'ImageStructCollection'. - - - - - Initializes a new instance of 'ImageStructCollection' based on an already existing instance. - - - A 'ImageStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'ImageStructCollection' with an array of 'ImageStruct' objects. - - - An array of 'ImageStruct' objects with which to initialize the collection - - - - - Adds a 'ImageStruct' item with the specified value to the 'ImageStructCollection' - - - The 'ImageStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ImageStructCollection'. - - - An array of 'ImageStruct' objects to add to the collection. - - - - - Adds the contents of another 'ImageStructCollection' at the end of this instance. - - - A 'ImageStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ImageStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Gets a value indicating the index within 'ImageStructCollection' of an ImageStruct with the specified resource name. - - - The value to locate. - - - True to add the image if it does not exist - - - The Resource Manager that contains the image - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ImageStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ImageStruct' object in the collection. - - - The 'ImageStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ImageStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ImageStructCollection'. - - - - - Removes a specific item from the 'ImageStructCollection'. - - - The item to remove from the 'ImageStructCollection'. - - - - - Represents the 'ImageStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ImageStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - Defines a Menu by a name and MenuItemStructCollection - - - - - Creates an empty MenuDefinition - - - - - Constructs a MenuDefinition given the Name and MenuItemStructCollection - - - - Name of the menu - - - - - The MenuItemStructCollection used to create the menu - - - - - - Name of the contained menu - - - - - Collection of objects defining the contained menu items. - - - - - - Defines a Toolbar by name and ToolBarItemStructCollection - - - - - Creates an empty ToolBarDefinition - - - - - Creates a ToolBarDefinition given the name and ToolBarItemStructCollection - - - - Name of the menu - - - - - ToolBarItemStructCollection used to create the toolbar - - - - A void value... - - - - - Name of the defined Toolbar - - - - - Collection of objects that defines the items in the toolbar. - - - - - Internal structure used for menu items - - - - Text to display - - - - Resource of the icon - - - - Tooltip information - - - - obsolete - - - - obsolete - - - - String format of Shortcut. e.g. CtrlN - - - - Name of the event handler - - - - Children of the menu item - - - - Internal structure used for toolbar items - - - - Resource of the icon - - - - Tooltip information - - - - Text to display - - - - Name of the event handler - - - - Availabe styles are Button,ToggleButton,Radio,CheckBox,TextBox and ComboBox - - - - - Width of the button if custom drawn - - - - Height of the button if custom drawn - - - - - A collection that stores 'MenuItemStruct' objects. - - - - - Initializes a new instance of 'MenuItemStructCollection'. - - - - - Initializes a new instance of 'MenuItemStructCollection' based on an already existing instance. - - - A 'MenuItemStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'MenuItemStructCollection' with an array of 'MenuItemStruct' objects. - - - An array of 'MenuItemStruct' objects with which to initialize the collection - - - - - Adds a 'MenuItemStruct' item with the specified value to the 'MenuItemStructCollection' - - - The 'MenuItemStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'MenuItemStructCollection'. - - - An array of 'MenuItemStruct' objects to add to the collection. - - - - - Adds the contents of another 'MenuItemStructCollection' at the end of this instance. - - - A 'MenuItemStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'MenuItemStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'MenuItemStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'MenuItemStruct' object in the collection. - - - The 'MenuItemStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'MenuItemStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'MenuItemStructCollection'. - - - - - Removes a specific item from the 'MenuItemStructCollection'. - - - The item to remove from the 'MenuItemStructCollection'. - - - - - Name of the menu - - - - Represents the 'MenuItemStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'MenuItemStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - - - A collection that stores 'ToolBarItemStruct' objects. - - - - - Initializes a new instance of 'ToolBarItemStructCollection'. - - - - - Initializes a new instance of 'ToolBarItemStructCollection' based on an already existing instance. - - - A 'ToolBarItemStructCollection' from which the contents is copied - - - - - Initializes a new instance of 'ToolBarItemStructCollection' with an array of 'ToolBarItemStruct' objects. - - - An array of 'ToolBarItemStruct' objects with which to initialize the collection - - - - - Adds a 'ToolBarItemStruct' item with the specified value to the 'ToolBarItemStructCollection' - - - The 'ToolBarItemStruct' to add. - - - The index at which the new element was inserted. - - - - - Copies the elements of an array at the end of this instance of 'ToolBarItemStructCollection'. - - - An array of 'ToolBarItemStruct' objects to add to the collection. - - - - - Adds the contents of another 'ToolBarItemStructCollection' at the end of this instance. - - - A 'ToolBarItemStructCollection' containing the objects to add to the collection. - - - - - Gets a value indicating whether the 'ToolBarItemStructCollection' contains the specified value. - - - The item to locate. - - - True if the item exists in the collection; false otherwise. - - - - - Copies the 'ToolBarItemStructCollection' values to a one-dimensional System.Array - instance starting at the specified array index. - - - The one-dimensional System.Array that represents the copy destination. - - - The index in the array where copying begins. - - - - - Returns the index of a 'ToolBarItemStruct' object in the collection. - - - The 'ToolBarItemStruct' object whose index will be retrieved. - - - If found, the index of the value; otherwise, -1. - - - - - Inserts an existing 'ToolBarItemStruct' into the collection at the specified index. - - - The zero-based index where the new item should be inserted. - - - The item to insert. - - - - - Returns an enumerator that can be used to iterate through - the 'ToolBarItemStructCollection'. - - - - - Removes a specific item from the 'ToolBarItemStructCollection'. - - - The item to remove from the 'ToolBarItemStructCollection'. - - - - - Name of the toolbar - - - - Represents the 'ToolBarItemStruct' item at the specified index position. - - - The zero-based index of the entry to locate in the collection. - - - The entry at the specified index of the collection. - - - - - - A strongly typed enumerator for 'ToolBarItemStructCollection' - - - - - Enumerator constructor - - - - - Advances the enumerator to the next element of the collection - - - - - Advances the enumerator to the next element of the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Sets the enumerator to the first element in the collection - - - - - Gets the current element from the collection (strongly typed) - - - - - Gets the current element from the collection - - - - diff --git a/DPM2016/bin/Release/app.publish/DPM2018.exe b/DPM2016/bin/Release/app.publish/DPM2018.exe index 05d5237..ff8dd9f 100644 Binary files a/DPM2016/bin/Release/app.publish/DPM2018.exe and b/DPM2016/bin/Release/app.publish/DPM2018.exe differ diff --git a/DPM2016/frmMain.Designer.vb b/DPM2016/frmMain.Designer.vb index ae00499..056a3bb 100644 --- a/DPM2016/frmMain.Designer.vb +++ b/DPM2016/frmMain.Designer.vb @@ -28,6 +28,12 @@ Partial Class frmMain Me.ToolStripMenuItem3 = New System.Windows.Forms.ToolStripMenuItem() Me.AbmeldenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.ÜberDPMToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.ToolStripMenuItem7 = New System.Windows.Forms.ToolStripSeparator() + Me.ToolsToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.DatenbankSicherungErstellenToolStripMenuItem1 = New System.Windows.Forms.ToolStripMenuItem() + Me.TemporäreVorschaudateienLöschenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.SQLScriptAusführenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() + Me.ToolStripMenuItem8 = New System.Windows.Forms.ToolStripSeparator() Me.BeendenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.PatientToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.FirmenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() @@ -61,6 +67,7 @@ Partial Class frmMain Me.Label1 = New System.Windows.Forms.Label() Me.OpenFileDialog1 = New System.Windows.Forms.OpenFileDialog() Me.SaveFileDialog1 = New System.Windows.Forms.SaveFileDialog() + Me.InterneTabellenLöschenToolStripMenuItem = New System.Windows.Forms.ToolStripMenuItem() Me.mnuMain.SuspendLayout() Me.SuspendLayout() ' @@ -75,7 +82,7 @@ Partial Class frmMain ' 'DateiToolStripMenuItem ' - Me.DateiToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItem3, Me.AbmeldenToolStripMenuItem, Me.ÜberDPMToolStripMenuItem, Me.BeendenToolStripMenuItem}) + Me.DateiToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.ToolStripMenuItem3, Me.AbmeldenToolStripMenuItem, Me.ÜberDPMToolStripMenuItem, Me.ToolStripMenuItem7, Me.ToolsToolStripMenuItem, Me.ToolStripMenuItem8, Me.BeendenToolStripMenuItem}) Me.DateiToolStripMenuItem.Name = "DateiToolStripMenuItem" Me.DateiToolStripMenuItem.Size = New System.Drawing.Size(46, 23) Me.DateiToolStripMenuItem.Text = "&Datei" @@ -98,6 +105,41 @@ Partial Class frmMain Me.ÜberDPMToolStripMenuItem.Size = New System.Drawing.Size(183, 22) Me.ÜberDPMToolStripMenuItem.Text = "Über DPM" ' + 'ToolStripMenuItem7 + ' + Me.ToolStripMenuItem7.Name = "ToolStripMenuItem7" + Me.ToolStripMenuItem7.Size = New System.Drawing.Size(180, 6) + ' + 'ToolsToolStripMenuItem + ' + Me.ToolsToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.DatenbankSicherungErstellenToolStripMenuItem1, Me.TemporäreVorschaudateienLöschenToolStripMenuItem, Me.SQLScriptAusführenToolStripMenuItem}) + Me.ToolsToolStripMenuItem.Name = "ToolsToolStripMenuItem" + Me.ToolsToolStripMenuItem.Size = New System.Drawing.Size(183, 22) + Me.ToolsToolStripMenuItem.Text = "Tools" + ' + 'DatenbankSicherungErstellenToolStripMenuItem1 + ' + Me.DatenbankSicherungErstellenToolStripMenuItem1.Name = "DatenbankSicherungErstellenToolStripMenuItem1" + Me.DatenbankSicherungErstellenToolStripMenuItem1.Size = New System.Drawing.Size(264, 22) + Me.DatenbankSicherungErstellenToolStripMenuItem1.Text = "Datenbank-Sicherung erstellen" + ' + 'TemporäreVorschaudateienLöschenToolStripMenuItem + ' + Me.TemporäreVorschaudateienLöschenToolStripMenuItem.Name = "TemporäreVorschaudateienLöschenToolStripMenuItem" + Me.TemporäreVorschaudateienLöschenToolStripMenuItem.Size = New System.Drawing.Size(264, 22) + Me.TemporäreVorschaudateienLöschenToolStripMenuItem.Text = "Temporäre Vorschaudateien löschen" + ' + 'SQLScriptAusführenToolStripMenuItem + ' + Me.SQLScriptAusführenToolStripMenuItem.Name = "SQLScriptAusführenToolStripMenuItem" + Me.SQLScriptAusführenToolStripMenuItem.Size = New System.Drawing.Size(264, 22) + Me.SQLScriptAusführenToolStripMenuItem.Text = "SQL-Script ausführen" + ' + 'ToolStripMenuItem8 + ' + Me.ToolStripMenuItem8.Name = "ToolStripMenuItem8" + Me.ToolStripMenuItem8.Size = New System.Drawing.Size(180, 6) + ' 'BeendenToolStripMenuItem ' Me.BeendenToolStripMenuItem.Name = "BeendenToolStripMenuItem" @@ -191,7 +233,7 @@ Partial Class frmMain ' 'StammdatenToolStripMenuItem ' - Me.StammdatenToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.SpaltentitelToolStripMenuItem, Me.StammdatenToolStripMenuItem1, Me.AuswertungenToolStripMenuItem1, Me.SecurityObjekteToolStripMenuItem, Me.ToolStripMenuItem6, Me.DatenbankSicherungErstellenToolStripMenuItem, Me.DatenbankSicherungZurückladenToolStripMenuItem}) + Me.StammdatenToolStripMenuItem.DropDownItems.AddRange(New System.Windows.Forms.ToolStripItem() {Me.SpaltentitelToolStripMenuItem, Me.StammdatenToolStripMenuItem1, Me.AuswertungenToolStripMenuItem1, Me.SecurityObjekteToolStripMenuItem, Me.ToolStripMenuItem6, Me.DatenbankSicherungErstellenToolStripMenuItem, Me.DatenbankSicherungZurückladenToolStripMenuItem, Me.InterneTabellenLöschenToolStripMenuItem}) Me.StammdatenToolStripMenuItem.Image = CType(resources.GetObject("StammdatenToolStripMenuItem.Image"), System.Drawing.Image) Me.StammdatenToolStripMenuItem.Name = "StammdatenToolStripMenuItem" Me.StammdatenToolStripMenuItem.Size = New System.Drawing.Size(106, 23) @@ -306,6 +348,12 @@ Partial Class frmMain ' Me.OpenFileDialog1.FileName = "OpenFileDialog1" ' + 'InterneTabellenLöschenToolStripMenuItem + ' + Me.InterneTabellenLöschenToolStripMenuItem.Name = "InterneTabellenLöschenToolStripMenuItem" + Me.InterneTabellenLöschenToolStripMenuItem.Size = New System.Drawing.Size(254, 22) + Me.InterneTabellenLöschenToolStripMenuItem.Text = "Interne Tabellen löschen" + ' 'frmMain ' Me.AutoScaleDimensions = New System.Drawing.SizeF(6.0!, 13.0!) @@ -362,4 +410,11 @@ Partial Class frmMain Friend WithEvents DatenbankSicherungZurückladenToolStripMenuItem As ToolStripMenuItem Friend WithEvents OpenFileDialog1 As OpenFileDialog Friend WithEvents SaveFileDialog1 As SaveFileDialog + Friend WithEvents ToolStripMenuItem7 As ToolStripSeparator + Friend WithEvents ToolsToolStripMenuItem As ToolStripMenuItem + Friend WithEvents DatenbankSicherungErstellenToolStripMenuItem1 As ToolStripMenuItem + Friend WithEvents ToolStripMenuItem8 As ToolStripSeparator + Friend WithEvents TemporäreVorschaudateienLöschenToolStripMenuItem As ToolStripMenuItem + Friend WithEvents SQLScriptAusführenToolStripMenuItem As ToolStripMenuItem + Friend WithEvents InterneTabellenLöschenToolStripMenuItem As ToolStripMenuItem End Class diff --git a/DPM2016/frmMain.vb b/DPM2016/frmMain.vb index b56bc31..26bc3ed 100644 --- a/DPM2016/frmMain.vb +++ b/DPM2016/frmMain.vb @@ -114,7 +114,7 @@ Public Class frmMain End Select Check_Tempdir() - + IntTables.Inttables.Tables.Clear() End Sub Sub Check_Tempdir() @@ -476,6 +476,47 @@ Public Class frmMain End If End Sub + Private Sub DatenbankSicherungErstellenToolStripMenuItem1_Click(sender As Object, e As EventArgs) Handles DatenbankSicherungErstellenToolStripMenuItem1.Click + Shell(Application.StartupPath + "\sqlbackup.cmd", AppWinStyle.NormalFocus) + End Sub + + Private Sub TemporäreVorschaudateienLöschenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles TemporäreVorschaudateienLöschenToolStripMenuItem.Click + If Globals.PreViewDir = "" Then + Dim db As New clsDB + db.Get_Tabledata("dms", "", "Select * from dms_Settings where nreintrag=6") + Globals.PreViewDir = db.dsDaten.Tables(0).Rows(0).Item(2) + If Not System.IO.Directory.Exists(Globals.PreViewDir) Then + System.IO.Directory.CreateDirectory(Globals.PreViewDir) + End If + End If + Try + Dim directoryName As String = Globals.PreViewDir + For Each deleteFile In Directory.GetFiles(directoryName, "*.*", SearchOption.TopDirectoryOnly) + Try + File.Delete(deleteFile) + Catch + End Try + + Next + Catch + End Try + + End Sub + + Private Sub SQLScriptAusführenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SQLScriptAusführenToolStripMenuItem.Click + Dim f As New frmSQLCript + f.MdiParent = Me + f.Show() + End Sub + + Private Sub frmMain_FormClosing(sender As Object, e As FormClosingEventArgs) Handles MyBase.FormClosing + + End Sub + + Private Sub InterneTabellenLöschenToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles InterneTabellenLöschenToolStripMenuItem.Click + IntTables.Inttables.Tables.Clear() + End Sub + 'Private Sub SecurityObjekteToolStripMenuItem_Click(sender As Object, e As EventArgs) Handles SecurityObjekteToolStripMenuItem.Click ' Dim formselector As New frmFormSelector ' formselector.ListForms.Items.Clear() diff --git a/DPM2016/obj/Debug/DPM2016.Leistungen.resources b/DPM2016/obj/Debug/DPM2016.Leistungen.resources index 96aa7bb..8f776f6 100644 Binary files a/DPM2016/obj/Debug/DPM2016.Leistungen.resources and b/DPM2016/obj/Debug/DPM2016.Leistungen.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.clsDokumente.resources b/DPM2016/obj/Debug/DPM2016.clsDokumente.resources index 55b3c80..6f6b5db 100644 Binary files a/DPM2016/obj/Debug/DPM2016.clsDokumente.resources and b/DPM2016/obj/Debug/DPM2016.clsDokumente.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.clsStammdaten_flat.resources b/DPM2016/obj/Debug/DPM2016.clsStammdaten_flat.resources index 8b64663..f76c776 100644 Binary files a/DPM2016/obj/Debug/DPM2016.clsStammdaten_flat.resources and b/DPM2016/obj/Debug/DPM2016.clsStammdaten_flat.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmAuswertung.resources b/DPM2016/obj/Debug/DPM2016.frmAuswertung.resources index 4417149..f322d3a 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmAuswertung.resources and b/DPM2016/obj/Debug/DPM2016.frmAuswertung.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmFakturierung.resources b/DPM2016/obj/Debug/DPM2016.frmFakturierung.resources index ba11096..71e1af6 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmFakturierung.resources and b/DPM2016/obj/Debug/DPM2016.frmFakturierung.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmFirma.resources b/DPM2016/obj/Debug/DPM2016.frmFirma.resources index 39a5b3f..412e763 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmFirma.resources and b/DPM2016/obj/Debug/DPM2016.frmFirma.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmRechnungskopien.resources b/DPM2016/obj/Debug/DPM2016.frmRechnungskopien.resources index 82e8818..e2c3f89 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmRechnungskopien.resources and b/DPM2016/obj/Debug/DPM2016.frmRechnungskopien.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmStammdaten.resources b/DPM2016/obj/Debug/DPM2016.frmStammdaten.resources index cf00205..1e8dbc2 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmStammdaten.resources and b/DPM2016/obj/Debug/DPM2016.frmStammdaten.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmSuche.resources b/DPM2016/obj/Debug/DPM2016.frmSuche.resources index 299fdb9..29fbee6 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmSuche.resources and b/DPM2016/obj/Debug/DPM2016.frmSuche.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.frmZahlung.resources b/DPM2016/obj/Debug/DPM2016.frmZahlung.resources index a744e82..752e0f3 100644 Binary files a/DPM2016/obj/Debug/DPM2016.frmZahlung.resources and b/DPM2016/obj/Debug/DPM2016.frmZahlung.resources differ diff --git a/DPM2016/obj/Debug/DPM2016.vbproj.CoreCompileInputs.cache b/DPM2016/obj/Debug/DPM2016.vbproj.CoreCompileInputs.cache deleted file mode 100644 index 3bc69c6..0000000 --- a/DPM2016/obj/Debug/DPM2016.vbproj.CoreCompileInputs.cache +++ /dev/null @@ -1 +0,0 @@ -b8691d0dd18cceb13c3773bb6e186248e884077e diff --git a/DPM2016/obj/Debug/DPM2016.vbproj.FileListAbsolute.txt b/DPM2016/obj/Debug/DPM2016.vbproj.FileListAbsolute.txt index 9a97a69..9893767 100644 --- a/DPM2016/obj/Debug/DPM2016.vbproj.FileListAbsolute.txt +++ b/DPM2016/obj/Debug/DPM2016.vbproj.FileListAbsolute.txt @@ -1,42 +1,21 @@ -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Database1.mdf -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Database1_log.ldf -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.exe.config -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.exe -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.pdb -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Aga.Controls.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Data.2.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1Command.4.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1Input.4.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1TrueDBGrid.2.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Charts.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Schedule.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar2.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.Bars.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.Editor.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FlexCel.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MySql.Data.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\XLSLib.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Aga.Controls.pdb -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Data.2.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1Command.4.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1Input.4.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\C1.Win.C1TrueDBGrid.2.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Schedule.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar2.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.pdb -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.xml E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmAuswertung.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmreport.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.FrmSearchDialog.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Behandlung.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Benhandungdetail.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Form1.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmLeistungDetail.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmPosition.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Leistungen.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmPrivatSelect.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmDemoMode.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmprogress.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.clsDokumente.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.dmstest.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.DokumentDetail.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmdokumentvorlagen.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmImportVorlage.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.ThumbViewer.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmFakturierung.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmOffeneBehandlungen.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmRechnungskopien.resources @@ -54,6 +33,7 @@ E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Recall.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmReportauswahl.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmReportView.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmAuswertungen.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmDentotarDetail.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmPrinterselect.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmStammdaten.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.clsStammdaten_Bez.resources @@ -69,47 +49,68 @@ E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmFortschritt.resour E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmKalender.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmLogin.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmSplash.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmSQLCript.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmSuche.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.SplashForm.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmZahlung.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbproj.GenerateResource.cache E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.exe.licenses -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbproj.CoreCompileInputs.cache -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbproj.CopyComplete -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.exe -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.pdb -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.Form1.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Database1.mdf +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Database1_log.ldf +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.exe.config E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.exe.manifest E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.application +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.exe +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DPM2018.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Aga.Controls.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Charts.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Schedule.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar2.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.TreeGX.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Compression.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Shared.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Shared.Windows.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Google.Protobuf.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MySql.Data.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.exe.manifest -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.application -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.clsDokumente.resources -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.DokumentDetail.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.Bars.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.Editor.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FlexCel.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Gnostice.Core.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Gnostice.Free.Documents.Controls.WinForms.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Gnostice.Free.Documents.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Gnostice.XtremeFontEngine.4.0.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Gnostice.XtremeImageEngine.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Ionic.Zlib.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\KP-ImageViewerV2.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MsgReader.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MySql.Data.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\OpenMcdf.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\PropertyGridEx.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\RtfPipe.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.PdfViewer.Windows.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\XLSLib.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Ionic.Zip.Reduced.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.dmstest.resources -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmdokumentvorlagen.resources -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.frmImportVorlage.resources -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Pdf.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Compression.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Pdf.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Shared.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.Shared.Windows.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Google.Protobuf.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Aga.Controls.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar.Schedule.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\DevComponents.DotNetBar2.xml E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\FastReport.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\Syncfusion.PdfViewer.Windows.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\PropertyGridEx.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\KP-ImageViewerV2.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MsgReader.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\MySql.Data.xml E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\PropertyGridEx.pdb E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\PropertyGridEx.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbprojResolveAssemblyReference.cache +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\SHUKeyGen.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\de\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\es\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\fr\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\nl\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\pt\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\zh-CN\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Debug\zh-TW\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.exe.manifest +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.application +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbproj.CopyComplete +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.exe +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2018.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Debug\DPM2016.vbprojAssemblyReference.cache diff --git a/DPM2016/obj/Debug/DPM2016.vbproj.GenerateResource.Cache b/DPM2016/obj/Debug/DPM2016.vbproj.GenerateResource.Cache index 25c962e..eed3674 100644 Binary files a/DPM2016/obj/Debug/DPM2016.vbproj.GenerateResource.Cache and b/DPM2016/obj/Debug/DPM2016.vbproj.GenerateResource.Cache differ diff --git a/DPM2016/obj/Debug/DPM2016.vbprojResolveAssemblyReference.cache b/DPM2016/obj/Debug/DPM2016.vbprojResolveAssemblyReference.cache deleted file mode 100644 index 9c5b851..0000000 Binary files a/DPM2016/obj/Debug/DPM2016.vbprojResolveAssemblyReference.cache and /dev/null differ diff --git a/DPM2016/obj/Debug/DPM2018.application b/DPM2016/obj/Debug/DPM2018.application index 61cd38b..258da60 100644 --- a/DPM2016/obj/Debug/DPM2018.application +++ b/DPM2016/obj/Debug/DPM2018.application @@ -7,14 +7,14 @@ - + - j6iOzVhg/wmUAnUdIIcsTQxiFzWd7Y6Umtx1txLmI1c= + Z8/ohDHQOVC31fah+orrfmUNEEtGz0wHX7Oq4dtjFoI= diff --git a/DPM2016/obj/Debug/DPM2018.exe b/DPM2016/obj/Debug/DPM2018.exe index f422f8a..db276db 100644 Binary files a/DPM2016/obj/Debug/DPM2018.exe and b/DPM2016/obj/Debug/DPM2018.exe differ diff --git a/DPM2016/obj/Debug/DPM2018.exe.manifest b/DPM2016/obj/Debug/DPM2018.exe.manifest index 0f6eb4a..832ea8d 100644 --- a/DPM2016/obj/Debug/DPM2018.exe.manifest +++ b/DPM2016/obj/Debug/DPM2018.exe.manifest @@ -42,16 +42,6 @@ - - - - - - - - - - @@ -161,50 +151,50 @@ - + - GsZRKuwqk6Xf22e5r6oFfIc37kkzT/TEAJj+uJl3Gfw= + hNnUof7//Uy8zZASBh7rydpiZh9+tC3tmgXR//G5ZB0= - - + + - Q4G0ogKvbQzRIJzuroDUiWIrdBwZD46FuFb1mHdASHw= + YAf8e3ucgCHDEwPA3fc/SOplq1xZf3ZTVBu4wThvScc= - - + + - x6TKeRADnpG8iL/70WnGw1xisC+RBP+9WmhHQbG017E= + 87cKk42NVnZOUHZGYzqYbyOFQjptSR0B+bF66eUtXL8= - - + + - ybdrHZO0BacH/7QbqvtfSecWyzFfJXyRv3MInd4Z/f0= + JGMlbhgez57QxT811uoBJwieYZwmnt4ToEGbmbFle7I= @@ -317,98 +307,182 @@ - - + + - o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + o7uNKkCPWlpIPT3q2xKzifMRcunxI4Ky/bElVbVHWaU= - - + + - g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + 70vYni89hl8KEmP5ZGGnL4VHtavroZmHcWsmE7P5qCI= - - + + - geK4YQkCftVr3r0piMztFkKxuUV5k7IzQBSnapnZCEk= + Uv+ZAtv89LSuYAVmpIjK+G5Z2mbRqXF/l8WYJhaveoQ= - - + + - 1ScUcT75tiLzlA5I53HBMuMTekq02JWjxr3wQOXFprI= + az2ZzaDPDmQsLyAOI2gQf+1JyjuhvQr0RLEN7NwKA/c= - - + + - tWGgFCYEHEmx57z5BHjSmQg4wak3EfSKmXhAPC099TY= + 7X56fvOHJrUmIfy6vUPlmFiqboysSBDNBPyqQgkaesA= - - + + - IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= + OS0StxZPf9WpfactpCk1R9QvfEZ91sd/c3D5XZUqSyY= - - + + - THgqsOP8jM1MWtCbJSY8B94/YKQ4l8cDzNSu+SP7HdU= + qOeonQf/zIy44t0zdulKEQFv6wbNfwtf+2veMnHs2yQ= - - + + - Brwtr52FiQEEmKQX3ygNODbMfR2HklOGYyA+bmRkdAo= + 8/Z5ezUxuoo3x4BDdK5YD296JUs5ni25jlIgWCJYWWA= + + + + + + + + + + + + YroZpkn+ylpTTzd8/wU4IqvB7svEKuD2K2vqPgvVqgY= + + + + + + + + + + + + o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + + + + + + + + + + + + updVzBVQHuepY38OPgyOorWRbE8dlOAxLUGhDi153cg= + + + + + + + + + + + + g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + + + + + + + + + + + + PqGSYEmfTjtZh0kCZwaAteRDsA4e6nEuTd25X/JYt40= + + + + + + + + + + + + 1xEEyKAhxpWXiCJNDjzueoHEZPjMX322lKsIH72xkUQ= + + + + + + + + + + + + IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= diff --git a/DPM2016/obj/Debug/DPM2018.pdb b/DPM2016/obj/Debug/DPM2018.pdb index 9167a02..e906321 100644 Binary files a/DPM2016/obj/Debug/DPM2018.pdb and b/DPM2016/obj/Debug/DPM2018.pdb differ diff --git a/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferences.cache b/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferences.cache index 796ff7c..67bd8c0 100644 Binary files a/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ diff --git a/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache b/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache index 5e0cd24..e3d0ac0 100644 Binary files a/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache and b/DPM2016/obj/Debug/DesignTimeResolveAssemblyReferencesInput.cache differ diff --git a/DPM2016/obj/Debug/dpm2018.exe.licenses b/DPM2016/obj/Debug/dpm2018.exe.licenses index acc2879..a7c8ef3 100644 Binary files a/DPM2016/obj/Debug/dpm2018.exe.licenses and b/DPM2016/obj/Debug/dpm2018.exe.licenses differ diff --git a/DPM2016/obj/Release/DPM2016.Leistungen.resources b/DPM2016/obj/Release/DPM2016.Leistungen.resources index 96aa7bb..6ae20e3 100644 Binary files a/DPM2016/obj/Release/DPM2016.Leistungen.resources and b/DPM2016/obj/Release/DPM2016.Leistungen.resources differ diff --git a/DPM2016/obj/Release/DPM2016.clsDokumente.resources b/DPM2016/obj/Release/DPM2016.clsDokumente.resources index 55b3c80..6f6b5db 100644 Binary files a/DPM2016/obj/Release/DPM2016.clsDokumente.resources and b/DPM2016/obj/Release/DPM2016.clsDokumente.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmAuswertung.resources b/DPM2016/obj/Release/DPM2016.frmAuswertung.resources index 4417149..260af2a 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmAuswertung.resources and b/DPM2016/obj/Release/DPM2016.frmAuswertung.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmFakturierung.resources b/DPM2016/obj/Release/DPM2016.frmFakturierung.resources index ba11096..38567b8 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmFakturierung.resources and b/DPM2016/obj/Release/DPM2016.frmFakturierung.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmFirma.resources b/DPM2016/obj/Release/DPM2016.frmFirma.resources index 39a5b3f..412e763 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmFirma.resources and b/DPM2016/obj/Release/DPM2016.frmFirma.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmRechnungskopien.resources b/DPM2016/obj/Release/DPM2016.frmRechnungskopien.resources index 82e8818..e2c3f89 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmRechnungskopien.resources and b/DPM2016/obj/Release/DPM2016.frmRechnungskopien.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmSuche.resources b/DPM2016/obj/Release/DPM2016.frmSuche.resources index 299fdb9..29fbee6 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmSuche.resources and b/DPM2016/obj/Release/DPM2016.frmSuche.resources differ diff --git a/DPM2016/obj/Release/DPM2016.frmZahlung.resources b/DPM2016/obj/Release/DPM2016.frmZahlung.resources index bc92292..752e0f3 100644 Binary files a/DPM2016/obj/Release/DPM2016.frmZahlung.resources and b/DPM2016/obj/Release/DPM2016.frmZahlung.resources differ diff --git a/DPM2016/obj/Release/DPM2016.vbproj.CoreCompileInputs.cache b/DPM2016/obj/Release/DPM2016.vbproj.CoreCompileInputs.cache index 3bc69c6..f5bd3c3 100644 --- a/DPM2016/obj/Release/DPM2016.vbproj.CoreCompileInputs.cache +++ b/DPM2016/obj/Release/DPM2016.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -b8691d0dd18cceb13c3773bb6e186248e884077e +37f31eabe8c10650a1013c16fd88d381a7658fc0 diff --git a/DPM2016/obj/Release/DPM2016.vbproj.FileListAbsolute.txt b/DPM2016/obj/Release/DPM2016.vbproj.FileListAbsolute.txt index 4b2e936..677a600 100644 --- a/DPM2016/obj/Release/DPM2016.vbproj.FileListAbsolute.txt +++ b/DPM2016/obj/Release/DPM2016.vbproj.FileListAbsolute.txt @@ -87,11 +87,6 @@ E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2018.exe.manifest E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2018.application E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.Form1.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\DevComponents.TreeGX.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Compression.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Pdf.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Shared.Base.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Shared.Windows.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.vbprojResolveAssemblyReference.cache E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Gnostice.Core.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Gnostice.Free.Documents.Controls.WinForms.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Gnostice.Free.Documents.dll @@ -99,10 +94,6 @@ E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Gnostice.XtremeFontEngine.4 E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Gnostice.XtremeImageEngine.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Ionic.Zlib.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Ionic.Zip.Reduced.dll -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Compression.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Pdf.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Shared.Base.xml -E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.Shared.Windows.xml E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.clsDokumente.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.dmstest.resources E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.DokumentDetail.resources @@ -113,3 +104,20 @@ E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\PropertyGridEx.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\Syncfusion.PdfViewer.Windows.dll E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\PropertyGridEx.pdb E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\PropertyGridEx.xml +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.vbprojAssemblyReference.cache +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.FrmSearchDialog.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.ThumbViewer.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\obj\Release\DPM2016.frmSQLCript.resources +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\KP-ImageViewerV2.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\MsgReader.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\OpenMcdf.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\RtfPipe.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\KP-ImageViewerV2.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\MsgReader.pdb +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\de\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\es\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\fr\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\nl\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\pt\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\zh-CN\MsgReader.resources.dll +E:\Software-Projekte\DPM\DPM2016\DPM2016\bin\Release\zh-TW\MsgReader.resources.dll diff --git a/DPM2016/obj/Release/DPM2016.vbproj.GenerateResource.cache b/DPM2016/obj/Release/DPM2016.vbproj.GenerateResource.cache index 143ab9a..710ab45 100644 Binary files a/DPM2016/obj/Release/DPM2016.vbproj.GenerateResource.cache and b/DPM2016/obj/Release/DPM2016.vbproj.GenerateResource.cache differ diff --git a/DPM2016/obj/Release/DPM2016.vbprojResolveAssemblyReference.cache b/DPM2016/obj/Release/DPM2016.vbprojResolveAssemblyReference.cache deleted file mode 100644 index b61a4f4..0000000 Binary files a/DPM2016/obj/Release/DPM2016.vbprojResolveAssemblyReference.cache and /dev/null differ diff --git a/DPM2016/obj/Release/DPM2018.application b/DPM2016/obj/Release/DPM2018.application index be60d38..b59b419 100644 --- a/DPM2016/obj/Release/DPM2018.application +++ b/DPM2016/obj/Release/DPM2018.application @@ -7,14 +7,14 @@ - + - r9I4JOe32LBVFgcdaPPlVcvHP7zP2iJj3sPA+I9vPcc= + gf1BCnIKCun70zLCXqaCdMzAAaNu/bkJUcIA8o8jiNM= diff --git a/DPM2016/obj/Release/DPM2018.exe b/DPM2016/obj/Release/DPM2018.exe index fce22a5..ff8dd9f 100644 Binary files a/DPM2016/obj/Release/DPM2018.exe and b/DPM2016/obj/Release/DPM2018.exe differ diff --git a/DPM2016/obj/Release/DPM2018.exe.manifest b/DPM2016/obj/Release/DPM2018.exe.manifest index 7070bbf..7e18817 100644 --- a/DPM2016/obj/Release/DPM2018.exe.manifest +++ b/DPM2016/obj/Release/DPM2018.exe.manifest @@ -42,16 +42,6 @@ - - - - - - - - - - @@ -161,50 +151,50 @@ - + - DRVR9BQmgKOelVyXVGVk5RXJfYpVrspq+CA4+XOfI/A= + ivy3xzEwUYSdYoFaEXNMVn827lH0WJ9amM5GtoA4+t0= - - + + - Q4G0ogKvbQzRIJzuroDUiWIrdBwZD46FuFb1mHdASHw= + YAf8e3ucgCHDEwPA3fc/SOplq1xZf3ZTVBu4wThvScc= - - + + - x6TKeRADnpG8iL/70WnGw1xisC+RBP+9WmhHQbG017E= + 87cKk42NVnZOUHZGYzqYbyOFQjptSR0B+bF66eUtXL8= - - + + - ybdrHZO0BacH/7QbqvtfSecWyzFfJXyRv3MInd4Z/f0= + JGMlbhgez57QxT811uoBJwieYZwmnt4ToEGbmbFle7I= @@ -317,98 +307,182 @@ - - + + - o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + o7uNKkCPWlpIPT3q2xKzifMRcunxI4Ky/bElVbVHWaU= - - + + - g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + 70vYni89hl8KEmP5ZGGnL4VHtavroZmHcWsmE7P5qCI= - - + + - geK4YQkCftVr3r0piMztFkKxuUV5k7IzQBSnapnZCEk= + Uv+ZAtv89LSuYAVmpIjK+G5Z2mbRqXF/l8WYJhaveoQ= - - + + - 1ScUcT75tiLzlA5I53HBMuMTekq02JWjxr3wQOXFprI= + az2ZzaDPDmQsLyAOI2gQf+1JyjuhvQr0RLEN7NwKA/c= - - + + - tWGgFCYEHEmx57z5BHjSmQg4wak3EfSKmXhAPC099TY= + 7X56fvOHJrUmIfy6vUPlmFiqboysSBDNBPyqQgkaesA= - - + + - IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= + OS0StxZPf9WpfactpCk1R9QvfEZ91sd/c3D5XZUqSyY= - - + + - THgqsOP8jM1MWtCbJSY8B94/YKQ4l8cDzNSu+SP7HdU= + qOeonQf/zIy44t0zdulKEQFv6wbNfwtf+2veMnHs2yQ= - - + + - Brwtr52FiQEEmKQX3ygNODbMfR2HklOGYyA+bmRkdAo= + 8/Z5ezUxuoo3x4BDdK5YD296JUs5ni25jlIgWCJYWWA= + + + + + + + + + + + + YroZpkn+ylpTTzd8/wU4IqvB7svEKuD2K2vqPgvVqgY= + + + + + + + + + + + + o1A1TiMHyyY2HLODhWlzi01juSSiEk3jKsgc9fnbhpo= + + + + + + + + + + + + updVzBVQHuepY38OPgyOorWRbE8dlOAxLUGhDi153cg= + + + + + + + + + + + + g+nWXc4h/DaKewOmkCJQA0uOR5aVfJrS29T7d3pRR8E= + + + + + + + + + + + + PqGSYEmfTjtZh0kCZwaAteRDsA4e6nEuTd25X/JYt40= + + + + + + + + + + + + 1xEEyKAhxpWXiCJNDjzueoHEZPjMX322lKsIH72xkUQ= + + + + + + + + + + + + IIBVzhy6EYdd8gXI9sVU/NqxevRGxCADg9ULapTktOs= diff --git a/DPM2016/obj/Release/DPM2018.pdb b/DPM2016/obj/Release/DPM2018.pdb index f46d77e..2b24576 100644 Binary files a/DPM2016/obj/Release/DPM2018.pdb and b/DPM2016/obj/Release/DPM2018.pdb differ diff --git a/DPM2016/obj/Release/DesignTimeResolveAssemblyReferences.cache b/DPM2016/obj/Release/DesignTimeResolveAssemblyReferences.cache index 794811a..0204fa8 100644 Binary files a/DPM2016/obj/Release/DesignTimeResolveAssemblyReferences.cache and b/DPM2016/obj/Release/DesignTimeResolveAssemblyReferences.cache differ diff --git a/DPM2016/obj/Release/dpm2018.exe.licenses b/DPM2016/obj/Release/dpm2018.exe.licenses index 933f66b..a1ae0fb 100644 Binary files a/DPM2016/obj/Release/dpm2018.exe.licenses and b/DPM2016/obj/Release/dpm2018.exe.licenses differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.exe b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.exe index 85a2459..3b2c507 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.exe and b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.exe differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.pdb b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.pdb index d95c626..92044bf 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.pdb and b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/DPMLizenzmanagement.pdb differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.dll b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.dll index a4ca4ef..e830979 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.dll and b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.dll differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.pdb b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.pdb index dff16e9..d08fa99 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.pdb and b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.pdb differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.xml b/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.xml deleted file mode 100644 index 5cf5430..0000000 --- a/DPMLizenzmanagement/DPMLizenzmanagement/bin/Debug/SHUKeyGen.xml +++ /dev/null @@ -1,26 +0,0 @@ - - - - -SHUKeyGen - - - - - - A strongly-typed resource class, for looking up localized strings, etc. - - - - - Returns the cached ResourceManager instance used by this class. - - - - - Overrides the current thread's CurrentUICulture property for all - resource lookups using this strongly typed resource class. - - - - diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.exe b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.exe index 85a2459..3b2c507 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.exe and b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.exe differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.pdb b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.pdb index d95c626..92044bf 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.pdb and b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.pdb differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache index 1ada74c..73e589d 100644 --- a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache +++ b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -81a6f3093dacb1a85679097b13537ec331a6301a +9aa3326352d4df6071d0d57613b75dd2cce801f7 diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.FileListAbsolute.txt b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.FileListAbsolute.txt index deac6aa..955b305 100644 --- a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.FileListAbsolute.txt +++ b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.FileListAbsolute.txt @@ -20,7 +20,6 @@ E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\bin\Deb E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\bin\Debug\DPMLizenzmanagement.xml E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\bin\Debug\SHUKeyGen.dll E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\bin\Debug\SHUKeyGen.pdb -E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\bin\Debug\SHUKeyGen.xml E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\obj\Debug\DPMLizenzmanagement.Form1.resources E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\obj\Debug\DPMLizenzmanagement.Resources.resources E:\Software-Projekte\DPM\DPM2016\DPMLizenzmanagement\DPMLizenzmanagement\obj\Debug\DPMLizenzmanagement.vbproj.GenerateResource.cache diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.GenerateResource.cache b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.GenerateResource.cache index 164a77b..327a4f9 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.GenerateResource.cache and b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbproj.GenerateResource.cache differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbprojResolveAssemblyReference.cache b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbprojResolveAssemblyReference.cache index e7c3a2a..6c25786 100644 Binary files a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbprojResolveAssemblyReference.cache and b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Debug/DPMLizenzmanagement.vbprojResolveAssemblyReference.cache differ diff --git a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Release/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Release/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache index 1ada74c..73e589d 100644 --- a/DPMLizenzmanagement/DPMLizenzmanagement/obj/Release/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache +++ b/DPMLizenzmanagement/DPMLizenzmanagement/obj/Release/DPMLizenzmanagement.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -81a6f3093dacb1a85679097b13537ec331a6301a +9aa3326352d4df6071d0d57613b75dd2cce801f7 diff --git a/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.dll b/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.dll index a4ca4ef..e830979 100644 Binary files a/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.dll and b/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.dll differ diff --git a/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.pdb b/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.pdb index dff16e9..d08fa99 100644 Binary files a/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.pdb and b/DPMLizenzmanagement/SHUKeyGen/bin/Debug/SHUKeyGen.pdb differ diff --git a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.dll b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.dll index a4ca4ef..e830979 100644 Binary files a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.dll and b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.dll differ diff --git a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.pdb b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.pdb index dff16e9..d08fa99 100644 Binary files a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.pdb and b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.pdb differ diff --git a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.CoreCompileInputs.cache b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.CoreCompileInputs.cache index 8e3dd14..ceac98b 100644 --- a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.CoreCompileInputs.cache +++ b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -3199ede46b0738d56294ca8ad1362ea89d39dec0 +e132a648e7cd8ceb4fe7094b63c7bfb0f36e5af4 diff --git a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.GenerateResource.cache b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.GenerateResource.cache index b33fc75..b8e0033 100644 Binary files a/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.GenerateResource.cache and b/DPMLizenzmanagement/SHUKeyGen/obj/Debug/SHUKeyGen.vbproj.GenerateResource.cache differ diff --git a/DPMLizenzmanagement/SHUKeyGen/obj/Release/SHUKeyGen.vbproj.CoreCompileInputs.cache b/DPMLizenzmanagement/SHUKeyGen/obj/Release/SHUKeyGen.vbproj.CoreCompileInputs.cache index 8e3dd14..ceac98b 100644 --- a/DPMLizenzmanagement/SHUKeyGen/obj/Release/SHUKeyGen.vbproj.CoreCompileInputs.cache +++ b/DPMLizenzmanagement/SHUKeyGen/obj/Release/SHUKeyGen.vbproj.CoreCompileInputs.cache @@ -1 +1 @@ -3199ede46b0738d56294ca8ad1362ea89d39dec0 +e132a648e7cd8ceb4fe7094b63c7bfb0f36e5af4